diff --git a/ROADMAP.md b/ROADMAP.md new file mode 100644 index 0000000000..c0e7a32c80 --- /dev/null +++ b/ROADMAP.md @@ -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. diff --git a/planning/README.md b/planning/README.md new file mode 100644 index 0000000000..8ce98fa5b4 --- /dev/null +++ b/planning/README.md @@ -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 `__`. [`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. diff --git a/planning/designs/README.md b/planning/designs/README.md new file mode 100644 index 0000000000..1c3684d95f --- /dev/null +++ b/planning/designs/README.md @@ -0,0 +1,13 @@ +# Designs + +Design records for this repo live in [`doc/`](../../doc/). This folder holds none. Each record is a folder named `__`, 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/). diff --git a/planning/plans/README.md b/planning/plans/README.md new file mode 100644 index 0000000000..14e4168071 --- /dev/null +++ b/planning/plans/README.md @@ -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 `.md`, or `_.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. diff --git a/planning/roadmaps/id.md b/planning/roadmaps/id.md new file mode 100644 index 0000000000..fe2ced17f8 --- /dev/null +++ b/planning/roadmaps/id.md @@ -0,0 +1,78 @@ +# Roadmap: id + +`id` is the peer-to-peer CLI built on Iroh. Its current growth area is the worlds platform: sandboxed Wasm programs (written in Roc) that run in shared, journaled worlds and render to browsers and SSH terminals. + +Sources: [Phase 9 and 10](../../.opencode/plans/phase-9-portable-platform.md), [Phase 11](../../.opencode/plans/phase-11-foundations.md), [Phase 12](../../.opencode/plans/phase-12-platform-flexibility.md), [next-stage record](../../doc/2026-10-17T15-00-00Z_architecture_next_stage_platform/2026-10-17T15-00-00Z_architecture_next_stage_platform.md), [`pkgs/id/TODO.md`](../../pkgs/id/TODO.md). How to read this file: [planning README](../README.md). + +The next-stage record sets the order: foundations first (a CI signal that can be believed, visible costs, code that is easy to change), then flexibility. Phase 12 does not start in earnest until Phase 11's CI and visibility tasks are done. + +## Now + +| Title | Status | Intent | Links | +| --------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| A CI signal that can be trusted | in-progress | The Nix check had no recorded success in 392 runs. Fix the flakes and the disk failures so a red check means something. | F11.1 to F11.4, #229, #241, #255, #257, #176, #300 | +| One place decides what a client may see | in-progress | Seed, chat history and host events follow the same rule through a single projection, with a test per row. | F11.11, #242, [chat visibility fix](../../doc/2026-10-18T04-00-00Z_fix_world_chat_visibility/) | +| Journal format management | planned | A version header, a check command and a backup command, so a rollback to an older binary is safe. | F11.12, #227 | +| Cost visibility | in-progress | Per-call fuel is measured and guarded by budgets. Host metrics, benchmarks and bytes per frame follow. | F11.6 (merged in #247), F11.7, F11.8, F11.9 | +| Bring the Phase 11 plan up to date | proposed | Several F11 tasks merged after the plan was written. | #312 | + +## Next + +| Title | Status | Intent | Links | +| --------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | +| Split the large modules | planned | `world.rs` is 6,120 lines and `cmd_world` has a 730 KB stack frame. Split with no behavior change. | F11.10 | +| Injected clock | planned | Schedule and tick tests stop sleeping. | F11.5 | +| Typed error codes | planned | Every capability error carries a documented code, including the reason `schedule.at` drops today. | F11.13 | +| Replay self-check | planned | `id world verify` replays a journal twice and reports any divergence. | F11.16 | +| A view trap does not poison the world | planned | A guest `view` that traps shows an error screen and recovers on the next healthy event. | F11.17 | +| Pinned toolchain for checked-in modules | planned | Every example is built with the compiler pinned in `nix/roc.nix`, and CI checks it. | F11.18 | +| Cheaper guests | planned | A cheaper `Screen` and smaller Wasm modules (each at or under 400 KB). | F11.14, F11.15 | +| Sync protocol hardening | proposed | Bounds on frame buffering and batch bytes, a stall fix for joiners with missing control messages, held messages with a limit. | #178, #179, #180, #186, #187, #189 | +| Tags and documents follow-ups | proposed | Tag event bodies travel with the event, a persisted incremental tag index, who may clear a claim, document removal rules. | #182, #183, #185, #195 | +| Capability ceilings, written down | proposed | Define the server and per-world ceilings. The code exists, the definition does not. | #230 | +| Seitan V2 check | proposed | Check the Keybase server side and old-style invites before building on them. | #194 | + +## Later + +These are the Phase 12 tasks. The order inside the phase is in the plan. + +| Title | Status | Intent | Links | +| --------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- | ------ | +| Worlds as data | planned | A `world.toml` that `id world apply` reconciles, with a dry run and a drift report. | F12.1 | +| Forking and templates | planned | A world starts from another world's module and snapshot, with provenance. | F12.2 | +| Builder and moderator roles | planned | Journaled grants to install modules or revoke participants, with an audit record for each use. | F12.3 | +| Provider registry | planned | A new host capability is a manifest and a provider, with no edit to `world.rs`. | F12.4 | +| First new providers | planned | A bounded key-value store, content-addressed blobs, an allowlisted `http.fetch` and rate-limited notifications. | F12.5 | +| Audit log and telemetry | planned | A structured audit of admin actions and provider use, with OpenTelemetry export. | F12.6 | +| ABI specification and conformance suite | planned | The `plaza_*` exports and capability protocol written down and versioned. | F12.7 | +| More guest languages | planned | A Rust SDK and one of AssemblyScript or Zig, each passing the conformance suite. The component model decision is recorded here. | F12.8 | +| Program upgrade with state migration | planned | A failed upgrade rolls back, shown by a test. | F12.9 | +| Fair scheduling and quotas | planned | One spinning world cannot raise another world's p99 latency by more than 10 percent. | F12.10 | +| Delta and binary frames | planned | A typical redraw costs under 10 percent of a full frame. | F12.11 | + +## Ideas + +| Title | Status | Intent | Links | +| ---------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| Worlds as places | idea | A directory of worlds a node serves, with presence and open or closed state. | [Phase 10 sketch](../../.opencode/plans/phase-9-portable-platform.md) | +| Outbound notifications | idea | A visible capability to post a bounded summary to a room or device when a world reaches a milestone. | Phase 10 sketch, F12.5 | +| SSH chat and document viewing for worlds | proposed | Chat, input, paginated records and read-only document viewing in SSH shells. The PR has conflicts. | #211 | +| Worlds on Cloudflare Workers | idea | A pkarr option for running on Workers. The design is merged. | [P7.2 design](../../doc/2026-10-14T10-18-19Z_design_p7_2_cloudflare_workers.md) | +| Group encryption and authorization | idea | Long-term item in `pkgs/id/TODO.md`. | [TODO](../../pkgs/id/TODO.md) | +| Datastar for the web UI | idea | A plan to move from HTMX exists. Its state is not checked. | [plan](../../.opencode/plans/htmx-to-datastar-migration.md) | + +## Done + +| Title | Date | Result | +| ------------------------------------------------------------------------------ | ---------- | ------------------------- | +| Server-scoped home discovery | 2026-10-18 | #212 | +| Signed document revisions on save | 2026-10-18 | #210 | +| Replayable session fixtures | 2026-10-18 | #239 | +| Journaled scheduled events for worlds | 2026-10-18 | #243 | +| Per-call guest fuel budgets | 2026-10-18 | #247 | +| Territory view fits eight seats | 2026-10-18 | #248 | +| Cloudflare Workers pkarr design | 2026-10-18 | #213 | +| Relay kit vendored, drift test | 2026-10-17 | #249 (F11.1) | +| Install seed redaction | 2026-10-17 | #250 | +| Fast PR gate, E2E and VM checks nightly | 2026-10-18 | `id-e2e-nightly` workflow | +| Phase 9 and 10 slices (portable screens, profiles, ceilings, libraries, roles) | 2026-10-16 | See the Phase 9 plan | diff --git a/planning/roadmaps/mcpx.md b/planning/roadmaps/mcpx.md new file mode 100644 index 0000000000..1987adbe92 --- /dev/null +++ b/planning/roadmaps/mcpx.md @@ -0,0 +1,62 @@ +# Roadmap: mcpx + +`mcpx` is the Go MCP gateway and Code Mode runner in `pkgs/mcpx`. It pools MCP servers behind one daemon, runs TypeScript scripts against them, and hands a running daemon to its successor during upgrades. + +This repo is the primary source for `mcpx`. The macOS flake in `dezren39/nix` carries a vendored copy that is being removed, and the OpenCode and OpenChamber forks consume the result. Sources: [`pkgs/mcpx/TODO.md`](../../pkgs/mcpx/TODO.md), [`pkgs/mcpx/docs/`](../../pkgs/mcpx/docs/), and the large mcpx backlog in `dezren39/nix`, which issue #309 moves here. Backlog numbers below are written as `nix#N`. How to read this file: [planning README](../README.md). + +## Now + +| Title | Status | Intent | Links | +| ----------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | +| One source for mcpx | in-progress | The copy in `dezren39/nix` is removed. This repo ports the useful differences and becomes the only place the code lives. | #308, #309, #237, the removal plan in `dezren39/nix` | +| Daemon restart waits for orphan DELETEs | proposed | `POST /v1/daemon/restart` re-execs without waiting, so a removed server's upstream session can leak. One call to the wait added in #299. | #301, nix#416 | +| `MCPX_STATE_DIR` in daemon discovery | in-progress | Discovery and mirroring honour the environment state directory, so a sandboxed daemon does not leak into the real listing. | #305, #306 | +| Takeover tests on darwin | proposed | The package builds and tests on aarch64-darwin without a skip list kept in another repo. | #237 | +| Unreliable orphan-session test in the Nix build | proposed | `TestTerminateOrphanedSessionEndsTheUpstreamSession` sees 0 DELETEs in the Nix build and hides why. | #290 | + +## Next + +| Title | Status | Intent | Links | +| ----------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | +| A supervisor that owns each stdio child's pipes | idea | Today's takeover handoff is a stopgap that passes pipes over a unix socket. A supervisor that outlives the daemon makes a daemon upgrade a plain restart of the front end. | [TODO](../../pkgs/mcpx/TODO.md) | +| Resume upstream sessions after a cold restart | idea | The upstream `Mcp-Session-Id` is kept only in memory and in the takeover handoff, so every HTTP upstream is initialised again after a restart. | [TODO](../../pkgs/mcpx/TODO.md) | +| Decide what a stdio server's identity is | proposed | `ExecIdentity` is the bytes of the executable, which is wrong for a script that finds files relative to its location. Include the directory, or always restart a re-pointed link. | [TODO](../../pkgs/mcpx/TODO.md) | +| JSON Schema validation of tool input and output | proposed | Seven conformance rows depend on it. | nix#254 | +| Legacy client robustness | proposed | Session 404, GET stream, SSE retry, string ids, stream timeout and the version header. | nix#203, nix#200, nix#201 | +| Tasks, which are advertised and not implemented | proposed | The 2026 tasks extension is advertised, and core tasks live in two stores. | nix#209 | +| Script runtime follow-ups | proposed | Capability probe and clearer parse-failure diagnostics for `--runtime node`, and recipes with `@param` holes. | nix#108, nix#367 | + +## Later + +| Title | Status | Intent | Links | +| ----------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | +| A write policy | proposed | Ask, allow or deny per call, with the exact call shown when asking. Argument rules and a stop after a write of unknown outcome follow. | nix#340, nix#355, nix#339 | +| A bearer token for `/v1` and `/mcp` | proposed | Optional authentication on the HTTP surfaces. | nix#338 | +| Principals and permissions | idea | A principal per surface and a permission per operation, declared permissively. The permissive default currently authorizes everyone. | nix#298, nix#300 | +| An OAuth authorization server | idea | Research item. | nix#345 | +| Front codex-connectors-mcp | idea | OAuth-authenticated apps without mcpx doing OAuth. | nix#342, nix#346 | +| Packaging test and Nix modules | proposed | Install the built artifact and check the MCP handshake. Package, service and config modules for NixOS, nix-darwin and home-manager. | nix#341, nix#343 | +| Choose between MCP spec revisions | idea | A precedence list, `--mcp-spec` and version predicates where revisions conflict. | nix#307 | +| Tool views and composed tool sets | idea | Rename, pin and hide tools, cross-server namespaces, script-backed tools. | nix#114 | +| Hooks | idea | Lifecycle hooks on exec and config-declared hooks over the event bus. | nix#81, nix#112 | + +## Ideas + +| Title | Status | Intent | Links | +| -------------------------------------- | ------ | ---------------------------------------------------------------------------- | ------- | +| WebAssembly as a sandboxed tool source | idea | wazero, and the component model as the tool boundary. | nix#299 | +| Roc as a script language | idea | Whether mcpx should be a Roc platform. | nix#296 | +| Reach a daemon by identity | idea | Find a daemon by its Iroh identity, and the Go-binding question that raises. | nix#297 | +| A sentence in, a reviewed script out | idea | Natural language to script. | nix#294 | +| Embedding mcpx | idea | A public Go API, a C ABI and WASM. | nix#84 | +| A web frontend served by the daemon | idea | No second build system. | nix#86 | +| Adapter import | idea | A declaration generated from completions, man pages and `--help`. | nix#295 | + +## Done + +| Title | Date | Result | +| ------------------------------------------------------------------ | ---------- | ------------------------------------ | +| Orphan-session DELETEs off the takeover serving path | 2026-10-18 | #296 | +| Wait for orphan-session DELETEs on orderly exit | 2026-10-18 | #299 (restart path still open, #301) | +| `EnsureDaemon` honours a cancelled context | 2026-10-18 | #285 | +| PR gate is one direct-Go job, Nix build only on dependency changes | 2026-10-18 | #295, `mcpx-nixbuild.yml` | diff --git a/planning/roadmaps/nixos-and-infra.md b/planning/roadmaps/nixos-and-infra.md new file mode 100644 index 0000000000..4a7a58bd1b --- /dev/null +++ b/planning/roadmaps/nixos-and-infra.md @@ -0,0 +1,43 @@ +# Roadmap: NixOS flake and infra + +This file covers the NixOS flake (`flake.nix`, `lib/`, `nixos/`, `keys/`, `sops/`) and the manifests that run beside it (`infra/talos`, `infra/dns`, `apps/`). + +It is the thinnest roadmap in the repo. The open issues I read (the 30 most recently updated) hold no NixOS or infra work, and the daily Jules flake sync keeps inputs current. Items below come from the repo's own notes, so most of them are ideas that still need an owner's decision. How to read this file: [planning README](../README.md). + +## Constraints that shape the work + +- Hosts are declared in `nixos/hosts/default.nix` and each attribute names a directory under `nixos/`. Adding a capability usually means adding a directory and naming it there. +- Most inputs follow `nixpkgs-unstable`, because the `neededForBoot` patch in `patches/nixpkgs/` applies only to that tree. Do not re-follow inputs to a stable channel without checking the patch. +- The two real hosts are `nixos` and `amd`. `rebuild` scripts change a live machine and run only on those. + +## Now + +| Title | Status | Intent | Links | +| ---------------------------------- | ----------- | --------------------------------------------------------- | ---------------------------------------------------- | +| Keep flake inputs current | in-progress | A daily Jules job updates inputs and audits dependencies. | `.github/workflows/jules-daily-flake-sync.yml`, #287 | +| mcpx as a package for other flakes | in-progress | The macOS flake needs a way to build mcpx from this repo. | #308, [mcpx roadmap](mcpx.md) | + +## Next + +| Title | Status | Intent | Links | +| -------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------- | -------- | +| Name an owner for NixOS and infra work | proposed | The roadmap has no items of its own. Decide what the next host, service or cluster change is and file it. | none yet | + +## Later and ideas + +These come from scratch notes in `TODO.md` and `doc/todo.md`. They are listed so they are not lost, and each needs a decision first. + +| Title | Status | Intent | Links | +| ---------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | +| Impermanence review | idea | The root `TODO.md` holds a commented impermanence setup (persisted machine-id, ssh host keys, rollback and sudo lectures). Decide what applies to `nixos` and `amd`. | [TODO.md](../../TODO.md) | +| Automatic upgrades | idea | A note points at the NixOS manual section on automatic upgrades. | [TODO.md](../../TODO.md) | +| Wireless backend | idea | Compare iwd and wpa_supplicant. | [TODO.md](../../TODO.md) | +| Content-addressed derivations by default | idea | A note links the NixOS call for testers. | [doc/TODO.md](../../doc/TODO.md) | +| Mail service on Cloudflare Workers | idea | `nixos/services/id-mail` deploys a Worker through `idMailDeploy`. Its direction is not written down. | `nixos/services/id-mail` | +| Infra scripts to a documented workflow | idea | `infra/dns` is driven by many small shell wrappers around Terraform. A short runbook would help whoever runs them next. | `infra/dns` | + +## Done + +| Title | Date | Result | +| ------------------- | ---- | ------ | +| (none recorded yet) | | | diff --git a/planning/roadmaps/repo-and-ci.md b/planning/roadmaps/repo-and-ci.md new file mode 100644 index 0000000000..4dfba09088 --- /dev/null +++ b/planning/roadmaps/repo-and-ci.md @@ -0,0 +1,37 @@ +# Roadmap: repo-wide CI and automation + +This file covers `.github/workflows`, the Jules automation and the way pull requests are triaged. Each project's own checks are in its roadmap. How to read this file: [planning README](../README.md). + +## Now + +| Title | Status | Intent | Links | +| -------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| Jules runs only when they can act | proposed | The Jules workflow subscribes to every workflow completion. 44 of the last 100 runs were skipped, and they share a concurrency group with the one run that matters. | #304 | +| One Jules workflow | proposed | Three Jules workflow files become one. | #287 | +| Timeout caps on every job | in-progress | A hung job stops at its cap, where today it runs to the 360 minute default. | #293 | +| PR gate cannot drift from the flake | proposed | The `id` PR gate lists flake checks by hand, so a new check gets no PR coverage. | #300 | +| Cache the Go build and reuse artifacts | proposed | Build cache by `go.sum` hash. | #288 | +| `nix flake check` out of disk | proposed | It dies intermittently with "No space left on device" in `id-test` and `id-ci`. | #257 | +| Triage stale PRs | proposed | Overlapping Jules drafts, old Renovate security PRs and one PR with conflicts. | #310, #311 | + +## Next + +| Title | Status | Intent | Links | +| --------------------------------------------- | ----------- | ------------------------------------------------------------------------------------ | ------------------------------- | +| The `id` workflow gate stays under 15 minutes | planned | The gate once took about two hours. It is fast now. Keep it that way and measure it. | #292, F11.4 | +| Adopt the planning folder | in-progress | New plans and roadmap changes go through `planning/`. | [planning README](../README.md) | + +## Ideas + +| Title | Status | Intent | Links | +| ----------------------------- | ------ | ------------------------------------------------------------------- | ----- | +| Jules does not repeat a theme | idea | The Bolt and Palette jobs skip a theme that already has an open PR. | #310 | + +## Done + +| Title | Date | Result | +| --------------------------------------------------- | ---------- | ------------------- | +| Concurrency groups on CI workflows | 2026-10-18 | #289 | +| Auto-assign concurrency keyed by issue or PR number | 2026-10-18 | #303 | +| `mcpx` and `id` workflow speed-up | 2026-10-18 | #295 | +| Package build check when dependencies change | 2026-10-18 | `mcpx-nixbuild.yml` | diff --git a/planning/templates/design.md b/planning/templates/design.md new file mode 100644 index 0000000000..86a5ab81a2 --- /dev/null +++ b/planning/templates/design.md @@ -0,0 +1,38 @@ +# Design record template + +Name the file `__.md`, for example `2026-10-18T14-30-00Z_design_blob_streaming.md`. + +```markdown +# + +- Status: draft | accepted | superseded by <link> +- Date: <UTC datetime> +- Roadmap item: <link to the row, or "none"> +- Issues: <links> + +## Intent + +What was asked for or noticed, in plain words. Who is affected and what they see today. + +## Design + +What the system does after this change. Name the modules, formats and invariants that change. + +## Decisions + +Each decision with the reason. Say who decided it when it was a product call. + +## Alternatives considered + +What else was possible and why it lost. + +## Consequences + +What gets easier, what gets harder, what must be migrated or kept compatible. + +## Open questions + +What is not decided. Each question names who or what settles it. +``` + +Append later updates as new sections that start with `## <UTC datetime> <Update|Clarification|Deviation|Discovery|Decision>:` and a one-line summary. diff --git a/planning/templates/plan.md b/planning/templates/plan.md new file mode 100644 index 0000000000..3a78cbb4d3 --- /dev/null +++ b/planning/templates/plan.md @@ -0,0 +1,44 @@ +# Implementation plan template + +Name the file `<short-name>.md`, or `<UTC datetime>_<short-name>.md` when order matters. + +```markdown +# <Title> + +- Status: draft | in-progress | done | abandoned +- Roadmap item: <link> +- Design: <link, or "none yet"> +- Issues: <links> + +## Goal + +One paragraph: what is true when this is done that is not true now. + +## Scope + +In: what this plan changes. +Out: what it leaves alone, and where that is tracked. + +## Steps + +Each step is small enough for one PR and says how to tell it is done. + +1. **<Step name>.** What changes. Done when: <check a test or CI job can run>. +2. ... + +## Tests and evidence + +The tests that must exist, and what each one proves. Name the ones that fail before the change. + +## Rollout and rollback + +How it ships, what a user must do, and how to undo it. + +## Risks + +What could go wrong and what limits the damage. + +## Progress + +- <UTC date>: <what happened, with the PR or issue> +``` diff --git a/planning/templates/roadmap-item.md b/planning/templates/roadmap-item.md new file mode 100644 index 0000000000..8c80c10581 --- /dev/null +++ b/planning/templates/roadmap-item.md @@ -0,0 +1,18 @@ +# Roadmap item template + +Copy the block into the roadmap file for the project, under the horizon it belongs to. +An item can start as a single line. Add the other fields as they become known. + +```markdown +| Title | Status | Intent | Links | +| ---------- | ------ | ----------------------------------------------------------------- | --------------------------------- | +| Short name | idea | One sentence: what a user or maintainer gets, and why it matters. | #123, the design record, the plan | +``` + +Fields: + +- **Status** is one of `idea`, `proposed`, `shaped`, `planned`, `in-progress`, `shipped`, `dropped`. See the README for what each one means. +- **Intent** says what changes for someone. Leave out the how until there is a design. +- **Links** point to issues, design records, plans and PRs, in that order of appearance. + +When an item ships or is dropped, move its row to the "Done" table at the bottom of the file with the date and the PR or reason. Do not delete rows.