Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Roadmap

This is the overall roadmap for the repository. The repo holds several projects that move on their own schedules, so each has a roadmap file in [`planning/roadmaps/`](planning/roadmaps/). This page shows where they stand next to each other. How the roadmap works, and how it connects to design records and plans, is in [`planning/README.md`](planning/README.md).

A row here records intent. It does not settle a product question and it is not a go-ahead to build.

## Projects

| Project | Roadmap | Current focus |
| ---------------------------------------------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `id`, the peer-to-peer CLI and worlds platform | [id](planning/roadmaps/id.md) | Phase 11 foundations: a CI signal that can be trusted, visible costs, one rule for what a client may see |
| `mcpx`, the MCP gateway and Code Mode runner | [mcpx](planning/roadmaps/mcpx.md) | Becoming the only copy of the code, and daemon restarts that do not leak sessions |
| The NixOS flake and infra manifests | [nixos-and-infra](planning/roadmaps/nixos-and-infra.md) | Inputs kept current by a daily job. No open work items of its own |
| Repo-wide CI and automation | [repo-and-ci](planning/roadmaps/repo-and-ci.md) | Jules workflow noise, timeout caps, stale PR triage |

## Now, across the repo

1. Make CI trustworthy for `id`: the LogSync bulk test (#255), Firefox E2E isolation (#229), the out-of-disk failures (#257).
2. Make this repo the single source for `mcpx`: how other flakes consume it (#308), the backlog that moves here (#309), the restart-path fix (#301).
3. Quiet the automation: Jules runs that cannot act (#304), stale PRs (#310, #311).

## Next

1. `id` Phase 11 tasks that make the code easier to change: split `world.rs`, injected clock, typed errors, journal format tooling.
2. `id` sync protocol hardening from the Phase 3 to 5 issues (#178 to #195).
3. `mcpx` robustness: a supervisor for stdio children, session resume after a cold restart, JSON Schema validation.

## Later

1. `id` Phase 12: worlds as data, a provider registry, more guest languages, program upgrades, fair scheduling, delta frames.
2. `mcpx` policy and auth: write policy, argument rules, principals, bearer token.

## Themes that cross projects

| Theme | Where it shows up |
| ------------------------------------------ | --------------------------------------------------------------------------------------------- |
| A CI result people believe | `id` flakes and out-of-disk failures, Jules runs that skip, concurrency groups that drop runs |
| One source of truth per component | `mcpx` is vendored in `dezren39/nix` and consumed by the OpenCode and OpenChamber forks |
| Handing a running service to its successor | `mcpx` daemon takeover, `id` takeover of idle connections, the OpenCode `serve` handover |

## Related repositories

| Repository | Relation |
| ------------------------------ | ---------------------------------------------------------------------------- |
| `dezren39/nix` | The macOS flake. Vendors `mcpx` today and is moving to consume it from here. |
| `developing-today/opencode` | OpenCode fork. Calls the `mcpx` CLI and daemon. |
| `developing-today/openchamber` | OpenChamber fork, built against the fork of OpenCode. |

## Done

The finished items are kept in each project's roadmap, in its "Done" table.
69 changes: 69 additions & 0 deletions planning/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Planning

This folder holds the plans for the code repository at three levels of detail.

| Level | Question it answers | Where | How it changes |
| ------- | --------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------- |
| Roadmap | Where is this going, and in what order? | [`ROADMAP.md`](../ROADMAP.md) and [`roadmaps/`](roadmaps/) | Edited in place, kept short |
| Design | What will it be, and why this way? | [`doc/`](../doc/) | Dated records, appended to while work is active |
| Plan | How do we build it, one step at a time? | [`plans/`](plans/) | Updated as each step lands |

The roadmap is the top level. An item can sit there as one line with no details, long before anyone knows how to build it. A design is written when the shape of the thing has to be decided. A plan is written when the work is ready to start.

## Roadmap

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/` |

Each roadmap file groups its items by horizon.

| Horizon | Meaning |
| ------- | ----------------------------------------------------------------------------- |
| Now | Being worked on, or first in line. Has an issue. |
| Next | The direction is chosen and the shape is mostly known. Starts after Now. |
| Later | The direction is chosen, the shape is not. Details are allowed to be missing. |
| Ideas | Written down so it is not lost. No commitment, and it may be dropped. |

Each item has a status.

| Status | Meaning |
| ------------- | --------------------------------------------------------------------- |
| `idea` | Someone wrote it down. Details may be missing. |
| `proposed` | Described with a reason. Waits for a decision to go ahead. |
| `shaped` | The direction is decided. A design record exists or is being written. |
| `planned` | A plan with steps exists and the issues are filed. |
| `in-progress` | At least one PR for it is open or merged. |
| `shipped` | Done. The row moves to the "Done" table with the date and the PR. |
| `dropped` | Decided against. The row moves to the "Done" table with the reason. |

A roadmap row records intent. It is not a go-ahead to build the thing, and it does not settle a product question. Wherever this repo says a maintainer decides, a row at `proposed` or earlier still waits for that decision.

## How to use it

1. Add a new idea as one row under Ideas. One sentence of intent is enough.
2. Change a row's horizon or status in the same PR as the work that causes the change.
3. Link every row to its issues. When a design or plan exists, link that too.
4. When a row ships or is dropped, move it to the "Done" table. Do not delete rows, since the history is useful.
5. Open an issue for every item in Now, so the work can be picked up and tracked there. The roadmap links to issues and does not copy their content.

## Templates

- [Roadmap item](templates/roadmap-item.md)
- [Design record](templates/design.md)
- [Implementation plan](templates/plan.md)

## Where existing material lives

- **Design records** stay in [`doc/`](../doc/), one folder per record, named `<UTC datetime>_<kind>_<name>`. [`doc/DOCUMENTATION_PROTOCOL.md`](../doc/DOCUMENTATION_PROTOCOL.md) says when to write one and how to append to it. [`designs/`](designs/) only explains this and points there, so there is a single home for designs.
- **Implementation plans** are written in [`plans/`](plans/) from now on. The plans written before this folder existed stay in [`.opencode/plans/`](../.opencode/plans/), and [`plans/README.md`](plans/README.md) lists them. They are not moved, because other documents link to them by path.
- **Project notes** that already exist keep their place: `pkgs/id/TODO.md`, `pkgs/id/ARCHITECTURE.md`, `pkgs/mcpx/TODO.md` and `pkgs/mcpx/docs/`. A roadmap row links to them when it draws on them.

## Related repositories

`mcpx` is consumed by `dezren39/nix` (the macOS flake), `developing-today/opencode` and `developing-today/openchamber`. This repo is the primary source for `mcpx`. Changes to it land here first.
13 changes: 13 additions & 0 deletions planning/designs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Designs

Design records for this repo live in [`doc/`](../../doc/). This folder holds none. Each record is a folder named `<UTC datetime>_<kind>_<name>`, with the document inside it. [`doc/DOCUMENTATION_PROTOCOL.md`](../../doc/DOCUMENTATION_PROTOCOL.md) says when a record is needed, how to append updates to it, and what to do when a newer design replaces an older one.

This folder exists so that the three planning levels (roadmap, design, plan) are all visible from [`planning/`](../README.md). It holds no records of its own.

Use the [design record template](../templates/design.md) for the sections a record should cover. Link the record from the roadmap row it belongs to.

The records that set the direction of the current work:

- [Next stage of the platform](../../doc/2026-10-17T15-00-00Z_architecture_next_stage_platform/2026-10-17T15-00-00Z_architecture_next_stage_platform.md), which orders Phase 11 and Phase 12 for `id`.
- [Remaining work after phase 8](../../doc/2026-10-11T11-08-42Z_design_remaining_work/).
- [Portable world surfaces](../../doc/2026-10-14T19-39-30Z_architecture_portable_world_surfaces/).
25 changes: 25 additions & 0 deletions planning/plans/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Plans

Implementation plans break a roadmap item into steps. Each step is small enough for one PR and says how to tell it is done. Use the [plan template](../templates/plan.md).

New plans go in this folder. Name a plan `<short-name>.md`, or `<UTC datetime>_<short-name>.md` when the order matters. Link each plan from the roadmap row it implements, and keep its Progress section current as PRs merge.

## Plans written before this folder existed

These stay in [`.opencode/plans/`](../../.opencode/plans/). They are not moved, because other documents link to them by path.

| Plan | Covers | State |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [Phase 9 and 10](../../.opencode/plans/phase-9-portable-platform.md) | Portable world surfaces, execution profiles, standard libraries, roles, fixtures, scheduled events | Mostly shipped. See the `id` roadmap. |
| [Phase 11](../../.opencode/plans/phase-11-foundations.md) | CI trust, cost visibility, module split, journal tooling, cheaper guests | In progress. Its status lines lag the merged PRs, tracked in #312. |
| [Phase 12](../../.opencode/plans/phase-12-platform-flexibility.md) | World manifest, provider registry, more guest languages, upgrades, scale | Not started. |
| [Cursor enhancements](../../.opencode/plans/2026-03-20_cursor_enhancements.md) | Collaborative cursors in the web editor | Older. State not checked. |
| [Peer discovery](../../.opencode/plans/2026-03-21_peer-discovery.md) | Finding peers | Older. State not checked. |
| [Tags v2 on iroh docs](../../.opencode/plans/2026-03-24-tags-v2-iroh-docs.md) | Tag storage | Older. State not checked. |
| [Tags v2 polish](../../.opencode/plans/2026-03-24-tags-v2-polish.md) | Tag follow-ups | Older. State not checked. |
| [Tags binary search and autotag](../../.opencode/plans/2026-03-25-tags-binary-search-autotag.md) | Tag search | Older. State not checked. |
| [Testing and CI overhaul](../../.opencode/plans/2026-03-25-testing-ci-overhaul.md) | Test and CI structure | Older. State not checked. |
| [HTMX to Datastar migration](../../.opencode/plans/htmx-to-datastar-migration.md) | Web UI framework move | State not checked. |
| [ProseMirror content modes](../../.opencode/plans/prosemirror-content-modes.md) | Editor modes | State not checked. |

Rows marked "State not checked" were listed from the folder contents. Nobody has compared them with the code yet.
Loading
Loading