Repository navigation
Connectomes: planning across several cortexes #36
alanbsmith
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This page proposes a way to plan across several repos that each have a cortex. It's a design to test, not a decision. The vision discussion says what a single cortex is for. This page builds on it.
The problem
A cortex holds the why behind one repo. Some work spans several repos that depend on each other. For example, ontology-kit builds knowledge bases and an MCP server that serves them, and eval-kit, an evaluation runner, tests agents against them. When one repo changes a file format or delays a feature another repo needs, the others find out late. That lag has two kinds:
Each cortex can answer questions about its own repo. Nothing answers "if this repo changes, what breaks over there, and who has to know?"
The proposal: a connectome
A connectome is a cortex whose job is the connections between other cortexes. In a brain, the connectome is the map of how its regions connect. Here, it's a repo with an ordinary
cortex/folder, named for the system it serves, such asknowledge-base-connectome.It holds only what sits between its members:
related-projects.mdrolecolumn and a link to each member's cortex.contracts/decisions/now.mdnow.md.open-questions.md"Connectome" is the one word the docs use. What anyone calls their repo or folder is up to them, the same way
--dir brainworks today.The rules
Link, don't copy. The cortex already never copies a status. A connectome applies the same rule to everything it points at.
now.mdsays which repo waits on which, and why, and links to the issue that's being waited on. It doesn't summarize each member's focus. Whether the wait is over is a status, so the linked issue wins when the two disagree.A contract or decision lives in the repo that would have to change. If only one repo would, it lives in that repo's cortex. If more than one would, it lives in the connectome, and each member links to it. This is one placement rule for both, so an agent learns it once.
For a contract, that splits along the interface. What one repo promises another is shared, so it goes in the connectome. How a repo keeps that promise is its own choice, so it stays in that repo's cortex. A producer that wants to break a shared promise proposes the change in the connectome first, so every consumer sees it before it ships.
Every link has a backlink. Each cortex lists its neighbors in
related-projects.md, in the same place in every repo. If A links to B, B links back to A. Like links in a note graph, connections are visible from both ends. Each row has arole:neighborfor a related project,memberfor a repo in a connectome, orconnectomefor the connectome a repo belongs to.Information only flows toward a more private place. Some members are public and some are private, and some may have internal counterparts at a company. So:
ontology-kit's
brain/related-projects.mdalready has a column for what's fine to say in public about each neighbor. The proposal makes that file the standard for every cortex.An agent opens the connectome only for cross-repo questions. Each member's agent instructions get one line: "For planning that crosses projects, start at the connectome's README." A session working inside one repo doesn't load it.
Links are GitHub URLs. A URL means the same thing on every machine and in cloud sessions. When the other repo is checked out next to this one (
../<name>), the agent reads the local copy instead. When it can't read a member at all, for example a private repo in a session without access, it says so and doesn't guess.What repo-cortex ships
At first, no new CLI code. A connectome is built by hand once, so the pattern comes from something real before any command encodes it. It's the same wait-for-evidence reasoning as decision 0005 and decision 0008.
Then:
references/connectome.md), not a second skill. Most of the work is the same as building a cortex. What differs is that the sources are the member cortexes, there are contracts, and it writes backlinks into other repos.The first test
The first connectome is
knowledge-base-connectome, a private repo with two members:brain/folder.Its first contract already exists, split across the two repos. ontology-kit's decision 0036 says why its MCP server can report the knowledge base release it serves at
eval-kit://snapshot, and a runner compares that with the release it expects. The runner's side of the promise lives in eval-kit. Neither repo holds both halves, so the contract belongs in the connectome, and each side links to it.The order:
related-projects.mdand backlinks to both members.It's done when a fresh agent, starting only at the connectome's README and reading no source code, correctly answers:
This work comes before the Documentation milestone, so the docs describe single and multi-repo use as people really do it.
After the first test
init --connectomeandcheckfor members and backlinks. It starts when adding the third member shows which steps were repeated by hand.@repo-cortexscope, andrepo-cortexstays as a wrapper sonpx repo-cortexkeeps working (decision 0014).Left for later
These wait until the personal connectome works:
Questions
Comments are welcome, especially on:
All reactions