feat(attest-demo): local air-gapped instrument — the 2nd html npx bash-opens
npx thetacog-mcp attest-demo now writes and opens THREE pages, served over a
transient 127.0.0.1 server (WebCrypto secure context, no file:// caveat):
1. attest-demo-report.html — the redpill QnA (improved: air-gap badge + link)
2. attest-demo-ux.html — the INTERACTIVE local instrument (new)
3. attest-demo-lifecycle.html — the six-page lifecycle spec (new)
The instrument: three triangulation inputs (Intent/Reality/Negative), an
interventions deck (Run verification · Inject noise · Draft->Execute /
Advise->Transact / Diagnose->Operate presets), a seven-panel pipeline where
EVERY panel names its own source file / line count / byte size / sha256
(the chain-of-custody an underwriter needs), and three clickable 12x12 reef
inspectors. It measures LOCALLY with the browser's own gzip (CompressionStream)
+ crypto.subtle — zero fetch, zero external asset, no LLM in the receipt path.
The receipt stays LLM-free and deterministic (the SEALED half is a function of
the commit, embedded verbatim); the live browser gzip is the same sensor re-run
in front of the reader (the analogue), honestly distinguished from the sealed
bare-metal Linux walk.
Hardened against the four demo-fatal gotchas (spec steer 2026-07-14):
#1 secure-context — served over localhost + a byte-correct pure-JS SHA-256
fallback so file:// never blank-screens
#2 injection escaping — run data injected as BASE64, decoded UTF-8-safe; no
template-literal interpolation of the 144-cell semantic dumps
#3 thin-context — inputs under the redundancy floor are wrapped in an
operational boundary (gzip needs redundancy or short strings flip-flop)
#4 browser<->Linux zlib variance — disclosed and pointed at Execution Lineage,
not hidden
Guard (CODE DoD, same commit): tests/pmu-simulator/attest-demo-ux-airgapped.test.mjs
13/13 — any re-introduced network call, external asset, LLM-in-compute, raw-JSON
injection, missing provenance, or dropped Boolean state turns the build red.
Originating-Terminal: 📐 architect (VS Code)
Relevant-Rooms: 🔨 builder, 📐 architect, 🧪 laboratory
Story: The attest-demo already narrated the proof and opened a static QnA report; the sale needs the underwriter to SEE the instrument run locally and move the inputs themselves. This adds that second, interactive, air-gapped page (built front-to-back, then documented in a six-page lifecycle spec with explicit anti-goals) and hard-enforces the no-LLM/no-exfil guarantee with a regression guard — because a page that phones home or blank-screens in front of Marsh is fatal.
Receipt-Verified: σ=2.54 · cell=A · witness-agreement=GZIP_ONLY · lens=gzip · receipt=0fa1ac3d
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EssMgKix9aZmZ5dxGPqYCW
npx thetacog-mcp attest-demoA,A ▸ A2,A2 C.Operations × C.Operations → ~blog-content · blog post mdx breadcrumb · 16 green blocksA3,A ▸ B2,C B1.Tactics.Speed × B.Tactics → ~comms-email · email comms newsletter telegram · 9 amber blocksA3,A1 ▸ B2,A3 B1.Tactics.Speed × A2.Strategy.Goal → ~comms-email · email comms newsletter telegram · 9 amber blocksA3,B1 ▸ B2,B3 B1.Tactics.Speed × B2.Tactics.Deal → ~comms-email · email comms newsletter telegram · 9 amber blocksB,A3 ▸ A1,B2 C.Operations × B1.Tactics.Speed → infra-hooks · hook pre-commit post-commit launchd · 8 amber blocksB,B3 ▸ A1,C2 C.Operations × C1.Operations.Grid → book · book chapter tesseract manuscript · 7 amber blocksA,C1 ▸ B,C3 B.Tactics × C2.Operations.Loop → pmu-walk · walk ballistic recursive on-chip · 6 green blocksA2,B1 ▸ A2,C3 A2.Strategy.Goal × C1.Operations.Grid → ~testing-gate · test jest guard gate · 6 green blocksC1,A ▸ C1,A3 C1.Operations.Grid × A1.Strategy.Law → ~comms-email · email comms newsletter telegram · 6 green blocksC2,A ▸ C3,C C3.Operations.Flow × B.Tactics → ~comms-email · email comms newsletter telegram · 6 amber blocksC2,B1 ▸ C3,B3 C3.Operations.Flow × B2.Tactics.Deal → ~comms-email · email comms newsletter telegram · 6 amber blocksB,A ▸ A1,C C.Operations × B.Tactics → ~patent-ip · patent uspto inventor provisional · 5 amber blocksA,A ▸ C,B B.Tactics × B.Tactics → thermodynamics · thermodynamics entropy free-energy dissipation · 4 green blocksA,B2 ▸ B,B2 B.Tactics × B2.Tactics.Deal → symbol-grounding · symbol referent denotation groundedness · 2 green blocksA,A3 ▸ A,B1 A.Strategy × B1.Tactics.Speed → ui-frontend · button css layout component · 2 amber blocksC2,A1 ▸ C3,A1 C3.Operations.Flow × A1.Strategy.Law → ~comms-email · email comms newsletter telegram · 2 amber blocksC1,B2 C1.Operations.Grid × B2.Tactics.Deal → ~comms-email · email comms newsletter telegram · 1 green blockC1,C1 C1.Operations.Grid × C1.Operations.Grid → ~comms-email · email comms newsletter telegram · 1 green blockC1,C3 C1.Operations.Grid × C3.Operations.Flow → ~infra-hooks · hook pre-commit post-commit launchd · 1 green blockC3,C1 C3.Operations.Flow × C1.Operations.Grid → ~comms-email · email comms newsletter telegram · 1 amber block
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
| |||||||||||||||||||||||
|
A,A The lattice we build today is what next year's underwriter inherits.B,B Tactics is the choice of which leverage to pull at which beat.C,C Operations is the loop that runs whether anyone watches.A1,A1 EU AI Act Article 14 requires human-on-the-loop oversight, with the supervisor able to interrupt the system atA2,A2 The target is the cell coordinate the system MUST occupy by end-of-quarter.A3,A3 Every dollar builds either the floor (substrate that lifts future bets) or the ceiling (cap on the next round)B1,B1 Latency is the price of a missed beat.B2,B2 The deal sets the exchange rate between two value substrates.B3,B3 Signal-to-noise is the inverse cube of bandwidth — narrow the channel, the message arrives; broaden it, recipiC1,C1 Power flows where the grid lets it.C2,C2 Each iteration is a hypothesis tested against the ground truth of the world.C3,C3 Flow is the rate at which committed work crosses the finish line.feat(attest-demo): local air-gapped instrument — the 2nd html npx bash-opens npx thetacog-mcp attest-demo now writes and opens THREE pages, served over a transient 127.0.0.1 server (WebCrypto secure context, no file:// caveat): 1. attest-demo-report.html — the redpill QnA (improved: air-gap badge + link) 2. attest-demo-ux.html — the INTERACTIVE local instrument (new) 3. attest-demo-lifecycle.html — the six-page lifecycle spec (new) The instrument: three triangulation inputs (Intent/Reality/Negative), an interventions deck (Run verification · Inject noise · Draft->Execute / Advise->Transact / Diagnose->Operate presets), a seven-panel pipeline where EVERY panel names its own source file / line count / byte size / sha256 (the chain-of-custody an underwriter needs), and three clickable 12x12 reef inspectors. It measures LOCALLY with the browser's own gzip (CompressionStream) + crypto.subtle — zero fetch, zero external asset, no LLM in the receipt path. The receipt stays LLM-free and deterministic (the SEALED half is a function of the commit, embedded verbatim); the live browser gzip is the same sensor re-run in front of the reader (the analogue), honestly distin docs/pmu/attest-demo-lifecycle.html docs/pmu/attest-demo-report.html docs/pmu/attest-demo-ux.html scripts/pmu/attest-demo-lifecycle.mjs scripts/pmu/attest-demo-ux.mjs scripts/pmu/attest-demo.mjs tests/pmu-simulator/attest-demo-ux-airgapped.test.mjs
| chain | ✅ reef sensed — 144 seeds → SimHash in 1269ms · grid attached (input seed → SimHash sanity check) · ✅ on-chip 666.61ns/walk · 2.197ms · 5462098 walks/sec · 42 / 144 lit (measured on silicon, this commit) · ✅ triptych rendered · pipeline 4667ms · render 384ms · 872 XOR-friction nodes |
| hardware root of trust | serial CXMF9VMM29 · UUID 43C33AB6… · attest MFkwEwYHKoZIzj0CAQYIKoZIzj0D… (ecdsa-p256-sha256 · hw-derived fallback, weaker than Secure Enclave) |
| gate (XOR+popcount) | 1.8426 ns / driven comparison · walk @ gate rate 530.7 ns |
| cache witness | L1 4.67 ns · DRAM 171.62 ns · miss ×36.7 |
| daemon binary | sha256 b409b4c1dedd815b… (the attested silicon path) |
| run receipt | run-2026-07-14T23-02-27-399Z-0888edb5 · payload 0c7065ae2c997bb1… · band gold |
| timings | ingest 4423.5ms · definer-walk+σ 501ms · render 384ms · pipeline 4667ms · ingest = commit-scoped SENSING only (msg + changed files → lattice); deep seed authoring lives in the reef-self-loop, off the commit path |
| walks (this heatmap) | INTENT: 110 hops / 110 chip processes / 110 anchors lit, ended at C1,C1 (ply 8 — the definers-of-definers) · REALITY: 143 hops / 143 chip processes / 143 anchors lit, ended at B2,B2 · C2,C (ply 7 — the definers-of-definers) · walks concentrate at block-heads by the ShortLex-ascending follow |
| per-stage | resolve 0ms · invariants 0.7ms · sense 4423.5ms · sigma 0.3ms · binarize 0.1ms · project 24.6ms · xor 0.1ms · walk 95.2ms · claudbridge 89.6ms |
| walk start | C1,C2 (STABLE attractor) · 253 hops · maxPly 8 |
| σ — defined by its inputs | σ = (cos(intentCloud, realityCloud) − μ of 12 bit-shuffled-reality impostor walks) / sd · INPUTS: intent 103 claims @ θ 0.750 (msg + 3 docs + 1 tests + ideal-case spec + SPEC intent) · reality 135 claims @ θ 0.719 (3 code) · walk topK 2 decay 0.5 ply≤8 budget 2500ms · seed-lib 8a4b87022885 — σ comparisons are only valid at equal inputs |
| σ raw | heat-cosine 0.2006 vs random 0.096 → σ_spec-delta · forming · the realization is converging on the spec — iterate again |
| shortlex-3 projection | 1018ms · intent zones 3/20/1369 (+401 cross) · reality zones 0/23/1523 (+336 cross) · zone 3 = candidate children, pre-ratchet |
| orthogonality (seed 144) | 144/144 unique · 143/144 openings · pairwise sim 0.367 · junk 0 |
| intent documents | attest-demo-lifecycle.html · attest-demo-report.html · attest-demo-ux.html · attest-demo-ux-airgapped.test.mjs |
Produced on the chip by the running pipeline (scripts/pmu/pipeline.mjs → runPipeline → walk + xor), commit-scoped · on-chip per-walk 666.61ns (this commit). Recompute: node scripts/pmu/commit-triptych.mjs --commit b0dc5870b
Commit artifacts (open on a computer — Gmail mobile won't follow file:// links; the inline images above are the phone-viewable form): reef grid · this triptych · the HDL — all three are also attached to this email.
--- spec_id: reef-the-spec-and-sign to_room: laboratory from_room: operator reef_ref: CLAUDE.md (PMU competence-walk HARD RULE) + scripts/pmu/attest-demo.mjs originating_commit: 5c385860b status: draft --- # Laboratory 🧪 — Reef-the-spec + A↔B signing → the delegation drift receipt ## WHY (authored in Operator) The delegation itself should be **measured**, not trusted. The author room (actor) signs the spec as intent; the executing room (patient) signs delivered work; the real on-chip walk measures the drift = "did the room build what the spec asked." That makes the actor–patient pair the delegation subdivision, and dogfoods the signing mesh locally as a rehearsal for the internet-wide version. This is also what unblocks Builder's R6. ## REQUIREMENTS (falsifiable) - **R1 — reef-from-spec.** A command that compiles an arbitrary markdown spec → a reef seeded from *its own* vocabulary (NOT the generic 144-tile library). *Check:* feeding `builder-npx-underwriter-package.md` yields a reef whose anchors come from that spec. - **R2 — A↔B signing.** Node A (author room) ed25519-signs the reef/intent commitment; node B (executing room) signs the delivered-work payload. The two signatures + the drift receipt form one transaction. *Check:* two distinct host keys appear on the receipt. - **R3 — The REAL walk (HARD RULE).** Run the **real recursive on-chip ballistic walk** (`pmu-onchip --ballistic`, connectivity lattice, row→column→row recursion) with spec=intent, delivered-work=reality. **NEVER** the analytic `mode=converged`/diffusion shortcut, a diagonal/identity grid, a JS BFS, or Monte-Carlo-as-the-walk. Speed is a correctness signal (~14ms, not ~21s). *Check:* `tests/pmu-simulator/competence-walk-is-real.test.mjs` stays green; the walk propagates past ply 1. - **R4 — Drift receipt.** Output = a signed receipt stating whether the delivered work cohered with the spec (σ + verdict + triptych). *Check:* run Spec A as reef, Builder's package as payload → a signed σ. - **R5 — Local mesh dogfood.** Run the whole A↔B loop on this repo's rooms locally, as the rehearsal for the internet-wide mesh. *Check:* a local two-node transaction completes end-to-end. ## ACCEPTANCE Take this delegation set as the test: Spec A (reef/intent) signed by Operator-as-node-A, Builder's delivered npx package (reality) signed by Builder-as-node-B → the real ballistic walk produces a signed drift receipt with a σ that says whether Builder built what the spec asked. Respect the competence-walk HARD RULE; that's the whole differentiator.