GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fork seams: announce the model policy backstop lines in ThreadManagementService.ts (#876 M4) by scuttletoby · Pull Request #1128 · scuttletoby/t3code

Conversation

@scuttletoby

@scuttletoby scuttletoby commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

What

A list-only change to .github/fork-seams.json. It announces the 2 upstream lines that the model policy backstop (#876 M4) adds to apps/server/src/orchestration-v2/ThreadManagementService.ts, so the backstop PR can move them to added once this merges (step 1 of "Adding a seam line" in docs/fork/updates.md).

Main already has an entry for this file (the F7 background-wait lines), so the two lines go under that entry's announced (since: 2026-11-27); main's why and added lines stay as they are, and there is no second key for the file:

  • import * as ModelPolicyBackstop from "../fork/modelPolicyBackstop.ts"; // Fork: model policy backstop
  • Effect.andThen(ModelPolicyBackstop.checkAgentCommand(command, orchestrator)), // Fork: model policy backstop (one more step in dispatch, after upstream's own assertDispatchTargetEnabled and before orchestrator.dispatch)

A script copied both strings from the backstop branch's commit; they were not typed again. Both are insertions: no upstream line moves or changes.

Why

ThreadManagementService.dispatch is the one place every thread command passes. Checking there means no MCP route (t3_thread_transfer, run_scheduled_task_now, a tool added later) skips the model policy (#876 M4). A PR is judged by main's list, so the backstop cannot add these lines and their entry in the same change.

Checks

  • node --test .github/scripts/fork-seam-check.test.cjs on this branch: 122/122 pass
  • fork-seam-check.cjs --config-ref origin/main --no-upstream origin/main <this branch>: passes
  • The backstop branch judged by this branch's list: passes. Judged by main's list, it is refused for these 2 lines, as expected.

Note: since is today. If this merges on a later day, set it to that day.

Part of #876.

General vs project: general (list only)

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Nov 27, 2026
Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129
Merged
Follow upstream: rebase onto v0.1.14-nightly.20261127.5345 (draft) #1138
Merged
@scuttletoby
scuttletoby force-pushed the main branch from f3ed74c to 9921016 Compare November 28, 2026 00:00
This was referenced Nov 28, 2026
fork seams: announce the t3_background_wait taskId alias and ended-task lines (F7) #1176
Merged
Model policy Settings: stale-row marks and adding rows from the live model list (#876 M6) #1178
Merged
Model policy: warn in the composer when the next turn names no effort (#876) #1197
Merged
@scuttletoby @claude
fork seams: announce the model policy backstop lines in ThreadManagem…
53e3664
…entService.ts (#876 M4)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@scuttletoby
scuttletoby force-pushed the fork-seams/model-policy-backstop branch from 57d7af7 to 53e3664 Compare November 28, 2026 07:08
@scuttletoby

scuttletoby commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

lens: state · reviewer: Claude Opus 5.5 · read at: 53e3664

blocker: none
major: none
minor: the PR body is stale after the restack. It still says "The file has no entry on main, so it gets a new one with "added": []". The change now merges into main's existing F7 entry, which is the right move. Update the body so the merge commit describes what actually landed.
minor: the entry's why now describes the backstop as if it were already in the file ("every thread command ... is checked"), but this PR only announces it. That is harmless if #1129 follows. If #1129 is dropped, the list-only PR that removes the announcement must also take this sentence out of why.

Restack check (nothing from main dropped). The PR diff against main touches only .github/fork-seams.json (+9/−2). It changes no FORK_CHANGES or docs file, so no conflict edit there could drop anything. Main's one commit past the merge base (f02b42b, #876 M6) does not touch fork-seams.json. In the merged entry:

  • main's three F7 added lines are byte-identical
  • main's F7 why is kept whole, with the backstop sentence appended
  • the raw file has exactly one "apps/server/src/orchestration-v2/ThreadManagementService.ts" key. A duplicate would parse silently, with the last key winning.

Strings. Both announced lines match, character for character, one copy each in #1129's ThreadManagementService.ts. Neither line is in this PR's tree or main's tree yet (0×), so the "announced line already in its file" test cannot fire. #1129's own list matches step 2 of docs/fork/updates.md: both lines are moved to added, announced is dropped, and the why text is identical.

State question.

  • Runs again: the change is list-only and idempotent. A later announcement for this file joins this announced.added block and re-dates since, as the docs say. No second block or key appears.
  • Stops half-way: this PR merges but Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129 does not. The two lines stay allowed for 14 days from since (2026-11-27). After that, fork-follow from upstream refuses the expired announcement until a list-only PR re-dates or removes it. Meanwhile, any PR may spend these two lines, not just Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129. That is the documented risk, and reviewers of other PRs touching this file should know about it.
  • Old state: the branch is one commit behind main, and that commit is outside the seams list. since is one day old. The PR run warns only within 3 days of expiry, so merging before about 12-08 is quiet. As the body says, re-date it if this merges later.
  • Empty / existing state: the file already has an entry, and the restack correctly reuses it. That is the "existing state" case the first version (new entry) would have broken with a duplicate JSON key.

🤖 Generated with Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@scuttletoby

scuttletoby commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

lens: merge-path · reviewer: Claude Opus 5.5 · read at: 53e3664

blocker: none
major: none
minor: the PR body is from before the restack. It says the file "has no entry on main" and gets a new one with "added": []. The diff instead joins main's existing F7 entry, which is correct. Update the body so it matches the diff.
minor: the entry's why now describes the backstop as present. Until #1129 merges, added holds only the F7 lines. That is fine for an announcement, but if #1129 is dropped, the why sentence has to go when the announcement is removed.

Restack check. The only file this PR changes is .github/fork-seams.json: no FORK_CHANGES or docs edits. I compared this list with main's tip (f02b42b) key by key. There are two differences: one added announced block and a longer why for ThreadManagementService.ts. Nothing from main is dropped. The three F7 added lines are unchanged, and the file has one key, not a duplicate. Main's one commit since the merge base does not touch the seam list.

Lines. Both announced strings match, word for word, the two + lines that #1129 (a4f16ce) adds to the file, ignoring leading indentation. Neither line is in main's file yet. They are insertions beside upstream's assertDispatchTargetEnabled step, so no upstream line is claimed.

Gate. fork-seam-check.cjs --config-ref origin/main --no-upstream origin/main <head> passes. #1129 judged by this head's list also passes. Judged by main's list it is refused, as intended, so the backstop cannot land before this does (fail closed). since is 2026-11-27, inside the 14 days. This PR adds no seam line itself.

State: runs again, stops half-way, old or empty state

  • Runs again: list-only, with no side effects. A second identical merge is a no-op diff.
  • Stops half-way: if this merges and Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129 never does, the announcement stays and fork-follow refuses it after 14 days (from 2026-12-11), with a clear fix: re-date it or remove it in a list-only PR. If Model policy backstop: check an agent's dispatched thread commands once (#876 M4) #1129 merges first, main's list refuses it.
  • Old state: a branch cut before this merges that edits the seam list and drops the in-date announcement is refused by the drop check. It must keep the block.
  • Empty state: does not apply. The entry already exists, and announced has two lines with a valid day, so the shape check passes.

Public repo: nothing personal in the diff.

🤖 Generated with Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@scuttletoby scuttletoby added the fork:merge-ready Merge conveyor: lenses done, merge when green label Nov 28, 2026
@scuttletoby
Merge branch 'main' into fork-seams/model-policy-backstop
5dbfa7a
@scuttletoby
scuttletoby merged commit 76e68a2 into main Nov 28, 2026
27 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@scuttletoby scuttletoby mentioned this pull request Nov 28, 2026
fork seams: announce the backstop's own-services dispatch line and the scheduled run's refusal text (#876 M4) #1199
Merged
scuttletoby added a commit that referenced this pull request Nov 28, 2026
@scuttletoby @claude
fork seams: announce the backstop's own-services dispatch line and th…
fb1fcac
…e scheduled run's refusal text (#876 M4) (#1199)

The model policy backstop (#1129) now checks each agent command on
ThreadManagementService's own server settings and command receipts, so a
call whose context lacks the settings service is still checked and a replay
of an accepted command is answered from its receipt. That changes its one
line in dispatch; this announces the new text in place of the one #1128
announced (not spent yet), with since set to today.

It also announces three lines in ScheduledTaskService.ts: an import of the
backstop, and two lines at the top of dispatchErrorMessage, so a run the
backstop refused records the refusal's text instead of the launch error
that wraps it.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

fork:merge-ready Merge conveyor: lenses done, merge when green

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@scuttletoby
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.