Repository navigation
WI 0054: OpenCode 1.x/2.x and Cursor built-in agents; retire built-in Gemini - #71
Merged
Merged
Conversation
The Windows daemon parity test ran all three agents under one 20-second component deadline and timed out. Schedule each agent independently for both backend contracts and launch comparisons, retaining every assertion and the existing deadline. Local parity suites, manifest checks, and make pre-push pass.
The parity fixture changed an image version while retaining its content ID. A surviving daemon runtime could correctly reuse the old cached version proof, making the mismatch assertion timing dependent. Update the fake image ID with the version response. Validated with 30 Cursor daemon repetitions and the full make pre-push gate.
Actions retained both the failed and successful macOS unit evidence uploads under the same name, so the aggregate gate rejected a fully passing rerun. Select the uniquely newest service timestamp, reject ambiguous or malformed timestamps, and retain all digest, source, producer, and test-result validation without falling back to older evidence. Regression reproduced before the fix; xtask and pipeline tests plus make pre-push pass.
Resolve readiness conflicts by retaining pinned-agent validation while adopting upstream preparation logging. The full make pre-push gate passes on the combined tree.
The shell fake intermittently lost SIGINT while waiting, leaving the release operator blocked before teardown. Reproduced under stress and replace its watch hold with the existing native FakeCli readiness protocol. Preserve both signals, double-interrupt assertions and deadlines. All 500 paired stress repetitions and make pre-push pass.
Use the production API completion barrier, join the TUI runtime before deleting Windows working directories, and observe browser restart cleanup before reloading. Preserve permission, redaction, migration and authorization assertions. Validated with the full pre-push gate, 100 API repetitions, 30 TUI repetitions, 12 restart repetitions and all 48 browser-link tests.
Remove exact CLI version metadata, Cursor version admission and forced update suppression. Install current Cursor by default and leave version selection to agent Dockerfiles. Preserve only OpenCode 1.x versus 2.x compatibility checks, accepting same-major upgrades without warnings. Update templates, specs, user docs and readiness/launch coverage. Full make pre-push and focused policy suites pass.
cohix
added a commit
that referenced
this pull request
Nov 22, 2026
* WIP: pre-worktree commit for awman/work-item-0139 * WIP: changes on nextgen before merging awman/work-item-0139 * Implement awman/work-item-0139 * agent catalogue audit * refresh config on every command in TUI * isolate codex sqlite to avoid corruption * WI 0140: one awman daemon, unified API and network listener (#34) * Implement 0140: one awman daemon, unified API and network listener * Fix cross-platform CI failures * Keep config reload integration test in CLI frontend * Use an allowed config override in CLI reload test * Put Docker smoke runtime setting in global config * Generate macOS-compliant TLS identities and stabilize daemon fixture * Simplify TLS renewal check for Clippy * Fix Docker run commands in container fixtures * Check macOS daemon process basename and preserve fake identity * Verify remote squad env sync across the daemon process boundary * Canonicalize configured API workdirs before admission * improved workflow DAG handling, git branch in summary * further create_pull_request improvements * Implement WI 0141: daemon terminal hub, OSC 7501 program status, host-terminal hygiene (#35) * WI166 * WI 0142: singleton daemon engine and frontend parity (#36) * WI 0142: complete daemon engine and frontend parity * Fix engine parity helper on Windows * Restore daemon overlay for process-snapshot container passthrough * Normalize closed local daemon connections * Stabilize parity and platform CI fixtures * Run strict latency benchmarks without parallel fixture load * Drain agent byte streams before final CLI status * Close test listener before asserting daemon disappearance * leader yolo countdown error fix * workflow prerequisite improvements * work-item rework and misc fixes * WI 0143: worker feature (push and pull), work servers, WSP v1, queue picker (#38) * Implement work item 0143: worker feature, work servers, WSP v1 and queue picker * Fix CI clippy errors and WI 0143 review findings CI: the fast job failed clippy (drop of a non-Drop closure, two functions with eight arguments, and a cloned slice ref in a test). The argument lists are grouped into ClaimedLease and ManualClaim. Review fixes for work item 0143: - Stale-command recovery no longer re-queues pulled-lease rows, which stopped the containers of a lease still owned by a live TUI or CLI host. - One unusable work server (bad token file, refused server labels, failed registration) no longer fails every server or the worker feature; the failure is recorded on that server, including a first failed registration. The TUI/CLI-hosted worker skips a bad server the same way. - A `shutdown` lease release stops claiming without cancelling the whole worker feature. - Heartbeats continue after the server answers `cancel: true`, so the lease stays valid while the cancelled result is posted. The heartbeat unit test now stops the loop explicitly, as the loop no longer ends on cancel. - Output files over `outputs.max_bytes` are left out instead of failing a successful run before its push. - A lease's private session is closed when its run ends. - Agents whose names are not valid label keys are not reported, instead of blocking registration. - The mock server computes `assigned_to_me` from server-assigned labels only. - `409 taken` / `409 ineligible` reach the picker as typed errors, and Ctrl-C cancels the CLI picker. - Docs: `daemon stop` waits for leases unless `--now`; queue rows may carry a body preview; reported labels list completed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: prerequisite event-order test allows progress messages wi0149_api_prerequisite_event_precedes_steps_and_failure_has_stage has failed on nextgen since 42d99c6, which makes the prerequisite checks announce their progress as info status messages before the WorkflowPrerequisites report. The test required the report to be the very first event, which that commit intentionally changed (its own unit test asserts the progress messages). The test now requires that only info status messages precede the report. It still asserts that the report precedes every step event and that a failed preflight emits no step events. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: classify Git's no-credential failure as an auth failure bad_lease_credentials_yield_failure_stage_git_auth_code_git_auth_failed_real_git failed in the Docker test job: with credential.interactive=false, Git 2.44+ reports a missing credential as "unable to get password from user", which matched no auth pattern, so an anonymous clone against a 401 was reported as setup_failed. Recognise that message, and treat a final 401/403 in the private curl trace as an auth failure whatever Git printed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix WI 0143 re-check findings; add the WSP design reference Worker: - the merged queue listing and the TUI queue refresh skip a failing server instead of failing as a whole - a shutdown release pauses claiming for a minute instead of for good - exec.yolo=false is passed explicitly, so the daemon default cannot override it - a manual pick with no free slot answers 409 worker_busy, not ineligible; leases handed back for the worker's own policy or capacity change are released as user_declined - automatic claims hold their execution slot while long-polling and yield it to waiting pushed work - the daemon reports every built-in agent, since leases build them on demand - a lease renewed for two heartbeats or less still has a push window - a revoked link shows as revoked; the hint names the working recovery - the TUI re-checks whether the daemon holds each registration between runs - a pick answered after the engine frontend stopped waiting is released Config: all-digit work server names can be unset; host normalisation stays within the name rule. WSP: unknown fields on the lease, item, repo and push are ignored; push.branch defaults to repo.branch and outputs.max_bytes to 1 MiB; exec, credentials, outputs and affinity stay strict. The conformance suite no longer requires lease-ID reuse. The work item spec records the protocol details the code relies on, and aspec/architecture/work-server-protocol.md describes WSP. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: queue listing waits for the first registration after start daemon_surface::queue_lists_human_readable_rows_and_the_empty_state failed with 503 server_not_registered: `awman queue` reached the daemon before the pull worker had registered its servers for the first time. A listing now waits (up to 10 s) for that first registration pass instead of failing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: builtin upgrade lock test waits for the lock to be free held_lifecycle_or_import_lock_blocks_upgrade_without_changes_and_exits_one failed once in the Docker test job: the upgrade right after dropping the held lock was still blocked. The lock is an flock, so a process forked by another test thread at that moment holds a copy of its descriptor until exec closes it, and the lock briefly outlives the handle. The test still asserts the upgrade is blocked while the lock is held and succeeds once it is released; it now waits (up to 10 s) for the release to take effect. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: queue listing also waits when the pull worker has not started daemon_surface::queue_json_lists_items_envelope failed with the same 503 server_not_registered as its sibling: the previous fix waited for the first registration only once the worker task was running, but the listing can arrive before that task starts. The wait now applies whenever pull is enabled and there are servers to list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: orphaned lease cleanup test tolerates a transient lock orphaned_lease_dirs_excludes_active_leases failed once in the aarch64 builtin job: one of the dead lease's two directories was left (1 removed, 2 expected). Removal takes the dead owner's flock per directory; a process forked by another test thread at that instant holds a copy of the descriptor until its exec, so the owner briefly looks alive and that directory is skipped, as designed, for the next pass. The test now runs passes until both directories are gone (up to 10 s) and still asserts the live lease is kept. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Fix CI: trusted lease mounts compare resolved paths (macOS) lease_scope_refuses_external_host_paths_and_symlink_escapes failed on macOS with "overlay exposes a path outside the lease workspace": the mount's host path was canonicalised but the trusted command mount it was compared with was not, and a macOS temporary directory is reached through /var -> /private/var. On macOS this refused the lease's own output mount. Both sides are now resolved before comparing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> * update work items * daemon event issues, tab colours for reporting agents * WI 0159: webapp v0 (#37) * Implement WI 0159: webapp v0 (named listeners, browser linking, web app, edge worker) * Reconcile WI159 with WI143 and page-host web development * Fix CI: refresh configuration key table The generated documentation golden test failed because six listener and terminal descriptions retained old work-item notes. Match the current config field metadata. * Fix CI: keep output bound test within time budget The test sent 50,010 frames through an immutable 50,000-line store, making its setup quadratic and timing out on the web runner. Fill the bound in one frame, then send ten individual frames to verify eviction and tab close; assert the first evicted line as well. * Fix CI: await vetted terminal link in test The terminal emits an initial empty link list, so waiting for any callback could race ahead of OSC 8 processing. Wait for the sanitized title and exact vetted link before asserting the exit state. * Fix CI: compare canonical launch context paths on macOS macOS resolves /var/tmp under /private/var/tmp. Align the launch-context test roots and expected values with the canonical paths stored by the registry, preserving traversal and symlink escape assertions. * Fix CI: start web dev without a pnpm executable Launch the installed Next.js CLI with Node from the web working directory. This preserves the localhost and tailnet relay behavior while allowing hosts without a globally installed pnpm to run make web/dev. * Fix CI: keep pnpm available to Next SWC downloader Run the dev script through npm exec with the package manager version pinned by web/package.json. npm caches pnpm and exposes it on PATH, including to Next when it downloads a missing platform SWC package. * Use npm for web development and CI Replace the three pnpm lockfiles and commands with npm lockfiles, add make web/reinstall for host-native dependencies, and run Next through Node so a non-executable .bin launcher does not block local development. Pin npm 11 for the CI web job. Run the unchanged latency budget before Docker integration load and accept the two Git error wordings produced by the injected reset after asserting the reset occurred. * Use npm in web CI * Diagnose macOS worker clone startup failure Include the completed claim result, active lease count and request paths when the clone-start condition times out. This preserves the existing five-second limit while exposing the earlier failure in CI. * Fix CI: isolate latency and clone cancellation fixtures Run the strict engine latency benchmark without the real-Docker test opt-in, matching the passing fast benchmark while keeping the full Docker suite opted in. Give the clone cancellation fixture no unrelated one-second command deadline so its explicit cancellation test can reach the Git request on a loaded macOS runner. * Build and sign source installs as the invoking user Require the verified Apple Silicon payload, reserve sudo for the final copy, and verify the installed signature. Update the source-install guidance accordingly. * Support both localhost web development origins Allow localhost and 127.0.0.1 by default on the loopback listener, relay IPv6 localhost to the development server, and point localhost browser clients at the IPv4 daemon bind. Update coverage and setup guidance. * Fix CI: await clone request on busy macOS runners The cancellation test allowed only five seconds for Git to start under the parallel hermetic suite. Wait on the actual mock request for up to thirty seconds and keep that request pending long enough to exercise cancellation. * Fix CI: compare web workspace against canonical root Launch-context registration canonicalizes its root. macOS may canonicalize /var to /private/var, so compare the session cwd with the registered root rather than the original temporary path. * Diagnose missing Git push metadata paths in CI Two platforms intermittently report ENOENT during push-back setup. Include the file or directory involved in each isolation error so the next failure identifies the actual race. * fix websocket closure * update workflow guidance * daemon backend fixes * audit of TUI-Daemon interactions * readme and work items * updated readme * readme * WI 0144: Replace the Rust test suite, CI/CD, and release process (#40) * Replace Rust test suite, CI, and release pipeline (WI 0144) * Fix CI workflow validation and test environments Correct shellcheck and actionlint failures, runner resource grants, Playwright paths, builtin payload setup, temp socket paths, template fixtures, macOS type inference, and the Windows nextest checksum. Update vulnerable lockfile dependencies with compatible releases. Preserve the dependency advisory gate pending a policy decision for unmaintained crates and vendored SQLite. * Fix Windows archive and CI test isolation Run a copy of xtask during the Windows archive build so Cargo can replace xtask.exe. Shorten job lease roots and give macOS tests a private short socket root. Check Git fixture time as an epoch and ignore reaped zombie processes in Linux group leak detection while preserving live-descendant detection. * Complete WI144 coverage system and retire pre-WI144 tests Certify important local paths with compiled inventories and 606 passing tests; add native Apple Silicon packet and independent review handoff. Replace legacy harnesses, tighten evidence validation, and update testing policy. * Retire legacy test/release workflows and pass gate mode to evidence controller * Fix CI platform ownership, shortcut timing and evidence reconstruction Keep checkout bytes consistent; release database owners before sandbox cleanup; support pinned Windows Git metadata copying and bounded atomic replacement; provide the Windows shell tools and stack reserve. Split independent protocol/release scenarios without changing assertions or deadlines, and declare platform-specific component cases at compile time. The local gate passes 623 tests; native Apple Silicon acceptance remains open. * Fix CI: Windows daemon shutdown, metadata copying and shell isolation Handle Ctrl-Break and request Windows daemon shutdown over the owner-only local transport, flushing active responses before exit. Pin existing metadata ancestors before attempting creation to avoid sharing violations. Prefer Git Bash to the WSL launcher and compare sandbox HOME paths in Windows format. Cover clean owner shutdown and network denial; make pre-push passes locally. * Fix CI: publish Windows metadata by handle and preserve shell fakes Use an in-place NT rename on the owned temporary-file handle so publication does not reopen a strictly pinned parent for write. Keep ancestor write/delete denial and protect the temporary file; verify recursive replacement and failed-publication cleanup. Invoke Git Bash directly instead of its PATH-rewriting wrapper and normalize scanner roots before awk consumes them. Add fake-precedence coverage and contextual metadata errors. make pre-push and a Windows-target Clippy check of the metadata implementation pass. * Fix CI: isolate native rename and independent release scenarios Keep the Windows rename FFI in awman-host-shims, with an immutable provider installed by the binary and component fixtures. The main library retains its unsafe-code prohibition. Split seven release flows into independent tests so slower macOS hosts retain the same assertions and per-test deadline. Full pre-push gate, Windows-target helper Clippy, and ten consecutive row-15 test runs pass locally. * Fix CI: Windows Git environment and paths, release test timing Preserve allowed Windows environment variables case-insensitively so lease Git retains SYSTEMROOT. Use paths relative to the private Git directory instead of Windows verbatim environment paths, and normalize the entitlements fake's expected native argument. Split independent release cancellation, watch, and teardown scenarios without changing assertions or deadlines. The full pre-push gate and ten repeated runs of the affected release scenarios pass locally. * Fix CI: Windows Git config paths and reset classification Use relative file paths for isolated source-config reads and explicit upstream config edits. Do not silently discard object format on Git config read failures. Recognize libcurl's Windows reset spelling only when private trace evidence proves no response arrived, with a pure regression test preserving the no-retry boundary after a response. Targeted Git/worker suites and the full pre-push gate pass locally. * Fix CI: classify Windows aborted connections before a response The remaining Windows retry failure reports libcurl's WSAECONNABORTED spelling, not WSAECONNRESET. Admit this transient failure only with private trace evidence that no response arrived. The exact CI message reproduces the failure in the focused regression test before the fix and passes afterward; the full pre-push gate passes. * Correct release runner and local listener comments * Fix CI timing collection from current producer records Record invocation wall time and collect run inventories and JUnit instead of obsolete evidence.json files. Preserve unknown measurements, aggregate only complete disjoint shards, deduplicate downloads, and keep attempts and build cells separate. Measure gate predecessor wall time from provider timestamps and count each main run once for budget history. * tui/engine improvements and infact WIs * Revise README for better readability and structure Updated README to enhance clarity and improve formatting. * Fix badge syntax in README.md * misc improvements * WI 0160: responsive browser workspace and reload-safe authorization (#41) * Implement WI 0160 browser workspace UX and reload-safe authorization Refresh the responsive workspace, preserve linked sessions through origin-bound signing proofs, and propagate terminal geometry to daemon PTYs. Add browser and daemon regression coverage, acceptance documentation, and reproducible web-test tooling. * Fix CI: complete revoked frontend WebSocket close handshakes Dropping a socket with unread Hello bytes can reset TCP before Windows receives the policy close. Send the close frame and drain the closing handshake under a bounded deadline without decoding or admitting queued frames. Strengthen the regression to acknowledge the close and require a clean end of stream; it fails before the fix and passes 30 stress iterations after it. * WI 0145: shared Git transport, push retries, and ephemeral credentials (#42) * WI 0145: share Git transport and retries with ephemeral credentials Unify session and lease transport, classify authentication and retry failures, and add in-memory session credentials and command secrets with scoped delivery and redaction. Cover transport, restart, cancellation, credential scope, and secret publication boundaries. * Complete scoped session Git credentials and fix cross-platform CI Recognize session auth during workflow preflight, seed private in-container Git caches for push/pull/PR steps, and add owner-only Windows credential pipes. Keep API tokens separate from session Git authentication. Fix long Unix socket paths with owner-only short temporary directories and contain Windows Git helpers in kill-on-close jobs. Install the native metadata publisher in the push adapter test. Add scope, precedence, private stdin, socket cleanup and native pipe regressions. * Fix CI: background entrypoints and Windows credential lifecycle Explicitly select sleep for background containers so images with their own entrypoints remain available for credential seeding. Carry opaque Windows pipe identifiers across Git's MSYS shell and resolve the native namespace inside the helper. Join aborted setup and worker tasks before shutdown returns. Measure the existing two-second cancellation bound from the cancellation request, excluding preparation and the first remote attempt. Local make pre-push passes. * Fix CI: renew credential pipes and release setup cleanup state Use fresh overlapped I/O state for each Windows credential client, keeping the protected listener name owned between connections. Verify successful requests before and after scope denials. Delayed setup-bus cleanup now holds a weak API reference so it cannot retain SQLite or credentials after shutdown; a cross-platform regression reproduces the previous leak. * webapp panel and work item tweaks * WI 0146: Context API, caller-chosen keys and workflow artifacts (#43) * WI 0146: context API, caller-chosen keys and workflow artifacts * Fix CI: normalize context test paths and close retention database Compare context paths using the canonical trusted home so Windows verbatim prefixes agree. Close the SQLite store before sandbox cleanup so Windows can remove the database files. The separate Windows context mutation support decision remains unresolved. * Fix CI: preserve Windows read-only context contracts Windows deliberately refuses safe context mutations. Do not advertise lease_context there, assert reads and mutation/staging refusal on Windows, and retain successful mutation contracts on Unix. Keep change tracking and orphan cleanup covered on every platform. Use a portable invalid filename for the macOS staging regression instead of assuming case-sensitive storage. * Fix CI: join TUI polling before sandbox cleanup Cancelling a tab only aborts its background Git poll after the current synchronous Git call returns. The multi-threaded capacity-dialog test could remove its sandbox while that call still held the working directory on Windows. Own and join the test runtime before sandbox cleanup, retaining every dialog and cancellation assertion. Verified with 30 stress iterations and make pre-push. * TUI dialog improvements, ready command improvements * WI 0147: external work item sources and unified --work-item (#44) * Implement work item 0147: work item sources, unified --work-item, HTTP provider, inline bodies * Fix CI: make work item paths and fixtures portable Build and validate container paths with Unix semantics on every host, and classify non-regular work item files before Windows opens them. Use a sandbox home and all platform temp variables in fixtures; keep inline caller IDs distinct from filesystem-safe command IDs. Preserve existing assertions and check container path strings exactly. * Fix CI: compare canonical draft paths in interview test The Windows draft resolver returns a canonical path with a verbatim prefix. Canonicalize the sandbox context directory before asserting containment so equivalent host paths compare correctly without changing the containment requirement. * Fix CI: wait for daemon shutdown tasks to release state The supervisor published Off before its transition task dropped feature and database references, and aborting the worker pool only scheduled destruction of its pull loop. Join the transition and include the pull loop in child completion tracking so shutdown cannot return while those tasks still own the database. Preserve the immediate database-release assertion; validated with 30 focused repetitions and make pre-push. * Fix CI: preserve push retry exhaustion during local Git probes Windows can exhaust a shared retry budget in a local config or HEAD probe before the next network request. Preserve local timeout as a typed error and report exhausted retry time as Unreachable after an earlier transport failure, without authorizing another attempt. Initial local timeouts remain Other. Keep the original timing assertions and add a deterministic held-probe regression. Both focused tests passed 30 repetitions and make pre-push passed. * Migrate work items to github and make agents.md canonical * build missing images during workflow preflight * Read-only workspaces and unified workflow prerequisite checks (#60) * WI 0049: WI 0152: Read-only workspace for `exec prompt` * Fix CI: preserve socket paths and validate Linux guest paths on Windows Keep both original and canonical runtime socket paths so symlink resolution cannot unprotect parent mounts. Validate guest roots independently of the host OS and build cache redirects with Linux separators. Cover symlinked socket parents deterministically and scope the Unix device assertion to Unix hosts. * Unify workflow prerequisite review and image preparation Collect the complete agent, credential and tool scope before workflow startup. Prepare approved images once and narrow generated workflows without repeating probes or widening consent. Update check-only fixtures to select an agent and supply its image now that image readiness is included, retaining refusal assertions and verifying the image report. Update the workflow guides and specifications. Validated with make pre-push. * Fix CI: keep provider timestamps out of the gate verdict GitHub reruns can give completed jobs creation times later than their execution. Treat invalid or missing job timestamps as unavailable diagnostics instead of aborting aggregation. Preserve required job success, provenance, artifacts and exact test coverage checks. Serialize unknown durations as null and retain verdicts in history without inventing measurements. Validated with all 191 xtask tests and make pre-push. * Fix CI: accept successful evidence retained by partial reruns GitHub reuses successful jobs and their authenticated artifacts when another job is retried. Accept a positive producer attempt no newer than the aggregator, while requiring the same run, job, exact source, shard and complete passing inventory plus current provider job success. Update the former exact-attempt test to reject future attempts and add prior-attempt identity regression coverage. Validated with make pre-push and targeted evidence tests. * WI 0048: init over the API (#61) * WI 0048: init over the API * Fix CI: register Dockerfile preflight contracts as component tests The builtin library suite selects the component tier, but these session/configuration contracts declared unit sandboxes and failed with MISPLACED[tier]. Move them out of the pure contract module and use the component sandbox so default and builtin builds agree. Preserve every assertion. * Fix CI: classify session-scoped work item lookup as a component contract This contract opens session configuration and resolves files through the command layer, but was selected with pure unit contracts and exceeded their one-second deadline on macOS. Move it into the existing component library selection with an explicit component sandbox. Preserve its assertions and default/builtin coverage. Validation: make pre-push and 30 stress iterations passed. * WI 0059: awman edit subcommand (#63) * Add awman edit subcommand and remove specs amend (WI 0059) * Fix CI: keep edit test suites disjoint and compare canonical paths The edit-artifact suite also matched component-command, so aggregation and timing history rejected duplicate test evidence. Exclude those tests from the general suite while retaining their dedicated coverage and regenerate nextest configuration. The Windows edit journey compared the canonical resolved path with an uncanonicalized fixture path. Canonicalize the expected path to assert the same file identity on every platform. * Fix CI: bound work-item fixture teardown on Windows Remote fixture teardown used an unbounded TCP connection to a closed port before repeating the sandbox's bounded port-leak check. Windows connection refusal delays accumulated across the multi-case tests until nextest's 20-second deadline terminated them. Drop the tracker and run the existing sandbox cleanup on a blocking task, leaving Tokio available for the server to shut down. Every tracked resource is still checked and cleanup panics propagate. All assertions and deadlines remain intact. Validated make pre-push and 30 stress iterations of all three timeout cases. * -o short alias for --overlay and teardown-in-overview improvements * remove legacy names/paths, -w short flag, other tweaks * WI 0057: WI 0162: Lease exec parity: per-item secrets, reviewed overlays, prerequisite choices and dynamic-workflow config over WSP (#66) * -o short alias for --overlay and teardown-in-overview improvements * WI 0057: WI 0162: Lease exec parity: per-item secrets, reviewed overlays, prerequisite choices and dynamic-workflow config over WSP * Fix CI: decouple commit-author coverage from short mock leases The mock server granted three-second leases, leaving roughly one second after the heartbeat margin for real Git publishing. macOS exceeded that window in the commit-author test. Make the mock HTTP lease lifetime configurable and grant this scenario a lease covering its unchanged component-test budget. Preserve the default short leases and dedicated expiry coverage; verify configured lifetimes on both claims and heartbeats. * WI 0058: WI 0163: Content-keyed images: rebuild stale project and agent images, reuse them across leases, clean them up, and allow `ready` over the API (#69) * -o short alias for --overlay and teardown-in-overview improvements * WI 0058: content-keyed images, lease image reuse and cleanup, ready over the API * Fix CI: join recovery image cleanup before worker shutdown Recovery detached a blocking cleanup task, allowing image removal and database writes to outlive shutdown and race sandbox removal on macOS. Retain those handles and join them after the worker feature stops, including cleanup scheduled during cancellation. Hold startup eviction across shutdown in the component regression test and verify all removals finish before returning. * new/edit improvements and pruning old functionality, tweaks, fixes * apple container fix * improvements to prereqs and preflight * improved conciseness and accuracyof image prep/import logging * WI 0054: OpenCode 1.x/2.x and Cursor built-in agents; retire built-in Gemini (#71) * WI 0054: support OpenCode 1.x/2.x and Cursor built-ins; retire built-in Gemini * Fix CI: split pinned-agent parity scenarios by agent The Windows daemon parity test ran all three agents under one 20-second component deadline and timed out. Schedule each agent independently for both backend contracts and launch comparisons, retaining every assertion and the existing deadline. Local parity suites, manifest checks, and make pre-push pass. * Fix CI: give changed fake agent images distinct identities The parity fixture changed an image version while retaining its content ID. A surviving daemon runtime could correctly reuse the old cached version proof, making the mismatch assertion timing dependent. Update the fake image ID with the version response. Validated with 30 Cursor daemon repetitions and the full make pre-push gate. * Fix CI: select the latest artifact after partial reruns Actions retained both the failed and successful macOS unit evidence uploads under the same name, so the aggregate gate rejected a fully passing rerun. Select the uniquely newest service timestamp, reject ambiguous or malformed timestamps, and retain all digest, source, producer, and test-result validation without falling back to older evidence. Regression reproduced before the fix; xtask and pipeline tests plus make pre-push pass. * Fix CI: use a native held watcher for release signal tests The shell fake intermittently lost SIGINT while waiting, leaving the release operator blocked before teardown. Reproduced under stress and replace its watch hold with the existing native FakeCli readiness protocol. Preserve both signals, double-interrupt assertions and deadlines. All 500 paired stress repetitions and make pre-push pass. * Fix CI: synchronize API output, TUI cleanup, and browser restart tests Use the production API completion barrier, join the TUI runtime before deleting Windows working directories, and observe browser restart cleanup before reloading. Preserve permission, redaction, migration and authorization assertions. Validated with the full pre-push gate, 100 API repetitions, 30 TUI repetitions, 12 restart repetitions and all 48 browser-link tests. * Allow user-selected agent versions and keep only OpenCode major gates Remove exact CLI version metadata, Cursor version admission and forced update suppression. Install current Cursor by default and leave version selection to agent Dockerfiles. Preserve only OpenCode 1.x versus 2.x compatibility checks, accepting same-major upgrades without warnings. Update templates, specs, user docs and readiness/launch coverage. Full make pre-push and focused policy suites pass. * WIP: pre-worktree commit for awman/70-feedback-from-altana * seed large prompts via readonly file * WI 0055: WI 0158: Improve builtin runtime image-source setup and `ready` errors (#73) * WI 0055: WI 0158: Improve builtin runtime image-source setup and `ready` errors * Fix CI: classify macOS non-socket Docker endpoints macOS returns ENOTSOCK when a configured Unix endpoint is a regular file. Rust exposes no dedicated ErrorKind for it, so the error escaped the permanent local-source diagnosis and became a retryable network failure. Recognize the typed OS code and exercise it through a nested error on Unix, retaining remote endpoint exclusion. The existing malformed-path component test continues to verify real platform behavior. * Enable and validate the builtin runtime on Linux x86_64 (#75) * Enable Linux x86_64 builtin runtime and native prerelease validation * Complete Linux artifact and native validation contracts * Exercise registry failure boundaries and preserve root license * Validate registry proxy authentication and retry boundaries * Wait for registry startup after the Docker port is published * Set Linux release ABI baseline and reconcile upstream patch proposals * Validate source-independent Linux guests and fix native test workflows * Fix Linux private state and complete native and release workflows * Keep Linux test roots private and remove retired release hooks * Make native validation reproducible on clean Linux checkouts * Fix private worker locks and enforce offline Linux acceptance * Select native suite features per package and synchronize leak probes * Fix native agent strategy fixtures and validate x86 memory accounting * Validate cached Linux guests with enabled and disabled builders * Collect native JUnit evidence from the configured nextest store * Keep native Cargo builds independent of parent package metadata * Keep native validation tests after production items * Record independently verified Linux native and installation acceptance * WI 0070: Feedback from Altana (#76) * Implement work item 0070: Feedback from Altana * Fix CI: Windows build of settings_profile snapshot_io snapshot_io matched libc errno constants, but libc is a unix-only dependency, so the Windows build failed with E0433. Keep the exact errno check on unix and match the portable NotADirectory/InvalidInput kinds elsewhere (Windows has no ELOOP). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix CI: Windows component tests for WI 0070 The Windows component job failed once the Windows build compiled: - ACP refused "/workspace" on a Windows host: Path::is_absolute is host-relative, but the session cwd is a POSIX container path. Check for a leading '/' instead. - dir() overlays split a Windows drive letter ("D:\...") as the host/container separator. On Windows, keep a leading drive with the host path; unix parsing is unchanged. - Automation and credential tests failed the sandbox LEAK check because the sandbox was closed while the SQLite store still held the database open, which Unix tolerates and Windows does not. Rig/Host now drop the sandbox last, and the credential tests let the sandbox's checked Drop run after their other locals (aspec/devops/testing.md). - Settings profiles, secure session-config copying and unix:// runtime endpoints are unix-only by design (session_seed refuses elsewhere). Their tests are compiled only on unix, per the testing spec's platform-specific contract rule; each profile suite still runs tests on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix CI: automation executions outlived their owners (Windows LEAK) The writer pump held a strong Arc<Cell> while the cell held the pump's queue sender, and the timer task held the cell and controller strongly. Nothing ever broke the cycle, so every execution's cell, store handle and task lived as long as the runtime. On Windows the open database kept the test tempdir from being removed; in a daemon it leaked one cell per execution. Both tasks now hold Weak references and stop once no owner remains. The admission and observer rigs register executions on the process-wide controller; they now abandon them and release held leases on drop. The overlay test compares the mount against the canonical payload path, which is what production records (\\?\ on Windows). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix CI: release automation test databases before sandbox close Two remaining holders kept each test's SQLite database and lease file open past the sandbox's check (Windows cannot remove open files; reproduced on Linux by listing /proc/self/fd under the sandbox at close): - The admission rig used the process-wide controller, which retains finished terminals (and their store) for request replay by design. Each rig now owns its own ExecutionController, dropped with the rig. - Credential delivery tasks wait on the execution's stop token, so on the test runtime they still held the store when the body returned, and only went away at runtime shutdown, after the sandbox. These tests now run on a runtime that is dropped, with every spawned task, before the sandbox closes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix CI: workflow plan test overflowed the Windows test stack exec_workflow_plan_applies_per_step_and_refuses_up_front drives a full `exec workflow` future, which overflows the default test thread on Windows (0xc00000fd). Run it on a 16 MiB thread, as production's command workers and the existing workflow_context test do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Address nextgen audit findings A01-A25 (WI 0078) (#79) * WIP: pre-worktree commit for awman/78-address-nextgen-audit-findings * Address nextgen audit findings A01-A25 (WI 0078) * Fix CI: build mount scope tests on Windows The new component security tests used Unix-only directory symlink APIs while the Windows archive compiles every component test. Use platform-specific directory link creation and cleanup so the same authority assertions run on Windows. * Fix CI: Windows mount identity and component tests The Windows component suite exposed missing native setup, canonical path spelling differences, unsafe mount identity gaps, overlay drive parsing, and early sandbox cleanup with open handles. Install a Win32 file identity reader for mount pins, parse verbatim drive paths, and make the component fixtures and assertions use the intended platform behavior. * Fix CI: provide Windows mount identity in test binaries The production binary installs the native file-identity reader, but unit tests link a separate library copy and two component fixtures did not perform binary setup. Use the native shim directly for library unit tests and the component sandbox for integration tests, preserving the production fail-closed requirement. * WI 0072: Lease parity follow-ups: commit identity in every step container and on prompt leases, and lease terminal reconnect (#80) * WI 0072: lease git identity in every container and on prompt items; lease terminal reconnect * Fix CI: relay Clippy lint and Windows push test timeout Use a vacant map entry when restoring lagged terminal subscriptions. Split the push transport contract into separate publish and cancellation cases so each component test stays within its deadline while retaining the retry, cancellation, and no-push assertions. * Fix CI: distinguish exited Windows job leader from descendants Query the Windows job's active process IDs after the supervised leader exits. Ignore the finished leader PID while continuing to report and kill any surviving descendant, avoiding intermittent false leak reports in pipeline component tests. * Preserve ACP turn output before prompt completion * re-work docs and release process * Fix CI: validate builtin config in runtime guide The Getting Started guide now covers the default Docker path and links to the runtimes guide. Keep parsing the documented builtin JSON through the production config decoder, using the runtimes guide where that example now lives. --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements work item 0054: pinned OpenCode 1.x (
opencode), newopencode-v2andcursorbuilt-in agents, and retirement of the built-in Gemini agent with migration errors. Real-runtime smokes that were BLOCKED in automation are listed in the workflow's review-resolution notes.🤖 Generated with Claude Code