f021777cfacbd2caf583cff836b5cfbb1d5e3fe8bb70e8384ba9ec4cdf5b8f33  index.html
96df8fba58b805093ddb6199c0ec058e36d07157c29b75c25af41351e90b27a8  app.js
# SUPERSEDED 2026-09-13T08:18Z: the three peer-envelope parse sites bypassed the
# fail-closed pollution guard (raw JSON.parse on peer-controlled bytes). Now
# routed through safeParse: decodeFrames framed path + both WebRTC dc.onmessage
# unframed fallbacks. Polluted frames are rejected at the parse boundary before
# the schema-id gate, counted via the existing framesErr counter, stream
# advances (no wedge). New hash:
b01b48638cf68f9475cc04de1d78af0d11eba0fda59e5ea781251073051f4e82  app.js
8b2436d177a54e3c0355894f380e27f4ae42bfb59c657c4a0d0c252206dc0dfc  sw.js
c9f4b8c0115a28db9da1c87a8bbd44ec3cb22ef03d02cc85f1ccb9b0fb9cece9  vendor/contract-schema-id-gate-1.0.0.mjs
# REMOVED 2026-09-11: fb03e6d12c59ae61dc6b22ff6148f67caf671f1d7625287b187d66617c5865d5  vendor/noble/ed25519.js
# (was a fake vendored stub claiming noble-curves 1.8.1 with zero references and no crypto;
#  real signing is WebCrypto Ed25519 in app.js. Exact bytes retained in goal hidden_files backups.)
40315fda22bf40bdb771a7003973cfc8683109ac44c34decc461bb280ddb4401  tests/check-mesh-registry.cjs
# SUPERSEDED 2026-09-11T15:20Z: false-pass detector hardened (3 evasion gaps closed:
# quoted keys, nested-brace literals, evidence:!0/ok:1 truthy spellings) + 14/14
# mutation-proven negative controls added. New hashes:
f8c6a03bc1441beae4afc5e9875b7620d19ac3fde1e1c3d0add15ec7c81bd780  tests/check-mesh-registry.cjs
0ad665969517b34f1b7a1bf74e2afb955de0fdbaa24479896592a97ed2351867  tests/check-false-pass-controls.cjs
# SUPERSEDED 2026-09-11T22:20Z: truthy-literal set widened (11 evasion spellings closed:
# hex/binary/octal/non-unit numerics, signed/exponent/bigint, non-empty strings,
# substitution-free templates, array/object literals incl. empty; falsy literals
# 0/0x0/''/false/null/undefined stay silent) via a proper depth-0 field tokenizer
# (replaces blankNestedSpans). Controls extended 14 -> 35. Schema v4 -> v5. New hashes:
ee42c39db21d0a6e0b7cdff47dc2ad8195827239cccefcc2a241fe01d2bfa63b  tests/check-mesh-registry.cjs
8b50fb203ccf68a14d6a6dd16c05935e793d3b8f09ef03c31b341e50b9013225  tests/check-false-pass-controls.cjs
# 2026-09-12T07:55Z: vendored trusted negative-control-branch-harness@2.0.0
# (reuse:test:dd825b4c4a6fa9eb51d2652f; manifest sha256 verified
# 454ec5b435d8382e40a7e890befc01d387fa68bb4ff1c6acfed0c06fcb058957)
# + mutation-proven negative controls for decodeFrames framed-path branches
# (drift-reject/corrupt-reject/fragment-defer/gate-once). app.js byte-unchanged.
454ec5b435d8382e40a7e890befc01d387fa68bb4ff1c6acfed0c06fcb058957  vendor/negative-control-branch-harness-2.0.0.mjs
# SUPERSEDED 2026-09-13T08:18Z: module now also extracts verbatim safeParse —
# decodeFrames in canonical app.js calls safeParse at the parse site, so the
# proof module must carry the guard too (else ReferenceError misfires as
# framesErr). New hash:
87f8b838e1073c146c063bb2cd757a7a623cbd05db2dbf8cb5eb43e10e43c20b  tests/test-decode-frames-negative-controls.cjs
d011f3ee55dbd54fb5cfabd93694ec75f1f7b7dabb095f12d6f2b6646149987d  tests/test-pollution-guard-negative-controls.cjs
b70cc2318d7466ef5d6b8f9814ec631e0a2a98e7cfb63de7a4fb27c2e459434e  tests/test-envelope-parse-guard-controls.cjs
# SUPERSEDED 2026-09-13T09:16Z: the three record-payload parse sites
# (initSerialParser char read, initSerialBT char read + notify) used raw
# JSON.parse on peer-controlled bytes. Now routed through the new value-safe
# safeParseRecord guard (parses first, then own-key-scans for exact
# '__proto__'/'constructor'/'prototype' keys — no raw-string pre-check, so
# free-text messages containing the literal '__proto__' string still parse).
# Exported on window.__MESH_REGISTRY__; new self-test entry
# 'pollution-guard-record-value-safe' (reject polluted + accept benign). New hash:
47e6bca0970a7026794a497cc1ede21c3222be4b34802ac629650d9c7a846679  app.js
e6dd302d824dde402ca0fea393f47ba1b064f212c725ba2ad2250d64e9629d26  tests/test-record-parse-guard-controls.cjs
# 2026-09-13: app.js one-line fix in safeParse — top-level `if('__proto__' in o)`
# was true for EVERY object (Object.prototype carries a __proto__ accessor), so
# safeParse rejected all parsed objects: loadVClock silently reset vclock to {},
# ensureKey deleted the stored Ed25519 keypair on every load, and local record
# signature verification returned false. Fixed to
# Object.prototype.hasOwnProperty.call(o,'__proto__'). Exact bytes before the
# fix retained in goal hidden_files backups/mesh-registry-pollution-fix-20260913T0325Z/.
# New test-pollution-guard-negative-controls.cjs: mutation-proven negative
# controls for the 4 reachable fail-closed pollution-guard branches (harness
# 4-step proof each: safeParse-string-precheck, safeParse-recursive-key-scan,
# safeSet-exact-dangerous-key, safeSet-substring-dangerous-key) + 16 plain
# assertions incl. regression pins for the in-operator fix. Top-level
# hasOwnProperty check documented as unreachable defense-in-depth (the
# substring pre-check always fires first).
# SUPERSEDED 2026-09-14T07:56Z: the 2026-09-13 safeParse always-reject fix
# ('__proto__' in o -> Object.prototype.hasOwnProperty.call(o,'__proto__'))
# was documented above without recording the new app.js hash, so the
# fingerprint control in tests/test-record-parse-guard-controls.cjs kept the
# stale 47e6bca0... pin and emitted false drift. Pin updated to the committed
# delta's hash (matches dev-cycle state afterSha256). New hash:
5576eac6aee1a03060874c2ae5cd61efba9e0bbe0ab8832f3ce442ff10da73f5  app.js
# 2026-09-19T02:46PDT dev-cycle round 55: round-54 raft-vote-request gate
# (validateVoteRequest) changed sw.js without recording the new hash; the
# 8b2436d1... pin above was stale. Round-54 hash:
eae44b78c130434dd01ac83de34020b39ad672fa46ed8884fa029e543103b305  sw.js
# 2026-09-19T02:46PDT dev-cycle round 55: fail-closed shape gate on the
# sw.js peer-cache-share boundary (validatePeerCacheShare): rejects malformed
# peer lists (non-array peers, null/non-object entries, bad did, bad age,
# bad from) with peer-cache-share-rejected ack counted in raftRejectedCount;
# accept path unchanged. New test
# tests/test-peer-cache-share-gate-controls.cjs (mutation-proven). New hash:
7e5b34c9740728da8176a1fc0bac9a3cb22e3d9ce4ee8ee017ddc0c0f938b685  sw.js
# 2026-09-19T07:16PDT dev-cycle round 56: fail-closed identity shape gate
# (validateIdentityTabId) on the sw.js tab-close / sync-lock-request /
# sync-lock-release boundaries: rejects missing/null/empty/non-string
# tabId with <boundary>-rejected ack counted in raftRejectedCount;
# accept path unchanged. New test
# tests/test-identity-tabid-gate-controls.cjs (mutation-proven). New hash:
82c040a70960035cb8a655e75193b542de947385e9b14db62b8bf8cc852ecef1  sw.js
# 2026-09-19T22:46Z: fail-closed identity shape gate (validateIdentityTabId)
# on the sw.js tab-announce / tab-heartbeat leader-election boundary: the old
# truthy-only `if(msg.tabId)` guard let truthy non-string tabIds into
# tabRegistry as junk keys, corrupting the lexicographic leader sort and
# fanning junk leader-election broadcasts. Rejections get explicit
# tab-announce-rejected / tab-heartbeat-rejected acks counted in
# raftRejectedCount; accepted body unchanged. New hashes:
91f5505c5b968566bbdaf40f4909500e167e19b30af82897e74a3fb0654e085f  sw.js
3f32c1db30965a7975404cb0d646e721bb0114ba3505831b3d6b321a961365aa  tests/test-tab-announce-tabid-gate-controls.cjs
# SUPERSEDED 2026-09-20T22:16PDT: dev-cycle round 65 durable outbox delta
# (mesh-registry): DB v4->v5 adds `outbox` store; relay receive paths (BC
# mesh-sync-relay + WebRTC relay) commit record merge + forward obligation
# atomically in one tx, stamp did on BC relay frames (admission gate admits
# them under the poster's real identity), replay pending rows on startup +
# 15s flush tick with TTL expiry / attempts cap / backoff. New files +
# re-pinned fingerprint. New hashes:
e846551a4ac88f26faa8f0bbf4a93c6d2637d07ad3407de33611c1e68d8e493a  app.js
5f998dfd99cd8de5debabfda11b3ed7a57b5b1487b77df28740a629356813a8e  tests/test-record-parse-guard-controls.cjs
7f094f926109c173641dc25aad2c7d9e944b0ba04300d8761a5e156d5ae363ef  tests/test-outbox-durable-relay-gate-controls.cjs
# SUPERSEDED 2026-09-20T22:16PDT (amend): relayForwardDurable racy-abort
# fallback wrapped in try/catch so a storage failure degrades to the
# pre-delta undelivered-relay behavior instead of an unhandled rejection in
# the message loop. New hashes:
29f2ac4cbca71fceafb5f7a1d56605fa2495b0e13185664220c97b7f724718e2  app.js
5f998dfd99cd8de5debabfda11b3ed7a57b5b1487b77df28740a629356813a8e  tests/test-record-parse-guard-controls.cjs
7f094f926109c173641dc25aad2c7d9e944b0ba04300d8761a5e156d5ae363ef  tests/test-outbox-durable-relay-gate-controls.cjs
# SUPERSEDED 2026-09-21T18:30PDT: verifyRecord split into verifyRecordDetailed
# {ok,crypto,method} with honest per-path semantics — the remote-did path was
# fail-open shape admission masquerading as signature verification, and the
# 50-peer Byzantine fuzz claimed cryptoVerified:true on that basis
# (false-signal; tamper rejection actually came from isValidRecord's own
# deterministic payload-hash binding). Result claims corrected to honest
# values; new deterministic gate harness pins the remote-shape boundary.
# New hashes:
6c1fa10a6ce3c4787789b53ead99d8b59a72d4301c304ef535fd6fcc7d9a72af  app.js
6920f2547a4d6fd27eacc70d078f4b3703c31eb4ac70d79aacca78e6bd91cc34  tests/test-record-parse-guard-controls.cjs
12189f31b76c73f464c14e99e50580cf89e1a7d53b310e8a5d70a8913289359c  tests/test-sig-verify-remote-gate-controls.cjs
# 2026-09-22T05:30Z: hash-chain fail-closed fix (verifyHashChain bafy-prefix guard removed) + new test-hash-chain-tamper-gate-controls.cjs + re-pinned record-parse-guard fingerprint. New hashes:
ad1f5e40fe0bc9b7741e3caec0f93c46275d477fee249d890632afd230f03802  app.js
65549804d3928b21ab0e141cdca09806d89201a49f40bf1ef958ab7a10b1cd23  tests/test-hash-chain-tamper-gate-controls.cjs
94a8b6e8487bec8beb3e4e608b04fd596a1289e0bcf144180e7bf7cf65abf186  tests/test-record-parse-guard-controls.cjs
# 2026-09-23T02:53Z: manifest drift audit - the five shipped files below had
# latest pins predating committed deltas (no CHECKSUMS append on those turns):
# app.js ad1f5e40 -> 59386cb8 (round 3971f3f59ac7, fail-closed probe guards in
# deterministicCheck) -> e01f4614 (round db9d481946e2, relay-party shape gate);
# sw.js 91f5505c -> b10070d6 (round 68af00d1b737, push-event did shape gate);
# tests/check-mesh-registry.cjs ee42c39d -> ec18b4a6 (deterministicCheck
# fail-closed probe change, unrecorded in round changedFiles, mtime 2026-09-17);
# tests/test-record-parse-guard-controls.cjs 94a8b6e8 -> 4c412bae (round
# f90ac55bb3f8, stale-pin repair); tests/test-outbox-durable-relay-gate-controls.cjs
# 7f094f92 -> 05c6e739 (round d7f246d1e8a8, outbox health observability).
# New: tests/test-checksums-freshness-controls.cjs - fail-closed freshness gate:
# parses the manifest's latest bare pin per path, honors # REMOVED exemptions,
# and fails when any pinned file is missing or mismatched, so this drift class
# can no longer accumulate silently. New hashes:
# 2026-09-23T09:58Z: app.js e01f4614 -> 9c1dbc9a (round 1b590870c708,
# fail-closed serviceUuid branch: removed || true fail-open in
# testBt9Ttl11GraphPreservationV82; new tests/test-bt-service-uuid-gate-controls.cjs
9c1dbc9a8f5cdb61a21e86b9460ecb2e46b9821ef724c31067f052cdb8240a62  app.js
b10070d64f3fc152dc870595fb9edb0923433996c824048c062f882b40476597  sw.js
ec18b4a6585b573b45b3ecb23059416301e8ea327d2fc651a3c8c7931152845e  tests/check-mesh-registry.cjs
# 2026-09-23T09:58Z: tests/test-record-parse-guard-controls.cjs 4c412bae -> 3939f982 (round 1b590870c708, app.js pin re-pin after serviceUuid fail-closed fix)
3939f982c029a495a4cc626ff16969a0303270c37363e88ffaa01e943925953d  tests/test-record-parse-guard-controls.cjs
05c6e73929da89a2173dce4944ae146de9f3a397faa71aabaef931628c6892ad  tests/test-outbox-durable-relay-gate-controls.cjs
52203ba34b20caaf48e82e0dc327105ebf442d706430df29626ac8b36fd8c6e7  tests/test-checksums-freshness-controls.cjs
# 2026-09-23T10:00Z: New: tests/test-bt-service-uuid-gate-controls.cjs -
# mutation-proven fail-closed controls for the serviceUuid preserved branch
# (|| true fail-open removed from testBt9Ttl11GraphPreservationV82); pins source
# lines and runs positive + two drift mutations against verbatim-extracted app.js.
8aa707ee06dcec250fa178e4de6500529c1f599bfd41ec57cffe18ec50c8a4c6  tests/test-bt-service-uuid-gate-controls.cjs
# 2026-09-23T12:40Z: fail-closed outbox expiry/exhaustion (outboxExpired/outboxExhausted treat non-finite createdAt/ttlMs/attempts as expired/exhausted; outboxBump normalizes the attempts counter) + 17 new negative-control assertions in the relay-gate suite. New pins:
ba36fbdb414c4ab4434dbb0ab6cd83017fc46ee02d5009f124235a4fd1a19170  app.js
764ce6142c91881db73e3d76154f136892cda286c7b7eb2184fb34569dfb46ed  tests/test-outbox-durable-relay-gate-controls.cjs
# 2026-09-23T12:45Z: app.js pin 9c1dbc9a -> ba36fbdb for the fail-closed outbox expiry/exhaustion delta (round 99116779f57d).
831dddf4b592f9d95cb7f39c03bed06d246b719178999e7f41bc0f76bd3865fa  tests/test-record-parse-guard-controls.cjs
# 2026-09-23T15:30Z: New: tests/run-gate-controls.cjs - single entrypoint
# for the 36-file gate/mutation-controls family (round 30b5646bc10b):
# enumerates tests/, runs each with a 120s per-file timeout, fails loudly on
# non-zero exit/signal/timeout, exits 2 (never green) on zero files discovered.
# Mutation-proven: empty dir -> exit 2; exit-1 child -> exit 1 naming the file.
e12d8dd5c8287637c37971a7ee4b9409083c0ad9a15346f0973acbbb9d18c5a9  tests/run-gate-controls.cjs
# 2026-09-23T16:35Z: fail-closed relay nonce-shape gate (validateRelayNonce at the
# durable forward-obligation admission point; both receive sites only key the
# seen-cache on non-empty string nonces; nonce-less frames stay merge-only) +
# mutation-proven tests/test-relay-nonce-gate-controls.cjs (28 assertions).
42a178db8d49b6f9ec6ccae2ea35f69b5419d22fcf30894098f525406be48dd9  app.js
801e246d0602cd30d026ec359147263eda4dc1b4edad48b6cd7bcef1d2c04b3f  tests/test-relay-nonce-gate-controls.cjs
# 2026-09-23T16:42Z: app.js pin 42a178db... re-pinned inside
# tests/test-record-parse-guard-controls.cjs for the fail-closed relay
# nonce-shape gate (round 0791b9288b67).
b020b5d9e51e265294e150eaa62dbbf6b137c546702dd7d04be05c2ba967789f  tests/test-record-parse-guard-controls.cjs
# SUPERSEDED 2026-09-23T22:23Z: fail-closed re-emission shape gate on the
# durable outbox (outboxRowEmissible composes validateRelayParties +
# validateRelayNonce; forwardRelayRow refuses to emit junk-shape rows,
# flushOutbox deletes them counted in syncStats.relayReemitRejections;
# pre-gate durable rows with junk parties/empty nonce were re-sent and
# retried until the 5-minute expiry despite every receiver's admission gate
# rejecting them). Also: relayReemitRejections added to the syncStats
# initializer and outboxRowEmissible pinned in the outbox-fns self-test
# entry; fingerprint re-pinned in
# tests/test-record-parse-guard-controls.cjs; new mutation-proven
# tests/test-relay-reemit-shape-gate-controls.cjs (40 assertions). New hashes:
14f32509690a8be9547ee1d35cc3d666fa203601e701144653d19237f39be628  app.js
71e2b5f79b43230788d644b6682067759e65d7f44d6a817e7b21ff67ff067d43  tests/test-relay-reemit-shape-gate-controls.cjs
8f3216d2fee6b4ccf57c6460867f539ee41c462504bb4ef3aa297b5d4943483e  tests/test-record-parse-guard-controls.cjs
# 2026-09-24T08:30Z: multi-tab leader liveness - stale-leader eviction
# (ensureLeaderElected: a known leader with no heartbeat for >10s, or
# unprovable liveness, is dropped from the candidate set mirroring
# tab-close and the lowest surviving tab is elected; wired into the
# 3s election tick replacing the null-only fallback) + lowest-wins
# leader-heartbeat adoption (only a claimant not higher than the
# known leader is adopted; fixes the late-join dual-demotion
# collapse to leaderless). leaderAliveAt stamped on elections and
# adopted heartbeats. New TABCOORD_LEADER_LIVENESS static check in
# tests/check-mesh-registry.cjs; new mutation-proven
# tests/test-leader-stale-eviction-gate-controls.cjs (2 branches,
# 24 assertions); fingerprint re-pinned in
# tests/test-record-parse-guard-controls.cjs. New hashes:
a1448b27b01ce5f688a21660925d518d6f4998641be48fe9680671f8f3755358  app.js
2bc1f1b03bfd5fe9f3ab7adf30c55085b54ecc00b7c1b3569d519c124e3ef807  tests/check-mesh-registry.cjs
c46be802a36be6dbea4af1f85859d3903f09da364ae7612c8070402117df7218  tests/test-record-parse-guard-controls.cjs
1fd156307a637fc37702cbd374cfe98867ab14b4cb666e5603c1c3261677b33b  tests/test-leader-stale-eviction-gate-controls.cjs
# 2026-09-24T10:55Z: GC-tombstone resurrection counter persistence -
# verifyResurrectionBlocked: blockedResurrections now incremented on EVERY
# blocked:true branch (invalid-sig, version, vclock, sigValid) and written
# back to the stored gcProof row; before, the version branch computed an
# ephemeral returned-only blockedCount and no branch persisted, so the
# stored counter stayed 0 forever. New mutation-proven
# tests/test-gc-resurrection-block-count-gate-controls.cjs (21 assertions,
# in-memory weakened mutant proves the persistence assertion non-vacuous);
# fingerprint re-pinned in tests/test-record-parse-guard-controls.cjs. New hashes:
71066602cd1266739a2e1c72ddb3431c791051015cdff7dfe5f8f18961429970  app.js
df98861bb23be04e6b48951cf652db9160d179cc4dfc92d7f826e92b0dd3de1f  tests/test-record-parse-guard-controls.cjs
7d85159365e34346e3f1a8aa7f9e38438d87042037c087f5919de5feae173881  tests/test-gc-resurrection-block-count-gate-controls.cjs
# Pinned 2026-09-24: fail-closed relay TTL parse (relayReceiveTtl at
# the two mesh-sync-relay receive sites; `ttl||5` resurrected
# exhausted ttl:0 frames to 5 hops - unbounded relay loop; new
# mutation-proven tests/test-relay-ttl-failclosed-gate-controls.cjs).
# fingerprint re-pinned in tests/test-record-parse-guard-controls.cjs.
# New hashes:
bca1f5e46a51bbb0be389d9ba79a2796e0071df3ffd1e16a545836b0b3d995ec  app.js
# New hashes:
fb24c0f7a2385aa112343ec0fb23331569dffcdc68fc90f7856f889584afd946  tests/test-record-parse-guard-controls.cjs
bb6cbd402a3cd254ba6f8374d0c7b3b917ed8bb18535b4809cf48926641ef985  tests/test-relay-ttl-failclosed-gate-controls.cjs
# 2026-09-25T01:24Z: fail-closed data-sync relay dedupe identity (dataSyncRelayKey:
# legacy mesh-sync-data relay site keys seen-cache dedupe on the helper;
# nonce-less frames relay without cache suppression instead of collapsing
# onto 'relay:'+did+':'+'':<count>; outboxSeedSeen only seeds
# non-empty-string nonces) + new mutation-proven
# tests/test-datasync-relaykey-gate-controls.cjs; fingerprint re-pinned
# in tests/test-record-parse-guard-controls.cjs.
# New hashes:
a11d19f86920dbabc31a498e9cb4439c2ad8a004509ea2db2fa958e4e1b7c3a8  app.js
6edbd0bb88846403e2b6ca1d0215ed466de74d07f4f43510042a519f8541834d  tests/test-record-parse-guard-controls.cjs
942a2fe5016066a08bfa8b4a0a5bb61c08e72821f999a8de24d2f09eb66c68b7  tests/test-datasync-relaykey-gate-controls.cjs
# 2026-09-25T12:29Z: fail-closed hop-count parse (relayReceiveHop:
# BC mesh-sync-data relay site stamps hop:relayReceiveHop(msg)+1; string/
# negative/NaN/fractional hops parse to 0 instead of string-concatenating
# ("5"->"51") or surviving truthy; self-check covers the helper) + new
# mutation-proven tests/test-relay-hop-failclosed-gate-controls.cjs;
# fingerprint re-pinned in tests/test-record-parse-guard-controls.cjs.
# New hashes:
b42a252145702cadbb822314d48bb5ff1311e64eca0f881fa839ea9c00cd2442  app.js
7a4623a918ebed06072b07ce82992706c3aec94707cc5922f72e7d246c387c4c  tests/test-record-parse-guard-controls.cjs
e380a88967b1ff1ff9f3e8b07fcc4e535614e977184aa25ed955b5366d7ceac7  tests/test-relay-hop-failclosed-gate-controls.cjs
# 2026-09-26T04:26Z: fail-closed records parse (relayReceiveRecords:
# both mesh-sync-relay receive sites (BC bc.onmessage, WebRTC answer-side
# dc.onmessage) gate records through the helper - truthy non-array records
# parse to null (counted in syncStats.relayRecordsRejections), never reaching
# crdtMerge's spread or relayForwardDurable's admission gates; self-check
# covers the helper) + new mutation-proven
# tests/test-relay-records-failclosed-gate-controls.cjs; fingerprint re-pinned
# in tests/test-record-parse-guard-controls.cjs.
# New hashes:
b064ba7526618c48dabb8603ddb9abb92b693cfc52f70d926a642b9d2d15f3e0  app.js
09e66fa7d289eafd7070c7dc92cf97abed29074d775eb68588365e7a4554e20f  tests/test-record-parse-guard-controls.cjs
0aad9377cd2456fbc0753c186f0fdea49ceea51d48394e3dd3ad109de3d0567f  tests/test-relay-records-failclosed-gate-controls.cjs
# 2026-09-26T21:30Z: fail-closed vclock shape gate at the merge-dominance
# decision boundary (normalizeVClock: only finite numbers >= 0 survive;
# both crdtMerge conflict compare and verifyResurrectionBlocked resurrection
# compare route through the gate, so a hostile {did:Infinity} vclock can no
# longer manufacture dominance and a string-versioned vclock no longer
# misreports 'equal'; self-check pins the helper; new mutation-proven
# tests/test-vclock-failclosed-gate-controls.cjs (44 assertions); sandbox
# closures in test-crdt-merge-determinism-controls.cjs and
# test-gc-resurrection-block-count-gate-controls.cjs extract the new helper;
# fingerprint re-pinned in tests/test-record-parse-guard-controls.cjs.
# Also re-pins tests/test-relay-ttl-failclosed-gate-controls.cjs, whose bytes
# changed 2026-09-26 07:59 PDT under an earlier run without a manifest
# re-pin (file verified: read-only negative-controls, its own assertions
# pass, no writes/network - legitimate drift, re-pinned not reverted).
# New hashes:
516cfcbd574221f0ab181033c092b1ae85a7ecfef61eecd8d69bb05044b1b767  app.js
d198157005d2d8aae4f8641228c44f18cb389ea8ba2011e38bf06d91de459e06  tests/test-vclock-failclosed-gate-controls.cjs
3824df5ea228df5cdedcf3887548dea7bfa5957ca393682fbbe38ee339f6b79e  tests/test-record-parse-guard-controls.cjs
ad9062623b8138da44ecc10a8a0c83de8fd32a6eb80ed7c176acd5c40f8f3a5a  tests/test-crdt-merge-determinism-controls.cjs
d9b64cd0858a4d69e4f1989340fa976f95f81c6e948e3846f8f84ba145843e3c  tests/test-gc-resurrection-block-count-gate-controls.cjs
bfffeb7fb011e957cbba210fb2d9a7aae1254fcc8ece03e5522ee42f1c405d85  tests/test-relay-ttl-failclosed-gate-controls.cjs
# SUPERSEDED 2026-09-26T17:30PDT: fail-closed BT-flood TTL gate - the two BT
# GATT receive sites (char read + notify) are hoisted onto the new
# btFloodReceiveTtl(obj) helper (finite number honored verbatim, non-finite
# keeps the established 11-hop btFlooding.ttlDefault; JSON-text decode
# paths mean Infinity was not transport-reachable there, so the helper is
# defense-in-depth + invariant pinning), and the exported btMeshFloodRelay
# entry now drops non-finite TTLs outright before the ttl<=0 check
# (a non-finite ttl previously relayed FOREVER: Infinity-1 is Infinity).
# New mutation-proven tests/test-bt-flood-ttl-failclosed-gate-controls.cjs
# (22 assertions); fingerprint re-pinned in
# tests/test-record-parse-guard-controls.cjs.
# New hashes:
61a361cea6ba87b81424e1c10cab9f19629d5bb243ec50ecd5ff27a16dcc6451  app.js
0a885096b8af01eed6fa29d796e0636bfabe7e7470cf3650ee8e9a16e1457d2a  tests/test-bt-flood-ttl-failclosed-gate-controls.cjs
7f7eedff46ea1d4c5bffa094b55bce59783fff30a36b2fd8bc99be126e7d668f  tests/test-record-parse-guard-controls.cjs
# 2026-09-26T21:30Z dev-cycle round 92 (mesh-registry): answer-side framed
# records relay site hoisted onto the shared relayReceiveTtl gate (last
# inline relay-TTL parse removed; webrtc-offer envelope ttl fallback gone).
# tests/test-recvbuf-consume-on-decode-answer-controls.cjs now injects the
# verbatim relayReceiveTtl into the extracted handler sandbox.
# New mutation-proven tests/test-answer-framed-ttl-failclosed-gate-controls.cjs
# (26 assertions); fingerprint re-pinned in
# tests/test-record-parse-guard-controls.cjs.
# New hashes:
a5ac14fe026a695f750ff68000b16db2faca2eb2949a6958edcae6659d034fcb  app.js
c6727dbdb8c5da8ae73f911b4dba7ae9179dc06d30aea9c06a88db9c3869342a  tests/test-answer-framed-ttl-failclosed-gate-controls.cjs
1dd8dc0a7e07f4c11bee8d24e0982ff3d18f27a3c5ae321da9181afafd206e24  tests/test-record-parse-guard-controls.cjs
6f32f801d3ae03db668ce71010964639cdc1e6af13a8f47f1920aa5fd944d8ac  tests/test-recvbuf-consume-on-decode-answer-controls.cjs
# 2026-09-27T06:55Z dev-cycle round 93 (mesh-registry): fail-closed records
# parse on the last five truthiness-only records-ingest sites - the offer-side
# framed `type==='records'` branch, the offer-side framed legacy branch, the
# offer-side unframed fallback, the answer-side framed records branch, and the
# answer-side unframed fallback are all hoisted onto the shared pure gate
# relayReceiveRecords (present Array honored verbatim; anything else parses
# to null: no merge, no ack, no write; counted in
# syncStats.relayRecordsRejections). A truthy non-array records previously
# threw inside crdtMerge (swallowed by the handler's outer catch with no
# drift signal) or was silently char-iterated (strings). Live senders stamp
# Array records, so live sync behavior is unchanged. The BT GATT notify
# record-payload path (if(obj.records){ ... crdtMerge(local,obj.records) })
# is a separate transport with its own pollution guard and stays out of this
# delta.
# New mutation-proven tests/test-dc-records-failclosed-gate-controls.cjs
# (37 assertions); fingerprint re-pinned in
# tests/test-record-parse-guard-controls.cjs.
# New hashes:
faa173d6829a0b901776b71b17098d29424fa6c7ea2772ccaf8ab36efc1e7fbf  app.js
4d7a6973c7b31cb0d1ae33db62678c3a5756efd26adb5b5f7e41f51d44c577c8  tests/test-dc-records-failclosed-gate-controls.cjs
# 2026-09-27T06:58Z dev-cycle round 93 (mesh-registry): re-pin
# tests/test-record-parse-guard-controls.cjs - its in-file APP_JS_SHA256
# fingerprint follows the app.js delta above (the only change in that file).
# New hashes:
4b4d8e3b212464fcd98bde5ce090bc871638935582cb1ed50da6689c4066fcef  tests/test-record-parse-guard-controls.cjs
# 2026-09-27T07:05Z dev-cycle round 93 (mesh-registry): re-pins for the
# sandbox-evolution of the round-93 delta - the recvbuf/consume-on-decode
# handler sandboxes now inject the verbatim relayReceiveRecords gate (the
# round-92 relayReceiveTtl precedent), and the relay-records structural pin
# counts all seven gated receive sites (was the relay pair alone).
# New hashes:
d8a0c71f222b6219b1273e6343ce7a79bde0e790a0ddd922f5a44998494fae64  tests/test-relay-records-failclosed-gate-controls.cjs
e240bb59f441d5e27f195fc8a4d344719cb52e21343b83c516025b6e49f71f3e  tests/test-recvbuf-consume-on-decode-answer-controls.cjs
# 2026-09-27T08:30Z dev-cycle round 94 (mesh-registry): fail-closed records
# admission on the answer-side framed `records` relay branch. The branch
# parsed records through relayReceiveRecords for the merge but re-emitted
# RAW f.records to other peers (junk amplified hop by hop); new pure helper
# answerRecordsRelayAdmissible(f, records, ttl) (finite-only TTL, relayed
# flag, gated-records) now admits the relay, and the ack + per.recv
# consumers use the gated array. New hashes:
67c18f2ecd5b5897601956572f2f2be961b6967f07c438531a06b9f2a99ce1e3  app.js
# 2026-09-27T08:30Z dev-cycle round 94 (mesh-registry): re-pin
# tests/test-record-parse-guard-controls.cjs - its in-file APP_JS_SHA256
# fingerprint follows the app.js delta above (the only change in that file,
# round-93 precedent).
# New hashes:
be1177f7179f5acba76bee9dd4ab2bdab67988830058511029ea22c4106b3f52  tests/test-record-parse-guard-controls.cjs
# 2026-09-27T08:30Z dev-cycle round 94 (mesh-registry): re-pin
# tests/test-recvbuf-consume-on-decode-answer-controls.cjs - the answer-side
# handler sandbox now injects the verbatim answerRecordsRelayAdmissible gate
# (round-93 relayReceiveRecords precedent); without it the extracted handler
# throws ReferenceError inside its outer catch and the framed-relay-ack
# control goes red for a harness reason, not a product reason.
# New hashes:
6019bd8cc0a260225ef3b8bef61e8b33e9728a2b4e82a54e37ddf0d5051c3d72  tests/test-recvbuf-consume-on-decode-answer-controls.cjs
# 2026-09-27 relay-vclock-emission: fail-closed vclock admission at the relay
# emission boundary. The three relay re-emission sites stamped the remote
# frame's vclock verbatim into the next-hop frame (BC mesh-sync-data relay
# `vclock:msg.vclock`, BC->WebRTC records relay `vclock:msg.vclock`,
# answer-side framed records relay `vclock:f.vclock||localVClock`), so a
# tampered peer's junk vclock hopped peer-to-peer for up to TTL hops. New
# pure helper relayForwardVClock routes all three sites through
# normalizeVClock (identity on live plain-object integer-counter vclocks;
# absent/non-object/all-junk falls back to localVClock, the 2336 site's
# historical fallback, now uniform); added to the in-app self-check static
# list. Sibling suites updated: test-recvbuf-consume-on-decode-answer
# (verbatim inject relayForwardVClock+normalizeVClock), exact-string pin in
# test-answer-framed-relay-records, app.js fingerprint pin in
# test-record-parse-guard. New suite
# tests/test-relay-vclock-emission-gate-controls.cjs (19 assertions:
# verbatim extraction + mutation controls + structural pins). Full gate
# sweep green after sibling updates. New hash:
f91b0c7f01a9b46a548e55397db8977a9ee0ccf52734a5133db3e065fd44b577  app.js
# 2026-09-27 relay-vclock-emission (sibling suite updates): app.js fingerprint
# pin re-pinned after the relayForwardVClock delta; verbatim-inject
# normalizeVClock+relayForwardVClock into the answer-side harness module.
# New hashes:
a69f46f38d6c60c5e371025a50dd901edfa445e9ca65a33b37a8264cb28f3dd7  tests/test-record-parse-guard-controls.cjs
35ef9b81ee7dd35a1f5a234a23cbe044a4ef0844c0379a465587ba918056763c  tests/test-recvbuf-consume-on-decode-answer-controls.cjs
# 2026-09-27 dead-decl-removal: removed the never-referenced pendingAcks Map
# declaration from app.js (line ~1838, "msgId -> retry count"): static audit
# of all 141 app.js functions plus sw.js and every tests/*.cjs harness showed
# exactly one occurrence of the name (the declaration itself), so no caller,
# writer, or test depended on it. Simplification delta: no behavior change.
# New hash:
fb46432400254fad1fe84ac243770dd78b9d66b58a746834daac1dce025db538  app.js
# 2026-09-27 dead-decl-removal (sibling re-pin): the app.js fingerprint pin
# in tests/test-record-parse-guard-controls.cjs was re-pinned after the
# pendingAcks removal moved app.js f91b0c7f... -> fb464324... New hashes:
879f22ca7ab01c975cc1630da0fe86b743ca17bb7ded91f074607d52f62bbcc1  tests/test-record-parse-guard-controls.cjs
# 2026-09-27T14:55Z: BC mesh-sync-data receive branch now parses records
# through relayReceiveRecords (fail-closed shape gate) and routes merge,
# stats, ack, seen-key, and both re-emission paths through the gated Array -
# no raw records:msg.records re-emission remains. Pin updates on three
# sibling controls tests whose byte pins encoded the old shape, plus the
# new test-datasync-records-failclosed-gate-controls.cjs.
6c966c267612e476e63c2e144275607fa7390b50fb017b0cb8993b9d758a7865  app.js
2ae0efc7a36175042c810a4f4b727ba073dc749d8132b7ef05ce4bb6c1e11f43  tests/test-datasync-relaykey-gate-controls.cjs
59b706a2222a4622c49b7f493f4cd9906af16e1fb7b3d3f3dbb3ad7e58ee36d3  tests/test-relay-records-failclosed-gate-controls.cjs
3118843d701c2d6d1375be8e256d9c4cd5d4eb5c9b1a560596d0c2ddfe372f98  tests/test-dc-records-failclosed-gate-controls.cjs
6103c0d2b09e1c895286ab808c58f30889cc4d7d64ff14bf56e3788b9150d7e0  tests/test-datasync-records-failclosed-gate-controls.cjs
# 2026-09-27T16:51Z per-did sync-request rate gate: mesh-sync-request
# receive branch now routes through admitSyncRequest (pure 3-arg helper,
# module-level per-did budget Map) before idbGetAll/BC broadcast;
# rejected requests counted in syncStats.syncRequestRejections. The delta's
# commit did not append a pin, so app.js drifted past its 6c966c26... pin
# (test-checksums-freshness failure 2026-09-27T18:46Z probe). Re-pin to the
# committed bytes.
05770d9f6eb5de1c73ad1c7c72dcb01b4aa43e9f76efeee35886ca959cb6e2d7  app.js
# 2026-09-27T18:46Z pin-lag repair: tests/test-record-parse-guard-controls.cjs
# carried the fb464324... app.js fingerprint pin while app.js had moved
# through two committed deltas (6c966c26..., 05770d9f...). Re-pinned the
# fingerprint (and its history comment/check name) to the committed bytes;
# this sibling pin update is the control file's own new byte identity.
5bcfd6a3be8819892eb5dfffe31f8f2cf1b5681150d0151958eac7cd364843d3  tests/test-record-parse-guard-controls.cjs
# 2026-09-27T20:55Z: fail-closed BT-flood records shape gate (notify branch
# now parses through the shared relayReceiveRecords gate before dedupe
# recording; present non-array records drop counted via
# syncStats.btFloodRecordsRejections, merge/relay use the gated records.
# New hash:
7250fed13674a21a52e1ee9b58e2e17efc5c061426e8bcb351266212f53686d5  app.js
db7bda55091ba732518a737ad8d0b29addd9d571cd02b41fca799b6ffff77efc  tests/test-bt-flood-records-failclosed-gate-controls.cjs
# 2026-09-27T20:58Z: re-pin after BT-flood records-shape gate delta -
# test-record-parse-guard-controls.cjs re-pinned app.js 05770d9f... ->
# 7250fed1...; test-dc-records-failclosed-gate-controls.cjs updated to
# expect 3 relayReceiveRecords(obj) call sites (the new BT notify gate).
aa6273ba7f93451ac5e6cd6e5c441627809fad72b43d91ea6fc105a1319491c6  tests/test-record-parse-guard-controls.cjs
7a0d04304198f8966742c0ea354072ebc45078bfbd3a57889b8e6ce1bcc486bf  tests/test-dc-records-failclosed-gate-controls.cjs
