durability 3a: say how to clear a trashed app from the fleet-key 409
The fleet-key refusal names apps in the trash, but their delete and config doors answer 404 there, so the advice alone could not be followed (Task 6 re-review minor). DUR3A-C01 now ends "so restore it to delete its instances, or purge it" (controller addition to the Luna-approved text). A hostfiles test comment no longer says a box whose key changed reseals: StageSealed can, the activator never does (it fails closed, ruling 2026-11-01).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+5
−3
internal/console/fleetsecretskey.go+1 −1internal/console/fleetsecretskey_test.go+1 −1internal/hostfiles/sealed_test.go+3 −1
Intent
Human
<task-notification> <task-id>bwc85jijw</task-id> <tool-use-id>toolu_01EhGCwTPi7CYfvaud2oU6cy</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/aab63774-dfe6-44a4-9cd9-230e6f4c3d13/tasks/bwc85jijw.output</output-file> <status>completed</status> <summary>Background command "Run Task 8 Steps 1-3 on Astra" completed (exit code 0)</summary> </task-notification>
diff --git a/internal/console/fleetsecretskey.go b/internal/console/fleetsecretskey.go| index 55b7dcb4a..eff499d8a 100644 |
| --- a/internal/console/fleetsecretskey.go |
| +++ b/internal/console/fleetsecretskey.go |
| @@ -144,7 +144,7 @@ func (s *Server) handleAPIFleetSecretsKey(w http.ResponseWriter, r *http.Request |
| return |
| } |
| if len(apps) > 0 { |
| - jsonError(w, http.StatusConflict, fmt.Sprintf("%s already has a different secrets key, and these apps still have instances on it: %s. their sealed copies open only with the current key, so replacing it would make them unreadable. keep the current key, or delete those instances first. an app in the trash counts until it is purged", row.Name, strings.Join(apps, ", "))) |
| + jsonError(w, http.StatusConflict, fmt.Sprintf("%s already has a different secrets key, and these apps still have instances on it: %s. their sealed copies open only with the current key, so replacing it would make them unreadable. keep the current key, or delete those instances first. an app in the trash counts until it is purged, so restore it to delete its instances, or purge it", row.Name, strings.Join(apps, ", "))) |
| return |
| } |
| } |
diff --git a/internal/console/fleetsecretskey_test.go b/internal/console/fleetsecretskey_test.go| index b54f121fe..8948b301b 100644 |
| --- a/internal/console/fleetsecretskey_test.go |
| +++ b/internal/console/fleetsecretskey_test.go |
| @@ -439,7 +439,7 @@ func fskRegister(t *testing.T, fx *consoleFixture, token, pub string) { |
| } |
| func fskInstanceRefusal(apps string) string { |
| - return fmt.Sprintf("home already has a different secrets key, and these apps still have instances on it: %s. their sealed copies open only with the current key, so replacing it would make them unreadable. keep the current key, or delete those instances first. an app in the trash counts until it is purged", apps) |
| + return fmt.Sprintf("home already has a different secrets key, and these apps still have instances on it: %s. their sealed copies open only with the current key, so replacing it would make them unreadable. keep the current key, or delete those instances first. an app in the trash counts until it is purged, so restore it to delete its instances, or purge it", apps) |
| } |
| func fskEscrow(t *testing.T, fx *consoleFixture, privateKey string) *hostfiles.ItemSealer { |
diff --git a/internal/hostfiles/sealed_test.go b/internal/hostfiles/sealed_test.go| index acf154b6f..fa7088342 100644 |
| --- a/internal/hostfiles/sealed_test.go |
| +++ b/internal/hostfiles/sealed_test.go |
| @@ -178,7 +178,9 @@ func TestStageSealedUnchangedWritesNothing(t *testing.T) { |
| } |
| commit(t, p) |
| - // A box whose key changed reseals, though the plaintext did not. |
| + // StageSealed under a different sealer reseals, though the plaintext did |
| + // not. The activator never does this for a box whose key changed: it |
| + // fails closed (TestABoxThatChangesKeyFailsClosed). |
| st.reset() |
| other := newSealer(t, newKey(t), shopBinding, sealHost) |
| stageSealed(t, p, envRel(t), "A=2\n", other) |