Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
6aee22971This file is pinned to the selected release. Download the original to open it in your design tool.
# Harness App V2 — development handoff
Updated 2026-09-14 after integrating the continuation into main. This is a working preview, not a release.
**Resume with [Harness v2: goal, plan, and continuation handoff](harness-v2-handoff.md).** It records the latest approved design, acceptance criteria, next-work order, and portable drafts. The checkpoints below are historical; the current handoff supersedes their conflicting toolbar, picker, preview, menu, and onboarding directions.
## Continue directly on main
- Built the combined New Harness/header/picker/menu and numbered-tab changes
from main `44d6540` in Release. Code-signature verification passed before and
after copying the bundle. Normally quit only workspace preview PID 18687,
replaced that workspace bundle and reopened it; PID 79285 was confirmed
active. The installed app remained PID 98999. The previous workspace bundle
is at `/private/tmp/harness-preview-before-new-harness-hz81dcel/Harness.app`.
Build log: `/private/tmp/harness-new-harness-release.log`. This checkpoint
completes the current UI requests. The broader goal and native latency work
remain deferred; review the current entry, header and tab interactions in
the reopened preview before choosing further product work.
- Command-number now selects **tabs 1–9** in their current visible order.
Command-H/J/K/L and Command-arrows continue to move between panes. Switching
tabs restores their focused pane, reordered tabs use their new positions, and
an unavailable number does nothing. Custom pane-focus command IDs remain
available without conflicting default digit bindings. Shortcut help and the
native exported keymap agree. All 52 affected Flutter checks pass, including
native-command routing, tab order/focus and subsequent terminal input; the
native keyboard bridge passes 78 checks against the exported bindings.
Analysis has zero errors/warnings and the 14 existing infos. Logs:
`/private/tmp/harness-tab-shortcuts-{tests,analyze,titlebar}.log`.
- Applied the latest simple-entry direction: **New Harness** replaces New Agent
on empty tabs. The centered start page has **Find a harness…**, a prominent
**Create harness** action, and up to six recent shortcuts, with responsive
layouts. Opening a recent or search result immediately reuses that runtime.
Removed multi-select checkboxes, selection count/tray and Shift-Enter staging
from shared Add; creation cancellation retains query/highlight/target.
**File** replaces Agent, with **Machines** after Models for computer status,
search, linking and refresh. The header now has icon/name left and
folder/branch/machine right; hover swaps the right side for muted Zoom,
Delete and Close, with Keyboard first remotely. The title and terminal stay
fixed during hover, and resize grips only appear on hover/focus/drag.
Focused Flutter workflow checks and 204 native menu/keyboard checks pass;
real-font renders cover the welcome page and 280/430/720px headers at normal
and large text. Analysis reports zero errors/warnings and 14 existing infos.
Logs: `/private/tmp/harness-new-harness-*.log` and
`/private/tmp/harness-header-render.log`. The following checkpoint moves
Command-number to tabs and rebuilds/reopens the combined preview.
- Added hover split controls inside the right and bottom pane edges. Each **+**
opens shared Add Agent at that position; existing-agent reuse and Create Agent
both remain available. Headers retain only Zoom, Delete and Close. Hover is
local to the overlay, preserves terminal focus/geometry, and leaves resize
gaps untouched. The controls are suppressed for zoom/drag/capacity; minimum
pane sizes produce an explanatory disabled tooltip. Pulled the team's
agent-first main update (`16716d0`) and preserved its tabs, search and menu
changes. All 24 affected workflow checks pass, including mouse activation
on an unfocused pane in both directions, retained terminals, unchanged
neighbors, resize/cancel recovery and input routing. Analysis reports zero
errors/warnings and the 14 existing infos. Logs:
`/private/tmp/harness-split-edges-{tests,analyze}.log`. The arm64 Release build
succeeds (`/private/tmp/harness-split-edges-release.log`). At the user's request,
normally closed the exact workspace preview, replaced its bundle with the
verified build and reopened it. Confirmed PID 18687 active at
`desktop/build/macos/Build/Products/Release/Harness.app`; the installed app
remained running separately. These are process observations, not native
latency measurements. Benchmarking and the broader goal stay deferred.
- Simplified the pane header to three direct outline icons: Zoom, Delete agent,
Close pane. Removed the overflow menu and its split/pin controls. Delete still
opens the shared confirmation; closing a pane preserves the agent and its
views in other swarms. Controls keep a consistent size/order and support
tooltips, keyboard focus and hover states. Narrow panes prioritize the agent
name over inline branch metadata. The retained header resolves the current
callback for all three actions, including Zoom. The broader goal remains
paused/blocked pending the user's breaking-change details; this is a bounded
follow-up request, not a resumption of the backlog or benchmarking.
Forty-two focused workflow checks and one real-font render check pass (43
total), including confirmation/cancellation, shared-session input after close,
current callbacks, existing keyboard splits and terminal interactions. The
rendered header fits 280/430/720px panes at normal and 2× text. Analysis has
zero errors/warnings and 14 existing infos. Logs:
`/private/tmp/harness-pane-controls-final-tests.log`,
`/private/tmp/harness-pane-controls-analyze.log` and
`/private/tmp/harness-pane-controls-render.log`.
The normal arm64 Release build succeeds at
`/private/tmp/harness-pane-controls-release/Build/Products/Release/Harness.app`
(log: `/private/tmp/harness-pane-controls-release.log`); it was not launched.
Main preserves the team's `f6b9849` welcome-background change.
- Preserved Add while trying New agent. Cancel/Escape from centered Add or either
split returns to the same query, caret/selection, highlighted result and
checked agents. Find existing after an uncertain creation also retains those
choices. Successful creation opens the new agent without reopening Add.
Changed/closed targets do not redirect cancellation, and stale splits are
explained. Fresh catalog validation drops already-added memberships while
leaving missing checked agents visible for removal. The affected workflow
suite passes 76 checks plus one real-font render check at 880×560 and 2× text;
analysis has zero errors/warnings and 14 existing infos. Logs:
`/private/tmp/harness-add-return-final-{tests,analyze}.log`. Nine new checks
cover the return path and recovery boundaries; the first three reproduced
the lost-search behavior. A second Escape returns actual fixture keyboard
input to the original terminal. Native Shift-Enter and inline New swarm's
optional selection continuity remain to be verified/improved; benchmarking
stays deferred. The normal arm64 Release build succeeds at
`/private/tmp/harness-add-return-release/Build/Products/Release/Harness.app`;
log: `/private/tmp/harness-add-return-release.log`. It was not launched.
- Fixed first-launch installation at minimum window size: Install/Retry/Check
again stay visible outside the scrollable tool list, and Enter can start or
retry the current step. Manual Retry now performs a read-only check instead of
calling the automatic path that returned without doing anything. Explicit
method/detail focus stays put. Shorter copy, denser required-tool rows and
optional **Setup details** keep the next action clear; expanded diagnostics
remain selectable and copyable. The affected suite passes 59 workflow checks
plus one real-font render check at 880×560 with normal/2× text. Analysis has
zero errors/warnings and 14 existing infos. The normal arm64 Release build
succeeds at `/private/tmp/harness-setup-release/Build/Products/Release/Harness.app`.
Logs: `/private/tmp/harness-setup-final-{tests,analyze}.log` and
`/private/tmp/harness-setup-release.log`. Verification uses fake provisioning;
no tools were installed and no real sign-in ran. First-install observation
remains open, and benchmarking stays deferred. Main preserves the team's
changes through `e14d0fb`; incoming release-script/dial work does not alter the
tested desktop application sources.
- Fixed Clone repository cancellation and keyboard recovery. Escape now uses
Cancel and waits for cleanup; a late successful clone cannot advance a
cancelled flow. Outside clicks leave an active clone running. Failed clones
preserve the repository/destination and restore Enter on the retry action.
Large-text errors are brought into view beside the still-visible actions.
The 50 affected workflow/render checks pass, as do analysis (zero
errors/warnings, 14 existing infos) and the normal arm64 Release build at
`/private/tmp/harness-clone-release/Build/Products/Release/Harness.app`.
Logs: `/private/tmp/harness-clone-{final-tests,final-analyze,release}.log`.
A direct public GitHub clone also succeeded with isolated Git configuration
and complete temporary-folder cleanup (`harness-clone-public.log`). Private
repository access, native chooser and genuine first-install validation remain
open. The app was not launched and benchmarking stays deferred.
- Added browser-sign-in recovery: **Open browser** reuses the current link,
**Copy link** offers a fallback, and **Cancel** immediately restores Sign in
with keyboard focus. Cancellation before CLI startup, late authorization URLs,
old results and delayed browser replies cannot disturb a replacement login.
Recovery controls disappear after authorization succeeds, while the workspace
restores. The compact layout keeps the normal-size actions visible at 880×560;
larger text wraps in the existing scrollable card. The affected workflow/render
suite passes 65 checks; analysis has zero errors/warnings and 14 existing infos.
Logs: `/private/tmp/harness-signin-final-{tests,analyze}.log`. The normal arm64
Release build succeeds at
`/private/tmp/harness-signin-release/Build/Products/Release/Harness.app`;
log: `/private/tmp/harness-signin-release.log`. It was not launched. The team's
`b45c156` main update changes CLI recap text and does not overlap this work.
Real first-install/provider sign-in and remote workflow checks remain open;
Archive/Resume remains a proposal and benchmarking remains deferred.
- Added **Find existing agent…** to uncertain New agent forms. It opens shared
Add with the search query, original swarm and split preserved; a closed swarm
or stale split gets an explanation. The dialog releases keyboard ownership
before opening Add, and an empty tab created in the background cannot take
focus for its welcome input. Six new regressions cover both search entry
points, changed destinations and no duplicate launch/input. The affected
workflow suite passes 87 tests, plus one real-font render check at normal/2×
text; analysis has zero errors/warnings and 14 existing infos. Logs:
`/private/tmp/harness-find-created-{workflows,final-recovery,analyze}.log`.
The normal arm64 Release build succeeds at
`/private/tmp/harness-find-created-release/Build/Products/Release/Harness.app`;
log: `/private/tmp/harness-find-created-release.log`. It was not launched;
no running app or agent was replaced or restarted.
Main preserves the team's merged PR #38 (`fd02a15`, recap generation), whose
CLI files do not overlap this desktop change. Live remote qualification and
genuine first-install/provider flows remain outstanding; benchmarking stays
deferred. Archive/Resume remains a proposal.
- Added [creation receipts and recovery](harness-agent-creation.md). A lost
creation reply now leaves the original choices visible and changes Create to
**Check status**, with keyboard focus on that action. Checking never launches
another agent, including on older/upgraded CLIs with no matching receipt.
Confirmed creation returns to the original swarm/position and counts once;
stale destinations leave it available in Add. The CLI retains completed and
uncertain outcomes across daemon restarts and rejects conflicting retries.
This does not implement Archive/Resume or restore closed desktop forms.
CLI typechecking, bundling and 150 affected checks pass; 127 desktop checks
pass, plus one real-font render check at 880×560 and normal/2× text. Analysis
has no errors/warnings and the same 14 existing infos. The normal arm64
Release build succeeds at
`/private/tmp/harness-creation-release/Build/Products/Release/Harness.app`.
Logs: `/private/tmp/harness-creation-{desktop-tests,final-recovery,analyze,release}.log`.
CLI code is saved in `3585051`; `7ae2cba` preserves the team's concurrent
Option-Enter fix from main (`012c171`). No real agent or running app was
started/stopped, and no benchmark ran. Live remote recovery remains unverified.
- Made the shared remote folder chooser work by keyboard: enter a full path,
browse with arrows/Enter, go up with Alt-Up, and select the loaded folder with
Cmd-Enter (Ctrl-Enter elsewhere). It names the target machine and keeps Home
and Retry available. Failed navigation preserves the last usable listing;
pending navigation cannot accidentally select the previous folder. Older
replies cannot replace a newer path, text selection or composition. Selecting
a folder returns to the existing agent choices without starting a runtime.
The affected onboarding/project/profile/creation checks pass (57 tests), plus
a real-font render check at 880×560 with normal/2× text. Analysis has zero
errors/warnings and 14 existing infos. Logs:
`/private/tmp/harness-remote-folder-{final-tests,final-analyze}.log`.
The normal macOS Release build succeeds with the production `lib/main.dart`
entry point at `/private/tmp/harness-remote-folder-release/Build/Products/Release/Harness.app`;
log: `/private/tmp/harness-remote-folder-release.log`. It was not launched and
the user's running app was not replaced or restarted.
These are isolated UI/transport checks; live remote and first-install
qualification remain open. Benchmarking remains deferred.
- Clarified **Remove from swarm** in the pane/native menus and keyboard help.
The action still removes only a view. Fixed History recovery that created a
second same-named swarm after one of its agents had already been reopened:
missing views now return to the same swarm, preserving newer names, focus,
pins, presets and shared live sessions. Recovery can fit at the tab limit and
keeps its history entry if the full missing membership cannot fit.
- The integrated desktop suite exposed a viewport-focus regression after the
team's terminal-tail change: relayout reclaimed keyboard focus from a resize
handle, so Escape could not cancel a drag. Geometry refresh now preserves
keyboard ownership. Existing pointer cancellation and repeated keyboard
resizing pass, alongside a strengthened latest-output check that actually
switches to a valid four-pane layout. Archive/Resume is still a proposal;
current user runtimes were not started, stopped or used as test fixtures.
Verification: **1,317 desktop tests pass**, one existing skip; zero analyzer
errors/warnings, 14 existing infos; 335 isolated AppKit checks pass. The final
combined suite includes the team's `e68c893` local-machine default, preserved
in merge `eef17f6`; existing fixtures now use its explicit remote labels.
Logs: `/private/tmp/harness-reopen-existing-{final-full-tests,final-analyze,native}.log`.
The normal macOS Release build from `3a4ae22` subsequently succeeded at
`/private/tmp/harness-recovery-release/Build/Products/Release/Harness.app`
with the production `lib/main.dart` entry point; build log:
`/private/tmp/harness-recovery-release.log`. The running preview was not
replaced or restarted, and live native workflow verification remains
outstanding. Benchmarking remains deferred.
- Added **Retry** to failed New agent availability checks. The same form keeps
the folder, explicit agent and permission choices while rechecking; recovered
Codex profile support loads in place. Late replies for a previous machine
cannot replace the current choices. The two new regressions and surrounding
first-use/Add/profile checks pass (47 tests); analysis has zero errors/warnings
and 14 existing infos. Minimum-window renders with normal/2× text were checked.
Logs: `/private/tmp/harness-agent-check-retry-{verified,analyze,render}.log`.
Preserved the team's `5f279e1` pane-menu Delete action by fast-forwarding main.
The combined suite passes **1,311 tests**, one existing skip, with no analyzer
errors/warnings. A separate arm64 Release output succeeds; the running preview
was not replaced or restarted. Logs:
`/private/tmp/harness-agent-check-retry-{full-tests,integrated-analyze,release}.log`.
Main then fast-forwarded through the team's independent changes at `87f8fcd`.
Those files do not overlap this Retry change; the recorded full-suite and
Release results remain measurements of the preceding `5f279e1` base.
- The user raised accumulating live sessions after closing panes. Saved an
[Archive/Resume lifecycle proposal](harness-agent-lifecycle.md) for discussion.
It has not been implemented; no existing user agents were stopped or removed.
- The user approved the native run and brief workspace-preview quit/reopen.
Rebuilt the isolated arm64 Release fixture from `a6fe4a4`, including the later
titlebar change, at `/private/tmp/harness-native-benchmark-v99tt1m2`.
The 229 compared production Dart/Swift sources match the copy; all nine
isolation tests pass. App control cannot access windows while this Mac is
locked, confirmed by the read-only console lock flag. Both Harness processes
remain running; no benchmark was launched and no samples were collected.
The user then explicitly deferred benchmarking/performance optimization and
asked for feature work. Keep measurement deferred; do not request another
desktop/preview interruption while that priority stands.
Build receipt: `/private/tmp/harness-native-approved-prepare.log`.
- Preserved the team's native Settings-button removal (`51c0d27`) in merge
`3a7fe57`, then its independent device updates through `22653fe` in `51f62e7`.
The combined desktop passes **1,309 tests**, one existing skip, 51 native
decoder checks and 347 AppKit assertions. Analysis has zero errors/warnings
and 14 existing infos; Release succeeds. Logs:
`/private/tmp/harness-add-open-titlebar-{tests,analyze,native,build}.log`.
The prepared native fixture below is pinned to the preceding `339f008`
source; rebuild it for the later titlebar change before measuring main.
- Picker opening/cancellation no longer rebuilds the retained Swarm canvas.
Add and Navigate reuse validated catalogs across openings, including shared
inline/floating/split Add data. Output excerpts remain fresh and canceled
queries/selections remain local to their picker. The paired headless fixture
measured warm Add opening at 22.006 ms median versus 26.273 ms. Query timing
was worse; full scope and tails are in the performance record. Seven new
regressions pass; the full desktop suite passes **1,309 tests**, one existing
skip, with no analyzer errors/warnings and 14 existing infos. Preserved the
team's independent device UI change `5f8baac` by fast-forwarding main.
The normal macOS arm64 Release build succeeds. Verification artifacts:
`/private/tmp/harness-add-open-{full-tests,analyze,release-build}.log`.
Saved and pushed as `339f008`. A fresh isolated native Release fixture also
built at `/private/tmp/harness-native-benchmark-wt0_dt31`; its picker files
match this source and its bundle has the distinct benchmark identity. It was
not launched: the preview is still running and the brief close/reopen request
remains pending. Receipt: `/private/tmp/harness-native-picker-prepare.log`.
- Improved Add's arrow-key frame work by reusing unchanged result rows and
leaving the text editor alone when only the highlight changes. In the paired
2,000-agent headless fixture, arrow selection median fell 8.592 to 4.714 ms;
opening time did not improve. The full distributions and scope are in the
[performance record](harness-v2-performance.md). Fixed a reproduced case of a
background agent addition taking focus from the picker, while preserving
New agent cancellation focus. All **1,302 desktop tests** pass with one
existing skip; analysis has zero errors/warnings and 14 existing infos.
The normal macOS arm64 Release build succeeds. Test/analysis/build artifacts
use `/private/tmp/harness-add-render-*.log`; no running app was restarted.
Saved as `e71e0ca`, then preserved the team's `cdb876e` update-flag cleanup in
merge `56143bd`. Integrated tests still pass all 1,302 with one skip, and
analysis remains at zero errors/warnings and 14 existing infos. The combined
Release build succeeds too; logs:
`/private/tmp/harness-add-render-integrated-{tests,analyze,build}.log`.
- `fe42f2e` repairs the isolated native benchmark for the team's public bundle
identity change. Nine isolation checks pass and the disposable Release
fixture builds. Its runner correctly refuses the running workspace preview;
native latency remains unmeasured. `56f9d2a` preserves the team's concurrent
`9e2e4be` branding/update changes. A brief preview-close calibration request
is pending; no running app or real agent has been stopped for these checks.
- Saved the Add/shortcut checkpoint as `5f3ecae`, then merged the team's
current main through `76a469b` as `f514140`. The merge was clean and preserves
its Settings toolbar button, independent terminal schemes, dial changes,
error messages and public bundle-name cleanup. All **1,299 desktop tests**
pass after integration, with one existing skip. Analysis remains at zero
errors/warnings and 14 existing infos; 51 decoder and 347 native AppKit
checks pass against the combined sources. Logs:
`/private/tmp/harness-revised-add-integrated-{tests,analyze,native}.log`.
The integrated macOS arm64 Release build also succeeds with the renamed
bundle ID (`/private/tmp/harness-revised-add-integrated-build.log`). The app
was not restarted; real native timing/reconnect qualification remains open.
- Corrected Navigate's hierarchy: each swarm appears once as a selectable
parent, with matching agents indented below it. Agent-only queries retain
their swarm context and keep the best matching agent selected for Enter.
Empty swarms appear once. Removed the 68px pane inset that reserved a footer
for the floating +; panes now use the normal 10px edge spacing beneath it.
All 33 affected navigation/Add/focus tests pass.
- The user chose instant first-agent startup after reconsidering a draft-list
flow. Welcome search/Enter and suggestions open one agent directly; there is
no Create swarm step. Machines/projects stay visible as one-click starters.
Shared Add now supports optional checkboxes/Shift+Enter across queries,
removable selected-agent chips, and Add N agents. Whole-selection validation
rejects stale members or insufficient capacity before adding any membership;
source swarms and retained sessions stay intact. Splits choose one agent.
- The user's latest shortcut choice is **Cmd-N for Add**, with **Shift-Cmd-N
for fresh New agent** and Cmd-P unchanged for Navigate. The filled + New agent
button is beside Add's search field. Only the highlighted result shows its
action/Return hint. The floating + overlays the panes, now 28px from both
bottom and right edges; its tooltip shows the resolved Add shortcut.
- Full desktop checks: **1,295 passed, one existing skip**. Analyzer: zero
errors/warnings, 14 existing informational diagnostics. Synthetic real-font
captures of the starters, Add, optional multi-select and Navigate were
reviewed at 1280×800 and 880×560 with 2× text. Fresh five-pane/latest-output
regressions pass, including delayed snapshots. These are not native display
latency or real remote reconnect measurements.
- Native validation passes 51 keymap decoder and 347 AppKit assertions with
the resolved Dart binding payload. The normal arm64 macOS Release build
succeeds. No running-app restart was needed or performed. Logs:
`/private/tmp/harness-revised-add-{full-tests-final,analyze-final,keymap-native,release-build}.log`.
- The user confirms the current menu and Navigate changes are visible. No
further app restart or inspection is needed for that confirmation.
- History focus updates now skip formatting unopened agents. A failing-before
regression passes; 39 affected tests, all seven expanded benchmark cases,
analysis (zero errors/warnings) and the arm64 Release build pass. History
snapshot CPU median fell 1.863 to 0.334 ms in the 2,000-agent fixture.
Full paired timings, including variable/worse fallback-tab tails, are in
[the performance record](harness-v2-performance.md). Native latency is still
unmeasured.
- The user now wants all subsequent work, commits and pushes on **main**.
This supersedes the earlier fresh-feature-branch workflow. Only consolidate
this user's own branches; other contributors' branches and PRs are excluded.
- PR #31 had merged the original app-v2 checkpoint, but the six newer
navigation, onboarding and performance commits were still on swarm-onboarding.
Merged them into main as `ccd1f35`, preserved the team's concurrent `4b2f783`
update in `fd3ced0`, and pushed normally. GitHub marks PR #34 merged.
- Verified the pushed main contains the exact continuation tip `23d511e`,
deleted swarm-onboarding remotely with an exact-tip lease, and removed its
merged local branch. The only local branch is main. No teammate branch or
separate PR was merged or deleted. The author's remaining remote history and
the account's PRs contain no additional unmerged work.
- Performance investigation remains active. An earlier rebuild trace reproduced
620/964 widget rebuilds per focus change with 16/48 retained terminals and
identified fallback tab-button work in those totals. The paired follow-up
separated native/fallback tab configurations and led to the History snapshot
improvement above; the performance record retains the variable fallback tails.
Trace source/log: `/private/tmp/harness-swarm-rebuild-trace.{dart,log}`.
The diagnostic source is outside the repository; generated Vite caches are
now ignored alongside other build caches.
## Common empty-swarm onboarding continuation (previous checkpoint)
- Repaired the saved native benchmark for current Harness branding, bundle-ID
preflight and the production Flutter-controller focus target. Six Python
isolation checks pass and the disposable arm64 Release fixture builds.
The real runner refuses the still-running workspace preview and writes no
timing result. Native latency remains unmeasured; details are in the
[performance record](harness-v2-performance.md).
- GitHub verification found PR #31 merged at `cb24361`, with `744c1fe` as its
app-v2 head. The later Navigate/Add commits were not in that merge. Saved the
onboarding work as `e122b63`, created **swarm-onboarding** from updated main
(`0b9ac72`), and carried the full unmerged continuation forward in `a2888ef`.
Newer main/device changes are retained. Continue on the fresh branch.
- Pushed the continuation and opened draft [PR #34](https://github.com/autonomous-ai/autonomous-harness/pull/34).
Confirmed the pushed branch contains all old app-v2 commits and no old-branch
PR remains open, then deleted app-v2 remotely with an exact-tip lease and
locally. The branch lifecycle follows the user's requested practice.
- After integration with updated main, **1,271 desktop tests passed with one
existing skip**. Analyzer reports zero errors/warnings and 14 informational
diagnostics (12 vendored, two inherited from main). Logs:
`/private/tmp/harness-onboarding-main-{tests,analyze}.log`.
- The current five-case CPU benchmark passed after all builds/tests finished.
Navigate catalog: 0.188 ms median / 0.259 ms p95; Add's 2,000-agent query:
0.959 / 1.005 ms. Tab/frame pump: 13.056 / 20.293 ms for 16 terminals and
10.426 / 11.991 ms for 48. The 16-terminal p99 was 30.776 ms; retain that
slower tail. These headless observations do not measure native display
latency. Full scope/raw log are in the performance record.
- One start page serves every empty swarm. With no existing work it leads with
**Start with one agent**, a static side-by-side example, **Choose folder…** and
separate **Clone repository…**. With existing work it offers shared Add search,
three direct agent choices and New agent. Saved projects stay visible, while
Browse reveals the full machine/project catalog.
- A usable local computer retains the direct folder path even if another
computer is offline. New agent skips the Machine dropdown for a single usable
local target. Offline/linking/loading states offer their next action. The
form now uses the darker shared modal veil; the welcome surfaces need no
backdrop filters, and the layout stacks with larger text.
- A regression caught Enter doing nothing when first discovery finished after
the initial disabled action. The newly enabled action now receives default
focus in the welcome scope, while an explicit focus on another control wins.
Tests also cover offline retry, saved-project routing/visibility in later
tabs, clone cancellation and the existing creation/recovery paths.
- **1,262 desktop tests passed, one existing skip**; analyzer: zero errors or
warnings, 12 existing vendored infos. Actual screen/form renders with real
fonts were reviewed at 1280×800 and 880×560 with 2× text. Logs:
`/private/tmp/harness-onboarding-{full-tests-final,analyze-clean}.log`.
- The [onboarding notes](harness-v2-appearance-onboarding.md) record the source
research, current behavior and remaining qualification. The archived welcome
draft is superseded. Real first-install/provider sign-in, time to useful work,
native event-to-display latency and remote reconnect remain unverified.
- The macOS arm64 Release build succeeded with the normal `lib/main.dart`
target (`/private/tmp/harness-onboarding-release-build.log`). Exact-path native
capture still returns `cgWindowNotFound`; the new binary has not been confirmed
loaded in the running preview. No native visual or latency result is claimed.
- The integrated fresh branch also has a successful Release build:
`/private/tmp/harness-onboarding-main-release-build.log`.
## Navigate and Add agent continuation (previous checkpoint)
- Implemented distinct UIs: a compact compass/Navigate directory lists every existing swarm location for a matching agent; New swarm, bottom-right floating +, and both splits share Add results with an always-on preview and New agent action. Navigate does not mutate membership. Add reuses the session and preserves source swarms, avoids duplicates, and keeps the chosen split position.
- Every empty swarm now offers the same existing-agent suggestions, including after closing earlier swarms. Removed the first-use-only gate and “Go to an agent” heading. Broader onboarding simplification remains next work.
- Cleaner bounded previews join wrapped prose, remove separator/recap decorations, and use a reading card. Removed the eye toggle, darkened shared modal veils, removed the top-right New agent +, and reordered native menus. Cmd-N and customized picker keys retain their behavior; entering/leaving command mode keeps the editor mounted to avoid losing the very next key.
- Native checks: 51 keyboard decoder + 344 AppKit assertions. Desktop: **1,256 passed, one existing skip**; analyzer: zero errors/warnings, 12 existing vendored infos. Synthetic real-font renders reviewed at 1280×800 and 880×560. Logs: `/private/tmp/harness-two-pickers-{full-tests-final,analyze-clean,native,visual-final}.log`.
- Avoided building unused agent/project metadata for Navigate and allocating membership sets for every Add candidate. Navigation catalog setup measured 4.095 → 0.194 ms median for 50 agent locations across 12 swarms. Add's 2,000-agent query measured 1.025 ms median / 1.083 ms p95. See [performance measurements and limits](harness-v2-performance.md); these are headless CPU observations, not native keypress-to-screen latency.
- Pushed implementation checkpoint **`2d3c024`** to `app-v2`. Its macOS Release build succeeded, the prior workspace preview was quit normally, and the rebuilt bundle was verified running as PID 15377. Computer Use's exact-path capture returned `cgWindowNotFound`; bundle-ID lookup is ambiguous with an old Debug copy. Native visual/latency review remains unverified. Build log: `/private/tmp/harness-two-pickers-release-build.log`.
- The archived picker draft is superseded; do not reapply it. Its onboarding companion remains unapplied. Next: improve genuine first use and qualify native responsiveness plus local/remote reconnect workflows. Draft PR #31 remains draft.
## Cross-computer checkpoint (historical)
- Saved `26a372e`: preserve captured terminal rows until the remote resized keyframe, avoiding deletion of the latest output when a tall TUI enters a smaller pane. Fresh five-pane and delayed-snapshot regressions reach the bottom; revisited scrolled views retain their place. The user's exact live screenshot still needs rechecking.
- Also committed the existing first-agent naming work: default empty New swarms adopt the first agent's name, preserving custom names and close/reopen behavior.
- Full desktop suite: **1,244 passed, one existing skip**. Analyzer: zero errors/warnings, 12 existing vendored infos. Logs on the original computer: `/private/tmp/harness-handoff-full-tests.log` and `/private/tmp/harness-handoff-analyze.log`.
- Latest approved UX is **two distinct experiences**: top-right global Navigate/Cmd-P with an explicit choice of every swarm containing a matching agent; bottom-right floating +, New swarm, and Split right/down share one local Add interface for existing or new agents. This is the next implementation step, not shipped UI.
- Saved earlier picker/onboarding work under [docs/handoff/app-v2-2026-09-13](handoff/app-v2-2026-09-13/README.md), including new Dart files. Do not blindly reapply the older combined picker; reconcile it with the two-UI decision. Both patches check individually; their combined application and onboarding behavior remain unverified.
- The handoff also saves the previously untracked native benchmark and collaboration design. Benchmark calibration is still unmeasured and its old product-name/focus assumptions need updating; collaboration is a proposal, not implemented multiplayer.
- Draft [PR #31](https://github.com/autonomous-ai/autonomous-harness/pull/31) is still open, `app-v2` to `main`. The user requested committing/pushing all work and transferring ownership. No new app rebuild/restart is part of this checkpoint.
## Search, creation and workspace controls checkpoint
- Replaced File with separate **Swarm** and **Agent** menus. The top-right toolbar has exactly three icons: Search, New agent and Notifications. The tab-strip plus still creates a swarm. Native and Flutter New agent actions open the current swarm's creation dialog, inherit the focused agent's machine/working folder and preserve the existing agents and their input.
- Cmd-P opens a centered search editor. Cmd-Shift-P opens command mode. Inline New swarm search uses the same input/results components, with results on the left and an optional preview on the right. Flutter owns arrows, text selection, deletion and IME in both locations. Native chrome no longer maintains a competing text editor or copies queries across channels.
- Added header zoom and pane actions for right/down splits, pinning, the optional message composer and closing. Resize dividers show short centered grips. Existing resizing limits, saved proportions, cancellation and retained terminals remain covered. The four-pane SwarmIcon also identifies machine/project entries that open swarms.
- User-facing names now say **Harness**; the internal bundle identifier stays unchanged. Models uses bare short account IDs. The preceding creation checkpoint (`06ba77c`) adds one-click Codex/Claude Code/Cursor choices, remembered agent choice, organized Advanced settings and a separate GitHub clone dialog on this computer. A saved project name wins over a discovered checkout alias.
- The macOS Release preview built successfully (`/private/tmp/harness-v2-toolbar-release-build.log`). Synthetic visual review with real fonts verified the New agent dialog, quick choices and expanded Advanced section (`/private/tmp/harness-advanced-review.png`). Analyzer reports zero errors/warnings and the 12 existing vendored infos. Native checks pass: **51 decoder + 347 AppKit**; no windows displayed or real agent input used.
- Full desktop regression run exercised 1,240 tests plus one existing skip. Eight old UI expectations were updated for the approved controls, command shortcut and visible preview. The combined rerun passed 62 tests; its remaining fixture-label mismatch was corrected, and all eight interaction tests then passed. Logs: `/private/tmp/harness-v2-full-workspace-checks.log`, `/private/tmp/harness-v2-final-regressions.log`, `/private/tmp/harness-v2-pane-menu-checks.log`.
- Saved and pushed as `4154cf6` and `2e8d69d`. Normally quit this workspace's old preview (PID 78196), confirmed its exit and launched the renamed Harness.app (PID 29025). The installed Harness instance (PID 4532) remained running. Native CUA inspection failed at pipe startup, so actual on-screen verification is still unavailable; no new native visual claim is made.
- Draft PR #31 remains a review checkpoint. Actual first-use clarity, direct native input-to-display latency, real remote reconnect and Linux rollout still need qualification. Do not claim those are verified by widget or hidden AppKit tests. Preserve the separate uncommitted first-agent naming work, collaboration design and native benchmark tooling.
## Concurrent machine discovery checkpoint
- Agent inventory and terminal capabilities now start together after the machine handshake. Capability checks are sent first, so the CLI's per-client FIFO can answer that small request before building the agent catalog. Discovered agents publish without waiting for a slower capability response. Restored panes still require both results, attach once and preserve focus.
- Handshake time remains inside the inventory's existing ten-second budget. The capability request keeps its eight-second reply budget, starting only after readiness. No request is sent after a timed-out/closed wait or after the target machine/session is removed. Concurrent callers share pending work; an inventory failure can retry while sharing a still-pending capability request.
- Two isolated regressions reproduced serialization and delayed agent visibility before the change (`/private/tmp/harness-v2-machine-loading-before.log`). **107 affected tests passed**, followed by **14 discovery/readiness checks** that include one additional combined AppNotifier/real-WebSocket test. That loopback peer withholds both replies until both requests arrive, then verifies visible agents before capabilities. Logs: `/private/tmp/harness-v2-machine-loading-tests.log` and `/private/tmp/harness-v2-machine-loading-transport-tests.log`.
- Analyzer has zero errors/warnings and the existing 12 vendored infos (`/private/tmp/harness-v2-machine-loading-analyze.log`). These checks prove ordering, timeout-budget handling, retry and attachment behavior, not real remote latency. The fixture uses no credentials, real agent or CLI daemon.
- Saved and pushed as `7e19cea`. Release build succeeded (`/private/tmp/harness-v2-machine-loading-build.log`), and the exact development preview reopened as PID 78196 after PID 66006 was normally quit and confirmed exited. Native foreground/capture and remote interruption validation remain separate; no real agent received test input.
- The user explicitly reaffirmed permission to push to the public `autonomous-ai/autonomous-harness` repository on `app-v2`. The prior 17 local commits were pushed through `1c535b3`, and the remote head was verified. Continue ordinary checkpoint pushes there without asking again. Preserve unrelated naming edits, collaboration notes and native benchmark tooling.
## Workspace startup and profile checkpoint
- Launch, sign-in and Cmd-R recovery now load machines independently of account display metadata. The CLI still confirms authentication and daemon readiness first. A pending profile no longer holds the workspace or refresh future; a successful profile publishes its account details when it arrives.
- Concurrent refreshes reuse one pending profile request. Profile failure leaves machine loading/recovery available, and a subsequent refresh can retry missing account details. No extra polling or automatic agent input was added.
- Signing out invalidates pending account and inventory work before asynchronous cleanup. Late sign-in, profile, machine and terminal-capability replies cannot restore the old account, open old agents, clear a newer session's loading state or notify a disposed app. Runtime sign-out clears displayed account identity as well.
- The original four profile/startup regressions failed before the fix (`/private/tmp/harness-v2-profile-startup-before.log`). A separate refresh-after-close check reproduced a disposed-notifier error (`/private/tmp/harness-v2-profile-refresh-close-before.log`). **118 focused tests now pass**, including 14 profile/startup lifecycle checks and existing daemon, environment, login, first-workspace, machine refresh and closed-work restoration coverage (`/private/tmp/harness-v2-profile-startup-tests.log`).
- Analyzer has zero errors/warnings and the existing 12 vendored infos (`/private/tmp/harness-v2-profile-startup-analyze.log`). Fixtures use pending scripted responses, synthetic accounts and an isolated transport. This verifies removal of a dependency, not a measured reduction in cold launch or first-agent latency. No provider sign-in or real agent input was used.
- Saved and pushed as `1c535b3`. Release build succeeded (`/private/tmp/harness-v2-profile-startup-build.log`), and the exact development preview reopened as PID 66006 after PID 50695 was normally quit and confirmed exited. Native foreground/capture validation still needs new access evidence; do not retry the same failed calibration.
## Native startup appearance checkpoint
- The loaded palette now reaches native titlebar configuration before the explicit show request, including startup and sign-in where no Swarm screen exists yet. Native New swarm and Search controls begin disabled; a palette update neither creates tabs nor enables workspace actions.
- A reproduced teardown regression reset the native palette when Swarm screen disposal sent only `tabs: []` and `enabled: false`. An omitted palette now preserves the current colors, so leaving the workspace does not revert its native chrome to Graphite. Explicit palette updates retain existing tab/search controls.
- Window setup now awaits native configuration, show and focus requests directly. The installed `window_manager` callback is a `VoidCallback` and does not await an async callback. A delayed-reply test showed the old setup future completing while all three operations were still pending. Failures now propagate through the setup future instead of escaping it.
- **40 focused Flutter tests passed**, including all six initial palette payloads, delayed setup replies, error propagation, persisted settings and the existing startup/sign-in/first-workspace screens. **51 native decoder and 371 AppKit checks passed** against Dart's exported bindings. The AppKit checks include initial colors, repeated configuration, workspace teardown, keyboard ownership and retained search composition, with no window displayed.
- Reproductions: `/private/tmp/harness-v2-window-startup-before.log`, `/private/tmp/harness-v2-window-palette-native-before.log` and `/private/tmp/harness-v2-window-palette-exit-before.log`. Final checks: `/private/tmp/harness-v2-window-startup-tests.log` and `/private/tmp/harness-v2-window-palette-native.log`. This establishes request ordering and color retention in isolation; live launch presentation and foreground native timing remain unmeasured.
- Analyzer has zero errors/warnings and the existing 12 vendored infos (`/private/tmp/harness-v2-window-startup-analyze.log`). Public-origin push approval is still pending.
- Saved as local commit `a38482c`. Release build succeeded (`/private/tmp/harness-v2-window-startup-build.log`), and the exact development preview reopened as PID 50695 after PID 40428 was normally quit and confirmed exited. It includes the preceding settings-read optimization.
- Continue the first-run audit through environment checking, connection and the first agent using isolated responses. Inspect existing coverage and measure before changing another startup stage. Live capture, native foreground calibration and automatic key-view traversal still require new access evidence; do not retry them unchanged. Preserve unrelated user files and continue local checkpoints while public-origin approval is pending.
## Startup settings checkpoint
- Five per-key appearance reads now use two grouped snapshots through the existing serialized file store. Each snapshot returns only requested keys and is discarded after the read. Locking, private permissions, corruption recovery and future-schema protection remain intact; later reads see intervening writes.
- Independent counters and keyboard configuration load concurrently with appearance. All still finish before the window becomes usable, so saved styling and shortcuts are present at arrival and a late stats load cannot overwrite new agent events.
- In one isolated debug benchmark run with warm temporary files, settings-plus-keyboard initialization went from **31.877 ms median / 34.919 ms p95** to **13.042 / 14.295 ms**. This is one initialization step, not full app launch or native display latency. The explicit benchmark is `desktop/test/benchmarks/startup_benchmark.dart`; [performance notes](harness-v2-performance.md) record the setup and limits.
- **58 focused tests passed**, covering complete preference/counter restoration, all-store readiness under delayed/failed reads, temporary-store isolation, selected-key batches, intervening writes/deletes and existing permission/schema protections. Artifacts: `/private/tmp/harness-v2-startup-tests.log` and `/private/tmp/harness-v2-startup-benchmark-{before,after}.log`.
- Analyzer has zero errors/warnings and the existing 12 vendored infos (`/private/tmp/harness-v2-startup-analyze.log`). The explicit benchmark is excluded from ordinary test discovery and does not collect user settings.
- Saved as local commit `6c192ee`. Release build succeeded (`/private/tmp/harness-v2-startup-build.log`), and the exact development preview reopened as PID 40428 after PID 26548 was normally quit and confirmed exited.
- Startup tests now inject all three stores; none falls through to the user's global appearance or stats store. No real agent, credential or keyboard configuration was used in validation. Public-origin push approval remains pending; preserve unrelated naming edits, the collaboration draft and native benchmark tooling.
## Search arrival and typing checkpoint
- An isolated full-screen probe reproduced inconsistent arrival: initial launch focused the shell, while New swarm after work and close-last-swarm immediately opened suggestions over the welcome choices. All three now focus the inline field with results closed. Clicking, typing or a configured picker navigation/accept key opens results in place. The opening key never activates an unseen result. Escape keeps the query and caret; returning from the native search or a dialog does not reopen inline suggestions automatically.
- The first-workspace path now verifies Tab from the focused field to **Choose folder…**, then Enter to open the existing folder flow. Closed-field navigation honors keymap overrides and command mode. Background changes preserve inline composition and selection. Native-field checks preserve its editor, marked range and caret during attention/palette changes and refocusing.
- A reproduced native bridge regression sent five unchanged placeholder messages for five query edits. The same burst now sends none. A mode change sends its new hint; deliberate command navigation still changes the query. A small typed snapshot replaces per-edit JSON encoding, and native search no longer updates its unmounted Flutter text controller. This removes work, not a measured amount of input/display latency.
- Visual review at 880×560 covered fresh welcome, the prefilled New agent form, New swarm after work and inline results. It also caught singular machine/project labels; they now reuse the swarm agent-count formatter. These images use the Flutter fallback titlebar, not a live native capture.
- Validation: both arrival regressions and the redundant-message regression failed before their fixes. **48 focused Flutter tests plus the isolated render passed**; the final count-label reuse then passed nine search checks plus the rerender. **51 native decoder and 363 AppKit checks passed**. Analyzer has zero errors/warnings and the existing 12 vendored infos. Artifacts: `/private/tmp/harness-v2-search-arrival-{before,tests,final-tests,native,analyze,copy-render}.log`, `/private/tmp/harness-v2-search-echo-before.log`, and `/private/tmp/harness-v2-search-arrival-{welcome,form,new-swarm,search}.png`.
- Saved as local commit `72355d9`. Release build succeeded (`/private/tmp/harness-v2-search-arrival-build.log`), and the exact preview reopened as PID 26548 after PID 11785 was normally quit and confirmed exited. No real agent input, provider installation or foreground latency measurement was used. Public-origin push approval is still pending.
- The subsequent startup audit and measurements are recorded above. Native foreground calibration and automatic key-view traversal remain unverified; do not retry them without new access evidence.
## Native tab interaction checkpoint
- A reproduced overflow regression let background name/status/palette updates snap the strip back to the active tab. The strip now preserves manual scrolling during those updates, reveals a newly selected tab, and keeps a previously visible active tab in view when the strip's geometry or order changes.
- Keyboard focus reveals the complete tab and its close control. Select, close, new and rename return native keyboard ownership after Flutter acknowledges the destination's rendered focus tree. Rename acknowledges its open form instead of waiting for it to close. Late replies cannot steal a newer Search field or release a newer tab action's focus. The attention dot has an accessible description that clears when resolved.
- Reordering accepts only an actual tab owned by this strip, with a matching private pasteboard identity and a move operation inside the visible tab area. Search, foreign/stale controls, disabled actions and removed sources cannot reorder the swarm. Dropping in place sends no redundant reorder.
- Validation: **21 focused Flutter checks passed**, including first text immediately after native select/close acknowledgements, immediate rename input, and closing the last swarm. **51 native decoder checks and 361 AppKit checks passed**, using actual Dart-exported bindings and a hidden window. Analyzer has zero errors/warnings and the existing 12 vendored infos. Artifacts: `/private/tmp/harness-v2-native-tab-{routing-tests,keymap-final,analyze}.log`; the pre-fix overflow failure is `/private/tmp/harness-v2-native-overflow-before.log`.
- These are isolated keyboard/focus, drop-policy and layout checks, not a live VoiceOver session, pointer-drag audit or native latency measurement. A separate disposable traversal probe could not establish AppKit's automatic key-view loop in its hidden window (`/private/tmp/harness-v2-tab-order-probe/run.log`); it does not establish that ordinary Tab traversal works in the foreground app. Real agents received no test input.
- Saved as local commit `09e7229`. Release build succeeded (`/private/tmp/harness-v2-native-tab-build.log`), and the exact preview reopened as PID 11785 after PID 94084 was normally quit and confirmed exited. Public-origin push approval remains pending. Preserve the unrelated naming edits, collaboration draft and native benchmark directory.
## Git context recovery checkpoint
- Three regressions reproduced stale branch context after a worktree pointer changed or a directory watch ended/errored. The local compatibility reader now watches the working tree's `.git` connection, follows changed Git/common directories, and rebinds subscriptions after same-path directory replacement. Removed working folders clear their cached context instead of borrowing the parent repository.
- Stopped watches trigger one coalesced refresh, with a one-minute retry delay. Ordinary discovery rechecks entries older than one minute even when a watch still appears healthy; there is no polling timer. Concurrent invalidations serialize behind a pending read, and disposal cannot republish or recreate watches. Metadata reads themselves are bounded to 64 KiB plus one byte; oversized content is rejected.
- Validation: all three new regressions failed before the fix. **38 focused metadata, project membership, screen, navigation and search checks passed** afterward, including simulated missed/stopped/unsupported watches, delayed reads, directory replacement and the existing actual-filesystem worktree branch watch. Analyzer has zero errors/warnings and the existing 12 vendored infos. Logs: `/private/tmp/harness-v2-git-watch-{before,tests,analyze}.log`.
- Saved as local commit `578ec95`. Release build succeeded (`/private/tmp/harness-v2-git-watch-build.log`), and the exact preview reopened after PID 85046 was normally quit and confirmed exited. Live native capture/latency validation remains paused. The working tree retains only unrelated user edits and untracked drafts/benchmark tooling.
- This remains a small read-only compatibility path for local agents on older daemons, not a complete Git configuration resolver. No terminal/network input, Git process, remote daemon upgrade or real worktree modification was used. [The performance notes](harness-v2-performance.md) record its limits and source documentation.
## First-folder checkpoint
- A genuinely empty, discovered local workspace now offers **Choose folder…**. That action opens the native folder chooser directly, then the ordinary New agent form with the selected folder. Installed-agent discovery overlaps folder selection, and the form reuses that request. The returning-user button and Cmd-N still open New agent normally.
- Repeated activation cannot stack native choosers. Cancellation, a changed swarm/machine, loss of local identity, disconnection or a newly required link discards the late result. No agent starts until Create agent is selected; no task is sent automatically.
- Validation: **65 focused onboarding, engine/profile, split and inline-search checks passed**, followed by an isolated visual render of the welcome and prefilled form at 880×560. Analyzer has zero errors/warnings and the existing 12 vendored infos. Artifacts: `/private/tmp/harness-v2-first-folder-{tests,render,analyze}.log` and `/private/tmp/harness-v2-first-folder-{welcome,form}.png`.
- Saved as local commit `9b7bff9`. Release build succeeded (`/private/tmp/harness-v2-first-folder-build.log`) and the exact preview reopened after PID 76047 was normally quit and confirmed exited. This includes the preceding search-highlighting and first-agent-recovery changes. Live capture is still unavailable; visual evidence here is from isolated renders.
- Native latency calibration is paused: the disposable Release benchmark window was visible, but macOS reported it inactive and not key. No timings were accepted. See [performance notes](harness-v2-performance.md) for the failed calibration artifacts and restart condition. The real preview was reopened after the fixture exited.
- Continue local commits. Public-origin approval remains pending; do not retry pushing or include the unrelated naming edits, collaboration draft or native benchmark directory in this checkpoint.
## First-agent recovery checkpoint
- A reproduced Escape/backdrop dismissal during agent creation now keeps the form and its result visible. Pending creation has a readable progress label; controls return after a response. Failures preserve the user's choices, and a new folder/engine choice clears the obsolete error.
- Missing/invalid folders and missing tmux now explain recovery on the named machine. Unknown server details retain their diagnostic text. An unanswered request says the result is unconfirmed and recommends checking Search before creating another; no automatic retry occurs. [The onboarding notes](harness-v2-appearance-onboarding.md) record the source recheck and product rationale.
- Validation: the regression failed on the previous implementation; 46 onboarding/profile/split/async checks now pass. Analyzer has no errors/warnings and the existing 12 vendored infos. Isolated 880×560 renders cover pending, folder failure and timeout. Artifacts: `/private/tmp/harness-v2-onboarding-recovery-{before,tests,render,analyze}.log` and `/private/tmp/harness-v2-onboarding-recovery-{pending,folder-error,timeout}.png`. No real agent input or install was used.
- Public-origin push approval remains pending. Continue local checkpoints and do not retry pushes until it arrives. Preserve the unrelated first-agent swarm-naming edits in `app_state.dart`/`swarm_state_test.dart` and the collaboration design draft.
## Search match visibility checkpoint
- Both search locations now emphasize matching text in names and visible context using font weight. Commands use the same presentation. Ranking chooses the emphasized field: an exact project/machine match takes precedence over incidental fuzzy letters in a title. Hidden search metadata is not painted into an unrelated label. Empty queries retain the previous plain presentation.
- Text remains one accessible label with the same one-line truncation. Unicode emoji and combining sequences remain intact. Work is limited to constructed result rows, with caps on highlight terms and label length. Matching intervals are sorted and traversed once; duplicate terms do not repeat emphasis work. No output/network subscription or preview activation is added.
- Validation: 48 search/navigation/keyboard checks passed, then 21 final algorithm/shared-matcher/render checks passed after the performance refinement. Analyzer has zero errors/warnings and the existing 12 vendored infos. Isolated renders were reviewed for top search, inline New swarm search, an 880×560 window and command search. The foreground app has not yet been rebuilt for this checkpoint.
- Artifacts: `/private/tmp/harness-v2-search-highlight-{tests,final,analyze}.log` and `/private/tmp/harness-v2-search-highlight-{top,inline,narrow,commands}.png`. Debug CPU measurements for ten labels were 0.263 ms p95 for ordinary labels and 0.455 ms p95 for a deliberately long repeated fuzzy query. These measure emphasis construction, not native interaction/display latency; details are in [performance notes](harness-v2-performance.md).
- Next: another first-use pass and measured interaction performance. Preserve the existing simple defaults and real-agent drafts. Public-origin push approval is still pending; do not retry until it arrives.
## Keyboard customization checkpoint
- Production startup now loads the optional `~/.config/harness/keybindings.jsonc` file (or its XDG location). Starting with no file creates nothing. Settings and the shortcut sheet offer **Edit keyboard config**, a context selector, the current path, and readable error details. The explicit edit action creates a commented template with command IDs and opens the associated editor. Invalid edits keep the last working bindings; the workspace shows a notice.
- The existing defaults remain authoritative: Cmd-H/J/K/L and Cmd-arrows move focus, Cmd-S opens layout, Cmd-R refreshes, Cmd-B opens Boss mode, and Cmd-number selects a pane. The workspace uses resolved bindings before agent input. Search in each field uses its configured picker actions; Cmd-P retains the existing explicit jump to titlebar search. Menus, search actions, command hints, tooltips and both help layouts use the effective configuration.
- Native menus display the resolved shortcut while yielding keyboard dispatch to the focused input. The titlebar editor owns its own configured keys through a scoped local monitor. Unbinding removes fixed fallbacks. Sequences can use ordinary suffixes, show temporary prefix feedback, and cancel on failure, Escape, focus change, reload or blur without replay into query/agent input. Terminal composition is checked through the actual input client's marked range, independently of the painted composition preview.
- Mac editing, window and font shortcuts retain native ownership; conflicting custom strokes (including sequence suffixes) are rejected with an explanation. Remapping does not require adding modifier-heavy defaults. The provider is injected in tests, so no test reads or edits the user's configuration.
- Validation: **1,155 Flutter tests passed, one existing skip**; **51 native decoder checks and 319 AppKit titlebar checks passed**. The native checks use the actual Dart-exported configuration in a hidden native field. Final rendering/integration checks also passed after replacing missing Tab/Return glyphs with icons and making the sheet's Close button neutral. Analyzer has zero errors/warnings and the same 12 vendored infos. No real agent received test input.
- Artifacts: `/private/tmp/harness-v2-keymap-runtime-{full-tests,native,final-checks,analyze,build}.log`, `/private/tmp/harness-v2-keymap-{settings,narrow,sheet}.png`. Visual review covered both help layouts, custom and unassigned keys, and an 880px window. Release build succeeded and the exact development preview reopened after PID 31252 was normally quit and confirmed exited. Computer-use capture still returns `cgWindowNotFound`; visual evidence is from isolated renders, not a live-window capture.
- Push status: `364f1fb` is on `origin/app-v2`. Subsequent preview/native checkpoints are local (`f04f6d3`, `cd0aa0f`, `fcb8b33`). Automatic approval review rejected pushing to the verified existing public origin `autonomous-ai/autonomous-harness`, despite ADMIN access and the user's earlier push instruction. Explicit approval naming that public destination is pending; **do not retry pushes until it arrives**. Continue local work and commits.
- Saved as local commit `bf7f37d`; the rebuilt preview is running. Search match highlighting is covered by the newer checkpoint above.
## Optional search preview checkpoint
- The eye control in open search, or **Cmd-I** while editing its query, toggles a short output preview. It starts hidden for each search session. Both the titlebar and New swarm field keep their own query, caret, selected result and Enter action. Commands, groups and closed History entries do not show an agent-output preview.
- The preview snapshots only an already-retained matching machine/agent session. It scans at most 160 rows and 192 cells per row, keeps at most 12 nonblank lines, and retains only the current excerpt. Repeated query edits on the same selection reuse that excerpt; changing selection or toggling off/on captures again. Missing output gets an honest empty state. No network request, terminal attachment, input, resize or viewport mutation occurs.
- The excerpt takes a compact bounded area below results and can scroll independently. The input stays in place. The final visual pass corrected excess footer space and replaced the Return text glyph with the same icon used for command actions. The native Cmd-I path and Flutter path both respect IME composition and ignore repeated toggles.
- Validation: **1,148 Flutter tests passed, one existing skip** and **297 AppKit checks passed**. Analyzer has no errors/warnings and 12 existing vendored infos. Isolated renders covered titlebar, New swarm and an 880×560 window; no real agents received test input. Artifacts: `/private/tmp/harness-v2-search-preview-{tests,full-tests,analyze,native,final-render}.log` and `/private/tmp/harness-v2-search-preview-{top,inline,narrow}.png`.
- The debug extraction fixture measured 0.033 ms p95 for 12 output rows and 0.084 ms p95 for 160 blank rows with 4,000+ retained rows. This is extraction CPU time, not native input-to-display latency; details are in [performance notes](harness-v2-performance.md).
- Next: file-remapping ownership across AppKit and Flutter, keeping the approved defaults unchanged. Match highlighting remains a small search follow-up.
- Release build succeeded (`/private/tmp/harness-v2-search-preview-build.log`) and the exact development preview was reopened. PID 23328 was normally quit and confirmed exited before rebuilding; re-observe the current preview before later interaction.
## Keyboard-accessible first use checkpoint
- New agent opens immediately with a simple dimmed backdrop. The failed engine-check explanation is brief and readable; conditional CLI troubleshooting lives in Advanced. Cancel uses neutral secondary text. Explicit installation and creation behavior is unchanged.
- Machine, project folder and coding-agent controls now participate in Tab traversal. The shared select field supports Enter/Space, arrow navigation, Escape and return to the field after selection. Focus is visible without a thick glow. Folder selection restores keyboard focus after the native or remote picker completes.
- Collapsed Advanced content remains mounted for profile discovery, but cannot receive invisible keyboard focus. Submitting also excludes the choices from keyboard focus while the explicit operation is running.
- Validation: **1,144 Flutter tests passed, one existing skip** (`/private/tmp/harness-v2-form-full-tests.log`), including keyboard-only first-agent creation and picker selection on macOS, Windows and Linux test variants. Analyzer has no errors/warnings and 12 existing vendored infos. Isolated renders of the form and focused folder were reviewed (`/private/tmp/harness-v2-form-{form,keyboard}.png`); the render test also passed. These are fixture results, not real first-install conversion measurements.
- The optional preview is now recorded above. File-remapping ownership across AppKit and Flutter remains next; keep the approved simple shortcuts unchanged.
- Release build succeeded (`/private/tmp/harness-v2-form-build.log`) and the exact development preview was reopened. Preview PID 14152 was normally quit and confirmed exited before writing its bundle; no real agent received test input. Re-observe the next preview PID before any native interaction.
## Deliberate splits checkpoint
- `> Split right` and `> Split down` open New agent with the focused agent's machine and known folder preselected. Creation remains explicit. The new agent takes half that agent's rectangle; neighboring agents retain their rectangles, terminal elements and pins. These commands are available only when both resulting agents meet the measured minimum size. No existing key was reassigned.
- The captured split is checked before creation and again after its asynchronous reply. It remains tied to the original Swarm and pane order, even after tab navigation. If the original layout closes, changes or becomes too small while creation is in flight, the agent remains in Search and an honest notice explains why it was not inserted; no second creation or destructive cleanup occurs.
- Manual shapes persist through offline restoration and closed-Swarm recovery. Closing an agent expands a complete neighboring edge into its space. If interlocking cuts prevent that local repair, that pane count returns to its selected preset. Reopening restores the original manual shape only if the intervening membership and sizing still match; newer sizing is retained. Cmd-S resets to the chosen preset.
- Visual review exposed an existing assignment edge case: a machine without a terminal-capability report could receive new membership without notifying the screen. That path now publishes its change immediately; the new split renders with retained output or the existing unavailable state.
- Validation: **1,138 Flutter tests passed, one existing skip** in the final full run after the notification correction (`/private/tmp/harness-v2-split-full-tests.log`). Focused split checks and the isolated render also passed. Analyzer has no errors/warnings and 12 existing vendored infos. Other artifacts: `/private/tmp/harness-v2-split-{tests,final-checks,analyze,render,build}.log` and `/private/tmp/harness-v2-split-{placed,form}.png`. The rendered form and actual five-agent split were reviewed with system fonts; this remains isolated UI evidence.
- The Release build succeeded and was relaunched. The verified preview PID 820 was normally quit and confirmed exited before rebuilding. Re-observe the relaunched preview before later native interaction. No real agent received test input.
- The subsequent onboarding copy and keyboard pass is recorded above. Optional bounded search preview and file-remapping ownership across AppKit and Flutter remain next.
## Controlled resizing checkpoint
- The existing Swarm gaps now resize adjacent agents. Connected divider segments stay aligned; disconnected side stacks can resize independently. Limits derive from the existing 40-column/12-row terminal floor. A deliberately dense preset cannot shrink further below its existing size. Double-click balances the neighboring space.
- Proportions persist per Swarm, pane count, preset and responsive orientation/column count. Drag frames stay in memory, with an ordinary coalesced layout save when the drag finishes. Saved data is bounded and rejects malformed/overlapping rectangles. Offline restoration and closed-Swarm reopening retain sizes. Selecting any layout through Cmd-S, including the current one, resets custom proportions for that pane count.
- `> Resize panes` focuses a nearby divider. Arrows move in 2% steps, Shift-arrows in 10% steps, Tab selects another divider and Escape returns to the agent. A temporary hint explains those keys. `> Reset pane sizes` resets directly. No existing shortcut changed. Pointer cancellation restores the starting arrangement; input focus returns to the original agent. Terminal elements and sessions stay mounted.
- Validation: **1,131 Flutter tests passed, one existing skip**, including geometry limits across all existing presets, saved/offline/reopened proportions, cancellation and exact next-key ownership. The final temporary-hint refinement passed the focused resize/canvas run plus an isolated render. The render initially targeted the crossing of two dividers; its corrected pointer position and explicit width assertion verify the intended drag. Analyzer has no errors/warnings and 12 existing vendored infos. Artifacts: `/private/tmp/harness-v2-resize-{tests,full-tests,final-checks,analyze,render,build}.log` and `/private/tmp/harness-v2-resize-{resized,focused}.png`.
- Release build succeeded and the preview was relaunched. The verified preview PID 84992 was normally quit and confirmed exited before rebuilding; re-observe the current PID before another restart. Live native capture remains unavailable; current visual evidence is isolated rendering with system fonts. No real agent received test input.
- Next: deliberate right/down splits using the same stable rectangles, optional cached search preview, and file-remapping ownership across AppKit and Flutter.
## Commands and keyboard integration checkpoint
- Both real search fields now accept `>` for existing workspace commands. Command results use compact rows and show the actual default shortcut. Commands stay out of ordinary agent/swarm search and History; clearing `>` returns to regular navigation. A small hint appears only in open, empty search. No new permanent button or conflicting shortcut was added.
- Search and keyboard actions share the same callbacks. The command catalog derives workspace bindings directly from the current live table, including Cmd-H/J/K/L and arrows, Cmd-B, Cmd-S, Cmd-R, Cmd-number pane selection, Cmd-Enter zoom, Cmd-Shift-P pin and current tab/history keys. The withdrawn modifier-heavy defaults are removed. **File remapping remains unconnected until native menus, Flutter input, help and native search can agree on its effective bindings.**
- Availability is checked again at selection and execution. A command cannot add an agent or be resolved as an agent destination. Queries never reach a session. Fixed return focus after non-navigation commands and made Rename focus its selected name immediately; the Rename controller now follows the dialog lifecycle instead of a delayed disposal timer.
- **1,125 Flutter tests passed, with one existing skip.** Analyzer: no errors or warnings, 12 existing vendored infos. After making command rows compact, all 15 focused command/search checks passed. Final visual fixtures for both inputs were rendered and reviewed; their helper initially failed its cleanup invariant after enabling real shadows, then was corrected to restore that test-only flag. Logs: `/private/tmp/harness-v2-command-{full-tests,focus,final-checks,analyze,render,build}.log`; images: `/private/tmp/harness-v2-commands-{top,inline}.png`.
- Release build succeeded. Before rebuilding, normally quit verified preview PID 71858 and verified it exited. Re-observe the relaunched preview process/window before later interaction. No real agent received test input and no real session was closed for testing.
- File-remapping ownership across AppKit and Flutter remains pending. Do not reapply `/private/tmp/harness-v2-keyboard-wiring-before-inline-search.patch` blindly; its search paths and assumptions are obsolete.
## Previous checkpoint: first use
- The onboarding implementation is in the rebuilt preview. Setup now has one visible installation plan and a direct Install action; manual setup remains secondary. It keeps read-only probing, explicit installation consent, terminal handoff, verification and recovery. Sign-in shows the value and a static two-agent swarm example; the action remains visible at 880×560. The fresh local empty workspace explains folder → agent → work. Existing available agents can be opened directly. The full machine list stays available for linking/offline/multiple-machine states and discovery.
- New agent preselects a known installed coding agent, uses This computer for the local target, and puts Project folder before Coding agent. Late engine discovery cannot replace a deliberate user choice or a submitted launch. Both real search fields and returning-user workflows remain in place. No test task is submitted to real agents, and the example is static.
- **65 focused checks and the full 1,122-test Flutter suite passed, with one existing skip.** Analyzer has no errors/warnings and 12 existing vendored infos. The full run initially caught an implicit non-macOS tab-label color animation; that animation was removed and the complete suite rerun successfully. First-use render fixtures were visually inspected, including the minimum sign-in window and fresh setup/workspace states. Release build succeeded. Logs: `/private/tmp/harness-v2-onboarding-{tests,focus-tests,full-tests,analyze,render,build}.log`; images: `/private/tmp/harness-v2-onboarding-{login,setup,empty,existing}.png`.
- Normally quit verified preview PID 56329 before rebuilding and relaunched the resulting app. Re-observe the process/window before later interaction. CUA previously returned `cgWindowNotFound`; current first-use evidence is isolated rendering and behavior checks, not live onboarding through the user's account. No sign-out, new provider install or live-agent input was used for validation.
## Previous checkpoint: coordinated palettes
- Added six coordinated palettes in Settings → Appearance: Graphite (neutral default), Dusk (the earlier plum), Midnight, Slate, Forest and Ember. Preview cards support mouse, keyboard and accessibility activation. Selection applies immediately, persists in order and loads before the first frame. Existing theme tokens feed Flutter surfaces, native tabs/search and retained terminal defaults. Agent-emitted colors and the existing ANSI ramp remain intact; controllers, buffers, focus, fonts and sessions are retained.
- Verification: **1,118 Flutter tests passed, one existing skip; 295 AppKit checks passed** including hidden native window layout and retained search/tab identity through a palette change. Analyzer has no errors/warnings and the same 12 vendored infos. A focused four-test accessibility rerun passed after correcting the test's semantics-handle cleanup. Settings was rendered and visually inspected at `/private/tmp/harness-v2-palette-settings.png`; the Release build succeeded. Logs: `/private/tmp/harness-v2-palette-{full-tests,native,analyze,accessibility-tests,build}.log`.
- Normally quit the verified preview PID 43778 and launched the rebuilt preview, **PID 56329** at the last check. CUA cannot currently obtain its window (`cgWindowNotFound`), although the process is running. Do not claim live palette-switch verification. Continue with isolated UI fixtures and re-observe before any later native interaction. No real-agent input was sent.
- [Appearance and onboarding research](harness-v2-appearance-onboarding.md) records primary-source observations, decisions and the first-use changes described above. Use isolated state rather than signing out the user's real account.
- User authorizes autonomous decisions and frequent commits/pushes while away for eight hours. Keep the active goal running, preserve simple Command shortcuts and explicitly disabled Models placeholders. After onboarding, continue keymap runtime integration, commands in search, controlled resizing and optional cached preview, with performance and input correctness checks.
## Active follow-up: in-place New swarm search and account-based Models
- Latest corrections rebuilt: Models has a 440-point minimum width and measured native text-cell insets so status strings fit in full. Swarm History rows show the sole machine name or the distinct machine count; empty swarms have no invented machine. Offline agents count and setup-only panes do not. Both Flutter search surfaces/full History and native History use the four-pane `square.split.2x2` icon. Search result rows no longer repeat actions; the footer uses readable light text and Go to agent/Go to swarm.
- Latest checks: **37 focused Flutter tests and 291 AppKit checks passed**, followed by a successful Release build (`/private/tmp/harness-v2-menu-consistency-{tests,native,build}.log`). A synthetic search render passed and was visually inspected (`/private/tmp/harness-v2-search-consistency.png`). Its headless font fallback/disabled-shadow artifacts are not the native app rendering. Normally quit PID 31652 and launched one rebuilt preview, **PID 43778** at last check. Live Models accessibility confirms consistent account IDs and complete status strings. Menu capture falls back to the main window, so do not claim a live menu screenshot. The current four saved tabs (Today, autonomous-workshop, iMac -Home, New swarm) were retained; no real-agent input was sent.
- The user is going to bed for eight hours and explicitly authorizes autonomous product decisions without waiting for further approval. Continue all agreed work, then further focused research adapted to agent workflows. New priorities: coordinated palette choice in Appearance and first-run onboarding that reaches a useful agent quickly. Preserve the explicit simple-key decisions and disabled Models placeholders.
- New user direction: typing in the New swarm field must stay there, with results attached beneath it. Both search surfaces share ranking/actions. Selecting a machine/project directly opens its swarm with all selected-result members; no intermediate Browse agents screen. Reuse a matching open swarm or the empty target tab, preserve existing shared sessions, and refuse oversized or removed memberships without a partial swarm.
- Implemented `SwarmInlineSearch` with its own editable field/caret, layout-following overlay, cached search controller, shared result rows/keys, cancellation and IME guard. Removed the scoped/browse step from Flutter and native search commands. Result copy now says Open agent/Open swarm.
- Models follow-up: subscription rows show provider/account on the left and remaining allowance on the right, with no submenu or action. After the user requested consistency, every identified account uses the same short fingerprint (`Account aabbcc`); the unused email-reading additions were removed. Known accounts still deduplicate across machines. API placeholders are OpenRouter and fal.ai; Local placeholders are DeepSeek V4 Flash and Qwen3.8-27B; all remain disabled, as does Add Model.
- Verification so far: 1,114 full Flutter tests pass with one existing skip; analyzer has no errors/warnings (12 existing vendored infos); 288 native AppKit checks pass including hidden-window layout. Added direct-open/reuse tests, in-place geometry/cancellation/IME/native-field isolation tests, exact first-key agent focus tests, and display-identity tests. Logs: `/private/tmp/harness-v2-inline-models-{full-tests,analyze}.log`, `/private/tmp/harness-v2-inline-behavior-tests.log`, `/private/tmp/harness-v2-account-menu-native.log`. **Release rebuilt successfully** (`/private/tmp/harness-v2-inline-models-build.log`). Normally quit PID 511 and launched one preview, PID 31652 at last check. Live CUA visually verified an actual caret and results directly beneath the New swarm field, with the native titlebar field inactive. A query-entry attempt and temporary-tab cleanup attempt were declined by the CUA stale-state guard while the user changed workspaces; no query was sent. Live interaction was paused. One empty New swarm opened for review may still be present; re-observe before any cleanup, and never remove it if the user has added work. The user’s current layout differs from earlier snapshots and must be preserved. Models layout/alignment is verified by AppKit checks, not yet by a live menu screenshot.
- Concurrent changes from another user session are present in `app_state.dart`, `swarm_state_test.dart`, History serialization in `swarm_screen.dart`, History title layout/icon resolution in `SwarmTitlebar.swift`, and corresponding History/native tests. Preserve that work and stage this batch selectively; do not claim those edits as this session's implementation.
- **Keyboard correction is authoritative:** retain Cmd-H/J/K/L and Cmd-arrows for focus, Cmd-S for layout, Cmd-R for refresh, Cmd-B for Boss mode. The user explicitly rejected modifier-heavy navigation and a general-purpose-terminal product assumption. Rewrite the unused draft catalog before enabling remapping. The runtime patch was saved and removed from the working tree before this search follow-up: `/private/tmp/harness-v2-keyboard-wiring-before-inline-search.patch`. Do not apply it blindly: both search surfaces and the agreed defaults have changed.
- [The revised keyboard plan](harness-v2-keyboard-system.md) and [prototype evidence](harness-v2-prototype-review.md) are current. Manual splits/resizing, optional lightweight search preview and commands in search are explicitly approved; editor/diff handoff, structured output navigation and automation API are parked. The latest direction above supersedes the earlier review pause.
## Previous batch: Models, closed agents and search performance
- **Latest scope:** the user authorized replacing the redundant Swarm menu with Models. Models has Subscription, API and Local sections, then Add Model. Subsequent instructions explicitly make **API, Local and Add Model disabled placeholders**. No provider connection, key entry, local discovery, download or benchmark runs from those placeholders.
- Subscription reads the existing Claude/OpenAI usage sources and grouped remote accounts on demand. A native cached menu opens immediately; requests coalesce and are limited to one refresh per minute, with no startup or background polling. Rows show remaining allowance for the most constrained reported window, with individual windows/reset times in a native submenu. Unknown, failed, expired and non-finite readings never become invented percentages. Distinct remote accounts retain machine context; account identifiers/credentials are not sent to AppKit.
- Search retains its native Cmd-P owner in Edit; Rename Swarm moves to File; Needs Input moves to View. Next/Previous Swarm menu rows are removed; the existing keyboard bindings remain. API shows disabled OpenRouter API and fal.ai API rows; Local has a disabled Local models row; Add Model has no action or shortcut.
- History now uses provider artwork for agent entries, including Claude's orange mark. PNG assets decode once to bounded native-menu thumbnails and are cached. Recently Closed records both individual agent removals and complete Swarm closures in one chronological, session-local list of at most 24. Closing a Swarm makes one group record, not additional child records. Cmd-Shift-T and File > Reopen Last Closed restore whichever kind was closed most recently.
- Agent restoration reuses a surviving shared terminal or reattaches the existing agent, restores its original Swarm/index/pin/focus where possible, handles missing parent Swarms and capacity, and rejects stale entries. Closure records retain metadata only, not terminal buffers. New synthetic regressions cover slow close/reopen, duplicate prevention, live composer preservation, full destinations, mixed history and sign-out cleanup. No live agents were closed to test recovery.
- Unified catalog construction now indexes membership once, avoids unused agent search strings and deduplicates aggregate metadata. Ranking stops at a decisive title match without hiding better metadata behind a fuzzy title. The paired 2,059-destination headless benchmark reduced median catalog construction 50% and controller open/dispose 44%; scoped search did not improve. See [performance evidence and limits](harness-v2-performance.md). No native display-latency claim is made.
- Checks: **1,106 full-suite tests passed with one existing skip**, plus 281 AppKit checks including hidden native window/menu checks. The 63 focused Flutter regressions also passed. Analyzer has no errors or warnings and the same 12 vendored infos. Logs use `/private/tmp/harness-v2-models-{tests,native,analyze,full-tests}.log`.
- Release build succeeded with `lib/main.dart` (`/private/tmp/harness-v2-models-build.log`). Normally quit PID 55560, rebuilt and launched one preview, **PID 511** at the last process check. Revalidate before a later restart. Live CUA verified the new menu order, local and distinct remote subscription readings, unavailable-auth state, disabled API/Local/Add Model items, History's agent entries and combined empty-closure wording. Menu screenshots were unavailable from the automation surface; native AppKit icon/section checks and the real window screenshot provide the visual evidence available. A first observation used an inactive window; after bringing it forward, cached readings and pane contents were current. Cmd-P and Escape were verified from the existing empty New swarm. Returned to that same New swarm with all five Swarms and their memberships intact; no agent was created, stopped or closed for testing.
- The user is away for approximately eight hours from 2026-09-13 14:45 UTC. Continue with the existing goal: a fast, dependable terminal workspace for directing agents across machines. Priorities after this batch: complete cohesive keyboard dispatch/file remapping/native menus/help; measure interaction and idle/background performance; improve search match visibility and focus reliability. Use isolated sessions for input testing. Keep this log and the [implementation queue](harness-v2-developer-tools-research.md) current.
- Keyboard wiring is preserved in `/private/tmp/harness-v2-keyboard-wiring-20260913-search-polish.patch`, SHA-256 `ef2841a963c4392abc612dba186c12ee2c3c05b3cfe87ad06c4ea21d580a6466`. **It must be rebased against the current combined-history handlers and Models additions before use.** It no longer passes `git apply --check`; never overwrite current work with it. The parser/dispatch foundation is committed, but runtime integration remains incomplete.
## Previous continuation: search polish and agent terminology
- At this stage the user had frozen menu reorganization for discussion. The later Models authorization above supersedes that pause; broader menu/dashboard expansion remains outside the agreed scope.
- The native search bar now uses the same 13-point text size as the tabs, a 32-point field, balanced icon/text insets, and a quiet one-point inactive rim. The blue focus ring is removed. While searching, the field has rounded top corners and extends into the attached results on one matching `#3d333f` surface; the gap, separate top border and rounded top corners of the result panel are removed. The Flutter fallback follows the same sizing and connected layout. No animation, blur or additional search work was introduced.
- The actual AppKit editor keeps the same text inset as the inactive field. Isolated renders covered inactive, focused, typed and resized long-query states. The first render caught a borderless native editor placing text at the upper-left corner; the cell's editing and selection rectangles now preserve the intended padding.
- User-facing Swarm counts now say **0 agents / 1 agent / N agents**, including recently closed History entries. Setup panes without an agent are excluded. Search and Needs Input say **Open agent**, and File/shortcut help say **Remove Agent from Swarm**. Internal view/session names remain implementation details.
- **69 focused Flutter tests and 255 AppKit checks passed**. The native regression reproduced search cancellation on window blur before the fix and now confirms query/input ownership survives app switching. Initial native window focus stays in the workspace. Search and History tests were rerun after the focus fix. Analyzer has no errors or warnings and the same 12 existing vendored infos. Release build succeeded with `lib/main.dart`. Logs: `/private/tmp/harness-v2-search-polish-tests.log`, `harness-v2-search-polish-titlebar.log`, `harness-v2-search-polish-analyze.log`, `harness-v2-search-focus-tests.log`, `harness-v2-search-focus-build.log`.
- The first live typing check exposed the window-blur path: it cancelled search, restored terminal focus and put the unsent word `workshop` in the left strategies prompt. No Return was sent. The user explicitly approved removing that word; eight Backspace events removed it, and CUA verified the prompt was clear. Search now retains its query and native input owner across app switches; Escape, explicit navigation and outside clicks still close it. **Use an existing empty New swarm or isolated fixtures for any future test typing.**
- Normally relaunched one final Release preview after the correction, **PID 55560** at the last process check. Live CUA verification used the existing empty New swarm: clicking the native bar, typing `workshop`, Cmd-P select-all, replacement typing `New swarm`, and Escape all stayed in the same input and showed the correct `0 agents` result. The joined field/results surface was inspected. Returned to the previously active Focus swarm; the five Swarms and their membership are intact. Revalidate the preview PID before any later restart.
- Keyboard customization remains the next track. Dispatcher, command catalog, platform validation, inherited configuration and focus-aware host work is preserved; **31 isolated foundation tests pass**. The incomplete screen/search wiring is parked in the patch identified above. It passed `git apply --check` at this historical point; the current changes require a rebase. Native menu/remap integration, command search and dynamic shortcut help still need completion before that wiring is built or shipped.
- The native latency benchmark remains paused calibration work with no accepted figures. `docs/prototypes/` and `docs/harness-collaboration-design.md` are unrelated user work; leave them alone.
## Previous continuation: editable title-bar search and keyboard configuration
- The top-right search control is now a **real editable input**, using AppKit’s native field editor on macOS and a Flutter TextField in the fallback title bar. Clicking places the caret there; Cmd-P focuses/selects that same input. It expands left while active, and a modeless result list is anchored directly below it. There is no duplicate global-search input, centered dialog, dimming or blur. New swarm’s search launcher focuses the same bar; full History retains its separate session view.
- `SwarmSearchController` shares catalog/ranking/actions between input and results. The catalog includes agents, Swarms, machines and projects, fuzzy matching across names/branches/folders/machines, and saved cross-machine project associations. Output notifications reuse normalized results; typing makes no file/network requests. Native edits are never echoed back over newer text/IME input, and keyboard result scrolling happens before paint.
- Return focuses an existing pane (switching Swarms if needed) or opens an unviewed agent in the captured current Swarm. **Add to this swarm**, also Cmd-Enter while searching, explicitly shares an existing session here. It reuses the exact pane/session and focuses it for the next terminal key. A stale result or closed target cannot redirect the operation to unrelated work.
- Machine/project results browse their agents in the attached list, keeping the caret in the original bar. Opening the whole reviewed group is an explicit **Open N agents as swarm** action that creates a new Swarm, observes capacity and revalidates member identities. Browsing, filtering and cancellation do not change the current arrangement. New arrivals are not silently added to a reviewed group operation.
- Removed the separate Cmd-Shift-F Add picker and its default shortcut, floating pane +, top-right bell, obsolete picker/selection code, and wallpaper rotation/menu/state. Needs Input remains in the native Swarm menu and Cmd-Shift-I. New agent remains in File and Cmd-N. No Cmd-O launcher was added. The selected mountain/lake dusk image is the only wallpaper asset in source and in the built bundle; only an empty New swarm loads it.
- Live CUA review of the rebuilt Release confirmed an actual accessible native search text field; typing `autonomous-workshop` filters the attached results; clicking its project shows all three local/remote members and returns focus to the same input. Escape closes it. Cmd-P from the terminal focuses the bar; Cmd-P again selects the existing query, and replacement typing stays in that field. The final search was cancelled, leaving the original four Swarms and three-pane Workshop arrangement intact. No test input was sent to any agent, no view was added, and no daemon was restarted.
- Verification: **1,075 full Flutter tests passed, one existing skip; 252 AppKit checks passed including hidden-window field editing/layout; analyzer has no errors/warnings and 12 existing vendored infos**. Search regressions cover one retained editable field, attachment geometry, one-frame scrolling, group/back focus, IME acceptance guards, query cancellation/next-key delivery to the original synthetic terminal, cross-Swarm focus, Add here, and native query changes without text echo. Native checks exercise the actual field editor, Unicode/select-all, composition command guards and return to the content controller. Release build succeeded. Logs: `/private/tmp/harness-v2-inline-search-full-tests.log`, `harness-v2-inline-search-tests.log`, `harness-v2-inline-search-titlebar.log`, `harness-v2-inline-search-analyze.log`, `harness-v2-inline-search-build.log`. Native end-to-end latency measurement remains paused and has no accepted result yet.
- Remote Workshop branch labels remain unavailable from the old iMac Home daemon. The implemented CLI agent metadata includes Git branch, but production daemons have not been upgraded or restarted. The existing remote file API deliberately excludes dotfiles/Git metadata; do not bypass that boundary or infer a remote branch from a local checkout.
- [Keyboard-system research and the complete shortcut audit](harness-v2-keyboard-system.md) is the next implementation track. File-first JSONC parser/resolver and bounded live-reload core pass 18 isolated tests (including invalid edits, stale reads, atomic saves and symlinked dotfiles). **They are not integrated into runtime dispatch, native menu equivalents or help yet.** Preserve terminal Control/Meta input while finishing that integration; the other proposed default changes are not shipped.
- The sole final V2 preview was **PID 7639** at the last read-only process check; revalidate before any later restart. Continue on `app-v2`. Do not merge/release, update production daemons, send test input to real agents, restore old layouts or run overlapping V2 previews. The standalone native benchmark remains untracked calibration work; foreground runs are paused while the user is using the app. `docs/prototypes/` is unrelated user work and must be left alone.
## Previous continuation
- The user asked to review all prototypes in `autonomous-ai/harness-new-ui`, keeping only a few durable ideas. [The review](harness-v2-prototype-review.md) covers all six running variants and source at `19ced37`. Keep durable sessions, fast navigation, explicit layout changes, and exact return. Next small addition: optional cached Cmd+P preview/highlights. Do not adopt the permanent shelf, primary/supporting hierarchy, extra footer/context row, model dashboard, generic handoff system, or a default Ctrl+B prefix that conflicts with tmux.
- Reconnect reuses the `TerminalSession` and mounted `TerminalView`. A replacement keyframe restores a matching viewport, Find bookmark/match and exact surviving selection; composer text/caret and Find controllers remain. Generation guards isolate stale output, input, resize, upload, heartbeat and open/recovery completions. No stale queued input is replayed. Atomic keyframe construction leaves retained output intact until replacement succeeds. Arbitrary IME preedit continuity and a real remote interruption still need native validation.
- Chrome is now the primary menu reference. History has Back/Forward (`Cmd+[` / `Cmd+]`), up to 10 Recently Closed Swarms, 15 Recently Visited destinations and Show Full History (`Cmd+Y`). Cmd+P is in Swarm; Reopen Closed Swarm is in File. The searchable History view is explicitly **This session**: 64 recent identities, a 128-location exact-pane trail, and 24 recoverable closed Swarms. It does not persist an all-time browsing log or terminal text.
- The pane header now has one agent title, a visible available branch, machine and right-aligned controls. Repeated project-name text is removed. Full checkout context remains in the tooltip; narrow headers use a machine icon with its full name. Isolated renders were inspected at 740, 480 and 280 points.
- The permanent Next wallpaper button is removed. Use native View → Next Wallpaper or the empty New swarm context menu. The View action disables for populated Swarms. Active canvases retain the flat selected-tab color.
- The Workshop issue was traced to older daemons returning agent lists without project/cwd metadata. Local `/api/status` supplies real folders; the old remote list does not. Project options → Choose agents now persists explicit cross-machine associations without attaching a terminal. Automatic grouping still uses canonical repository remote, or machine plus folder when no remote is known. Branches/worktrees do not split a repository project.
- A local compatibility reader resolves Git root/origin/HEAD asynchronously, caches at most 256 folders and watches Git metadata for branch changes; no shell process, network call or rendering-path read is used. Daemon-supplied metadata remains authoritative. The lightweight parser does not implement Git include/includeIf or URL rewrite semantics, and older remote daemons still cannot provide branch labels through this fallback.
- After normally quitting PID 50524, the requested iMac Home Workshop association was saved through `HarnessFileStore`; every other state value was verified unchanged. This updates project starters, not the membership of already-created Swarms. No production daemon was restarted or upgraded.
- Validation: **1,050 Flutter tests pass, one existing skip; 229 AppKit checks pass**, including hidden native window layout and Chrome menu behavior. Analyzer: no errors/warnings and 12 existing vendored infos after cleaning all new diagnostics. New project-launch, exact-pane History, local Git worktree/watch and reconnect view/race regressions pass.
- Release build succeeded and the sole preview was normally relaunched as **PID 88567**; revalidate its PID before any later restart. Live CUA review confirmed compact headers with the actual local `main` branch, full New swarm wallpaper with no permanent button, View → Next Wallpaper, Chrome History/its searchable session view, and native Back returning to the same Workshop pane. Cmd+P search → Return visibly focused the other existing Workshop pane; Cmd+P → Return restored the original pane. No input was sent to an agent. A direct bracket-key request was unsupported by the CUA key-name API; native Back was checked through its menu instead, with shortcut routing covered by isolated checks.
- The live New swarm project count is **3** for Workshop. Project options show the two automatic local repository matches plus the checked **Workshop: NYC Chess Set — iMac -Home** association. The settings dialog was canceled after inspection, and the original Workshop Swarm/focus was restored. The existing Swarm remains its chosen two-pane arrangement; project starters include all three when invoked. No extra review Swarms, terminal attachments or agent messages were created by this verification.
## Resume here
Historical environment snapshot below. Start with [the current cross-computer handoff](harness-v2-handoff.md); local paths/PIDs and older design decisions here may be stale.
- Repository: https://github.com/autonomous-ai/autonomous-harness
- Branch: `app-v2`, tracking `origin/app-v2` in that repository.
- Resume folder: `/Users/ab/code/autonomous-harness`.
- Desktop: `desktop/`. CLI: `cli/`. Backend: `backend/`.
- The user resumed implementation here, requested real machines/projects after seeing the temporary QA app, and then asked Codex to keep working while away for a couple of hours. The original active goal is a polished, very fast, keyboard-first native app with each tab representing a Swarm.
- The QA app was closed, unregistered from Launch Services and retained as `/private/tmp/Harness V2 QA.disabled`. Review uses the normal `lib/main.dart` entry point, the existing Harness account, and saved V2 Swarms. Keep sample fixtures out of the foreground review app.
- The desktop is now unlocked and the user is actively reviewing the app. A stale Debug build briefly ran alongside Release and obscured the latest changes. Both previews were quit normally, the stale Debug bundle was unregistered and retained as `/private/tmp/Harness V2.previous-debug-1789267673713820000.disabled`, and only the updated Release preview was relaunched. Preserve the user's current saved arrangement; do not restore an earlier snapshot or launch duplicate V2 instances.
- Latest design direction: wallpaper fills an empty New swarm only. Populated Swarms use a flat `#463746` canvas matching the selected native tab. Tab hover, spacing and alignment are being compared with the user's Chrome references.
- The user requested research into expert developers' tools and a smaller feature set. [Developer-tool research and the keep/improve/remove/defer audit](harness-v2-developer-tools-research.md) documents firsthand sources and a proposed three-part focus: durable sessions, instant navigation, and steering agents without losing concentration.
- Cmd+P now jumps to existing agents and Swarms with fuzzy project/machine context and bounded recent-work history. Cmd+Shift+F remains Add agent. The jump dialog has no transition or backdrop blur; selecting an existing view is focus-only, including terminals controlled elsewhere. The 2,000-agent headless search check measured 1.06 ms median / 1.15 ms p95 CPU time; this is not native display latency.
- Cmd+Shift+I now opens **Needs input** from the existing bell or native Swarm menu. It searches live questions and agent/project/machine context, keeps the oldest first when search is blank, and shares focus-only navigation with Cmd+P. Cmd+P, Return takes you back to the prior agent. Both pickers scroll and highlight keyboard selections in the same frame. Nine new state/widget checks pass, including large text and the full terminal-input round trip.
- Swarm terminals now keep the same widget ancestry across tabs, zoom and presets, retaining unchanged cells and headers. The paired headless check reduced median tab-switch CPU time from 20.924 to 12.226 ms with 16 terminals and from 14.151 to 8.925 ms with 48; focus changes also improved. Settings route and section fades are removed. These are debug CPU measurements, not native input-to-display timings.
- Cursor timers now follow the active, focused terminal, stopping for hidden/covered views and inactive windows. With 48 retained terminals, the isolated five-second observation fell from 480 periodic callbacks to 10 in the foreground and zero when inactive. New swarm retains only its search caret timer. Link-modifier keyboard listeners exist only while hovering a visible link. The idle-work continuation's full suite passed 1,010 tests with one skip.
- Ordinary hidden output now updates the buffer without scheduling a renderer frame. The paired 16/48-terminal debug benchmark reduced hidden-output median CPU cost by 88%/84%; mixed visible/hidden output improved by 32%/51%. Restoring a view reconciles its current buffer, scroll and dimensions once; native caret coordinates coalesce after the frame. That continuation passed 1,014 tests with one skip; the current full suite passes 1,041 with one skip.
- The native-menu Release preview was rebuilt and normally relaunched; PID **50524** was the sole V2 instance at the last check. Revalidate before any later restart. CUA now accesses the real preview. Live review confirmed the native menu order, no Settings gear, File actions and disabled Close Agent View in New swarm, History menus/empty states, and Cmd+P opening with immediate typing into its focused search field. Escape returned to the unchanged New swarm. At this check the user had closed all agent views, so selecting/focusing a real pane was not exercised; isolated native-channel/widget regressions cover destination focus and the first terminal key. Do not add views or send real-agent input just to test. User window/menu activity interrupted a later menu-dismiss action; refresh state before any further UI actions. Earlier `cgWindowNotFound` failures no longer establish a current block.
- Cmd+F now searches retained output in the focused terminal; Cmd+G / Cmd+Shift+G and Enter / Shift+Enter move through matches. Escape restores the previous scroll position and input focus. The field occupies the existing header without resizing the terminal. Find pauses and releases its index when hidden or covered. A keyframe keeps the field, caret and query; read-only rendered panes remain searchable without taking control. Retained offline output is now searchable; only never-attached panes keep the setup guide.
- The latest hover pass uses 13-point native titles, 14-point leading space inside the 28-point hover shape, a 12-point corner radius and a 10-point close symbol. Both neighboring separators disappear on hover. The title layout is cached across hover redraws. Native selected shoulders still meet the flat canvas. Isolated native before/after images were inspected. CUA later captured the real strip and wallpaper; pointer-hover/drag review still needs an uninterrupted live window.
- The user reported that Cmd+P did not focus the selected agent. New tests reproduced two failures: the closing picker could restore the old terminal and overwrite the selected pane, and an offscreen result stayed outside the viewport. Both pickers now clear that stale focus restoration before activating their result. Explicit jumps refocus even the currently selected pane and reveal it before paint, accounting for changed canvas padding when leaving New swarm. Checks cover same-Swarm, repeated, zoomed, offscreen and cross-Swarm jumps, including the first key arriving only at the destination.
- Retained sessions now keep the same terminal renderer through offline, missing-machine, link-required and unavailable-agent presentation. The large frozen overlay and redundant connection overlays are removed; status and explicit Reconnect/Take control actions occupy the header. Offline output stays selectable/searchable, and disabled composer text remains intact. Tab switches no longer retry existing dead streams; unavailable retries keep the old session. A never-attached pane still shows setup guidance.
- The first native-menu pass removed the duplicate Settings gear and established Harness, File, Edit, View, History, Swarm, Window, Help. The latest continuation above replaces its separate recent-agent/Swarm submenus with Chrome-style sections and exact-pane Back/Forward. Settings stays in the app menu; non-macOS fallback keeps its Settings control. History caches presentation across output notifications and revalidates destination identities on selection.
- The user asked where the research suggestions live and whether implementation follows them. The developer-tool audit now starts with a compact status/next-work table; keep it current alongside this handoff.
- Continue implementation here. Do not create another repository or fork for V2.
```bash
cd /Users/ab/code/autonomous-harness
git status --short -b
git remote -v
git log -1 --oneline
```
The preview was developed from monorepo commit `9bd8cf1667310def711e8c491c9e6b317cdece78`. Current main through `84a23e5f8d358b78d24ba92ce185b482b5f97ebc` is now incorporated into `app-v2`: reboot restoration, release CI changes, and terminal input sequence recovery. Swarm transport fan-out still uses all deduplicated sessions. This does not merge V2 into main or publish a release.
The former preview folder `/Users/ab/code/harness-app-v2` is retained as a backup and contains the already-built app. Its `origin` now also points at the monorepo; the old personal fork remains under remote name `fork`. The old GitHub fork has not been deleted and is no longer the working destination. The existing `/Users/ab/code/autonomous-harness` checkout was clean before switching from `main` to `app-v2`.
## Product contract and design reference
This section preserves the earlier contract. Current Navigate/Add, Models, palettes, and onboarding decisions are in [the handoff](harness-v2-handoff.md).
Harness is one place to work with all your agents. Swarms are named, chosen collections of agent terminal views across machines and projects, shown as real native window tabs on macOS.
- No Models, Grid, permanent workspace sidebar, persistent workspace toolbar, or pane footer.
- Keep native traffic lights. Tabs sit beside them in the title bar, not in a Flutter row below a simulated title bar.
- Empty swarm: wallpaper, search, New agent, machine starters, project starters, Link machine, Add project.
- A machine/project starter seeds membership once. Discovery must not silently alter membership afterward.
- The same agent may belong to multiple swarms. Reuse one session/controller and buffer for it.
- Closing a pane or swarm removes views and must never stop/delete the agent.
- Per-swarm layout, focus, zoom, and wallpaper. Canceling Add agent preserves the view and zoom.
- Rounded dark panes with padding/gaps over a flat canvas matching the selected native tab. Wallpaper is limited to empty Swarms. Compact header: original colored engine mark, agent, available project/branch, machine, close.
- Small Add agent `+` overlays a pane corner and opens a stable dialog.
- Preserve terminal input, clipboard, resize, remote transports, spoken tasks, and dial routing. Cmd+Enter zoom and Cmd+HJKL directional focus remain.
- Notifications reflect actual pending questions, never fabricated sample statuses.
- New agent uses real engine discovery, working folders, Codex profiles, and permissions. An agent name is not a submitted task prompt.
Original reference: `/Users/ab/code/harness-new-ui` at `f83b32338f44dd675e2ad668519e6d429342d9ff`; six wallpapers came from `public/`. The user's newly requested review inspected this repository at `19ced37`, with origin `autonomous-ai/harness-new-ui`, and all six live variants. Its historical contracts are comparison material; [the selective V2 review](harness-v2-prototype-review.md) and current user direction govern what to keep.
## Implementation map
### Swarm and terminal state
- New `desktop/lib/state/swarm.dart`: tab ID/name/wallpaper, memberships, focus/zoom, presets, measured grid columns, pins.
- `AppNotifier`: swarm list/active swarm; `panes` is active membership, `allPanes` is the deduplicated session pool. Transport event fan-out uses all unique sessions.
- New/select/rename/reorder/close tabs, wallpaper cycling, add-to-swarm, and machine/project seeding.
- Cmd+Shift+T and the native Reopen Closed Swarm command restore the most recently closed arrangement at its original position, including focus, zoom, wallpaper, presets and pins. Recovery reuses agents still open in other swarms and preserves newer shared-view edits. History holds only lightweight intent for the last 24 closes, clears on account changes or app exit, and retains no terminal controllers or buffers. Reopening replaces the automatic empty welcome only while it is untouched; holding Cmd+W there cannot evict useful history.
- Replacing membership creates/reuses a different pane identity instead of mutating a pane shared with another swarm.
- Session detachment waits until the final membership closes. Sends terminal-close, never agent-delete.
- Seeding records membership synchronously before awaiting attachments. Agent creation captures its destination before the RPC completes, so tab switching cannot redirect results.
- Limits: 24 swarms, 64 panes per swarm. Add, seed, and dial paths report capacity explicitly without silently evicting a view; legacy migration retains the nine-pane storage limit.
- `PaneLayoutStore` writes `swarm_layout_v1`: tab order/selection/names, wallpaper, pane intent, focus/zoom, presets, per-swarm pins, composer visibility.
- Pending writes coalesce to the latest snapshot during rapid navigation. Normal quit waits for the final arrangement with a one-second limit if storage stalls. Snapshot encoding reuses one filtered pane list per Swarm.
- Restore pools shared pane identity, keeps disconnected memberships, and defers initial attachment of inactive panes until shown. Previous focus is persisted; grid columns remain measured runtime geometry. Revision guards cover every asynchronous legacy restore read.
- Focus follows zoom and wraps without an invisible sidebar. Legacy `HomeScreen`/rail code remains but is no longer the authenticated V2 shell.
- Agent comparison considers project and launch-state metadata so polling can refresh those details.
### Retained terminal views
- `PaneGrid` swarm mode keeps visited terminals at stable keyed positions under one mounted scroll view and Stack. Tab, zoom and preset changes update rectangles without GlobalKey reparenting or inherited-dependency invalidation. Unvisited views remain unmounted; inactive views use Offstage with ticking/focus disabled and retain their last visible dimensions.
- Hidden panes retain their widget configuration; healthy visible cells retain it until their presentation changes. Connection/setup views continue reading their full state. A replaced session updates its hidden view; returning to a tab applies current machine and agent metadata. Headers separately retain unchanged title/controls, with callbacks resolving the current widget. The paired 16-terminal benchmark reduced rebuilds from 1,491 to 917 per switch and 980 to 602 per focus change; see `docs/harness-v2-performance.md` for all measurements and limits.
- Swarm rectangles use the same unit geometry as the layout picker and keyboard navigation. Per-Swarm scroll offsets restore before the first frame, including transitions between large, small and empty Swarms. Font metric changes invalidate the minimum-tile cache and update grid geometry even when the point size is unchanged. Legacy non-Swarm layouts retain their existing renderer.
- `TerminalPane.lastViewSize` retains geometry. Hidden `TerminalPanel` views stop auto-resizing/reporting viewport and release input focus.
- The cursor timer exists only while the visible terminal has actual keyboard focus, accepts input, is writable, has enabled ticker mode and the application is active. Focus, session, ticker-mode and lifecycle listeners update it directly; retained inactive panes have no cursor polling loop. Stopping restores only the local bright phase, preserving the remote program's cursor visibility.
- Link-modifier keyboard handlers are registered only while a visible link is under the pointer. Hidden panes clear hover state and skip hover refresh work; mounting a replacement terminal refreshes a stationary pointer against the current buffer.
- Vendored `TerminalView.renderingEnabled` defaults to true and combines with the enclosing ticker mode at the leaf render widget. `TerminalPanel` supplies its visibility. Disabled renderers detach from ordinary terminal-write notifications and skip viewport/scroll work, while session buffers continue receiving output. Re-enabling requests one layout against the latest buffer, preserving manual scroll or following the tail.
- Renderer resize reconciles the emulator's actual dimensions with the visible viewport, including a changed screen received while hidden at the same pane size. Matching dimensions avoid redundant resize and preserve TUI scroll margins. Native caret coordinates update once after the frame for the focused renderer, including focus and view restoration without new output.
- Compact headers remove routine transport/status/pin clutter, retaining exceptional states and offline/unavailable placeholders.
- Existing terminal sessions/transports/renderer and patched `third_party/xterm` are retained. One regression verifies renderer identity, hidden geometry during window resize, and input going only to the active view.
- Binary dispatch reads current session stream IDs and skips unrelated sessions before awaiting them, avoiding a scheduling turn per unrelated view. No duplicate stream registry is maintained. Socket FIFO remains in `WsConn`; regressions additionally exercise direct concurrent dispatch during tab reorder, hidden shared views, machine isolation, unknown streams and corrupt-frame recovery.
- Terminal output decodes directly from the received byte view, avoiding two full-packet copies on the ordinary path. Split UTF-8 scalars still join the retained tail; bounded decoding avoids copying each candidate prefix. Explicit 16 KiB ASCII/Unicode output benchmarks measure the production decoder and parser, with results and limits in `docs/harness-v2-performance.md`.
- Compact remote panes expose a Show/Hide message composer button in their header. Closing the final visible pane restores keyboard focus even when its shared terminal remains parked in another Swarm.
### Shell and dialogs
- `desktop/lib/screens/swarm_screen.dart` is wired into the authenticated case in `main.dart`.
- `widgets/swarm_welcome.dart`: live search, real machines/projects, New agent. `SwarmWallpaper` fills the empty canvas without an inset or rounded frame. It is absent from populated Swarms and evicts its own decoded image cache entry when replaced or disposed. Wallpaper rotates for a new swarm, stays stable, and supports manual next.
- `widgets/swarm_dialogs.dart`: fixed-size Add agent picker, rename, Add project, Link machine entry points.
- `widgets/swarm_switcher.dart` and `state/swarm_navigation.dart`: immediate Cmd+P search across names, projects, branches, folders, machines and Swarms. The catalog is normalized when opened/refreshed and ranked in memory for each query. Arrows/Ctrl-N/P/Return/Escape work; live discovery preserves the highlighted identity and scrolls it into view. Recent destinations hold at most 64 string IDs for the current screen lifetime.
- Jumping to an existing agent reuses a current/shared membership and publishes the destination Swarm and pane focus together. It preserves arrangement, pinning, zoom, scrollback and controller ownership, and performs no terminal retry. A result without a view explicitly says **Open view** and captures the destination Swarm. Revalidation reuses any intervening view; a vanished existing-view result never becomes Add. Offline retained views remain searchable even when their roster disappears.
- Add project saves an **existing folder**, via native local picker or existing remote folder browser. It does not clone a GitHub URL.
- `NewAgentDialog`: machine chooser, initial folder, captured destination swarm; local default when available. Reuses engine probes, Codex profiles, advanced permission behavior, and remote browsing. Profile/folder responses are rejected after a machine switch, including switching away and back. Launch replies are ignored after notifier disposal or machine replacement.
- `state/swarm_catalog.dart`: search, project grouping, saved folders (`swarm_projects_v1`). Group by canonical remote if supplied, otherwise owning machine and full folder path; matching basenames never establish identity.
- Project-store load/add operations are serialized, and failures are visible without claiming a project was saved.
- Search supports arrows, Ctrl-N/P, and Return, reveals the selected row, and retains the highlighted agent across live list changes. Both the welcome and picker immediately focus search; blank Return on welcome does not open an invisible first result.
- `widgets/swarm_attention.dart` and `state/swarm_attention.dart` replace the mouse-only notifications list with **Needs input** (Cmd+Shift+I). It opens with no transition or blur, searches live prompts plus agent/project/machine context using the existing fuzzy ranker, and builds rows on demand. Blank search keeps the time each question was first heard; live updates preserve the selected agent and remove resolved questions. Unavailable terminals remain visible and cannot create an unknown view. Activation revalidates the same pending request before using focus-only navigation or explicitly opening a view in the captured Swarm. It never answers a question or retries/takes over an existing terminal. Cmd+P, Return restores prior work, including across Swarms. Keyboard movement in both pickers now scrolls before paint, avoiding a second frame for an offscreen selection.
- Spoken-task subscription/reporting/window reveal and existing linking dialogs are retained. Settings is in the native app menu, with Account/sign-out inside Settings; the non-macOS toolbar retains its entry.
- Settings opens/closes immediately and switches sections without cross-fades. The former 170/120 ms route and 200/90 ms section transitions are removed.
- Non-macOS/tests use a Flutter reorderable tab-strip fallback. Linux/Windows have not been built or visually reviewed.
### Native macOS tabs
- `desktop/macos/Runner/SwarmTitlebar.swift`, registered in Xcode and owned by `MainFlutterWindow`.
- `NSTitlebarAccessoryViewController` with native scrollable tabs, new button and Needs input bell. The redundant Settings button is removed on macOS. Automatic native window tabbing is disabled; Flutter content begins below the title bar.
- An empty native toolbar with `.unifiedCompact` supplies a single 40-point title row. A `.right` accessory cannot set its own height; the prior standalone view was clipped to 32 points. AppKit now owns height, traffic lights align with the tab controls, and the selected tab has flared lower shoulders at the canvas edge. The selected fill matches Dart's `#463746` exactly. Hover rectangles, measured text and close controls share one vertical center, with balanced horizontal padding.
- Method channel `harness/swarm_tabs`: Dart sends tab ID/name/selection/attention and recovery availability; Swift sends new/reopen/select/close/rename/reorder/navigation/settings/notifications.
- Native tab click, double-click rename, context menu, close, drag/drop reorder. Tab button instances are retained across refreshes.
- Accessibility names/selection update with state, including overflowed tabs that have never painted. Tab context menus obey modal-disabled state. Layout reveals the selected tab after window resize.
- Accessibility child order follows the displayed order after a reorder; AppKit receives a layout-change notification when tabs are added, moved or closed. A windowless check compiles the production Swift source and exercises these native controls directly, without booting Flutter or reading saved account/layout data.
- Native Swarm menu includes new/reopen/close/rename, previous/next, Add agent and close agent view. Reopen disables when history is empty or the open-tab limit is reached. Settings activates the former disabled Preferences placeholder in the application menu, giving Cmd+, one native owner. It follows the same modal-disabled state as the titlebar controls.
- Real tabs alongside traffic lights were visually verified. Native selection, new tabs, modal-disabled controls, and independently accessible select/close buttons were checked. Drag/reorder, overflow, and a wider keyboard/accessibility audit remain.
### CLI project metadata
- New `cli/src/lib/agentProject.ts`; `agentFrame.ts` includes its result in the common list/push agent payload.
- Reads cwd, Git root/origin/symbolic branch using bounded `execFile`, no shell/network/repository mutation. Detached HEAD returns no branch.
- Four concurrent folder inspections, 256-entry cache, 15-second TTL, subprocess timeout/output limit.
- Remote normalization strips credentials/transport syntax and normalizes explicit default SSH/git ports. Missing/non-Git metadata degrades gracefully; optional Dart `AgentProject` accepts older daemon payloads.
- Production CLI was **not** installed/restarted. Newer daemons report full project/branch metadata across machines.
- Older local daemons already report real session working folders in `/api/status`. The existing validated loopback discovery probe now carries that snapshot into project grouping, search, and headers, refreshing every ready supervision probe without extra HTTP calls. Home-relative folders are expanded for this computer only. Rich agent metadata takes precedence; local folders cannot be applied to peers or establish cross-machine repository identity.
- The compatibility path was tested against a running CLI 0.2.17. Remote machines still require their actual existing links and connectivity; no link credentials were fabricated or daemons upgraded.
### V2 identity and isolation
- macOS name `Harness V2`, bundle ID `ai.autonomous.harness.v2`.
- Desktop state/log namespace `~/.harness/desktop-app-v2`, including setup logs. CLI transport/login identity remains shared.
- `core/build_identity.dart` marks V2. Default updater checks disabled in `AppNotifier`/`DesktopUpdater`; injected updater tests retain their test path. Native Check for Updates removed.
- Analytics category `harness-desktop-v2`; existing opt-out behavior retained.
- `debugShowCheckedModeBanner` is false. About identifies Harness V2 and explicitly describes disabled updates. Check, download/stage, and apply are all blocked by default for V2.
- Linux/Windows names and binary identity now also use Harness V2 / `harness-v2`; those platforms have not been built on this Mac.
## Current shortcuts
| Action | Binding |
| --- | --- |
| New / close swarm | Cmd+T / Cmd+W |
| Reopen closed swarm | Cmd+Shift+T |
| Rename swarm | Cmd+Shift+R |
| Previous / next swarm | Cmd+Shift+[ / ], Ctrl+Shift+Tab / Ctrl+Tab |
| Jump to agent or swarm | Cmd+P |
| Agents needing input | Cmd+Shift+I |
| Find in terminal / next / previous match | Cmd+F / Cmd+G / Cmd+Shift+G |
| Add agent picker / New agent | Cmd+Shift+F / Cmd+N |
| Focus neighboring pane | Cmd+H/J/K/L or Cmd+arrow |
| Move pane | Cmd+Shift+H/J/K/L or Cmd+Shift+arrow |
| History Back / Forward | Cmd+[ / ] |
| Show Full History (this session) | Cmd+Y |
| Zoom / previous focus | Cmd+Enter / Cmd+; |
| Focus index | Cmd+1 through Cmd+9 |
| Layout / pin | Cmd+S / Cmd+Shift+P |
| Task palette / reload machines | Cmd+B / Cmd+R |
| Settings / shortcut sheet | Cmd+, / Cmd+/ |
| Close agent view | Cmd+Shift+W |
Swarm shortcuts, help, and tooltips now read the same catalog in `shortcuts/app_shortcuts.dart`. The retained legacy HomeScreen explicitly opts into its old bindings. Native Swarm actions and controls are blocked whenever another route is above the shell, including root app-menu dialogs. Held Layout/Shortcuts/Firmware menu commands cannot stack dialogs; repeated Cmd+S still cycles the visible Layout palette. Clipboard/select-all and shell/TUI keys remain owned by the terminal. Do not add AppKit menu equivalents that intercept Cmd+H/J before Flutter.
The reopen binding follows the documented Mac tab-recovery shortcut in [Safari](https://support.apple.com/guide/safari/keyboard-shortcuts-and-gestures-cpsh003/mac) and [Chrome](https://support.google.com/a/users/answer/13293027?hl=en). Those references inform familiar navigation; the approved Swarm product contract remains the design scope.
## Verification and limits
| Check | Result |
| --- | --- |
| macOS debug build | Passed and launched from the monorepo with real saved Swarms and terminals. |
| macOS optimized local build | Passed and running with the real entry point and saved V2 state. Local ad hoc signing requires the command-line `ENABLE_HARDENED_RUNTIME=NO` override for Flutter's framework; distribution signing settings remain unchanged. The distribution Developer ID certificate is unavailable; nothing was uploaded. Normal asynchronous quit and relaunch were verified. Unlocked native review confirmed the taller tab container, edge-to-edge empty wallpaper, and the flat populated canvas joining the selected tab. The native hover rendering was also inspected in a local image. |
| Full Flutter suite | **1,041 passed, 1 skipped** on the pane-focus, disconnected-terminal and native-menu code, including terminal, modal, persistence, layout and shortcut regressions. |
| Hidden rendering and native caret | Four new checks cover binary output arriving without hidden layout/frame requests; retained selection, manual scroll and follow-tail; first-visible-frame raster pixels; changed emulator dimensions and preserved TUI scroll regions; covered routes; and coalesced/fresh caret coordinates. The focused restoration/IME/key-ownership run passed 22 checks. |
| Cursor and link activity | Four new checks cover one cursor clock across retained Swarms/focus/zoom, immediate suspension for inactive windows and disabled ticker mode, session replacement and read-only/connection ownership, and stationary link hover across session replacement/modifier release. The earlier focused cursor/session run passed 74 checks. |
| Retained canvas and header | Five new checks cover stable element ancestry and terminal State across tabs/zoom/presets, first-frame per-Swarm scrolling, tall splits and hidden geometry, font metrics at unchanged point size, and fresh header metadata/callbacks. Layout checks compare legacy and Swarm geometry for all fixed presets and auto layouts at two sizes. |
| Jump navigation | 13 new state/widget checks cover fuzzy context, shared/offline views, focus-only navigation, preserved layout and terminal state, bounded recents, stale results, captured destinations, immediate focus, keyboard scrolling, live discovery and Add separation. The three widget checks also pass after adding assertions that the first terminal key reaches only the destination session. |
| Needs input | Nine new state/widget checks cover oldest-first search, live prompt/context matching, missing terminals, resolved/replaced request guards, shared ownership, captured targets, stale views, first-frame open and scrolling, Ctrl-N/P, large text, cancellation, and the Cmd+P return path with the first terminal key reaching only its destination. Existing native modal tests now exercise the notifications channel too. The isolated render was inspected with SF font files and engine icons; live native review remains pending. |
| Jump visual review | Isolated render inspected with SF font files and engine icons; selected-result text now stays white on a quiet highlight. Four checks (the three widget cases plus the temporary visual fixture) passed after this contrast adjustment. Final Release build passed. Live Cmd+P opening, immediate search typing/filtering and Escape return were verified after the native-menu rebuild; no real agent input was submitted. |
| Focused interaction checks | 8 passed: picker navigation/scroll/refresh, welcome keys, shared-view close, composer, native modal guard, profile and folder races. |
| Closed-Swarm recovery | 7 passed: arrangement and shared-view restoration, untouched welcome replacement, rapid close/reopen with delayed cleanup, capacity, bounded history, sign-out isolation and the keyboard command. Native command availability and modal behavior also pass in the interaction suite. |
| Local CLI discovery | 25 passed, including older-daemon folder parsing and continuous snapshots without spawning/reconnecting. |
| CLI typecheck | `npm run typecheck` passed. |
| CLI targeted tests | 135 passed across project/frame, registry/restore, and terminal recovery files. Project/frame tests rerun after port normalization: 9 passed. |
| Flutter analyzer | **0 errors, 0 warnings, 12 existing vendored xterm infos**; passes with `--no-fatal-infos`. |
| Headless performance | The prior five-case catalog/terminal/output benchmark passed. The paired retained-canvas continuation reran both 16/48-terminal cases with new focus measurements: tab medians 12.226 / 8.925 ms and focus medians 5.284 / 4.586 ms. Reproducible commands and limits in `docs/harness-v2-performance.md`. |
| Idle-work measurement | Both isolated timer scenarios passed: 16/48 retained terminals now share one focused cursor clock, with 10 callbacks in five seconds, and zero terminal cursor callbacks when the window is inactive or an empty Swarm is shown. Empty New swarm keeps its search field's caret timer. These are fake-clock structural counts, not native process CPU/battery measurements. |
| Background output measurement | Both 16/48-terminal cases passed with hidden-only and mixed output. Hidden dirty renderers fell from 12/44 to zero; hidden-only bursts schedule no frame in this workload. Final CPU medians are 0.110/0.206 ms for hidden output and 0.757/0.766 ms for all-terminal output. See performance notes for scope and paired results. |
| AppKit components and container | **221 assertions passed**: File/History menu order and guarded commands, cached/stale recent entries, Settings ownership, tab capacity, titlebar spacing, hover separators, terminal Find/attention shortcuts and native-container checks at 880, 1280 and 1920 points. These verify height, traffic-light clearance/alignment, direct contact with the content edge and active-tab visibility. The optional container check creates a hidden native window; no window is displayed and no engine, account or terminal is accessed. |
| Remote terminals / production release | No remote takeover, release, installer, or production CLI update/restart. Cross-platform and end-to-end latency measurements remain. |
Tests now exercise the actual V2 welcome/settings/linking flow. Usage pricing again explains a partial estimate as a lower bound. Small offline panes avoid overflowing the full connection guide. No remaining full-suite failures are being dismissed as baseline.
**Test isolation incident:** the original upstream crash-log test deleted real default `~/.harness/desktop-app/errors.log` if it existed. The suite ran before discovery, so the previous error log may have been removed; the user was informed. The test now uses a disposable temporary directory, and `CrashLog.record` skips test file I/O unless `CrashLog.testFile` is supplied. Do not rerun the original unisolated test or claim no production file could have been affected. No terminal data, agent processes, or user project files were intentionally modified by tests.
Evidence on this Mac under `/private/tmp`:
- `harness-v2-menu-full-tests.log`: **1,041 passed, one existing skip**.
- `harness-v2-menu-focused.log`: 25 navigation/History/picker/modal checks.
- `harness-v2-menu-native.log`: 221 native AppKit/menu/container checks.
- `harness-v2-menu-release-build.log`: successful optimized build; sole preview PID 50524 after normal relaunch. Live CUA results are described above.
- `harness-v2-menu-analyze.log`: zero errors/warnings, 12 existing vendored infos.
- `harness-v2-jump-focus-before.log`: reproduces stale terminal focus and an offscreen selected pane; the extended viewport case also caught the padding change when leaving New swarm.
- `harness-v2-focus-offline-tests.log`: 41 focused terminal, picker, Find, composer and retained-view checks.
- `harness-v2-focus-offline-full-tests.log`: 1,039 passed, one existing skip.
- `harness-v2-focus-offline-final.log`: final full suite plus isolated offline render, **1,040 passed, one skip** after the header alignment refinement; `harness-offline-review.png` inspected.
- `harness-v2-release-build.log`: successful local Release build and normal relaunch of this continuation.
- `harness-v2-focus-offline-analyze.log`: zero errors/warnings and 12 existing vendored infos.
- `harness-v2-offline-render.log` / `harness-offline-review.png`: an isolated read-only terminal/Find render; no real agent data or native-window capture.
- `harness-v2-find-full-tests.log`: 1,035 passed, one existing skip.
- `harness-v2-find-focused.log`: 99 focused checks, including one isolated visual fixture; `harness-v2-find-visual-tests.log`: final six-case render/find pass.
- `harness-v2-find-native.log`: 195 AppKit checks, including hidden native window geometry and hover separators.
- `harness-v2-find-analyze.log`: earlier Find diagnostics, zero errors/warnings and 12 existing vendored infos.
- `harness-v2-find-benchmark.log`: sequential three-case terminal Find/background-output run; `harness-v2-find-output-before.log`: pre-index versioning background baseline. Timings and limits are in the performance notes.
- `harness-titlebar-before.png`, `harness-titlebar-after.png`, `harness-find-review.png`: inspected isolated native/Flutter renders, not live app captures.
- `harness-v2-background-full-tests.log`: full 1,014-test pass on the final production changes.
- `harness-v2-background-caret-tests.log`: 22 restoration/IME/key-ownership checks, including raster and native-caret assertions.
- `harness-v2-background-analyze.log`: earlier background-work diagnostics, 0 errors/warnings and 12 existing vendored infos.
- `harness-v2-background-before.log`, `harness-v2-background-measured.log`: paired parser/render CPU measurements and hidden layout/frame counts.
- `harness-v2-idle-full-tests.log`: full 1,010-test pass on the idle-work changes.
- `harness-v2-idle-tests.log`: 74 cursor/session/focus/canvas checks before the hover-listener change.
- `harness-v2-idle-analyze.log`: earlier idle-work diagnostics, 0 errors/warnings and 12 existing vendored infos.
- `harness-v2-idle-before.log`, `harness-v2-idle-measured.log`: paired periodic timer counts/callbacks with 16/48 retained terminals, active/inactive windows and empty Swarms.
- `harness-v2-canvas-full-tests.log`: full 1,005-test pass on the final production changes.
- `harness-v2-canvas-geometry.log`: 39 layout checks after adding the final test-only auto-layout comparison.
- `harness-v2-canvas-analyze.log`: earlier retained-canvas diagnostics, 0 errors/warnings and 12 existing vendored infos.
- `harness-v2-stable-canvas-before.log`, `harness-v2-stable-canvas-measured.log`: paired tab/focus CPU and rebuild counts before and after the stable canvas and presentation caches.
- `harness-v2-jump-full-tests.log`: full 1,000-test pass.
- `harness-v2-jump-tests.log`: 60 focused navigation/shortcut/interaction checks.
- `harness-v2-jump-focus-tests.log`: three widget checks including first-key destination ownership.
- `harness-v2-jump-visual-tests.log` and `harness-jump-review.png`: final focused checks and isolated visual fixture (not the real-data app). Temporary renderer source is `/private/tmp/harness-jump-render.dart`; no mock data or capture tooling was added to the application.
- `harness-v2-jump-analyze.log`: earlier jump-navigation diagnostics.
- `harness-v2-final-build.log`: real-entry debug build.
- `harness-v2-release-build.log`: optimized local build.
- `harness-v2-final-cli-check.log`, `harness-v2-final-cli-tests.log`: final metadata checks.
- `harness-v2-resume-cli-tests.log`: 135-test CLI pass.
- `harness-v2-keyboard-tests.log`, `harness-v2-local-project-tests.log`: focused interaction/discovery checks.
- `harness-v2-retained-tests.log`: 27 terminal/menu/layout checks.
- `harness-v2-persistence-tests.log`: 21 state/async checks including rapid writes and bounded quit.
- `harness-v2-benchmark-final.log`: earlier catalog and retained-terminal CPU measurements.
- `harness-v2-benchmark-polish.log`: subsequent five-case pass after native/canvas polish; identical retained rebuild counts, higher debug timings across workloads. Both runs and the comparison limits are recorded in the performance notes.
- `harness-v2-benchmark-jump.log`: five-case pass after navigation changes, including the new catalog-build/query measurements; retained rebuild counts remain 1,491 / 1,625.
- `harness-v2-output-before.log`, `harness-v2-output-after.log`: paired production terminal decode-and-parse CPU measurements.
- `harness-v2-native-titlebar-tests.log`: windowless checks against the actual AppKit tab source.
- `harness-v2-native-titlebar-layout.log`: 170 component/native-container checks.
- `harness-v2-routing-tests.log`: 68 stream-routing, binary protocol and terminal session checks.
- `harness-v2-reopen-tests.log`: 23 Swarm recovery, state and interaction checks.
Earlier logs contain superseded failures. Temporary logs and toolchains are local conveniences, not committed artifacts.
## Remaining work
The immediate priority is the approved distinct Navigate surface and shared local Add interface, followed by first-use clarity. Use [the current plan and acceptance criteria](harness-v2-handoff.md#plan-for-the-next-session) before this older qualification backlog.
1. Measure native terminal input and tab-switch responsiveness under output load, including p50/p95/p99 and cold/warm paths. Calibration is paused until there is new evidence that the isolated window can become active/key; do not bypass its focus guard. Earlier live Cmd+P destination focus/quick return, branch headers, project associations, New swarm cleanup and native History were verified. Keep typing/transport measurements in disposable fixtures; the user's real agent terminals are not test inputs.
2. Native overflow, drop ownership/bounds, close-last-tab, rename and keyboard/accessibility control focus are now covered by isolated AppKit/Flutter regressions. Live pointer dragging and VoiceOver still need a foreground-capable disposable window. Keep any integration runner separate and out of the foreground review app; preserve saved agent memberships.
3. Verify real remote reconnect, agent input, paste, selection and IME against disposable local/remote processes. The AppNotifier/keyframe and stale completion regressions now pass; they do not prove every network or native editing condition. Preserve immediate first-input flush and shared retained renderers.
4. Visually confirm app-menu modal behavior and overflow accessibility in AppKit; route/shortcut behavior is covered by passing Flutter tests.
5. Build/review Linux and Windows when their toolchains are available. Remote full project/branch metadata requires daemons running the new wire format; do not upgrade them automatically.
6. Optional retained-context preview/highlights, deliberate right/down splits, controlled resizing, file-based keyboard customization and existing-command search are implemented and regression checked. Continue targeted real-workflow verification; ordinary-shell creation is outside the current agent-workspace scope. Keep the rejected shelf/hierarchy/dashboard/manager surfaces absent.
7. Local Git watch failure/removal, directory replacement and relocated-worktree invalidation are now regression checked. The compatibility path deliberately reads a small subset of Git metadata; prefer richer daemon metadata as available. Continue the active goal using the current research status list, distinguishing shipped reductions from proposed follow-ups.
## Toolchain and workflow
Read `desktop/CLAUDE.md`. No AGENTS.md was found in this checkout/ancestors during implementation. Some architecture/integration-test comments there are stale; prefer current source and analyzer evidence. This is a native app, not Sites. No subagents were requested.
Flutter **3.47.2 / Dart 3.13.2** lives at `/private/tmp/harness-v2-flutter`, matching release pin. Swift Package Manager is required. Tool settings are isolated under `/private/tmp/harness-v2-tool-config`; npm cache under `/private/tmp/harness-v2-npm-cache`.
```bash
cd /Users/ab/code/autonomous-harness/desktop
export XDG_CONFIG_HOME=/private/tmp/harness-v2-tool-config
/private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics config --enable-swift-package-manager
/private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics pub get --offline
/private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics analyze --no-pub
/private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics test --no-pub test/swarm_state_test.dart test/swarm_screen_test.dart test/crash_log_test.dart
/private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics test --no-pub
```
Use online `pub get` if packages are not cached. Enable SPM before pub get; do not accept CocoaPods fallback rewriting the project. Do not commit generated build/ephemeral files or caches. Use `--no-fatal-infos` for the existing vendored xterm infos; do not modify vendored style merely to erase them.
For a local optimized preview with the available toolchain, prepare Release configuration and use command-line signing overrides. These do not change the repository's distribution settings:
```bash
cd /Users/ab/code/autonomous-harness/desktop
XDG_CONFIG_HOME=/private/tmp/harness-v2-tool-config /private/tmp/harness-v2-flutter/bin/flutter --suppress-analytics build macos --release --config-only --no-pub --target lib/main.dart
XDG_CONFIG_HOME=/private/tmp/harness-v2-tool-config xcodebuild \
-workspace macos/Runner.xcworkspace -scheme Runner -configuration Release \
-derivedDataPath build/macos -destination 'platform=macOS,arch=arm64' \
CODE_SIGN_IDENTITY=- CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM= \
OTHER_CODE_SIGN_FLAGS= ENABLE_HARDENED_RUNTIME=NO build
open -n 'build/macos/Build/Products/Release/Harness.app'
```
Quit an existing V2 preview normally before rebuilding its bundle. Flutter's asynchronous termination may make AppleScript report `User canceled (-128)` even though the process exits; verify the process state before interpreting that as a refused quit. The final optimized preview was launched and its process verified running. Do not launch a second V2 instance while one remains active.
Native component checks require Xcode and Flutter's already-cached macOS release engine. The SDK path is read from the generated Flutter config, or can be passed explicitly. Add `--window-layout` after the SDK path to verify the real AppKit container in a hidden window:
```bash
cd /Users/ab/code/autonomous-harness/desktop
bash tool/check_swarm_titlebar.sh /private/tmp/harness-v2-flutter
bash tool/check_swarm_titlebar.sh /private/tmp/harness-v2-flutter --window-layout
```
The script appends same-file assertions to the actual `SwarmTitlebar.swift` in a disposable temporary directory. It uses AppKit with activation prohibited. By default it creates no windows; `--window-layout` creates a hidden native window and never displays it. Neither mode launches the app, an engine, or any account/transport code.
```bash
cd /Users/ab/code/autonomous-harness/cli
npm ci --ignore-scripts --cache /private/tmp/harness-v2-npm-cache --no-audit --no-fund
npm run typecheck
npx vitest run src/lib/agentFrame.spec.ts src/lib/agentProject.spec.ts
```
Some tests require permission to bind disposable loopback sockets. Inject memory/temp stores, skip real credential/usage pollers using `kUnderTest`, and never treat a real Harness home as a fixture. Keep patched `desktop/third_party/xterm`, not pub.dev xterm.
The real review app uses `/Users/ab/code/autonomous-harness/desktop/build/macos/Build/Products/Release/Harness.app`, with the separate V2 bundle identity and saved V2 state. The Release build at `2d3c024`, including the terminal and Navigate/Add changes, was launched and its process verified running. Live window inspection remains unverified. Production Harness remains separate. Never automatically take over its terminals or use a real Harness home as a test fixture.
## Publishing boundaries
The user explicitly authorized frequent pushes to branch `app-v2` in public `autonomous-ai/autonomous-harness`, including all workspace work for this handoff. Draft PR #31 is open for later merging; keep it draft while qualification is incomplete. Release/tag publishing, production E2E and production CLI changes are separate tasks. After the PR merges, delete `app-v2`, update `main`, and create a fresh branch for the next change.
Workflow triggers were checked: CI runs for PRs/manual calls; internal desktop builds for `internal/**`; release/deployment for suffixed tags. A plain `app-v2` push does not trigger those release workflows. Keep future work/pushes on `app-v2` unless the user changes that instruction.