Repository navigation
Closed
Description
Problem: there is no green path to add a new seam line to an upstream file.
- A PR is judged by its base's seam list, never its own (docs/fork/updates.md). So a PR that adds the line and its
.github/fork-seams.jsonentry together is red. - A PR that adds only the entry is also red: the seam-check unit test
.github/scripts/fork-seam-check.test.cjs(~:341, "every listed seam line is in its file") refuses a listed line that is not in the file. - So every new seam needs a merge past a red check. Two cases hit this on 11-17:
- slots observer: #371 follow-ups (marker line back, slots-off double count, comment, cleanup test) #381 item 1 (the marker line in
agentScope.ts): won't-do in slots observer: count each hold once with slots off in every order (#381) #407 for this reason (commits 485b92c, f57196f). - hold-work: a marker guards a held or stopped copy's home in the CLI; tests and docs (#368) #398 (hold-work: guard a held or stopped copy's home in the CLI; tests and docs (#313 follow-ups) #368): CI red only because its new
cli/connect.tsseam lines andholdWorkConnect*fork-file entries are not on main yet.
- slots observer: #371 follow-ups (marker line back, slots-off double count, comment, cleanup test) #381 item 1 (the marker line in
Recommendation: a two-step that is green at each step and keeps the list change visible and reviewed on its own.
- Step 1 PR: adds the entry marked as announced (e.g.
"announced": true, or a separateannouncedblock). The stale-list test accepts an announced line that is absent from its file, and the seam check treats it as allowed. It is a list-only PR, reviewed like any gate change. - Step 2 PR: adds the line and drops the flag. The stale-list test then requires the line to be present.
- Expiry: an announced entry older than N days, or still absent after its step-2 PR merged, fails the stale-list test. Announcements cannot pile up.
The same rule applies to forkFiles and pending additions: today a list-only PR naming new fork files is fine, but the code PR that edits them needs them on main first, so step 1 covers that too.
Alternative: in the PR run, allow entries the PR itself adds, but only for lines the same PR adds and only with an owner/lens label. This is weaker: the list judges itself.
Order:
- Write this after fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) #380 merges (fork seam check: #277 follow-ups (moved/deleted lines, indentation, guard tests, renames, --from-upstream) #380 rewrites fork-seam-check.cjs).
- Needs 2 lenses (merge-path gate).
- Then hold-work: a marker guards a held or stopped copy's home in the CLI; tests and docs (#368) #398 lands in two steps, and slots observer: #371 follow-ups (marker line back, slots-off double count, comment, cleanup test) #381 item 1 can be reopened if still wanted.
Part of #325.
Metadata
Metadata
Assignees
Labels
No labels
Activity
fork seams: fix round 1 on the announce-then-add path (#409)
fork seams: announce a new seam line, then add it; list guards and op…
fork seams: announce a new seam line, then add it; list guards and op…
fork seams: announce a new seam line, then add it; list guards and op…
fork seams: announce a new seam line, then add it; list guards and op…