verdict_write: keep the EXIT trap alive when the errlog has no regex match (#154) #155
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/dev-factory!155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/154-verdict-no-match-trap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #154.
verdict_writeruns from an EXIT trap underset -euo pipefail. Its errlog greps had no|| true, so a no-match (grep exit 1) propagated through pipefail and errexit killed the trap on that line — after the breadcrumb was erased — leaving neither breadcrumb nor verdict, and making the no-match fallback on the next line unreachable. The healer then keyed on a bare workflow name withTrigger error line: unknown.What changed
verdict-lib.sh—|| trueon both errlog greps, with the reason recorded in-line so it reads as load-bearing.tests/verdict-lib-test.sh— scenario 7 in the real caller posture (set -euo pipefail+trap 'verdict_write $?' EXIT+ a no-match errlog): the verdict exists, carriesexit=7, falls back to the log's own last lines, andseam_verdict_signalrecoversstage :: line.STATUS.md— header entry.Verified
tests/*.sh+onboarding/tests/*.sh): green apart from one flake,tests/swarm-db-test.sh, which failed once inside the full run and then passed 3/3 standalone here and on a pristine0d3f441checkout. It shares no code with this change.bash -nclean on both files.Blast radius
Vendored file: every consumer picks this up at its next
FACTORY_REFbump.Matou/matou-appcarries the same fix already as local drift (9dd432e), which is what blocked an agent push on matou-app#186; its pin is bumped and re-vendored in the same arc, which ends that drift.🤖 Generated with Claude Code