Skip to content

Commit bd2ef95

Browse files
committed
test(proof): record ETag broker receipt
1 parent 2f5c5b9 commit bd2ef95

5 files changed

Lines changed: 191 additions & 0 deletions

File tree

‎docs/proof/etag-read-broker/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ node docs/proof/etag-read-broker/run-proof.mjs \
2121
The Docker-backed Crabbox command is recorded in `receipt.json`; its script
2222
runs the focused behavior tests, the loopback proof, dashboard strict, and the
2323
full repository gate on Node 24, then validates the report with static `jq`.
24+
`container-transcript-summary.txt` retains the exact phase and result markers;
25+
the oversized raw coverage transcript is intentionally excluded from Git.
2426

2527
OpenClaw Bay is unaffected. This changes internal GitHub read transport and
2628
telemetry dimensions only; the public observer payload and its read-only/no-
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"schema": "clawsweeper-etag-read-broker-proof/v1",
3+
"generated_at": "2026-08-14T06:10:14.600Z",
4+
"tested_head": "2f5c5b98c136fc80411fde91ae5c7685eee00938",
5+
"merge_base": "6a358d239c1e67cd38159d70de18eecbd9a5d844",
6+
"key_schema": "[1, credential_pool, route_with_sorted_query, media_type]",
7+
"storage": {
8+
"max_entries": 2048,
9+
"max_body_bytes": 524288,
10+
"ttl_days": 30
11+
},
12+
"results": {
13+
"first_read": "200_stored",
14+
"unchanged_read": "304_confirmed_body_served",
15+
"byte_identical": true,
16+
"digest_asserted": true,
17+
"changed_read": "200_replaced",
18+
"page_2_carried_page_1_etag": false,
19+
"final_guard_revalidated": true,
20+
"bare_cache_reads": 0,
21+
"wire_calls": 5,
22+
"quota_charges": 3,
23+
"telemetry": {
24+
"cache_hit": 3,
25+
"cache_miss": 2,
26+
"cache_skip": 0,
27+
"cache_200_stored": 3,
28+
"cache_304_served": 2
29+
},
30+
"publisher_hmac_status": 200,
31+
"operator_hmac_status": 401
32+
},
33+
"limits": [
34+
"Loopback GitHub and credentials are deterministic fixtures.",
35+
"The proof exercises production Worker routing and Durable Object SQL in memory, not production state.",
36+
"GitHub documents REST 304 responses as zero primary-rate-limit points; the fixture models that accounting."
37+
]
38+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
debconf: delaying package configuration, since apt-utils is not installed
2+
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.10.0.tgz
3+
$ pnpm run build && pnpm run build:repair && pnpm run build:dashboard
4+
$ tsc -p tsconfig.json
5+
$ tsc -p tsconfig.repair.json
6+
$ tsc -p tsconfig.dashboard.json
7+
$ node scripts/check-dashboard-strict.mjs
8+
$ pnpm run check:parallel
9+
$ pnpm run check:static && pnpm run build:all && pnpm run lint && pnpm run test:coverage:changed:no-build && pnpm run test:coverage:no-build
10+
$ pnpm run "/^(check:active-surface|check:dashboard-queue-boundary|check:dashboard-strict|check:docs|check:limits|format:check)$/"
11+
$ pnpm run build && pnpm run build:repair && pnpm run build:dashboard
12+
$ tsc -p tsconfig.json
13+
$ tsc -p tsconfig.repair.json
14+
$ tsc -p tsconfig.dashboard.json
15+
$ pnpm run "/^lint:.*/"
16+
$ node scripts/run-node-tests.mjs fix-prompt-builder -- --experimental-test-coverage --test-coverage-include='dist/repair/fix-prompt-builder.js' --test-coverage-lines=85 --test-coverage-branches=85 --test-coverage-functions=85
17+
[run-node-tests] target=fix-prompt-builder concurrency=16 files=1
18+
$ node scripts/run-node-tests.mjs all -- --experimental-test-coverage --test-coverage-include='dist/**/*.js' --test-coverage-exclude='dist/repair/*.test.js' --test-coverage-lines=49 --test-coverage-branches=66 --test-coverage-functions=57
19+
[run-node-tests] target=all concurrency=16 files=261
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
provider=local-container
2+
lease_id=cbx_50f3c91c43a4
3+
slug=golden-lobster-9b16
4+
image=node:24-bookworm
5+
tested_head=2f5c5b98c136fc80411fde91ae5c7685eee00938
6+
merge_base=6a358d239c1e67cd38159d70de18eecbd9a5d844
7+
8+
CRABBOX_PHASE:install
9+
CRABBOX_PHASE:build
10+
CRABBOX_PHASE:focused
11+
focused_tests=16
12+
focused_passed=16
13+
focused_failed=0
14+
CRABBOX_PHASE:loopback
15+
loopback_first_read=200_stored
16+
loopback_unchanged_read=304_confirmed_body_served
17+
loopback_changed_read=200_replaced
18+
loopback_byte_identical=true
19+
loopback_digest_asserted=true
20+
loopback_page_2_carried_page_1_etag=false
21+
loopback_final_guard_revalidated=true
22+
loopback_bare_cache_reads=0
23+
loopback_wire_calls=5
24+
loopback_quota_charges=3
25+
CRABBOX_PHASE:dashboard_strict
26+
dashboard_strict_exit=0
27+
CRABBOX_PHASE:full_gate
28+
full_gate_tests=3454
29+
full_gate_passed=3446
30+
full_gate_failed=0
31+
full_gate_skipped=8
32+
coverage_lines=81.45
33+
coverage_branches=74.06
34+
coverage_functions=87.32
35+
36+
ETAG_READ_BROKER_PROOF_OK head=2f5c5b98c136fc80411fde91ae5c7685eee00938 base=6a358d239c1e67cd38159d70de18eecbd9a5d844
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"schema_version": 1,
3+
"recorded_at": "2026-08-14T06:11:30Z",
4+
"provider": "local-container",
5+
"lease_id": "cbx_50f3c91c43a4",
6+
"slug": "golden-lobster-9b16",
7+
"container_runtime": "docker",
8+
"image": "node:24-bookworm",
9+
"machine_type": "node_24-bookworm",
10+
"tested_head": "2f5c5b98c136fc80411fde91ae5c7685eee00938",
11+
"merge_base": "6a358d239c1e67cd38159d70de18eecbd9a5d844",
12+
"command": "/Users/steipete/Projects/crabbox/bin/crabbox run --provider local-container --local-container-image node:24-bookworm --no-hydrate --preflight --timing-json --capture-stdout docs/proof/etag-read-broker/container-transcript.txt --capture-stderr docs/proof/etag-read-broker/container-stderr.txt --shell -- sudo apt-get update >/dev/null && sudo apt-get install -y jq >/dev/null && docs/proof/etag-read-broker/run-proof.sh 2f5c5b98c136fc80411fde91ae5c7685eee00938 6a358d239c1e67cd38159d70de18eecbd9a5d844",
13+
"exit_code": 0,
14+
"lease_stopped": true,
15+
"sync_ms": 9050,
16+
"command_ms": 96034,
17+
"total_ms": 105099,
18+
"node_version": "v24.19.0",
19+
"pnpm_version": "11.10.0",
20+
"focused_tests": {
21+
"tests": 16,
22+
"passed": 16,
23+
"failed": 0
24+
},
25+
"loopback": {
26+
"first_read": "200_stored",
27+
"unchanged_read": "304_confirmed_body_served",
28+
"changed_read": "200_replaced",
29+
"byte_identical": true,
30+
"digest_asserted": true,
31+
"page_2_carried_page_1_etag": false,
32+
"final_guard_revalidated": true,
33+
"bare_cache_reads": 0,
34+
"wire_calls": 5,
35+
"quota_charges": 3,
36+
"publisher_hmac_status": 200,
37+
"operator_hmac_status": 401
38+
},
39+
"dashboard_strict": {
40+
"command": "pnpm run check:dashboard-strict",
41+
"exit_code": 0,
42+
"ratchet_added": "dashboard/github-etag-cache.ts"
43+
},
44+
"full_gate": {
45+
"command": "pnpm run check",
46+
"exit_code": 0,
47+
"tests": 3454,
48+
"passed": 3446,
49+
"failed": 0,
50+
"skipped": 8,
51+
"coverage": {
52+
"lines": 81.45,
53+
"branches": 74.06,
54+
"functions": 87.32
55+
}
56+
},
57+
"pre_commit_autoreview": {
58+
"command": "autoreview --mode local --stream-engine-output",
59+
"exit_code": 0,
60+
"accepted_or_actionable_findings": 0,
61+
"result": "autoreview clean: no accepted/actionable findings reported"
62+
},
63+
"behavior_report": "docs/proof/etag-read-broker/behavior-report.json",
64+
"content_sha256": {
65+
"dashboard/github-etag-cache.ts": "a5228582e841a506424e9ee32d5cb90151a6b7c09c2e63335fd83fdcbd6a51c6",
66+
"src/github-etag-cache-contract.ts": "210780239f86bf098cce72bc366537672326b2bc89cb708b3336d4af503586a6",
67+
"src/github-etag-read-broker.ts": "f848d1d84c0160a549dd7c0c24e7aebcb7de2d9dc14218b000a3f28e917a18e6",
68+
"src/clawsweeper-github-runtime.ts": "a7686e946c1a5deeff62edcbc6b5d3c42173169d269ae9fa94cce1f9ae8fb4db",
69+
"dashboard/worker.ts": "7b21e6c14d16ca83d25b2e6553fc6009db5c2827ba497bef592eb20b489eb15e",
70+
"test/github-etag-read-broker.test.ts": "e11898b0e1626cd7d8f4acb5e7bd413d87a8defb3b171b406ad04aae9e5c8181",
71+
"docs/github-egress-telemetry.md": "9ddad299fec8ecaba788d58b9fca51a6359c953dd51a80cf035ca25c5bc43953",
72+
"docs/proof/etag-read-broker/run-proof.sh": "e63d39f4c2e17d4684689109f0d68eee24d8384987252f37462814309d39ff32"
73+
},
74+
"artifact_sha256": {
75+
"behavior_report": "e62b89a84e8fb9df575cd409e436c82d4410aeabed8b43a077089807d95c4b9a",
76+
"raw_container_transcript": "64dbe7ebb6477fb38c19db98ea262b10d19460117e2e546b4240df6fa379c45c",
77+
"container_transcript_summary": "a98c975290df85084cac7a91c0e404e4004dab4625ebe850274d301c5e568b40",
78+
"container_stderr": "dedc3e80a3811f55d5b735ba091aeb9a803b2e56f8d97a0ed924b467125fda70"
79+
},
80+
"secret_scan": {
81+
"tool": "trufflehog 3.96.0",
82+
"command": "trufflehog filesystem --no-update --results=verified,unknown --fail --fail-on-scan-errors docs/proof/etag-read-broker/container-transcript-summary.txt docs/proof/etag-read-broker/container-stderr.txt",
83+
"exit_code": 0,
84+
"chunks": 2,
85+
"bytes": 2442,
86+
"verified_secrets": 0,
87+
"unknown_secrets": 0
88+
},
89+
"cleanup": {
90+
"owned_success_lease_absent_from_local_container_list": true,
91+
"owned_failed_leases_absent_from_local_container_list": true,
92+
"unrelated_preexisting_exited_lease_untouched": true,
93+
"failed_captures_moved_to_private_tmp": true,
94+
"raw_success_transcript_moved_to_private_tmp": true
95+
}
96+
}

0 commit comments

Comments
 (0)