Repository navigation
Description
Problem
Convention packs define machine-referenceable rule IDs (CS-NNN, AP-NNN, SC-NNN, TC-NNN, DR-NNN) with RFC-2119 severity levels. Divisor review personas are prompt-instructed to cite these rule IDs when reporting findings. However, the review-verdict schema (schemas/review-verdict/v1.0.0.schema.json) has no rule_id field on findings — only severity, category, description, file, and line.
This means whether a finding actually traces back to a documented rule depends on the model following the prompt instruction, not on structural enforcement. An auditor cannot programmatically answer "which convention-pack rule triggered this finding?" without parsing natural-language text.
Current state
- Convention packs define rules with explicit IDs and severity levels (e.g.,
CS-003 [MUST]) - severity.md is structurally grounded —
alwaysDeployedPacksinscaffold.go:478ensures it is always co-deployed; Divisor personas mark it as MUST-load - Findings in the review-verdict schema capture severity and category but NOT a rule ID reference
- Severity is consistent and auditable. Rule traceability is not.
Proposed change
Add an optional rule_id field to the finding object in schemas/review-verdict/v1.0.0.schema.json:
"rule_id": {
"type": "string",
"pattern": "^[A-Z]{2,3}-[0-9]{3}$",
"description": "Convention pack rule identifier (e.g., CS-003, AP-012, SC-001)"
}The field should be optional (not in required) to allow findings that are not convention-pack-grounded (e.g., project-specific observations). But when a finding IS grounded in a convention-pack rule, the schema should capture that link structurally.
Benefits
- Auditable traceability: programmatically trace any finding to the documented rule that motivated it
- Rule effectiveness measurement: which rules generate the most findings? which are never triggered? (feeds Build-to-Delete methodology)
- Cross-reviewer consistency: verify that different Divisor personas cite the same rule for the same pattern
- Convention-pack evolution: data-driven decisions about which rules to add, modify, or remove
Related
- Review council should validate that PR addresses the originating issue's acceptance criteria #563 — Review council should validate PR addresses originating issue's acceptance criteria (the other direction: implementation → specification tracing)
- Convention packs at
.opencode/uf/packs/*.md schemas/review-verdict/v1.0.0.schema.jsonseverity.mdMUST-load enforcement ininternal/scaffold/scaffold.go:478
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
jflowers commentedon Nov 2, 2026
Triage Summary
The Divisor review panel classifies this issue as VALID — enhancement (objective), by a 5/5 persona majority (adversary, architect, curator, guard, and sre; all dispatched runs succeeded, none dissented).
Verified against the repository
schemas/review-verdict/v1.0.0.schema.jsondefines findings with exactlyseverity,category,description,file, andline, and setsadditionalProperties: false— the schema structurally rejects a rule reference today, so the described gap is real, not merely an omission. The finding shape inschemas/review-verdict/v2.0.0.schema.jsonis identical.rule_id/ruleIdreturns zero matches acrossschemas/, Go, and TypeScript sources — no existing field, no in-flight implementation, and no duplicate proposal.^[A-Z]{2,3}-[0-9]{3}$matches every deployed rule ID with headroom for a future three-letter prefix.alwaysDeployedPacksincludesseverityininternal/scaffold/scaffold.go(the cited line 478 has drifted to ~785 as the file grew; the mechanism claim is accurate). Severity is structurally grounded; rule traceability is prompt-only — the asymmetry the issue identifies.specs/005-the-divisor-architectureresearch R3 designed rule IDs so findings can cite them for traceability and trend analysis, and the Constitution's Observable Quality principle calls for machine-verifiable provenance in artifacts.Recommendations for implementation
schemas/review-verdict/v2.0.0.schema.json(canonical since 2026-10-01; its shared$defs/findingcovers bothpersona_verdicts[].findingsandunresolved_findings). An additive minor version (v2.x) through the versioned-directory registry fits the upgrade path better than editing the historical v1.0.0 file, becauseadditionalProperties: falsemeans validators pinned to older schemas reject artifacts carrying the new field.submit_review_findingsvalidation contract, the dispatch finalize payload, and the persona output prompt contracts must acceptrule_idin the same change, or the field exists in the schema but is never populated.rule_idon LLM-generated findings invites fabricated citations for findings with no rule basis; optionality keeps the grounded subset honest and makes absence itself an auditable signal.Next steps
Route this through a spec workflow — the change touches the schema registry, the dispatch pipeline contracts, and persona prompts, which fits the OpenSpec tactical tier. The
enhancementlabel is already applied to this issue.This triage was performed by the Divisor review panel.