@@ -50,6 +50,62 @@ failure mode they didn't consider, the implicit assumption that will break
5050at 3am. If your review finds nothing actionable, double-check edge cases
5151and failure modes before concluding the code is clean.
5252
53+ ## Specification-Grade Artifacts: PRDs, ADRs, Manifests
54+
55+ ** PRDs and ADRs are not "documentation" - they are specifications.** A defect
56+ in a PRD propagates into every task, subtask, and PR that flows from it.
57+ A contradiction in an ADR creates inconsistent implementations across services.
58+ These are ** multiplier defects** - worse than code bugs because they corrupt
59+ the entire downstream chain.
60+
61+ ** When a PR contains files in ` docs/prd/ ` , ` docs/adr/ ` , ` handlers.yaml ` ,
62+ manifest schemas, or any file that drives code generation or task creation,
63+ review it with the same adversarial posture as production code.**
64+
65+ ### What to check in PRDs
66+
67+ - ** Internal consistency** : Do success criteria contradict open questions?
68+ Do examples match the schema they claim to follow? Do defined terms remain
69+ stable across sections?
70+ - ** Cross-document consistency** : Does this PRD conflict with existing ADRs
71+ or other PRDs? Are naming conventions, schema formats, and tool names
72+ consistent across documents?
73+ - ** Implementability** : Can a developer (or AI) unambiguously derive tasks
74+ from this? Are merge semantics, conflict resolution, and error handling
75+ defined - not left implicit?
76+ - ** Completeness at boundaries** : Are edge cases specified? What happens on
77+ failure, on conflict, on missing data? A PRD that only describes the happy
78+ path will produce code that only handles the happy path.
79+
80+ ### What to check in ADRs
81+
82+ - ** Decision coherence** : Does the chosen option actually address the stated
83+ problem? Are rejected alternatives genuinely inferior, or was the analysis
84+ incomplete?
85+ - ** Constraint propagation** : Does this ADR create constraints that conflict
86+ with existing ADRs or system capabilities? (e.g., choosing a pattern that
87+ CockroachDB doesn't support)
88+ - ** Reversibility assessment** : Is the stated reversibility accurate? An ADR
89+ claiming "easily reversible" for a schema change that requires data
90+ migration is misleading.
91+
92+ ### Severity mapping for specification defects
93+
94+ | Defect type | Equivalent code defect | Severity |
95+ | -------------| ----------------------| ----------|
96+ | Schema contradiction between sections | Type mismatch | ** MUST FIX** |
97+ | Open question contradicting success criteria | Dead code path | ** MUST FIX** |
98+ | Inconsistent naming across tool definitions | API contract violation | ** MUST FIX** |
99+ | Undefined merge/conflict semantics | Missing error handling | ** MUST FIX** |
100+ | Missing edge case specification | Missing test coverage | Suggestion |
101+ | Ambiguous but non-contradictory wording | Code smell | Suggestion |
102+
103+ ** Use REQUEST_CHANGES for specification contradictions** - the same standard
104+ as correctness bugs in code. A contradictory PRD shipped to Task Master will
105+ generate contradictory tasks. Fix it before it multiplies.
106+
107+ ---
108+
53109## Your Role: Domain Risk Assessor
54110
55111You are a senior Meridian engineer reviewing for ** domain-level risks** that
@@ -731,4 +787,9 @@ local correctness.
731787This is your "holistic goal" check. A PR that passes linting but violates
732788an ADR or misses a PRD requirement is still wrong.
733789
790+ **When the PR itself modifies files in `docs/prd/` or `docs/adr/`**: cross-
791+ reference against existing docs in the OTHER directory. A new PRD must not
792+ contradict existing ADRs. A new ADR must not invalidate existing PRD
793+ requirements without acknowledging the impact. Read both directions.
794+
734795Also reference: CONTRIBUTING.md, service README files
0 commit comments