R1 plan: record the retained hostclaim.Read and the 502 for a malformed claim (Astra P3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+3
−3
docs/superpowers/plans/2026-10-25-claims-cleanup-r1.md+3 −3
CI passed — run details
diff --git a/docs/superpowers/plans/2026-10-25-claims-cleanup-r1.md b/docs/superpowers/plans/2026-10-25-claims-cleanup-r1.md| index 1606e30a4..9f713f0e6 100644 |
| --- a/docs/superpowers/plans/2026-10-25-claims-cleanup-r1.md |
| +++ b/docs/superpowers/plans/2026-10-25-claims-cleanup-r1.md |
| @@ -2,7 +2,7 @@ |
| > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. |
| -**Goal:** No claims-off production caller imports a claim package (hostclaim, park, hostops, hostbox, hostactors) for live behaviour, with no behaviour change. |
| +**Goal:** No claims-off production caller imports a claim package (hostclaim, park, hostops, hostbox, hostactors) for live behaviour, with no behaviour change. One dependency stays on purpose: the offline door's host claim check keeps `hostclaim.Read`, because telling a malformed claim (502) from a valid one needs hostclaim's full decode and `Validate`. It goes when R6 removes the claim objects' writers. |
| **Architecture:** Each live slice gets a neutral home (`provision`, `regionname`, `console`, `host`, `instancectl`). Claim packages that still use a symbol keep it as a thin delegate to the new home, or as a test-pinned twin where the import direction forbids delegation. Golden vectors land first and must pass unchanged after every move. |
| @@ -50,8 +50,8 @@ |
| ### Task 4: The offline door's checks, console-local; dead sentinels |
| -- [ ] `offlineClaimEvidence` reads `control/hosts/<host>.json`, `apps/<acct>/<app>/admission.json` and `control/hosts-backfill.json` itself (`offlineHostClaimKey`, `offlineAdmissionKey`, `offlineBackfillKey`, `offlineBackfillPlan` mirroring `hostops.BackfillPlan`). |
| -- [ ] Tests: keys equal hostops'/hostclaim's; a signed `hostops.BackfillPlan` reads locally; malformed claim present gives 409; unreadable gives 502. |
| +- [ ] `offlineClaimEvidence` reads `apps/<acct>/<app>/admission.json` and `control/hosts-backfill.json` itself (`offlineAdmissionKey`, `offlineBackfillKey`, `offlineBackfillPlan` mirroring `hostops.BackfillPlan`). The host claim `control/hosts/<host>.json` stays on `hostclaim.Read` (see the goal). |
| +- [ ] Tests: keys equal hostops'; a signed `hostops.BackfillPlan` reads locally; a malformed host claim gives 502, as on main; an unreadable object gives 502. |
| - [ ] ~~Delete the `hostops.ErrPending`/`ErrContract` comparisons at `domainattach.go`, `apidomains.go`, `apisystem.go`, `scandeliver.go`.~~ Not done: each never matches claims off (the sources are `domains`/`provision`/`objstore`/`appconfig` on an ungated store), but each does match claims on, and `TestClaimScanCallbackContentionAndSettlement` and `TestClaimScanMasterRotationSkipsBusyApp` pin two of them. Deleting them changes claims-on behaviour, so they go with R6, when their sources do. |
| - [ ] Run console `-run 'Offline|Domain|Scan|System'`; commit. |