The earlier sampling note said the host-usage sandbox ran on account-free
local data. It did not: the sandbox inherited this machine's Codex and
Claude Code CLI logins, so both "send once" steps ran real Codex turns and
a first-launch companion greeting ran Claude. Record the models, token
counts and the inheritance path, and note that the launch environment was
not checked at the time.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Encode special code values as HTML entities so backslash-pipe pairs cannot split GFM table cells. Keep ordinary code spans and verify the production Markdown through the GFM parser.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Remove the implicit composer submission: isolated profiles and --mock do not prevent configured real models from executing. Preserve historical sampling evidence with its scope stated.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The coverage scanner only read literal desktopChannel values, so the eight
browser-backend:* entries that #9991 builds with
Object.entries(HOST_BROWSER_SETTINGS_ACTIONS).map(([action]) => `browser-backend:${action}`)
were silently skipped and listed as B (window-local) although client mode
proxies them to the Host.
- Resolve the key of Object.entries(X)/Object.keys(X) iteration callbacks
from X's declared properties.
- Any contract-side channel name the scanner cannot resolve now fails
generation instead of disappearing; the delegation table's
HOST_CONTRACT_CHANNELS.map((def) => def.desktopChannel) is recognised as a
pass-through of names already read from the contract file.
- Lift the constant resolver into createConstResolver so tests exercise the
real code on the real contract file.
Reclassified (B -> contract): browser-backend:get-state, set-kind,
set-use-real-profile, reset, get-health, recover, probe-source-read,
open-extension-store. Contract 67 -> 75, B 361 -> 353, window class
386 -> 378 (registered 372 -> 364). Host work stays 985.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Share one abort signal across each backend generation's actions and probes, abort it before executor cleanup, and reject late successes after cancellation. Document lifecycle invariants and the event/state matrix; cover cancellation before and after wake, disconnected/frozen executors, actions and probes.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Forward explicit backend disposal to the client that executed its operations. Rebuild the Desktop backend only after disposal drains, retain it across transport reconnects, and never send stale cleanup into a replacement window.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep platform imports and Electron monitor access at the original desktop lifecycle points. Preserve extension wake failures and settle stale-owner relays. Keep sidebar operations at their canonical source path.
Bind native session cleanup to its executing client, close platform transports before runtime shutdown, and route trusted browser settings to the Host executor.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Propagate Host marker failures from the production SQLite writer while preserving best-effort Desktop markers. Regress with a real SQLite failure, update moved authority guards to the shared steer transaction, and use a platform temp directory in Host interaction tests.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Sync main at 83ebe1811d without conflicts. Record shared Host send, steer and attachment validation on the merged tree; keep remote attachments and remaining launcher services explicitly deferred.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Bind media ingestion and rollback to the originating account. Reuse queued attachment ownership for edits, persistence, and cancellation; keep shared blob bytes until the Host recycler is connected. Separate owner-runtime temporary roots with a shared process liveness identity.
Validate queue and native Codex image/file delivery with isolated files and SQLite. Remote attachment transport remains explicitly unsupported; desktop production code is unchanged.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep the existing normalization body in its original module and expose a per-launcher factory. Bind Desktop temp paths, cache, blob ingestion, ledger and remote transport in a single desktop assembly with deferred dependency reads. Preserve all attachment normalization, temporary-owner and cleanup algorithms.
Verified 38 existing Desktop attachment tests without changed assertions, Desktop and Host typechecks, Host 219 tests and actual Node loading. Static closure has no Electron or desktop modules; nine main evaluation-order positions shift because three pure attachment modules load after transport. Host attachment wiring is pending.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Catch optional Pi metadata writes within the existing persistence FIFO so a failed transcript link cannot pause reply persistence or later inputs. Keep owner checks and required message persistence recovery unchanged.
Regression reproduces SQLITE_BUSY after acceptance, verifies normal replies and the next input, and covers missing rows. Host 219 tests, Host typecheck, docs and test hygiene pass; Desktop and shared packages unchanged.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Wire the shared clear-race rollback into the send transaction and coordinator, bind media cleanup to the initiating account, and publish the existing deletion event only to that account. Link accepted Pi transcript entries through the existing durable queue and reuse visible native entry ids for explicit retry.
Verified Host 217 tests, 325 existing Desktop message/send tests, both typechecks and isolated native Codex send/steer/stop with a synthetic upstream. Added real SQLite rollback, discard, owner-switch and Pi metadata assertions plus a queue retry case. Full attachments, archive recovery and engine switching remain pending.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Route Host steering through the desktop transaction and share send/steer note memory. Preserve protected question flags and message UUIDs, restore history through the existing port, and validate owner, input and turn identity before provider delivery. Keep Desktop runtime behavior unchanged.
Verify Host 212 tests, both launcher typechecks and isolated native Codex send/steer/stop with a synthetic upstream. Reject stale App context without delivery, persistence or consumption. Full bootstrap, media normalization and engine switching remain follow-up work.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep Desktop admission and clear-generation checks in its launcher and
move accepted-steer delivery into a typed factory. Preserve the original
body apart from the two launcher ports and the nullable locale guard.
Defer launcher callbacks to retain initialization timing. Keep note
consumption, authorization and dispatch metadata on the same path.
Use the actual factory in existing Goal tests and retain their assertions.
Desktop 339 focused tests and typecheck pass; Node loading passes.
Host assembly follows in a separate checkpoint.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Explicitly consume transport receipts in the browser shim. Preserve queue
projections and subsequent real model events. Extend the existing bundled
shim event test; reproduced before the fix and passed after it.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Some providers settle abort and become idle without emitting done.
After the Host turn drains persistence, publish an interrupted input
receipt so its SSE stream ends without inventing a successful result.
Keep correlation by exact input id and suppress old-owner/shutdown
receipts. Failed abort and pending persistence do not close the stream.
Extend existing stop ordering coverage and add a transport regression,
both failing before the fix. Host 208 tests, Host types, docs and test
hygiene pass. Isolated native Codex smoke now completes send, persisted
reply/UUID, steer, runtime reopen and stop with a synthetic upstream.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Match Desktop by preserving every input's enqueue-time Plan snapshot
while reconciling its other settings from the task. Do not apply that
snapshot to an existing runtime's armed Plan state. Cold bootstrap
still reconciles the task state on the shared transaction's copy.
Cover both toggle directions with live and cold runtimes. Add history
round-trip coverage using receipts actually persisted by Host.
Host 207 tests, typecheck, docs and hygiene pass. Native smoke revealed
a separate SSE stop-settlement timeout; recorded as unresolved here.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Honor the approved Desktop parity contract for ordinary, scheduled,
delegated and MCP App turns. External input remains context, not new
user consent. Drain Host history persistence before reading authorization
and guard steer against account, cancellation and turn replacement.
Move the existing history reader unchanged to a Node-loadable module
and preserve the Desktop export. Intentionally replace the Host-only
empty-history assertion; keep source and delegated receipt assertions.
Validation: Host 204 tests, Desktop 427 focused tests, both typechecks,
native Codex isolated send/steer/stop with synthetic local upstream,
documentation contract and test hygiene. No real-account or packaged
runtime validation claimed.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Align Host with Desktop as requested: picker changes are already persisted, so queued inputs now use the latest task model and permission settings. Intentionally update the old per-input precedence assertions. Share the original DB reconciliation and preserve Desktop behavior.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Preserve desktop dispatch behavior, input settings and the existing authorization boundary. Bind refreshed runtimes to the current input and durably mark Host turns before provider startup.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep locale, classical style and MCP App context owned by each launcher. Preserve desktop behavior and verify that the shared transaction loads in Node.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
- host-regressions now also runs `pnpm --filter @cindy/host typecheck` once (on
Linux; types are platform independent) inside the change-selected job that
verify already requires. A shared desktop body that gains a port wired only
in the desktop assembly passes the desktop checks but is caught here instead
of at runtime in the Host.
- architecture-invariants §5 records the convention for bodies shared by the
desktop and the Node Host: no direct Electron dependency, desktop assembly
in *.desktop.ts, factory port injection, wire a new dependency into both
launchers, run the Host test and typecheck. AGENTS.md and the dev-rules
README point to it.
- headless-runtime-plan.md: the merged batches no longer say "local,
unpublished".
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>