Skip to content

CORE (signing sitting): matcher/3 folds CRLF so one commit has one stamp (KNOWN-LIMITS 77, generated patch + rehearsal) - #82

Merged
githubscum merged 2 commits into
mainfrom
lotor-lane/l77-matcherhash-eol
Oct 26, 2026
Merged

githubscum merged 2 commits into
mainfrom
lotor-lane/l77-matcherhash-eol

Conversation

@githubscum

Copy link
Copy Markdown
Owner

WO: WO-L77-EOL (runs 70-71). Addresses: KNOWN-LIMITS 77 (matcherHash depends on checkout line endings). CORE, queued for the signing sitting; nothing under the core tree is edited by this PR.

What is in it

  • proposals/l77-matcherhash-eol.patch: the queued patch. Hunk set 1 folds CRLF to LF inside matcherHashInputs() (the one function not itself hashed) and bumps the schema to matcher/3. Hunk set 2 turns test/policy-matcher-stamp-eol.test.js from tripwire to guard and bumps the two schema asserts.
  • proposals/make-l77-patch.mjs: generates the patch from the live source with three asserted exact-once replacements and git diff --no-index. Run 70's hand-written diff was corrupt (wrong hunk counts, an inverted comparison in a context line), so the patch is generated, not typed.
  • test/policy-matcher-stamp-eol-patch.test.js: rehearsal on temp copies. It skips itself once the patch lands.
  • KNOWN-LIMITS: 77 gets a "fix queued" note; new 79 records the executor limit (glm cannot hand-write a unified diff).

What was tested

  • Rehearsal: fail-first with the patch file moved away (3 of 4 red, the control green), then 4/4 green with it in place: patched LF == patched CRLF, patched LF stamp == unpatched LF stamp, unpatched LF != CRLF.
  • git apply --check clean on this branch.
  • The patch applied with plain git apply to a throwaway worktree of c69f552 with core.autocrlf=true (a CRLF checkout, the shape of the signing machine): full npm test there 1290 pass / 0 fail / 1 skipped.
  • This branch: npm test 1296/1296.

Eval

None of E1-E6 directly; this is R-level stamp integrity (limit 77).

What a reviewer should doubt

  • The CRLF-era receipts (every receipt this machine has written) keep matcher/2 CRLF stamps with no matcher/3 equal. How they are read after landing is still undecided (limit 77's last sentence).
  • Applying with -c core.autocrlf=false on a CRLF working tree fails; apply it the normal way.
  • Limit number 79 collides with open reach: R3 content markers agree with reasoning on mixed-case think tags (E1 glm fixtures) #81; whichever merges second renumbers (the numbering tripwire forbids gaps).
  • Executor: glm-5.3-flash:cloud wrote the generator (dispatch log names it); session.model was not read from a receipt. The orchestrator ran the generator, the apply checks and every test.

githubscum and others added 2 commits October 25, 2026 16:39
The core half is generated by proposals/make-l77-patch.mjs (asserted
exact-once replacements + git diff --no-index), not hand-written.
Rehearsal proves patched LF == CRLF and that LF stamps do not move.
KNOWN-LIMITS 77 notes the queued fix; new 79 records the executor limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
 took 79)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@githubscum
githubscum merged commit 7c6508b into main Oct 26, 2026
githubscum added a commit that referenced this pull request Oct 26, 2026
…e under signature

Applied in the live install, each step signed by the owner:
- precondition: live chain 42,567 entries, seq continuous (scan signed, 13668b04).
- chain: verifyChain checks seq continuity (proposals/verifychain-seq-continuity,
  #74), signed 008521ce.
- gate and hooks: subagent tool calls carry agentId/agentType on gate receipts
  (proposals/agent-id-attribution, #73), signed 74885c4c.
- policy: matcher/3 folds CRLF so one commit has one stamp
  (proposals/l77-matcherhash-eol, #82, KNOWN-LIMITS 77), signed 7f124e65.
- tests: agent-id describe todo marker removed; seq and l77 tests detect the
  landing on their own.

Found during the sitting: KNOWN-LIMITS 82. The first apply, `git apply <patch>`,
rewrote src/chain/index.js with no gate stop and no receipt, because the
matcher reads paths from argv and the patch carries them in its bytes. It was
reverted under signature (34b2dca0) and every patch was re-applied with its
targets named via --include, which the matcher sees.

Pin re-stamp follows in its own commit; mechanical, not a re-verification of
every limit.

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