diff --git a/ROADMAP.md b/ROADMAP.md index 910cd9470..616b3663c 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -14,6 +14,8 @@ A row here records intent. It does not settle a product question and it is not a | Repo-wide CI and automation | [repo-and-ci](planning/roadmaps/repo-and-ci.md) | The dispatch workflows, the Go build cache, stale PR triage — and the queue fleet program: lanes for every queue, OpenChamber session dispatch (#1233, #1234), pool & routing intelligence (#1343, #1340) | | The basement home cluster (Talos, Cozystack) | [basement-cluster](planning/roadmaps/basement-cluster.md) | Nothing built yet; research and planning done, hardware inventory and power come first | | The PM stack (Kaneo, Pad, Grist, the aggregator, the queue fleet) | [pm-stack](planning/roadmaps/pm-stack.md) | Coherence epic #1184 in progress: one URL, fresh data, triage-able issues across the four repos | +| The fleet: the agents, their tool, queue and pools | [fleet](planning/roadmaps/fleet.md) | The fleet tool as the one door for coordination, mirroring and backups (#8990): the verb contract v2, the local replica and backups are in review | +| Atlas, the search and memory index | [atlas](planning/roadmaps/atlas.md) | One index over every corpus (#8983): the backup mesh (#9093), the shard consumer's serve mode and the evaluation sets | ## Now, across the repo diff --git a/planning/README.md b/planning/README.md index beb7821ff..ddebfe769 100644 --- a/planning/README.md +++ b/planning/README.md @@ -14,14 +14,16 @@ The roadmap is the top level. An item can sit there as one line with no details, The repo holds several projects that move on their own schedules, so each has its own roadmap file. [`ROADMAP.md`](../ROADMAP.md) at the repo root is the overall view and links to them. -| Project | File | Code | -| ---------------------------------------------- | -------------------------------------------------------------- | -------------------------- | -| `id`, the peer-to-peer CLI and worlds platform | [`roadmaps/id.md`](roadmaps/id.md) | `pkgs/id` | -| `mcpx`, the MCP gateway and Code Mode runner | [`roadmaps/mcpx.md`](roadmaps/mcpx.md) | `pkgs/mcpx` | -| The NixOS flake and the infra manifests | [`roadmaps/nixos-and-infra.md`](roadmaps/nixos-and-infra.md) | `nixos/`, `lib/`, `infra/` | -| Repo-wide CI and automation | [`roadmaps/repo-and-ci.md`](roadmaps/repo-and-ci.md) | `.github/` | -| The basement home cluster (Talos, Cozystack) | [`roadmaps/basement-cluster.md`](roadmaps/basement-cluster.md) | `infra/talos/`, `doc/` | -| The PM stack (project management) | [`roadmaps/pm-stack.md`](roadmaps/pm-stack.md) | `pm-stack/` | +| Project | File | Code | +| -------------------------------------------------- | -------------------------------------------------------------- | -------------------------- | +| `id`, the peer-to-peer CLI and worlds platform | [`roadmaps/id.md`](roadmaps/id.md) | `pkgs/id` | +| `mcpx`, the MCP gateway and Code Mode runner | [`roadmaps/mcpx.md`](roadmaps/mcpx.md) | `pkgs/mcpx` | +| The NixOS flake and the infra manifests | [`roadmaps/nixos-and-infra.md`](roadmaps/nixos-and-infra.md) | `nixos/`, `lib/`, `infra/` | +| Repo-wide CI and automation | [`roadmaps/repo-and-ci.md`](roadmaps/repo-and-ci.md) | `.github/` | +| The basement home cluster (Talos, Cozystack) | [`roadmaps/basement-cluster.md`](roadmaps/basement-cluster.md) | `infra/talos/`, `doc/` | +| The PM stack (project management) | [`roadmaps/pm-stack.md`](roadmaps/pm-stack.md) | `pm-stack/` | +| The fleet: the agents, their tool, queue and pools | [`roadmaps/fleet.md`](roadmaps/fleet.md) | `pkgs/fleet` | +| Atlas, the search and memory index | [`roadmaps/atlas.md`](roadmaps/atlas.md) | `pkgs/atlas-search` | Each roadmap file groups its items by horizon. diff --git a/planning/roadmaps/atlas.md b/planning/roadmaps/atlas.md new file mode 100644 index 000000000..1b59875fb --- /dev/null +++ b/planning/roadmaps/atlas.md @@ -0,0 +1,41 @@ +# Roadmap: Atlas + +Atlas is the fleet's index: every corpus (conversations, memory files, notes, repository docs, research) brought in through connectors into one place to search, with a query surface for agents and people and standing evaluation sets that say whether it is any good. The search itself is a Rust binary and a service built on it (`pkgs/atlas-search`). + +Written on 2026-11-23 from the programme's epics. A row's status is read from its issue's own labels on that day: an issue in review or in progress is `in-progress`, one filed with its steps and not started is `planned`, a design is `shaped`. + +## Now + +| Title | Status | Intent | Links | +| -------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | +| The Atlas programme: one search and memory index over every corpus | in-progress | Every corpus ingested through a connector into one staging index, one way of embedding with each corpus's model named, a surface to query it, and evaluation sets as the oracle. | #8983, #5350 | +| Atlas as a Rust binary and a multi-client search service | in-progress | One binary that works alone and as a service. Its six steps, from embedder parity to the cutover behind a golden-parity gate, are closed; the epic stays open for what follows. | #5350, #5351, #5352, #5353, #5354, #5355, #5356 | +| Backup mesh | in-progress | Every Turso database to R2 as fourteen days of deltas, copies on the laptop and in Drive, the D1 and laptop databases into Turso, and restores verified in rotation. | #9093, #13455, #13456, #13458, #13463, #13457, #13459, #13461 | +| Shard consumer: serve mode and replicas that persist | in-progress | The search role serves from shards, with embedded replicas kept between runs. | #6666, #11213 | +| A hot cache in D1 | in-progress | Invalidation by tenant events is in; the measurement that says what it saves is in review. | #13106, #13107 | +| Metadata schema v1, and how it may change | in-progress | Additive only, with extras and strict enums. | #9095 | +| Evaluation | in-progress | Precision at k for saved rankings, and candidates from sessions judged against what was opened. | #13601, #13590 | +| Staging tier | shipped | A versioned schema, a registry, and promotion into the tiers when a batch closes. | #5669 | +| Ask the ledger | shipped | Questions answered at the edge over snapshots that hold no secrets. | #6266 | +| Fleet and agent memory in Atlas: the design, and its evaluation sets | shipped | One memory surface across agents and corpora. | #8567, #8627 | + +## Next + +| Title | Status | Intent | Links | +| ---------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | +| Memory slice 1: a corpus registry and the memory connector | planned | Agent memory enters staging through a connector like any other corpus. | #8622 | +| Memory slice 3: the query surface over MCP | planned | Agents query the one index through the mcpx namespace. | #8625 | +| The projector for id | planned | Versions, files and relations, then attestations and ingest runs, its operations, and view presets for publishing the graph. | #11182, #11183, #11184, #11185 | +| Provenance registry | planned | Where each chunk occurs, extracts addressed by their content, and vectors resolved across databases. | #3125 | +| Muse import | planned | What counts as evidence of an import, how it is replayed, and when the old store is retired. | #13607 | +| The Atlas book | planned | Replay, scope and release protocols written up by workstream, with the module inventory checked as the book is built. | #13592, #13563 | + +## Later + +| Title | Status | Intent | Links | +| ---------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | +| The ingestion programme | shaped | Updates half-automated: what is ingested, how content is versioned, one model of provenance, deltas only, and feedback from what was retrieved. | #6018 | +| First-pass ingestion of every corpus | planned | Every code repository and every document that can be found. | #6025 | +| Cold tier: the restore importer | planned | What was moved to cold storage can be brought back. | #8228 | +| Boundary remediation | planned | Rows that carry secrets leave the production store. | #8479 | +| Backups of the OpenCode session database | proposed | Copy, compress or delta: the cost of each is researched before one is built. | #9094, #13462 | diff --git a/planning/roadmaps/fleet.md b/planning/roadmaps/fleet.md new file mode 100644 index 000000000..f057a659b --- /dev/null +++ b/planning/roadmaps/fleet.md @@ -0,0 +1,45 @@ +# Roadmap: Fleet + +The fleet is the set of agents that work this repository and the ones around it, and the tool they do it through: the `fleet` binary (`pkgs/fleet`) with its queue, dispatch, search and proxy, the lanes that claim tasks and work them, and the pools of models and machines they run on. Where its work is planned and watched is the PM stack ([`pm-stack.md`](pm-stack.md)); this file is where the fleet itself is going. + +Written on 2026-11-23 from the programme's epics. A row's status is read from its issue's own labels on that day: an issue in review or in progress is `in-progress`, one filed with its steps and not started is `planned`, a design is `shaped`. + +## Now + +| Title | Status | Intent | Links | +| ---------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | +| The fleet tool: one door for coordination, mirroring and backups | in-progress | One tool owns every coordination route and every fallback, so no agent reaches a database, a mirror or a backup by a road of its own. | #8990, #8575 | +| One `fleet` binary: search, queue, dispatch and proxy | shipped | A single multicall binary, with what each seat may do chosen by its capabilities. | #5412 | +| Unification slices 1, 2 and 4 | shipped | The queue database's schema audited by a wipe test, the GitHub mirror kept in the database by a webhook Worker, and merge intents queued, with the local stack of pull requests replayed. | #8579, #8580, #8582 | +| Unification slice 3: the verb contract v2 | in-progress | Every verb says its routes and what it does in a degraded mode, in the tool and not in each caller. | #8581 | +| Unification slice 5: a local coordination replica | in-progress | Work goes on when the database cannot be reached. | #8583 | +| Unification slice 6: backups | in-progress | Turso into D1, and the repositories to Cloudflare, a mirror and R2. | #8584 | +| Queue fleet reliability | in-progress | A lane worker for every queue and certified shift reports, so the fleet runs for a week at a time without an operator's repairs. | #1233 | +| Every lane on the intake ladder | in-progress | Every lane takes its work by the same intake ladder. | #12236 | +| Ready pull requests are merged | in-progress | A pull request that is ready is merged by the sweep, not left standing. | #12280 | +| Closure records | in-progress | Every close carries its reason, so the audit trail is there by construction. | #9221 | +| Feature slices in the queue | shipped | A large issue is built a slice at a time and is not triaged over and over. | #12233 | +| Nothing parked on the owner | shipped | The parks on the owner that were open on 2026-11-21, 109 of them, were cleared. | #12234 | + +## Next + +| Title | Status | Intent | Links | +| -------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | +| Unification slice 7: label de-mirroring and the final reconciliation | planned | The last of the old mirrors goes, and what is left is checked against the one home per fact. | #8585 | +| Queue: resume by session, claim any task, manual-only items | planned | A task can be picked up where a session left it, and some are only ever started by hand. | #9178 | +| Pool and routing intelligence | in-progress | Lanes on every queue, live dispatch and babysitting, a steward for quota, a reviewer of the reviewers, and model choices measured against our own sessions. | #1334, #1340, #1342, #2732 | +| Fleet expansion and placement | in-progress | The fleet takes on the repositories it touches and does not manage, and work is placed by a written table. | #2055, #2230, #4986 | +| Orchestration and dispatch | shaped | The design family for sweeps, review jobs and dispatch, under one tracking home. | #12950 | +| Review loop | in-progress | A review of the diff can reject "done" and commission a second pass by a fresh session. | #2025, #2313, #2312 | +| More machines as job nodes | in-progress | Machines join a pool and placement is designed around it. The PM stack's side of this is a second machine under its own key (#13492). | #2179 | +| Connection performance | in-progress | A claim in one round trip, and streams that share one tunnel. | #5757, #5756 | +| Fleet CA, credentials and secrets | shaped | The design for the fleet's certificate authority, its credentials and its secrets. | #9155 | + +## Later + +| Title | Status | Intent | Links | +| ----------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------ | ----- | +| Content-creation throttle | planned | A shared ledger and pacing budgets, with what was filed checked by reading it back. | #2227 | +| Shift batching and lane handoff | planned | A lane hands its state to the next as a snapshot, and queue lanes have a supervision mode. | #2140 | +| The SSH recovery path in the binary | shaped | When the proxy path is down, the tool gets in by SSH by itself. | #5697 | +| One validated and bounded contract for what the proxy reads | shaped | A value is checked where it is read, by one rule. | #6582 | diff --git a/planning/roadmaps/pm-stack.md b/planning/roadmaps/pm-stack.md index dd098e0d9..d86080956 100644 --- a/planning/roadmaps/pm-stack.md +++ b/planning/roadmaps/pm-stack.md @@ -23,14 +23,15 @@ The roadmap of record is this file and its siblings in `planning/roadmaps/`. The ## Next -| Title | Status | Intent | Links | -| ------------------------------------------------------ | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -| Connect opencode, openchamber, nix as Kaneo projects | planned | One Kaneo project per repo (the upstream one-repo-per-project limit), the developing.today app installed per repo. Seeded as a Grist row on 2026-10-24; tracked under the coherence epic. | #1184 | -| Projector and link registry (Turso) | planned | A webhook-fed projector joining GitHub issue, Kaneo task, Pad item, and roadmap row by ID. Never a source of truth. | #1184 | -| Aggregator UI: cross-repo WIP board and roadmap view | in-progress | Read-mostly and disposable: if it rots, every layer underneath still works standalone. The aggregator service exists and reads this repo's roadmap data today; the cross-repo board is the remaining scope. | #1184 | -| A second machine under its own key | shaped | Machines are enrolled from the app, and each action goes to one that can do it. | #13492 | -| The twelve hand-deployed Workers deployed from Actions | shaped | Each with a check and a way back, listed with its last deploy on the Platform screen. The plan: [`pm-stack/platform/README.md`](../../pm-stack/platform/README.md). | #13493 | -| Platform settings applied from Actions | proposed | The hostname, its sign-in, its route and the edge's tokens no longer depend on a script on the laptop. | #13495 | +| Title | Status | Intent | Links | +| ----------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | +| Connect opencode, openchamber, nix as Kaneo projects | planned | One Kaneo project per repo (the upstream one-repo-per-project limit), the developing.today app installed per repo. Seeded as a Grist row on 2026-10-24; tracked under the coherence epic. | #1184 | +| Projector and link registry (Turso) | planned | A webhook-fed projector joining GitHub issue, Kaneo task, Pad item, and roadmap row by ID. Never a source of truth. | #1184 | +| Aggregator UI: cross-repo WIP board and roadmap view | in-progress | Read-mostly and disposable: if it rots, every layer underneath still works standalone. The aggregator service exists and reads this repo's roadmap data today; the cross-repo board is the remaining scope. | #1184 | +| A second machine under its own key | shaped | Machines are enrolled from the app, and each action goes to one that can do it. | #13492 | +| A roadmap file for every capability, and roadmap changes made by the platform | in-progress | Fleet and Atlas have files like the rest, so their pages show what is built and what is far off; a change asked for on a page becomes a pull request against the file. | #13497 | +| The twelve hand-deployed Workers deployed from Actions | shaped | Each with a check and a way back, listed with its last deploy on the Platform screen. The plan: [`pm-stack/platform/README.md`](../../pm-stack/platform/README.md). | #13493 | +| Platform settings applied from Actions | proposed | The hostname, its sign-in, its route and the edge's tokens no longer depend on a script on the laptop. | #13495 | ## Later diff --git a/pm-stack/console/src/plan.ts b/pm-stack/console/src/plan.ts index 231e94f8c..f312c02db 100644 --- a/pm-stack/console/src/plan.ts +++ b/pm-stack/console/src/plan.ts @@ -61,13 +61,13 @@ export const CAPABILITIES: Capability[] = [ "epic/fleet-expansion", "roadmap/fleet-health", ], - file: null, + file: "planning/roadmaps/fleet.md", }, { id: "atlas", title: "Atlas", labels: ["app/atlas", "app/atlas-search", "epic/atlas-program", "epic/atlas"], - file: null, + file: "planning/roadmaps/atlas.md", }, { id: "pm-stack", diff --git a/pm-stack/console/test/plan.test.ts b/pm-stack/console/test/plan.test.ts index fa59fd8f6..a840c9ed5 100644 --- a/pm-stack/console/test/plan.test.ts +++ b/pm-stack/console/test/plan.test.ts @@ -258,6 +258,9 @@ describe("a roadmap file", () => { const count = (file: string) => parseRoadmap(readFileSync(`${ROOT}/${file}`, "utf8")).length; expect(count("planning/roadmaps/id.md")).toBeGreaterThanOrEqual(10); expect(count("planning/roadmaps/pm-stack.md")).toBeGreaterThanOrEqual(4); + // Fleet and Atlas had no file until 2026-11-23, and their pages showed issues alone. + expect(count("planning/roadmaps/fleet.md")).toBeGreaterThanOrEqual(10); + expect(count("planning/roadmaps/atlas.md")).toBeGreaterThanOrEqual(10); }); }); @@ -351,7 +354,7 @@ describe("a capability's roadmap", () => { // What was read for one capability is not the answer for another. const other = await w.plan.roadmap("atlas"); expect(other.area).toBe("atlas"); - expect(w.calls).toHaveLength(8); // atlas has no file: its two searches + expect(w.calls).toHaveLength(9); // its own file, and its own two searches w.calls.splice(6); // A minute on, it is asked again by itself. w.state.now += 60_000; @@ -373,25 +376,57 @@ describe("a capability's roadmap", () => { }); test("a capability with no file is its issues, and a part that cannot be read says so alone and is asked again", async () => { + // Each capability has a file now (Fleet and Atlas had none until 2026-11-23). One added + // before its file is written is still its issues alone, so one is added here for the test. + CAPABILITIES.push({ id: "unwritten", title: "Unwritten", labels: ["app/unwritten"], file: null }); + try { + let fail = true; + const w = world((c) => + c.q?.includes("is:open") && fail ? { fail: "HTTP 403: rate limit" } : { items: [], total_count: 0 }, + ); + const got = await w.plan.roadmap("unwritten"); + expect(got.file).toBeNull(); + expect(got.rows).toEqual([]); + for (const phase of ["doing", "now", "next", "later"] as const) { + expect((got.issues[phase] as { error: string }).error).toContain("rate limit"); + } + expect(got.issues.built).toEqual([]); + expect(got.partial).toBe(true); + expect(w.calls.some((c) => c.path.includes("/contents/"))).toBe(false); + // What failed is not what the next minute is answered from. + fail = false; + const next = await w.plan.roadmap("unwritten"); + expect(next.partial).toBe(false); + expect(next.issues.now).toEqual([]); + expect(() => w.plan.roadmap("nonesuch")).toThrow(/area: one of id, fleet, atlas, pm-stack/); + } finally { + CAPABILITIES.pop(); + } + expect(CAPABILITIES.some((c) => c.id === "unwritten")).toBe(false); + }); + + test("a capability's file that cannot be read says so alone: its issues still show, and it is asked for again", async () => { let fail = true; const w = world((c) => - c.q?.includes("is:open") && fail ? { fail: "HTTP 403: rate limit" } : { items: [], total_count: 0 }, + c.path.includes("/contents/") + ? fail + ? { fail: "HTTP 404: Not Found" } + : { + content: btoa( + "## Now\n\n| Title | Status | Intent | Links |\n| --- | --- | --- | --- |\n| A row | planned | Why. | #7 |\n", + ), + } + : { items: [], total_count: 0 }, ); const got = await w.plan.roadmap("atlas"); - expect(got.file).toBeNull(); - expect(got.rows).toEqual([]); - for (const phase of ["doing", "now", "next", "later"] as const) { - expect((got.issues[phase] as { error: string }).error).toContain("rate limit"); - } - expect(got.issues.built).toEqual([]); - expect(got.partial).toBe(true); - expect(w.calls.some((c) => c.path.includes("/contents/"))).toBe(false); - // What failed is not what the next minute is answered from. + expect(got.file).toBe("planning/roadmaps/atlas.md"); + expect((got.rows as unknown as { error: string }).error).toContain("Not Found"); + expect([got.issues.now, got.issues.built, got.partial]).toEqual([[], [], true]); + expect(w.calls.filter((c) => c.path.endsWith("/contents/planning/roadmaps/atlas.md"))).toHaveLength(1); fail = false; const next = await w.plan.roadmap("atlas"); expect(next.partial).toBe(false); - expect(next.issues.now).toEqual([]); - expect(() => w.plan.roadmap("nonesuch")).toThrow(/area: one of id, fleet, atlas, pm-stack/); + expect(next.rows).toMatchObject([{ title: "A row", status: "planned", issues: [7], phase: "now" }]); }); test("the four the owner named come first, and every roadmap file in the repository has a page", () => { @@ -941,22 +976,24 @@ describe("over HTTP", () => { }[]; expect(caps.slice(0, 4)).toEqual([ { id: "id", title: "id", file: "planning/roadmaps/id.md" }, - { id: "fleet", title: "Fleet", file: null }, - { id: "atlas", title: "Atlas", file: null }, + { id: "fleet", title: "Fleet", file: "planning/roadmaps/fleet.md" }, + { id: "atlas", title: "Atlas", file: "planning/roadmaps/atlas.md" }, { id: "pm-stack", title: "PM stack", file: "planning/roadmaps/pm-stack.md" }, ]); expect(w.calls).toHaveLength(0); // the list of capabilities asks GitHub nothing const fleet = await handle(get("/console/api/roadmap?area=fleet"), d); expect(fleet.status).toBe(200); expect(await fleet.json()).toMatchObject({ area: "fleet", title: "Fleet", rows: [], partial: false }); - expect(w.calls).toHaveLength(2); + // Its file, what is open and what closed lately: three reads. + expect(w.calls).toHaveLength(3); + expect(w.calls.filter((c) => c.path.endsWith("/contents/planning/roadmaps/fleet.md"))).toHaveLength(1); await handle(get("/console/api/roadmap?area=fleet"), d); - expect(w.calls).toHaveLength(2); + expect(w.calls).toHaveLength(3); await handle(get("/console/api/roadmap?area=fleet&fresh=1"), d); - expect(w.calls).toHaveLength(4); + expect(w.calls).toHaveLength(6); // Only "1" asks again: anything else in its place is a look like any other. await handle(get("/console/api/roadmap?area=fleet&fresh=0"), d); - expect(w.calls).toHaveLength(4); + expect(w.calls).toHaveLength(6); expect((await handle(get("/console/api/roadmap?area=nonesuch"), d)).status).toBe(400); expect((await handle(get("/console/api/roadmap"), d)).status).toBe(400); expect(await (await handle(get("/console/api/bugs"), d)).json()).toMatchObject({ open: [], fixed: [] });