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(core): preserve complete startup list rows [C7]

Corey Olson6229b559b4a3
diff --git a/test/cli-startup-budget-fixture.js b/test/cli-startup-budget-fixture.js
index c07b03f5..a822c2cb 100644
--- a/test/cli-startup-budget-fixture.js
+++ b/test/cli-startup-budget-fixture.js
@@ -71,6 +71,7 @@ export async function assertStartupBudgets(t) {
try {
const code=resolve(import.meta.dirname,'../bin/pullboard.js');
const initial=boardDigest(db);
+ const expectedItems=JSON.parse(JSON.stringify(store.listItems({db,clock:store.systemClock})));
const samples={version:[],show:[],status:[],list:[]};
const childEnvironment={...process.env,PULLBOARD_HOME:join(root,'private-home'),PULLBOARD_MACHINE_HOME:join(root,'private-machine'),GIT_CONFIG_GLOBAL:'/dev/null',GIT_CONFIG_NOSYSTEM:'1'};
for(const name of ['PULLBOARD_RELAY_TOKEN','PULLBOARD_RELAY_KEY']) delete childEnvironment[name];
@@ -84,7 +85,10 @@ export async function assertStartupBudgets(t) {
assert.equal(data.version,1);
if(name==='show') assert.equal(data.item_id,4);
if(name==='status') assert.equal(data.stats.items.submitted,10);
- if(name==='list') assert.equal(data.items.length,1000);
+ if(name==='list') {
+ assert.equal(data.items.length,1000);
+ assert.deepEqual(data.items,expectedItems,'the complete list rows survive the startup optimization');
+ }
samples[name].push(milliseconds);
}
assert.equal(boardDigest(db),initial,'all persistent board rows remain unchanged');