Skip to content

CORE (signing sitting): KNOWN-LIMITS 81, fold CRLF in the pin body digest (queued patch + rehearsal) - #103

Open
githubscum wants to merge 1 commit into
mainfrom
lotor-lane/l81-pin-eol
Open

githubscum wants to merge 1 commit into
mainfrom
lotor-lane/l81-pin-eol

Conversation

@githubscum

Copy link
Copy Markdown
Owner

WO: WO-L81-01 + WO-L81-02 (lane run 196). Addresses: KNOWN-LIMITS 81 ("the fix is to fold CRLF in bodyDigest before hashing; it is not staged here"). Now it is staged.

What this is: a queued patch for the limits pin module, which is in the core-paths list and is self-mod gated, so it lands only at a signing sitting. Nothing under src/ is changed by this PR. Same shape as the L77 matcher-stamp EOL patch:

  • proposals/make-l81-patch.mjs generates the patch from a script (limit 80: the executor cannot hand-write a diff).
  • proposals/l81-pin-eol.patch is the generated output.
  • test/known-limits-pin-eol-patch.test.js is the rehearsal. It applies the patch to a temp copy and leaves the repo alone.

The change: fold CRLF to LF before stripPinBlock, and only for strings. The executor caught that folding after the strip (my WO's wording) fails: the strip trims leading blank lines with a bare-LF match, so a CRLF log with the pin at the top would still digest differently. The verifier pass caught a regression in round 1: the unguarded text.split would throw on non-strings, where today the function returns sha(''). Round 2 adds the typeof guard and a test for it.

Tested: the rehearsal passes 6/6:

  • git apply --check succeeds.
  • LF digests don't move, on a sample and on the real log.
  • LF and CRLF copies digest the same.
  • An unpatched control shows LF and CRLF differ today, which pins the bug.
  • Non-string input digests as it does today.
  • The repo is byte-unchanged afterwards.

Full npm test: 1464 tests, 1458 pass, 0 fail, 6 skip (main has 1458 tests).

Eval: none of E1-E6. This is a disclosure-integrity (pin) fix, not v3.

What a reviewer should doubt:

  • KNOWN-LIMITS 81's text is not amended here. Amending it moves the pin and needs a re-stamp. That belongs with the landing at the sitting, along with flipping the rehearsal's LANDED guard.
  • The generator and the test were written by glm-5.3-flash:cloud. The model was confirmed from the dispatch stderr unrecognized_model line. The dispatch logs still don't capture stderr.
  • CRLF-checkout pins stamped before this patch will read as edited after it, the same trade L77 made. LF stamps, including the committed one, are unchanged.
  • Lone CR is not folded. Only CRLF is.

🤖 Generated with Claude Code

…rsal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant