GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fork seam check: every upstream file counted, allow list from main (#242 #189) by scuttletoby · Pull Request #277 · scuttletoby/t3code Conversation
|
| Finding | Status |
|---|---|
| bypass M1: a rename or delete hides an upstream file | fixed: refused unless fork-removed-workflows.txt lists it (or upstream fork-*.yml); CLI tests for delete + rewrite under a fork name and git mv into a forkFiles folder + append, from main and from upstream |
| bypass M2: pending "change but not grow" counted against main only | fixed: per-file ceiling from upstream; test swaps upstream lines for fork lines (passes on the PR run, refused from upstream) |
| state M1: pending stale against main; serverSettings.ts unpinned lines | fixed: 3 files added to pending; 29 lines pinned; both commands below exit 0. Moving them out: follow-up |
| state M2: stale branch floods false refusals | fixed: one "update the branch" error (test) |
bypass minor 5: base without the list + --config-ref |
fixed: --config-ref always means a PR run; a base without the list is refused (test) |
| bypass minor 4: gitlinks invisible | fixed: a pointer reads as Subproject commit <sha> (test, both modes) |
| bypass minor 3: reorders and deletions in unlisted upstream files | fixed for unlisted files (test). Seam and pending files: follow-up (#189 nit 3) |
state minor 3: generic seam lines (}, /**) cannot be added in a PR run |
documented in docs/fork/updates.md (a PR run cannot see upstream's copies); not changed |
| state minor 4: fork-follow same-base order | fixed; fork-follow.test.sh now asserts the workflow advice on the same base |
state minor 5: hidden-upstream call in main() untested |
fixed: CLI test (mutation that turns the call off now fails 1 test) |
| bypass minor 6: landing order | the workflow step lands after this merges (section below) |
node --test .github/scripts/fork-seam-check.test.cjs: 26 pass, 0 fail on this head.git mv pass (0 !== 1); a moved submodule pointer passes (0 !== 1); a stale branch gets a false refusal instead of the update error; --config-ref with a base without the list is judged from upstream. The other failures come from the new pending format; with the old list format, the old code returns no reasons for a reordered guard, a deleted guard, a deleted unlisted file and the swap from upstream (checked by hand).fork-follow.test.sh (with jq): 152 ok, 0 fail on this head; against the scripts at 8f8cea13: 1 fail ("same base with an upstream fork-*.yml is refused too, with the workflow advice").main() fails 1 test.node .github/scripts/fork-seam-check.cjs 820f620e3d HEAD # from the upstream fork point, as fork-follow runs it -> exit 0
node .github/scripts/fork-seam-check.cjs origin/main HEAD # main -> head, as Fork tests runs it -> exit 0
node .github/scripts/fork-seam-check.cjs --config-ref origin/main origin/main HEAD # as the fork-checks step will run it -> exit 0
Rerun the first one on the main + PR merge right before merging if main moved: a PR merged with the old script can add fork lines to an unlisted upstream file again.
Not in this PR (no workflow edits here). Land it only after this PR is on main: main's current script has no --config-ref. The script itself now refuses a base or merge-base without the list, so the step needs no shell guard.
# .github/workflows/fork-checks.yml, job no_schema_changes - name: Test the check run: node --test .github/scripts/fork-schema-check.test.cjs .github/scripts/fork-upstream-files-check.test.cjs .github/scripts/fork-seam-check.test.cjs # ... after "Refuse changes to upstream files the fork leaves alone": # Fork lines in upstream files stay the seams pinned in .github/fork-seams.json. Under # pull_request_target, github.sha is the default branch's tip, which the first step checked # out: this script and (--config-ref) the list are main's, never the pull request's. The script # refuses a base without the list, and a branch made before the base's last rebase onto # upstream, with one "update the branch" error. - name: Fork lines in upstream files if: ${{ !cancelled() }} env: DEFAULT_SHA: ${{ github.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: node .github/scripts/fork-seam-check.cjs --config-ref "$DEFAULT_SHA" "$BASE_SHA" "$HEAD_SHA"
Never copy this step into fork-tests.yml (pull_request): there github.sha is the PR's test merge, whose list is the PR's own. #189 is fully fixed once this step runs (the fork-tests.yml step runs the PR's own copy of the script).
apps/server/src/serverSettings.ts (decodeSettingsFileText, parseSettingsFileText, settingsFileLegacyKeysUnreadable, the renameRetiredAutoUpdateKeys calls, the opt-out fallback block) into apps/server/src/fork/, and unpin them.fork-checks.yml step above once this is on main.pending files are still not checked (fork seam check reads its allow list from the PR itself #189 nit 3); unlisted files now are.pending: move each file's fork lines out and lower its ceiling (fork-follow notes the ones to lower).pending/forkFiles, as on main until this merges): accepted; this PR's own run is judged by it and passes (second gate command). A pending in the earlier list form (a list, not a map) throws (exit 3), never an empty list.--config-ref, exit 3. At a PR run's base or merge-base: exit 1 with one "update the branch" error.forkFiles pattern or with a fork name: the check from upstream fails and names it; !path fixes it. An upstream fork-*.yml is refused by fork-follow first, with the workflow advice.--config-ref, never from the PR; the stale-branch error; submodule pointers as lines; the fork-checks.yml step above..github/fork-seams.json (the 64 pending files with their ceilings, the forkFiles patterns and the 29 pinned serverSettings.ts lines, taken from main against upstream commit 820f620e3d); the fork-follow ordering.🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d489002 to
8f8cea1
Compare
|
lens: bypass verdict: NOT SAFE (head 8f8cea13) Read-only review (bypass, security and requirements lens). The question I tested: can a PR still widen what it may change in upstream files? Yes, in two ways that also pass the from-upstream run, so nightly fork-follow never catches them. This PR is not looser than main anywhere I tried: everything main refuses, it still refuses. Tests: Findingsmajor 1: rename or delete hides any upstream file (
The PR body lists this under "not covered". But it lets one major 2: "may change but not grow" counts against main, not upstream ( minor 3: reorders and deletions in any upstream file pass ( minor 4: gitlinks are invisible ( minor 5: a base without the list switches to from-upstream mode, even with minor 6: the order of landing matters. Main's current script reads Fine as is: whole-file CRLF conversion (lines are trimmed, so it counts 0, and nothing changes), a changed upstream binary (refused, fail-closed), a PR that edits or deletes its own list (judged by the base's list, exit 1), and a stacked base that widens the list (exit 1 with Writer's question (a): serverSettings.tsI ran this PR's script from Mutation checks (each guard weakened, then the test file run again)Each mutation below made the tests fail (number of failing tests in brackets):
No test pins the cases in findings 1 to 5. Each fix should come with a red-before test. Workflow (#189): what
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
8f8cea1 to
1973e2e
Compare
|
lens: bypass-r2 verdict: SAFE (head 1973e2e6) Read-only re-check (bypass lens: security and requirements). The question: can a pull request still widen what it may change in upstream files? Every round-1 blocker and major is fixed in the code, not only in the tests. No new blocker or major. The six minors below are follow-ups. Tests on this head: Round-1 findings, re-checked in throwaway repositories (CLI, PR mode
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: state-r2 verdict: NOT SAFE (head 1973e2e6) Read-only review (correctness, state and tests). Every round-1 state finding is fixed in code, and so are the minors. One major is left. Round 1's swap attack (bypass M2) is caught only while every ceiling is exact. The note that should keep the ceilings exact never reaches anyone. Today the ceilings are exact, so nothing is open yet. The hole opens on the first PR that moves a fork line out of a pending file (follow-up 4). Checked and fine
FindingsMAJOR 1: a ceiling above the count is kept without anyone seeing it, so the swap passes again ( That is round 1's bypass M2, the upstream guard swapped for a fork line. The nightly never catches it. Headroom like this comes from every move-out PR that forgets the ceiling, and from upstream changes that lower a count. Fix: from upstream, make Minor (follow-ups, not blocking)
Mutation results
Workflow stepThe PR body's step is right for - name: Test the check run: node --test .github/scripts/fork-schema-check.test.cjs .github/scripts/fork-upstream-files-check.test.cjs .github/scripts/fork-seam-check.test.cjs # (after "Refuse changes to upstream files the fork leaves alone") # Fork lines in upstream files stay the seams pinned in .github/fork-seams.json. Under # pull_request_target, github.sha is the default branch's tip, which the first step checked # out: this script and (--config-ref) the list are main's, never the pull request's. The script # refuses a base without the list, and a branch made before the base's last rebase onto # upstream, with one "update the branch" error. - name: Fork lines in upstream files if: ${{ !cancelled() }} env: DEFAULT_SHA: ${{ github.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: node .github/scripts/fork-seam-check.cjs --config-ref "$DEFAULT_SHA" "$BASE_SHA" "$HEAD_SHA" State question
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1973e2e to
eb5e303
Compare
|
not a lens: fix for the round-2 state lens major (#277 (comment)), head eb5e303d.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: state-r3 verdict: NOT SAFE (head eb5e303d) Read-only re-check of the fix for the round-2 state major. I looked only at Checked and fine
FindingsMAJOR 1: when upstream adopts a fork line, fork-follow gets stuck, and the advice in the refusal makes it worse ( Whatever ceiling is set, one of the two checks fails. The same happens at count 0: take the file off the list, and the check before the rebase refuses it as an unlisted file with fork lines. The only way out is a hand rebase that lowers the ceiling in the same push. The seam report never says so: only the report for a rebase conflict describes the hand path. Instead, its "more than its ceiling, move lines out" message sends people to the wrong fix.
Minor (follow-ups)
Mutation results (new refusal,
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
not a lens: round-3 fix at 2951ba79 for the major (upstream adopting a pending fork line left fork-follow stuck).
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: state-r4 verdict: SAFE (head 2951ba79) Read-only round-4 re-check of the round-3 major ( Checked and fine
Minor (follow-ups)
Mutation results (one at a time; all 12 killed)Unit tests (
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
#189) The seam check only judged files listed in .github/fork-seams.json, so a fork line in any other upstream file passed; and it read that list from the working tree, so a pull request judged itself by the list it brought. - Every upstream file counts. From upstream (a base without the list), every file the merge-base has is upstream's. From a pull request's base, files named as the fork's or matched by the new "forkFiles" are the fork's own; a pattern that matches an upstream file fails the check from upstream. - "pending" names the 61 upstream files whose fork lines predate this rule: noted from upstream, and a pull request may change them but not grow them. - The list is read from git: --config-ref, else the base when it has the list, else the head (upstream has none). Never the working tree or the PR's head. - From main, a seam line main already has cannot be added a second time. - fork-follow refuses an upstream workflow named like the fork's before the seam check, so its report keeps the specific advice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…anch error Review round 1 of the seam check (bypass and state lenses): - An upstream file the change deletes or renames is refused, unless .github/fork-removed-workflows.txt lists it (or it is upstream's fork-*.yml, which fork-follow makes the fork delete). - "pending" maps each file to a ceiling of fork lines counted from upstream; fork-follow refuses a file above it and notes one below it. - pending now lists the three provider files main gained since; the 29 older fork lines in apps/server/src/serverSettings.ts are pinned in its seam entry until they move into apps/server/src/fork/. - A pull request run (base with the list, or --config-ref) refuses a base or merge-base without the list with one "update the branch" error. - A moved submodule pointer counts as a changed line; an unlisted upstream file may not lose or reorder lines either. - fork-follow refuses an upstream fork-*.yml before the seam check on the same-base path too, and its test checks the advice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tream Round-2 state lens on #277: a ceiling left too high after fork lines move out is room for a later PR to swap an upstream line for a fork line (net zero on the PR, within the ceiling from upstream), and the 'lower its ceiling' note only lands in a nightly log nobody sees. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… exports after the rebase) Co-Authored-By: Claude Opus 5.5 <[email protected]>
#277 round 3) When upstream takes a fork line word for word, the rebase drops it, so the series falls below its "pending" ceiling and the after-rebase check refused it; lowering the ceiling first failed the check on the old base, so fork-follow was stuck. --after-rebase (fork-follow's second check only) turns below-ceiling into a note; the next run, from the new base, refuses it and a pull request lowers it. The refusal for a ceiling now names that fix instead of "put the change in a fork file", and the fork-follow report says "does not fit the seam list". Adds a ceiling+1 boundary test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cut two comments to four lines and drop PR numbers from two test comments. Meaning unchanged; no code change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add fork-seam-check.test.cjs to "Test the check" and a "Fork lines in upstream files" step that reads the seam list from the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The seam-check step reads its list from the default branch too. The contract test now requires every DEFAULT_SHA to be github.sha instead of exactly one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…after the rebase Usage refresher and usage history fixes added fork lines to ProviderRegistry.test.ts and three provider-core files after this branch's snapshot of main. Record them as pending so the check from upstream passes once this merges. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9e40a60 to
bf57fec
Compare
There was an error while loading. Please reload this page.
…uard tests, renames, --from-upstream) (#380) * fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) - Seam and pending files: upstream lines no longer kept in order (deleted, moved, re-indented) are counted. A pull request may lose none of a seam file's upstream lines; from upstream each seam/pending file is held exactly to a new "lost" count (0 when unlisted), like a pending ceiling. - Lines are compared with their indentation (only trailing blanks, CR and blank lines are ignored), so an indentation-only change to an upstream file is refused. - A listed path that neither the base nor the head has is a note, so the list can name both paths of a file upstream renamed. - --from-upstream: fork-follow says the base is upstream; a base without the list is no longer taken for upstream, and an upstream with a list of its own (a fork of this fork) is judged by the head's list. - Ceiling refusals are their own kind, not matched by text; fork-follow also writes the after-rebase notes to the step summary. - Tests for the removed-list source and the fork-*.yml delete exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: lens fixes for #380 (seam-line moves, lost lines deleted later, untested guards) - From upstream, seam lines are no longer filtered out: the base is upstream, and fork lines only add, so an upstream line moved past an upstream `}` (a listed seam line) is now counted. - On a pull request, a seam line is discounted only by the copies the head really dropped (at most the listed copies), so a moved copy still counts as lost. - "lost" now holds two counts per file, {"lines": N, "gone": M}: `gone` counts upstream lines whose text the head no longer has, so a line already lost to a move or re-indent cannot be deleted later for free. The old number format is refused (exit 3). - Tests for guards that a mutation survived: lost ceilings and notes in main(), an exceeded count after a rebase, an indented seam line, and the step summary being appended to. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: cut the findLostLines comment to the lint limit Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (ChatMarkdown.tsx, cliRelease test; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
#189) (#277) * fork seam check: every upstream file counted, allow list from main (#242 #189) The seam check only judged files listed in .github/fork-seams.json, so a fork line in any other upstream file passed; and it read that list from the working tree, so a pull request judged itself by the list it brought. - Every upstream file counts. From upstream (a base without the list), every file the merge-base has is upstream's. From a pull request's base, files named as the fork's or matched by the new "forkFiles" are the fork's own; a pattern that matches an upstream file fails the check from upstream. - "pending" names the 61 upstream files whose fork lines predate this rule: noted from upstream, and a pull request may change them but not grow them. - The list is read from git: --config-ref, else the base when it has the list, else the head (upstream has none). Never the working tree or the PR's head. - From main, a seam line main already has cannot be added a second time. - fork-follow refuses an upstream workflow named like the fork's before the seam check, so its report keeps the specific advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: no hidden upstream files, pending ceilings, stale-branch error Review round 1 of the seam check (bypass and state lenses): - An upstream file the change deletes or renames is refused, unless .github/fork-removed-workflows.txt lists it (or it is upstream's fork-*.yml, which fork-follow makes the fork delete). - "pending" maps each file to a ceiling of fork lines counted from upstream; fork-follow refuses a file above it and notes one below it. - pending now lists the three provider files main gained since; the 29 older fork lines in apps/server/src/serverSettings.ts are pinned in its seam entry until they move into apps/server/src/fork/. - A pull request run (base with the list, or --config-ref) refuses a base or merge-base without the list with one "update the branch" error. - A moved submodule pointer counts as a changed line; an unlisted upstream file may not lose or reorder lines either. - fork-follow refuses an upstream fork-*.yml before the seam check on the same-base path too, and its test checks the advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: a pending file below its ceiling is refused from upstream Round-2 state lens on #277: a ceiling left too high after fork lines move out is room for a later PR to swap an upstream line for a fork line (net zero on the PR, within the ceiling from upstream), and the 'lower its ceiling' note only lands in a nightly log nobody sees. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: packages/shared/package.json ceiling 28 (DS2 #284 added 4 exports after the rebase) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: after a rebase, a pending file below its ceiling is a note (#277 round 3) When upstream takes a fork line word for word, the rebase drops it, so the series falls below its "pending" ceiling and the after-rebase check refused it; lowering the ceiling first failed the check on the old base, so fork-follow was stuck. --after-rebase (fork-follow's second check only) turns below-ceiling into a note; the next run, from the new base, refuses it and a pull request lowers it. The refusal for a ceiling now names that fix instead of "put the change in a fork file", and the fork-follow report says "does not fit the seam list". Adds a ceiling+1 boundary test. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: shorten comments to satisfy no-low-value-comments Cut two comments to four lines and drop PR numbers from two test comments. Meaning unchanged; no code change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: run the seam check and its tests on pull requests Add fork-seam-check.test.cjs to "Test the check" and a "Fork lines in upstream files" step that reads the seam list from the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: allow more than one DEFAULT_SHA when each is github.sha The seam-check step reads its list from the default branch too. The contract test now requires every DEFAULT_SHA to be github.sha instead of exactly one. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: pending ceilings for four provider files changed on main after the rebase Usage refresher and usage history fixes added fork lines to ProviderRegistry.test.ts and three provider-core files after this branch's snapshot of main. Record them as pending so the check from upstream passes once this merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…uard tests, renames, --from-upstream) (#380) * fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) - Seam and pending files: upstream lines no longer kept in order (deleted, moved, re-indented) are counted. A pull request may lose none of a seam file's upstream lines; from upstream each seam/pending file is held exactly to a new "lost" count (0 when unlisted), like a pending ceiling. - Lines are compared with their indentation (only trailing blanks, CR and blank lines are ignored), so an indentation-only change to an upstream file is refused. - A listed path that neither the base nor the head has is a note, so the list can name both paths of a file upstream renamed. - --from-upstream: fork-follow says the base is upstream; a base without the list is no longer taken for upstream, and an upstream with a list of its own (a fork of this fork) is judged by the head's list. - Ceiling refusals are their own kind, not matched by text; fork-follow also writes the after-rebase notes to the step summary. - Tests for the removed-list source and the fork-*.yml delete exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: lens fixes for #380 (seam-line moves, lost lines deleted later, untested guards) - From upstream, seam lines are no longer filtered out: the base is upstream, and fork lines only add, so an upstream line moved past an upstream `}` (a listed seam line) is now counted. - On a pull request, a seam line is discounted only by the copies the head really dropped (at most the listed copies), so a moved copy still counts as lost. - "lost" now holds two counts per file, {"lines": N, "gone": M}: `gone` counts upstream lines whose text the head no longer has, so a line already lost to a move or re-indent cannot be deleted later for free. The old number format is refused (exit 3). - Tests for guards that a mutation survived: lost ceilings and notes in main(), an exceeded count after a rebase, an indented seam line, and the step summary being appended to. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: cut the findLostLines comment to the lint limit Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
#189) (#277) * fork seam check: every upstream file counted, allow list from main (#242 #189) The seam check only judged files listed in .github/fork-seams.json, so a fork line in any other upstream file passed; and it read that list from the working tree, so a pull request judged itself by the list it brought. - Every upstream file counts. From upstream (a base without the list), every file the merge-base has is upstream's. From a pull request's base, files named as the fork's or matched by the new "forkFiles" are the fork's own; a pattern that matches an upstream file fails the check from upstream. - "pending" names the 61 upstream files whose fork lines predate this rule: noted from upstream, and a pull request may change them but not grow them. - The list is read from git: --config-ref, else the base when it has the list, else the head (upstream has none). Never the working tree or the PR's head. - From main, a seam line main already has cannot be added a second time. - fork-follow refuses an upstream workflow named like the fork's before the seam check, so its report keeps the specific advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: no hidden upstream files, pending ceilings, stale-branch error Review round 1 of the seam check (bypass and state lenses): - An upstream file the change deletes or renames is refused, unless .github/fork-removed-workflows.txt lists it (or it is upstream's fork-*.yml, which fork-follow makes the fork delete). - "pending" maps each file to a ceiling of fork lines counted from upstream; fork-follow refuses a file above it and notes one below it. - pending now lists the three provider files main gained since; the 29 older fork lines in apps/server/src/serverSettings.ts are pinned in its seam entry until they move into apps/server/src/fork/. - A pull request run (base with the list, or --config-ref) refuses a base or merge-base without the list with one "update the branch" error. - A moved submodule pointer counts as a changed line; an unlisted upstream file may not lose or reorder lines either. - fork-follow refuses an upstream fork-*.yml before the seam check on the same-base path too, and its test checks the advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: a pending file below its ceiling is refused from upstream Round-2 state lens on #277: a ceiling left too high after fork lines move out is room for a later PR to swap an upstream line for a fork line (net zero on the PR, within the ceiling from upstream), and the 'lower its ceiling' note only lands in a nightly log nobody sees. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: packages/shared/package.json ceiling 28 (DS2 #284 added 4 exports after the rebase) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: after a rebase, a pending file below its ceiling is a note (#277 round 3) When upstream takes a fork line word for word, the rebase drops it, so the series falls below its "pending" ceiling and the after-rebase check refused it; lowering the ceiling first failed the check on the old base, so fork-follow was stuck. --after-rebase (fork-follow's second check only) turns below-ceiling into a note; the next run, from the new base, refuses it and a pull request lowers it. The refusal for a ceiling now names that fix instead of "put the change in a fork file", and the fork-follow report says "does not fit the seam list". Adds a ceiling+1 boundary test. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: shorten comments to satisfy no-low-value-comments Cut two comments to four lines and drop PR numbers from two test comments. Meaning unchanged; no code change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: run the seam check and its tests on pull requests Add fork-seam-check.test.cjs to "Test the check" and a "Fork lines in upstream files" step that reads the seam list from the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: allow more than one DEFAULT_SHA when each is github.sha The seam-check step reads its list from the default branch too. The contract test now requires every DEFAULT_SHA to be github.sha instead of exactly one. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: pending ceilings for four provider files changed on main after the rebase Usage refresher and usage history fixes added fork lines to ProviderRegistry.test.ts and three provider-core files after this branch's snapshot of main. Record them as pending so the check from upstream passes once this merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…uard tests, renames, --from-upstream) (#380) * fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) - Seam and pending files: upstream lines no longer kept in order (deleted, moved, re-indented) are counted. A pull request may lose none of a seam file's upstream lines; from upstream each seam/pending file is held exactly to a new "lost" count (0 when unlisted), like a pending ceiling. - Lines are compared with their indentation (only trailing blanks, CR and blank lines are ignored), so an indentation-only change to an upstream file is refused. - A listed path that neither the base nor the head has is a note, so the list can name both paths of a file upstream renamed. - --from-upstream: fork-follow says the base is upstream; a base without the list is no longer taken for upstream, and an upstream with a list of its own (a fork of this fork) is judged by the head's list. - Ceiling refusals are their own kind, not matched by text; fork-follow also writes the after-rebase notes to the step summary. - Tests for the removed-list source and the fork-*.yml delete exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: lens fixes for #380 (seam-line moves, lost lines deleted later, untested guards) - From upstream, seam lines are no longer filtered out: the base is upstream, and fork lines only add, so an upstream line moved past an upstream `}` (a listed seam line) is now counted. - On a pull request, a seam line is discounted only by the copies the head really dropped (at most the listed copies), so a moved copy still counts as lost. - "lost" now holds two counts per file, {"lines": N, "gone": M}: `gone` counts upstream lines whose text the head no longer has, so a line already lost to a move or re-indent cannot be deleted later for free. The old number format is refused (exit 3). - Tests for guards that a mutation survived: lost ceilings and notes in main(), an exceeded count after a rebase, an indented seam line, and the step summary being appended to. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: cut the findLostLines comment to the lint limit Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
#189) (#277) * fork seam check: every upstream file counted, allow list from main (#242 #189) The seam check only judged files listed in .github/fork-seams.json, so a fork line in any other upstream file passed; and it read that list from the working tree, so a pull request judged itself by the list it brought. - Every upstream file counts. From upstream (a base without the list), every file the merge-base has is upstream's. From a pull request's base, files named as the fork's or matched by the new "forkFiles" are the fork's own; a pattern that matches an upstream file fails the check from upstream. - "pending" names the 61 upstream files whose fork lines predate this rule: noted from upstream, and a pull request may change them but not grow them. - The list is read from git: --config-ref, else the base when it has the list, else the head (upstream has none). Never the working tree or the PR's head. - From main, a seam line main already has cannot be added a second time. - fork-follow refuses an upstream workflow named like the fork's before the seam check, so its report keeps the specific advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: no hidden upstream files, pending ceilings, stale-branch error Review round 1 of the seam check (bypass and state lenses): - An upstream file the change deletes or renames is refused, unless .github/fork-removed-workflows.txt lists it (or it is upstream's fork-*.yml, which fork-follow makes the fork delete). - "pending" maps each file to a ceiling of fork lines counted from upstream; fork-follow refuses a file above it and notes one below it. - pending now lists the three provider files main gained since; the 29 older fork lines in apps/server/src/serverSettings.ts are pinned in its seam entry until they move into apps/server/src/fork/. - A pull request run (base with the list, or --config-ref) refuses a base or merge-base without the list with one "update the branch" error. - A moved submodule pointer counts as a changed line; an unlisted upstream file may not lose or reorder lines either. - fork-follow refuses an upstream fork-*.yml before the seam check on the same-base path too, and its test checks the advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: a pending file below its ceiling is refused from upstream Round-2 state lens on #277: a ceiling left too high after fork lines move out is room for a later PR to swap an upstream line for a fork line (net zero on the PR, within the ceiling from upstream), and the 'lower its ceiling' note only lands in a nightly log nobody sees. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: packages/shared/package.json ceiling 28 (DS2 #284 added 4 exports after the rebase) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: after a rebase, a pending file below its ceiling is a note (#277 round 3) When upstream takes a fork line word for word, the rebase drops it, so the series falls below its "pending" ceiling and the after-rebase check refused it; lowering the ceiling first failed the check on the old base, so fork-follow was stuck. --after-rebase (fork-follow's second check only) turns below-ceiling into a note; the next run, from the new base, refuses it and a pull request lowers it. The refusal for a ceiling now names that fix instead of "put the change in a fork file", and the fork-follow report says "does not fit the seam list". Adds a ceiling+1 boundary test. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: shorten comments to satisfy no-low-value-comments Cut two comments to four lines and drop PR numbers from two test comments. Meaning unchanged; no code change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: run the seam check and its tests on pull requests Add fork-seam-check.test.cjs to "Test the check" and a "Fork lines in upstream files" step that reads the seam list from the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: allow more than one DEFAULT_SHA when each is github.sha The seam-check step reads its list from the default branch too. The contract test now requires every DEFAULT_SHA to be github.sha instead of exactly one. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: pending ceilings for four provider files changed on main after the rebase Usage refresher and usage history fixes added fork lines to ProviderRegistry.test.ts and three provider-core files after this branch's snapshot of main. Record them as pending so the check from upstream passes once this merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…uard tests, renames, --from-upstream) (#380) * fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) - Seam and pending files: upstream lines no longer kept in order (deleted, moved, re-indented) are counted. A pull request may lose none of a seam file's upstream lines; from upstream each seam/pending file is held exactly to a new "lost" count (0 when unlisted), like a pending ceiling. - Lines are compared with their indentation (only trailing blanks, CR and blank lines are ignored), so an indentation-only change to an upstream file is refused. - A listed path that neither the base nor the head has is a note, so the list can name both paths of a file upstream renamed. - --from-upstream: fork-follow says the base is upstream; a base without the list is no longer taken for upstream, and an upstream with a list of its own (a fork of this fork) is judged by the head's list. - Ceiling refusals are their own kind, not matched by text; fork-follow also writes the after-rebase notes to the step summary. - Tests for the removed-list source and the fork-*.yml delete exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: lens fixes for #380 (seam-line moves, lost lines deleted later, untested guards) - From upstream, seam lines are no longer filtered out: the base is upstream, and fork lines only add, so an upstream line moved past an upstream `}` (a listed seam line) is now counted. - On a pull request, a seam line is discounted only by the copies the head really dropped (at most the listed copies), so a moved copy still counts as lost. - "lost" now holds two counts per file, {"lines": N, "gone": M}: `gone` counts upstream lines whose text the head no longer has, so a line already lost to a move or re-indent cannot be deleted later for free. The old number format is refused (exit 3). - Tests for guards that a mutation survived: lost ceilings and notes in main(), an exceeded count after a rebase, an indented seam line, and the step summary being appended to. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: cut the findLostLines comment to the lint limit Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
|
(Reposted 2026-11-22 with private details removed; original 2026-11-17.) lens: state verdict: NOT SAFE (head 8f8cea13) Read-only review (correctness/state/tests). The script logic and its new guards are sound and well tested. NOT SAFE because the Findings1. MAJOR: Against the PR head alone ( 2. MAJOR (for the proposed fork-checks.yml step): a branch from before a nightly rebase gets flooded with false refusals. fork-follow moves 3. MINOR: in a PR run, upstream's own copies of a line use up its seam allowance (fork-seam-check.cjs:69). 4. MINOR: the fork-follow reorder covers only the rebase path. With an upstream 5. MINOR (test gap): the hidden-upstream-file check is not tested where For the bypass lens (not a state issue, only noting): (a) serverSettings.ts
(b) The workflow step
# .github/workflows/fork-checks.yml, job no_schema_changes - name: Test the check run: node --test .github/scripts/fork-schema-check.test.cjs .github/scripts/fork-upstream-files-check.test.cjs .github/scripts/fork-seam-check.test.cjs # ... after "Refuse changes to upstream files the fork leaves alone": # Fork lines in upstream files stay the seams pinned in .github/fork-seams.json. Under # pull_request_target, github.sha is the default branch's tip: this script and the list come # from it, so a pull request cannot widen either (--config-ref also covers a stacked PR whose # base branch carries a wider list). Needs the seam check from #277 on the default branch. - name: Fork lines in upstream files if: ${{ !cancelled() }} env: DEFAULT_SHA: ${{ github.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: | set -euo pipefail # After fork-follow rebases the base onto upstream, an older branch's merge-base is an # upstream commit (no list): the check would count the whole old series as this PR's lines. merge_base="$(git merge-base "$BASE_SHA" "$HEAD_SHA" || true)" if [[ -z "$merge_base" ]] || [[ -z "$(git ls-tree --name-only "$merge_base" -- .github/fork-seams.json)" ]]; then echo "::error::This branch predates the last rebase of its base onto upstream. Update the branch; the seam check then judges only its own lines." exit 1 fi node .github/scripts/fork-seam-check.cjs --config-ref "$DEFAULT_SHA" "$BASE_SHA" "$HEAD_SHA" State question
Mutation results (
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
#189) (#277) * fork seam check: every upstream file counted, allow list from main (#242 #189) The seam check only judged files listed in .github/fork-seams.json, so a fork line in any other upstream file passed; and it read that list from the working tree, so a pull request judged itself by the list it brought. - Every upstream file counts. From upstream (a base without the list), every file the merge-base has is upstream's. From a pull request's base, files named as the fork's or matched by the new "forkFiles" are the fork's own; a pattern that matches an upstream file fails the check from upstream. - "pending" names the 61 upstream files whose fork lines predate this rule: noted from upstream, and a pull request may change them but not grow them. - The list is read from git: --config-ref, else the base when it has the list, else the head (upstream has none). Never the working tree or the PR's head. - From main, a seam line main already has cannot be added a second time. - fork-follow refuses an upstream workflow named like the fork's before the seam check, so its report keeps the specific advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: no hidden upstream files, pending ceilings, stale-branch error Review round 1 of the seam check (bypass and state lenses): - An upstream file the change deletes or renames is refused, unless .github/fork-removed-workflows.txt lists it (or it is upstream's fork-*.yml, which fork-follow makes the fork delete). - "pending" maps each file to a ceiling of fork lines counted from upstream; fork-follow refuses a file above it and notes one below it. - pending now lists the three provider files main gained since; the 29 older fork lines in apps/server/src/serverSettings.ts are pinned in its seam entry until they move into apps/server/src/fork/. - A pull request run (base with the list, or --config-ref) refuses a base or merge-base without the list with one "update the branch" error. - A moved submodule pointer counts as a changed line; an unlisted upstream file may not lose or reorder lines either. - fork-follow refuses an upstream fork-*.yml before the seam check on the same-base path too, and its test checks the advice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: a pending file below its ceiling is refused from upstream Round-2 state lens on #277: a ceiling left too high after fork lines move out is room for a later PR to swap an upstream line for a fork line (net zero on the PR, within the ceiling from upstream), and the 'lower its ceiling' note only lands in a nightly log nobody sees. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: packages/shared/package.json ceiling 28 (DS2 #284 added 4 exports after the rebase) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: after a rebase, a pending file below its ceiling is a note (#277 round 3) When upstream takes a fork line word for word, the rebase drops it, so the series falls below its "pending" ceiling and the after-rebase check refused it; lowering the ceiling first failed the check on the old base, so fork-follow was stuck. --after-rebase (fork-follow's second check only) turns below-ceiling into a note; the next run, from the new base, refuses it and a pull request lowers it. The refusal for a ceiling now names that fix instead of "put the change in a fork file", and the fork-follow report says "does not fit the seam list". Adds a ceiling+1 boundary test. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: shorten comments to satisfy no-low-value-comments Cut two comments to four lines and drop PR numbers from two test comments. Meaning unchanged; no code change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: run the seam check and its tests on pull requests Add fork-seam-check.test.cjs to "Test the check" and a "Fork lines in upstream files" step that reads the seam list from the default branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-checks: allow more than one DEFAULT_SHA when each is github.sha The seam-check step reads its list from the default branch too. The contract test now requires every DEFAULT_SHA to be github.sha instead of exactly one. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: pending ceilings for four provider files changed on main after the rebase Usage refresher and usage history fixes added fork lines to ProviderRegistry.test.ts and three provider-core files after this branch's snapshot of main. Record them as pending so the check from upstream passes once this merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…uard tests, renames, --from-upstream) (#380) * fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) - Seam and pending files: upstream lines no longer kept in order (deleted, moved, re-indented) are counted. A pull request may lose none of a seam file's upstream lines; from upstream each seam/pending file is held exactly to a new "lost" count (0 when unlisted), like a pending ceiling. - Lines are compared with their indentation (only trailing blanks, CR and blank lines are ignored), so an indentation-only change to an upstream file is refused. - A listed path that neither the base nor the head has is a note, so the list can name both paths of a file upstream renamed. - --from-upstream: fork-follow says the base is upstream; a base without the list is no longer taken for upstream, and an upstream with a list of its own (a fork of this fork) is judged by the head's list. - Ceiling refusals are their own kind, not matched by text; fork-follow also writes the after-rebase notes to the step summary. - Tests for the removed-list source and the fork-*.yml delete exception. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: lens fixes for #380 (seam-line moves, lost lines deleted later, untested guards) - From upstream, seam lines are no longer filtered out: the base is upstream, and fork lines only add, so an upstream line moved past an upstream `}` (a listed seam line) is now counted. - On a pull request, a seam line is discounted only by the copies the head really dropped (at most the listed copies), so a moved copy still counts as lost. - "lost" now holds two counts per file, {"lines": N, "gone": M}: `gone` counts upstream lines whose text the head no longer has, so a line already lost to a move or re-indent cannot be deleted later for free. The old number format is refused (exit 3). - Tests for guards that a mutation survived: lost ceilings and notes in main(), an exceeded count after a rebase, an indented seam line, and the step summary being appended to. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seam check: cut the findLostLines comment to the lint limit Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
fork seam check ignores upstream files that have no seam entry
There was an error while loading. Please reload this page.