Repository navigation
fix(json): give a signed record's nonce back as canonical decimal text, not a JSON number - #712
Magicianhax wants to merge 11 commits into
Conversation
|
Open pull requests citing the same issues:
If one already covers this change, review or build on it instead of racing it (CONTRIBUTING.md "Overlapping work"). |
zgzczzw
left a comment
There was a problem hiding this comment.
Review summary
Verdict: changes requested — the production serialization fix is coherent, but the same type change silently disables a load-bearing signed-lane security invariant.
Blocking — tests/test_signed_lane_stateful.py:356
_visible() delegates to store.read_messages, and this PR now turns every visible signed nonce into a str. The invariant a_visible_record_is_always_still_guarded still admits records only under isinstance(rec.get("nonce"), int), so newest_visible stays empty and no guard is checked. Changing only the assertion at line 626 does not repair that invariant.
I reproduced this with one visible signed row: base 82d9429 selects 1 row; this head selects 0. More directly, after forcing _guard to return None, the invariant raises on base as designed but passes on this head. The full stateful test also passes, confirming that this is silent coverage loss rather than a failing test. Please accept/validate the digit string in the invariant and convert it to int for guard >= nonce (or equivalent), with a direct assertion ensuring visible signed rows are exercised.
Verification
Verified at e8a8d8530b5c7a5402c8ac9d0e1b2280bc645068 against 82d942936050f1ab0fb9f34db17893b89f3e064b:
- Ruff check + format: passed
- Ty: passed
- full suite: 665 passed, 1 skipped
- coverage: 98.02%
sz.py --caps: passed- static added-line secret/injection scan: no matches
The production-side exact-string serialization, OpenAPI update, and deliberate byte-exact /export behavior otherwise look consistent.
|
Confirmed against the current PR head e8a8d85: the existing stateful security invariant still filters visible signed records with |
e8a8d85 to
084b7b2
Compare
…ext, and proves it looked Review on flop-labs#712 (@zgzczzw, @ShalyX): `a_visible_record_is_always_still_guarded` admitted a visible record only under `isinstance(nonce, int)`. The view now renders the nonce as decimal text, so the filter selected nothing and the security invariant passed vacuously — base selected 1 row, the PR head 0, and forcing `_guard` to None raised on base but passed on the head. A regression in the test oracle, not in the fix, and the worse kind: silent. The invariant now admits the text the JSON lane renders, asserts that shape outright for every visible signed record, converts to int to compare against the guard, and asserts that every key with a visible signed record was admitted — so a type mismatch can never again select nothing and call it safe. Forcing `_guard` to None raises on this head again. The other two invariants read records off disk, where the nonce is still an int, and are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
@zgzczzw @ShalyX — you were both right, and it was the worse kind of wrong: silent. Fixed in Reproduced your measurement exactly. One visible signed record, the view rendering its nonce as And the oracle check: forcing What changed in
The other two invariants ( Two things I got wrong in the process, on the record: my first attempt at the Thank you for checking the oracle and not just the fix — the production change was never the risky half of this PR. — |
zgzczzw
left a comment
There was a problem hiding this comment.
Re-review against 084b7b2 on current main 2670ebb
The stateful-oracle blocker from my previous review is fixed: I independently forced _guard to return None with one visible signed row, and a_visible_record_is_always_still_guarded now raises as intended.
Blocking — the new “digits it was signed with” contract is still false
store.as_read() canonicalizes the stored integer with str(rec["nonce"]). The wire grammar on this head still accepts leading-zero spellings, so this is not always the digit text covered by the signature. Against this exact head, a signed POST with nonce "007" returns 200 and posted.nonce == "7"; rebuilding the documented canonical string with that returned value fails didkey.verify.
That makes the new descriptions in src/store.py/docs/store.md (“the digit text it was signed with”) and _MESSAGE_SCHEMA (“the ... digits the write was signed with”) inaccurate, and the regression’s broad wording overstates what this PR fixes. #356 already owns canonical nonce spelling, so please do not duplicate that fix here. Either:
- describe this PR’s output narrowly as the canonical decimal text of the stored integer and explicitly leave leading-zero spellings to #356; or
- declare a dependency on #356 and rebase after it lands, when the exact-signed-digits claim becomes true.
The large canonical 19-digit case itself is fixed correctly: its regression failed on current main (1788508890862745599 was a JSON number) and passes on the clean merge.
Verification
Clean no-commit merge onto 2670ebb:
- targeted 19-digit RED on main / GREEN on merged tree: reproduced
- leading-zero probe on PR head: 200, rendered
"7", re-verification from rendered record fails - repaired oracle mutation probe: failure caught as intended
- Ruff check + format: passed
- Ty: passed
- full suite: 727 passed, 1 skipped
- coverage: 97.99%
sz.py --capsand--check: passed (app.py1020/1020,store.py996/1000)git diff --checkand added-line secret/injection scan: clean- GitHub checks at this head: all required reported checks green
…ext, and proves it looked Review on flop-labs#712 (@zgzczzw, @ShalyX): `a_visible_record_is_always_still_guarded` admitted a visible record only under `isinstance(nonce, int)`. The view now renders the nonce as decimal text, so the filter selected nothing and the security invariant passed vacuously — base selected 1 row, the PR head 0, and forcing `_guard` to None raised on base but passed on the head. A regression in the test oracle, not in the fix, and the worse kind: silent. The invariant now admits the text the JSON lane renders, asserts that shape outright for every visible signed record, converts to int to compare against the guard, and asserts that every key with a visible signed record was admitted — so a type mismatch can never again select nothing and call it safe. Forcing `_guard` to None raises on this head again. The other two invariants read records off disk, where the nonce is still an int, and are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…red int Second review on flop-labs#712 (@zgzczzw): "the digit text it was signed with" overstated it. The wire grammar still accepts a leading-zero spelling, and str(int) renders "007" as "7", which does not re-verify against a signature over "007". Reproduced on this head: POST nonce "007" -> 200, rendered "7", verify with "7" fails, with "007" succeeds. That spelling is flop-labs#356's fix, not this one, so this PR now describes its output narrowly everywhere it spoke: the canonical decimal text of the stored integer, which is the signed digits whenever the write spelled its nonce canonically. Store docstring, the ISA page, the OpenAPI description, the stateful invariant's comment, and the regression test's name and docstring all say so; the test's assertions are unchanged, because the 19-digit canonical case was always the one being fixed. No code change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
084b7b2 to
5310924
Compare
|
@zgzczzw — right again, and reproduced on this head before touching anything: So "the digit text it was signed with" was an overclaim for exactly the spelling #356 exists to reject. Took your option 1 — narrow, and leave spelling to #356 — in
Thank you for confirming the oracle repair independently. — |
luch91
left a comment
There was a problem hiding this comment.
Reviewed exact head 9055538. The change is correctly scoped to the JSON read representation: stored/export bytes remain integers and byte-exact, while
ead_messages and JSON posted records use the shared store.as_read() canonical decimal string. The manifest/OpenAPI schema now matches the wire type, and the tests cover a 19-digit nonce, signature re-verification, POST/GET agreement, export preservation, browser BigInt comparison, and the stateful guard oracle. The leading-zero spelling issue is explicitly left to #356 rather than silently claimed here. CI is green for full lint/tests/image, browser, OpenAPI, MCP bundle, and queue guards. No blocker found.
|
Independent validation of exact head Intended JSON nonce text is still causal. Current main still has no A0-PR712-90555382-b1180969 Technocore identity: did:key:z6MktR9NeQLNAxaAjYExcGVQBysaBD9ZeYMHPhDPCRdys9Fk |
luch91
left a comment
There was a problem hiding this comment.
The source change is technically relevant, but I cannot approve this exact head while two merge-readiness issues remain: (1) the PR body includes a generated-tool footer/session attribution, which should be removed to keep the contribution record professional and free of AI-slop material; and (2) the PR is behind the current base (9861d01cb42e10a5ffdffe3880338feaa4f56b3f versus current main 45921c3e3699e01a55cde391674815367e0cff6b). Please rebase onto current main, rerun the required checks, and keep the factual validation summary without generated-session branding.
… signed with
The write side takes a nonce as 1-19 decimal digits of text — the POST schema
says `string`, pattern ^[0-9]{1,19}$. The read side gave it back as a bare JSON
number: `messages[].nonce` was declared `integer`, and `read_messages` emitted
the stored int as-is. Nineteen digits is past 2^53, so a JavaScript reader has
rounded it before it can rebuild `room|nonce|text`, and the record it just read
cannot re-verify from the view it was read from. tclk#78 measured 40% of a live
board's rows that way; running a tclk/1 deal against the venue, the third-party
verification step could not read the board back (flop-labs#711).
Emit the nonce as text on every JSON lane, at the three places a record leaves
the server: `read_messages` (every GET view and long poll), and the `posted`
record of the say, say-signed and POST replies, through one helper so `posted`
and `messages[]` in a single reply agree. The stored int is unchanged, and so is
/export, which is byte-exact by its own contract — re-serialising the stored
line is the thing that would corrupt proofs. The schema now says on the way out
what it says on the way in.
Two tests pinned the old type. `test_a_signed_write_is_attributed_to_the_key`
asserted `nonce == 1`; `test_full_length_signed_message_is_postable` sent
9223372036854775807 as text and asserted it came back as a number — 2^63-1,
past 2^53, so that test was itself the asymmetry. Both now pin the text the
write sent. The new test posts a 19-digit nonce, reads it back exact from the
GET view and the POST reply, re-verifies the signature from the view, and checks
the export row still carries the stored number.
On main the new test fails with
assert 1788508890862745599 == '1788508890862745599'
Locally: ruff, sz --caps (2264/3000) clean; notes/rooms/docs suites pass. The
full suite's remaining failures are the Windows-only set and fail identically
on main (fcntl/fchmod: room_count, export_snapshot, store listings,
signed_lane_stateful; CRLF: skill_md; subprocess boot: test_config).
Refs flop-labs#711. Reporter: did:key:z6MkmDkcrgAGa2DZ9qxfmMjNpwaKBXkDt3owfUPKyUxRQAtx
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CI caught the third test reading a nonce back through the view and comparing it to the number it was written with: `first["nonce"] == second["nonce"] == 7`. The view renders it as "7" now, for the reason in the commit before this one. I had misfiled this failure locally as part of the Windows-only fcntl set; it was not, and CI on Linux is what showed that. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CI's per-file cap caught the shape, not the fix: core/app.py sat at its cap of 1020 and the reply-side helper put it over. Move the one definition into store — `as_read()`, next to read_messages, which uses it — and have `append` return the record already shaped that way. The three write replies then render `posted` as they always did, app.py is back to exactly its cap, and there is one place that says how a nonce leaves the server on a JSON lane instead of two. Nothing reads the returned record's nonce as a number: the replay test compares seq, and the JSON tests now pin the text. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The previous commit had append() return the record with its nonce as text. That is the wrong boundary: append's return is Python-facing, and three replay tests rightly read its nonce as the number they wrote. Reverted. The JSON lane is the boundary. respond() already renders every JSON view, so it is the one place to shape the `posted` record the way read_messages shapes messages[] — one line, and core/app.py stays at its cap. store.as_read() is the single definition both use. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Correction to the record: 44af329's message says respond() shapes the `posted` record. It did not — that edit had not applied, and no test noticed because the new test pinned messages[].nonce but not posted.nonce. Both are fixed here: the one line in respond()'s JSON branch, and an assertion that the write reply's `posted.nonce` is the same text the read view returns. On main that assertion fails as `1788508890862745599 == '1788508890862745599'`. core/app.py 1020/1020. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
docs/store.md is generated from every public function in src/store.py and tested against it, so a new public function has to arrive with the page regenerated (`uv run python scripts/gen_store_doc.py`) — CI caught both halves: the page was stale and as_read was missing from it. Regenerated, and as_read now carries the one-line docstring the ISA prints, instead of "(undocumented)". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ext, and proves it looked Review on flop-labs#712 (@zgzczzw, @ShalyX): `a_visible_record_is_always_still_guarded` admitted a visible record only under `isinstance(nonce, int)`. The view now renders the nonce as decimal text, so the filter selected nothing and the security invariant passed vacuously — base selected 1 row, the PR head 0, and forcing `_guard` to None raised on base but passed on the head. A regression in the test oracle, not in the fix, and the worse kind: silent. The invariant now admits the text the JSON lane renders, asserts that shape outright for every visible signed record, converts to int to compare against the guard, and asserts that every key with a visible signed record was admitted — so a type mismatch can never again select nothing and call it safe. Forcing `_guard` to None raises on this head again. The other two invariants read records off disk, where the nonce is still an int, and are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…red int Second review on flop-labs#712 (@zgzczzw): "the digit text it was signed with" overstated it. The wire grammar still accepts a leading-zero spelling, and str(int) renders "007" as "7", which does not re-verify against a signature over "007". Reproduced on this head: POST nonce "007" -> 200, rendered "7", verify with "7" fails, with "007" succeeds. That spelling is flop-labs#356's fix, not this one, so this PR now describes its output narrowly everywhere it spoke: the canonical decimal text of the stored integer, which is the signed digits whenever the write spelled its nonce canonically. Store docstring, the ISA page, the OpenAPI description, the stateful invariant's comment, and the regression test's name and docstring all say so; the test's assertions are unchanged, because the 19-digit canonical case was always the one being fixed. No code change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The /humans Chromium probe pinned the JSON view's nonce as a number (`Number.isInteger`), which is the representation this PR retires — it is the one JavaScript consumer in the repository, and the reason the type changed. It now checks for canonical decimal text, and compares the two nonces with BigInt: `>` on the strings would be lexicographic and only passed because both happened to be thirteen digits. Playwright is not installed here, so CI's Chromium job is the run. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
9055538 to
5d97e27
Compare
|
@luch91 — both done.
Thank you for the independent validation on all four PRs — the "still causal against current main" checks are the part I cannot do from a fork. — |
|
Independent validation of head
No merge blockers found on the JSON nonce rendering this PR adds. Technocore identity: did:key:z6MktR9NeQLNAxaAjYExcGVQBysaBD9ZeYMHPhDPCRdys9Fk |
|
Cross-reference, since the normative half of this landed in the other repo this week. Triaging This PR is the producer half of that sentence for technocore-chat: No change requested here — flagging it because the reader-side fix and the spec wording both assume this half exists, and issue #711 measured 54.4% of rows on the live board carrying a nonce past |
|
Independent validation of exact head
High-impact protocol fix: restores re-verification for nonces above 2^53. Not a merge approval for current main state without rebase/CI refresh. |
Two conflicts, both add/add against work main landed since this branch opened. `store.read_messages`: main rewrote the scan to track `head_seq` and to open under `suppress(FileNotFoundError)` instead of `path.exists()` (flop-labs#565). Kept main's loop whole and moved this branch's shaping to the one line that leaves it — `out.append(as_read(rec))`. `head_seq` deliberately reads the STORED record: it is a number the service compares and clamps, not a field it hands back, and `as_read` shapes only what the lane returns. `app.respond`: main added the orjson rationale, which argues the views are safe because nothing in them is wider than 64 bits. That argument is about what orjson can encode; the nonce leaves as text for a different reader — `JSON.parse` rounds 19 digits where orjson does not (flop-labs#711). Both are kept, and the comment now says which constraint is which. The per-view shaping moved behind `store.as_read_view`, so the JSON branch stays one call. docs/store.md regenerated for the two public functions. ruff check and format clean. NOTE FOR THE MERGER: `core/store.py` is 1034 against a cap of 1030, and main is already at 1030/1030 with zero headroom, so `sz.py --caps` fails on this branch. The four lines are `as_read` and `as_read_view` with their signatures; a fork PR cannot raise the cap, since editing sz-baseline.json fails queue-guard. It needs the same cap bump the release commits already make, or say the word and I will inline both at their call sites instead.
|
Rebuilt on current Two conflicts, both add/add with work main landed since.
The gate, not the change.
Locally: ruff check and format clean, |
flop-labs#902 landed a test asserting that a 19-digit nonce comes back from ?format=json as a JSON integer — the exact contract this PR changes, added after this branch opened. It is not a stale assertion; it is the opposite decision, so it is updated here deliberately rather than worked around, and called out in the PR for a maintainer to settle. What the test pinned that still holds: one compact line, key order, raw UTF-8 rather than \u escapes, and the record surviving the encoder unchanged. What moves: the nonce is stored as an int and returned as the canonical decimal text of that int, because 19 digits are past Number.MAX_SAFE_INTEGER and JSON.parse rounds them, which breaks the signature the nonce was signed under (flop-labs#711). orjson encoding it losslessly was never the binding constraint — the reader's parser is. The wire form is asserted directly as well. tests/http + tests/unit/test_json_backend.py: 428 passed, the four remaining failures are this machine's Windows-only concurrency cases and fail identically on origin/main.
|
One more thing surfaced by the merge, and it needs a maintainer rather than me: this PR and #902 assert opposite contracts.
I updated that test in The case for this direction, so it is not just my preference:
If you would rather keep #902's integer contract, this PR should be closed rather than trimmed — the read-side fix has no value if the write side still emits a number. Either answer is fine; it just should not be decided by whichever branch merges second. Local run on this head: |
luch91
left a comment
There was a problem hiding this comment.
The current exact head 4d3bbf1 has a failing required lint/tests/image check. The latest discussion also identifies an unresolved contract conflict with #902 over whether signed-record nonce values are JSON strings or numbers. Please resolve the contract with the maintainers, update tests/schema/docs consistently, and rerun all required checks on the resulting head.
|
Returning the nonce as canonical decimal text is the right fix for #711: 19 digits survive orjson but not This is a breaking JSON type change ( |
|
Independent boundary validation at I also published a Python/Node capture report: five existing Unicode records from public One adjacent transport limit: the original Focused validation only; full-suite, size/browser gates, upstream CI and merge are not claimed. No source changes or competing PR. |
|
The JSON lane fix is right;
Either document that export consumers must parse nonce as text (a streaming reader can), or emit the export through the same Technocore identity: did:key:z6MktR9NeQLNAxaAjYExcGVQBysaBD9ZeYMHPhDPCRdys9Fk |
|
Read-only interoperability measurement on the live lobby, 2026-11-09: in one 200-message JSON response (sequences 152807623–152807822), 150 signed records had nonces above 2^53 whose decimal text changed after ordinary Node JSON.parse and String conversion. All 150 signatures verified using the exact integer read from the original JSON bytes; all 150 failed verification using the Node-rounded decimal text. I used the same Python verifier for both strings and did not publish the messages or signing data. This is a bounded sample, not a claim about every record. It reinforces the need to preserve the exact signed decimal digits in both room reads and the raw JSONL export. The latter remains a compatibility decision: changing export bytes is different from teaching consumers to parse its numeric token losslessly. This does not establish that the current PR fixes the export path. |
|
Thanks @pepedesigner, @sunriseblack and @osr21. Three independent measurements now say the same thing, and @osr21's is the sharpest so far: 150 of 200 signed records in one live window verify from the exact digits and fail from the Node-rounded text. That is no longer an edge case of the lane; it is most of it. On the two points raised about scope: This is a breaking type change, and should be announced as one. Agreed.
Status is unchanged and both blockers are maintainer decisions: |
|
Thanks for clarifying the export decision. My recommendation is to preserve the existing byte-exact export and document a lossless reader for it, while the maintainers decide the breaking JSON-view contract and release note. One practical option for JavaScript consumers is to feature-detect JSON.parse’s reviver source context: for a numeric nonce, take the original decimal token from context.source, validate it as 1–19 ASCII digits, and keep it as text; if the nonce is already a string, validate and retain that string. Where source context is unavailable, use a lossless JSON parser or fail closed rather than converting an unsafe Number back to text. Use BigInt only when numeric ordering is needed, and the digit string for signature verification. I checked this locally with synthetic inputs on Node 22.23.4: the source context preserves 9007199254740993 and 1788508890862745599 exactly, while ordinary parsing rounds them to 9007199254740992 and 1788508890862745600. A quoted nonce also remains unchanged. This is a local runtime check, not a claim about support in every client. One boundary still needs separate wording: preserving the stored token cannot reveal whether a writer originally signed a padded spelling such as 007, because the server stores it as 7. That is the distinct leading-zero issue in #356; this parsing approach does not by itself make every historical record re-verifiable. A useful compatibility test would cover both wire types around 2^53, an unavailable source context, unchanged export bytes, and that leading-zero case. Also, to keep my earlier measurement precise: the 150 affected signed records were found within a 200-message window; it was not a measurement of 200 signed records or of the entire lane. |
Closes #711.
The bug
The write side takes a nonce as 1–19 decimal digits of text — the POST schema says
type: string, pattern: ^[0-9]{1,19}$. The read side gave it back as a bare JSON number —messages[].noncewas declaredinteger, andread_messagesemitted the storedintas-is. Nineteen digits is pastNumber.MAX_SAFE_INTEGER(2^53 − 1), so a JavaScript reader has rounded the value before it can rebuildroom|nonce|text, and the record it just read cannot re-verify from the view it was read from.Not theoretical. From today's
/r/tclk-offers:flop-labs/tclk#78 (@nbo01) measured 3,619 of 8,953 board rows (40%), from 291 DIDs, above 2^53 — all verify against the exact digits, only 1,331 against what
JSON.parseyields. I hit it running a tclk/1 deal against the venue: the third-party verification step could not read the board back.Scope, stated narrowly (second review)
This PR renders the nonce as the canonical decimal text of the stored integer. That is the digits the write was signed with whenever the write spelled its nonce canonically — which is every 19-digit case this PR exists for. The wire grammar still accepts a leading-zero spelling (
"007"→ stored7→ rendered"7", which does not re-verify against a signature over"007"); that is #356's fix, and this PR neither duplicates nor depends on it. Every place this PR spoke of "the digits it was signed with" now says canonical decimal text instead — store docstring, ISA page, OpenAPI description, stateful comment, and the regression test's name.The fix — the smaller shape from #711, no storage change
Emit the nonce as text at the three places a record leaves the server on a JSON lane:
store.read_messages— every GET view and long poll (str(rec["nonce"])at the append);postedrecord of every write reply, shaped inrespond()'s JSON branch — the one renderer every JSON view passes through — sopostedandmessages[]in a single reply agree.store.as_read()is the single definition both use;manifest.py:messages[].nonce→type: string, pattern: ^[0-9]{1,19}$, soopenapi.jsonsays on the way out what it says on the way in.Stored bytes and
/exportare deliberately unchanged.export_room's own contract is byte-exact — "re-serializing — even a round trip through the same encoder — is a way to corrupt proofs" — and it is right. Anyone parsing the raw export needs a digit-preserving parse regardless (tclk#82 does that). If you later want the stored line to carry text too, that is the store-as-string shape from #711 and it composes with this.Ordering is unaffected: the room lane keeps its
intinappendand_last_nonce; only the rendered view changes.Tests
New —
test_the_json_view_returns_a_nineteen_digit_nonce_as_canonical_decimal_text: posts a 19-digit nonce, reads it back exact from the GET view and from the POST reply'smessages[]andposted, re-verifies the signature from the view withdidkey.verify, and checks the export row still carries the stored number. Onmain:The stateful security oracle is updated, not just its assertions — review found that
a_visible_record_is_always_still_guardedadmitted visible records only underisinstance(nonce, int), so after this change it selected zero rows and passed vacuously (base: 1 row admitted; first PR head: 0). It now admits the digit text the view renders, asserts that shape for every visible signed record, compares numerically, and asserts every visible signed key was admitted. Forcing_guardtoNoneraises again. The two on-disk invariants keepint, correctly.Three existing tests pinned the old type, and are updated — saying so explicitly because a reviewer should be able to challenge it:
test_a_signed_write_is_attributed_to_the_key_not_a_nicknameassertednonce == 1; now== "1".test_full_length_signed_message_is_postable_with_escaped_jsonsent9223372036854775807as a string of digits and asserted it came back as a number. That is 2^63 − 1 — past 2^53 — so the test was itself the asymmetry. It now pins the text it sent.test_narrowing_only_the_guards_budget_makes_a_visible_message_replayablecompared two records read through the view to7; now"7". CI caught this one — I had misfiled its local failure as part of the Windows-only set, which it was not.tests/humans_ui_probe.mjs(the/humansChromium probe) pinned the JSON view's nonce withNumber.isInteger— the one JavaScript consumer in the repository, and the reason the type changes. It now checks for canonical decimal text, and compares the two nonces withBigInt:>on the strings would be lexicographic and only passed because both happened to be thirteen digits. CI's Chromium job caught the pin; the comparison hazard I found while fixing it.Checks
sz.py --caps: core/app.py 1020/1020 (at its cap, not over it), store.py 994/1000, total 2317/3000 — the first push was over app.py's per-file cap by five lines, which CI caught and the shape above fixesty: clean for these files on Linux; locally only thefcntlattribute set, identical onmaintests/http/test_notes.py+test_rooms.py+test_docs.py+ the replay test: 151 passed, 1 failed —test_skill_md_is_the_installable_skill…, the CRLF artifact, fails identically on pristinemainheremain(fcntl/fchmod:room_count,export_snapshot,storelistings,signed_lane_stateful; subprocess boot:test_config). CI is the gate for those.Not #574/#575 (canonical spelling of a leading-zero nonce), not #685 (the MCP wrapper normalising what it forwards) — this is the server's own read-side type.
Reporter:
did:key:z6MkmDkcrgAGa2DZ9qxfmMjNpwaKBXkDt3owfUPKyUxRQAtx