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
test(cockpit): retain exact current proof and pane oracles [N26]
Corey Olsonc395405ba9e4
diff --git a/test/cockpit/activity.test.js b/test/cockpit/activity.test.jsindex 3e7fd96e..eaef4f27 100644--- a/test/cockpit/activity.test.js+++ b/test/cockpit/activity.test.js@@ -208,7 +208,7 @@ test('the activity tab draws the lifecycle from the declaration, as the README dconst esc = (text) => text.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>').replaceAll('"', '"').replaceAll("'", ''');assert.deepEqual(boxes.map((entry) => entry.state), MACHINE.states.map((state) => state.id), 'a box for every declared state');for (const state of MACHINE.states) assert.ok(boxes.find((entry) => entry.state === state.id).title.startsWith(esc(`${state.id}: ${state.means}`)), `${state.id} says what it means`);- assert.match(boxes.find((entry) => entry.state === 'verified').title, /Every way in checks:\n {2}the caller's checkout contains the submitted commit\n {2}the caller did not build it/);+ assert.match(boxes.find((entry) => entry.state === 'verified').title, /Every way in checks:\n {2}the caller's checkout contains the submitted commit\n {2}the decision’s verifier did not build it, and its agent session did not build or submit it under any seat/);assert.deepEqual(Object.fromEntries(boxes.map((entry) => [entry.state, entry.count])), { open: 2, claimed: 1, submitted: 0, verified: 1, withdrawn: 4 });assert.equal(sentBack, '1 sent back');assert.deepEqual(boxes.filter((entry) => entry.double).map((entry) => entry.state), MACHINE.states.filter((state) => state.final).map((state) => state.id), 'a final state has a double border');@@ -243,6 +243,7 @@ test('the activity tab draws the lifecycle from the declaration, as the README d'open>claimed': 'claim 6','claimed>open': 'release · lapse · escalate · refreeze (none yet)','claimed>submitted': 'submit 3',+ 'claimed>verified': 'submit-merge (none yet)','open>submitted': 'intake (none yet)','submitted>verified': 'accept 1','submitted>open': 'reject 1',diff --git a/test/cockpit/detail.test.js b/test/cockpit/detail.test.jsindex 86ccd284..c37532a6 100644--- a/test/cockpit/detail.test.js+++ b/test/cockpit/detail.test.js@@ -116,7 +116,7 @@ test('opening an item loads its detail on demand [N26,A2]', { timeout: 150_000 }check: ['true', 'green'],brief: 'Keep the greeting short.',verdicts: [['REJECT', 'the first greeting needs a correction'], ['ACCEPT', 'the page shows it']],- moves: ['add', 'claim', 'proof-run', 'submit', 'reject', 'claim', 'proof-run', 'submit', 'accept'],+ moves: ['add', 'claim', 'proof-run', 'proof-run', 'submit', 'reject', 'claim', 'proof-run', 'proof-run', 'submit', 'proof-run', 'accept'],facts: ['The corrected greeting renders offline.'],}, 'the detail carries what the summary leaves out');assert.deepEqual(itemReads(await chrome.stable('window.__pbReads')), ['items?q=zeppelin', 'items/2', 'items/1']);diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.jsindex b840921c..7f64322d 100644--- a/test/cockpit/roadmap.test.js+++ b/test/cockpit/roadmap.test.js@@ -234,7 +234,7 @@ test('the roadmap reads every item as the Items tab does, opens each one, anotheconst bar = await tabBar(chrome);for (const layout of bar.layouts) {const place = `${width} with ${layout.on} picked`;- assert.equal(layout.tabs.length, 7, `${place}: seven tabs including Stats`);+ assert.equal(layout.tabs.length, 7, `${place}: seven tabs including Home`);for (const tab of layout.tabs) assert.ok(tab.labelLeft >= tab.left + 2 && tab.labelRight <= tab.right - 2, `${place}: ${tab.tab}'s label sits inside its highlight: ${JSON.stringify(tab)}`);layout.tabs.forEach((tab, n) => { if (n) assert.ok(tab.left >= layout.tabs[n - 1].right - 0.5, `${place}: ${tab.tab} starts after the tab before it ends`); });assert.ok(layout.tabs[0].left >= layout.bar[0] - 0.5 && layout.tabs.at(-1).right <= layout.bar[1] + 0.5 && layout.bar[1] <= bar.client, `${place}: the tab bar fits on screen: ${JSON.stringify(layout)}`);diff --git a/test/cockpit/stats.test.js b/test/cockpit/stats.test.jsindex 960d7727..a9c95550 100644--- a/test/cockpit/stats.test.js+++ b/test/cockpit/stats.test.js@@ -147,8 +147,8 @@ test('[V2,N26] stats counts agree in number', { timeout: 90_000 }, async () => {await chrome.waitFor("!!data?.project?.proofStats && document.querySelector('#proof-stats-summary')");await pickProject(chrome, `document.querySelector('[data-root=${JSON.stringify(alpha.repo)}]')`);await chrome.waitFor(`data?.project?.root === ${JSON.stringify(alpha.repo)} && !!document.querySelector('#proof-stats-summary')`);- await press(chrome, "document.querySelector('[data-tab=stats]')");- await chrome.waitFor("view.tab === 'stats'");+ await press(chrome, "document.querySelector('[data-tab=items]')");+ await chrome.waitFor("view.tab === 'items'");await press(chrome, "document.querySelector('#proof-stats-summary')");const detail = await chrome.stable("document.querySelector('#proof-stats-full').textContent");const count = await chrome.stable("document.querySelector('[data-stat=agentCount]').textContent");@@ -186,8 +186,8 @@ test('the stats card folds from its summary line [N26]', {try {chrome = await openSnapshotChrome(executable, view.link.href, profile);await chrome.waitFor("!!data?.project?.proofStats && document.querySelector('#proof-stats-summary')");- await press(chrome, "document.querySelector('[data-tab=stats]')");- await chrome.waitFor("view.tab === 'stats'");+ await press(chrome, "document.querySelector('[data-tab=items]')");+ await chrome.waitFor("view.tab === 'items'");await chrome.stable(`(() => {window.__statsTouchTargets = [];document.addEventListener('pointerdown', event => {