Inspiration
Requirements, architecture decisions, and API contracts change constantly. Finding the sentence that changed is easy with search—finding every downstream decision, implementation task, and release deliverable that silently relied on it is hard, especially two or three hops away. Both human engineers and AI coding agents routinely edit a spec or API without seeing indirect obligations or why earlier review decisions were made.
We built Ripple to answer one concrete question for developers, tech leads, and AI coding agents:
When this assumption or contract changes, what downstream decisions and tasks deserve another look—what exact source text proves why—and what did we decide to do about each one?
What it does
Ripple is a local change-impact workbench and Model Context Protocol (MCP) context server backed by Relate by Neo4j:
- Trace real multi-hop consequences with verbatim proof: Connect Assumptions, Decisions, and Tasks through confirmed
downstream -[:DEPENDS_ON]-> upstreamrelationships anchored to immutableSourceVersiondocuments and exact UTF-16 character spans.- In our real Ripple API change case, requiring
expectedRevisionandrequestIdon review saves impacts the browser caller, the evaluation worker, draft recovery, and—two hops away—rebuilding the frozen judge-store package, while excluding the unrelated language preference. - In our SemVer 2.0.0 deprecation case, delaying a deprecation minor release surfaces 5 impacted items across 7 converging paths, deduplicating reviews while excluding build metadata and unconfirmed candidates.
- In our real Ripple API change case, requiring
- Inspect live Relate Cypher, path staleness, What-If preview & graph analytics: Every impact map highlights links citing superseded document versions (
Older sourceweakest-link badges without mutating preserved quotes), offers a read-only What-If: include unconfirmed toggle (?includeProposed=true) to preview dashedproposedcandidate paths before confirming (while Apply remains strictly confirmed-only), and includes a collapsible Relate live query inspector showing the exact parameterized openCypher statement, live native phase timings (parseMs,planMs,executeMs), nodes/links traversed, and an upstream prerequisite trace. The Graph insights view ranks load-bearing items by blast radius across the workspace and runs a Stale-Source Dependency Radar. - Commit atomic snapshots & conflict-safe human reviews: Applying a change atomically snapshots pre-change paths and evidence in Relate alongside per-item review records. Engineers record Keep / Revise / Defer with a rationale, protected by revision preconditions, UUID retry idempotency, side-by-side multi-tab conflict comparison, immutable
ReviewEventhistory, and an evidence-complete Decision brief Markdown export. - Fast document onboarding without an AI API key: Paste or upload Markdown/text specs, highlight any passage directly to capture exact UTF-16 offsets in one click, or run the deterministic Quick draft scan to extract tagged items, ADR sections, checklists, and
proposeddependency candidates—keeping explicit human confirmation before anything enters impact traversal. - Connect AI coding agents directly via Relate MCP (
npm run mcp): Expose 7 tools over stdio JSON-RPC 2.0 (ripple_workspace_overview,ripple_trace_impact,ripple_upstream_context,ripple_graph_insights,ripple_read_evidence,ripple_decision_history, and live-moderipple_propose_candidate) so Claude Code, Cursor, Codex, or Antigravity can query blast radius and prior review rationales directly from Relate—either live over loopback or directly against a portable single-file.rldatabase.
How we built it
- Embedded native engine (
@relate/[email protected]): Runs in-process inside a loopback Node.js/Express TypeScript server with zero external database setup. Supports both persistent directories (WAL + Parquet checkpoints) and portable single-file.rldatabases (npm run export:rl). - Graph schema & openCypher: Models
Item,SourceVersion,Evidence,Change,Review,ReviewEvent,Proposal,Person, andMutationnodes withDEPENDS_ON,EVIDENCED_BY,FROM_SOURCE,CHANGES,FOR_CHANGE,FOR_ITEM,FOR_REVIEW, andOWNED_BYrelationships. - Safety & determinism: All queries bind parameters (never string interpolation), terminate cycles, bound depth (8 hops) and path counts (500 paths) with explicit warnings that block incomplete applies, serialize single-writer mutations in explicit
begin()/commit()/rollback()transactions, and useDatabase.open(path, { readOnly: true })for concurrent inspection and standalone MCP reads. - Frontend & accessibility: React 19, Vite, TypeScript strict mode, React Flow + Dagre for read-only impact maps, full English + Korean localization preserving verbatim source text, and responsive 390px mobile layouts.
Challenges we ran into
- Preventing silent overwrites & broken provenance: Two tabs reading the same pending review could overwrite each other; we added server-enforced
expectedRevisionchecks, durableMutationreceipts, and explicit UI comparison recovery while preserving fullReviewEventhistory. - Reducing manual graph-preparation friction without introducing hallucinated edges: Manually copying exact UTF-16 quotes across multiple items was slow. Adding direct DOM highlight-to-quote capture plus a deterministic Markdown/ADR draft scanner dramatically cut input steps while strictly preserving verbatim UTF-16 validation and keeping every extracted link
proposeduntil a human confirms it. - Honoring Relate's single-writer model alongside agent access: Opening a live store for writes from two processes violates embedded DB safety. We solved this cleanly with two MCP modes: direct
{ readOnly: true }access on closed.rl/ directory snapshots, and loopback HTTP delegation to the single-owner Express server for live workspaces and candidate proposals.
Accomplishments that we're proud of
- 105 automated tests running against real native Relate (including transaction rollback, revision conflicts, ABA protection, cycle termination, separate-process restart recovery, bundled read-only
.rlSHA-256 invariance, What-If proposed traversal isolation, stale-source weakest-link detection, static preview bundle routing, capacity preflight, deterministic UTF-16 scanning, and both stdio MCP framing modes). - Zero-install static preview target (
npm run build:pages+.github/workflows/pages.yml): Exports native Relate 1.0.1 outputs for all 4 cases into a read-only GitHub Pages preview bundle (dist-pages/) with zero external dependencies or local path leakage, alongside the bundled 135 KBexamples/ripple-review-contract.rlsample for instantrelate queryinspection. - Zero-API-key reproducibility across macOS, Linux, and Windows (
npm ci && npm run dev, plusnpm run mcp:smokeandnpm run export:rl). - One-click curated case switching inside the running app so judges can explore the real Ripple API change, SemVer 2.0.0 multi-path convergence, and the introductory example without juggling servers or ports.
- Reproducible baseline comparison (
npm run evaluate): Across the 3 curated fixtures plus the built-in synthetic inventory sample (4 primary queries, 17 expected impacts), Relate confirmed traversal achieves 1.00 precision / 1.00 recall (0 misses, 0 false positives) compared with 0.63 precision / 0.59 recall (7 misses including 2-hopBUNDLE,RECOVERY,PATCH_RESET,CORE_RESET; 6 false positives includingT3andLANGUAGE) for target-title keyword search and 0.67 precision / 0.82 recall (3 cross-owner misses, 7 false positives) for same-owner filtering. (Curated/synthetic fixture scope only; not an independent human study.)
What we learned
- Connected graphs shine when they bridge human decisions and AI agent workflows: humans confirm high-stakes dependencies and record why a task was kept, revised, or deferred, and AI agents query that same embedded Relate graph via MCP before making edits.
- Transparency beats overclaiming: explicitly distinguishing confirmed reachability from failure prediction, keeping review decisions distinct from completed implementation, and exposing live Cypher queries builds real engineering trust.
What's next for Ripple
- Conduct structured user sessions with external engineering leads to measure preparation time versus missed-dependency reduction on real team RFCs/ADRs.
- Add optional pluggable LLM candidate extraction (BYOK/local) behind the exact same UTF-16 quote validator and
proposedhuman confirmation gate. - Explore browser-embedded
@relate/relate-wasmfor a zero-install static showcase alongside the local native workbench.
AI & Third-Party Disclosures
- AI coding assistants (Codex and Antigravity) assisted design, implementation, tests, documentation, and case curation under participant direction. Demo video narration was generated with Gemini 3.8 Flash TTS. Ripple itself makes no runtime AI API calls and needs no API keys.
- Source excerpts in the Ripple API case are MIT-licensed code from this repository. Supporting SemVer 2.0.0 excerpts are by Tom Preston-Werner and the SemVer Team under CC BY 3.0 with hypothetical release labels added by Ripple. Full notices are in
THIRD_PARTY.mdanddocs/AI_DISCLOSURE.md. - Independent external user effectiveness and time savings have not been measured.
Built With
- cypher
- express.js
- mcp
- neo4j
- node.js
- react
- react-flow
- relate
- typescript
- vite