Skip to content

Commit 5b67ae2

Browse files
committed
docs(proof): record tuple protocol validation
1 parent 0809043 commit 5b67ae2

6 files changed

Lines changed: 472 additions & 1 deletion

File tree

‎docs/proof/tuple-protocol-rootcause/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ The dead-letter operator now lets `tuple_protocol_invalid` rows enter the existi
3434

3535
For the 30-row inventory, the expected drain is evidence-dependent and intentionally conservative. Proven older-head rows can retire as `superseded`; current-head eligible rows can re-review and publish through the repaired batch path (or the already-deployed mixed-case fix); unproven stale rows, ineligible rows, and `workflow_cancelled` rows remain open. No reason-only bulk resolution is introduced.
3636

37-
The executable contract is in [`behavior-contract.md`](behavior-contract.md), RED/GREEN results are in [`red-green.md`](red-green.md), and [`run-proof.sh`](run-proof.sh) drives the final Docker-backed Crabbox proof. OpenClaw Bay is unaffected because this changes queue-owned publication replay and operator policy while exposing no queue, workflow, GitHub, recovery, deploy, or rollback control on the observer-only Bay surface.
37+
The executable contract is in [`behavior-contract.md`](behavior-contract.md), RED/GREEN results are in [`red-green.md`](red-green.md), and [`run-proof.sh`](run-proof.sh) drives the Docker-backed Crabbox proof. [`behavior-report.json`](behavior-report.json) records the source-blind result, while [`receipt.json`](receipt.json) binds the tested source head, provider, image, lease, content hashes, transcript hashes, secret scan, full host gate, and container limit.
38+
39+
Final Docker run `cbx_e7a1213fcc2c` (`silver-barnacle-f1bf`) on committed source head `080904359d54c6e2cdf9b0e314bf44471c09d196` passed all 176 focused scenarios. Its later whole-repository docs check could not run from Crabbox's bounded raw sync because that sync intentionally omitted 36 historical proof artifact files referenced elsewhere in `docs/proof/`; this is recorded as a limit, not a pass. The complete host checkout then passed `pnpm run check` with 3,405 tests, 3,396 passes, nine platform skips, and zero failures. OpenClaw Bay is unaffected because this changes queue-owned publication replay and operator policy while exposing no queue, workflow, GitHub, recovery, deploy, or rollback control on the observer-only Bay surface.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"overall_behavior": "satisfies_contract",
3+
"overall_confidence": 0.98,
4+
"target": {
5+
"type": "HMAC-authenticated publication API and exact-review dead-letter operator CLI",
6+
"access": "Docker-backed Crabbox local-container loopback fixtures"
7+
},
8+
"checks": [
9+
{
10+
"contract_clause": "Batch-owned retry resumes from the accepted canonical receipt",
11+
"status": "pass",
12+
"severity": null,
13+
"evidence": "A protocol-v2 command-shaped batch accepted canonical content, retried the same target/fence/revision with different tuple bytes, returned HTTP 202 with deduped=true, and retained the first canonical content.",
14+
"reproduction_steps": [
15+
"Claim an exact publication batch fence",
16+
"POST canonical tuple content through publication-batch-results",
17+
"POST refreshed bytes with the same target, fence, and revision",
18+
"Read the canonical record and inspect the second response"
19+
],
20+
"confidence": 0.99
21+
},
22+
{
23+
"contract_clause": "Direct and unowned conflicts remain guarded",
24+
"status": "pass",
25+
"severity": null,
26+
"evidence": "Conflicting bytes through the non-batch endpoint returned HTTP 400 with detail conflicting direct publication retry; a target-mismatched fence returned direct_publication_fence_not_owned.",
27+
"reproduction_steps": [
28+
"Repeat accepted direct content with changed bytes",
29+
"Repeat a batch request with a mismatched canonical target",
30+
"Inspect the two error responses"
31+
],
32+
"confidence": 0.99
33+
},
34+
{
35+
"contract_clause": "Proven newer-head tuple failure is superseded",
36+
"status": "pass",
37+
"severity": null,
38+
"evidence": "A tuple_protocol_invalid row at stale head A plus a digest-valid completed canonical record at live head B produced one guarded superseded resolution, while the paired workflow_cancelled row remained open.",
39+
"reproduction_steps": [
40+
"Serve stale tuple and workflow-cancelled rows for one target",
41+
"Serve live GitHub head B and a complete canonical record for B",
42+
"Run reconcile with execute enabled",
43+
"Inspect resolution ids and skip accounting"
44+
],
45+
"confidence": 0.99
46+
},
47+
{
48+
"contract_clause": "Current-head tuple failure stays recoverable",
49+
"status": "pass",
50+
"severity": null,
51+
"evidence": "A tuple_protocol_invalid row whose recorded source head equaled the live head made no canonical-evidence or supersede request and entered the existing fresh-recovery mutation.",
52+
"reproduction_steps": [
53+
"Serve an eligible tuple row at the current live head",
54+
"Serve idle queue pressure",
55+
"Run reconcile",
56+
"Inspect zero resolutions and one recovery"
57+
],
58+
"confidence": 0.99
59+
}
60+
],
61+
"anti_cheat_probes": [
62+
{
63+
"probe": "Changed tuple bytes on the non-batch route",
64+
"result": "The strict conflict guard still returned HTTP 400"
65+
},
66+
{
67+
"probe": "Changed the canonical target under the batch fence",
68+
"result": "Ownership validation returned direct_publication_fence_not_owned"
69+
},
70+
{
71+
"probe": "Kept the dead-letter source head current",
72+
"result": "No supersession evidence was queried and fresh recovery remained active"
73+
},
74+
{
75+
"probe": "Paired a proven tuple row with workflow_cancelled",
76+
"result": "Only the tuple row resolved; workflow_cancelled stayed open with explicit accounting"
77+
}
78+
],
79+
"blockers": []
80+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
npm notice
2+
npm notice New major version of npm available! 11.17.0 -> 12.0.2
3+
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2
4+
npm notice To update run: npm install -g [email protected]
5+
npm notice
6+
$ pnpm run build && pnpm run build:repair && pnpm run build:dashboard
7+
$ tsc -p tsconfig.json
8+
$ tsc -p tsconfig.repair.json
9+
$ tsc -p tsconfig.dashboard.json
10+
$ pnpm run check:parallel
11+
$ pnpm run check:static && pnpm run build:all && pnpm run lint && pnpm run test:coverage:changed:no-build && pnpm run test:coverage:no-build
12+
$ pnpm run "/^(check:active-surface|check:dashboard-queue-boundary|check:dashboard-strict|check:docs|check:limits|format:check)$/"

0 commit comments

Comments
 (0)