Commit Graph
110 Commits
Author SHA1 Message Date
OrcaWinandOrcaWin a4c4f3b944 test: remove low-value shutdown and paste coverage (#44029)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-18 01:44:44 -08:00
Brennan Benson a7b5c0a8f2 Run supported Mac chats and background agents under Orca Agents (#41917)
* Name terminal agent hosts separately from Orca

* Account for one startup process naming write

* Use the Node runtime for the Linux naming contract

* Run supported local agents under the independent host

* Preserve retirement type narrowing and valid test plans

* Align restart warnings and satisfy changed-file lint rules

* Declare the current daemon protocol in build compatibility metadata

* Keep hosted agent output complete through process exit

* Keep the output regression focused on catalog failure and cleanup

* Keep output regression fixtures compatible with quality checks

* Publish Claude exits after hosted process absence is proven

* Pass session fences in the hosted Claude regression

* Fall back to direct chat launch when the host image is unavailable

* Keep the hosted Claude recovery fixture independent of OS signing

* Settle refused agent launches and preserve exit observation wakes

* Keep provider population fixture defaults independent of array indexes

* Document direct launch when agent host connection checks fail

* Retain native provider no-start outcomes before refusal

* Keep chats working when the agent host cannot read their folder

* Preserve native missing-folder coverage after the access preflight

* Keep desktop permission notices at the desktop launch boundary

* Bound hosted launch setup and keep hosted chats out of host process growth

A host still starting no longer holds a chat past its bootstrap deadline, the host's
code signature is read once per host process, and the native owners the host starts
for the app do not count as its terminal work. The hosted launch test runs under Node,
whose destroy closes only the host's own socket copy.

* Keep hosted owner pipes blocking, recheck the host before dispatch, and keep launch-folder errors

The native owner clears O_NONBLOCK that a host's sockets carry, so its gate read and the
CLI's stdio behave as on a direct launch. A reconnect to another host before dispatch
launches here instead of on an unprobed host, and a host spawn error keeps its code and
path so a deleted folder is still reported as missing.

* Skip hosted owner subtrees in the growth walk and expire the host image read

The growth sample now stops at hosted owners instead of walking their subtrees again,
so it never does more work than before. A host's code-signature read is reused only
for 10 s, so a bundle removed while the host runs is noticed on a later launch.

* Satisfy changed-code quality for the hosted launch wait and its test

* List provider requests in the daemon router's exhaustive switch

* Launch a chat here when the host's start fails before attach

The native owner runs its CLI only after this app opens its gate, which
attaching does. A host spawn error, a lost reply or pipes that never arrive
therefore leave no CLI running and no input sent, so the chat now launches
here instead of failing. Once attached, a failure still ends the launch.

Tests cover a host that can't read or can't start in the chat's folder, a
host that never answers the folder probe, a lost spawn reply, and the
folder-access notice verdicts.

* Keep fallback time inside the owner's startup deadline

A hosted start could spend 10 s on the spawn reply and 10 s on its pipes,
past the owner's 15 s bootstrap deadline, so a late failure ended the
chat instead of launching it here. The hosted attempt now has one 8 s
budget from the start of the launch.

A folder denial whose app-side recheck finished after a newer readable
verdict restored a cleared notice; the newest verdict for the same helper
and folder class now wins.

* Fit the hosted start inside the owner's bootstrap and proof budget

The hosted attempt's budget is now the bootstrap deadline minus the
ownership proof window, so a hosted owner or a direct fallback still has
time to prove ownership. A timer bounds the spawn request too, so a
stalled event loop can't let the bootstrap deadline fire first.

Only a newer readable verdict from the same helper supersedes a pending
folder denial, so a later denial in another folder no longer hides a real
notice, and the record holds one entry per folder class.

* Track folder re-allows per helper so a replaced helper can't erase a notice

Keying the re-allow marker by folder class alone forgot an old helper's
re-allow once a new helper read that class, so the old helper's late
denial overwrote the new helper's notice. Marks are per helper and class
again, capped to the most recent pairs.

* Supersede pending folder denials directly instead of keeping re-allow marks

Capped marks could evict a re-allow while its denial was still being
read, reviving the stale denial. A readable verdict now flags the same
helper's pending denials for that folder class, and only denials still
being read are kept.

* Keep folder verdicts off blocking reads and bound the whole hosted start

Native-chat folder verdicts now reach the shared verdict telemetry, so its
spawner-path check and pid-file read are now asynchronous instead of
blocking the main process. The extracted backlog code only builds the
sampler, so the server keeps calling the existing probe directly. Lowered
the blocking-helper baseline rows that shrank.

Connecting to the host and checking its signature and the folder now share
the hosted start budget, so a slow host still leaves a direct launch time
to prove ownership.

* Lower the sync-fs baseline row the async telemetry checks emptied

* Drop folder verdicts from host checks that outlived the start budget

A host check still running when the direct fallback took over could report
a late denial and bring back a notice a newer readable verdict had
cleared. Checks past the budget now count as abandoned and report nothing.

The integration test now ends the CLI's input only after it starts, since
its owner allows only a short grace once input closes.
2026-11-18 00:55:34 -08:00
Jinwoo Hong a6918ecb97 Merge in branches 2026-11-18 03:28:35 -05:00
Brennan Benson 594a12b539 fix(native-chat): run chat readers in their own process; record main's allocation sites before memory runs out (#43535)
* fix(native-chat): run chat readers in their own utility process; record main's allocation sites before the V8 cage fills

Electron main and its worker threads share one ~3.25 GB V8 pointer cage, so a chat reader's heap
could push main into a fatal OOM. The journal SQL reader threads now run inside one Electron
utility process ("Orca chat reader"), falling back to in-process threads if it cannot start.
Hosted readers post v8-serialized bytes that the host forwards without decoding.

V8's near-heap-limit hooks never fire when the cage fills first, and a heap snapshot needs the
heap's size again, so main runs V8's sampling heap profiler from 1 GB committed heap and records
its top allocation sites as a durable breadcrumb and crash annotations from 2.5 GB.

* fix(utility-worker-host): a failed in-process fallback fails only its worker; sample main's heap after the worker reads

* fix(utility-worker-host): retry the host after a slow or failed start with a backoff; only a reader that can't load there stays in-process for the session
2026-11-17 15:38:11 -08:00
Neil a16afc4e67 refactor(e2e): group journeys by feature and repair browser recovery (#43628)
* refactor(e2e): group journeys and fixtures by feature ownership

* refactor(e2e): consolidate remaining Playwright owner imports

* test(ci): stop copying retired route modules into fixtures

* fix(browser): preserve one-shot follow intent across equal snapshots

* refactor(settings): colocate commit message defaults with source control

* test(browser): await page registration and focus the concrete page

* fix(browser): keep viewport recovery progressing during incompatible frames

* fix(browser): wait for stale helper exit before replacement commands
2026-11-17 11:44:44 -08:00
Neil 1fadf2a59a refactor(renderer): organize sidebar and component ownership (#43611) 2026-11-17 06:24:13 -08:00
Neil ef2daeee80 refactor(tests): colocate runtime and compatibility contracts with owners (#43589) 2026-11-17 05:12:29 -08:00
OrcaWinandOrcaWin 354c91cd81 test: remove low-value renderer seam tests (#43452)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-16 21:29:34 -08:00
OrcaWinandOrcaWin 513e9a4bec test: remove low-value hook-root and resume test suites (#43402)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-16 19:52:08 -08:00
OrcaWinandOrcaWin 10fbb749a7 test: remove low-value HTTP clock and persistence fixtures (#43398)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-16 19:13:57 -08:00
OrcaWinandOrcaWin 7593dd1312 test: remove low-value browser catalog and shell repro fixtures (#43367)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-16 18:18:37 -08:00
Neil 212694c08e refactor(ipc): group handlers and PTY support by owner (#43339)
* refactor(ipc): group handlers and PTY support by owner

* chore(test): prune retired IPC timeout baseline

* fix(types): include worktree path settings in web project
2026-11-16 17:11:09 -08:00
Neil d23e47411a refactor: organize backend agent-session and tab owners (#43268)
* refactor(main): organize agent session and tab lifecycle owners

* fix(ci): carry moved backend test and mobile routing metadata

* test: retire copy assertions in headless notification test
2026-11-16 14:42:12 -08:00
Neil bf134f8f4d refactor: organize shared agent chat (#43221) 2026-11-16 12:00:43 -08:00
Neil 6018fca4de refactor: group shared settings, profiles and execution hosts (#43047)
* refactor: place shared settings profiles and host contracts with owners

* fix: retire stale cleanup validation contacts

* refactor: consolidate imports from concrete owners

* refactor: bind new card fixture to profile defaults owner

* style: format rebased concrete host import

* refactor: consolidate project header color owner imports

* fix: load released phone readers after folder moves

* fix: preserve released chat readers and current owner imports
2026-11-16 04:03:33 -08:00
Neil 3cfd47e1a0 refactor: group shared workspace and transport owners (#42945) 2026-11-15 21:01:55 -08:00
OrcaWinandOrcaWin 8d802a17f4 test: remove 51 low-value suites (#42927)
* test: remove 51 low-value suites

* test: retire obsolete computer workflow targets

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 18:48:14 -08:00
OrcaWinandOrcaWin fba4470c6e test: remove 50 low-value suites (#42888)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 17:02:20 -08:00
OrcaWinandOrcaWin d566727ad4 test: remove 55 low-value suites (#42858)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 15:22:51 -08:00
e516efcb61 Keep finished agents marked Done while their panes sleep (#41793)
* Remove finished-agent retention and keep sleeping status with panes

* Fix legacy pane projection and sleeping-agent regression fixtures

* Cover sleeping display-only status in parked terminal coverage

* Keep pane conversation identity only across continuous agent observations

* Remove duplicate import and keep sleep fixtures type checked

* Preserve conversation boundaries across replays and inherited clocks

* Cover conversation map stability across a large status batch

* Bound conversation capacity work to changed pane owners

* Pass capacity classifiers their layout input directly

* Finalize conversation provenance once per status batch

* Keep paired snapshot tests focused on observable outcomes

* Type the conversation provenance test fixtures explicitly

* Consolidate agent session imports after main merge

* Preserve provider replacement evidence when resetting conversation continuity

* Separate retention deletion from sleeping agent display

* Restore migration row bucket comparison

* Skip unusable pane identities before title ownership lookups

* Refresh conversation titles when their owning pane changes

* Update completion test sound mock after module move

* Keep finished agent status with sleeping panes and update agents by key

* Forward sleeping pane status and scope paired tab updates

* Preserve keyed selectors and compiler invalidation through final checks

* Keep bound store hooks visible to the compiler and measure published links

* Install provenance measurement before factory capture

* Use a static store hook and name presentation metadata once

* Preserve keyed freshness and atomic agent status publication

* Preserve remote folder dashboard regression after suite retirement

* Model pane wake before live identity reobservation in regression

* Share keyed row transactions and finish main integration

* Align runtime fixtures with keyed agent status reads

* Keep status projections addressed and activity summaries current

* Retire empty workspace status summaries after their source leaves

* Use the standard store fixture for parked terminal graph tests

* Align status fixtures with app types and a fixed test clock

* test: capture stored terminal render failure details

* Read terminal titles and completion prompts from keyed agent status

* Compose foreground agent state in worktree test stores

* test: complete lineage list agent state fixture

* Keep sleeping completion when retiring process authority

* Run durable agent-hook status tests with Node SQLite

* Preserve sleeping Done when renderer retires its process

* Update terminal fixtures for process retirement

* Read sleeping pane resume sources by key

* Bind sleep capture fixture to its live panes

* Pass the pane tree to the sleep capture fixture graph

* Preserve accepted completion identity through sleep

* Pass a nullable title to the status classifier

* Resolve accepted host status once and preserve delivery order

* Drop published sleep status when its host owner retires

* Use the supported remote completion test envelope

* Preserve published activity when filling completed status

* Update imports for main module moves

* Remove an unreachable native chat owner comparison

* Read host and unread card inputs by address instead of per root

A host-scoped sidebar card re-read every root's row and acknowledgement on
any store write, so one card with many sleeping roots paid for other
workspaces' updates. Card host filtering, the summary pill's unread state
and the workspace unread gate now first compare the workspace's projected
row revision and the changed keys of the tab-keyed layout/PTY maps and
the acknowledgement record. Only an addressed change re-reads the roots.
Acknowledge and unacknowledge annotate their writes so readers can skip
keys they don't show.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Correct sleeping pane test imports after module moves

* Combine duplicate subscription test imports

* Record addressed acknowledgement deletions on row drops

* Type subscription fixture key set for string readers

* Keep accepted updates complete after observer failures

* Seed the send picker with its SSH terminal identity

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* Keep a host card's unchanged agent rows after filtering out another host's pane

Re-lineage clones every row once a host-scoped card filters a row out, so an unrelated pane's status write rebuilt the card's row array and re-ran its signal and rollup memos. Reuse unchanged rows as main's sidebar row selector does.

* Seed the Copy Session ID shortcut test through keyed agent status

* Seed the graph payload partition test through keyed agent status

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 11:38:40 -08:00
Neil ad29834900 refactor: organize shared concurrency and text primitives (#42777) 2026-11-15 10:28:45 -08:00
NeilandJinwoo-H 409ce31fb4 fix(network): treat socket type-of-service failures as best effort (#42700)
undici's HTTP/1 writer calls socket.setTypeOfService before each write,
outside any fetch promise. On macOS the syscall fails with EINVAL once the
peer has reset the socket (VPN, Wi-Fi switch, proxy), so a network change
became an uncaught main-process exception and a modal error dialog. Treat
the TOS syscall as best effort, as Node already does on Windows; the write
then fails through undici's normal ECONNRESET path. Argument validation
errors still throw.

The test resets a real peer connection and calls setTypeOfService on the
reset socket, reproducing the native EINVAL on macOS.

Fixes #39579

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-11-15 03:01:10 -08:00
OrcaWinandOrcaWin 738aca5936 test: remove 4 low-value suites and narrow notification store cases from combined audit (#42677)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 01:17:01 -08:00
OrcaWinandOrcaWin 03bb368ad6 test: remove 14 low-value suites and one standalone driver from combined audit (#42670)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:57:44 -08:00
OrcaWinandOrcaWin 07073db317 test: remove 31 low-value suites from combined audit (#42666)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:41:51 -08:00
OrcaWinandOrcaWin 7b5f3176f3 test: remove 287 low-value suites from combined audit (#42659)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-15 00:17:59 -08:00
OrcaWinandOrcaWin 390e62e1cd test: remove 47 low-value test suites (#42648)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 23:56:56 -08:00
OrcaWinandOrcaWin 393ca7b0ba test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 22:14:32 -08:00
Neil d5a90c0da0 refactor(shared): group host and runtime owners by domain (#42528) 2026-11-14 21:10:34 -08:00
OrcaWinandOrcaWin 78908d7eb2 test: remove 58 low-value suites (#42597)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 19:45:06 -08:00
OrcaWinandOrcaWin 7731665e37 test: remove 93 low-value suites (#42591)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 19:15:17 -08:00
OrcaWinandOrcaWin 9ef747cfc1 test: remove low-value renderer main shared and script suites (#42548)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 16:35:55 -08:00
OrcaWinandOrcaWin 67e903f7ab test: remove low-value session, transcript and tooling samples (#42521)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 15:47:30 -08:00
Neil d4c4c466c4 refactor: organize browser guest, annotation, and chrome owners (#42478)
* refactor: group browser guest annotation and chrome owners

* fix: preserve browser registry tests and source routing

* fix: select convergence E2E for document address input
2026-11-14 14:00:08 -08:00
OrcaWinandOrcaWin 55ed3f7841 test: remove low-value cookie serve and appearance suites (#42474)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 12:23:16 -08:00
Neil 117fa6dc90 refactor(emulator): group pane modules by feature owner (#42340) 2026-11-14 01:10:17 -08:00
OrcaWinandOrcaWin 856c91bba2 test: remove low-value native, extension, and editor suites (#42333)
* test: remove native policy and wrapper test suites

* test: remove low-value extension and editor fixture suites

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 01:01:36 -08:00
Neil 2db7499ae2 refactor: group runtime-environment IPC by ownership (#42081) 2026-11-13 09:35:54 -08:00
OrcaWinandOrcaWin 86cacb133c test: remove low-value runtime, daemon, and automation cases (#41839)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 21:34:24 -08:00
Neil cc29ae4820 refactor: organize provider modules by defining owner (#41772)
* refactor: organize provider modules by defining owner

* refactor: bind cleanup runner to provider owners
2026-11-12 20:04:13 -08:00
Neil d634063ef2 refactor: organize mobile cloud relay by lifecycle owner (#41681) 2026-11-12 14:36:07 -08:00
Neil e1d4314a46 refactor(window): organize clipboard, lifecycle, security, and relay owners (#41634)
* refactor(window): group clipboard, lifecycle, security, and relay owners

* refactor(window): keep Electron paste handling with desktop clipboard
2026-11-12 11:47:00 -08:00
OrcaWinandOrcaWin 908ab68ca0 test: remove low-value popup, plugin visibility and teardown checks (#41629)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 11:26:07 -08:00
Neil fb8d6f950b refactor(github): organize concrete feature owners (#41601) 2026-11-12 09:17:26 -08:00
OrcaWinandOrcaWin 5f0469ca5f test: remove low-value terminal transport and layout cases (#41584)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 07:43:08 -08:00
Neil 9eb2195c64 refactor(ai-vault): group scanner modules by defining owner (#41520)
* refactor(ai-vault): group scanner modules by defining owner

* refactor(ai-vault): consolidate owner imports and isolate path absence

* Preserve mobile CI triggers for extracted absence predicate
2026-11-12 03:44:09 -08:00
Neil d3b6609ac9 refactor(rpc): group root modules by defining owner (#41475)
* refactor(rpc): group root modules by defining owner

* test(orcad): include JSON CLI failures in launcher diagnostics
2026-11-12 02:18:19 -08:00
Neil fb58871bdb refactor(claude): group root modules by defining owners (#41437) 2026-11-12 00:20:10 -08:00
Wooseong KimandKelvin Amoaba b4ca378c61 fix(agent-hooks): keep the Claude session model on hook status (#41058)
* fix(agent-hooks): keep the Claude session model on later hook status

SessionStart reports the model, but the Claude handler dropped it, so the
mobile composer chip stayed on "Model". Publish that model and retain it
when later lead and child events omit it.

* fix(agent-hooks): keep the Claude model across an Orca restart

Claude reports its model only on SessionStart. After a restart the listener's
lead state is empty, so the next hook dropped the saved model from the row.

* test: run the Claude model restart test in the node pool

* fix(agent-hooks): keep the Claude model when a terminal status row lands first

* refactor(agent-hooks): read the Claude lead model once to keep claude-events under the line limit

---------

Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
2026-11-12 07:48:50 +00:00
Jinwoo Hong 4d50c440be perf(orchestration): read released worker output from its original instead of a saved copy (#41374)
* perf(orchestration): read released worker output from its original instead of a saved copy

* fix(orchestration): keep refusal codes on released chat reads and locate legacy remote transcripts

* test(orchestration): prune flaky-pattern baseline for removed archive tests; guard a cursor read

* fix(orchestration): keep locator fields when stripping copies; never let the optional receipt page block remote release

* test(orchestration): drop removed archive tests from the node-runtime test list

* refactor(orchestration): drop the background strip; old rows keep their saved copy and its reader

* fix(orchestration): give reference rows the empty copy fields older Orca reads, with a note

* test(orchestration): give the slow-exit release mock a stored archive body

* fix(orchestration): record a transcript reference only for agents the reader can open
2026-11-12 01:45:22 -05:00