Repository navigation
Commit 3e373fa
docs(os-dev): capture gate exit status before any pipe, quote the gate's verdict line (#9720)
An `EXIT=$?` read after `| tail` captures tail's status, not the gate's. tail
essentially always succeeds, so the value is 0 for a green gate and a red one
alike — the reading is not merely unreliable, it is unfalsifiable: it returns
the same answer for both outcomes, so re-running never surfaces it, while it
reads as a measurement in a report.
Adds a compact discipline block to the gate-running section of the dev-agent
definition stating both halves: capture status before any pipe (redirect-then-
capture, `set -o pipefail`, or `${PIPESTATUS[0]}`), and quote a gate's own
printed verdict line rather than a bare `$?`. Records that mechanical
enforcement is measured-intractable — the trap lives in an agent's shell usage,
which no version-controlled artifact can observe — so no later round re-derives
that conclusion.
Claude-Session: https://claude.ai/code/session_01WswfK2yNYT9hNnMH6TzAwL
Co-authored-by: Claude <noreply@anthropic.com>1 parent de7799e commit 3e373fa
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
| |||
0 commit comments