os-sdlc: gate subprocess ignores ticket target_name — false "no target selected" escalations #410

Open
opened 2026-08-16 01:03:14 +00:00 by jared · 2 comments
Owner

Context

During the #409 run (2026-08-15), every lint-gate transition escalated with exit=3 "no target selected" although pipeline.db stores target_name "os-sdlc". GateEvaluator#run_gate (plugins/os-sdlc/lib/os_sdlc/runner/gate_evaluator.rb:84) calls Open3.capture3(command) with inherited env only and never threads ticket[:target_name] into OS_SDLC_TARGET. Secondary: gate-log.txt retains only the failed run, so review-stage evidence showed exit=3 while the suite was green (reviewer recorded UNKNOWN).

Verdict

VERDICT: CREATE — validation/evidence-integrity bug confirmed in code (GateEvaluator#run_gate, inherited env only); false escalations + misleading gate-log; hard floor.

Tasks

  • Gate invocations set OS_SDLC_TARGET from the ticket row's target_name when unset.
  • gate-log.txt records the run that was actually judged (last judged run, not a stale failure).
  • Tests: gate run with stored target_name and no env var does not escalate with "no target selected".
## Context During the #409 run (2026-08-15), every lint-gate transition escalated with exit=3 "no target selected" although pipeline.db stores target_name "os-sdlc". GateEvaluator#run_gate (plugins/os-sdlc/lib/os_sdlc/runner/gate_evaluator.rb:84) calls Open3.capture3(command) with inherited env only and never threads ticket[:target_name] into OS_SDLC_TARGET. Secondary: gate-log.txt retains only the failed run, so review-stage evidence showed exit=3 while the suite was green (reviewer recorded UNKNOWN). ## Verdict VERDICT: CREATE — validation/evidence-integrity bug confirmed in code (GateEvaluator#run_gate, inherited env only); false escalations + misleading gate-log; hard floor. ## Tasks - [ ] Gate invocations set OS_SDLC_TARGET from the ticket row's target_name when unset. - [ ] gate-log.txt records the run that was actually judged (last judged run, not a stale failure). - [ ] Tests: gate run with stored target_name and no env var does not escalate with "no target selected".
Author
Owner

Root ticket filed: #418. This ticket is a symptom.

Root ticket filed: #418. This ticket is a symptom.
Author
Owner

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.
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
jared/cc-os#410
No description provided.