IssueCreate drops its svc dependency; the CLI helper words the scope-label refusal lazily #777
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#777
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
Backlog::IssueCreate(ADR-0234) takes asvc:argument whose only use isscope_label_names, which words the scope-label refusal message.No decision in the validator depends on the tracker service.
The deciding object therefore changes when the tracker service changes, which breaks lens heuristic A11.
The contract-auditor on #765 proposed a lens edit; the lens challenge on 2026-09-27 ruled the heuristic holds and the code is at fault.
Approach
IssueCreateraisesBacklog::IssueCreate::MissingScopeLabel < Refusedwith the message body only.The CLI helper
validate_issue_createrescuesMissingScopeLabelbefore the genericRefusedrescue and appends the available scope labels, fetched lazily fromctx[:svc]only when this refusal fires.scope_label_namesmoves back tocli_command_helpers.rbwith itsCommandFailedrescue.IssueCreate.newtakestracker:only.Required work:
Backlog::IssueCreate::MissingScopeLabelin plugins/os-backlog/lib/backlog/issue_create/missing_scope_label.rb and raise it from the scope-label check.MissingScopeLabelinvalidate_issue_createand append the lazily fetched label list.svcfromIssueCreate.Rejected: editing lens heuristic A11 with a NOT clause — the challenge found the cost named by the proposal belongs to an eager design nobody needs.
Acceptance criteria
Backlog::IssueCreate.new(tracker: "forgejo:x/y")with nosvc:, whenvalidate!runs on a compliant body, then it passes.Owner sketch
Origin
VERDICT: CREATE
REASON: Root-cause fix confirmed by lens-challenge (code defect, heuristic holds), Origin chain ends in DESIGN not IMPROVISATION, this ticket is the named root, and it is the only ticket touching this file this session.