Repository navigation
PROTOTYPE (do not merge): learnings in a trail-opencore memory service - #597
rushabhnagda11 wants to merge 1 commit into
Conversation
PROTOTYPE for discussion (todo #12: trail-code and trail-opencore have no connection). A repo's learnings are retained as opencore evidence, one per learning, granted to the repo, and recalled by meaning for a prompt or a diff. Hidden `trail opencore push|recall`, off unless TRAIL_OPENCORE_URL and TRAIL_OPENCORE_TOKEN are set. The offline path (check, ask, hooks) is unchanged. Not for merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🌱 graft blast radiusNothing outside this diff depends on it. 2 areas changed; no indexed dependents at depth 2. Who knows this code — 2 people across 2 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no Test signal per changed area — 1 ✓ · 1 –Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
What it does
A repo's learnings are retained as trail-opencore evidence and recalled by meaning for a prompt or a diff.
src/cloud/opencore.tskind: document,source_id = trail-code:<repo key>:<path>, one item per##section (speaker = author, occurred_at = date).repo:<key>./history/{evidence_id}.answerability,verify_answerandrerankare all off.trail opencore push [dir]andtrail opencore recall [query] [dir] [--diff [base]].recallprints the offlinefindNotesmatch next to opencore's, for comparison.TRAIL_OPENCORE_URLandTRAIL_OPENCORE_TOKENare set.trail check,trail askand the hooks don't change. Personal learnings are never sent.Tried locally
Against a local opencore (
origin/main, no changes) with three learnings written bytrail note:no_relevant_evidence.--diffbrings back the "Tried and ruled out" section the change goes against.no_evidence.Tests
test/opencore-bridge.test.ts: 6 pass, using a fake fetch.mainon this machine.Not in scope
askor the hooks.🤖 Generated with Claude Code