required-work gate skips check: commands written mid-line, the capture template's own form #820
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#820
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The #814 parser
TicketShape::RequiredWork::Itemfinds a check only on a line that starts withcheck:(CHECK_LINE = /^\s*check:(.*)$/inplugins/os-sdlc/lib/os_sdlc/parser/ticket_shape/required_work.rb). The capture template writes checks in the middle of the line:1. <item> — check: `<command>`. So therequired-workgate step never runs those checks and passes.implementation-openalso does not refuse a free-text check in the middle of a line. The deterministic gate from #814 is bypassed for every ticket written from the template.Observed
Found when the #817 behavior-verifier (dispatch 722) failed the os-backlog twin rule for the same narrowing.
Reproduce
Expected
["true"], actual[].Approach
An item's check is the first
check:anywhere in the item's lines, on the numbered line or on a later line. The command is the backticked text that follows thatcheck:. Backticks beforecheck:do not count. This is the same rule as the os-backlog checker in #817 (ADR-0209 lockstep, ADR-0244).Decision record: ADR-0244.
Required work:
TicketShape::RequiredWork::Itemfindscheck:anywhere in the item's lines and takes the command only from backticked text after it.Acceptance criteria
1. Delete the foo helper — check:true``, when the required work checks are read, then the list containstrue.1. Delete the foo helper; check: grep -r foo lib prints nothing, whenimplementation-openruns, then it refuses and names the item.1. Update `foo.rb`; check: grep foo prints nothing, whenimplementation-openruns, then it refuses and names the item.check:is on its own line under the numbered line with a backticked command, when the required work checks are read, then the list contains that command.Owner sketch
Origin
VERDICT: CREATE
REASON: The
CHECK_LINEanchor in the #814 parser silently skips the capture template's own mid-linecheck:form. That is an observed failure, and it bypasses a validation gate. The Origin chain has no improvisation, and this file is the root, separate from the os-backlog rule in #817.Work started on branch ticket-820 via /os-sdlc:implement, target os-sdlc.
Resolution
Done: TicketShape::RequiredWork::Item finds check: anywhere in an item line (CHECK_LINE unanchored); mid-line template-form checks now reach the required-work gate and free-text mid-line checks are refused at implementation-open. ADR-0244 decision 5 records the placement rule.
Evidence: Implementation 73 complete: 8 dispatches, 5 min 57 s, all pass. Commits
44943074,d6555c8fon ticket-820. Original repro now returns ['! grep -rn foo lib', 'true'] and refuses the free-text item. os-sdlc suite 1306 runs, 0 failures, 16.2 s. Suite-check ran [required-work, suite] live.Follow-ups: #821 (os-backlog reads only numbered lines; lockstep). Greedy BACKTICKED_COMMAND and 'recheck:' matching: dropped, no ticket asks for them and no case was observed. Stray .sdlc/pipeline.db in the edited source folder (second time): under investigation this session.