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: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) by scuttletoby · Pull Request #380 · scuttletoby/t3code Conversation
|
| mutant | fail |
|---|---|
| indentation trimmed again | 2 |
| PR run ignores seam lines lost | 3 |
| lost count + 1 | 3 |
| lost count above lines not refused | 1 |
| after-rebase lost count not a note | 1 |
| seam lines not filtered | 1 |
| pending counted on a PR | 1 |
lost entries ignored |
2 |
| LCS step wrong | 2 |
| prefix skip wrong | 1 |
lost key check off |
1 |
lost count check off |
1 |
lost reasons dropped in main() |
1 |
| seam path missing on both sides refused | 1 |
| pending path missing on both sides refused | 2 |
| note when only one side is missing | 1 |
| notes not printed | 1 |
| old "base without list" guess | 1 |
| flag OR old guess | 1 |
| flag combinations allowed | 1 |
| list from the base when it has one | 1 |
| ceiling found by text again | 1 |
| ceilings-only run passes | 1 |
| removed list read from head | 1 |
FORK_WORKFLOW = /fork-/ |
1 |
| fork-named delete allowed | 1 |
| nested workflow folder | 1 |
| pending ceiling + 1 | 3 |
In fork-follow.test.sh: dropping --from-upstream fails 63 checks, and dropping the summary write fails 1.
vp check on the changed JS and docs files: clean.fork-seam-check.cjs HEAD^1 HEAD): exit 0, "only the pinned seams (every upstream file it changes; list from the base)". The same result with --config-ref origin/main origin/main <head>, which is how fork-checks runs it.lost count above the new count is only a note (now also in the step summary). The next run, from the new base, refuses it until a PR lowers it, the same as a pending ceiling.lost key counts every file as 0 (both counts). That fails closed: from upstream, a file that lost lines is refused and the refusal names the count. PR runs of pending files are unaffected. A malformed lost (not an object, unknown path, 0, a fraction, a string, the round-1 plain number, a missing or extra key, gone above lines) throws, exit 3. A missing list at --config-ref still exits 3. A base without a list and without --from-upstream gives exit 1, never a pass.--from-upstream mode instead of guessing it from the base, rename handling as a note when a path is missing on both sides, and refusal kinds kept apart instead of matched by text.lost numbers for main's 35 files, the 9 refusals already on main, and fork-follow's step summary.Fixes for the security lens (NOT SAFE, 2 majors) and the state lens (SAFE with minors), both read at 19da0964. Commits a660cd8f (the fixes) and e50a2845 (a doc comment cut to the 4-line lint limit).
Security major 1: a line equal to a listed seam line (}, /**) could move or go unseen. Fixed in both runs.
stripDefaultServerSettings (moving next[key] = … below the }) now counts 1. Main's counts are unchanged: the same 35 files, with the same lines numbers as round 1.min(listed copies, base count − head count), by trimmed text. So a PR may drop the fork's } but not move it. Dropping more copies than listed is refused too. Change: moving a seam line within a seam file is now refused on a PR, because a moved copy looks the same as upstream's line with that text. A move takes two PRs (drop the line, then add it), and the docs say so.Security major 2: lost was one number, so a line already lost (re-indented or moved) could later be deleted for free. I picked a stronger fix than the lens's trimmed compare. Each lost entry now holds two counts, {"lines": N, "gone": M}:
lines is the round-1 ordered count, which keeps indentation.gone counts the upstream lines whose text the head no longer has at all (deleted or changed): base multiset minus head multiset, by trimmed text.gone and not a trimmed ordered count:
gone also catches deleting a line already counted as moved.pending ceiling already uses, in reverse, so it needs no second LCS.lines. The parser checks that, so an entry that can never match throws.return deny();, then deleted) gives exit 0 for main from upstream, exit 0 for the PR run and exit 0 for the PR from upstream. With this fix the run from upstream gives exit 1: "1 upstream line deleted or changed (its text is gone), more than its "lost" gone count of 0". The new CLI test "from upstream, deleting an upstream line already counted as re-indented is refused" fails on the round-1 script.gone is held only from upstream. What is left: a PR may delete or move an upstream line in a pending file. The PR gate passes it and main carries it. The next fork-follow run from upstream refuses it, now including lines that were already lost. So no release goes out, but fork-follow stays blocked until a fix PR merges. Closing it in the PR gate needs that run to know the upstream commit under main (a workflow change or a fetched upstream ref). The CLI test shows this: the PR run gives exit 0, and the run from upstream gives exit 1.Security minor 3: new withRepo test "from upstream, a lost count left too high is refused, naming the count; after a rebase it is a note". From upstream, too high gives exit 1, "lower it to 2." and the "Lower each … "lost" count" hint, without the fork-file hint. The mutant const ceilings = [...unlisted.ceilings] is now killed.
State lens finding 1 (four untested guards): all four are now tested, and each mutant is killed (table below).
lost count after a rebase is still refused (unit test).lost note is in the CLI output (the minor-3 test).Body numbers (minor 4 / state finding 3): 35 files (2 seam + 33 pending), not 37. Fixed above. Issue #385 has the same wrong 37 and needs the same fix. I did not comment on the issue.
Left alone, as asked:
lost block is not added here. fork-follow: seam check from upstream refuses on main (11 files now, 37 more after #380) #385 adds it after this merges, in the new two-count format.node --test .github/scripts/fork-seam-check.test.cjs: 46 pass (40 before). On the round-1 script, 9 of the new or changed tests fail. Some fail only on the new lost format; the mutants below give the red for each guard itself.bash .github/scripts/fork-follow.test.sh: all passed (156 ok).vp check on the changed files: format clean. Lint could not start on this PC: the repo's oxlint plugin needs @oxlint/plugins, and no deps are installed for this .cjs-only task. CI Lint passes on e50a2845.| mutant | fail |
|---|---|
| from upstream, seam lines filtered again | 3 |
| PR run filters every seam-line copy (moves free) | 2 |
| PR discount not bounded by listed copies | 1 |
| PR discount for unlisted lines | 2 |
| PR discount matched untrimmed (indented seam line) | 3 |
PR run seam lost > 0 → > 1 |
4 |
gone count not held |
4 |
after a rebase, an exceeded count only a note (:302 before) |
1 |
| below a count always a ceiling (after-rebase note lost) | 2 |
| "remove it from lost" text never used | 1 |
| unlisted file held at 1000 instead of 0 | 8 |
lost ceilings dropped in main() (minor 3) |
1 |
lost notes dropped in main() (:494 before) |
1 |
lost reasons dropped in main() |
2 |
| parse: extra key allowed | 1 |
parse: lines 0 allowed |
1 |
parse: non-integer gone allowed |
1 |
parse: gone < 0 allowed |
1 |
parse: gone > lines allowed |
1 |
parse: lost path outside the lists allowed |
1 |
| pending files not counted from upstream | 4 |
fork-follow: summary >> → > |
1 |
On a local merge of a660cd8f into main f59d8ad12f, I ran fork-seam-check.cjs --from-upstream 820f620e3d <merge> (the merge-base with upstream main).
lines reasons and 34 gone reasons: runtimeLayer.test.ts only moved or re-indented one), plus 9 refusals already on main. Main's own script on main without the flag gives exactly those 9 files.624a82ea; slots observe: one count per agent, stored held slots, seams list, tests (#353) #371 has since listed both AgentScope files as pending.--after-rebase.HEAD^1 HEAD, and --config-ref origin/main origin/main <head>.--config-ref gives exit 3. A malformed lost, including the round-1 plain number, gives exit 3.lost block: both counts are 0 for every file. That fails closed: 35 refusals on today's main until fork-follow: seam check from upstream refuses on main (11 files now, 37 more after #380) #385 lands.--from-upstream: against an upstream commit (no list), it gives exit 1, "The base … has no .github/fork-seams.json". That is never a pass, and fork-follow reports it.Merged origin/main (#384, #382, #403, #407) with a merge commit, no rebase. The only conflict was in docs/fork/updates.md. The resolution keeps this PR's --from-upstream command and main's note about server layers going in apps/server/src/fork/forkLayers.ts. No code changed. After the merge, the seam check tests pass (46/46) and the PR-mode seam check passes. --from-upstream still refuses only the known #385 "lost" counts, because main has no lost block yet.
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…uard 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]>
|
lens: security verdict: NOT SAFE (head 19da096) Read-only review (security and correctness lens). Question: can a PR now change an upstream line without either run seeing it? This PR is never looser than main: everything main refuses, it still refuses. The new "lost" count also closes most of #311 item 1. NOT SAFE because in two cases a moved or deleted upstream guard still passes both the PR run and the run from upstream, so nothing ever flags it. One case is already open on main's real list. The other opens with the Tests: Findingsmajor 1: an upstream line that matches a listed seam line may move or go in both runs ( if (!Equal.equals(currentRecord[key], defaultsRecord[key])) {
- next[key] = currentRecord[key];
}
+ next[key] = currentRecord[key];
This is not a regression (main counts no moves at all), but the body's claim "catches … one moved below the code it protects" does not hold here. Fix, from upstream: do not filter seam lines. The base is upstream, so fork seam lines can only be additions, and additions do not lower the LCS. I checked this change ( Fix, in the PR run: discount a seam line only by the copies the head really dropped ( major 2: a Fix: also hold a count taken with a trimmed compare. A re-indented line still matches under that compare, so deleting it raises the count. Or record minor 3: a minor 4: the body's numbers. "37 more files" / "2 seam files and 35 pending" should be 35 (2 seam files + 33 pending). The block itself has 35 entries, and it matches my run exactly. Claim (3), checked on a local merge of the head into origin/main
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: state verdict: SAFE (head 19da096) Not a security lens: state and correctness only. No blocker, no major. Five minors and one nit, all safe to do after merge. Runs
#311 / #325 items against the code
State question
Findings
Mutations (14 run, 10 killed, 4 survived)
Should this PR carry the
#385 should regenerate the block against its own main (today's block matches main 624a82e exactly) and prove exit 0 from upstream. It should merge before the next fork release. 🤖 Generated with Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…eted 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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: security re-check verdict: SAFE (head e50a284) A read-only re-check of the two majors from the first security lens (#380 (comment)), plus the new code from a660cd8 and e50a284. I read all the comments, the round-2 section of the body, Tests: I tried each attack below in two ways: through the exported functions on in-memory files, and through the CLI on a throwaway git repo for the key cases. Each one has three steps: upstream U, then main M (fork lines, plus a list fitted so that Major 1: closedNo line I tried hides behind a seam line in both runs:
From upstream nothing is filtered now, so every move or delete counts. In a seam file the PR run cannot pay for it with a "restore" either: adding a line is a seam breach, and moving a line back counts against main. See minor 4 for the two PR-run passes. Major 2: closed for deletion; moves and swaps are left, as the body saysPending file with a
So the writer's "still can't see" list matches what I found: (a) moving or re-indenting a line that is already lost, and (b) restoring a lost line while losing another. I found no third case. Both let an upstream guard go dead with no check seeing it, all the way into a release, but only once main's list has non-zero Findings
Exit 3 and the state question (check 3)
Fail-open check (check 4)
Mutation checks (13 run, 11 killed; one guard broken at a time, then put back, file checked byte-equal)
🤖 Generated with Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
…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]>
…lock The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…is interrupted (#386 part 1) (#412) * remote delegate: record and follow a launched child even if the call is interrupted (#386 PR 1) Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: seam-sized fix, fork-owned tests, stop a recorded launch with no task (#386) - RemoteDelegation.ts: the launch, record and follow run as one uninterruptible generator (`launchAndRecord`) at its old indentation plus two, so the upstream file gains 10 specific lines instead of a re-wrapped block (the seam check refuses generic lines like `});`). The reads before the launch stay cancellable. - A record that succeeds but names no task here now logs remote-delegation.record-found-no-task and stops the thread there, as a failed record does. - Tests move out of upstream's RemoteDelegation.test.ts (back to main's copy) into apps/server/src/fork/remoteDelegationAbortSafe.test.ts. - .github/fork-seams.json lists the 10 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: test failing stops and the stop after a refused record; seam note on pingdotgg#30249 (#386) - A record that is refused (also while interrupted) stops the launched thread there and follows nothing; a stop that fails there does not replace the record's error. These cover the two mutations the state lens found surviving (stop failure not ignored; no stop after a failed record). - The follower stub now notes the task id it reads, so the tests check which task is followed. - The seam note says upstream pingdotgg#30249 stops the child after an interrupted launch, while this seam keeps and follows it, so bringing it in through fork-follow is a deliberate choice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: keep upstream indentation in the launch-and-record block The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: RemoteDelegation entry no longer mentions a re-indented block 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]>
…is interrupted (#386 part 1) (#412) * remote delegate: record and follow a launched child even if the call is interrupted (#386 PR 1) Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: seam-sized fix, fork-owned tests, stop a recorded launch with no task (#386) - RemoteDelegation.ts: the launch, record and follow run as one uninterruptible generator (`launchAndRecord`) at its old indentation plus two, so the upstream file gains 10 specific lines instead of a re-wrapped block (the seam check refuses generic lines like `});`). The reads before the launch stay cancellable. - A record that succeeds but names no task here now logs remote-delegation.record-found-no-task and stops the thread there, as a failed record does. - Tests move out of upstream's RemoteDelegation.test.ts (back to main's copy) into apps/server/src/fork/remoteDelegationAbortSafe.test.ts. - .github/fork-seams.json lists the 10 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: test failing stops and the stop after a refused record; seam note on pingdotgg#30249 (#386) - A record that is refused (also while interrupted) stops the launched thread there and follows nothing; a stop that fails there does not replace the record's error. These cover the two mutations the state lens found surviving (stop failure not ignored; no stop after a failed record). - The follower stub now notes the task id it reads, so the tests check which task is followed. - The seam note says upstream pingdotgg#30249 stops the child after an interrupted launch, while this seam keeps and follows it, so bringing it in through fork-follow is a deliberate choice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: keep upstream indentation in the launch-and-record block The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: RemoteDelegation entry no longer mentions a re-indented block 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]>
…is interrupted (#386 part 1) (#412) * remote delegate: record and follow a launched child even if the call is interrupted (#386 PR 1) Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: seam-sized fix, fork-owned tests, stop a recorded launch with no task (#386) - RemoteDelegation.ts: the launch, record and follow run as one uninterruptible generator (`launchAndRecord`) at its old indentation plus two, so the upstream file gains 10 specific lines instead of a re-wrapped block (the seam check refuses generic lines like `});`). The reads before the launch stay cancellable. - A record that succeeds but names no task here now logs remote-delegation.record-found-no-task and stops the thread there, as a failed record does. - Tests move out of upstream's RemoteDelegation.test.ts (back to main's copy) into apps/server/src/fork/remoteDelegationAbortSafe.test.ts. - .github/fork-seams.json lists the 10 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: test failing stops and the stop after a refused record; seam note on pingdotgg#30249 (#386) - A record that is refused (also while interrupted) stops the launched thread there and follows nothing; a stop that fails there does not replace the record's error. These cover the two mutations the state lens found surviving (stop failure not ignored; no stop after a failed record). - The follower stub now notes the task id it reads, so the tests check which task is followed. - The seam note says upstream pingdotgg#30249 stops the child after an interrupted launch, while this seam keeps and follows it, so bringing it in through fork-follow is a deliberate choice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: keep upstream indentation in the launch-and-record block The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: RemoteDelegation entry no longer mentions a re-indented block 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]>
…is interrupted (#386 part 1) (#412) * remote delegate: record and follow a launched child even if the call is interrupted (#386 PR 1) Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: seam-sized fix, fork-owned tests, stop a recorded launch with no task (#386) - RemoteDelegation.ts: the launch, record and follow run as one uninterruptible generator (`launchAndRecord`) at its old indentation plus two, so the upstream file gains 10 specific lines instead of a re-wrapped block (the seam check refuses generic lines like `});`). The reads before the launch stay cancellable. - A record that succeeds but names no task here now logs remote-delegation.record-found-no-task and stops the thread there, as a failed record does. - Tests move out of upstream's RemoteDelegation.test.ts (back to main's copy) into apps/server/src/fork/remoteDelegationAbortSafe.test.ts. - .github/fork-seams.json lists the 10 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: test failing stops and the stop after a refused record; seam note on pingdotgg#30249 (#386) - A record that is refused (also while interrupted) stops the launched thread there and follows nothing; a stop that fails there does not replace the record's error. These cover the two mutations the state lens found surviving (stop failure not ignored; no stop after a failed record). - The follower stub now notes the task id it reads, so the tests check which task is followed. - The seam note says upstream pingdotgg#30249 stops the child after an interrupted launch, while this seam keeps and follows it, so bringing it in through fork-follow is a deliberate choice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: keep upstream indentation in the launch-and-record block The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: RemoteDelegation entry no longer mentions a re-indented block 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]>
…is interrupted (#386 part 1) (#412) * remote delegate: record and follow a launched child even if the call is interrupted (#386 PR 1) Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: seam-sized fix, fork-owned tests, stop a recorded launch with no task (#386) - RemoteDelegation.ts: the launch, record and follow run as one uninterruptible generator (`launchAndRecord`) at its old indentation plus two, so the upstream file gains 10 specific lines instead of a re-wrapped block (the seam check refuses generic lines like `});`). The reads before the launch stay cancellable. - A record that succeeds but names no task here now logs remote-delegation.record-found-no-task and stops the thread there, as a failed record does. - Tests move out of upstream's RemoteDelegation.test.ts (back to main's copy) into apps/server/src/fork/remoteDelegationAbortSafe.test.ts. - .github/fork-seams.json lists the 10 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: test failing stops and the stop after a refused record; seam note on pingdotgg#30249 (#386) - A record that is refused (also while interrupted) stops the launched thread there and follows nothing; a stop that fails there does not replace the record's error. These cover the two mutations the state lens found surviving (stop failure not ignored; no stop after a failed record). - The follower stub now notes the task id it reads, so the tests check which task is followed. - The seam note says upstream pingdotgg#30249 stops the child after an interrupted launch, while this seam keeps and follows it, so bringing it in through fork-follow is a deliberate choice. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remote delegate: keep upstream indentation in the launch-and-record block The block keeps upstream's indentation under a prettier-ignore, wrapped by Effect.gen(...).pipe(Effect.uninterruptible), so the PR re-indents no upstream lines (#380). Seam entry lines updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork-seams: RemoteDelegation entry no longer mentions a re-indented block Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.