feat(plan-feature): add convention applicability rules#118
Conversation
Reviewer's GuideIntroduces shared convention applicability rules for file-type-aware use of CONVENTIONS.md, wires plan-feature to validate conventions against target files before enrichment, documents the shared module in CONVENTIONS.md, and updates plan-feature evals to assert correct applicability filtering behavior. Sequence diagram for convention applicability validation in plan-featuresequenceDiagram
participant PlanFeatureSkill
participant Task
participant ConventionsMd
participant ConventionApplicabilityRules
participant ImplementationNotes
PlanFeatureSkill->>Task: Read FilesToModify and FilesToCreate
PlanFeatureSkill->>ConventionsMd: Collect candidate conventions
loop For each candidate convention
PlanFeatureSkill->>ConventionApplicabilityRules: Determine scope signals from convention section
ConventionApplicabilityRules-->>PlanFeatureSkill: ConventionScope (file types, directories, or broad)
PlanFeatureSkill->>ConventionApplicabilityRules: Compare ConventionScope with task target files
ConventionApplicabilityRules-->>PlanFeatureSkill: ApplicabilityResult (applies or excluded) with rationale text
alt Convention is applicable
PlanFeatureSkill->>ImplementationNotes: Append Per_CONVENTIONS_md_line with action
PlanFeatureSkill->>ImplementationNotes: Append applicability rationale
else Convention is not applicable
PlanFeatureSkill-->>ImplementationNotes: Skip convention (no entry)
end
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Verification Report for TC-4285 (commit b361dfd)
Acceptance Criteria Details
Overall: WARNCI infrastructure limitation only — no code defects found. All acceptance criteria met, scope contained, commit traceable. This comment was AI-generated by sdlc-workflow/verify-pr v0.7.2. |
There was a problem hiding this comment.
Eval Results
Eval Results: plan-feature
| Eval | Passed | Failed | Pass Rate |
|---|---|---|---|
| eval-1 | 13/13 | 0 | 100% |
| eval-2 | 11/11 | 0 | 100% |
| eval-3 | 12/12 | 0 | 100% |
| eval-4 | 8/8 | 0 | 100% |
| eval-5 | 12/12 | 0 | 100% |
Pass rate: 100% · Tokens: 52,962 · Duration: 202s
Baseline (3146a86): 82% · 44,434 tokens · 175s
Generated by sdlc-workflow/run-evals v0.9.1
Verification Report for TC-4285 (commit 8258abe)
Overall: PASSAll checks pass. The PR correctly implements the convention applicability rules document, updates the plan-feature SKILL.md with an applicability validation step, adds eval assertions for the new behavior, and updates CONVENTIONS.md with the shared module entry. This comment was AI-generated by sdlc-workflow/verify-pr v0.9.1. |
Verification Report for TC-4285 (commit 8258abe) — Revised
Overall: WARNThe PR correctly implements the convention applicability rules document and all acceptance criteria are structurally satisfied. However, the eval results review (#pullrequestreview-4363925347) reports that eval 4 assertion 8 (convention applicability format) fails:
Sub-task created: TC-4554 — Strengthen convention applicability format to pass adversarial eval Revises the previous PASS report which did not account for the eval results review. This comment was AI-generated by sdlc-workflow/verify-pr v0.9.1. |
Verification Report for TC-4285 (commit 8258abe) — Revised v2
Overall: WARNThe PR correctly implements the convention applicability rules document and all acceptance criteria are structurally satisfied. However, the eval results review reports two categories of eval failures: 1. Convention applicability format (eval 4 assertion 8): → Sub-task: TC-4554 — Strengthen convention applicability format to pass adversarial eval 2. Description digest protocol (evals 1, 4, 5 — assertions 12, 7, 11): → Sub-task: TC-4555 — Fix description digest protocol to compute real SHA-256 hashes in evals Revises the previous reports which did not fully account for the eval results review. This comment was AI-generated by sdlc-workflow/verify-pr v0.9.1. |
Verification Report for TC-4285 (commit 1f7c477)
Overall: WARNScope Containment and Commit Traceability are WARN because sub-tasks TC-4554 and TC-4555 added commits to the same PR branch via Target PR flow. The out-of-scope files ( This comment was AI-generated by sdlc-workflow/verify-pr v0.9.1. |
…validation Introduces shared rules for validating convention file-type applicability before applying conventions to tasks or upgrading review suggestions. Prevents conventions intended for one file type (e.g., .rs migrations) from being incorrectly applied to unrelated files (e.g., .tsx components). Implements TC-4285 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a "Common Mistakes" section to the digest protocol listing observed failure modes (placeholder text, abbreviated hashes, example hashes, extra text). Strengthen the inline digest instructions in SKILL.md to explicitly require a real computed 64-char hex hash. Update eval assertions to verify real hashes rather than just marker presence. Closes: TC-4555 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ment Add "Common Mistakes" section to convention-applicability-rules.md with negative examples (prose rationales, "Not applicable" annotations, missing file-type match). Reinforce SKILL.md applicability step with exact prescribed format and explicit prohibition of inapplicable convention annotations. Update eval assertions to verify format compliance and exclusion behavior. Closes: TC-4554 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
shared/convention-applicability-rules.mddefining how to validate convention file-type applicability before applying conventions to tasks or upgrading review suggestionsplan-feature/SKILL.mdconvention-aware enrichment "How to apply" list requiring applicability validation per the shared rulesImplements TC-4285
Test plan
shared/convention-applicability-rules.mddefines file-type extraction, comparison logic, rationale format, ambiguous-case handling, and filtering exampleplan-feature/SKILL.mdconvention-aware enrichment references the shared rules at step 2claude plugin validate plugins/sdlc-workflowto confirm plugin validity🤖 Generated with Claude Code
Summary by Sourcery
Define shared rules for validating convention file-type applicability and integrate them into the plan-feature skill and shared conventions documentation.
Enhancements:
Documentation:
Tests: