# 6502 Python Round 4 Canary Status: first launch failed its promotion gate; no further step authorized Staging date: 2026-08-28 ## Decision Round 3 was not improved enough to justify another long unattended campaign. It stopped in phase 1 after 48 attempts, 373 agent turns, three human interventions, and three escalated package subtasks. Round 4 therefore begins as a four-task, three-phase, step-only canary. A larger campaign remains blocked until the canary passes every gate below. ## Artifacts - AFK stabilization commit: `a4b2cd9` - Goal: `prompts/6502-python-r4-canary-goal.txt` - Goal SHA-256: `EDFD4661D2BE9E26D2A8D049366F424337CCF819FC0E0A3D94C6AF502F82F8C1` - Target: `F:\storage-dev\6502-python-r4` - Empty target baseline: `9fb6d74301053f9926bc9577f1c0b55983553d4d` - Campaign: `6502-python-r4-canary` - Target interpreter: `F:\storage-dev\6502-python-r4\.venv\Scripts\python.exe` The target starts from an empty Git commit. Its `.venv` is excluded through `.git/info/exclude`, not a human-created product file. The environment contains pytest, Ruff, and hatchling so target verification never falls back to AFK's runner interpreter. Environment preflight: Python 3.13.0, pytest 9.1.1, Ruff 0.16.5, and hatchling 1.32.0 are installed in the target-local `.venv`; the target worktree is clean. ## Launch-readiness fix The initial readiness review found one blocking false-positive drift path: `bootstrap-package` creates `pyproject.toml`, which legitimately changes the target fingerprint before the next step. AFK now rebases the accepted contract only after deterministic review, successful merge to primary, and verification that a governed dependency input appears both in the reviewed Git change set and in the accepted merge commit. The durable event records the task ID, exact dependency inputs, resulting contract, and primary revision. Ambient dependency edits between tasks remain fail-closed as `environment_drift`. Validation against the stabilization baseline `a4b2cd9`: - Complete suite: 557 passed. - Environment/event projection regression: 27 passed. - Environment/governance/queue/integration slice: 83 passed. - Ruff diagnostic delta: 222 baseline, 221 current, 0 introduced. - Ruff format delta: 23 baseline files, 23 current files, 0 introduced. - `git diff --check`: clean; editor diagnostics: clean. At the initial readiness checkpoint, campaign state was `ready`, `approved=False`, with zero task attempts. The target was clean on `main` at the empty baseline and had no `pyproject.toml`. ## First launch result The roadmap was approved under fingerprint `0f6b27f82bef`, and exactly one `campaign step` was run. `bootstrap-package` passed its scoped tests and strict lint checks, but deterministic review rejected Python bytecode generated during the task's own verification. Quarantine correctly moved the unreported `.pyc` files, then rereview incorrectly retained those removed paths in its owned file set and failed them as missing. The automatic retry repeated the failure. AFK was repaired so reviewer subprocesses set `PYTHONDONTWRITEBYTECODE=1` and a quarantine rereview excludes successfully moved scratch paths. Validation after the repair: 558 tests passed, 0 introduced Ruff diagnostics, 0 introduced Ruff format files, clean `git diff --check`, and clean editor diagnostics. The campaign records two failed coder attempts and therefore cannot pass the promotion gates below even if a later retry succeeds. No second campaign step was run. Its final status is `cancelled`, preserving `bootstrap-package` as failed with two attempts. The target was restored to clean `main` at `9fb6d743` with no product files or task branches retained. A replacement canary must use fresh campaign state rather than rewriting or overlooking this evidence. ## Envelope | Setting | Canary value | | --- | --- | | Active time | 2 hours | | Batches/phases | 8 maximum, but the approved roadmap has exactly 3 | | Total logical tasks | 12 | | Canary tasks | exactly 4 total: 1, 2, and 1 by phase | | Auto-resume passes | 4 | | Changed files per task | 6 | | Changed lines per task | 400 | | Workers | 1 | | Best-of | 1 | | Lint mode | strict | | Friction audit | enabled | | Execution | one explicit `campaign step` at a time | Do not run `campaign work` during the canary. ## Setup Set the target interpreter for every AFK invocation in the shell that runs the canary: ```powershell Set-Location F:\storage-dev\afk-developer $env:AFK_TARGET_PYTHON = 'F:\storage-dev\6502-python-r4\.venv\Scripts\python.exe' ``` Create the durable campaign without executing it: ```powershell $goal = Get-Content .\prompts\6502-python-r4-canary-goal.txt -Raw .\.venv\Scripts\afk.exe campaign create 6502-python-r4-canary ` -d F:\storage-dev\6502-python-r4 ` -g $goal ` --max-hours 2 ` --max-batches 8 ` --max-total-tasks 12 ` --max-tasks-per-batch 4 ` --max-auto-resume-passes 4 ` --lint-mode strict ` --friction-audit ``` Draft and inspect the roadmap and first phase before approval: ```powershell .\.venv\Scripts\afk.exe campaign plan 6502-python-r4-canary --approve-each-phase .\.venv\Scripts\afk.exe campaign status 6502-python-r4-canary ``` Approve only if the roadmap has exactly the three requested phases, phase 1 contains only `bootstrap-package`, that task declares its three exact artifacts and deterministic criteria, and it is neither red-first nor decomposition-shaped. The per-phase approval gate must remain enabled so the two later task DAGs can be inspected before execution. ## Step procedure After explicit plan approval, run one step and inspect state before the next: ```powershell .\.venv\Scripts\afk.exe campaign step 6502-python-r4-canary .\.venv\Scripts\afk.exe campaign status 6502-python-r4-canary git -C F:\storage-dev\6502-python-r4 status --short ``` Repeat at most four task executions, pausing at every phase approval boundary. Do not automatically continue after a failed or escalated step. ## Promotion gates The canary passes only when all conditions hold: 1. The four requested tasks pass with no replacement or decomposition. 2. Each task finishes in one accepted coder attempt; the read-only verifier finishes in one accepted researcher attempt. 3. No human changes campaign state, task wording, source, tests, or retry routing after approval. 4. Governance events record the target-local interpreter, separately from the AFK runner interpreter, on every execution entry. 5. Every deterministic review command records command, exit code, elapsed time, output hash, truncation metadata, and an existing full-output artifact. 6. The target returns to clean `main` after every accepted merge. 7. The target interpreter passes the three focused tests, strict Ruff check, and Ruff format check. 8. No unchanged deterministic failure consumes another automatic attempt. Any failed gate blocks a larger Round 4 campaign and becomes an AFK defect or an explicitly documented policy decision before further autonomy work.