carlos / platform Public

Slice 1 plan: round 2 hit rule 2 in three fault families open

On branch design-linked-deployments

Plan review round 2 of 3 (slice 1 plan, findings in docs/superpowers/reviews/linked-deployments-slice1-plan-R2.md): Fable READY AFTER FIXES; Astra NOT READY with three P1s, each in a fault family that also had a round-1 finding. Under AGENTS.md rule 2 there is no third fix without Paul's choice.

  1. Revocation of the link credential (R1 Fable 5/9 -> R2 Astra 1): the round-1 "re-assert the channel on every call" repair can reinstall a rotated or revoked token. Recommended: one writer. The registry channel row is derived only from the console's links state (current hash, active or revoked, with a generation) by one function; requests never supply the hash. The channel is written before the token is delivered at poll.
  2. Home-side gates on the link path (R1 Fable 6 -> R2 Astra 2, Fable N2): hand-picking edge stages for ServeLinked missed the import gate. Recommended: linked requests run through the edge's normal pipeline, with the upstream pinned to the published account and app (no wildcard or path-map selection) and the public Host kept for the app. Every gate a tailnet request passes, a linked request passes too.
  3. Revocation at home of open streams (R1 Astra 2 -> R2 Astra 3): SSE and long downloads survive unpublish. Recommended cut: an unpublish at home replaces the whole link connection (cancel and redial), which ends every in-flight stream on it. Other published apps see a reconnect of about a second.

Fable's P2s (publish-time recheck for link registrations, store-level removal paths for linked app rows, a kindLink route kind) and Astra's P2s (lost-rotation recovery, public Host) are folded into the same revision.

Round 3 (last budgeted round): Fable READY AFTER FIXES (4 P2); Astra NOT READY with two P1s, both in the revocation-completeness family again:

  1. Home replaces the link connection only when a published name disappears, so unpublish-then-republish of the same name within one 2 s watch keeps old streams. Fix: a durable connection generation bumped with every unpublish or retarget; the loop replaces the connection whenever it changes.
  2. If the registry write after rotate or unlink fails, nothing retries it (a revoked link can't call in, and nothing else triggers a sync). Fix: the console records the generation it last synced; a console ticker re-syncs any link behind, revoked ones included, with no bucket reads; unlink is re-runnable from the person doors. Recommendation: apply both, plus Fable's P2s, and check the whole family with one randomized simulation (any interleaving of publish, unpublish, rotate, unlink and injected registry failures; invariant: within a bound, nothing revoked is served at the hub or at home, with no further API call or restart). No fourth plan round; Tasks 3, 4, 5 and 8 already get their own reviews and the branch gets a final review.