Ledger · services-secret-scripts-1056
<task-notification> <task-id>a113a9327c0527fa2</task-id> <tool-use-id>toolu_013Wx1SmGGjeAFzL8zhfrhXH</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/a113a9327c0527fa2.output</output-file> <status>completed</status> <summary>Agent "Implement #1056 CLI secret ergonomics" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>All five round-1 findings are fixed, and the branch is pushed to amadan.net with tip 8479c42c, fast-forward. Targeted tests, golden replay and the census tests pass at that tip. **P1:** with `--json`, everything except the JSON object now goes to stderr for the whole command. That includes the "account: …" line and the account chooser. Tests cover create and rotate with a configured default, a single membership, and an old console. Each checks that stdout is exactly one JSON object. **P2-2:** if the object can't be written, the command exits non-zero and says so on stderr, without the secret. Tested with a failing writer, and through the binary with stdout on `/dev/full` for both create and rotate. **P2-3:** Git Bash / MSYS2 terminals now count as terminals too (`isatty.IsCygwinTerminal`). **P2-4:** neither the CLI nor the console has a per-value limit, so stdin is capped at 64 KiB (named constant `secretsStdinMaxBytes`). Tests cover exactly the cap, one byte over, and an input that never ends. **P2-5:** the name check now applies only to `secrets set`; `env set` accepts `FILTER=FILTER=active` again. `secrets set --literal` stores such a value on purpose, tested end to end. Luna's two docs edits are applied. I mutation-checked the 8 new guards and each one is caught by a test. The census proposal was re-run: same disposition, only the claim changed (body). gofmt, vet, build, and the darwin and windows builds are clean. Two golden lines for `secrets set -h` were updated for the new flag. **Strings that need the copy pass:** - Changed (was approved): `…nothing stored. Give the value on its own, or add --literal if it really starts that way.` - New: `%s: the value on stdin is larger than 64 KiB: nothing stored.` - New: `%s: %s was %s, but its secret could not be written (%v). Rotate it for a new one: carlos services rotate --account %s %s` - New: the `--literal` flag help, `store a value that starts with its own key and = as it is`, and `[--literal]` added to the usage line. - Docs: `The value can be up to 64 KiB.` and `If a secret really does start that way, add --literal to store it as it is.` **Commits:** a6478cb9, e5109f06, fb76d475, 8479c42c</result> <usage><subagent_tokens>205116</subagent_tokens><tool_uses>29</tool_uses><duration_ms>454817</duration_ms></usage> </task-notification>
<task-notification> <task-id>bf35dspyn</task-id> <tool-use-id>toolu_018MUtCFwKkPRQymRRefrgew</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bf35dspyn.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 2 and Luna on new strings" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bpgyji28w</task-id> <tool-use-id>toolu_01TocBmF9fQZNM85mSi6JbLp</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bpgyji28w.output</output-file> <status>completed</status> <summary>Background command "Census check, then CI and merge if all green" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bnijkd3fx</task-id> <tool-use-id>toolu_01YAV5AH1TYQ9KAcnDLyB8Bd</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bnijkd3fx.output</output-file> <status>completed</status> <summary>Background command "Commit merge, CI, merge if green" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>b05b95fax</task-id> <tool-use-id>toolu_014iiYRXZsbNjsLcEmGZHU5N</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/b05b95fax.output</output-file> <status>completed</status> <summary>Background command "Wait for CI and merge if green" completed (exit code 0)</summary> </task-notification>