Repository navigation
[Spec 1963] VS Code alternative layout: Codev Cockpit - #1971
Merged
Merged
Conversation
…es → architects + Decisions → builders hierarchy
…ontacting CLI), pre-flight and tripwire
…ew fixes (config cache, db path, WorkView state, test deps)
…oundary, CJS esbuild options, status tokens, viewsWelcome)
…old; Phase 9 outcome recorded
…path and network sandbox The 2026-11-24 incident: the ide-server mode's first run wrote codev.towerPort under --user-data-dir, which a VS Code server ignores, so the extension host used :4100, the owner's Tower (about 9,100 requests over 25 minutes, all refused 401). The tripwire detected it within a second but only wrote a marker and exited; the run went on. - tripwire: on a hit, write the marker, SIGSTOP the whole harness tree (rescanning until no new process appears), SIGKILL it, then report what it killed. A pid file counts only while its pid's command carries the file's markers; CLI pid files now record one. Sampling every 1 s. - ide-server settings: written to <server-data-dir>/data/Machine/settings.json. Gate 5 confirms that from the server's own bundle (out/server-main.js) and refuses a server where it cannot, and refuses VSCODE_PORTABLE/VSCODE_APPDATA in the server env. No --user-data-dir is passed. - prevention (sandbox.mjs): the ide-server runs under sandbox-exec with a profile that denies outbound TCP to :4100 on any host. A launch canary, a throwaway port the profile also denies, must be refused inside the sandbox before the server starts. - selftest takes sections; tripwire/settings/sandbox use throwaway listeners only: 17/17.
…ed until the owner rules
Contributor
Author
|
Owner rulings at the PR gate (2026-11-24, relayed by the architect). The gate itself is not approved yet.
|
…at the PR gate The no-workspace criterion, the scope's window list and both footprint lines now state that a dormant window (the marketplace extension in plain VS Code, in a folder with no Codev project) does not connect and shows Not connected to Tower, not Tower with the fleet (owner's ruling of 2026-11-24, recorded on PR #1971).
waleedkadous
force-pushed
the
builder/spir-1963
branch
from
November 24, 2026 18:28
c79b1c7 to
513bbd9
Compare
… worker cap (#1965) One conflict, packages/sdk/src/tower-client.ts: both sides added names to the same codev-types import; resolved as the union.
…ay blank Opens VS Code's own Markdown preview, the Codev contextual panel, the Codev Markdown preview and Work, and for each records a screenshot, a probe of the webview's content frame (root, text, scripts, stylesheets, resource timings), and the console messages, page errors and webview requests with their outcome. Harness only; no extension change.
…or after the trust step 1.128 opens the Workspace Trust editor as a modal (workbench.editor.useModal defaults to "some") that Escape leaves up; on a fresh browser profile it took the click on the Cockpit button. ensureTrusted now closes it with its own Close action. Harness only.
…odev-ide#67) Codev IDE 1.138 pins a webview host page that cannot deliver a webview's resources (DataCloneError in its service worker), so a panel that loads its code by URL stays blank there. Owner ruling ide-3: the Work and Decisions panels put their script and stylesheet in the document, on every VS Code version; no IDE detection, no URL fallback. - The bundle is read from dist/webview once per kind. One that cannot be read fails the open, naming the file; a restored panel is closed. - Policy: script-src and style-src are the nonce only (no 'unsafe-inline', no 'unsafe-eval', no source), img-src blob: http: https:, still no connect-src; localResourceRoots is empty. A style attribute parsed from markup (an aligned table column in a decision item) is now refused; React style props go through the CSSOM and still apply. - The text is escaped so it cannot end its element: "</script" and "<!--" as \x3C in the script (valid in strings and regexes, u flag included), "</style" as \3C in the stylesheet. - The bundles load nothing else by URL (no url(), @import, fonts, imports or workers); dev source maps are now inline. - Tests: the template (inline form, policy, nonce on both elements, escaping of a hostile bundle with its meaning kept), both panels (inline, no roots, read once, unreadable bundle), and both real bundles booted in their escaped form. The contextual panel, the Markdown preview and the backlog search are unchanged and stay blank on 1.138 until the IDE is fixed.
Since Phase 9 the Cockpit arranges the window into three editor groups by default (codev.cockpit.autoArrange), and every group has an active tab, so the first .tab.active in the page was the left group's. The decisions script, last run before Phase 9, timed out waiting for its own tab there.
…ndle tests on the production build - style-src is 'unsafe-inline' alone: the reviewed policy minus cspSource. A nonce in the directive would switch 'unsafe-inline' off and refuse the style attributes a decision item's Markdown carries (aligned table columns, raw HTML), which the dashboard renders. The inline <style> drops its unused nonce; script-src stays the nonce only. - The Work and Decisions bundle tests run every check on both builds, development and production (minified, what the vsix ships), each booted in the escaped form the panel inlines.
…ript's parser The \x3C rewrite keeps a script's meaning only inside a string, a regex literal, an untagged template or a comment. In code it is a syntax error (caught by the bundle boot tests), and in a tagged template it silently changes what the tag reads from .raw. escape-contexts.ts parses a script with TypeScript (already a dev dependency) and classifies each rewritten position. Both real bundles, development and production, must have only safe ones (production today: Work 5, Decisions 6, all strings and regexes). Self-tests show it flags String.raw`</script>`, a tag before a substitution, `0 </script/` and `a<!--b`. The template comment names the limit. Codex second opinion via the architect.
…its for the result reveal (last run in increment 1) typed README.md into Go to File and pressed Enter after 300 ms. In the window the Cockpit now arranges by default, with Work and Decisions loading, the search had not returned yet, nothing opened, and the check timed out waiting for README. quickOpenFile (Phase 9) waits for Quick Open to offer the exact file, chooses it, and waits for its tab in the focused group.
…st page lacks (cluesmith/codev-ide#67) Codev IDE 1.138 serves an older webview host page (ef65ac1b) whose default styles are unlayered and differ from VS Code 1.147's and 1.128's. It colours `code` with the theme's preformatted foreground and no background; High Contrast Light pairs a white foreground with a dark blue background, so the Decisions file path was white on a white page (contrast 1, verify decisions scenario 18 on 1.138). The default-styles blocks of the three host pages, diffed rule by rule (ef65ac1b against 1.147 and 1.128). Each differing rule, and what was done: Handled: the panels render the element, so vscode-theme.css now states 1.147's value: - body: overscroll-behavior-x: none (unset on the old page), in the panels' body rule. - video: max-width/max-height 100% (the old page sizes only img); an item's Markdown may hold one. - code: font-family, colour, background, padding, radius (the old page sets only the colour); the file path, the notices and Markdown. - a code: preformatted colour and underline (the old page's `a, a code` gives the link colour); Markdown links. The same specificity as that rule, and later, so it wins there. - pre code: transparent background, no padding (absent on the old page); Markdown code blocks. - p > a: text-decoration from the link-underline setting (absent on the old page); Markdown links. - kbd, and the old page's `.vscode-light kbd`: keybinding-label colours, border and shadow, in place of fixed greys; raw <kbd> in an item's Markdown. Stated as `:root kbd`, which ties `.vscode-light kbd` and comes later. Did not apply: none. Every differing rule targets an element the panels can render. The rules that do not differ (html, the body's other properties, img, a, a:hover, the focus outline, blockquote, scrollbars, find highlights) need nothing. On the old page they are unlayered, but no panel rule loses to one of them. Measured in headless Chromium with the real production stylesheets, under each host page's defaults, in light and dark, over every element type the panels render: before, the old page differed from 1.147 in 34 computed properties on Decisions; after, 0 on the old page and 0 on 1.128, and 1.147 itself renders exactly as before. 1.128's one change is the underline on code in a Markdown link, which its own defaults left off. Tests: workspace-views-theme.test.ts states each rule as 1.147 does (one test per rule), the body property, the specificity against the old page's competing rules, and that the option word keeps its own colours.
…ds after the reload After the reload Decisions is restored in a background tab, and the window arranges again only once its first connection attempt has ended, which brings Decisions on screen to read. The check counted its cards as soon as the frame existed: on Codev IDE 1.138 that was before the arrange, so it read 0 cards before Tower went down, then 2 while down and 2 after (verify work, scenario 19, on 7cdc247). It now waits, bounded, for the cards, re-finding the frame on each try.
verification.md now lists only the final runs, pinned to evidence commit 8b7def1: 1.147.0 serve-web 115/115, fenced 1.138.0 53/56 (the three webviews the IDE leaves blank, cluesmith/codev-ide#67), fenced 1.128.0 50/50. The scripts that render a panel ran on d31df3a (vsix built at 7cdc247); the nine that render none on 35334ef (vsix built at 4ab7ed1). Between the two heads the vsix inputs changed only in vscode-theme.css and workspace-views-theme.test.ts; the index gives the diff stat. The review records the final runs and their stops (serve-web's update check, the 1.138 contrast finding, the harness race), the host-defaults deviation with its handled list, that earlier counts were per phase, the final unit counts and the untested ranges. arch.md and lessons-learned.md gain the inline bundle and the host page's defaults.
waleedkadous
marked this pull request as ready for review
November 25, 2026 00:24
waleedkadous
added a commit
that referenced
this pull request
Nov 25, 2026
waleedkadous
added a commit
that referenced
this pull request
Nov 25, 2026
waleedkadous
added a commit
that referenced
this pull request
Nov 25, 2026
…requestTimeoutMs PR #1971 (merged from main) added requestBinary() with the module's fixed REQUEST_TIMEOUT_MS. The requestTimeoutMs option this PR added is the timeout for every request, and the other three request paths use it. The default is unchanged (10 000 ms), so only a client that sets the option sees a difference.
waleedkadous
added a commit
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan phases 1–9 of 9 and the review are done, and so is the PR review phase: owner ruling ide-3 and the final runs. The
prgate is pending: the owner's review.Final head
a5295bc8b:verification.md(evidence commit8b7def1ed):d31df3a84(vsix built at7cdc24716); the nine that render none ran on35334efbf(vsix built at4ab7ed1d4). In each pair, the commit between build and head changes only the harness. Between the two heads the vsix inputs changed only invscode-theme.cssand its test, anda5295bc8badds only documents.Since the previous final head,
513bbd910, the branch gained:b164e4898(named architects, [Spec 1940] Stage 1: named architects across workspaces on one Tower #1957; the suite worker cap, Fix #1956: cap packages/codev vitest at 3 workers (singleFork was dead since Vitest 4) #1965) and92a5ae48d(porch failed-check logs, [Bugfix #1853] porch: save failed check output to a log, print its last lines #1964);1342db405,6cf6b5b57,4ab7ed1d4);7cdc24716);8cad56b2d,10f4d9cce,ce4e75afe,35334efbf,d31df3a84), and the documents.Closes #1963
Spec:
codev/specs/1963-vscode-alternative-layout-seco.md. Plan:codev/plans/1963-vscode-alternative-layout-seco.md. Review:codev/reviews/1963-vscode-alternative-layout-seco.md.Screenshots
The rendered evidence (screenshots, results JSON, the layout spike's screenshots) lives on the branch
evidence/spir-1963, which is never merged. Every check of the final runs is indexed, with its pass count and a permalink, inverification.md. The shots below are from those runs on VS Code 1.147.0 unless they say otherwise.The Cockpit button, directly below Codev (
verify render), and the arranged Cockpit (verify arrange):mainon the left, Work over Decisions on the right with a pending decision, in Light Modern:The same split in Dark Modern, and the Cockpit hierarchy (two, one and no builders, and the Dormant group) in the light theme:
The Work panel (
verify work) and the Decisions panel (verify decisions):The same split on Codev IDE 1.138.0 and on VS Code Server 1.128.0, both fenced:
The hierarchy in the dark theme, and every other screenshot, are linked from
verification.md. The per-phase sections below describe each phase's own run and link it at51e2bbf17, in the evidence branch's history; their counts were per phase, and the final runs replace them.Why it was opened early
At the end of Phase 4 (
cockpit_hierarchy,18f10db34),porch done's localtestscheck failed without naming a test. Under the builder's standing order, the branch was pushed and this draft opened, so CI could name the failure.43f34f0f, andbugfix-1267-launch-loop.test.tspassed alone, 7/7.porch done. It was removed straight afterwards.porch doneruns passed the full local suite with no skip.Done so far
verification_harness: an isolated Tower plus serve-web harness, with pre-flight gates and a tripwire.fleet_overviews: the fleet cache keeps each active workspace's overview.architect_tree_builder: a reusable, workspace-scopedArchitectTreeBuilderbehind the Agents view.cockpit_hierarchy: the Codev Cockpit activity-bar button and its tree, Tower → workspaces → architects → builders.cockpit_actions: the row actions.views/cockpit-menu-map.ts) and its parity test fail on any source-view menu entry the Cockpit does not place.workspace_views_package: a new private package,@cluesmith/codev-workspace-views(packages/workspace-views).useDecisionspolling hook and the issue-key grammar, each once.verification-phase6/).decisions_panel: the Decisions panel in VS Code, and a Decisions entry under every active workspace in the Cockpit. Details below.work_panel: the Work panel in VS Code, fed from the overview cache. Increment 2 (the Cockpit's Decisions entries beside both panels) is verified rendered. Details below.arrange_cockpit: Arrange Cockpit, themainarchitect | (Work over Decisions), on demand and on the first Cockpit show per window. Increment 3 is verified rendered. Details below.Deviations and behaviour changes for the owner
marketplace extension in plain VS Code, in a folder without Codev. The spec's no-workspace
criterion asks every workspace's rows to navigate there. In this window the Cockpit shows Not
connected to Tower instead, with the reason and an Open Folder action, and never connects.
no Tower connection and no auto-start. Showing the fleet would need a connection.
vscode: IDE-mode foundation: dual-mode activation, workspace/IDE context keys, empty-window surfaces #1144 and is the owner's call. Neither is built.
ide-emptytier),which connects and shows the fleet.
cockpit-dormant-1144.test.tsproves no Tower client, SSE, auto-start or fetch whilethe Cockpit is shown in a dormant window.
badge now repaints on every connection-state change. During an outage it clears, rather than
keeping the last count as it did before. This applies to the existing Codev button as well as the
Cockpit's. Before, nothing repainted it on a disconnect, because the overview cache keeps its data
and emits nothing then.
ctrl+alt+n/ctrl+alt+p): while the Cockpit is visible and the Agents viewis not, the cycle runs in the Cockpit's visible order for this window's workspace (architects and
their builders). Otherwise the existing Agents order applies unchanged (architect ruling (b)). A
Cockpit with no acting rows, such as in a builder-worktree window, also keeps the Agents order.
codev.spawnBuilderandcodev.newShellgain icons ($(rocket),$(terminal-new)), becauseinline actions need one. Their titles are unchanged.
codev.openDevUrlopens directly only for a non-empty string argument. A row argument nowfalls through to the URL picker instead of being treated as a URL.
extension.tstocommands/command-args.ts, so a testcan drive each handler with a Cockpit row.
extractIssueIdalso now checks that the id is astring.
Adjacent fix: Spawn Builder spawned in the wrong directory
Found by the harness's recording stub, and fixed in this PR because it is small and the Cockpit
offers the same command.
codev.spawnBuilderranafx spawnwith nocwd, so in the extension host's owndirectory.
afx spawnresolves its workspace from its cwd.project Tower was started in.
Cockpit.
detectWorkspacePath(), the parentworkspace in a builder-worktree window), the cwd Run Worktree Setup and Approve Gate already use.
Without a workspace it shows an error instead of prompting.
spawn-builder-not-found.test.tsasserts the cwd, and that the command refuses withouta workspace.
Note on Approve Gate
The plan says the Cockpit's Approve Gate is "verified through the stubs as
porch approve". Since#1494 the button relays the decision to the builder's spawning architect through Tower's
/api/send, and runsporch approveitself only when no architect is live. The harness checkasserts what happens, for #101 (spawned by
main, which is live): onePOST /api/send, no porchcall, and the "sent … to main" notification. This is unchanged behaviour from the Agents row.
Phase 6: the shared package's host contract
WorkViewHostandDecisionsViewHost, rather than the plan's singleWorkspaceViewsHost. Each view takes only what it uses.overviewis a value (OverviewState | null, where null means loading), not a subscription. Each host owns its own polling.openBuildertakes the builder, not an id, because the dashboard's tab lookup needs more than the id.showImagetakes{src, alt}.openExternalis optional on both views. Without it (the dashboard) links stay native anchors, as before. With it (VS Code) they go to the host, which opens only http(s). This also stops VS Code's webview script opening a clicked anchor itself, which would bypass the allowlist.styles.cssis a--codev-wv-*token whose default is the dashboard's value. Tests forbid literal colours and literal pixel font sizes./api/statearchitect count. The spec accepts the live count for VS Code only.Phase 7: the Decisions panel
What it is.
WebviewPanelSerializer, withonWebviewPanel:codev.decisions).Every Tower call is the extension host's.
requestId; the host answers them through new SDK methods:getDecisions,ruleDecision,getDecisionImage.connect-srcin its CSP:default-src 'none', nonce-only scripts,img-srclimited to the bundle,blob:and http(s).realpath, thenpath.relative), withpath.win32table tests.TowerClientthrough the panel and asserts that the key, the Tower URL and the port appear in no message posted to the webview.Polling has one owner, the shared hook (2 s). The host relays the panel's own visibility. A retained, hidden webview still reports its page as visible, so without the relay a hidden panel would keep polling.
Theme.
vscode-theme.cssmaps all 28--codev-wv-*tokens to VS Code theme variables. A test holds it to the package's token list.Rendered verification (isolated harness, VS Code 1.147.0 serve-web,
verify decisions): 15/15, evidence inverification-phase7/.blob:URL: image bytes survivewebview.postMessage. The https image renders. A remote image answered 404 and an image outside the workspace each show Image not loaded, with the browser's or Tower's reason. The full-size view opens; Escape and Close close itmain. The notice is held: the fixture architect is a shell, not an agentafx decisions initgives 0 open, then an added item appearsBugs in this phase's own code found by the harness and the reviews, all fixed here:
code, and the option word paints its own background. It now setscolor: inherit, which is a no-op in the dashboard.Review: Codex REQUEST_CHANGES, then APPROVE; Claude APPROVE twice. The responses are in
1963-decisions_panel-iter1-rebuttals.md.Windows. The containment tests also run on real Windows paths, with a directory junction escaping the workspace. The workflow's unit job gained a step for them.
/etc/hosts, which does not exist on Windows, as its "outside" file.5d15ce048: the containment step passes on Node 22 and 24, 39/39.Small adjacent change:
.vscodeignoredrops**/tsconfig.*.json. The vsix had been shippingtsconfig.webview.json.Phase 8: the Work panel
What it is.
onWebviewPanel:codev.work).Data. The host pushes the
OverviewCacheand the connection state. The webview makes no Tower call (scenario 22: 256 browser requests, none to the Tower port, none keyed).Actions, each mapped in the host:
openBuilderByRoleOrId, only for a builder in the current overviewcodev.newShellPOST /api/overview/refresh, then the cache's own readA builder decision:
single-panel.tsnow holds what Work and Decisions share: the single instance, the serializer, reveal, observable visibility, dropping posts after close, the http(s) gate, and logging a handler that rejects.DecisionsPanelsmoved onto it, with its tests unchanged. Phase 9 needs both panels to take a view column, and this gives it one place to add that.Wiring test:
cockpit-wiring.test.tspinned the refresh gate's view list. It now includes the Work panel; the guarded behaviour is unchanged.What rendering found, all fixed here (VS Code only unless said):
--codev-wv-font-size-*scale (defaults the dashboard's px), and VS Code maps it to--vscode-font-size. Both panel headings are one size.decisions-notice--no-filemodifier lets VS Code draw it as plain description text; the dashboard keeps its look.Adjacent fix, shared view (the dashboard changes too):
The dashboard is otherwise unchanged (scenario 20):
verify dashboardran on the pre-change build, and its snapshot was kept.packages/codevwas then rebuilt with the type scale and the loading fix.verification-phase8/dashboard/).Rendered verification (
verify work14/14,verify decisions15/15 re-run after the shared-base move,verify dashboard6/6). Evidence is inverification-phase8/:.attention-row-ageand.recently-closed-checkat 4.3Review: Codex REQUEST_CHANGES (the loading state above), then APPROVE. Claude APPROVE twice. I took its notes: a rejected webview handler is logged, an artifact refusal after close shows no toast, and an unused class is gone. Responses are in
1963-work_panel-iter1-rebuttals.md.For the owner:
Phase 9: Arrange Cockpit
What it is.
mainarchitect's terminal on the left, Work over Decisions on the right, each the active tab in its group.codev.cockpit.autoArrange, default on). It waits for the window's first connection attempt, so a reload with the Cockpit showing still finds the architect.main: throughopenResolvedArchitect(vscode: open-architect silently substitutes architects[0] for a non-live 'main', strips the disambiguating label, and captures the text-injection path #1497). A non-livemaingets the existing warning, nothing is substituted, and the right side is still arranged. This path opens the architect in the editor area even withcodev.terminalPosition: panel; every other path keeps honouring the setting.How (
cockpit/arrange.ts, on the layout spike). Moving a group's only editor closes the group and renumbers the groups after it, so the architect, Work and Decisions are placed in column order beforevscode.setEditorLayoutis applied. With no architect placed and only the Cockpit's panels in the first group, an empty group is opened to their left first, so the left column stays; the panels are counted by tab, so a restored tab not yet revived counts too (from the claude review, iteration 2). Every move is awaited against the tab model with a 5 s bound; a move that does not happen stops the arrange with an error naming it, and arrange never acts on an editor it has not confirmed.What rendering found, fixed here:
WebviewPanel.reveal(column)into another group lands the panel there as a preview tab (1.147.0'srevealWebviewdoes not pin;createWebviewPaneldoes). The next file opened in that group would have replaced it, closing the panel and its draft. Arrange now keeps a panel left as a preview (workbench.action.keepEditor, with the panel focused and confirmed active first).show()now opens the live panel in the restored tab's group (or the arrange placement) and then closes the restored tab, so there is only ever one. This also fixes Open Work / Open Decisions after a reload.Other adjacent changes:
readArchitectRosteris shared by Open Architect Terminal and arrange (moved out of the command, unchanged behaviour).views/cockpit-menu-map.ts) has a fifth record kind, for menu entries that are the Cockpit's own (the title-bar Arrange Cockpit).Rendered in the review phase (at the architect's direction): the namesake refusal, the automatic arrange with Tower down, and the empty-left-column branch had been unit-tested only. Each now has a
verify arrangecheck, in the last three rows below. The waited-out closing namesake stays unit-tested: it is a race inside the extension host that the UI cannot time.Screenshot privacy (review phase). VS Code opens a local shell in a visible terminal panel by itself. The harness HOME had no bash profile, so macOS's prompt
host:dir user$showed in 12 committed screenshots. The architect ruled:startnow writesPS1='$ 'into the harness HOME.verifyrun ends with a check that OCRs its screenshots (tesseract) and fails on such a prompt. Over the 110 previously committed shots, it flagged exactly those 12.verification-phase9/are gone with the rest of that folder's refresh.verification-increment1/(actions-*,reconnect-*) were replaced by runs on the final code.Rendered verification (isolated harness, VS Code 1.147.0 serve-web):
verify arrange19/19, the prompt check included,profile-seed1/1,profile-existing1/1 (at2323785a6; the review phase's commits do not touch the activity bar). Evidence inverification-phase9/:main| (Work over Decisions), each active in its groupmainnot live (scenario 14)"codev.cockpit.autoArrange": falseto user settings; a reload with the Cockpit showing does not arrange; the command still doeshost:dir user$promptNote on the layout spike
The layout spike, recorded in the plan, ran on VS Code 1.147.0. The extension's engine floor is 1.128.
VS Code 1.138.0 and 1.128.0
The integration review asked for the split to be verified on the owner's Codev IDE server (1.138.0) and on the engine floor (1.128). Both ran fenced, on the final code: the scripts that render the panels (
arrange,work,decisions, and on 1.138.0 thewebviewsdiagnostic).arrangeworkdecisionswebviews50cad256)fc3def67)"Fenced": the server runs inside the harness's
sandbox-execprofile, which refuses outbound TCP to the owner's Tower port, and a canary proves the profile at every start. The tripwire watched every session and stayed clean, each server reported its commit before and after each session, and no browser request reached the owner's port.Codev IDE 1.138.0 blanks every webview that loads its files by URL (cluesmith/codev-ide#67). Its
product.jsonpinswebviewContentExternalBaseUrlTemplateto an older build's webview host page (ef65ac1b), whose service worker cannot hand a webview's resources back (DataCloneError). A panel's HTML arrives; every file it loads by URL hangs. This is a defect in the IDE's packaging, and it also blanks the webviews already onmain.single-panel.tsreadsdist/webview/<bundle>.jsand.cssonce per kind and fails loudly, naming the file, if either cannot be read.localResourceRoots: [].default-src 'none'; script-src 'nonce-…'; style-src 'unsafe-inline'; img-src blob: http: https:, with noconnect-srcand nocspSource.style-srctakes no nonce, because a nonce would switch'unsafe-inline'off and refuse the style attributes a decision item's Markdown keeps (aligned table columns), which the dashboard renders.</script,<!--and</style). A test parses both production bundles with TypeScript's scanner and fails if a rewrite lands anywhere but a string, regex, untagged template or comment.webviewsfailures, and render once the IDE is fixed.decisionsrun failed its theme check: in High Contrast Light the Decisions file path was white on white. That page givescodethe theme's preformatted foreground (white there) without the dark blue background 1.128 and 1.147 pair with it, and its defaults are unlayered, where theirs sit in@layer vscode-default. At the architect's direction (7cdc24716), the panels' stylesheet now states 1.147's value for every default that differs on that page, for every element the panels render:code,a code,pre code,p > a,kbd(with the old page's.vscode-light kbd),video, and the body'soverscroll-behavior-x. None of the differing rules was left out. Measured in headless Chromium, the panels' computed styles now match 1.147's under the old page's defaults and under 1.128's, and 1.147 renders exactly as before. Each rule has a theme test.The first attempt: the tripwire incident
codev-ide-serverdirectly on harness ports. It was that mode's first real run.codev.towerPortunder--user-data-dir. A VS Code server ignores that flag and reads<server-data-dir>/data/Machine/settings.json. So the extension host used port 4100, the owner's Tower./api/overview,/api/events,/api/worktree-config,/api/activity-hooksand/workspace/<enc>/api/state, plus about 1,500 POST/api/workspace/<enc>/activate;644a5eb49), with self-tests on throwaway listeners only (selftest tripwire settings sandbox: 17/17; no IDE server launched):sandbox-execprofile that denies outbound TCP to :4100, so the connect itself fails. A launch canary on a throwaway port proves the profile applies.Rendered verification (increment 1, Phase 5, isolated harness)
The rendered verification ran in the isolated harness: VS Code 1.147.0 serve-web, its own Tower on
:18764, recording stubs for
afx/porch/codev, and a tripwire on :4100. The results andscreenshots are in
verification-increment1/on the evidence branch (browse).Increment 1 ran 43 checks, 0 failed. In the review phase,
actionsandreconnectran again on that phase's code, and their results and screenshots replaced the originals:actions28/28,reconnect4/4, each count including the new prompt check. The originals showed the machine's shell prompt, as described in Phase 9's privacy note. The other four scripts' files are from increment 1. The folder's README lists which files are which.renderorigin/main. The hierarchy with N=2, 1 and 0 builders across three workspaces. Dormant (1). Dark theme, then a live switch to lightrevealwindowsrequestsactionsreconnectOn the final code (
35334efbf, VS Code 1.147.0):render6/6,reveal2/2,windows4/4,requests5/5,actions28/28,reconnect4/4, each count including the prompt check.Request count (spec scenario 21), from the final run (
35334efbf). Each layout is asserted onscreen before it is measured, in a freshly restarted VS Code server. Each count covers a 60 s idle
window, then a 15 s burst: a builder gate change and a
codev-config-updated. Every row but theDecisions one is the same as in increment 1.
GET /api/workspaces(idle / burst)GET /api/overviewalphaGET /api/overviewbeta, gamma (each)GET /api/worktree-configGET /api/activity-hooksGET /api/workspaces/:ws/status(Workspace view)GET /workspace/<alpha>/api/decisions(the Decisions panel)getWorktreeConfig, on the config change.getWorktreeConfignever runs on a fleet tick.Flaky tests
Two pre-existing Windows tests are intermittent on Node 24, in run 45397300019. They are tracked in issue #1973 (pre-existing Windows test flakes, filed by the architect). This branch changes nothing in packages/codev except
issue-id-parity.test.ts. Both are left running.'npm-style shim': spawns, forwards a native ?folder path, and stops with nothing left runningpackages/codev/src/agent-farm/__tests__/ide-server-stub.windows.test.tsresumes the spawn-pinned session after an unnatural exit, with the nudge, instead of replaying the promptpackages/codev/src/agent-farm/__tests__/pir-1233-session-launch-loop.test.tsTests
apps/vscodeunit suite on the final code: 134 files, 1981 passed, 1 skipped. Ruling ide-3 added the inline-bundle tests (the escape, checked with TypeScript's parser on both production bundles; the policy; a bundle that cannot be read), and7cdc24716a theme test per restated default. Phase 9 adds the arrange tests (a fake editor area that closes empty groups and renumbers, merges on the layout call, and opens a revealed panel as a preview), the auto-arrange and notice tests, the terminal-position override tests, and the restored-tab tests for both panels. Phase 8 added the Work panel host tests (open/reveal/restore, the refresh gate, the connection-state table, every action, real-filesystem containment, no key in any message), the WorkApp jsdom tests, a booted-bundle smoke test, and the type-scale and no-file theme tests. Phase 7 added:packages/workspace-views: 197 tests.packages/sdk: 431 tests.apps/web: 38 files, 462 passed, 1 skipped. Locally they needNODE_OPTIONS=--no-experimental-webstorage, because Node 26's experimentallocalStorageshadows jsdom's; CI's Node 20 does not.The
vscode-testElectron suite (apps/vscode/src/test/) was not run.The spec's "full
apps/vscodesuites" criterion is met by the vitest suite (architect ruling).Type-check is clean for the host and webview configs. Lint is clean, apart from two existing
curlywarnings inissue-id.test.ts.The harness self-test passes: 24 cases, including 7 cases for the guarded removal of the
fixture directory.