Skip to content

#451 step 3: Sync with the newest upstream nightly, adopting upstream Issues #454

Closed

Description

@tannerpolley

Part of #451. Step 3 of 7, after step 2. Plan: #451 (comment) ("Order", item 3, which lists every issue resolution). Follow the upstream sync procedure in docs/operations/fork.md: a real merge of the newest nightly, the lost-fork-code audit with a behavior ledger, a disposable-database check of upstream migration 97 beside the fork ledger, and disabling any new GitHub workflows.

Issue resolutions:

  • upstream's files at the 7 colliding paths;
  • upstream's issue surface and thread-details rows;
  • linkedIssue kept beside issues;
  • upstream's toolkit registered and the fork's link_issue/unlink_issue deleted;
  • upstream's create_issue and set_issue_state hidden from repository-managed threads;
  • the work section joined into upstream's panel by one hook line;
  • the fork page moved to /roadmap;
  • IssueLinks.enrich reading thread.issues[] as well as the old table.

This is the only step with two issue readers.

Done: the behavior ledger shows no fork behavior lost silently; vp run check:changed passes; the context budget is remeasured; known baseline failures (#449) are not increased.

Activity

  1. tannerpolley commented on Nov 17, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Done

    Issue: #454 #451 step 3: Sync with the newest upstream nightly, adopting upstream Issues

    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-454-451-step3-sync-2026-11-17

    Model: claude-opus-5-5

    Branch: sync/upstream-2026-11-17

    Updated: 2026-11-18T01:05:36.479Z

  2. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #454 #451 step 3: Sync with the newest upstream nightly, adopting upstream Issues
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-454-451-step3-sync-2026-11-17
    Model: claude-opus-5-5
    Branch: sync/upstream-2026-11-17
    Completed: 2026-11-18T00:09:19.942Z

    The sync is done and open as draft PR #469, which closes #454 and references #451. I haven't merged it. After merging main with the #449 fix, Orchestrator.control-reads, FoundationPersistence and ProjectionStore.fork all pass in full. Together with the budget test that's 4 of 4 files and 119 of 119 tests.

    The merge

    Issue resolutions, as the plan says

    • Upstream owns /issues, the issue tab, the thread-details rows and its issue tools. The fork's link_issue/unlink_issue are deleted.
    • create_issue and set_issue_state are hidden from repository-managed threads, for both listing and calling them, so propose_issue_change stays their gated path. A new test covers this.
    • The fork roadmap moved to /roadmap. The thread's issues side panel still shows it, and clicking a row there opens upstream's issue tab beside the thread.
    • The fork work section shows inside upstream's issue detail panel through one hook line. The fork's own detail panel is deleted.
    • linkedIssue stays beside upstream's thread.issues[], and the fork's live-work lookup reads both. A new test covers that.

    Other gates

    • Lost fork code: the script flagged 47 hunks plus 3 deleted fork files. Each has a judgment in the PR body, and none is a silent loss.
    • Migrations: checked on a disposable database copy, not ~/.t3/userdata. Upstream's two new migrations (97 and 98) applied, the fork's migration ledger stayed at 30/30, and the integrity check passed.
    • Workflows: the sync adds none, so nothing needed disabling.
    • Agent context budget: the tool list grew from 79,439 to 80,901 bytes (upstream's 8 issue tools in, the fork's 2 out). The agent-context-increase label doesn't exist in the fork, so I couldn't add it.
    • Browser pass: in the in-app browser, with no seeded data and one test project, upstream /issues, /roadmap, the side panel and the work section inside upstream's panel all work. The dev server is stopped.

    vp run check:changed

    PR #469, head 1b7b527, checks and reviews: none (Actions are disabled in the fork; no reviews yet).

  3. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: working

    Issue: #454 #451 step 3: Sync with the newest upstream nightly, adopting upstream Issues
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-454-451-step3-sync-2026-11-17
    Model: claude-opus-5-5
    Branch: sync/upstream-2026-11-17
    Completed: 2026-11-18T00:36:50.624Z

    I'm running the extended roadmap test without the fix (task bjh4lrxvx) to confirm it fails.

  4. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #454 #451 step 3: Sync with the newest upstream nightly, adopting upstream Issues
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-454-451-step3-sync-2026-11-17
    Model: claude-opus-5-5
    Branch: sync/upstream-2026-11-17
    Completed: 2026-11-18T01:05:37.002Z

    The Checker's three fixes and the owner's rule for child threads are pushed. The rerun check:changed shows no new failures.

    1. The roadmap refreshes when an issue is linked or unlinked. thread.issue-synced is now in the refresh filter (IssueRoadmap.ts), so the roadmap and the thread-details Issues section update right away. I extended the "coalesces metadata bursts" test in IssueRoadmap.test.ts with a thread.issue-synced event that must trigger a refresh. It failed before the fix.

    2. The managed-thread check uses the read-only connection. Both managedRepositories (still used by propose_issue_change) and the new lineage check now run through NodeSqliteClient.readOnly.

    3. The PR body names the conflicts. ProjectionStore.ts, Orchestrator.control-reads.test.ts, Observability.ts and server.ts conflicted, and each kept both sides; the body now says what was kept in each.

    4. Children of managed threads lose create_issue and set_issue_state. This covers any thread below the orchestrator root or an issue-claiming worker, at any depth, including read-only and Writer children. The check is one recursive read of stored parent links, capped at 32 levels and doing only primary-key lookups. Every other issue tool stays available to them, and propose_issue_change keeps its old rule: children still can't use it.

      • Lineage: IssueChangeService.test.ts checks a child, a grandchild, a claiming worker, the worker's child, and an unrelated thread and its child, against a real database.
      • Tool list: the test in McpHttpServer.test.ts now registers the real issues toolkit and lists tools for a managed thread, its child and an ordinary thread. With the annotation removed from the real create_issue, it fails.
      • One caveat: in the tool-list test, "is this thread managed" is still mocked. The database test above checks the real lineage query, so neither test alone covers a child end to end.
      • Docs: I updated docs/operations/fork.md to say which threads don't see the two tools.

    Checks: the touched test files pass (86 of 86).

    • vp run check:changed: run with GIT_CONFIG_GLOBAL=/dev/null and a 1-hour test limit over 406 files. Format, lint, knip, graphql and the React Compiler check pass, and typecheck shows only main's 3 known mobile errors.
    • Failures: 19 of 9159 tests failed. 16 are the ones that already fail on main and 2 are the known 11 server tests fail on main: FoundationPersistence (9) and Orchestrator.control-reads (2) #449 web failures. The last is upstream's new terminal-shell test, which also fails on the upstream tag.

    main hadn't moved, so there was nothing to merge.

    PR #469, head 99a464d, checks and reviews: none (Actions are disabled in the fork; the PR is still a draft and has no review yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions