# 6502 Python Round 3 AFK Experiment Status: escalated in phase 1; detached continuation exited normally Staging date: 2026-08-27 ## Question Can AFK Developer complete a fresh independent NMOS 6502 core with materially less human supervision after fixing the two round-2 setup failures: routine parent-coherence approval stops and under-specified generated task contracts? The controlled comparison remains the explicit 151-documented-opcode vector milestone. The stronger product target is all 256 NMOS opcode bytes plus the Klaus functional and Bruce Clark decimal exercisers. ## Artifacts - Canonical goal: `prompts/6502-python-r3-goal.txt` - Goal SHA-256: `E5F6BEE178601E2606A4F078BEE3E3ADB03A9F329E4EE6B9F02CA390CE7D3E0C` - Target repository: `F:\storage-dev\6502-python-r3` - Pristine empty target commit: `73f2ceb049e1e084fc9cb78d46be6ac20388fbb8` - Campaign name: `6502-python-r3` - Campaign state: `C:\Users\aubrey.lewman\.afk-developer\projects\campaigns\6502-python-r3.json` - Phase-1 plan: `C:\Users\aubrey.lewman\.afk-developer\projects\6502-python-r3-phase-001\plan.json` - Approved roadmap fingerprint: `4412f14a77376522f9d51f8b84a46b3800e9feff4701b10ab069e301ae421837` - Detached launcher: `F:\storage-dev\scratch\launch-6502-python-r3-campaign.ps1` The target starts from an empty Git commit so AFK has branch isolation from its first task without any human-created target source, tests, package metadata, or configuration. Round 1 (`6502-python`) and round 2 (`6502-python-r2`) are not evidence roots and must not be read by campaign tasks. ## Runner baseline Round 3 uses AFK HEAD `061457af1faa178e0f3616d6eb5d153c7de332d3` plus the uncommitted, independently validated round-2 repairs and the additions below: 1. `campaign create --auto-accept-parent-coherence` persists `require_supervisor_parent_coherence: false` for an explicitly opted-in campaign. The global default remains supervisor-gated. Automatic promotion still requires every child and the deterministic merged-child review to pass; failed coherence remains blocking. 2. The planner JSON contract and parser now request and preserve `required_artifacts`, `acceptance_criteria`, and `disallow_unscoped_pytest`. `TaskNode` continues to validate artifact paths, and runtime `files_created` remains execution evidence rather than a planned allowlist. The two-task sanity pass found three additional AFK gaps before detached continuation: 3. Persisted task `required_artifacts` and `acceptance_criteria` were omitted from the bounded worker context, so a worker could satisfy the description while missing an exact criterion. They are now included in the task contract presented to the worker and are explicitly binding before `task_complete`. 4. Ruff formatting did not repair import ordering, allowing a focused test to pass behaviorally but exhaust retries on fixable `I001`. Deterministic review now runs Ruff's import-only safe fixer on task-owned Python files before Ruff format and strict lint. 5. Typed campaign replacement tasks were appended without recovery-budget initialization. Replacement commands now call the existing idempotent recovery initializer, preserving started-task budgets while initializing new pending tasks from the saved campaign policy. 6. The first detached continuation exposed a red-verifier classification gap. Pytest returns exit code 2 when a focused import-contract witness fails during collection because its package does not exist yet. The verifier only recognized output containing `failed`, so it rejected this legitimate red state. Red verification now accepts exit code 1 test failures and narrowly accepts exit code 2 only for import-related collection errors. It continues to reject interruption, internal-error, usage-error, and no-tests outcomes. 7. Red-verifier rejection diagnostics previously paired the focused rejection summary with output from the unrelated baseline suite. The focused pytest output is now included in the verifier result and replaces that baseline output when persisted. Focused red-pipeline validation passed 10 tests. The final full AFK suite passed 548 tests in 176.21 seconds. Editor diagnostics are clean for the four touched verifier/queue source and test files. Ruff correctness, import, and format checks pass for the new verifier code; unrelated pre-existing broad queue-file lint remains outside this change. The source/test diff blob against HEAD `061457a` is `1b38f1db0704da56216259429636dd3a97fe0a68`. ## Campaign envelope | Setting | Approved value | | --- | --- | | Active time | 16 hours | | Batches | 8 | | Total logical tasks | 120 | | Tasks per batch/phase | 20 | | Auto-resume passes | 24 | | Changed files per task | 6 | | Changed lines per task | 400 | | Workers | 1 | | Best-of | 1 | | Lint mode | strict | | Friction audit | enabled | | Parent coherence | deterministic auto-accept after passing child rollup | | Per-phase approval | disabled | ## Plan review The first generated roadmap had correct phase ordering but an invalid phase-1 contract surface: all task `required_artifacts` and `acceptance_criteria` were empty, because the planner output schema did not expose those existing `TaskNode` fields. It also repeated round 2's broad `init-project` shape. This was caught before approval or execution. The planner round-trip was fixed and regression-tested. The roadmap was then redrafted with explicit feedback to preserve the 151 milestone, require nonempty versioned artifacts and deterministic criteria, split bootstrap work, keep red-first tests focused, and forbid sibling paths or prior-repository access. An independent read-only review approved the second draft. This pre-launch correction is part of setup, not a run intervention. No target task had started and the rejected draft remains represented by the campaign's reasoner usage and durable updated state. ## Approved roadmap 1. Project foundation and development contracts 2. Embeddable core contracts and execution foundation 3. Pinned oracle provisioning and streamed vector harness 4. Documented NMOS instruction set and 151-file milestone 5. Undocumented opcode completion and JAM lifecycle 6. Independent comprehensive exercisers 7. Documentation, release validation, and autonomous completion gate Phase 4 requires all 151 documented files to pass all 10,000 records before phase 5 begins. Final completion requires all 256 files without blanket skips, xfails, first-record shortcuts, or unsupported-opcode fallback. ## Phase-1 contracts The approved first phase has nine tasks: 1. `init-project` -> `pyproject.toml` 2. `add-ignore-policy` -> `.gitignore` 3. `add-packaging-contract-test` -> `tests/test_import.py` (red-first) 4. `implement-importable-package` -> `sixfiveohtwo/__init__.py` 5. `add-metadata-configuration-tests` -> `tests/test_project_config.py` 6. `add-ignore-policy-tests` -> `tests/test_gitignore.py` 7. `document-foundation-contract` -> `README.md` 8. `add-readme-contract-tests` -> `tests/test_readme_contract.py` 9. `verify-foundation-contracts` -> read-only focused phase audit Every mutating task has at least one concrete nonempty required artifact and bounded deterministic acceptance criteria. Every task disallows unscoped pytest. The only red-first task changes one exact test file and has one direct implementation successor. ## Launch procedure Do not attach a VS Code terminal watcher to the long continuation; completion notifications create additional metered chat turns. First run two bounded sanity steps and inspect their durable results: ```powershell Set-Location F:\storage-dev\afk-developer .\.venv\Scripts\afk.exe campaign step 6502-python-r3 .\.venv\Scripts\afk.exe campaign step 6502-python-r3 .\.venv\Scripts\afk.exe campaign status 6502-python-r3 ``` If the target remains clean between accepted merges and the task contracts behave as reviewed, start the detached single-worker continuation: ```powershell & F:\storage-dev\scratch\launch-6502-python-r3-campaign.ps1 ``` The launcher prints its PID and timestamped stdout/stderr paths. It runs: ```powershell afk campaign work 6502-python-r3 --yes --workers 1 --best-of 1 ``` Detached continuation launched at 2026-08-27 15:30:13 UTC as PID `19448`. Startup verification found the process alive and responsive, standard error empty, and task 6/12 (`add-packaging-contract-test`) running on branch `afk/bc250d7c185e/add-packaging-contract-test`. No watcher is attached. That process later exited normally with empty standard error after AFK escalated the same task. The campaign did not crash. Three coder attempts produced a legitimate missing-package collection error, while two foreman attempts correctly refused to decompose the atomic one-file contract. After the verifier fix and audited retry, detached continuation relaunched at 2026-08-27 15:49:32 UTC as PID `14908`. The startup snapshot found the process alive and responsive with both logs empty. No watcher is attached. That process later exited normally with empty standard error after the campaign escalated three decomposed package subtasks. Round 3 is no longer running. - Relaunch standard output: `F:\storage-dev\logs\6502-python-r3-campaign-20260827-084932.out.log` - Relaunch standard error: `F:\storage-dev\logs\6502-python-r3-campaign-20260827-084932.err.log` - Standard output: `F:\storage-dev\logs\6502-python-r3-campaign-20260827-083013.out.log` - Standard error: `F:\storage-dev\logs\6502-python-r3-campaign-20260827-083013.err.log` ## Measurements Observation and read-only status checks are not interventions. Record every human action that changes campaign state, task wording, acceptance, retry routing, source, budget, or process lifetime. At the 151 and 256 checkpoints record: - target commit and exact vector result; - complete campaign statistics and usage; - human interventions and manual target-source edits; - provider timeout or process termination events; - decompositions and whether deterministic parent auto-acceptance progressed; - complete-suite collection/runtime and timeout; and - Klaus functional and Bruce Clark decimal results. ## Intervention ledger | UTC time | Phase/task | Trigger | Human action | Target files edited by human | Resume result | | --- | --- | --- | --- | --- | --- | | 2026-08-27 15:20 | Phase 1 / `add-ignore-policy` | Accepted output ignored generic substitute paths instead of its exact persisted `tests/6502_test_vectors/` and `tests/dormann/` criterion | Added artifacts/criteria to worker context; replaced the pending ignore-policy test with an audited correction and focused test chain | 0 | Corrective task passed as target merge `4c0f02c` | | 2026-08-27 15:31 | Phase 1 / `test-corrected-corpus-ignore-policy` | Focused behavior passed but fixable Ruff `I001` exhausted the task retry; replacement budgets were also zero | Added deterministic Ruff import-only fixing and replacement recovery initialization; retired the failed node through a typed amendment | 0 | Fresh focused test passed as target merge `ecef4fe` | | 2026-08-27 15:49 | Phase 1 / `add-packaging-contract-test` | A legitimate missing-package pytest collection error was rejected because the red verifier recognized only ordinary test-failure output | Classified focused pytest exit outcomes, preserved focused diagnostics, and invoked one audited `afk retry` without a forced budget override | 0 | Attempt `a2a8829350db4fca88f560d0b47670fb` passed; red branch `b296176` retained and campaign reopened automatically | ## Recovery checkpoint - Campaign status after audited retry and before detached relaunch: `ready` - Queue steps: 9 bounded dispatches - Phases complete: 0/7 - Phase-1 logical tasks: 10; 12 historical nodes - Historical task outcomes: 6 passed, 2 superseded/not applicable, 4 pending - Human run interventions: 3 - Manual target-source edits: 0 - Current target main commit: `8b5fc7e` - Retained red branch commit: `b296176` - Target main validation: 6 tests passed; Ruff lint/format passed - Red-witness validation: focused pytest exits during missing-package import collection and AFK accepts it as the intended red state - Final AFK full suite before detached relaunch: 548 passed in 176.21 seconds - Final AFK source/test diff blob: `1b38f1db0704da56216259429636dd3a97fe0a68` - Formatter baseline: six touched files without prior drift pass Ruff format; `reviewer.py`, `worker.py`, `test_reviewer.py`, and `test_worker_summarization.py` retain unrelated pre-existing formatter drift and were not bulk-reformatted. - Prior detached process: PID `19448`, controlled escalation, empty stderr - Final detached process: PID `14908`, exited normally after controlled campaign escalation; standard error remained empty ## Final outcome Round 3 was not sufficiently improved to justify another long unattended run. It stopped in phase 1 before creating an importable package or CPU core: - campaign status: `escalated`; - phase progress: 0/7 complete; - task outcomes: 6 passed, 2 superseded/not applicable, 3 escalated, and 1 decomposed parent; - attempts: 48 total, including 45 coder and 3 foreman attempts; - usage: 373 agent turns and 2,740,003 tokens; - active time: 38 minutes 42 seconds; - human state-changing interventions: 3; - manual target-source edits: 0; - target `main`: clean at `8b5fc7e`; - terminal reason: all three stalled package subtasks exposed only truncated pytest output, so the supervisor could not distinguish their failures. The run created no durable full-output diagnostic artifacts. It also relied on the AFK runner environment because the target had no dedicated `.venv`. Both conditions are explicit Round 4 canary gates after the stabilization review: the target interpreter must be separately resolved and every deterministic command must retain its complete output artifact before any long continuation is considered. ## Result checkpoints ### 151 documented opcode files - Timestamp: - Target commit: - Complete streamed result: - Campaign statistics: - Human interventions: - Comparison with round 1 and round 2: ### All 256 opcode files - Timestamp: - Target commit: - Complete streamed result: - Klaus functional result: - Bruce Clark decimal result: - Campaign statistics: - Total human interventions: - Manual target-source edits: - Remaining AFK friction: ## Interpretation Round 3 is more autonomous only if it reaches the 151-file milestone with fewer state-changing human interventions and no more manual target-source editing than round 1. Reaching all 256 files is a stronger product result. Automatic parent promotion counts as successful autonomy only when its persisted coherence evidence passed; a failed review that stops remains the intended safety behavior.