docs(openspec): define stdout/stderr output policy#46
Conversation
Document CLI-wide output stream contract in OpenSpec and align per-command specs. Add OpenSpec routing pointer in AGENTS.md. Existing CLI behavior already matches the policy; no code changes. Closes #16 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Grig Alex <alexengrigdev@gmail.com>
|
@cursor Please adjust the root output stream policy so it does not conflict with
Please either:
I prefer narrowing the root wording because this PR should avoid behavior changes. Also please remove or soften “with next-step guidance” from the root operational-error scenario unless the implementation/specs are updated to require that for missing ADR directory errors. |
|
Addressed the review feedback in Root policy narrowed
Operational-error scenario softened
Pushed to PR #46. |
Clarify that stdout reports apply when the report is explicitly the primary command output (e.g. adr check), not all check outcomes. Allow per-command specs to place diagnostic check failures on stderr, matching adr index --check behavior. Remove next-step guidance requirement from the root operational-error scenario; that detail remains in per-command specs where applicable. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Grig Alex <alexengrigdev@gmail.com>
|
@cursor Please confirm that the requirements and acceptance criteria from #16 are fully completed by this PR before marking it ready for review. In particular, please check that:
|
|
Confirmed: all #16 acceptance criteria are met by this PR. PR #46 is marked ready for review. Acceptance criteria checklist
Behavior review (unchanged)
Root vs per-command alignmentAfter the review follow-up,
No further changes needed for #16 scope. |


Summary
Defines adrman's stdout/stderr output principles in OpenSpec as the product source of truth (closes #16).
openspec/config.yaml: adds global output/automation context and design rules for stream separationopenspec/specs/cli-root/spec.md: adds CLI-wide output stream policy requirement with scenarioscli-init,cli-list,cli-new,cli-check,cli-index): align command-specific output details with the root policyAGENTS.md: adds a short pointer to OpenSpec for product/business context (no duplicated rules)Behavior review
Reviewed existing CLI behavior against the new policy. Current implementation already matches:
initnewlistcheckindexNo code changes were needed. All 100 existing tests pass.
Review follow-up
Narrowed the root output stream policy so stdout reports apply when the report is explicitly the primary command output (e.g.
adr check), not all check outcomes. Per-command specs may place diagnostic check failures on stderr, matchingadr index --checkbehavior. Removed the root-level next-step guidance requirement from the operational-error scenario.Out of scope
--quiet,--verbose,--debug,--plain,--porcelainmodes