Milestone 9: Implementation, verification, and review
Status: COMPLETE and merged. PR #29 delivered M9 from base e00df182dbd6259fda219dcbd37fd298c881ead3; reviewed head 640c120763565518ce804fab083148c9fce1d82f merged to main as 7b24b7c0e388811dc9d2df28481112e2f25cbdb0 on 2026-10-23. Prompt 9 is archived only after this acceptance evidence. M8 remains complete and unchanged. M10 can begin from the refreshed main after this report/index archive update is merged.
Delivered
- Dispatch now requires a current READY interview, exact repository base and approved specification revision, current policy and budget counters, compatible model route/capabilities, and an administrator-approved manifest whose tracked source hash and base revision still match. The scheduler mounts the approved specification and selected harness context read-only into the exact-base task workspace and binds these revisions into the run.
- Added an immutable administrator-approved verification manifest with digest-pinned images, argument-vector commands, criteria mappings, fixed time/output/resource limits, safe artifact paths, and admin-supplied protected fixture snapshots. The verifier shallow-fetches each exact candidate commit inside a per-command rootless Podman tmpfs volume, default-capped at 1 GiB (
VERIFICATION_WORKSPACE_LIMIT_BYTES, configurable from 16 MiB to 4 GiB). This enforces the bound during source materialization and writable test execution; exhaustion is visibly unverified. The command container has no network, a read-only root, dropped capabilities, no-new-privileges, bounded CPU/memory/PIDs/tmpfs, and read-only fixture mounts. Each command container is named and forcibly removed on timeout/cancellation before the volume is removed; both container and volume cleanup results are checked and cleanup failure remains visibly unverified. - Captured exit status, sanitized bounded output, duration, exact source revision, output artifact hashes/size/content where safe, and a requirement/scenario matrix. Failed, missing, timed-out, manual, or unavailable checks cannot become automatic passes. A model response cannot override command evidence.
- Added a fenced verifier worker stage and bounded repair path using the existing shared attempt, spend, and wall-clock policies. Repair invalidates prior review bundles and returns sanitized verifier evidence. The Harness² hook is present and explicitly inactive for M12.
- Added immutable content-addressed review bundles containing code and specification diffs, exact base/head, verification matrix/evidence, costs and route ledger, specification/harness/manifest revisions, and agent/model/image identifiers. Reviewer actions bind to the bundle digest and head. The publication port currently uses a local publisher; a GitHub publication provider belongs to M10.
- OpenSpec archive preparation runs the pinned CLI against a disposable copy of the approved workspace. It applies the frozen approved-spec diff and generated archive diff in order to an isolated Git index, creates an immutable candidate commit pinned under
refs/harnessa/review-candidates/<run-id>-f<fence>, then verifies that exact commit. The bundle binds both implementation and candidate heads; review routes check the archive digest and verifier-reported candidate SHA before allowing reviewer actions. An unverified outcome cannot mark the candidate head verified even when its expected SHA matches. The checked-out branch and protected default branch are not moved. Review approval is blocked if archive preparation or final-head verification is unavailable. Manual integration requires operator evidence, expected base SHA, and a per-repository lock; archive, learning, and candidate-ref cleanup are separate recoverable post-integration steps. - Fixed dispatch to use the same specification workspace manager instance that created the approved workspace. The rootless Podman process receives the host home for its local image store while the container receives
HOME=/tmpon its isolated tmpfs; this was required for real local execution.
Acceptance evidence
Local disposable sample
A disposable Git repository was run through VerificationRunner and real rootless Podman using docker.io/library/python@sha256:a6e34c598f2467ed0e9a8d349809fcd8b5c603269512df273a0bb1784edc11b1 and a protected expected-value fixture. Broken commit 4d106010c42595286ae82c8c9269fa73fab19105 failed. Repair commit c701f85e00d697608d825fcc0c2c4be38bd2be08 passed. A focused real-Podman smoke checked out a commit in a 64 MiB tmpfs volume, ran a networkless command, mounted a protected fixture read-only, captured an output artifact, and removed the volume. A separate 16 MiB volume rejected a 20 MiB source with visible VerificationUnavailable before executing the approved command. A timeout smoke killed the CLI while a container ran sleep; the verifier returned failed/timed-out evidence, with no remaining named container or verification volume. These runs confirm the size bound applies during checkout and execution, and timeout cleanup removes the running container.
The automated acceptance test test_broken_implementation_fails_then_a_new_repair_revision_passes additionally verifies exact revision binding, fail-then-repair behavior, and manual-review status. Integration coverage verifies a genuine READY interview/manifest setup, dispatch fencing, and an OpenSpec archive preview that does not mutate its approved workspace.
Local checks
| Check | Result |
|---|---|
pnpm lint |
Passed; ESLint and Ruff clean. |
pnpm typecheck |
Passed; web, API mypy (45 files), contracts, and React/Svelte design-system checks clean. |
pnpm test:api |
225 passed, 1 skipped, 4 existing Starlette/httpx deprecation warnings. |
pnpm test:integration |
61 passed against disposable loopback PostgreSQL 16.15 and Redis 7 services. |
| Web tests and builds | 27 Vitest tests and 2 cloud-portal tests passed; Astro marketing build and artifact checks passed. |
| Coverage gate | Passed: API 85.04%, aggregate statements 85.30% (minimum 85%). |
tests/test_verification_runner.py |
33 passed, including exact revision, broken-to-repaired, rootless runtime policy, artifact safety, and output handling cases. |
tests/test_review_head.py |
10 passed, including approved-spec plus archive composition, immutable ref pinning without moving HEAD, archive-diff failure, no-op candidate reuse, exact verifier-head binding, lease lifetime, and rejection of expired persistence. |
tests/test_verification_volume.py |
7 passed, including size-limited workspace execution, source/volume validation, artifact and fixture capture, provisioning/checkout failure cleanup, command timeout cleanup, and visible volume-removal failure. |
tests/integration/test_verification_workflow.py |
5 passed against disposable PostgreSQL/Redis; the candidate head includes the approved spec/archive and matches the verification evidence head. |
git diff --check |
Passed. |
| OpenSpec archive preview integration | 1 passed; the CLI archive ran on a disposable copy and emitted archived paths without changing the approved workspace. |
| PostgreSQL migration | Alembic upgrade-to-head and integration setup exercised migration 3e8a91d72bc4; head is 3e8a91d72bc4. |
The final full local pipeline passed after the final source/test changes. pnpm test reported 225 unit tests (one skipped), 61 PostgreSQL/Redis integration tests, 27 web tests, and 2 cloud-portal tests; the marketing build/artifact check and 85% per-package coverage gate passed. The API and integration portions took about 98 seconds combined. Strict MkDocs build, pnpm lint, pnpm typecheck, and git diff --check also passed. The disposable database and Redis containers remain local and will be removed after hosted publication work is prepared.
Offline and live boundary
Local evidence uses Python 3.12.15, Node.js 24.22.1, pnpm 10.34.7, PostgreSQL 16.15 Alpine, Redis 7 Alpine, OpenSpec 1.14.3, and rootless Podman 5.7.0. The default verifier volume cap was 1 GiB; the focused quota acceptance used 64 MiB (pass) and 16 MiB (expected fail). PostgreSQL and Redis were disposable local containers exposed only on loopback. No paid model provider, GitHub write integration, or external repository was used for the sample acceptance. The model route readiness checks use configured fixture data in integration tests; this report does not claim a live provider call.
GitHub publication is intentionally a port for M10. No remote repository branch was modified by the local integration adapter. A reviewer approval is not treated as integration; manual integration requires explicit operator confirmation and matching expected base evidence. Hosted PR review, required checks, and protected merge were completed as recorded below. The GitHub synchronization provider and reconciliation of remote effects remain M10 work.
Recovery and rollback
- Before merge, discard the milestone branch to roll back the implementation. After merge, revert the M9 merge commit through the normal protected
mainworkflow. - The verifier uses disposable workspaces and immutable execution/bundle records; a failed or interrupted verifier must be retried under a new lease fence. Do not delete evidence to clear a blocked task.
- Review candidate commits are held by
refs/harnessa/review-candidates/<run-id>-f<fence>in the configured local source repository. After integration evidence is recorded and cleanup is explicitly confirmed, remove the corresponding ref withgit -C <repository> update-ref -d refs/harnessa/review-candidates/<run-id>-f<fence>; do not remove refs for pending or failed integrations. - Manual integration is idempotent by stable key and expected base SHA. Archive, learning, and cleanup have independent statuses and can be retried separately after integration.
- If an OpenSpec archive preview fails, the bundle remains visible but reviewer approval is blocked. Rebuild it from the approved interview revision; never apply it directly to the protected default branch.
Next prerequisites
Review and protected merge
- PR: #29, base
e00df182dbd6259fda219dcbd37fd298c881ead3, final reviewed head640c120763565518ce804fab083148c9fce1d82f. - Independent exact-head review: no actionable findings. The reviewer confirmed that M9-1 through M9-4 were addressed. All GitHub review threads were resolved (zero unresolved threads).
- Required hosted checks passed on the final head: Local CI (PR and push runs), CodeQL, and Documentation build. Python and JavaScript/TypeScript CodeQL analyses passed; documentation deploy was skipped by workflow policy. No bypass was used.
Protect mainremained active with Local CI and CodeQL required, thread resolution required, approval count zero, last-push approval disabled, and no bypass actors. No formal GitHub approval was submitted; the independent no-findings disposition and required protections governed acceptance.- PR #29 was squash-merged through repository protection at
7b24b7c0e388811dc9d2df28481112e2f25cbdb0on 2026-10-23T06:32:11Z. Refreshedorigin/mainequals the merge commit.
M10 remains the next milestone. Its active prompt requires an authorized GitHub synchronization provider and reconciliation of remote effects against this local review contract. Begin it only from refreshed main after this archival/index update is merged.