carlos / platform Public

reviews: Astra brief for #1056

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2b1a513a7e614874514e2feddc1b55cf315de513 parent 884bb16
1 file changed, +16 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-SERVICES-SECRET-SCRIPTS-1056.md +16 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-SERVICES-SECRET-SCRIPTS-1056.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-SERVICES-SECRET-SCRIPTS-1056.md
new file mode 100644
index 000000000..193d5a08c
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-SERVICES-SECRET-SCRIPTS-1056.md
@@ -0,0 +1,16 @@
+# Review brief: #1056 service secrets in scripts, branch, round 1 of 3
+
+Repo carlos/platform, branch `services-secret-scripts-1056`, commit 884bb164140b59f4d699328f69f256a3589969c1. Diff: `origin/main..884bb164140b59f4d699328f69f256a3589969c1`. Issue: `amadan discuss show carlos/platform 1056`.
+
+The change: (1) `carlos services create|rotate --json` prints one JSON object (secret included) and nothing else on stdout; (2) `carlos secrets set --app A KEY -` reads the value from stdin (one key per command, one trailing newline stripped, refused on a terminal, empty refused); (3) secrets set and env set refuse a value that starts with its own key name and "=".
+
+Check:
+1. Secret handling: the secret appears only in the JSON object on stdout in --json mode; never in stderr, logs, error messages or argv; the stdin value never echoed in any refusal (including the name refusal and read errors). No change to what the console stores.
+2. Stdin parsing: interaction with existing argument forms (KEY=VALUE pairs, KEY=- storing "-", multiple keys, --environment), exactly-one-newline stripping, binary or very large input (is there a size cap?), Windows/darwin builds, terminal detection on all platforms.
+3. --json: stable field names and types, no human text leaks onto stdout, exit codes unchanged, rotate's object.
+4. The name refusal: no false positives for legitimate values that happen to start with KEY= (should any be allowed?), applies equally to env set.
+5. Tests: would each fail without its guard?
+6. **Census:** `docs/superpowers/notes/census-proposal-services-secret-scripts-1056.md` and its overlay: APPROVED or REFUSED per changed unit (you are the census reviewer).
+7. docs/site/cli.md accurate to the code.
+
+Severity P1 (blocks) / P2 (fixed without another round) / P3 (follow-up). End with READY, READY AFTER FIXES or NOT READY. Do not edit files; no subagents; targeted `go test -run` only (GOCACHE unset).