From 3785d1962f78d139f17df2faf54613a47dcf7cad Mon Sep 17 00:00:00 2001 From: Dotta Date: Sun, 11 Oct 2026 00:24:57 -0500 Subject: [PATCH] Preserve route coverage and record post-idle result --- doc/plans/2026-10-10-boat-validation.md | 10 +++- .../local42-claude-post-idle-failure.json | 53 +++++++++++++++++++ server/src/__tests__/computer-routes.test.ts | 2 +- 3 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 doc/plans/assets/2026-10-10-boat/evidence/local42-claude-post-idle-failure.json diff --git a/doc/plans/2026-10-10-boat-validation.md b/doc/plans/2026-10-10-boat-validation.md index cfef1eb941a..aecbfbc6239 100644 --- a/doc/plans/2026-10-10-boat-validation.md +++ b/doc/plans/2026-10-10-boat-validation.md @@ -12,7 +12,7 @@ | Staging candidate | Deployment 20 of `d50dd0f49befcbe53875ad3acad9a39381f4a89b` is in progress. It preserves applied staging migration history and appends only the missing upstream index. Runtime comparison against the combined branch differs only in two migration filename references. Serving verification and final legacy regression remain pending. | | Local retry | Local42 serves controller `7c7c35b1ca` and fresh task BOA19 has the matched `28d3fc1b65` diagnostic pack selected. Its first-use 1166 MiB upload completed at 05:04:11 UTC. The fresh turn succeeded and reread both original proof hashes; an ordinary warm follow-up also succeeded at 05:08:05 UTC with the same saved session, runner, and provider thread. Earlier local40/41 attempts selected old remote artifacts through saved test-drive configuration; the correction preserves the database and historical failed sessions. | -Staging19 establishes the main native runtime, desktop, and warm development journeys on its recorded source. The older quarantined local Claude session remains a failure. Live sibling cancellation isolation remains unverified. The full local suite is not green; latest-head CI and final-source staging acceptance are still pending. +Staging19 establishes the main native runtime, desktop, and warm development journeys on its recorded source. The older quarantined local Claude session remains a failure. The corrected fresh Claude session passed cold/warm turns but then failed its ordinary post-idle continuation at provider session opening. Live sibling cancellation isolation remains unverified. The full local suite is not green; latest-head CI and final-source staging acceptance are still pending. The [consolidated retry receipt](assets/2026-10-10-boat/evidence/retry-qualification-summary.json) preserves earlier sources, timestamps, failures, and receipt hashes. [Staging19 receipts](assets/2026-10-10-boat/evidence/staging19-live-evidence.json) contain the newer successes. A deployment proves serving source, not product acceptance. No provider stop was forced or cancelled, no quarantine was cleared, and no database history was reset or rewritten. Dated observations below retain their original cutoffs. @@ -206,3 +206,11 @@ The full recursive typecheck and build passed on combined `0421a3b8c0`. Core `18 The corrected fixture passed both fresh and ordinary warm jobs. The running executable hash matched the intended diagnostic binary, and the selected pack digest matched its source receipt. Both turns read the original persistent proof hashes unchanged. The native session, logical runner, provider thread, process identity and computer owner remained stable across warm reuse. Cold completion took 12m02 including the first-use 1166 MiB upload; the warm follow-up took 1m21. This proves the corrected fixture works; it does not explain or erase earlier failures. No saved state, quarantine, or package authority was reset. The configured five-minute idle period is now being observed before a post-idle follow-up. [Receipt](assets/2026-10-10-boat/evidence/local42-claude-cold-warm-proof.json) ยท [Visible result](assets/2026-10-10-boat/local-42-claude-warm-proof.png). + +## Local42 post-idle failure (2026-10-11 05:19 UTC) + +After the configured warm deadline at 05:13:05.578, the exact owner retired. Boat naturally archived; its stop completed at 05:13:32.291, verified by a read-only provider observation at 05:14:37. No guest probe kept it alive. An ordinary same-task message then resumed the same logical runner and saved session on a new physical boot. The runner connected, but ACPX rejected `session.open` with `retryable=false` and an unclassified reason before any provider events. Drain and suspension completed. This is a failed post-idle continuation, not an upload timeout or a persistence pass. A later recovery message about saving the previous session is secondary to the opening rejection. Diagnosis is ongoing; no session state was reset. [Receipt](assets/2026-10-10-boat/evidence/local42-claude-post-idle-failure.json). + +## Current-environment selection correction (2026-10-11 05:24 UTC) + +Review found that a historical Boat lease could win over an agent's current environment selection after reassignment. Core `4bddd14a2b`, combined `a27fd63ba9`, and staging candidate `9e8f6669f8` select the current agent/instance environment first and constrain any preview lease to that exact environment, company, task, and provider. Disconnect still permits authenticated cleanup of the old viewer. The new actual-route/database regression suite passed eight cases and server TypeScript; independent review was clean. Both combined route suites then passed all 24 cases, with zero skips, after the mocked fixture explicitly selected its intended default environment. Only disposable test databases were created and dropped. Deployment and latest-head review remain pending. diff --git a/doc/plans/assets/2026-10-10-boat/evidence/local42-claude-post-idle-failure.json b/doc/plans/assets/2026-10-10-boat/evidence/local42-claude-post-idle-failure.json new file mode 100644 index 00000000000..7dda2de080f --- /dev/null +++ b/doc/plans/assets/2026-10-10-boat/evidence/local42-claude-post-idle-failure.json @@ -0,0 +1,53 @@ +{ + "source": "7c7c35b1ca2c82d378f49afdbb2d06bb8af5c673", + "artifactSource": "28d3fc1b6580ed2088f7c91b7bd61b8348ff1de7", + "naturalArchive": { + "checkedAt": "2026-10-11T05:14:37.554Z", + "id": "bx_ndnggjad", + "state": "archived", + "health": "ok", + "hydrated": true, + "stop": { + "id": "stop_e8b5186d69fc09f0", + "status": "completed", + "requestedAt": null, + "lastAttemptAt": "2026-10-11T05:13:32.291Z", + "endedAt": "2026-10-11T05:13:32.291Z", + "error": null + } + }, + "postIdleFailure": { + "at": "2026-10-11T05:19:01.255936+00:00", + "identity": { + "runnerInstanceId": "13a06b89-735f-45d0-97cb-e41b4ff757cd", + "environmentLeaseId": "ab152fcf-ea0a-4f74-b83b-24d0242bbe55", + "runId": "27aae78f-bf75-4c06-ba80-7d2f01b7df49", + "normalizedSessionId": "438f844d-05d6-4ce2-ba3e-edbd97abca66", + "turnId": "turn-27aae78f-bf75-4c06-ba80-7d2f01b7df49", + "itemId": "item-27aae78f-bf75-4c06-ba80-7d2f01b7df49" + }, + "providerPackDigests": [ + "af875f72dbce8bf9f1bb2cce962e8380d5b23dd72fb98c84d04e949d9665c719", + "af875f72dbce8bf9f1bb2cce962e8380d5b23dd72fb98c84d04e949d9665c719" + ], + "connectionCount": 1, + "events": 0, + "commands": [ + { + "type": "run.attach", + "status": "failed", + "result": { + "commandId": "command_prp_00000001", + "commandType": "run.attach", + "controllerSeq": 1, + "result": { + "code": "command_execution_failed", + "message": "failed to start ACPX provider: ACPX sidecar command session.open was rejected (retryable=false, classification=unclassified)" + }, + "status": "failed" + } + } + ] + }, + "interpretation": "Cold and warm passed; ordinary post-idle continuation failed before provider work. The new runner connected, then the saved session.open was rejected. No proof-file read occurred and no reset or manual stop was used." +} diff --git a/server/src/__tests__/computer-routes.test.ts b/server/src/__tests__/computer-routes.test.ts index b46d3583d03..0ca01cfb7bd 100644 --- a/server/src/__tests__/computer-routes.test.ts +++ b/server/src/__tests__/computer-routes.test.ts @@ -190,7 +190,7 @@ function fixture( beforeEach(() => { vi.clearAllMocks(); mocks.experimental.mockResolvedValue({ enableBoatEnvironments: true }); - mocks.settings.mockResolvedValue({ defaultEnvironmentId: null }); + mocks.settings.mockResolvedValue({ defaultEnvironmentId: environmentId }); mocks.owner.mockReturnValue(owner); });