Skip to content

Commit eae0890

Browse files
committed
Add warranted agent architecture review docs
1 parent 65ae155 commit eae0890

3 files changed

Lines changed: 185 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,11 @@ Start here for review:
260260

261261
- `docs/DEVELOPER_HANDOFF.md`
262262
- `docs/AGENT_FRAMEWORK_ARCHITECTURE.md`
263+
- `docs/ARCHITECTURE_DIAGRAMS.md`
264+
- `docs/THREAT_MODEL.md`
263265
- `docs/AGENT_RUNTIME.md`
264266
- `docs/AGENT_REGISTRY.md`
267+
- `docs/EVIDENCE_SCHEMA.md`
265268
- `docs/LAUNCH_CHECKLIST.md`
266269
- `specs/WarrantedAgentFramework.v0.md`
267270

‎docs/ARCHITECTURE_DIAGRAMS.md‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Architecture Diagrams
2+
3+
## Framework Stack
4+
5+
```mermaid
6+
flowchart LR
7+
A[AgentManifest] --> B[WorkRequest]
8+
B --> C[PolicyCard]
9+
C --> D[AgentProposal]
10+
D --> E[AgentRegistry]
11+
E --> F[AgentRuntime]
12+
F --> G[EvidenceSchema]
13+
G --> H[FlowBond]
14+
H --> I[BondLedger]
15+
H --> J[FlowPulse]
16+
J --> K[PulsePass]
17+
K --> L[PrivateCompute]
18+
L --> M[ScopedProof]
19+
H --> N[FlowCompiler]
20+
```
21+
22+
Core idea:
23+
24+
```text
25+
The agent promise becomes a warranted machine history.
26+
```
27+
28+
## Runtime Sequence
29+
30+
```mermaid
31+
sequenceDiagram
32+
participant U as User
33+
participant R as AgentRegistry
34+
participant A as AgentAdapter
35+
participant T as AgentRuntime
36+
participant B as FlowBond
37+
participant P as PulsePass
38+
39+
U->>R: WorkRequest
40+
R-->>U: eligible warranted agents
41+
U->>A: quote(request)
42+
A-->>U: PolicyCard + AgentProposal
43+
U->>T: run(policy)
44+
T->>T: lock local bond
45+
T->>A: execute(policy)
46+
A-->>T: evidence envelopes
47+
T->>B: settle(policy, outcome)
48+
B-->>T: FlowPulse settlement
49+
T->>P: store receipt
50+
P-->>U: scoped proof
51+
```
52+
53+
## Success Path
54+
55+
```mermaid
56+
flowchart TD
57+
A[Required evidence exists] --> B[Evidence fields pass schema]
58+
B --> C[Obligation links match]
59+
C --> D[Acceptance is true]
60+
D --> E[FlowBond passes]
61+
E --> F[Bond releases to agent]
62+
F --> G[PulsePass stores success receipt]
63+
```
64+
65+
## Failure Path
66+
67+
```mermaid
68+
flowchart TD
69+
A[Payment exists] --> B{Delivery evidence present?}
70+
B -- No --> C[FlowBond fails]
71+
B -- Yes --> D{Acceptance present?}
72+
D -- No --> C
73+
D -- Yes --> E{Obligation links match?}
74+
E -- No --> C
75+
C --> F[Bond pays user]
76+
F --> G[PulsePass stores failed warranty receipt]
77+
```
78+
79+
## Boundary
80+
81+
These diagrams describe the local deterministic framework. They do not claim production custody, wallet enforcement, production verifier infrastructure, production settlement, zero-knowledge privacy, or work-quality proof.

‎docs/THREAT_MODEL.md‎

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Threat Model
2+
3+
FlowMemory Warranted Agents is strongest when the failure modes are explicit.
4+
5+
The v0 framework is local and deterministic. It does not claim custody, wallet enforcement, production settlement, production verifier infrastructure, full privacy, zero-knowledge privacy, semantic truth, or work-quality proof.
6+
7+
Within that boundary, the framework targets a real problem:
8+
9+
```text
10+
An agent action can look valid while the machine history behind it is incomplete, mismatched, stale, or impossible.
11+
```
12+
13+
## Threat: Generic Claims Without Evidence
14+
15+
Risk:
16+
17+
```text
18+
The agent says it completed the job, but no required evidence exists.
19+
```
20+
21+
FlowMemory response:
22+
23+
- PolicyCard defines required evidence.
24+
- EvidenceSchema checks local envelope fields.
25+
- FlowBond fails missing evidence.
26+
- PulsePass can carry the failed warranty receipt.
27+
28+
## Threat: Payment Without Delivery
29+
30+
Risk:
31+
32+
```text
33+
Payment is observed, but the delivery envelope is missing.
34+
```
35+
36+
FlowMemory response:
37+
38+
- FlowBond emits `payment_without_delivery`.
39+
- The local bond outcome becomes `PAY_BOND_TO_USER`.
40+
- The failed warranty becomes a FlowPulse-style memory artifact.
41+
42+
## Threat: Wrong Obligation Link
43+
44+
Risk:
45+
46+
```text
47+
Evidence exists, but it belongs to a different obligation.
48+
```
49+
50+
FlowMemory response:
51+
52+
- FlowBond checks obligation IDs.
53+
- Mismatched envelopes produce wrong-obligation violations.
54+
- FlowCompiler rejects analogous impossible histories.
55+
56+
## Threat: Arbitrary Evidence Labels
57+
58+
Risk:
59+
60+
```text
61+
The agent submits a label named WorkDeliveryEnvelope without the required delivery fields.
62+
```
63+
64+
FlowMemory response:
65+
66+
- EvidenceSchema defines required fields.
67+
- Malformed local envelopes fail settlement.
68+
69+
## Threat: Private History Exposure
70+
71+
Risk:
72+
73+
```text
74+
The user needs to prove a warranty state without revealing the full receipt history.
75+
```
76+
77+
FlowMemory response:
78+
79+
- PulsePass stores receipt history.
80+
- PrivateCompute reveals scoped predicates.
81+
- Raw receipts, raw user ID, exact action history, and private obligation IDs remain hidden in the local proof surface.
82+
83+
## Threat: Overclaiming The System
84+
85+
Risk:
86+
87+
```text
88+
Public copy must not claim live custody, production settlement, semantic truth, or proof of work quality.
89+
```
90+
91+
FlowMemory response:
92+
93+
- ClaimGate scans README, docs, and specs.
94+
- CI runs the claim gate.
95+
- Risky phrases must appear only as guarded non-claims or boundary statements.
96+
97+
## Strongest v0 Claim
98+
99+
```text
100+
FlowMemory can make an agent promise inspectable as a deterministic receipt-bound machine history.
101+
```

0 commit comments

Comments
 (0)