Skip to content

Document why configure.sh apply suppresses write stdout - #405

Merged
ptr727 merged 2 commits into
developfrom
configure-devnull-rationale
Jul 23, 2026
Merged

Document why configure.sh apply suppresses write stdout#405
ptr727 merged 2 commits into
developfrom
configure-devnull-rationale

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Downstream carry reviews (ptr727/PhotoCleaner#16 review thread) flag the stdout redirect on cmd_apply's write calls as contradicting the AGENTS.md never-suppress-write-output rule. The suppression is stdout-only and safe by construction: gh errors go to stderr (never suppressed), set -Eeuo pipefail aborts on any non-zero exit, and configure.sh check verifies the applied end state independently — the AGENTS rule governs ad-hoc agent commands whose only verification is reading the response.

The canonical now says so at the top of cmd_apply, so every downstream copy carries the rationale and the flag stops recurring on every carry PR.

shellcheck clean, LF preserved. The verbatim canonical advances one revision (fleet copies become stale-by-one, tracked as usual by the burn-down).

🤖 Generated with Claude Code

Downstream carry reviews (PhotoCleaner#16) flag the stdout redirect on the apply writes as
contradicting the AGENTS.md never-suppress-write-output rule. The suppression is stdout-only
and safe by construction: gh errors go to stderr (never suppressed), set -Eeuo pipefail aborts
on any non-zero exit, and configure.sh check verifies the applied end state independently.
The AGENTS rule governs ad-hoc agent commands whose only verification is reading the response,
which this fail-loud script is not. Say so in the canonical, at the top of cmd_apply, so every
downstream copy carries the rationale and the flag stops recurring per carry PR.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 23, 2026 15:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an explanatory comment in repo-config/configure.sh to justify why cmd_apply suppresses stdout for gh api write calls, aiming to prevent repeated downstream carry review findings about “never suppress write output”.

Changes:

  • Add a multi-line comment above cmd_apply’s write operations explaining stdout suppression rationale.
  • Document the intended “fail loud” behavior (stderr visibility, non-zero exits) and the role of configure.sh check as independent verification.

Comment threadrepo-config/configure.sh Outdated
…e citation
Two lines carrying the safety reasoning (stdout-only, stderr untouched, fail-loud, check
verifies the end state), no governance citation, per the comment conventions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 23, 2026 15:38

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit f0d4e89 into developJul 23, 2026
7 checks passed
@ptr727
ptr727 deleted the configure-devnull-rationale branch July 23, 2026 16:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ptr727