os-sdlc: absent Required-work check on an emptied glob can never pass #954
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#954
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
An
absentRequired-work check whose glob matches no file always fails.Check#reasonreturns "glob matched no file" before it reads the polarity. A ticket item that deletes the only file matching its own glob can never pass its check.implementation-openaccepts such a ticket, so the harness fails late, after it spent programmer rounds.Reproduce
plugins/os-sdlc/bin/lint-concept-cyclesand whose check ischeck: absent `concept` in `plugins/os-sdlc/bin/lint-concept-cycles`./os-sdlc:implementon that ticket.implementation-openaccepts the body (seeOsSdlc::Implementation::Open#check_ticket_shape!).plugins/os-sdlc/lib/os_sdlc/parser/ticket_shape/required_work/check.rb,Check#reason).Approach
Decide one rule and state it in the body-style rules. Either
implementation-openrejects anabsentcheck whose glob its own item empties, orabsentpasses when the glob matches no file.Required work:
Check#reasonreturn no reason for anabsentcheck on an empty glob — check: absentreturn "glob matched no file" if matched.empty?inplugins/os-sdlc/lib/os_sdlc/parser/ticket_shape/required_work/check.rbabsentinplugins/os-backlog/references/templates/capture.mdRejected: Reject the ticket at
implementation-open— it must guess which item empties which glob, which is brittle.Acceptance criteria
absentcheck whose glob matches no file, when the required-work check runs, then it passes.presentcheck whose glob matches no file, when the required-work check runs, then it fails with "glob matched no file".absentcheck and a matching file that holds the text, when the check runs, then it fails with "text found in ".Owner sketch
Origin
absentglob matched. The run spent two programmer-repair rounds and escalated (bound_exhausted:suite-check/fail).Check#reasonVERDICT: CREATE