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
chore(view): merge current main [H5,N26]
Corey Olson69cbca3fdcab
diff --cc test/cockpit.test.jsindex 7fb72600,7628dd9a..2c4329b0--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@@ -2547,9 -2550,8 +2550,10 @@@ test('real Chrome keeps the demo boardconst demo = project(box, 'phone-demo');const other = project(box, 'other-demo');box.run(demo.repo, 'add', 'web', 'Starter item', '--specs', 'G1', '--criterion', 'visible in the detail pane');+ const wrapTitle = 'word boundary test ' + 'abcdef0123456789'.repeat(12);+ box.run(demo.repo, 'add', 'web', wrapTitle, '--specs', 'G1', '--criterion', 'the activity title wraps without splitting words');box.run(demo.repo, 'shout', 'person', 'Should the phone demo ship?', '--decision');+ box.run(demo.web, 'shout', 'coordinator', 'Should this waiting ask span the full row?', '--decision');const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-phone-'));let chrome;@@@ -2593,15 -2595,13 +2597,17 @@@const snapshot = async () => JSON.parse(await chrome.evaluate(`JSON.stringify((() => {const visible=e=>{const s=getComputedStyle(e),r=e.getBoundingClientRect();return !e.disabled&&s.display!=='none'&&s.visibility!=='hidden'&&Number(s.opacity)!==0&&r.width>0&&r.height>0&&!e.closest('[hidden]')};const selector='button,a[href],input:not([type=hidden]),select,textarea,[role=button],[data-root],[data-tab],[data-go],[data-item],[data-state],[data-rows],[data-row],[data-release],[data-shout],[data-new],[data-code]';- const controls=[...new Set(document.querySelectorAll(selector))].filter(visible).map(e=>{const r=e.getBoundingClientRect();return {tag:e.tagName,id:e.id||'',text:(e.innerText||e.getAttribute('aria-label')||'').trim().slice(0,60),width:r.width,height:r.height}});+ const controls=[...new Set(document.querySelectorAll(selector))].filter(visible).map(e=>{const r=e.getBoundingClientRect();return {tag:e.tagName,id:e.id||'',text:(e.innerText||e.getAttribute('aria-label')||'').trim().slice(0,60),x:r.x,y:r.y,right:r.right,bottom:r.bottom,width:r.width,height:r.height}});+ const notice=document.querySelector('#console');+ const noticeBox=visible(notice)?notice.getBoundingClientRect():null;+ const toast=noticeBox?{x:noticeBox.x,y:noticeBox.y,right:noticeBox.right,bottom:noticeBox.bottom,visible:noticeBox.y>=0&¬iceBox.bottom<=innerHeight,+ overlaps:controls.filter(c=>c.x<noticeBox.right&&c.right>noticeBox.x&&c.y<noticeBox.bottom&&c.bottom>noticeBox.y).map(c=>c.id||c.text)}:null;- return {width:innerWidth,documentWidth:document.documentElement.scrollWidth,bodyWidth:document.body.scrollWidth,+ return {width:innerWidth,clientWidth:document.documentElement.clientWidth,documentWidth:document.documentElement.scrollWidth,bodyWidth:document.body.scrollWidth,projectList:visible(document.querySelector('#proj-list')),needs:visible(document.querySelector('#needs')),- detail:visible(document.querySelector('#detail')),controls};+ detail:visible(document.querySelector('#detail')),controls,toast};})())`));+ /** Check document and body overflow against the actual layout viewport, excluding its scrollbar. */+ const fitsViewport = (layout) => layout.documentWidth <= layout.clientWidth && layout.bodyWidth <= layout.clientWidth;/** Assert the current pane fits and all its controls remain touchable. */const checkLayout = async (width, place) => {const layout = await snapshot();@@@ -2639,27 -2637,32 +2645,53 @@@for (const tab of ['shouts', 'spec', 'doctrine', 'activity']) {await click(`[data-tab="${tab}"]`);await checkLayout(width, `${tab} tab`);+ if (tab === 'spec') {+ const chips = JSON.parse(await chrome.evaluate(`JSON.stringify([...document.querySelectorAll('#spec-chips button')].map(button => {+ const clone=button.cloneNode(true); clone.style.cssText += ';position:fixed;visibility:hidden;width:max-content;flex:none'; button.parentElement.append(clone);+ const naturalWidth=clone.getBoundingClientRect().width, actualWidth=button.getBoundingClientRect().width; clone.remove();+ return {text:button.textContent.trim(),actualWidth,naturalWidth};+ }))`));+ assert.ok(chips.length >= 2, `${width}: spec filters render as chips`);+ for (const chip of chips) assert.ok(Math.abs(chip.actualWidth - chip.naturalWidth) < 2, `${width}: ${chip.text} keeps its natural width: ${JSON.stringify(chip)}`);+ }+ if (tab === 'activity') {+ const wrap = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ const element=[...document.querySelectorAll('#activity .what')].find(node=>node.textContent===${JSON.stringify(wrapTitle)});+ if(!element) return null;+ const text=element.firstChild, ranges=(word)=>{const start=text.textContent.indexOf(word),range=document.createRange();range.setStart(text,start);range.setEnd(text,start+word.length);return [...range.getClientRects()].map(rect=>({x:rect.x,y:rect.y,width:rect.width}));};+ const lines=(rects)=>new Set(rects.map(rect=>Math.round(rect.y))).size;+ return {width:element.clientWidth,height:element.getBoundingClientRect().height,wordLines:lines(ranges('boundary')),tokenLines:lines(ranges('abcdef0123456789'.repeat(12)))};+ })())`));+ assert.ok(wrap, `${width}: the activity feed shows the long item title`);+ assert.equal(wrap.wordLines, 1, `${width}: a normal word stays together at a line boundary: ${JSON.stringify(wrap)}`);+ assert.ok(wrap.tokenLines > 1, `${width}: only the overflowing unbroken token splits: ${JSON.stringify(wrap)}`);+ }+ if (tab === 'shouts') {+ const asks = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ const waiting = document.querySelector('#decisions .ask.other');+ const waitingMeta = waiting?.querySelector('p:first-child');+ const waitingText = waiting?.querySelector('p:nth-child(2)');+ const answer = document.querySelector('#decisions .ask:not(.other)');+ const answerMeta = answer?.querySelector('p:first-child');+ const button = answer?.querySelector('button');+ const rect = e => { const r=e.getBoundingClientRect(); return {left:r.left,right:r.right,width:r.width,height:r.height}; };+ return {+ waitingIsNeedsYou: document.querySelector('#decisions').classList.contains('needs-you'),+ waitingHasNoButton: !!waiting && !waiting.querySelector('button'),+ waitingMeta: waitingMeta && rect(waitingMeta),+ waitingMetaLine: waitingMeta && parseFloat(getComputedStyle(waitingMeta).lineHeight),+ waitingAsk: waiting && rect(waiting), waitingText: waitingText && rect(waitingText),+ answerMeta: answerMeta && rect(answerMeta), button: button && rect(button),+ };+ })())`));+ assert.ok(asks.waitingIsNeedsYou && asks.waitingHasNoButton, `${width}: the waiting ask is shown in the Needs-you card without an answer button`);+ assert.ok(asks.waitingMeta.width > 0 && asks.waitingMeta.height <= asks.waitingMetaLine + 1,+ `${width}: waiting ask who/when stays on one line: ${JSON.stringify(asks)}`);+ assert.ok(asks.waitingText.width >= asks.waitingAsk.width - 24,+ `${width}: waiting ask text spans the row: ${JSON.stringify(asks)}`);+ assert.ok(asks.button.left > asks.answerMeta.right,+ `${width}: an answer button keeps its own grid column: ${JSON.stringify(asks)}`);+ }}await click('[data-tab="items"]');