Review insight store port
Definition¶
Hexagonal port for persisting and querying recurring reviewer-feedback patterns. Implemented by review_insights.ReviewInsightStore. ReviewPhase injects this port to record each review outcome and to query which feedback categories have been seen often enough to inject mandatory guidance blocks into the next agent prompt. The port decouples ReviewPhase from the JSONL file-storage backend.
Invariants¶
- Pure Protocol — no implementation, no state.
- Methods cover the full lifecycle:
append_reviewwrites a new record,load_recentreads recent history,get_proposed_categoriesandmark_category_proposedgate category escalation, andrecord_proposal,load_proposal_metadata, andupdate_proposal_verifiedtrack whether a proposed mandatory block reduced the pattern.