Repository navigation
Description
Context
- chore: add cross-vendor adversarial-review skill #868 added the
adversarial-reviewskill — cross-vendor (Claude + Codex) review of a diff. It is deliberately stateless: scope a diff, review, refute, report, throw away the scratch dir. No persisted artifacts. That was the right call for the skill itself. - feat(plugins): Claude Code plugin v0.4 — the memory bridge #865 builds the memory bridge: ambient hooks that brief Claude from the BM graph and checkpoint back, an output-style of search-first/capture-typed reflexes, and
session/decision/taskpicoschema seeds written to and queried from the graph via structured metadata search.
This issue proposes a follow-up that sits on top of both: give the review agent a durable memory by riding the #865 bridge, so it gets smarter about this repo over time instead of starting cold every run.
The one use case that earns it
Not "log everything to a graph." One thing, with a sharp test attached:
- False-positive suppression. The biggest failure of automated review over time is flagging the same non-issue every PR and getting dismissed every time. If each confirmed/contested/rejected finding is recorded as a typed note, a future review's Phase 0 can query prior verdicts on the touched files and downweight or annotate known non-issues. Valuable from finding Memory json import #2 — no cold-start wait.
- Repo risk/convention history (later). Relations between files and finding-types ("this module has had 3 concurrency bugs caught in review") let the reviewer spend attention where the graph says bugs cluster. Only worth it once there's volume.
Litmus test (hold this ruthlessly)
Every write to BM must have a read that changes a future review. If the agent writes findings to the graph but nothing queries them to alter behavior, it's memory cosplay — logging dressed as intelligence. This test keeps the scope honest.
How it slots under #865
- Add a
review-finding(name TBD) picoschema seed alongside feat(plugins): Claude Code plugin v0.4 — the memory bridge #865'ssession/decision/task:file,line-ish,category,severity,verdict(upheld/refuted/contested),pr,resolution,rationale. - Write path: after the adversarial-review synthesis step, persist each finding as a typed note (personal graph; sharing to team stays the deliberate, opt-in gesture feat(plugins): Claude Code plugin v0.4 — the memory bridge #865 already models).
- Read path: one new Phase 0 step —
search_notes(structured metadata) for prior verdicts on the touched files; matches annotate/suppress. - Reuses feat(plugins): Claude Code plugin v0.4 — the memory bridge #865's schema + recall plumbing rather than inventing parallel machinery.
Non-goals (explicitly a bridge too far)
- Routing the actual review through BM — the diff/repo are right there; review stays stateless/CLI.
- BM as the orchestration/transport layer.
- A cross-PR finding tracker — GitHub already is one. Don't reinvent it.
- Storing reports as the primary artifact — the PR thread is the system of record.
BM is a side layer queried before review and written after — never the engine. The skill must still work with zero memory and degrade gracefully.
Smallest first slice
review-findingschema seed.- Post-synthesis write of confirmed/contested findings (incl. PR link + verdict).
- One Phase 0
search_noteslookup on touched files; matched prior-rejected findings get downweighted/annotated, never silently dropped. - Dogfood on a few real PRs; keep it only if it measurably suppresses repeat noise. Build the risk-history graph only if the data justifies it.
Why it's worth doing
Authentic dogfooding, not a contrived demo: "Basic Memory as an agent's long-term memory for code review — inspectable markdown, a real knowledge graph, human + AI writing to the same store" is the product thesis (persistent context, local-first, human-AI collab) and lines up with the open-source-first / agent-filesystem positioning. A reviewer that visibly learns your repo, with its memory sitting in readable files, is a stronger proof point than landing-page copy.
Dependencies
- After feat(plugins): Claude Code plugin v0.4 — the memory bridge #865 lands (provides the schema + recall rails).
- chore: add cross-vendor adversarial-review skill #868 merged (the skill this supplements).
Activity
claude commentedon May 30, 2026
Claude finished @phernandez's task in 1m 44s —— View job
Issue Triage
Triage Summary
Type: Feature Request — Adds durable memory to the
adversarial-reviewskill by integrating with the Basic Memory graph (riding the #865 memory bridge).Priority: Medium
Component: MCP tools / review skill integration
Complexity: Complex
review-findingpicoschema designsearch_noteslookup for prior verdicts on touched files with suppression/annotation logicDuplicate check: No duplicates found. This is a novel proposal at the intersection of #865 and #868.
Labels applied:
enhancementDesign Notes
The issue is unusually well-scoped for a feature proposal. A few observations worth preserving in the design phase:
The litmus test is the right forcing function. "Every write to BM must have a read that changes a future review" is a concrete gate against the memory-as-logging antipattern. The implementation should enforce this by code structure — the Phase 0 lookup should be mandatory (even if it returns nothing), not optional.
Schema looks solid. The proposed
review-findingfields (file,line,category,severity,verdict,pr,resolution,rationale) map cleanly to whatsearch_noteswith structured metadata can filter on.verdict(upheld/refuted/contested) is the critical field — without it, suppression logic can't distinguish noise from real findings."Annotate, never silently drop." The issue correctly calls this out for Phase 0 matches on prior-rejected findings. A suppressed finding that surfaces as
[prior verdict: refuted in #812 — rationale: expected behavior for lazy init]is informative; a silently dropped finding creates false confidence. The implementation should make prior-rejection visible, not invisible.Graceful degradation is a first-class constraint. The skill must work identically with zero memory history. Phase 0 should be a best-effort enrichment step, not a dependency.
Dependency sequencing matters. This work should not start until feat(plugins): Claude Code plugin v0.4 — the memory bridge #865's picoschema seed pattern and recall plumbing are merged — building the
review-findingschema in parallel risks divergence if the memory bridge changes its conventions.Dogfooding scope for v1. The "smallest first slice" is appropriate: schema seed → write path → one Phase 0 lookup → real-PR dogfood for a few cycles → decide if risk-history graph is worth adding. Don't skip the dogfood gate.
Suggested First Implementation Tasks (when dependencies land)
review-findingpicoschema seed alongsidesession/decision/taskin feat(plugins): Claude Code plugin v0.4 — the memory bridge #865's schema registrysearch_notescall keyed on touched files; surface prior rejected/contested findings as annotated context — never drop silently