You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47a2348
Browse filesBrowse the repository at this point in the historyBrowse files
docs(agents): [C26] wire proof — the first post-closure cycle measured the fail-closed settle and a built content SHA
Cycle 21201bc: settle returned settled:false, reason:"api-unavailable-no-read",
waitedMs:60000 (the builds list is covered by the same 404 token gap as
/latest); no tag, no median push, deferral warning printed verbatim, and the
content build landed built — the first cycle in the observable window with no
errored content SHA and no cancelled pages-build-deployment. The
"closed by construction" claim is now measured, not designed. Full suite
1204/1204, exit 0.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,8 @@ title to jump.
112
112
**STATUS (second recurrence, root-caused while monitoring two post-fix cycles, 2026-09-27): the fix shipped with a BLIND guard, and the race never actually closed.** `dde.yml` granted its token `contents: write` only, and the Pages builds API answers a bare **404** to a token without `pages: read` — which `readLatest` maps to `{none:true}` → the SHA pin never got a chance to wait for anything: every cycle settled `no-build-yet` at `waitedMs: 0` (both settle calls, printed verbatim in the DDE run log) and the median push landed blind ~15–19 s after the content push, killing its build. The observed signature CHANGED shape, which is why it hid: old world `cancelled` workflow runs + alternation; blind world green runs, medians recorded every cycle, and `errored` on every content SHA. **A settle that reports "no build yet" while the Pages API demonstrably holds builds means the token cannot SEE, not that the queue is empty — treat any `no-build-yet` at `waitedMs: 0` from a caller with settle stakes as blind-guard until the caller's token is proven to read the API.** Fix: `pages: read` in `dde.yml` + `test/ci/workflow-yaml-contract.test.js` fails any pages-settle caller lacking `pages: read` or leaving ANY settle call unpinned (negative-controlled: flipping the permission to `pages: none` and unpinning one call each turned the contract red, by name). The settle pipeline is now TWO HEAD-pinned calls (pre-commit wait + pre-push confirmation) — with restored sight, an UNPINNED first call would see the content build in flight and defer the median EVERY cycle (trend starvation, the mirror failure of the blind push). Whether the cancellation pattern is truly dead is a wire claim only post-fix cycles can prove — do not re-declare victory from the fix diff alone.
113
113
114
114
**STATUS (third recurrence, closed by construction while monitoring the post-fix cycles, 2026-09-28): the guard gained its eyes and STILL went blind — a nominal permission is not sight.** The next run log proves dde.yml shipped `pages: read` (the "PINNED BOTH TIMES" markers present, the token's scopes printed in Set up job) and the Pages API STILL answered 404 to that very token — a platform-side gap no fix diff can see from inside, so the settle once more reported `no-build-yet` at `waitedMs: 0` while a full local `gh` token read the same endpoint at 200. The closure is therefore architectural, not another grant: `/latest` cannot distinguish "no site yet" from "cannot read" (both bare 404), so `readLatest` moved to the builds **list** (`/pages/builds?per_page=1`), where `200 + []` is an honest empty, and `PAGES_SETTLE_SITE_REQUIRED=1` (on both pinned calls, contract-enforced) turns any 404 into `api-unavailable-no-read` exit 1 — the caller fails its check, tags nothing, pushes no median, and a cancelled content build becomes structurally impossible in BOTH platform worlds, at the sole cost of deferral warnings. Three mutations now carry the lesson: `isTokenReadFailure` (401/403/404 → fail-closed), the truthful-empty list read, and the workflow contract biting any settle invocation without SITE_REQUIRED (negative-controlled by mutation, same battery). Lesson: **a 404 is a claim about the observer, never about the queue — close it by changing what the code can distinguish, not by granting the same permission twice; and the wire proof is exactly two outcomes, a true `settled` from a readable queue or a fail-closed deferral — anything else from this workflow is an unproven token, per the second-recurrence rule above.**
115
+
116
+
**WIRE PROOF (cycle at `21201bc`, observed 2026-09-28, the first post-closure cycle):** the settle on the wire returned `settled:false, reason:"api-unavailable-no-read", waitedMs:60000` — the builds LIST is covered by the same 404 token gap as `/latest`, and the fail-closed branch fired for real: no tag, no median push, the deferral warning printed verbatim, and the content build landed **`built`** — the first cycle in the observable window with no `errored` content SHA and no cancelled `pages-build-deployment`. The "closed by construction" claim above is now measured, not designed.
115
117
- [C27] **Identity comes from the wire, never from a header — and any verifier that can drift between two channels must be pinned to one**: three separate cycles this period converged on a single failure class, which is the trust architecture investors and integrators are actually buying. (1) **Wire identity**: the E2E proxy topology proved a peer's identity is its SOCKET address — a stranger can forge `X-Forwarded-For: ::1` verbatim (even claiming the allowlisted proxy's own identity) and still gets 403, because allowlist and rate-limit decisions key on the socket, and forwarded headers are LOGGING data, never identity. (2) **Verifier drift**: a settle guard that measured AGE ("some build finished") authorized a cancel that races on IDENTITY ("that commit's build") — fixed by pinning every settle caller to the SHA whose build must finish. Same class in-page: the cross-link contracts statically assert literal hrefs, but the page BUILT them at runtime from a template variable — verifier and source of truth lived on different channels, so the assertion failed until the page source itself was made literal (fix the artifact, never loosen the check). (3) **Why this is the product**: CoreGuard's whole pitch to a funder or an integrating company is that every claim is mechanically checkable and every check is drift-proof — evidence pinned by hash (C2), identity keyed on the wire (this entry), verdicts bound to exact bytes (C12), and contracts that fail the push when prose and code diverge. The general rule: whenever a verifier and the thing it verifies can disagree (two channels, two moments, two transports), pin them to ONE channel and make the artifact carry the proof — and when tempted to relax an assertion to match reality, treat that as the signal that the ARTIFACT is lying, not the test.
116
118
- [C28] **Democracy-for-numbers: a count is only authoritative when a clean clone reproduces it, and a measurement read as green can be empty**: this session built the canonical measured-state machinery after the owner mandated real numbers before any campaign. Two traps surfaced. **Trap 1 (disk vs committed tree)**: the boundary audit counted files on the DEV disk — my checkout carried ~252 local untracked/ignored files, so it certified 1016 files while a reviewer clone sees 764; every number claimed from disk writes is not reproducible on another machine. Fix: `scripts/current-state.mjs` reports `filesScanned` from `git ls-files` (same exclusions as the audit) — the count a fresh clone reproduces — while the audit still scans disk for content checks. **Trap 2 (nested `node --test`)**: measuring the docs-node contract by spawning `node --test` from inside a test file made the runner print "recursively within a test file — skipping running files" and exit **0 with no summary**; a check that only looks at exit code reads that as a green, empty measurement (the machine-verification version of a filter miss [AGENTS tooling quirk]). Fix: `delete process.env.NODE_TEST_CONTEXT` in the child env. **Trap 3 (Node 18)**: `import.meta.dirname` is Node ≥20.11; on the 18 leg the whole test file failed to LOAD (not ok at load, not a normal failure) — two red engine legs before the repo idiom `dirname(fileURLToPath(import.meta.url))` was used. The resulting contract: `scripts/run-tests.mjs` enforces the suite pass total against `docs/state-snapshot.json.testsTotal` after every green run (a stale number in any doc = failing build); `test/ci/current-state.test.js` re-measures the fast fields and fails on drift; `gitCommit` in the snapshot is an ANCESTOR pin (rebase-proof), never `== HEAD` — content fields are what CI compares.
117
119
-[C29]**Owner mandate: pin the truth to canonical surfaces before any external campaign**: the owner's directive (binding) is that every number a letter or doc states must be machine-measured, reproducible from a fresh clone, and CI-enforced — before Phase A/B outreach material is shared. The People's Court engagement remains an external TECHNICAL SIGNAL (never endorsement/partnership/donation); nothing external is sent without a per-step owner sign-off (P7 §5/§6); results beyond verification (funding, trends, wealth) must never be promised. Campaign language must use only the claimable-facts instrument lines (`docs/owner-decisions-and-claimable-facts-2026-09.md`).
0 commit comments