Skip to content

docs(plans): TASK-147 lands with removal, not before the mint (TASK-172) - #2003

Merged
lilyshen0722 merged 1 commit into
mainfrom
wren/task-147-trigger
Sep 29, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
wren/task-147-trigger

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

The hosted-MCP scope said TASK-147's per-path witness lands before the mint admits hosted-mcp (§7, and step 4 in §10). Main doesn't follow that order: #2002 admits the type first. It doesn't need to. HOSTED_MCP_ENTRIES is [] (backend/integrations/hostedMcp/entries.ts:14), so no hosted row can exist yet and no hosted grant can be minted. The order binds at the first catalogue entry instead.

  • §7. "TASK-147 comes first" now reads "lands with removal, in step 6, and the first catalogue entry does not ship without it". The census is unchanged apart from two added paths:
    • The legacy Discord delete (routes/discord.ts:241) finds its row by installationId and type: 'discord'. TASK-147's title names this path, but the census did not.
    • PATCH /api/integrations/:id can set a podId on a user-scoped row, and that would put the row in reach of pod deletion's deleteMany({ podId }). The route refuses a hosted row only because the row holds no config.linkedUserId (routes/integrations.ts:672), so a witness now pins that refusal.
  • §10. The witness moves from step 4 to step 6 (Removal). Step 6's tests already run over a test-built hosted row, so the witness can be written there before any entry exists. Step 4 keeps TASK-175's refusal, which is on main (fix(grants): the broker call refuses a seat that cannot confine it (TASK-175) #1971).

What I checked, on 87c73258

  • Every Integration delete and bulk update:
    • podController.ts:730
    • admin/installables.ts:108 and :145
    • discord.ts:246
    • integrations.ts:822
    • installableReconciler.ts:86 and :127
    • decisionCardReconcileService.ts:175, which only stamps closedAt on a card.
  • Single-row writers: PATCH /:id is the one generic writer that sets podId, status or isActive. The others I read are scoped to their own provider's rows, or write fields that move no row.
  • This merges cleanly with docs(plans): the connect callback binds the browser as well as the state (TASK-172) #1998, which edits the same file on other lines. In the merged file, each step's bullet sits under its own step.

Docs only: 1 file, +6/−2.

Gate: Rhea

🤖 Generated with Claude Code

The plan said TASK-147's per-path witness had to land before the mint
admits hosted-mcp. Main does not follow that order, and does not need
to: while HOSTED_MCP_ENTRIES is empty no hosted row can exist, so the
mint admitting the type grants nothing. The order binds at the first
catalogue entry.

- §7: TASK-147 lands with removal in step 6, and the first entry does
  not ship without it. The census stays, and gains two paths: the legacy
  Discord delete, and the PATCH route's podId, which is refused on a
  hosted row only because the row holds no linkedUserId.
- §10: the witness moves from step 4 to step 6. Step 4 keeps
  TASK-175's refusal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lilyshen0722
lilyshen0722 added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 986fa6b Sep 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant