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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(roadmap): print equal estimate bounds once [N26]
Corey Olson9d45450fba8d
diff --git a/src/cli.js b/src/cli.jsindex d36847a6..42cae954 100644--- a/src/cli.js+++ b/src/cli.js@@ -2392,8 +2392,9 @@ function readCommands(io, { first, second, rest, values }) {io.say(`${milestone.name}: ${milestone.landed}/${milestone.total} landed${when}`);if (!milestone.shipped) {const summary = milestone.summary;- const estimate = summary.estimate- ? `; about ${summary.estimate.low} to ${summary.estimate.high} h at today's pace.` : '; estimate unavailable.';+ const bounds = summary.estimate;+ const hours = bounds && (bounds.low === bounds.high ? bounds.low : `${bounds.low} to ${bounds.high}`);+ const estimate = bounds ? `; about ${hours} h at today's pace.` : '; estimate unavailable.';io.say(` ${summary.left} left of ${summary.total}: ${summary.landed} landed, ${summary.landing} landing, ${summary.review} in review, ${summary.building} building, ${summary.waiting} waiting, ${summary.held} held${estimate}`);}if (milestone.note) io.say(` ${milestone.note}`);diff --git a/test/roadmap.test.js b/test/roadmap.test.jsindex cd33bb10..6917dd57 100644--- a/test/roadmap.test.js+++ b/test/roadmap.test.js@@ -144,3 +144,28 @@ test('[N26] roadmap holds and unavailable scoped references partition without leassert.equal(expired.held, 2, 'the expired builder is held instead of waiting');assert.equal(expired.waiting, 1);});+++test('[N26] an estimate with equal bounds prints one number', async t => {+ const box = fixture(t);+ const now = box.clock.now().getTime();+ // Equal six-hour and two-hour rates make the rounded decimal bounds equal.+ for (const hours of [...Array(8).fill(5.75), ...Array(4).fill(1)]) {+ box.at(now - hours * HOUR);+ box.item('landed');+ }+ box.at(now);+ const items = Array.from({ length: 5 }, () => box.item('waiting'));+ store.addMilestone(box.board, { agentId: 'coordinator', name: 'Estimate', items });+ assert.deepEqual((await box.run()).milestones[0].summary.estimate, { low: 2.5, high: 2.5 },+ 'JSON retains both equal bounds');+ const equal = await box.run(false);+ assert.match(equal, /; about 2\.5 h at today's pace\./u);+ assert.doesNotMatch(equal, /2\.5 to 2\.5/u);++ // Aging the older landings out of the long window separates the two rates.+ box.at(now + 0.5 * HOUR);+ assert.deepEqual((await box.run()).milestones[0].summary.estimate, { low: 2.5, high: 7.5 },+ 'JSON retains both different bounds');+ assert.match(await box.run(false), /; about 2\.5 to 7\.5 h at today's pace\./u);+});