Milestone 6 — OpenSpec discovery, readiness, and clarification
Status: complete. M6 acceptance is met by the live synthetic Architect/readiness evidence, exact pinned OpenCode 1.19.4 offline ACP compatibility checks, final local gates, and protected delivery of PR #21 at merge SHA a55924350aebf2112ff7906978548727de081e4a. The final exact-head independent review reported no findings; required Local CI and CodeQL plus documentation checks passed. Earlier failed live attempts recorded below are historical and were superseded by the successful persisted Architect draft and READY evaluation in the final acceptance evidence. M3's optional paid-provider compatibility probe remains optional and is not an M6 blocker. M6 is archived; milestone 7 is the active milestone. See “Final M6 delivery reconciliation” for exact evidence and limitations.
Authorized M6 evidence follow-up (2026-10-22)
- OpenCode pinned runtime (live local container, offline provider route): pulled
ghcr.io/anomalyco/opencode:1.19.4@sha256:bf8e2b5f785166a12a26cbb34ef1a2d35403368438efe036fd16c795a975c505forlinux/amd64. The first exact script run exposed two defects in compatibility metadata/tests: the agent registry and ACP version default still expected 2.0.32, and the broker smoke assumed one completion request even though OpenCode 1.19.4 makes a bounded completion plus stream request. The adapter expectation, registry record, and affected tests now match 1.19.4. The smoke accepts only one or two requests and checks each request's organization/project scope, task/run/fencing identity, pinned alias, output ceiling (1–128 in smoke), streaming constraint, and prompt. Synthetic image test tags were aligned to 1.19.4. - Fixture/offline command evidence:
UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_offline_smoke.pypassed: ACP v1 initialization/session creation, resume capability, no prompt,network=none, fixture-only workspace, and no provider key/socket.UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_broker_offline_smoke.pypassed: ACP prompt reachedend_turn, exactly two fake-router calls, both bounded to 128 output tokens and the scoped alias,provider_call=false, andnetwork=none.UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/agent_registry.py apps/api/harnessa/adapters/acp_execution.py tests/test_acp_execution.py tests/test_podman_sandbox.py scripts/m5_acp_broker_offline_smoke.pypassed (Ruff 0.17.1).UV_OFFLINE=1 uv run pytest -q tests/test_acp_execution.py tests/test_podman_sandbox.pypassed (26 tests; Python 3.12.15, pytest 9.1.1). A live isolated Architect preparation also exercised the API bootstrap/authentication, scoped project/repository registration, pinned OpenSpec 1.14.3 validation, configured model account/deployment/alias, and budget setup against disposable PostgreSQL/Redis. - One authorized live Architect request (not accepted): the user authorized one request only, using the cheapest route and a hard $0.01 ceiling. Disposable PostgreSQL 16.10 (
sha256:38471f...), Redis 7.4.2 (sha256:02419d...), and the exact LiteLLM imageghcr.io/berriai/litellm:v1.83.14-stable.patch.3@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2were used. The local proxy had retries/fallback disabled and exposed only the fixedcohere/north-mini-code:freeroute; only the LiteLLM container receivedOPENROUTER_API_KEY. Harnessa ran without that credential. Organization/project/task/run dollar limits were $0.01; token ceilings were 10,000; maximum steps 1; wall limit 120 seconds; output ceiling 256 tokens; Harnessa attempts 1; provider usage was declared at $0/M tokens. A synthetic one-file Git repository was the only source content. Exact request:POST /projects/90939e40-a2fd-41b0-99b7-ef7decb4ab37/specification-interviews/2dccfaf2-4f48-50a4-94f5-160a9283a0af/architect, expected revision 1, generation explicitly authorized, idempotency keym6-live-architect-single-call-2026-10-22. It returned HTTP 502,The Architect response was missing or exceeded its output bound(request IDf78952ac-e09b-44db-b2c0-bde51fcfee52); local LiteLLM logged HTTP 200 from OpenRouter. No second Architect/model request was made. The one-call authorization is consumed; live Architect acceptance remains unmet. This evidence is distinct from offline fake-router results. - Container/tool versions and cleanup: Python 3.12.15, uv 0.13.1, Node 24.22.0 for OpenSpec, OpenSpec 1.14.3, pytest 9.1.1, Ruff 0.17.1, LiteLLM proxy 1.83.14-stable.patch.3, OpenCode 1.19.4. The PostgreSQL and Redis disposable containers were stopped; no persistent Harnessa/Lerd service or database was changed. Temporary API workspace, fixture, LiteLLM config, and container names are under
/tmporharnessa-m6-architect-*; cleanup command ispodman stop --time 5 harnessa-m6-architect-litellm harnessa-m6-architect-pg harnessa-m6-architect-redis. Recovery consists of deleting only/tmp/harnessa-m6-*after the containers stop; no source fixture or database needs preservation. No production/provider-paid route was used. - Disposition: pinned OpenCode transport validation is complete for both offline smoke paths. Live Architect evidence is an unsuccessful authorized attempt and must remain reported as such. Do not retry it without new explicit authorization. M6 remains active/partial, so M7 feature work remains prohibited.
Runner target change and current evidence (2026-10-22)
- The user selected GitHub-hosted ephemeral CI to keep PR-controlled code off persistent local runners. This supersedes the archived prompt's local-self-hosted-runner implementation for M6. Workflows now target GitHub-hosted
ubuntu-24.04; the CI service containers retain the existing PostgreSQL and Redis SHA-256 digests and test ports. This changes where CI executes, not Harnessa's scheduler, ACP boundary, or task/run/attempt authority. - PR dependency inventory was refreshed with
gh pr list --state open --limit 100 --json number,headRefName,baseRefName,headRefOid,...and the live PR #16 details. No open PR targetscodex/milestone-6or lists it as a base; the 14 other open PRs targetmaindirectly and are not prerequisites/stacked dependencies of #16. The user confirmed to merge only PRs dependent on #16, so no unrelated PR was modified. - Live GitHub check:
gh run list --repo miguelenes/harnessa-v1 --branch codex/milestone-6 --limit 10 --json databaseId,name,status,conclusion,headSha,url. The listed runs on203f124(39826186723Local CI,39826186739CodeQL,39826183802Local CI) and preceding heads were completed with conclusioncancelled. Those cancellations are not passing evidence. - The temporary base VM and cache-pack preparation were stopped;
pgrep -af 'qemu-system-x86_64.*harnessa-m6-runner|tar .*harnessa-m6|zstd'found no such process. The four pre-existing shared desktop runner services were not stopped or modified. No VM or external provider was used to validate these workflow edits. - Removed the
required_reviewersprotection from GitHub environmentharnessa-local-ciusinggh api --method PUT repos/miguelenes/harnessa-v1/environments/harnessa-local-ci --input -with{"wait_timer":0,"reviewers":[],"deployment_branch_policy":{"protected_branches":true,"custom_branch_policies":false}}; read-back showed only the protected-branch policy remained. The M6 CI and CodeQL jobs no longer reference this environment, so they do not wait for a deployment approval. The repository'sProtect mainruleset was left intact; it currently requires zero formal PR approvals and still requires the configured checks and resolved review threads. No review was submitted under the author's identity. - CI remains named
Local CIto preserve the repository's required status-check name. It uses a hosted runner and GitHub service containers for PostgreSQL and Redis, pinned to the existing digests, with PostgreSQL databaseharnessa_ci_test, ports 55432 and 56379, 10-second health intervals, five health retries, and a 60-minute job timeout. No per-container CPU/memory/PID limits are configured on the hosted runner. It runs frozen dependency installs, lint/typecheck, web/site builds, andpnpm test. Python is pinned to 3.12.15, uv to 0.13.1, Node to 26.12.0, and pnpm to 10.34.7. CI no longer depends on preinstalled local caches or Podman cleanup. The CI concurrency group usesqueue: maxwithcancel-in-progress: falseso push and PR runs are retained rather than silently replacing queued checks. CodeQL and documentation build/deploy also targetubuntu-24.04; third-party Actions remain pinned to full SHAs. - Static validation: PyYAML 6.0.3 parsed all three workflow files and
git diff --checkpassed. GitHub accepted the workflow definitions and initialized both digest-pinned service containers. On exact PR heada0023b017da03a4e8d7145357bfcfb1b22534e2b, hosted Local CI PR run39827696676passed in 2m42s onubuntu-24.04: dependency installs, lint/typecheck, both builds,pnpm test(110 unit tests, 32 integrations, 10 React/web tests, 2 Svelte tests, marketing static artifact check), and the 85% project coverage gate. Python coverage: API 85.27%; aggregate line 85.52%, statement 85.82%; Web 100%/94.19%; React 100%/100%; Cloud Portal 96%/98.86%; Svelte UI 100%/100%. CodeQL PR run39827696739also passed both languages. The push run39827687136on the same head was cancelled before job creation when GitHub replaced its queued run; this prompted thequeue: maxsetting. A later exact-SHA push and PR pair verified the queue setting; see the next row. These checks are live hosted GitHub evidence, distinct from fixture/offline tests. - Queue behavior verification: after adding
queue: max, both push Local CI run39828281262and PR Local CI run39828290471completed successfully on exact SHAf95441ca3eac1f55b83a1ffcb82e58cad089715d; CodeQL PR run39828290528passed Python and JavaScript/TypeScript. The older queued-run cancellation did not recur. These are live hosted GitHub results, distinct from fixture/offline tests. - Readiness regression repair (commit
48c53ab39e3b17d7f3fd621abffd4fa1540f1040): the gate checks an organization-scoped interactive route, the ACP broker's 1 MiB serialized-request bound plus configured output ceiling, and a project budget policy whose output limit covers that ceiling. It makes no provider call. The canonical local service-backed suite passed with 110 unit tests and 37 integration tests, including missing-pool, incompatible-tools, undersized-context, missing-budget-policy, and insufficient-output-budget cases. Ruff, ESLint, TypeScript, API mypy, strict mypy, design-system checks, andgit diff --checkpassed. Disposable PostgreSQL and Redis used the pinned CI image digests and resource limits; both stopped via the exit trap. On the exact same source SHA, hosted push Local CI39829557899and PR Local CI39829560820passed; CodeQL39829560976passed both languages. Hosted package coverage: API 85.24%/85.24%; Web 100%/94.19%; React 100%/100%; Cloud Portal 96%/98.86%; Svelte UI 100%/100%; aggregate 85.50%/85.79%. - Merge and post-merge evidence: PR #16 merged with merge strategy to
main, yielding merge SHA6f9afaa074f0d66b6ab53662193898ba024e2a03; the protected workflow deleted its remote source branch. Post-merge Local CI run39831340877and CodeQL run39831340787passed on that SHA. Documentation run39831340946failed atmkdocs build --strict --site-dir sitebecausedocs/milestones/06.mdwas not listed inmkdocs.ymlnavigation; deploy was skipped and no Pages artifact was uploaded. PR #18 fixed the navigation, enabled strict documentation build checks for pull requests, corrected the compatibility note, and merged at1ae0e3925c8c61e5da23a4573b6c58083e5437ca; GitHub deleted its remote branch. - Documentation navigation repair: added “Milestone 6” under
Milestonesinmkdocs.yml, enabled strict documentation build checks for pull requests, and limited Pages deployment to pushes tomain.uv run --offline --with-requirements requirements-docs.txt mkdocs --versionreported MkDocs 1.6.1 (Python 3.12); the pinned Material theme is 9.7.7.uv run --offline --with-requirements requirements-docs.txt mkdocs build --strict --site-dir /tmp/harnessa-m6-docs-sitepassed in 0.23 seconds with no warnings, writing only to/tmp; no Pages upload or deployment was performed locally. On exact PR #18 head7dc15a602ba21ae1028b405c69e5b604474363d4, Documentation run39832933355passed strict build and artifact upload; the Pages deploy job was skipped for the pull request. CodeQL run39832933320passed Python and JavaScript/TypeScript, and required PR Local CI run39832933375passed in 2m34s, including lint/typecheck, builds, tests, and coverage. After merge, Documentation run39834589532passed both build and Pages deployment; CodeQL run39834589985and Local CI run39834589468passed on merge SHA1ae0e3925c8c61e5da23a4573b6c58083e5437ca. - First hosted validation on exact head
40089db2fcda3f9d28d00f29db608c0a07367589: CodeQL PR run39827229592passed both Python and JavaScript/TypeScript analyses onubuntu-24.04(about 1 minute). Local CI push run39827222939initialized both service containers, installed uv 0.13.1/pnpm 10.34.7 and frozen dependencies, passed lint/typecheck and web/site builds, then failed inpnpm test: 109 passed and one ACP adapter unit test failed because its fake backend omitted the newly requiredbuild_orchestrator_toolprotocol method. No integration or coverage stages ran after that failure. The test fixture now implements the method;UV_OFFLINE=1 uv run pytest -q tests/test_acp_execution.pypassed (12 tests, Python 3.12.15/pytest 9.1.1). Hosted reruns on the new commit are required; the queued PR run on40089dbis not acceptance evidence. - If hosted execution is unsuitable, keep the PR open and make a focused fix or revert commit on
codex/milestone-6; do not re-enable local runner execution or restore a manual approval gate without a new explicit user direction. Do not reset or force-push. PRs #16 and #18 were merged through GitHub's protected workflow as recorded above. - M6 follow-on prerequisites: complete the remaining acceptance evidence below before considering M6 complete or archiving its prompt. PR #18's exact-head Local CI, CodeQL, and strict Docs checks, plus post-merge main checks and Pages deployment, all passed. The final read-only review found no remaining findings. No M7 work is included.
Baseline and authority
- The isolated worktree is
/home/menes/.codex/worktrees/codex-milestone-6/harnessa_v1, branchcodex/milestone-6. At kickoff its HEAD andorigin/mainwere bothc76bd94a305121628db5eb2c98bce0e2c2109e49(Prepare public Harnessa launch (#13)). The localmainref in this worktree remains atfa51ed0bc92a0d2d7753b5112079c9d636257bc5; it was not used or advanced. The primary checkout was kept separate. Coverage and offline acceptance tests were committed asde725e9bde3b92ad15f34d23cd5eeaf1a0ddc84aand pushed to PR #16; the default branch was not modified. - The product baseline commit
cb7105e58bde64c0537e41258fd563995d7a9da8(feat: add parallel web foundation and cloud sites (#1)) is an ancestor of the selected base. The existing React/Svelte system and marketing/cloud sites were retained; the M6 browser workbench remains deferred to M8. - M4’s documented NO-GO for LangGraph remains in force. The PostgreSQL scheduler is still the only task/run/attempt, lease/fencing, checkpoint, event, budget, question, and external-effect authority. No LangGraph dependency, second checkpoint owner, or live state migration was introduced. ACP SDK objects stay behind adapters; public HTTP/OpenAPI/TypeScript contracts use Harnessa models.
Prerequisite evidence rechecked
Earlier reports were inspected and their acceptance evidence was compared against the current test paths; the current canonical suite below also reruns the prior service-backed orchestration and model-gateway tests.
| Milestone | Evidence and remaining limitation |
|---|---|
| 1 — foundation | Recorded 6 unit tests, frozen pnpm install, generated-contract/typecheck, Ruff/ESLint, and Next build evidence in docs/milestones/01.md. |
| 2 — orchestration | Recorded 6 unit tests and 9 PostgreSQL/Redis integration tests, including migration upgrade and recovery checks in docs/milestones/02.md. |
| 3 — model gateway | Recorded 9 unit tests and 17 PostgreSQL/Redis integration tests in docs/milestones/03.md. The optional paid-provider compatibility call remains pending; M6 made no provider call. |
| 4 — runtime decision | Its report records 17 scheduler/model-gateway integrations and 3 candidate spike tests. Decision remains NO-GO for LangGraph; the default Harnessa scheduler stays selected. |
| 5 — ACP execution | Its report records 26 unit tests, 18 service-backed integrations, and OpenCode 2.0.32 protocol plus fake-router prompt smokes. No provider call was made. The image was updated to the desired 1.19.4 digest for compatibility review, but that image is not present locally and its two offline smokes were not rerun. |
M6 implementation
- Added pinned
@fission-ai/openspec==1.14.3and exercised its installed CLI/schema rather than inferring commands from/opsx:*assistant workflow names. The installedspec-drivenschema, proposal/spec/design/tasks templates,schema validate,new change,--version, and non-interactive JSON change validation were inspected. The fixture acceptance creates a four-file versioned bundle, invokes actual OpenSpec validation, and evaluates readiness through the real gate logic. - Added bounded private Git workspaces. Repository sources are explicitly mapped local Git roots; the implementation creates a task-scoped branch with no remote. Database records point at immutable Git commit/content hashes; the database is not an editable copy of specification text. Lexical search is read-only and emits revision/path/line citations marked as untrusted repository content. Explorer results expose current specs and archived OpenSpec paths.
- Added durable interviews, questions, answers, artifact revisions, and readiness evaluations through Alembic revision
d6a5e7c4b209(down_revision=5c0a4b6d1e9f). Question records retain source, classification, revision, run/attempt/fencing identity when agent-created, affected artifacts, evidence, and answer provenance. Idempotency keys, expected revisions, stale-base invalidation, and operator authorization guard writes. - Added the Architect port through the existing primary
ModelRouter; structured outputs are validated and output size/token bounds are enforced. The integration acceptance uses a deterministic fake Architect and never contacts a model. A repository-scoped clarification service persists questions before waiting, checks run/task/fencing identity, resumes with an authorized answer, and pauses when an answer changes scope. - Added authenticated API routes for interviews, questions/answers, artifact read/edit and diffs, readiness, optional sign-off, repository search/explorer, and Architect requests. Regenerated the TypeScript contract from the FastAPI OpenAPI document using the existing pipeline; generated schemas contain the M6 endpoints and do not expose ACP SDK types.
packages/contractshas a typecheck gate. Browser interview/artifact wiring remains deferred to M8. - Added root
AGENTS.md, canonicalpnpm testorchestration and coverage tooling, Svelte/React tests, a static marketing artifact check, and.github/workflows/ci.yml. The coverage aggregator excludes generated/build output and the generated OpenAPI client. Marketing is reported as non-executable only while its complete source tree is Astro/CSS; the built HTML receives explicit content/landmark/skip-link checks. - Audited active Python configuration, API/service/adapter boundaries, lifecycle and async cleanup, SQLAlchemy/Alembic behavior, and tests. Expanded Ruff to cover
scripts; fixed import/type/error formatting and blocking subprocess use in the offline ACP broker smoke. Fixedui-reactTypeScript 6 rootDir after the first sites build reported TS5011. Corrected M6 migration JSON columns to use the same PostgreSQL JSONB variant as ORM metadata afteralembic checkdetected the mismatch.
Toolchain and dependency refresh
Host tools on 2026-10-22: Node.js 24.22.1, pnpm 10.34.7, uv 0.13.1, Podman 5.7.0. uv ran Python 3.12.15 from the lock; the host interpreter was Python 3.14.4 and was not used for project tests. Exact current package and image versions are listed in docs/compatibility.md.
Selected changes from the M6 base include:
| Surface | Base → selected | Compatibility/evidence |
|---|---|---|
| Python runtime | Python 3.12.12 image → 3.12.15, support remains >=3.12,<3.13 |
Kept the supported minor; the API image installs uv 0.13.5. |
| API runtime | FastAPI 0.121.0 → 0.159.1; Uvicorn 0.38.0 → 0.54.0; Pydantic settings 2.11.0 → 2.16.1; SQLAlchemy 2.0.44 → 2.0.55; asyncpg 0.30.0 → 0.32.0; Alembic 1.17.0 → 1.20.1; redis-py 6.4.0 → 8.1.0; FastAPI Users 14.0.1 → 15.0.5; pwdlib 0.2.1 → 0.3.0; python-multipart 0.0.20 → 0.0.32 | Exact pins and uv.lock updated. SQLAlchemy 2.0.55 is the newest accepted by the selected FastAPI Users SQLAlchemy package. |
| Python development | pytest 8.4.2 → 9.1.1; Ruff 0.14.2 → 0.17.1; mypy 1.18.2 → 2.4.0 | Added pytest-cov 7.1.0 and pytest-xdist 3.8.0 for the requested gates. |
| Web toolchain | TypeScript 5.9.3 → 6.0.3 in app/design packages; ESLint 9.38.0 → 10.13.0; tailwind-merge 3.3.1 → 3.7.0 | Contracts retain TypeScript 5.9.3 for openapi-typescript 7.13.0. Next’s transitive lint plugins still declare peer ranges ending below ESLint 10; lint passes, but the warning remains documented. |
| Test packages | Added Vitest and @vitest/coverage-v8 5.0.5, Testing Library, jsdom 30.1.3 |
Exact workspace pins and lockfile updated. |
| Node/container images | Web Node 24.10.0 → 26.12.0; API image Python 3.12.12 → 3.12.15 plus pinned Node 26.12.0 CLI stage | Immutable manifest digests updated with tags. |
| Services | PostgreSQL 16.10 → 16.13; Redis 7.4.2 → 8.10.2; LiteLLM 1.83.3-stable → 1.83.14-stable.patch.3 | PostgreSQL remains major 16 because PostgreSQL 18 changes its data-directory/volume contract. Digests are in docs/compatibility.md. |
| OpenSpec / OpenCode | Added OpenSpec CLI 1.14.3; desired OpenCode ACP image set to 1.19.4 | OpenSpec CLI exercised locally. OpenCode image absent; it was not pulled, so 1.19.4 compatibility is unverified. |
The pnpm install warning is resolved. pnpm approve-builds approved esbuild, unrs-resolver, and workerd; pnpm-workspace.yaml now records them under allowBuilds. The direct verification command pnpm install --offline --frozen-lockfile completed with “Already up to date” and no ignored-build-scripts warning, using pnpm 10.34.7. UV_OFFLINE=1 uv sync --frozen --offline also passed (61 packages); neither install needed a registry request. A separate earlier pnpm install --offline --frozen-lockfile --ignore-scripts also passed but was not used as proof of the build approval because it suppresses scripts.
Historical GitHub Actions evidence before the hosted-runner switch
This section records the initial self-hosted design and its historical results before the user directed that Actions stop using local runners. Its then-current run statuses and environment approval statements have been superseded by the current runner-target evidence at the top of this report; do not follow the historical runner setup instructions below.
At the time of this snapshot, PR #16 targeted main. Recovery fix abe5c9ee3957b1c07821f6477b701fddd1c777bd and the initial isolated-runner workflow change 848e0d7ddfe682e054af24b78499248ae278197d were pushed to codex/milestone-6; the report snapshot head was d710e71cc2316b9db8f271d442431ab5d2e2b12d. At that time, PR Local CI run 39825932473 was pending its protected environment, CodeQL run 39825932368 was waiting, and push Local CI run 39825925163 was cancelled. These old statuses are retained only as historical evidence.
| Check/evidence | Exact command or configuration | Result and limits |
|---|---|---|
| Local CI workflow | .github/workflows/ci.yml; pnpm lint, pnpm typecheck, uv run mypy --strict --follow-imports=silent apps/api/harnessa, pnpm typecheck:design-system, pnpm build:web, pnpm build:sites, pnpm test |
GitHub Actions run 39818610597 executed on head aa58194390a33a15d385f1cc23bf32c76b8cbc11. Toolchain verification, offline uv sync --frozen --offline, pnpm install --offline --frozen-lockfile, bounded PostgreSQL/Redis startup and readiness, lint/typecheck, builds, Python unit tests (29), PostgreSQL/Redis integration tests (22), React/web tests (10), cloud-portal tests (2), and marketing artifact check passed. pnpm test then failed only at scripts/check_project_coverage.py --minimum 85: API 4,167/5,722 lines (72.82%); aggregate 4,281/5,838 lines (73.33%). Statements were 72.82% API and 73.93% aggregate. Thus this is a real Actions run, not local emulation, but it is not a passing required check. |
| Workflow setup repair | Added $HOME/.local/bin and ${PNPM_HOME:-$HOME/.local/share/pnpm}/bin to $GITHUB_PATH; set OPENSPEC_NODE_PATH from node -p 'process.execPath'; removed install's --ignore-scripts after explicitly allowing the three required build-script packages. |
The exact-head runs verified uv, Node.js 26.12.0, pnpm, and Podman; locked dependency installation, service startup, all build/test stages, and cleanup passed. Earlier runs failed before these changes because uv and then pnpm were not on the runner PATH. |
| CodeQL | .github/workflows/codeql.yml, CodeQL Action v4 pinned at 9b3254085494b55a0f7c4c2b3d2d52cc712ce370, with Node.js 26.12.0 set up before JavaScript/TypeScript extraction. |
Run 39818618102 passed Python and JavaScript/TypeScript analysis on the exact head above. The CodeQL check run also passed. |
| CodeQL alert repair | Replaced href.includes("github.com") in tests/web/svelte.test.ts with URL parsing and exact hostname === "github.com". Local command: pnpm exec vitest run --config apps/cloud-portal/vitest.config.ts tests/web/svelte.test.ts. |
1 file and 2 tests passed. This removed the new high-severity “Incomplete URL substring sanitization” CodeQL finding on the cloud-portal URL assertion. |
| Exact-head Local CI success | Workflow .github/workflows/ci.yml; canonical pnpm test plus lint, typecheck, and builds |
Push run 39822630551 and PR run 39822640902 both passed on de725e9bde3b92ad15f34d23cd5eeaf1a0ddc84a. The PR job ran on harnessa-v1-desktop-pc-2 (self-hosted, linux, x64, harnessa-local); Node 26.12.0, Python 3.14.4 host with uv-selected Python 3.12.15, uv 0.13.1, pnpm 10.34.7, pytest 9.1.1, xdist 3.8.0, pytest-cov 7.1.0. It provisioned PostgreSQL 16.10 and Redis 7.4.2 at loopback ports 55432/56379 with CPU/memory/PID limits 2/1 GiB/256 and 1/256 MiB/128. Unit 109, integrations 30, React/web 10, cloud portal 2 passed; installs, lint/typecheck, builds and cleanup passed. API coverage was 4,872/5,723 (85.13%); aggregate lines 4,986/5,839 (85.39%) and statements 5,132/5,989 (85.69%). This is live GitHub runner evidence, but does not prove disposable runner isolation or approval protections. |
| Clarification recovery fix | UV_OFFLINE=1 TEST_DATABASE_URL=postgresql+asyncpg://postgres@127.0.0.1:58439/harnessa_recovery_test TEST_REDIS_URL=redis://127.0.0.1:58389/1 uv run pytest -q tests/integration/test_specifications.py tests/test_acp_recovery.py; UV_OFFLINE=1 uv run ruff check apps/api/harnessa/services/specifications.py apps/api/harnessa/adapters/acp_execution.py tests/integration/test_specifications.py; UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa |
At commit abe5c9e, recovery test command passed (7 tests), Ruff 0.17.1 passed, and strict mypy 2.4.0 passed across 44 API files. Python 3.12.15 and uv 0.13.1. PostgreSQL and Redis were disposable, preloaded by digest, and used only offline: PostgreSQL 16.10 harnessa-m6-recovery-pg at 127.0.0.1:58439, database harnessa_recovery_test, digest sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74; Redis 7.4.2 harnessa-m6-recovery-redis at 127.0.0.1:58389, DB 1, digest sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952. Both containers were stopped after the run. |
| Fresh independent review | Read-only review of PR #16 at d710e71cc2316b9db8f271d442431ab5d2e2b12d against c76bd94a305121628db5eb2c98bce0e2c2109e49 |
Free independent review marked the lease-loss clarification finding resolved: answer, exact artifact revision, readiness evaluation and bounded untrusted artifact bundle reach the recovered attempt. It identified the remaining P1 blocker: the unique runner label and environment selector do not themselves prove an isolated one-job VM. This is agent review evidence, not a GitHub approval. The only commit after workflow/code head 848e0d7 is this report update. |
| Historical exact-head checks before runner switch | PR #16 at d710e71cc2316b9db8f271d442431ab5d2e2b12d; Local CI run 39825932473, CodeQL run 39825932368 |
At the time, Local CI was pending harnessa-local-ci reviewer approval and CodeQL was waiting for the unique self-hosted label. The push Local CI run 39825925163 was cancelled. No check on this head passed. These results are not current acceptance evidence. |
| Workflow syntax check | python with PyYAML yaml.safe_load over each .github/workflows/*.yml; git diff --check |
All three workflow files parsed and the diff check passed. actionlint is unavailable; parsing does not establish GitHub semantic validation or a live run. |
At the d710e71 snapshot, CI, CodeQL, and documentation jobs required [self-hosted, linux, x64, harnessa-local, harnessa-m6-ephemeral]; CI/CodeQL/documentation build referenced harnessa-local-ci. The extra label kept four persistent desktop runners from claiming those jobs, and no isolated one-job runner was registered. The local service limits were PostgreSQL 2 CPUs/1 GiB/256 PIDs and Redis 1 CPU/256 MiB/128 PIDs, using digest-pinned images on loopback ports with cleanup. The environment then required reviewer miguelenes; the Protect main ruleset required PRs, resolved review threads, strict Local CI and CodeQL checks, and prohibited force pushes/deletion, with zero formal approval count. This configuration is superseded by the user-directed hosted-runner setup at the top of the report. The historical review evidence is not a GitHub approval. No live agent, paid model, provider credential, or production service was used in that snapshot.
The earlier coverage-gate Actions failure was corrected and passed on exact head de725e9. Later self-hosted runner setup and approval requirements were superseded by the user's direction. Current exact-head hosted checks and review status are recorded at the top of this report. If a future regression requires rollback, use an ordinary revert commit on codex/milestone-6 for the specific repair; do not reset or force-push the branch or revert unrelated milestone commits. At this historical snapshot, M6 acceptance was active pending exact-head checks and review; current remaining acceptance limits are listed in the follow-on section. The next milestone remains out of scope.
Local validation evidence
| Command | Result |
|---|---|
pnpm install --offline --frozen-lockfile |
Passed offline with all 8 workspace projects and no ignored build-script warning. |
UV_OFFLINE=1 uv sync --frozen --offline |
Passed; 61 packages checked. |
UV_OFFLINE=1 pnpm lint |
Passed: ESLint and Ruff over apps/api, tests, and scripts. |
UV_OFFLINE=1 pnpm typecheck |
Passed: web TypeScript, mypy on 35 configured API files, contract TS5.9 check, React TS6 and Svelte checks (0 errors/warnings). |
UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa |
Passed; 44 source files. |
UV_OFFLINE=1 pnpm build:web |
Passed with Next.js 16.4.2; /, /login, and /projects prerendered. |
UV_OFFLINE=1 pnpm build:sites |
Passed: UI React/Svelte packages, Astro 7.4.2 marketing output, and SvelteKit cloud portal/Vite 8.3.5. |
pnpm contracts:generate with a temporary local Uvicorn API (--lifespan off) |
Passed using openapi-typescript 7.13.0; generated M6 schemas and routes. pnpm typecheck:contracts passed. |
Final canonical UV_OFFLINE=1 TEST_DATABASE_URL=postgresql+asyncpg://postgres@127.0.0.1:55432/harnessa_m6_final_test TEST_REDIS_URL=redis://127.0.0.1:56379/1 pnpm test |
Passed on the isolated M6 worktree with Python 3.12.15, Node 24.22.1, uv 0.13.1, pytest 9.1.1, pytest-xdist 3.8.0, pytest-cov 7.1.0, pnpm 10.34.7, and Vitest/coverage-v8 5.0.5. Four xdist workers ran 110 unit tests; the serial PostgreSQL/Redis suite ran 37 integrations; React/web 10, cloud-portal 2, and the marketing build/artifact check passed. The final gate passed at API 4,922/5,767 lines and statements (85.35%) and aggregate 5,036/5,883 lines (85.60%) / 5,182/6,033 statements (85.89%). Readiness cases cover a missing interactive pool, a route without tool support, context one token below the broker input/output bound, no project budget policy, and an output ceiling above policy. Disposable services used the CI image digests, loopback ports 55432/56379, PostgreSQL database harnessa_m6_final_test, Redis DB 1, CPU/memory/PID limits, and an exit cleanup trap. This is local fixture evidence; exact-head GitHub checks and live-agent/provider behavior are recorded separately. |
| Focused source checks | pnpm lint:api passed Ruff across API/tests/scripts; UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa passed all 44 source files. |
| Local Actions source/build steps | UV_OFFLINE=1 pnpm lint, UV_OFFLINE=1 pnpm typecheck, strict mypy, UV_OFFLINE=1 pnpm typecheck:design-system, UV_OFFLINE=1 pnpm build:web, and UV_OFFLINE=1 pnpm build:sites all passed. This local toolchain used Node 24.22.1; the workflow itself pins and verifies Node 26.12.0, so only the forthcoming exact-head Actions run can confirm that runner version. |
| Added acceptance coverage | Deterministic tests cover ACP execution completion, cancellation and cleanup; fenced clarification over a local Unix socket; OpenSpec private workspace idempotent recovery and stale-head handling; Architect structured output using a fake Harnessa router; sandbox arguments, bridge mount checks, compiler/build fixtures, and Podman validation/error paths; and model-gateway parsing helpers. All model/provider interactions were faked; no model call, external service, or spend occurred. |
podman compose -f infra/compose.yaml config -q |
Passed; local configuration only, no services were started by this command. |
PyYAML 6.0.3 parse of .github/workflows/ci.yml |
YAML syntax parsed and the expected Local CI job was present. actionlint was unavailable; this is not GitHub workflow semantic validation or a live run. |
| Disposable DB migration check | downgrade 5c0a4b6d1e9f, upgrade head, and alembic check passed after the JSONB correction. Current revision is d6a5e7c4b209 (head) and Alembic reports “No new upgrade operations detected.” |
The final project coverage gate is configured at 85% line and statement coverage per executable package and aggregate. It was not weakened to make the command green.
| Package | Lines | Statements |
|---|---|---|
| API/worker | 4,922 / 5,767 — 85.35% | 4,922 / 5,767 — 85.35% |
| Web | 21 / 21 — 100% | 81 / 86 — 94.19% |
| React design system | 19 / 19 — 100% | 19 / 19 — 100% |
| Cloud portal | 48 / 50 — 96.00% | 87 / 88 — 98.86% |
| Svelte design system | 26 / 26 — 100% | 73 / 73 — 100% |
| Marketing | N/A: source is Astro/CSS static markup; generated HTML artifact check passes | N/A for static markup |
| Aggregate | 5,036 / 5,883 — 85.60% | 5,182 / 6,033 — 85.89% |
The API requires 4,902 covered statements/lines to reach 85%; 4,922 are covered. The latest run includes newly covered branches in the ACP execution adapter, orchestrator broker, Podman sandbox, specification workspace/Architect, model gateway route configuration, and authenticated route suites; remaining uncovered behavior stays inside the gate. packages/contracts/src/generated.ts is generated OpenAPI output; packages/contracts/src/index.ts is a type-only re-export. Build output such as .next is excluded. The static-only marketing exception is guarded by checking that the entire source tree still contains only .astro/.css files and by requiring the built artifact check.
The first alembic check found seven M6 JSON-vs-JSONB comparisons. The migration was corrected to use JSON().with_variant(postgresql.JSONB(astext_type=Text()), "postgresql"), matching JSON_DOCUMENT in ORM metadata. The earlier downgrade attempt without an explicit DATABASE_URL selected the local default and failed password authentication before any migration ran; it was rerun with the disposable test database URL and succeeded. No development or production database was targeted.
Earlier live open-PR snapshot (superseded by the current branch refresh)
The authenticated live inventory contained 13 open PRs. Current heads and bases were refreshed; complete diffs/files, commit history, review submissions/threads, linked context, dependency/runtime/image/migration/security compatibility, and status rollups were inspected. No PR had an approval or unresolved review thread that satisfied M6’s review gate. Three PRs below now have green CodeQL runs on the exact refreshed heads; those are CodeQL checks, not the Harnessa app suite. No PR was merged and no source branch was deleted.
| PR | Current head (full SHA) | Base main SHA |
Finding, action, and current checks |
|---|---|---|---|
| #2 | 073c7cfd1ca941a7fa74c1ad3885f067521d7098 |
24e071643c5ab87abce4fd50893c6fde357fe290 |
LiteLLM image update is behind the M6 pin 1.83.14-stable.patch.3; no checks on head. Keep open. |
| #3 | fa410259959f744aaf7da25bbd7ce97511805600 |
119f1ab55c370889e2db268ca832e326c7da7cca |
Redis server update is behind M6’s 8.10.2 digest; no checks on head. Keep open. |
| #4 | d1f2a7d8bdd2aa3e4a6ccffe59220c87809d6588 |
119f1ab55c370889e2db268ca832e326c7da7cca |
PostgreSQL 18.4 major upgrade changes PGDATA/volume contract and needs a migration/restore plan; no checks. Keep open. |
| #5 | a8aa31178569c2cd0c41106fb272848a1ba38998 |
c76bd94a305121628db5eb2c98bce0e2c2109e49 |
Python 3.14 image violated >=3.12,<3.13; Dockerfile restored to pinned Python 3.12.15. CodeQL workflow Node setup was corrected (commit 812a6bfbdeb517fe208e5f23a7d9cb92a1824421); Python revert is current head a8aa31178569c2cd0c41106fb272848a1ba38998. Exact-head Python/JS CodeQL and workflow checks all SUCCESS; app gates/image build not run. Keep open. |
| #6 | 99969a18bbb13d9d871e71ec0d8d25f9cbb336be |
fa51ed0bc92a0d2d7753b5112079c9d636257bc5 |
Grouped uv change includes the obsolete spikes/orchestration/candidate LangGraph spike and stale root versions; no checks. M4 NO-GO remains. Keep open. |
| #7 | 3bc638127551822d84ff666c1b2937baaf6f572f |
119f1ab55c370889e2db268ca832e326c7da7cca |
Mypy update has no exact-head app checks; current M6 pin is 2.4.0. Keep open pending exact-head verification. |
| #8 | 51ef1b8b4364a1bcbb4b471a1ed47fdd7730eb68 |
119f1ab55c370889e2db268ca832e326c7da7cca |
Pytest update has no exact-head app checks; current M6 pin is 9.1.1. Keep open pending exact-head verification. |
| #9 | 7e42edea1e0015ff7a762b9c48f0fe0f64346e90 |
119f1ab55c370889e2db268ca832e326c7da7cca |
Node 26 image is compatible with the M6 toolchain, but this stale-base head has no checks or image build. Keep open. |
| #10 | 6f211b39eaf4db70fea640d337458c85c2979b9c |
119f1ab55c370889e2db268ca832e326c7da7cca |
redis-py major update has no exact-head test evidence and is behind the M6 pin; keep open. |
| #11 | e1f6eaf00c14b448c2197a0f21c6ee9b0051b844 |
119f1ab55c370889e2db268ca832e326c7da7cca |
Pytest change is in the obsolete LangGraph candidate spike and has no checks. Keep open under the M4 NO-GO. |
| #12 | 3bfd3ff5671858be8a329f48cc14aaf41cddb56b |
119f1ab55c370889e2db268ca832e326c7da7cca |
Redis change is in the obsolete LangGraph candidate spike and has no checks. Keep open under the M4 NO-GO. |
| #14 | 101df239931d7ca3028615cdd3f8e9b69620966e |
c76bd94a305121628db5eb2c98bce0e2c2109e49 |
Fixed CodeQL JavaScript job’s missing Node via Node 26 setup; commit 101df239931d7ca3028615cdd3f8e9b69620966e. Python/JS CodeQL and workflow checks all SUCCESS on exact head; grouped dependency app tests not run. Keep open. |
| #15 | d8e3500764027752fabbe5c3ba408b1e040d430b |
c76bd94a305121628db5eb2c98bce0e2c2109e49 |
Updated workflow Node to 26.12.0 (commit d8e3500764027752fabbe5c3ba408b1e040d430b). Python/JS CodeQL and workflow checks all SUCCESS on exact head; app tests/review not run. Keep open. |
M6 PR #16 targets main. The following was the initial audit snapshot before the 2026-10-22 runner-target change: on exact head de725e9bde3b92ad15f34d23cd5eeaf1a0ddc84a, push run 39822630551 and PR run 39822640902 passed; both CodeQL languages also passed. At that snapshot the local-CI environment/runner protection was incomplete. This historical snapshot is superseded by the current GitHub-hosted workflow and environment state recorded above.
The three corrected PRs are attached to this task. Other open PR heads had no check runs. Their source branches were not deleted because no PR was merged. The user-reported 74 Dependabot alerts (2 critical, 25 high, 31 moderate, 16 low) were not refreshed as part of this inventory and are not claimed resolved.
Historical self-hosted workflow and live settings (superseded 2026-10-22)
These bullets record the configuration as it stood before the user directed Actions to stop using local runners. They are historical evidence only; none of the runner-provisioning or environment-approval instructions below remain active.
- The initial CI design used self-hosted labels and the
harnessa-local-cienvironment. It pinned checkout v7.0.1 (3d3c42e5aac5ba805825da76410c181273ba90b1) and setup-node v7.1.0 (949feb2413d6458794dcd2491c4babbbce0c15c1) to full SHAs, used Node 26.12.0, and ran install, lint, typecheck, builds, and canonical tests. CodeQL and documentation jobs were also initially routed to the unique local label. - The initial local CI design provisioned disposable PostgreSQL 16.10 and Redis 7.4.2 by immutable digests, loopback-only on 55432/56379, with CPU 2/1, memory 1 GiB/256 MiB, PID limits 256/128, and
--pull=never. Local integration used the same digests and limits on ports 58432/58379, databaseharnessa_m6_spec_test, Redis DB 1. - Earlier PR Actions did run on
harnessa-v1-desktop-pc-2with generic labels[self-hosted, linux, x64, harnessa-local]. Four persistent desktop runners existed; they were not isolated one-job runners. The temporary KVM preparation was stopped after the user's request to stop local Actions. No local runner is being provisioned for this milestone. - The live
Protect mainruleset applies only torefs/heads/main, requires pull requests, resolved review threads, strictLocal CIandCodeQLstatus checks, and disallows deletion/non-fast-forward updates. It requires 0 formal PR approvals. The formerharnessa-local-cirequired reviewer was removed on 2026-10-22; its protected-branch policy remains. Current workflow and environment state is described in the runner-target section near the top of this report. - At the initial snapshot, a configured workflow did not launch an independent review agent. The current PR received a free read-only review on the
40089dbrevision and another review was requested forf95441c; review evidence applies only to the exact revision reviewed. GitHub-hosted CI/CodeQL results ona0023b0passed; the exactf95441chosted runs were still queued or running at the time of this historical snapshot. No approval is requested from the user; the ruleset requires zero formal PR approvals.
Offline versus live evidence
- Fixture/offline: deterministic OpenSpec topic/bundle/readiness, authenticated M6 API flow, actual local OpenSpec CLI validation, fake Architect output, durable question/answer/revision behavior, Git search/explorer, stale-base invalidation before scheduler claim, and fake-router ACP paths. These are local fixture results; the fake Architect does not establish a live model result.
- Live model/agent: no provider call, paid call, or real OpenCode 1.19.4 run occurred.
OPENSPEC_MODEL_ALIASwas not configured. The required provider credential/route and spending authorization were unavailable for a live Architect result.podman image existsforghcr.io/anomalyco/opencode:1.19.4@sha256:bf8e2b5f785166a12a26cbb34ef1a2d35403368438efe036fd16c795a975c505returned exit 1; no image pull was made. M5’s OpenCode 2.0.32 fake-router result remains the last live-agent transport evidence; it is not evidence for the 1.19.4 image or a real provider. - GitHub/runner: PR #16 final source SHA
3fab604da1d64313018482aff0412b44d157b78cpassed push Local CI39830509320, PR Local CI39830519298, and CodeQL39830518850; the independent read-only review found no blocker, and the only review thread was resolved. PR #16 merged as6f9afaa074f0d66b6ab53662193898ba024e2a03; post-merge Local CI39831340877and CodeQL39831340787passed. Documentation run39831340946failed because strict navigation omitted M6, so deployment was skipped. PR #18 head7dc15a602ba21ae1028b405c69e5b604474363d4passed strict Documentation39832933355, CodeQL39832933320, and Local CI39832933375. It merged as1ae0e3925c8c61e5da23a4573b6c58083e5437ca, with remote branch deletion confirmed. Post-merge Documentation39834589532passed build and deployment; CodeQL39834589985and Local CI39834589468passed on that merge SHA. These are live GitHub-hosted results. - Production/GitHub writes: no Harnessa application deployment, production migration, or production data change occurred. PR #16 and dependent documentation PR #18 merged through the protected workflow; the Pages workflow published the updated documentation on merge SHA
1ae0e3925c8c61e5da23a4573b6c58083e5437ca.
Recovery and rollback
- The disposable integration services can be stopped with
podman stop --time 5 harnessa-m6-spec-pgandpodman stop --time 5 harnessa-m6-spec-redis; remove any remaining stopped containers withpodman rmusing those exact names. Their databases are disposable and tests truncate the configured database and flush only Redis DB 1. - On a disposable M6 test database only, migration rollback is
DATABASE_URL=<disposable *_test URL> uv run python -m alembic downgrade 5c0a4b6d1e9ffromapps/api, thenupgrade headto restore the schema. Downgrade drops only M6 interview/question/answer/artifact-revision/readiness tables and their indexes. Back up and preserve any needed M6 records before applying this to a non-test environment; no live rollback was performed. - M6 implementation was merged through PR #16; its merge commit is
6f9afaa074f0d66b6ab53662193898ba024e2a03, and GitHub deleted the remotecodex/milestone-6branch. To roll back the M6 implementation, create an ordinary revert PR for that merge commit after assessing dependent changes; do not reset, force-push, or altermaindirectly. PR #18's docs navigation and workflow changes can be reverted separately through an ordinary revert PR for merge commit1ae0e3925c8c61e5da23a4573b6c58083e5437ca.
Follow-on prerequisites before milestone 7
- The exact source SHA
48c53ab39e3b17d7f3fd621abffd4fa1540f1040passed hosted line and statement coverage above 85% for every executable package and aggregate; post-merge Local CI and CodeQL also passed on merge SHA6f9afaa074f0d66b6ab53662193898ba024e2a03. - PR #16 and its documentation fix PR #18 are merged. Strict Docs build, PR Local CI, and CodeQL passed on PR #18 head
7dc15a602ba21ae1028b405c69e5b604474363d4; post-merge Local CI, CodeQL, Docs build, and Pages deploy passed on merge SHA1ae0e3925c8c61e5da23a4573b6c58083e5437ca. Do not provision a local runner or reintroduce a manual environment approval wait. - If live Architect evidence is required, configure the primary route and provider credentials, set an explicit spending ceiling, and authorize the live call. No such call was made here.
- Make the pinned OpenCode 1.19.4 image available in the permitted offline image cache and rerun both M5 ACP smoke scripts before marking that compatibility row verified.
- Refresh the live Dependabot alert count and clear the PR inventory under the protected workflow. Keep spike PRs #11/#12 aligned with the M4 NO-GO.
Until those acceptance conditions are evidenced, keep milestone 6 active and stop here.
OpenCode default and backward-compatibility correction (2026-10-22)
Following the user's direction, OpenCode 2.0.32 remains the runtime default and OpenCode 1.19.4 remains supported for backward compatibility. The previous follow-up's temporary 1.19.4-only default is superseded. ACP_AGENT_IMAGE and the application default use the M5-verified OpenCode 2.0.32 digest sha256:85986f556e985e377bd24cd68a5ccfbc647bb49e591194edda8a0e4542303319. The internal ACP compatibility record names 2.0.32 as package_version and explicitly supports both versions; the handshake accepts either supported version. This does not expose ACP types through public contracts. Both M6 smoke scripts remain pinned to 1.19.4 to validate the compatibility path; M5's historical 2.0.32 smoke evidence establishes the default path. Unit tests use a 2.0.32 default image while the fake ACP agent reports 1.19.4, proving the backwards-compatible version check.
After this steering, the focused validation passed: UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_offline_smoke.py completed against OpenCode 1.19.4; UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_broker_offline_smoke.py completed against OpenCode 1.19.4 with one scoped fake-router request, provider_call=false, and network=none; the broker script also emitted an expected logged validation error from its malformed-token-boundary case before its final success record. Temporary copies of both scripts retargeted to cached ghcr.io/anomalyco/opencode:2.0.32@sha256:85986f556e985e377bd24cd68a5ccfbc647bb49e591194edda8a0e4542303319 also completed: protocol initialization/session creation passed, and broker prompt routing returned offline-ok with one scoped fake-router request and no provider/network access. UV_OFFLINE=1 uv run pytest -q tests/test_acp_protocol.py tests/test_acp_execution.py tests/test_podman_sandbox.py passed (31 tests); the focused ruff check command named above and git diff --check passed. Thus both pinned versions have offline protocol/broker compatibility evidence, while the live Architect result remains failed and M6 acceptance remains incomplete. The configured 2.0.32 digest was already validated in the M5 report; no new GHCR pull is included in this correction.
Bounded Architect failure diagnostics (2026-10-22)
The failed live request recorded LiteLLM HTTP 200 and Harnessa HTTP 502, but the old adapter used one error for absent choices/message/content, non-text content, and content exceeding 512000 UTF-8 bytes. The response body/shape was not retained, so it is not possible to distinguish the cause retroactively without another authorized generation. The adapter now distinguishes those cases with fixed, content-free error messages while preserving rejection of every invalid response; it never echoes model content. UV_OFFLINE=1 uv run pytest -q tests/test_specification_architect.py tests/test_acp_protocol.py tests/test_acp_execution.py tests/test_podman_sandbox.py passed (41 tests); UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/specification_architect.py tests/test_specification_architect.py and git diff --check passed. This improves diagnosis only and does not satisfy live Architect acceptance. The prior single-call authorization remains consumed; a new provider call requires a new explicit authorization.
Current-main compatibility rerun (2026-10-22)
After rebasing the local compatibility branch onto origin/main=d9e514a6ce867b5862b578c2ede0f0f5a1052fd9, both checked-in scripts passed against pinned OpenCode 1.19.4: UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_offline_smoke.py and UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_broker_offline_smoke.py. The latter reported two bounded fake-router requests, provider_call=false, and container_network=none. Temporary copies retargeted to the cached OpenCode 2.0.32 digest also passed after the rebase: initialization/session creation reported version 2.0.32; the broker smoke reported one fake-router request, offline-ok, provider_call=false, and container_network=none. Both versions reported a workspace-only mount for protocol initialization; the broker case mounted only the expected model relay/socket/config and fixture workspace, with resource limits 2 GiB, 2 CPUs, and 256 PIDs. The broker negative-case log for a request missing max_tokens is expected and followed by a successful bounded request.
On the rebased source head, UV_OFFLINE=1 uv run pytest -q tests/test_specification_architect.py tests/test_acp_protocol.py tests/test_acp_execution.py tests/test_podman_sandbox.py passed (41 tests), UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/agent_registry.py apps/api/harnessa/adapters/acp_execution.py apps/api/harnessa/adapters/specification_architect.py apps/api/harnessa/config.py tests/test_acp_protocol.py tests/test_acp_execution.py tests/test_podman_sandbox.py tests/test_specification_architect.py scripts/m5_acp_offline_smoke.py scripts/m5_acp_broker_offline_smoke.py passed, and git diff --check passed. These remain local/offline ACP and fixture-router validations. No live Architect retry was performed; its prior authorization remains consumed and M6 acceptance remains active/partial.
Alternate free-route Architect attempt and structured-output follow-up (2026-10-22)
After the prior authorized request failed, the user authorized exactly one alternate free-model route with the same $0.01 ceiling. The route was selected from the current official OpenRouter free-model catalog, using NVIDIA Nemotron 3.5 Lightning (nvidia/nemotron-3.5-lightning:free). Its model page lists zero token pricing, supports tool calls, and does not support response_format; the synthetic fixture contained no confidential or personal information.
- Limits and isolation: one project, task, and run each capped at
$0.01; one Harnessa attempt; no LiteLLM retry or fallback; 10,000-token project/task/run limits; 120-second wall bound; 4,096 maximum output tokens. Only the LiteLLM container receivedOPENROUTER_API_KEY; the API received no provider credential. Only a one-file synthetic Git repository was registered. - Request:
POST /projects/e0f50056-2960-4396-924b-2e380d2d54ab/specification-interviews/2e0ca220-54c8-57d1-8c35-ba4532a9b0cf/architect, expected revision 1, explicit generation authorization, idempotency keym6-live-architect-alternate-single-call-2026-10-22. Exactly one provider request was sent. - Result: OpenRouter/LiteLLM HTTP 200; Harnessa HTTP 502 with
The Architect response did not match the structured draft contract, request ID6dbfe413-48b0-44a7-8bae-de5a3c9dcd68. The ledger reports one attempt on aliasm6-nemotron-free, actual modelnvidia/nemotron-3.5-lightning:free, 401 input tokens, 3,821 output tokens, known usage, zero billed/estimated USD, and no pending reservation. No draft or questions were returned. The response content was not retained, so the JSON/schema failure detail is unknown. The one-call authorization is consumed. - Evidence type: live provider-backed Harnessa Architect request using a synthetic fixture, not fake-router/offline evidence. The model is officially listed as free and free usage is rate-limited; the request's Harnessa ledger reports zero cost.
- Temporary-service recovery: loopback-only disposable API, PostgreSQL 16.10, Redis 7.4.2, and LiteLLM
v1.83.14-stable.patch.3were stopped;/tmp/harnessa-m6-live-architect-alt-20261022was removed. Shared Harnessa and Lerd services were not modified.
Local M6 structured-output remediation (not yet merged)
The M6 Architect adapter now supplies a single submit_architect_draft function schema derived from ArchitectDraft, marks tools required for route capability selection, and sets OpenAI-compatible tool_choice=required through an internal keyword-only router option. The adapter validates returned function arguments as the existing strict Pydantic draft; it does not execute the function call. Provider failures report only bounded allow-listed finish reasons/field names or JSON error category, position, character count, validation error count, and approved schema paths. No provider text or arbitrary response value is echoed. No public request field or TypeScript contract changed.
Validation on branch codex/m6-architect-response-shape-diagnostics: UV_OFFLINE=1 uv run pytest -q tests/test_specification_architect.py tests/test_model_gateway_contracts.py passed (17 tests); UV_OFFLINE=1 uv run ruff check apps/api/harnessa/contracts.py apps/api/harnessa/services/model_gateway.py apps/api/harnessa/adapters/specification_architect.py tests/test_specification_architect.py tests/test_model_gateway_contracts.py passed; UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa passed (44 files); git diff --check passed. This remediation is a local working change, not yet independently reviewed, merged, or provider-validated. M6 remains active/partial. A further provider attempt requires another fresh authorization.
One authorized tool-call Architect validation (2026-10-22)
The user authorized exactly one 4,096-token tool-call attempt with the previously approved $0.01 ceiling. On the local M6 remediation branch codex/m6-architect-response-shape-diagnostics, one synthetic interview was sent through Harnessa to the single free route nvidia/nemotron-3.5-lightning:free using LiteLLM v1.83.14-stable.patch.3. The configured route required chat-completions tool capability, set tool_choice=required, and disabled retries/fallback. The API had no provider credential; only the LiteLLM container held the OPENROUTER_API_KEY reference. The project, task, and run caps were each $0.01; token caps were 10,000; maximum output was 4,096; maximum attempts was 1; wall bound was 120 seconds. Only a synthetic greeting-utility repository was registered.
- Request:
POST /projects/08ae6dd8-7754-4dbe-9ff2-0f714d27bac4/specification-interviews/2d988175-f005-5c9c-afe9-2b48383687b5/architect, expected revision 1, explicit generation authorization, idempotency keym6-live-architect-tool-single-call-2026-10-22. - The provider request returned LiteLLM/OpenRouter HTTP 200. The Harnessa usage ledger records one
attempt_startedand oneattempt_succeededon aliasm6-nemotron-tool, actual modelnvidia/nemotron-3.5-lightning:free, 1,133 input tokens, 1,533 output tokens, usage known,$0billed/estimated, and zero pending reservations. There was no retry or fallback. The tool arguments passed the strictArchitectDraftparser: Harnessa persisted artifact revision 2 and one Architect question at source revision 2. - The API then returned HTTP 503, request ID
6e2e9b95-7cd5-4cd8-ab52-827a816d0c08, while evaluating the generated OpenSpec bundle. Pinned OpenSpec 1.14.3 validation exited 1 and reportedvalid=falsewith three issues (in the generated spec, tasks, and bundle structure). Harnessa left readinessSTALE; this draft did not reach READY. The model response itself was not copied into the report or console. Thus this is evidence that the required typed tool-call path produced a persisted structured draft, but it does not pass end-to-end live Architect/readiness acceptance. - Offline diagnostic command:
UV_OFFLINE=1 uv run --no-sync python /tmp/harnessa-m6-live-architect-tool-20261022/validate_offline.pyreported OpenSpec1.14.3, validation exit 1,valid=false, 3 issues, and no stderr. This reran only local validation against the private synthetic workspace; it made no model request. - Exact image pins were LiteLLM
ghcr.io/berriai/litellm:v1.83.14-stable.patch.3@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2, PostgreSQL 16.10docker.io/library/postgres@sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74, and Redis 7.4.2docker.io/library/redis@sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952. Node was 24.22.1. The exact one-call authorization is consumed; no further attempt is authorized. - Cleanup: stopped the API session and only
harnessa-m6-tool-litellm,harnessa-m6-tool-pg, andharnessa-m6-tool-redis; removed/tmp/harnessa-m6-live-architect-tool-20261022. The existing Harnessa/Lerd services were not touched. The M6 remediation remains local, unreviewed, and unmerged. M6 remains active/partial; M7 stays blocked before kickoff.
OpenSpec validation exit-code correction (2026-10-22)
The authorized tool-call attempt showed OpenSpec 1.14.3 returns a structured JSON validation result on stdout with exit status 1 for an invalid draft. SpecificationWorkspaceManager._run_cli previously raised on every nonzero exit and discarded this result, turning a correctly rejected draft into an HTTP 503. On branch codex/m6-architect-response-shape-diagnostics, the adapter now accepts bounded parseable validate --json output containing an items array even when the CLI exits nonzero; other nonzero CLI operations and malformed validation output still fail closed. Readiness can consume valid=false and keep an invalid interview stale/not ready.
Validation: UV_OFFLINE=1 uv run pytest -q tests/test_specifications.py tests/test_specification_architect.py tests/test_model_gateway_contracts.py passed (45 tests), including direct nonzero-exit handling and a pinned OpenSpec 1.14.3 invalid-bundle test. UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/specification_workspace.py apps/api/harnessa/contracts.py apps/api/harnessa/services/model_gateway.py apps/api/harnessa/adapters/specification_architect.py tests/test_specifications.py tests/test_specification_architect.py tests/test_model_gateway_contracts.py passed; UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa passed (44 files); git diff --check passed. This corrects error classification and adds offline evidence only. It does not repair the already-generated invalid live draft; no second provider attempt was made. The remediation remains unreviewed/unmerged and M6 active/partial.
Architect prompt conformance hardening (2026-10-22)
The live draft's pinned validation failed after the required tool call was parsed. Since its generated text was removed during disposable-environment cleanup and no additional provider request is authorized, the Architect system prompt now gives the exact installed template shape for proposal, delta spec, design, and tasks, including requirement/scenario/WHEN/THEN and requirement-to-verification mapping syntax. The deterministic router test asserts these schema instructions are present. The offline specification/Architect/model-router suite remains 45 passed; Ruff, strict mypy (44 source files), and git diff --check pass. This is prompt and offline-contract evidence, not evidence that a new live draft validates. M6 remains active/partial pending fresh live evidence and the protected review/merge workflow.
Authorized M6 Architect follow-up: live drafts remain invalid (2026-10-22)
After the user's renewed authorization, four single-attempt Architect requests used separate synthetic projects. Each project/task/run had a $0.01 cap, 10,000-token ceilings, max_steps=1, max_attempts=1, max_wall_seconds=120, and a 4,096-token output ceiling. The only route was nvidia/nemotron-3.5-lightning:free through LiteLLM ghcr.io/berriai/litellm:v1.83.14-stable.patch.3@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2; LiteLLM retries and fallbacks were disabled. The API had no provider credential; only the proxy container received the OPENROUTER_API_KEY reference. The only repository source was a two-file synthetic greeting fixture. No external MCP, embedding, Qdrant, or paid-model call occurred.
| Request ID | Harnessa | Provider usage | Outcome |
|---|---|---|---|
25e52335-c775-4b7d-8475-fc4bd0e80975 |
HTTP 200 | 1,291 input / 3,828 output; known; $0 billed/estimated |
Draft revision 2 and one question persisted; readiness NOT_READY. |
cb7df300-f726-4af8-80ad-b4c56cf5cf24 |
HTTP 200 | 1,370 input / 3,722 output; known; $0 billed/estimated |
OpenSpec 1.14.3 returned valid=false: it recognized no delta sections because the provider flattened headings/line breaks into a single line. |
c2cc7fc5-797f-4df3-b633-fe4a171344c2 |
HTTP 200 | 1,369 input / 2,553 output; known; $0 billed/estimated |
Readiness remained NOT_READY; OpenSpec again recognized no delta sections. Entity decoding alone did not restore the required Markdown structure. |
acc0c919-18eb-42a8-9592-7a02d8a6aacd |
HTTP 502 | 1,369 input / 4,096 output; known; $0 billed/estimated |
Output reached the full ceiling; Harnessa rejected the resulting structured response. No valid artifact was accepted. |
All four provider attempts were successful at the proxy/ledger level with known usage and no pending reservation: aggregate 5,399 input and 14,199 output tokens; $0 billed/estimated. Each request used a distinct project with one attempt and no fallback. These are live provider-backed results over synthetic fixture data, separate from offline tests. None produced a READY interview. The no-delta validation failures and truncated response leave M6 live acceptance unmet.
The local M6 Architect adapter now decodes HTML entities and restores line boundaries around known OpenSpec template headings, requirement/scenario headings, WHEN/THEN bullets, and checkboxes. A deterministic test covers a flattened delta spec. This code is local, unreviewed, and unmerged. Offline checks on this head:
UV_OFFLINE=1 uv run pytest -q tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py— 46 passed.UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa— 44 source files, no issues.UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/specification_architect.py apps/api/harnessa/adapters/specification_workspace.py apps/api/harnessa/contracts.py apps/api/harnessa/services/model_gateway.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py tests/integration/test_specifications.py— passed.git diff --check— passed.UV_OFFLINE=1 uv run pytest -q tests/integration/test_specifications.py— 11 passed earlier in this turn against disposable PostgreSQL 16.10 and Redis 7.4.2; this preceded the final normalization change and is fixture/offline evidence.
The provider service setup used Node 24.22.1 and OpenSpec 1.14.3. PostgreSQL was docker.io/library/postgres@sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74; Redis was docker.io/library/redis@sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952. API, PostgreSQL, Redis, and LiteLLM listened only on loopback ports 28062, 58440, 58390, and 4402 respectively; containers were CPU/memory/PID bounded. The setup commands were uv run --no-sync alembic -c alembic.ini upgrade head with the disposable DATABASE_URL, followed by uv run --no-sync uvicorn harnessa.main:app --host 127.0.0.1 --port 28062 in the API directory under an env -i environment. The four requests used POST /projects/{project_id}/specification-interviews/{interview_id}/architect; no request was retried. Recovery stopped only harnessa-m6-final-litellm, harnessa-m6-final-pg, and harnessa-m6-final-redis, interrupted the local API process, and removed /tmp/harnessa-m6-architect-final-20261022. The scratch directory and those containers are gone; the LiteLLM image remains cached and can be removed with podman rmi ghcr.io/berriai/litellm:v1.83.14-stable.patch.3@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2 if desired.
M6 remains active/partial: live Architect drafts still fail pinned OpenSpec validation/readiness, and the local remediation has not passed independent PR review, protected CI, or merge. M7 remains active and blocked before feature work. Do not archive it.
Authorized live Architect attempt after <br> normalization (2026-10-22)
A new synthetic interview was provisioned on the M6 remediation checkout at 5420268ade76129d9234a89995dbe3227edddfcd. The request used the only configured free route, nvidia/nemotron-3.5-lightning:free, through LiteLLM v1.83.14-stable.patch.3 pinned to sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2. LiteLLM retries and fallbacks were disabled. The project/task/run each had a $0.01 cap, 20,000-token limits, one model attempt, a 120-second wall bound, and an 8,192-token output bound. The source was a synthetic greeting fixture only; no paid route or user corpus was used.
- Request:
POST /projects/4a9b580b-f592-4446-acb6-5330fdedb6db/specification-interviews/b850efc1-a317-53f1-b824-ee1bb5cd8691/architect, expected revision 1, idempotency keym6-live-architect-br-normalization-2026-10-22. - Result: provider attempt succeeded, but Harnessa returned HTTP 502, request ID
65081a36-582d-4db6-92c2-ecdd80460d00. No new artifact revision or Architect question was returned. Readiness stayedNOT_READY; its existing snapshot reported pinned OpenSpec 1.14.3valid=true, no validation issues, and rubric score1.0. This does not establish a persisted live Architect draft or end-to-end M6 acceptance. - Usage:
nvidia/nemotron-3.5-lightning:free, 1,445 input and exactly 8,192 output tokens, usage known,$0billed/estimated, zero unknown-usage requests and zero pending reservations. The exact output ceiling was reached; the provider response body was not retained, so the 502 cause is unknown. - Service versions: Node 24.22.1; OpenSpec CLI 1.14.3; disposable PostgreSQL 16.10 and Redis 7.4.2; API and proxy bound to loopback. Only the LiteLLM container received the provider credential. No external embedding, Qdrant, MCP, or paid-model call occurred.
- Recovery: interrupted only the API process on port 28063 and stopped/removed only
harnessa-m6-reflow-litellm,harnessa-m6-reflow-pg, andharnessa-m6-reflow-redis. Confirmed those containers and API process were gone; the unrelated Harnessa/Lerd services were left running.
The same turn's four free-route attempts totaled 5,730 input and 16,978 output tokens, all known at $0 billed/estimated with no pending reservations. Their outcomes were: request 81ae28c4-8a4d-4c2a-aac0-f50d05e27dd0, HTTP 502 at 4,096 output tokens with no new artifact; 446380b6-ac33-489c-bfee-53ab648c73df, HTTP 200 with revision 2 and one question but OpenSpec invalid because requirement text was missing; 50d9bdf1-5312-405d-bdee-586425e11079, HTTP 200 with revision 2 and one question but OpenSpec invalid because line breaks were not restored; and the attempt above, HTTP 502 at the 8,192 output ceiling. These are live-provider results over synthetic data and remain separate from offline/fixture evidence.
Offline remediation evidence now covers flattened Markdown with both absent separators and <br> separators through actual pinned OpenSpec validation and the readiness rubric: both normalized bundles were valid and scored 1.0. Commands on this M6 branch:
UV_OFFLINE=1 uv run pytest -q tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py— 48 passed.UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa— passed, 44 source files.UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/specification_architect.py apps/api/harnessa/adapters/specification_workspace.py apps/api/harnessa/contracts.py apps/api/harnessa/services/model_gateway.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py tests/integration/test_specifications.py— passed.git diff --check— passed.TEST_DATABASE_URL=postgresql+asyncpg://harnessa:m6-verify-temporary@127.0.0.1:55438/harnessa_test TEST_REDIS_URL=redis://127.0.0.1:56385/1 UV_OFFLINE=1 uv run pytest -q tests/integration/test_specifications.py— 12 passed against disposable PostgreSQL 16.10 and Redis 7.4.2; services were stopped/removed afterward.
These checks are offline/fixture and local integration evidence only. The M6 changes remain unreviewed and unmerged. M6 stays active/partial because no passing live Architect draft was persisted and protected review/CI/merge evidence is absent. M7 stays active and blocked before feature work.
Live M6 acceptance completed locally; protected PR still pending (2026-10-22)
The M6 one-sentence topic acceptance was exercised end to end on the unmerged remediation head 5420268ade76129d9234a89995dbe3227edddfcd, using only a synthetic local repository and the authorized free OpenRouter route. OpenCode is 2.0.32 by default with 1.19.4 backward compatibility. This supplements and supersedes the earlier live-attempt failures; they remain in the history above.
Live Architect and readiness evidence
- Runtime: Python 3.12.15; Node 24.22.1 at
/home/menes/.local/share/fnm/node-versions/v24.22.1/installation/bin/node(the Lerd Node shim failed inside the restricted OpenSpec subprocess becausefnmwas absent there); pinned OpenSpec CLI 1.14.3; LiteLLMv1.83.14-stable.patch.3@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2; PostgreSQL 16.10sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74; Redis 7.4.2sha256:02419de7eddf55aa5bc49efb74e88fa8d931b4d77c07eff8a6b2144472b6952. - Source topic (one sentence):
Create a small greeting helper that accepts a typed string name, returns a friendly personalized greeting, and has focused unit tests.Source repository contained only a syntheticREADME.md, with no remote or user content. - Budget and bounds: each project/task/run had a
$0.01limit, 20,000-token limit, one step, one attempt, 120-second wall limit, and 16,384 output-token maximum. LiteLLM retries were zero and fallback list empty. The API environment had no provider key; only the LiteLLM container receivedOPENROUTER_API_KEY. - Route: Architect alias
m6-nemotron-tooltonvidia/nemotron-3.5-lightning:free; one deployment, no fallback. Harnessa returned HTTP 200 forPOST /projects/<project-id>/specification-interviews/cd9f7d26-6280-545c-b873-d575665348be/architect, expected revision 1, idempotency keym6-live-architect-one-sentence-2026-10-22; request ID6003e751-ac3e-4da2-b62e-eb075a1567a6. Artifact revision 2 persisted with one new Architect question. - The explicit
POST /projects/<project-id>/specification-interviews/cd9f7d26-6280-545c-b873-d575665348be/readiness/evaluatereturned HTTP 200, request ID84e42fa4-30a4-4643-9385-14afe6228829: stateREADY, score1.0, OpenSpec1.14.3valid, current repository base, compatible model route, zero unresolved blocking questions, and no sign-off required. The two current questions were nonblocking. - Usage ledger: 1,438 input / 2,923 output tokens, usage known, billed
$0, estimated$0, zero unknown-usage requests, and zero pending reservations. No paid model, embedding, Qdrant, or external MCP call occurred. - OpenRouter's current model record lists the free route's 1,000,000-token context, up to 65,536 completion tokens, and tool calling: Nemotron 3.5 Lightning (free). This is provider metadata, not a live ACP agent run.
Readiness bound correction
The prior readiness gate compared a 1 MiB serialized byte limit as though it were 1,048,576 tokens, which excluded the verified 1,000,000-token provider context even though the actual Architect request was small. The ACP broker now has a configurable ACP_MODEL_MAX_REQUEST_BYTES bound (default 524,288; hard maximum 1,048,576), and readiness requires max_request_bytes + acp_model_max_output_tokens. The broker already conservatively estimates one input token per serialized request byte, so the default gate is 524,288 + 8,192 = 532,480 tokens; the configured 1,000,000-token route fits. This preserves a large bounded request while avoiding a unit mismatch. A broker test rejects a request above the configured default; a service-backed regression verifies a route one context token below the threshold stays not ready. The API budget output ceiling was 16,384, covering the ACP broker's 8,192-token output ceiling.
Pinned OpenCode backward-compatibility evidence
Re-ran both exact-image offline smokes after the live interview. UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_offline_smoke.py passed using ghcr.io/anomalyco/opencode:1.19.4@sha256:bf8e2b5f785166a12a26cbb34ef1a2d35403368438efe036fd16c795a975c505 (linux/amd64): ACP v1, resume capability, no prompt, network none, no provider key/socket, and workspace isolation. UV_OFFLINE=1 PYTHONPATH=apps/api uv run python scripts/m5_acp_broker_offline_smoke.py passed with OpenCode 1.19.4: prompt ended end_turn, two bounded fake-router calls (128 output tokens), correct task/run/fence scope, no provider call, and network none. These are live local pinned-container protocol checks with an offline fixture router; they are not live-provider ACP execution evidence.
Verification on the local remediation head
UV_OFFLINE=1 uv run pytest -q tests/test_acp_model_broker.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py— 52 passed.TEST_DATABASE_URL=postgresql+asyncpg://harnessa:<temporary>@127.0.0.1:58543/harnessa_m6_verify_test TEST_REDIS_URL=redis://127.0.0.1:58493/2 UV_OFFLINE=1 uv run pytest -q tests/integration/test_specifications.py— 12 passed; a separate_testdatabase and Redis database 2 were used.TEST_DATABASE_URL=postgresql+asyncpg://harnessa:<temporary>@127.0.0.1:58543/harnessa_m6_verify_test TEST_REDIS_URL=redis://127.0.0.1:58493/2 pnpm test— passed: Python unit 122, integration 38, Web 10, Cloud Portal 2; project coverage gate passed (API lines/statements 85.59%, aggregate lines 85.83%, statements 86.11%). Vitest printed Svelte optimize-dependency resolution warnings, but both suites passed.pnpm lint— passed (ESLint and Ruff).pnpm typecheck— passed (web, API 35 source files, contracts, React, Svelte; zero Svelte diagnostics).UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa— passed, 44 source files.- Focused Ruff check and
git diff --check— passed.
Cleanup and remaining M6 delivery gate
The isolated API ran on loopback port 28404 with provider credentials removed; LiteLLM, PostgreSQL, and Redis used loopback ports 4455, 58543, and 58493 with CPU/memory/PID limits. Recovery: stop the API session, then podman stop --time 5 harnessa-m6-16k-litellm harnessa-m6-16k-pg harnessa-m6-16k-redis; remove those exact containers and /tmp/harnessa-m6-architect-16k-20261022. The database and Redis test state were disposable; no shared Lerd/Harnessa service was changed.
The live Architect, pinned OpenCode 1.19.4 compatibility, and local checks now have acceptance evidence. The M6 remediation code and this evidence are still unreviewed/unmerged on codex/m6-architect-response-shape-diagnostics. Do not mark M6 complete until its single remediation PR receives independent review, exact-head required checks, and protected merge; M7 remains active and feature work is still gated.
Additional live Architect shape and correction evidence (2026-10-22)
A current PR-head compatibility probe showed another flattened response shape. The first request on the isolated current-head stack failed before routing because MODEL_GATEWAY_URL was absent; the usage ledger remained empty. After fixing only the local stack configuration, one request timed out at Harnessa's 60-second HTTP bound. Harnessa recorded one failed attempt for nvidia/nemotron-3.5-lightning:free (proxy request 0c7c63ba-328d-4ae8-b88b-053d798edd29, Harnessa request 6991d7d6-e3c0-42e4-ab8e-6b43402cb91f), unknown token usage, a $0.00000001 estimate, and zero pending reservations. It was not replayed.
A separate synthetic project used the same free route with one attempt, no proxy retry/fallback, a 120-second API/proxy timeout, 8,192 maximum output tokens, a 32,768-token ceiling, 120-second run bound, and $0.01 project/task/run caps. The one-sentence topic produced HTTP 200 and artifact revision 2 (Harnessa request b92edff5-d946-45ce-b9bf-df4e27d0957b; provider request cf658b89-1332-4d24-b490-09e5de3c705a), with two nonblocking questions. Usage was 1,438 input / 3,547 output tokens, known, $0 billed and estimated, no unknown-usage requests, and no pending reservations. Direct readiness initially returned NOT_READY, score 0.8: OpenSpec 1.14.3 rejected the flattened greet_userSHALL requirement and the numbered bold task list did not expose its verification/checklist structure.
The deterministic normalizer now handles this exact provider shape: numbered bold task headings, collapsed verification and requirement-mapping headings, whitespace-prefixed checkboxes, and a requirement modal joined to its title without a space. The complete saved synthetic bundle was normalized offline with the current adapter, then independently checked using the pinned OpenSpec 1.14.3 CLI from the synthetic workspace root: OPENSPEC_NODE_PATH=/home/menes/.local/share/fnm/node-versions/v24.22.1/installation/bin/node /home/menes/.codex/worktrees/milestone-7-clean-main/node_modules/.bin/openspec validate create-a-small-greeting-helper-that-5af470d3 --type change --json --no-interactive. It validated with no issues; the readiness rubric returned 1.0 across proposal, scenario, design, and task/mapping gates. The corrected provider-generated content was then persisted through the existing revision-guarded PUT /projects/{project_id}/specification-interviews/{interview_id}/artifacts endpoint with If-Match: W/"2"; the API created artifact revision 3 and its explicit readiness evaluation returned READY, score 1.0, OpenSpec valid, current base, route ready, and zero unresolved blocking questions. This combines a live provider draft with offline deterministic normalization and a local API artifact-update/readiness check; it is not a claim that the uncorrected provider response was immediately ready.
Additional offline checks on the working remediation source:
UV_OFFLINE=1 uv run pytest -q tests/test_acp_model_broker.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py— 52 passed, including the final numbered-bold regression.UV_OFFLINE=1 uv run ruff check apps/api/harnessa/adapters/specification_architect.py apps/api/harnessa/adapters/specification_workspace.py apps/api/harnessa/contracts.py apps/api/harnessa/services/model_gateway.py tests/test_acp_model_broker.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py tests/integration/test_specifications.py— passed on the final numbered-bold regression.UV_OFFLINE=1 uv run mypy --strict --follow-imports=silent apps/api/harnessa— passed, 44 source files.pnpm lint— passed (ESLint and Ruff).pnpm typecheck— passed (web, API 35 source files, contracts, React, Svelte; zero Svelte diagnostics).git diff --check— passed.
Runtime for this probe: Python 3.12.15, Node 24.22.1, OpenSpec 1.14.3; LiteLLM ghcr.io/berriai/litellm@sha256:f12d528d4a05add56cb09e54c5126088f2edc6bdf3a2f943bcd3a32b08769da2, PostgreSQL 16 docker.io/library/postgres@sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74, and Redis 7 docker.io/library/redis@sha256:02419de7eddf55aa5bc49efb74e88fa8d931b4d77c07eff8a6b2144472b6952. Services were loopback-only; only LiteLLM received the provider key. Cleanup stopped and removed only harnessa-m6-current-litellm, harnessa-m6-current-pg, harnessa-m6-current-redis, the local API process, and /tmp/harnessa-m6-current-validation-20261022. No paid route, embedding model, Qdrant, external MCP, or non-synthetic repository content was used.
This evidence resolves the flattened-response normalization case and complements the earlier direct live READY and pinned OpenCode 1.19.4 offline compatibility evidence above. The source/report changes remain uncommitted on PR #21; M6 remains active until the exact final head receives independent review, required hosted checks, and protected merge. M7 feature work remains gated.
Review follow-up M6-R5: flattened spec with multiline example (2026-10-22)
Independent review of PR #21 head bd671746324753bd4136622c84f0f9ce79af41c4 found that a newline introducing a multiline fenced example disabled flattened-Markdown recovery for the surrounding OpenSpec requirement. The normalizer now evaluates structural newlines with inline/fenced code masked and ignores the separator immediately introducing a code span for this detection. Code content remains restored from the original span. Added the reviewer-provided flattened requirement/scenario fixture with a multiline text fence; the assertions cover restored headings and an unchanged, single fenced block. The change is local evidence only until the updated head receives independent review and protected checks.
Offline verification after this fix:
UV_OFFLINE=1 uv run --offline pytest -q tests/test_specification_architect.py— 16 passed.UV_OFFLINE=1 uv run --offline pytest -q tests/test_acp_model_broker.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py— 53 passed.UV_OFFLINE=1 uv run --offline ruff check apps/api/harnessa/adapters/specification_architect.py tests/test_specification_architect.py— passed.UV_OFFLINE=1 uv run --offline mypy --strict --follow-imports=silent apps/api/harnessa— 44 source files, no issues.git diff --check— passed.
These are deterministic fixture/offline checks; they are not a new live provider call. M6 remains active pending exact-head independent review, hosted required checks, and protected merge; M7 feature work remains gated.
M6 PR #21 review and protected checks (2026-10-22)
PR #21 was independently reviewed at code head ce7c3e1ce332a4efe937eead2c79df5df6f2587e against base 5420268ade76129d9234a89995dbe3227edddfcd. The read-only reviewer inspected the full diff, confirmed M6-R1 through M6-R5 resolved, reported no new findings, and did not approve. Focused offline tests on this code head: UV_OFFLINE=1 uv run --offline pytest -q tests/test_acp_model_broker.py tests/test_specification_architect.py tests/test_specifications.py tests/test_model_gateway_contracts.py — 53 passed; review git diff <base>...<head> --check passed.
At exact PR head ce7c3e1ce332a4efe937eead2c79df5df6f2587e, GitHub reported required Local CI pass (PR run 39862874957, 2m24s), CodeQL pass (39862875072, both Python and JavaScript/TypeScript analyses passed), and Documentation build pass (39862874972). The push-triggered Local CI run 39862870208 also passed (1m56s). The active Protect main ruleset requires Local CI and CodeQL, strict status checks, and review-thread resolution; there are zero unresolved review threads. These results apply to the reviewed code head. Protected merge is still pending; final-head review/checks will be refreshed after this report update.
Final M6 delivery reconciliation (2026-10-22)
The preceding status notes are historical snapshots. PR #21 was subsequently reviewed again at final code head ef11d3362186d687eea8f76d4e5d1a0f0251e201 against base 5420268ade76129d9234a89995dbe3227edddfcd. The independent reviewer reported no findings; the only change after the reviewed implementation head was the six-line report update, and the final diff check passed. GitHub's required Local CI and CodeQL checks passed, with the documentation build also passing and no unresolved review threads. PR #21 merged through protection as a55924350aebf2112ff7906978548727de081e4a. The live Architect READY evidence, OpenCode 1.19.4 compatibility smoke, and bounded offline/live checks above therefore have protected-delivery evidence. M6 is complete; M7 may start from a freshly fetched clean main. The optional M3 live paid-provider compatibility probe remains pending under M3's explicitly optional acceptance.