packages/agent/docs/work-packages/00-runtime1-removal.md
Complete. No tag. Runtime2 is the sole public implementation. Do not release while its execution path is incomplete.
Make runtime2 the sole public harness implementation, delete runtime1 and its obsolete tests, then stop before adding runtime2 behavior.
harness.md, values.md, assistant-durability.md, and tool-durability.md.harness.md, including durable starting, atomic hook-free acceptance, driver-owned before_run, before_drive, request-local system-prompt transformation, trusted restore, and removal of process-origin activation semantics. Audit §§0.4, 1.2, 3.1–3.6, 4.1–4.2, 4.5, 5.1–5.2, 5.5–5.6, and Parts 8–9; remove every stale BeforeResumePrepared, before_resume, resumeData, systemPromptOverride, stable-ID routing, reservation, and fresh | continue | resume activation reference. Delete obsolete runtime planning documents once harness.md and linked handoffs own the active contract.agent-harness-runtime.test.ts, agent-harness-r2/r3/r4.test.ts, and old restore.test.ts. Preserve unique scenarios in the detailed future rows or a temporary categorized inventory; explicitly discard old reservation, before_resume, resumeData, persisted hook prompt override, semantic restore audit, and pre-outcome_ready tool-crash behavior.before_resume, BeforeResumePrepared, resumeData, systemPromptOverride, and stable hook-ID routing. Add the approved before_drive and transform_context shapes. Update telemetry schema source and regenerate its document. Do not implement starting or acceptance behavior here.packages/agent/src/harness/runtime2/index.ts, point agent-harness.ts at it, and add a constructor-selection regression. Verify the experimental coding-agent worker still creates the harness, subscribes to events, and closes it.[Unreleased] on main or a pull-request branch for the public breaking removals and temporarily incomplete factory. Repository policy forbids changelog edits on dev, so WP00 records but does not perform that release-facing step here.packages/agent/src/harness/runtime/**
packages/agent/src/harness/restore.ts
packages/agent/test/harness/agent-harness-runtime.test.ts
packages/agent/test/harness/agent-harness-r2.test.ts
packages/agent/test/harness/agent-harness-r3.test.ts
packages/agent/test/harness/agent-harness-r4.test.ts
packages/agent/test/harness/restore.test.ts
packages/agent/test/harness/scratch/r1.ts
packages/agent/test/harness/scratch/r2.ts
packages/agent/test/harness/scratch/r3.ts
packages/agent/test/harness/scratch/r4.ts
test/harness/runtime2/** tests;types.test.ts, updated for the reduced public contract;packages/agent/src/agent-loop.ts unchanged.Do not parameterize obsolete runtime1 suites against runtime2 and do not keep a runtime1 smoke suite.
harness/runtime/*.AgentHarness.create() selects runtime2.experimental-remote-runtime.test.tsexperimental-session-worker-manager.test.ts (the upstream replacement for the removed experimental-session-worker.test.ts)experimental-session-worker-lifecycle.test.tsgit diff --check and npm run check pass.harness.md; stale acceptance/resume contracts are absent.AgentHarness.create() resolves through runtime2/index.ts; a constructor-selection regression proves it.starting or atomic acceptance.Stop once runtime1 is absent, runtime2 is the public factory, retained coverage is green, and all checks pass. Report the deletion and harvested scenarios; do not begin another work package.