Repository navigation
docs(prd): improve Phase 11 Metadata Extraction PRD based on review feedback - #162
Conversation
Adds a maximum-detection PRD critique prompt that identifies issues before AI implementation. Combines systematic INCOSE ambiguity scanning with architectural integration checks, severity classification, and cross-cutting recommendations. Co-Authored-By: Claude Opus 4.5 <[email protected]>
…eedback Address ~60 issues identified by 2 reviewers: - Add Section 2.5: Extraction Pipeline Architecture (Phase 10→11 integration) - Add Section 10: Parallelization (4 independent work tracks) - Add full output structure, complete CLI flags, edge case behaviors - Add return types table, transform order, literal values definition - Make all success criteria verifiable with specific commands - Add resolved questions for notUsed, re-exports, inheritance chains - Add package paths table and terminology mapping PRD grew from ~680 to ~1040 lines with substantially more detail for autonomous implementation. Co-Authored-By: Claude Opus 4.5 <[email protected]>
📝 WalkthroughWalkthroughThis PR introduces a comprehensive PRD analysis workflow command and substantially expands the Phase 11 metadata extraction PRD with detailed specifications covering design principles, extraction pipeline architecture, CLI behavior, extraction rules, success criteria, milestones, and dependencies. Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as Phase 11 CLI
participant Parser as Config Parser
participant Extractor as Extraction Engine
participant Rules as Extraction Rules
participant Conventions as Conventions Package
participant Output as Output Formatter
CLI->>Parser: Parse extraction config (class/method flags, notUsed)
Parser->>Conventions: Validate against conventions
Conventions-->>Parser: Validation result
Parser-->>CLI: Config ready / errors
CLI->>Extractor: Execute single-pass/two-pass enrichment
Extractor->>Rules: Apply literal/value/returns/transform rules
Rules->>Rules: Execute in defined order
Rules-->>Extractor: Extracted metadata
Extractor->>Output: Format to Rivière schema
Output->>Output: Handle lenient mode (_missing fields)
Output-->>Extractor: Formatted result
Extractor-->>CLI: Complete extraction output
CLI->>CLI: Apply --strict/--allow-incomplete/--dry-run flags
CLI-->>CLI: Return result or error
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (15)📓 Common learnings📚 Learning: 2026-01-13T11:37:59.334ZApplied to files:
📚 Learning: 2026-01-08T22:20:13.250ZApplied to files:
📚 Learning: 2026-01-08T22:20:13.250ZApplied to files:
📚 Learning: 2026-01-08T17:19:17.148ZApplied to files:
📚 Learning: 2026-01-06T23:01:34.751ZApplied to files:
📚 Learning: 2026-01-08T07:05:01.766ZApplied to files:
📚 Learning: 2026-01-09T20:08:44.180ZApplied to files:
📚 Learning: 2026-01-08T22:20:13.250ZApplied to files:
📚 Learning: 2026-01-08T17:19:17.148ZApplied to files:
📚 Learning: 2026-01-06T23:01:34.751ZApplied to files:
📚 Learning: 2026-01-08T22:20:13.250ZApplied to files:
📚 Learning: 2026-01-08T17:19:17.148ZApplied to files:
📚 Learning: 2026-01-10T19:16:56.186ZApplied to files:
📚 Learning: 2026-01-14T00:09:27.486ZApplied to files:
🪛 LanguageTool.claude/commands/destroy-prd.md[style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) [style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) [style] ~100-~100: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) [style] ~101-~101: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) docs/project/PRD/notstarted/PRD-phase-11-metadata-extraction.md[grammar] ~233-~233: Ensure spelling is correct (QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (15)
✏️ Tip: You can disable this entire section by setting Comment |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
Deploying living-architecture with
|
| Latest commit: |
acebdf5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6091d143.living-architecture.pages.dev |
| Branch Preview URL: | https://archive-prd-phase-10.living-architecture.pages.dev |
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||



User description
Summary
Address ~60 issues identified by 2 reviewers to make the Phase 11 PRD unambiguous and implementable:
--enrich,--dry-run), edge case behaviors tablePRD grew from ~680 to ~1040 lines with substantially more detail for autonomous implementation.
Test plan
🤖 Generated with Claude Code
PR Type
Documentation, Enhancement
Description
Add comprehensive Phase 11 Metadata Extraction PRD with ~1040 lines of detailed specifications
Extend extraction config DSL with 15 metadata extraction rules and strict/lenient validation modes
Add
/destroy-prdcommand for maximum-detection PRD critique using INCOSE ambiguity scanningDefine extraction pipeline architecture, CLI flags, output formats, and edge case behaviors
Include 11 verifiable success criteria, 4 independent work tracks, and resolved open questions
Diagram Walkthrough
File Walkthrough
destroy-prd.md
Add destroy-prd command for PRD validation.claude/commands/destroy-prd.md
architectural integration, logical consistency, implicit assumptions,
edge cases, success criteria validation, AI feasibility, and
completeness gaps
(critical/medium/minor) and structured issue reporting
questions, and cross-cutting recommendations
PRD-phase-11-metadata-extraction.md
Expand Phase 11 PRD with complete specifications and implementationdetailsdocs/project/PRD/notstarted/PRD-phase-11-metadata-extraction.md
specification
10→11 integration, single-pass and two-pass workflows, package
locations, and required fields source of truth
DSL extensions, output format, CLI behavior, extraction rules (15
rules with return types and edge cases), conventions package updates,
PR extraction, AI scanner, and demo app refactoring
out-of-scope items and their behaviors
specific commands and measurable outcomes
covering partial metadata, config validation, inheritance chains,
notUsed flag, re-exports, and multiple interface implementations
research task, each with detailed deliverables and acceptance criteria
mapping (route→path)
with dependency diagram and convergence points
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.