os-adr: path-based inward-dependency lint for the role directories #935
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#935
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 crc-refactor run moved plugins/os-adr/lib/adr/ into six collapsed role directories (model, query, presenter, parser, command, adapter; Proposed ADR-0271).
Nothing checks the inward rule, so a later change can add an outward reference silently.
The role architecture requires inward-dependency enforcement to prevent structural violations.
Approach
Add an inward-dependency check for plugins/os-adr that prevents outward references from role directories, seeding from today's baseline and running from the os-adr suite or gate.
Required work:
inwardinplugins/os-adr/bin/*Acceptance criteria
Owner sketch
Origin
VERDICT: CREATE. The change is a recorded decision, not a speculative one. Nothing enforces the Proposed ADR-0271 inward rule for os-adr. The ticket points at the root, a missing check.
Note
Work this ticket after branch crc-os-adr-2026-10-04 merges.
ADR-0272 decision 3 now requires the inward-dependency lint to read each file's role from the class name suffix or the crc ledger job_category column, not from the first path segment. The os-sdlc move to the A15 layout waits on this redesign.
Resolution
Done: Closed as stale: os-adr no longer has role directories, so a path-based inward-dependency lint for them has nothing to check.
Evidence: Commit
9e416b0f(A15) flattened plugins/os-adr/lib/adr/; find plugins/os-adr/lib shows no model/query/presenter/parser/command/adapter dirs; plugins/os-adr/bin has no inward script. The os-sdlc lint's role-from-name need is carried by #835.Follow-ups: none; os-sdlc lint role-from-name requirement moved to #835