Repository navigation
Closed
Labels
priority/p3-lowPriority P3: a small improvementscope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D13 (owner, 2026-10-17): "refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 goes in v0.2.38". refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 deletes the persona review stage, which is the only reviewer that reads prose, so after it lands nothing in the review reads this template's injections.
- Delete the
contradict-documented-defaulttemplate instead of changing where it injects. ADR 0005 puts "defects that no tool or rule can express, such as a prose claim" out of scope until someone writes a rule (docs/adr/0005-review-findings-come-from-tools-not-models.md:51), so a better injection site still leaves the template with no detector. - No accepted-loss marker in the corpus scorer.
AcceptedLossbelongs to the label file (src/devops_cli/review/score.py:107-111), and carrying it intoCorpusScore(src/devops_cli/ai/review/defects.py:1391) would be compensating code. - No Terraform-only variant. Injecting only against variable descriptions would need a new rule-pack rule to detect it, which is more than a P3 measurement item should carry.
- The type changes from
type/bugtotype/refactor, because the item now removes code instead of fixing a defect. - The task files for feat(review): synthetic defect templates for Terraform, Dockerfiles, shell, Kubernetes and documentation #504 and feat(ai): validate devops ai tooling across the sample repositories #505 stay as they are, because they record what those items delivered and found.
Scope
- This item now deletes the template, its tests and its docs row. After that, a docs-only corpus is scored only on templates that change example commands inside code blocks.
- The original deliverables are dropped: injecting only where the corpus holds the code that defines the default, and skipping the template otherwise.
Delivery
- One PR, size S.
Acceptance criteria
- A test written first shows that
select_templates(["contradict-documented-default"])raisesValueErrornaming the template (src/devops_cli/ai/review/defects.py:1241-1248). It sits next totest_unknown_templates_are_rejected_by_name(tests/test_review_defects.py:215-218). -
_DOCUMENTED_DEFAULT,_OPPOSITESand_contradict_defaults(src/devops_cli/ai/review/defects.py:871-890) are deleted, along with the template'sTEMPLATESentry (:1226-1231). - The template's cases at
tests/test_review_defects_infra.py:223-236and:332are deleted, and the comment at:326keeps only "Prose is not an example command", because its "no longer" clause described the deleted:332case. -
test_a_corpus_of_infrastructure_and_docs_records_each_injection(tests/test_review_defects_infra.py:342-376) still covers docs. ItsREADME.mdtakeswiden-file-modeon a fencedchmod 600block.disable-tls-verifyis not used here, because it also finds a site in the Dockerfile, onRUN_CHAIN'swget https://line (:47), so the Dockerfile's seeded draw could pick it instead ofunverified-download, whose site is thesha256sum -cline (:48). - The template's row at
docs/SELF_IMPROVEMENT.md:664is deleted. Outside the task files underdocs/agent/tasks/,git grep contradict-documented-defaultfinds nothing. -
uv run devops cipasses with coverage of at least 90%.
Current references
src/devops_cli/ai/review/classification.py:32loadsdocs_review_prompt.md, the persona docs review that refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 deletes.docs/SELF_IMPROVEMENT.md:666-667says "prose is left alone". With this template gone, that holds with no exception.
Dependencies and order
- Nothing open blocks this item. Both stated blockers are closed as completed: refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 on 2026-10-10 (v0.2.33) and feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138 on 2026-10-09 (v0.2.30).
- The feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 freeze does not cover this item. The corpus generator is measurement, and feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137's frozen row named no lift condition other than the link to feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138. feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 drops refactor(review): the synthetic corpus drops contradict-documented-default, which no tool can detect #541 from that row in its own refresh, and this item does not edit feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137.
- refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 is open in v0.2.38. Its plan does not touch
defects.pyor these tests, so this item can land before or after it. refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151's PR 4 also rewritesdocs/SELF_IMPROVEMENT.md, so whichever lands second rebases that file. - This item has no milestone. A person plans the milestone on the board.
Found by the first run of devops review samples validate --review (#505).
contradict-documented-default (#504) changes a documented default, such as "default 4096" to "default 8192". The documentation corpus holds only kind's user guide, so the reviewer has no code to compare the page with. Both such injections got no finding at all, and neither could have. Some defaults on those pages describe other software, such as Ubuntu's inotify limits, so even with kind's code the change is not a contradiction.
Deliverables
- The template injects only where the corpus also holds the code or configuration that defines the default. For example, the default a Terraform variable declares against its description, or a documented CLI flag against the flag's definition.
- Otherwise it is not applied, so a docs-only corpus is not scored on it.
Metadata
Metadata
Assignees
Labels
priority/p3-lowPriority P3: a small improvementscope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(review): validate devops ai tooling across the sample repositori…
dan-petty commentedon Sep 30, 2026
Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.
dan-petty commentedon Oct 2, 2026
Grooming (2026-10-02): Priority p2-medium → p3-low. It affects scoring of a couple of injections in the docs-only sample, with no user-facing behavior. It is a measurement-accuracy fix.
Checked against the code at the release/v0.2.25 tip.
dan-petty commentedon Oct 3, 2026
Frozen by the evidence-first review redesign (#1137, owner direction of 2026-10-03): patches to the model generator and verifier stop, and tool-layer fixes continue. Its judgement of contradict-documented-default findings goes with the verifier (#1150). The synthetic-corpus generator (
ai/review/defects.py,review samples) is not deleted, and #1138's scorer is the measurement it would feed. This item stays open, labelledstatus/blocked, and linked to #1138.[-]contradict-documented-default cannot be judged without the code it contradicts[/-][+]refactor(review): the synthetic corpus drops contradict-documented-default, which no tool can detect[/+]