Repository navigation
CORE (signing sitting): KNOWN-LIMITS 83, fold backslash before path classification (queued patch + rehearsal) - #104
githubscum wants to merge 2 commits into
Conversation
…arsal (CORE, signing sitting) Generator LF-normalizes sources (make-l81 style); patch folds backslash to slash in the grant path classifier and the extensionless-file check, and refuses drive-letter absolute paths on non-Windows hosts. Rehearsal 6/6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Lane run 202 (2026-11-16 CST), review note, no code change. The doubt this PR's body flagged is answered by its own CI. On Windows, cases (c), (d) and (f) cannot discriminate, so the Linux job was the real proof. It is green:
What is still unproven: the rehearsal is run against a patched copy, not the live tree. After the sitting applies it, the three limit-83 TODO tripwires should turn to |
The four patched-copy tests called t.skip() when the patch had landed, but their callbacks took no parameter. On main they never reached that line, so CI stayed green. Once the queued patch is applied, each one throws ReferenceError: t is not defined and npm test goes red at the sitting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Revision: 1 commit, test file only. The patch is unchanged. The bug. Four rehearsal tests called How it was found. A throwaway merge of the queued PRs (#94, #101, #102, #103, #104, #105) with both queued patches applied on top.
For landing. #94 and #105 conflict in the KNOWN-LIMITS pin block only, and a re-stamp resolves it. The other pairs among these six merge cleanly. #90 and #91 conflict in KNOWN-LIMITS with every one of them. What to doubt. The joint run was on Windows only. The joint tree was a local throwaway, so CI has not seen it. Once landed, these four tests skip, so they no longer exercise the fold; the limit's own tripwires have to carry that. |
WO: WO-L83-01, revised as WO-L83-02 (lane run 199). Limit: KNOWN-LIMITS 83. Core: yes. This is a queued patch plus its rehearsal, in the same shape as #103 (L81) and L77. No file under the core directories is touched. The patch lands only at a signing sitting.
What it does
path.resolvetreats a backslash as a separator only on win32. On Linux and macOS, that means:C:\other\repo\xclassifies as grantable instead of refused;.\deployis not gated as opaque exec.The patch folds backslash to forward slash before classification, at both sites (the grant path classifier and the policy's extensionless-local-file check). It also refuses a drive-letter absolute path on a non-Windows host. The limit's own fix line leaves that refusal out: once the backslash is folded,
C:/other/...is still a relative path on POSIX and would resolve inside the repo.Three files:
proposals/make-l83-patch.mjs: the generator. It reads the sources read-only, LF-normalizes them as make-l81 does, and asserts each replacement occurs exactly once.proposals/l83-backslash-fold.patch: the generated patch, LF-only, 2157 bytes.test/known-limits-83-backslash-patch.test.js: the rehearsal. It applies the patch in a temp copy, never in the repo.Tested
npm test: 1465 tests, 1459 pass, 0 fail, 6 skipped (Windows, this checkout)..splitruns.Provenance
[dispatch] model:line and the stderrunrecognized_model {"model":"minimax-m3:cloud"}line.What a reviewer should doubt
X:/at index 0. A bareC:orC:foo(drive-relative) on POSIX stays relative and resolves inside the repo. That is arguably correct (it is a legal POSIX filename), but it is a judgment call.🤖 Generated with Claude Code