Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(roadmap): document slow-day forecasts and split imports [N26]

Corey Olson42d020c9e3e4
diff --git a/docs/api.md b/docs/api.md
index 323061ca..7ef36715 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -372,7 +372,13 @@ The local board state and events responses include `eventLogVersion`, which iden
The coordinator maintains the roadmap with `milestone add <name> [--note ...] [--items 1,2,3]`, `milestone items <name> --add|--remove ids`, `milestone move <name> --before <other>`, `milestone edit <name> [--name <new>] [--note <text>] [--target <date and time>|none]`, `milestone ship <name> [--next <name>]`, and `milestone remove <name>`. A milestone stores its name, optional note, optional target, its shipment once shipped, and ordered item ids in `board_meta`; removing a milestone leaves its items untouched. A target is stored as ISO time; `--target none` clears it. A `repo#id` reference uses a registered repo's display name (or its folder name) before `#`; its status is read from that board when the repo is registered on this machine.
-An item counts as done only once it has landed on main: it is verified and its merge commit is recorded. `pullboard roadmap` prints milestones in order as `N/M landed`, with the target, `past target` for an unshipped milestone whose target has passed, or the commit it shipped at, and each item as `landed`, `accepted` (verified, not landed) or its status. Its JSON results and API state use `{ name, note, target, pastTarget, shipped, items: [{ id, title, status, state }], landed, done, total }` for each milestone: `target` is ISO text or `null`, `shipped` is `{ commit, at, by }` or `null`, `state` is `landed`, `accepted` or the status, and `done` equals `landed`. Each milestone also carries `summary: { total, left, landed, landing, review, building, held, waiting, needsYou, pace: { last6h, last2h }, estimate }`. Only non-withdrawn members participate in the summary: its `total`, `left`, six state counts and `needsYou` exclude withdrawn work, while the existing milestone `items`, `total`, `landed` and `done` fields retain their original membership semantics. The six summary state counts are exclusive and sum to summary `total`: landed, accepted but not landed, submitted, live claimed, held, then waiting (including expired claims and unresolved references), in that order of precedence. `left` is total minus landed. Holds include item and lane holds. `needsYou` contains local milestone item ids linked to unanswered person decisions by typed item evidence or explicit local `#N` tokens in the question; repo-qualified and URL references do not link local items. Pace counts this board's distinct currently landed items at the first merged event for their current merge commit, with windows excluding the exact lower boundary. `estimate` is `{ low, high }` hours, from left divided by each window's hourly rate, sorted and rounded to the nearest half hour. A zero two-hour rate uses the positive six-hour rate for both bounds. The estimate is `null` with fewer than three landings in six hours or after shipping. Unshipped milestones print one summary line, including the estimate when available; shipment, targets and item states retain their existing fields.
+An item counts as done only once it has landed on main: it is verified and its merge commit is recorded. `pullboard roadmap` prints milestones in order as `N/M landed`, with the target, `past target` for an unshipped milestone whose target has passed, or the commit it shipped at, and each item as `landed`, `accepted` (verified, not landed) or its status. Its JSON results and API state use `{ name, note, target, pastTarget, shipped, items: [{ id, title, status, state }], landed, done, total }` for each milestone: `target` is ISO text or `null`, `shipped` is `{ commit, at, by }` or `null`, `state` is `landed`, `accepted` or the status, and `done` equals `landed`. Each milestone also carries `summary: { total, left, landed, landing, review, building, held, waiting, needsYou, pace: { last6h, last2h, last24h }, estimate, window, reason }`. Only non-withdrawn members participate in the summary: its `total`, `left`, six state counts and `needsYou` exclude withdrawn work, while the existing milestone `items`, `total`, `landed` and `done` fields retain their original membership semantics. The six summary state counts are exclusive and sum to summary `total`: landed, accepted but not landed, submitted, live claimed, held, then waiting (including expired claims and unresolved references), in that order of precedence. `left` is total minus landed. Holds include item and lane holds. `needsYou` contains local milestone item ids linked to unanswered person decisions by typed item evidence or explicit local `#N` tokens in the question; repo-qualified and URL references do not link local items. Pace counts this board's distinct currently landed items at the first merged event for their current merge commit, with windows excluding the exact lower boundary and excluding future events.
+`pace.last6h`, `pace.last2h` and `pace.last24h` count landings in the last six, two and 24 hours.
+For an unshipped milestone with at least three landings in six hours, `window` is `"6h"` and `estimate` is `{ low, high }` hours: divide `left` by each of the six-hour and two-hour hourly rates, sort the bounds and round them to the nearest half hour; a zero two-hour rate uses the six-hour rate for both bounds.
+With fewer than three landings in six hours but at least three in 24 hours, `window` is `"24h"` and both estimate bounds use the 24-hour hourly rate, rounded to the nearest half hour.
+Either estimate has `reason: null`. With fewer than three landings in 24 hours, `estimate` and `window` are `null` and `reason` is `"few-landings"`; after shipping, `estimate`, `window` and `reason` are all `null`.
+Unshipped milestones print one summary line: for example, `about 2.5 h at today's pace`, `about 6 h at the last day's pace`, or `too few landings yet to estimate`.
+Equal bounds print once; different six-hour bounds print a range. Shipment, targets and item states retain their existing fields.
`milestone ship` is the coordinator's move. It records the milestone as shipped at the main checkout's commit and moves every local item that has not landed into the next unshipped milestone after it, or into `--next`, recording a `milestone_moved` event on each moved item's thread. A withdrawn local item stays in place. A `repo#id` reference also stays in place because its board belongs to another repository; every such reference is listed in `notMoved` in JSON and named as “not moved across boards” in text output. Its JSON result is `{ milestone, into, moved, notMoved }`. A shipped milestone takes no new items: `milestone items <name> --add` refuses `MILESTONE_SHIPPED`. Shipping refuses `NO_NEXT_MILESTONE` when unlanded local items have nowhere to go, and `MILESTONE_COMMIT` when main has no commit. Targets and shipping are engine 45 moves.
diff --git a/src/cli.js b/src/cli.js
index 11e33cdc..eda219b6 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -272,7 +272,10 @@ import {
registerProjectAndLink,
registeredProjectRootsSnapshot,
} from './projects.js';
-import { milestoneRoadmap, roadmapEstimate } from './roadmap.js';
+import {
+ milestoneRoadmap,
+ roadmapEstimate,
+} from './roadmap.js';
import {
rigorLines,
rigorReport,