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.

test(cli): cover review queue help [Q1,V15,N37]

Corey Olson83600ac21753
diff --git a/test/cli-help.test.js b/test/cli-help.test.js
index 09665e7d..975d66f5 100644
--- a/test/cli-help.test.js
+++ b/test/cli-help.test.js
@@ -111,3 +111,15 @@ test('an unknown command names its closest match and where to see every command
assert.equal(help.status, 2);
assert.match(help.stderr, /closest match is "claim"/);
});
+
+test('next help exposes explicit build intent alongside review reservations [Q1,V15,N37]', () => {
+ const detail = run('help', 'next');
+ assert.equal(detail.status, 0, detail.stderr);
+ assert.match(detail.stdout, /^ pullboard next --build$/mu);
+ assert.ok(flagsFrom(detail.stdout).some((flag) => flag.startsWith('--build')));
+ assert.ok(flagsFrom(detail.stdout).some((flag) => flag.startsWith('--verify')));
+ assert.equal(run('next', '--help').stdout, detail.stdout);
+ const all = run('help', '--all');
+ assert.match(all.stdout, /pullboard next \[--wait <minutes>\]\s+offer an eligible review when reviews pile up, otherwise claim work/u);
+ assert.match(all.stdout, /pullboard next --build\s+claim a build explicitly, recording a skipped review offer/u);
+});