engine-adapters: Vars.Get reveals nix's stderr warnings inside the secret value (CombinedOutput on a value-bearing read) — fixed under #175 #189

Closed
opened 2026-07-30 17:26:03 +00:00 by ben · 1 comment
Owner

Parent / precedent

Surfaced by the #175 family-1 smoke on the golden clan-lab (2026-07-30): the vars leg's Get after a real seal returned "warning: unknown setting 'eval-cores'\n…\nderived:kia-ora-175" — the real value with four nix warning lines fused in front. Filed per the #184/#185 split precedent; fixed in the same session under #175.

The defect

ExecCLI.Run captured CombinedOutput() only, and varsFace.Get revealed res.Output — so any stderr noise (nix setting warnings, ssh chatter) becomes part of the revealed secret. A silent wrong value on the secret path.

The fix

Result now carries Stdout (stdout alone) beside the combined Output the classifier keys off; ExecCLI captures the streams separately. Get reveals stdout ONLY, and errors loudly if stdout is empty on exit 0. The scripted double now puts warnings on the combined stream so the pollution can never regress silently. Lab-proven by #175's vars leg.

## Parent / precedent Surfaced by the **#175 family-1 smoke** on the golden clan-lab (2026-07-30): the vars leg's `Get` after a real seal returned `"warning: unknown setting 'eval-cores'\n…\nderived:kia-ora-175"` — the real value with four nix warning lines fused in front. Filed per the #184/#185 split precedent; **fixed in the same session** under #175. ## The defect `ExecCLI.Run` captured `CombinedOutput()` only, and `varsFace.Get` revealed `res.Output` — so any stderr noise (nix setting warnings, ssh chatter) becomes part of the revealed secret. A silent wrong value on the secret path. ## The fix `Result` now carries `Stdout` (stdout alone) beside the combined `Output` the classifier keys off; `ExecCLI` captures the streams separately. `Get` reveals stdout ONLY, and errors loudly if stdout is empty on exit 0. The scripted double now puts warnings on the combined stream so the pollution can never regress silently. Lab-proven by #175's vars leg.
Author
Owner

Fixed in 1344f52 (with 4394d55 for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): Result grew Stdout; ExecCLI captures streams separately; Get reveals stdout only and errors loudly on an empty value. Evidence: #175's verdicts + docs/spike-findings/smoke-clan-175.md.

Fixed in `1344f52` (with `4394d55` for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): `Result` grew `Stdout`; `ExecCLI` captures streams separately; `Get` reveals stdout only and errors loudly on an empty value. Evidence: #175's verdicts + `docs/spike-findings/smoke-clan-175.md`.
ben closed this issue 2026-07-30 17:45:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#189
No description provided.