Skip to content

#418 step 1: Isolate managed admission policy behind upstream delegation #433

Closed

Description

@tannerpolley

Part of #418. Step 1 of 4. Full scope, tests and done criteria are in the canonical plan: #418 (comment) ("Small separately mergeable sequence", item 1). Owner decisions: #418 (2026-11-17 comment).

Behavior and boundary: preserve current behavior. Isolate the remaining eligibility, root, attempt, handoff and role decisions in owned planners, and pass their decisions through the existing dispatch collectors. Reuse the launch and stop primitives, with no schema changes.

Tests: extend the existing IssueWorkStore, IssueEligibility, IssueReviewDelegation and managed delegation tests for:

  • duplicate requests;
  • pool contention;
  • ownership changes;
  • the Writer exemption;
  • request reuse.

Done:

  • one committed claim owner;
  • the same results and authority as today;
  • narrower Orchestrator and MCP policy hunks (remeasure against 7d32075e37);
  • the focused tests pass.

Activity

  1. tannerpolley commented on Nov 17, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Done

    Issue: #433 #418 step 1: Isolate managed admission policy behind upstream delegation

    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-433-418-step1-2026-11-17

    Model: gpt-6.1-sol

    Branch: issue-433-418-step-1-isolate-managed-admission

    Updated: 2026-11-17T20:02:33.802Z

  2. tannerpolley commented on Nov 17, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #433 #418 step 1: Isolate managed admission policy behind upstream delegation
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-433-418-step1-2026-11-17
    Model: gpt-6.1-sol
    Branch: issue-433-418-step-1-isolate-managed-admission
    Completed: 2026-11-17T20:02:33.869Z

    Implemented #433 and opened draft PR #443, referencing #433 and #418.

    The extraction moves admission reads and queue refresh into IssueWorkDispatch, provider validation and committed admission continuation into IssueWorkCommands, and pool reporting into ManagedIssueDelegation. The existing EventSink transaction still owns claims, events, projections, receipts, and outbox intents. No schema or model-facing text changed.

    Before/after whole-file numstat against 7d32075e3757ded707914e2450c3e392a9665765:

    File Before +/− After +/−
    Orchestrator.ts 1548 / 685 1487 / 686
    EffectWorker.ts 359 / 16 359 / 16
    ProjectionStore.ts 450 / 43 450 / 43
    CodexAdapterV2.ts 477 / 124 477 / 124
    ClaudeAdapterV2.ts 365 / 44 365 / 44
    OrchestratorMcpService.ts 352 / 202 336 / 202
    Total 3551 / 1114 3474 / 1115

    Validation:

    • 106 focused tests passed across eight suites, including managed rollback failure injection.
    • check:changed passed formatting, lint, both unused-code checks, GraphQL, and all three package typechecks.
    • Its test phase had 160 passes and two control-read failures. Both failures reproduce on clean main. Four broader foundation-suite failures also reproduce on clean main; evidence and remaining gates are documented in the PR.

    The working tree is clean. Live userdata was untouched. Independent review remains open.

    PR #443, head 6d279be, checks and reviews: focused tests pass; required check has two confirmed baseline failures; review pending.

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