spec: console secrets round 2 findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/specs/CODEX-FINDINGS-console-secrets-R2.md+31 −0
CI passed — run details
Intent
<task-notification> <task-id>bfm32ql1u</task-id> <tool-use-id>toolu_01DQUTQsGcjpVwhTTWv1XG72</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a1de5273-c148-49b8-8267-3dee9d49c9c1/tasks/bfm32ql1u.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 2 on console secrets spec" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 49.7 g CO₂e (6,461,946 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-console-secrets, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-console-secrets-R2.md b/docs/superpowers/specs/CODEX-FINDINGS-console-secrets-R2.md| new file mode 100644 |
| index 000000000..36942ccd3 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-FINDINGS-console-secrets-R2.md |
| @@ -0,0 +1,31 @@ |
| +1. **R1-1 — Partly resolved.** Host scopes can name default-bundle consumers, but the selected processes cannot be restarted through this mechanism. **Family:** restart scope must cover the saved bundle’s consumers. |
| +2. **R1-2 — Resolved.** Browser plaintext validation and shared parity cases are required. **Family:** every accepted secret must be renderable. |
| +3. **R1-3 — Resolved.** Automatic-delivery routes are excluded from explicit restart requests. **Family:** one save must not independently schedule duplicate process cycles. |
| +4. **R1-4 — Resolved.** The trusted-page boundary and `sealed_to` limitation are explicit. **Family:** integrity of the client receiving secret plaintext. |
| +5. **R1-5 — Partly resolved.** The wording distinguishes absence from uncertainty, but the proposed helper cannot establish the promised states. **Family:** incomplete visibility must not become a claim of absence. |
| +6. **R1-6 — Resolved.** Save must atomically enforce the displayed bundle version and submit only staged mutations. **Family:** concurrency protection must cover the editing interval. |
| +7. **R1-7 — Resolved.** Version selection, encoding by reference to Go, and interoperability tests for both versions are specified. **Family:** browser/Go envelope compatibility. |
| +8. **R1-8 — Resolved.** Empty ordinary settings are allowed. **Family:** validation parity. |
| +9. **R1-9 — Resolved.** The additional default-bundle read is explicitly budgeted. **Family:** page-view storage-read budget. |
| + |
| +**New findings** |
| + |
| +**P1 — “Awaiting restart” does not mean CARLOS can restart the process.** |
| +The [revised rule](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/docs/superpowers/specs/2026-11-08-console-secrets-design.md:106) sends host-scoped requests for `configRestartNotice.Hosts`. Those entries are unstamped, app-supervised TCP routes: CARLOS delivers a file but does not own their processes. The existing [base-case test explicitly asserts this](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/internal/appconfig/awaitingrestart_test.go:25). The agent’s [scoped restart only bounces its own children](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/internal/host/restartscope.go:419); the root fallback [tries the derived `carlos-app@` unit](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/internal/host/rootrestart.go:551), not the external supervisor. |
| + |
| +Consequently, Save can successfully record a restart request while the process continues using old values. Repeating that request cannot repair it. The spec needs an explicit restart-capability boundary and an honest unsupported outcome, or a separately designed mechanism that actually controls these processes. |
| + |
| +**Fault family:** restart scope must cover the saved bundle’s consumers — **recurs from R1-1**. |
| + |
| +**P2 — The write response is an exception notice, not the promised per-route result.** |
| +[Step 2](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/docs/superpowers/specs/2026-11-08-console-secrets-design.md:102) says the existing response identifies automatic restarts per route. It does not. [`AwaitingRestart`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/internal/appconfig/syncexec.go:1209) skips socket-managed and ordinary unit-backed routes; healthy stamped routes also disappear from the result. The response contains no sleeping-state field. It therefore cannot distinguish a healthy automatically managed route, a sleeping route, an unaffected route, and no route from an empty notice. |
| + |
| +Additionally, [`Known: true`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/internal/console/apiconfig.go:737) establishes only that the local registry was read. It establishes neither fleet-wide absence nor the existence of remote consumers. Specify the additional classification source and its visibility limits; keep delivery expectations separate from observed outcomes. Without authoritative coverage, report that remote usage is unknown. |
| + |
| +**Fault family:** incomplete visibility must not become a claim of absence — **recurs from R1-5**. |
| + |
| +Both families have findings in two consecutive rounds, triggering stopping rule 2. Before another fix, choose between refusing unsupported cases up front, cutting their automatic-restart support, or enforcing one shared delivery/restart classification with guard tests. I recommend the shared classification with an explicit unsupported outcome. |
| + |
| +Reviewed commit `416edeec9c26c4280513c5aa51c305255b45fefb`; cited implementation files match `origin/main`. No files changed, subagents used, or tests run. |
| + |
| +**NOT READY** |
| \ No newline at end of file |