Add shape detectors over the system model: repeat, vocabulary, pass-through, unclear role #1429
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#1429
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 system model has cards, stereotypes, class facts, journeys and a six-pattern catalog, but no detector reads the model for the four shapes the format names: shape repeat, vocabulary repeat, pass-through, and unclear role. Nobody can list the top findings over os-me and os-sdlc together, so step 4 of the path to real has no proof.
Reproduce
Output: the usage line, exit 2. No
shapessubcommand exists andplugins/os-sdlc/lib/os_sdlc/system_model/holds no detector file.Approach
Add a
shapessubcommand tosystem-modelthat builds the model with the normal steps plus the Tracer, runs four detectors overModel#cards,Model#factsandModel#journeys, and prints findings sorted by score with the shape name, the cards involved, and the evidence. Each detector is one object underOsSdlc::SystemModel::Shape:Repeat: two or more cards whose public method names andClassFactsagree on more than a threshold share.Vocabulary: a method name that appears on three or more cards with differentroutes_totargets.PassThrough: a card whose every public method forwards one message to one collaborator with no state read.UnclearRole: a card whose stereotype isdegenerateor whose facts match no catalog role predicate.Required work:
UnclearRoleinplugins/os-sdlc/lib/os_sdlc/system_model/shape/*.rbShapeReportthat prints findings sorted by score — check: presentShapeReportinplugins/os-sdlc/lib/os_sdlc/system_model/*.rbshapesin the system-model argv parser and usage text — check: presentshapesinplugins/os-sdlc/lib/os_sdlc/boot/inputs.rbshapesthroughRunwith the Tracer step — check: presentshapesinplugins/os-sdlc/lib/os_sdlc/system_model/run.rbRealigned spec
Spec realigned 2026-11-01 (README section 6 step 10, ruled by Jared 2026-11-01):
Acceptance criteria
plugins/os-meas the target, whensystem-model shapes plugins/os-meruns, then it exits zero and prints findings with a shape name, card names and evidence on each line.Owner sketch
Non-goals
Reading the ten findings by hand over os-me and os-sdlc together is the proof step; it runs after this ticket ships and is recorded in
docs/system-design-format/proof/.Origin
VERDICT: CREATE
Waiting on #1482 (step 9 fact spike). Spec realigned to README section 6 step 10: pattern list and thresholds are data, no pattern ID in detector code, convergence per scale group, coverage figure per plugin. Body edited 2026-11-01.
os-backlog cannot add labels yet (#867, the label verb ticket). This ticket stays blocked by #1482 per its earlier comments.
Work started 2026-11-01 in worktree agent-a4cb3d82d3b8a229b (branch worktree-agent-a4cb3d82d3b8a229b). Blocker #1482 is merged (main
914918c5).Resolution
Done: Shape detectors shipped
Evidence:
98a029ca+6064041a, merge85599697; docs/system-design-format/proof/shape-detectors-run-1.mdFollow-ups: #1498 #1499 #1500 #1501