# 6502 Python Round 2 AFK Experiment Status: escalated at phase-1 parent-coherence gates; opcode checkpoints not reached Staging date: 2026-08-26 ## Question Can the current AFK Developer complete a fresh, independent NMOS 6502 core with materially less human supervision after the fixes learned from round 1? The final target is deliberately harder: all 256 opcode byte values must pass the pinned SingleStepTests oracle, including undocumented and JAM/KIL opcodes. The explicit 151-documented-opcode milestone is the controlled comparison point with round 1. Results after that milestone measure new product scope as well as runner autonomy and must not be presented as a direct round-to-round comparison. ## Experiment artifacts - Canonical goal: `prompts/6502-python-goal.txt` - Staged goal SHA-256: `47B86139171AD4E58C49BEBAB1ECE8D0772C15995A820EE24BB0F9943D4AB852` - New implementation repository: `F:\storage-dev\6502-python-r2` - AFK campaign name: `6502-python-r2` - Durable campaign state: `C:\Users\aubrey.lewman\.afk-developer\projects\campaigns\6502-python-r2.json` - Finished round-1 comparison repository: `F:\storage-dev\6502-python` - Round-1 final reference commit: `b267508b83cc81940dc456a8df80e4299d18d0cf` The experiment record and launch prompt stay in `afk-developer`. The target repository starts as an empty directory and receives no copied source, documentation, tests, corpus data, or configuration from round 1. AFK may initialize Git itself on the first task. The round-1 repository is for human comparison after the run and is not an AFK evidence root or task input. ## Staging baseline | Item | Value | | --- | --- | | AFK code baseline | `b3ab0edca5b90ecb79447462be379ccf9140e945` | | Approved roadmap fingerprint | `0b2ea3f47de9fa71d9f5f241cfd439130e7aacd92fe72554f2dc511e61813789` | | Post-sanity AFK repair baseline | HEAD `061457a` plus source/test diff blob `e826a3e68d62b39599610f563d703665c1461697` | | Initial goal/experiment content baseline | `60e0202a5911812e1c26a782e29d3f2410f82812` (superseded before launch) | | Length-compatible content baseline | `ed5b7036f25b2b8c3610f48a699ddff5fd38f284` (superseded before approval) | | Pin-complete content baseline | `67bd59af5d4e4338139665e35e0bd9d308c9e236` | | Coder route | Copilot `gpt-5.6-luna`, 900-second provider timeout | | Reasoner route | Copilot `gpt-5.6-terra`, 300-second provider timeout | | Researcher/validator | Copilot `gpt-5.6-terra`, high effort, 900-second provider timeout | | Shell-command ceiling | 600 seconds, loaded successfully by `Config.from_env()` | | cc65 | WSL Ubuntu-24.04: `/usr/bin/ca65` and `/usr/bin/ld65`, V2.18 (`2.19-1` package) | | Disk at staging | 22.3 GB free on `F:` | | Target at staging | Absent | | Round-1 final result | 69/69 tasks; 514 passed, 105 scope-xfailed; both Dormann tests passed; about $4.65 metered value | Pre-launch validation found that `CampaignState.root_goal` has an undocumented 10,000-character maximum while the first enriched draft was 10,896 characters. Redundant prose was compacted below the limit without removing technical requirements, and it passed construction through the real campaign model. This occurred before campaign creation and is not a run intervention. The first roadmap's required pre-approval contract review then found that its oracle-manifest task requested exact immutable revisions and hashes that the goal had not supplied. The known round-1 pins, functional/decimal hashes, and WSL Ubuntu-24.04 cc65 invocation were added before approval. The resulting goal is 9,205 characters through PowerShell (9,053 after Python newline normalization). The unapproved roadmap was redrafted from this goal and approved with the fingerprint recorded above. No implementation task had run when this planning correction was made, so it is not counted as a run intervention. If the goal changes, recompute its SHA-256, review it explicitly, and create a new content baseline commit before launching. Do not silently launch a goal whose content differs from the recorded hash. ## Execution status The first approved task began on 2026-08-26 and exposed a contradiction between its eight-file scaffold contract and the campaign's six-file mutation ceiling. The two-step sanity pass then exposed additional AFK durability and diagnostic defects before any CPU implementation began. The runner was fixed in place, with focused regressions added for each defect: - campaign mutation ceilings are now included in planner prompts; - plan saves preserve audit paths, amendment/proposal history, preflight evidence, and execution metadata; - phased campaign steps write their configured friction-audit JSONL; - rejected branches remove ignored generated artifacts; - cleanup failures remain secondary to the originating task failure; - supervisory commands correctly unpack saved plans, preserve metadata, repair legacy audit paths, and reconcile logical task counts; - campaign execution rediscovers pytest and Ruff after a fresh repository gains its initial `pyproject.toml`; and - an explicitly rejected `task_complete` call retains its real rejection instead of being reported as never called. The corrected scaffold passed as two accepted target merges: - package scaffold: `da9cfe124c682875d41a315143b911978a848119`; - package smoke test: `2bedefbd74cd57ea3dd9bc0468eae5fa2f6a0d64`. At 2026-08-27 07:26 UTC, the campaign is running with 14 logical tasks planned in phase 1, 18 durable historical nodes, 4 supervisor amendments, 2 passed tasks, 4 superseded tasks, 8 attempts, 55 API calls, 399,940 tokens, 6m 38s active campaign time, and zero current failures or escalations. Manual target-source edits remain zero. Results after continuation measure the repaired AFK runner and must not be represented as an untouched execution of the original AFK code baseline. AFK validation before continuation: 542 pytest tests passed in 179.15 seconds; the 13 touched files without pre-existing formatter drift pass Ruff format check; Git diff whitespace checks pass. Ruff lint still reports the repository's existing broad diagnostic baseline in long-lived files, so it is recorded as a baseline limitation rather than misreported as a clean lint run. Detached continuation launched at 2026-08-27 07:41:34 UTC as process 5712 with one worker and best-of-1. Standard output is written to `F:\storage-dev\logs\6502-python-r2-campaign-20260827-004134.out.log` and standard error to the matching `.err.log`. The process began with phase-1 task `define-core-api-contract-tests`; no status watcher was attached. The detached process exited after its final log write at 2026-08-27 08:05:32 UTC with empty standard error. It stopped cleanly at an escalation checkpoint, not a crash: all four automatically approved decompositions produced three passing child tasks and passing deterministic merged-child coherence evidence, but the campaign requires direct supervisor acceptance of each reconstructed parent. With those parents still `decomposed`, their eight downstream tasks had no runnable dependency path. The durable stopped state is 0/6 phases and 0/8 batches complete, with 22 current logical tasks against the 120-task ceiling. Historical phase-1 state contains 30 task nodes: 14 passed, 4 superseded/not applicable, 4 decomposed, and 8 pending. The campaign used 31 attempts, 298 API calls/agent turns, 3,410,574 tokens, 43.0912 Copilot AI credits, $0.4309 metered value, and 30m 8s active campaign time. The detached continuation itself ran for about 24 minutes; the campaign's elapsed metric also includes time before launch. Target `main` stopped at `2082a8c` with no tracked worktree changes. It contains the package/API skeleton plus contract-tested vector, functional-test, and decimal-build acquisition helpers. Independent validation after the stop was 35 passed and 1 Windows symlink-capability skip in 0.40 seconds; Ruff lint and format checks passed. These are scaffold and mocked helper-contract tests: `CPU.step()` remains a no-op, no oracle corpus was fetched, and no real opcode, Klaus functional, or Dormann decimal execution occurred. ## Controlled variables Keep these fixed unless an intervention is entered in the ledger: - one worker and `--best-of 1`; - strict lint mode and no acceptance profile or external evidence root; - the canonical goal passed as its full string, not as a file path; - phased planning with one roadmap review before approval; - no per-phase approval pauses; - no reads from or copies of the round-1 implementation; - no manual source edits in the target repository; and - corpus provisioning through the target's own sparse fetcher. Round 1 already received a substantial technical brief. The postmortem-derived operational facts added to that brief and the already-merged AFK fixes are intentional changes. All-256 opcode scope is another intentional change, which is why only the 151-opcode milestone is directly comparable with round 1. ## Launch procedure Run from PowerShell after committing the staged AFK documentation: ```powershell New-Item -ItemType Directory -Path F:\storage-dev\6502-python-r2 Set-Location F:\storage-dev\afk-developer $goal = Get-Content -Raw .\prompts\6502-python-goal.txt .\.venv\Scripts\python.exe -m afk_developer.cli campaign create 6502-python-r2 ` --project-dir F:\storage-dev\6502-python-r2 ` --goal $goal ` --max-hours 16 ` --max-batches 8 ` --max-total-tasks 120 ` --max-tasks-per-batch 20 ` --max-auto-resume-passes 24 ` --lint-mode strict ` --friction-audit .\.venv\Scripts\python.exe -m afk_developer.cli campaign plan 6502-python-r2 ``` Review the drafted roadmap and phase-1 task DAG once. Reject or redraft it if it permits per-vector pytest parametrization, blanket undocumented-opcode xfails/skips, round-1 code access, a full multi-architecture corpus clone, or less than a 600-second full-suite timeout. Task descriptions are executable contracts; correct a bad contract before approval rather than repairing its consequences later. When the roadmap is sound: ```powershell .\.venv\Scripts\python.exe -m afk_developer.cli campaign approve 6502-python-r2 # Two bounded tasks validate the fresh-project path before the long run. .\.venv\Scripts\python.exe -m afk_developer.cli campaign step 6502-python-r2 .\.venv\Scripts\python.exe -m afk_developer.cli campaign step 6502-python-r2 # Continue with the fixed single-worker experiment configuration. .\.venv\Scripts\python.exe -m afk_developer.cli campaign work 6502-python-r2 ` --yes --workers 1 --best-of 1 ``` Read-only observation from another terminal is allowed: ```powershell .\.venv\Scripts\python.exe -m afk_developer.cli campaign status 6502-python-r2 --watch ``` Observation does not count as babysitting. A human action that changes state, task wording, source, acceptance, retry routing, budget, or process lifetime does count and belongs in the intervention ledger. ## Measurements AFK's campaign status already reports task outcomes, attempts, decompositions, role/model usage, tokens, metered value, active time, and elapsed wall time. At the 151-opcode milestone and final completion, record those durable values instead of maintaining parallel counters here. Manually record these experiment-specific outcomes: - number of human interventions before the 151-opcode milestone and overall; - number of manual target-source edits, with a target of zero; - task-contract corrections before approval versus after execution began; - provider timeouts and runaway processes requiring termination; - stale campaign-state repairs, including why each repair was needed; - whether AFK independently diagnoses each oracle-revealed CPU bug; - whether collection remains bounded and the full suite honors 600 seconds; - commit and test result at the 151-opcode milestone; and - final all-256 vector result plus both Dormann integration results. For a troubled task in a friction-audited campaign, inspect its persisted attempt summaries with: ```powershell .\.venv\Scripts\python.exe -m afk_developer.cli campaign status 6502-python-r2 ` --attempts ``` ## Human intervention ledger Watching status and reading completed artifacts are observations, not interventions. Add one row for every action that changes the run. | UTC time | Phase/task | Trigger | Human action | Target files edited by human | Resume command/result | | --- | --- | --- | --- | --- | --- | | 2026-08-27 01:22 | Phase 1 / `init-project` | Eight-file contract exceeded the six-file campaign limit; rejected cleanup also failed | Fixed AFK persistence/cleanup paths, removed rejected generated remnants, and used typed replacement to split the task | 0 | First corrected package task attempted; original failure retained | | 2026-08-27 05:51 | Phase 1 / `init-package-metadata` | Empty package marker violated non-empty `required_artifacts` semantics | Replaced task with explicit non-empty `__version__` contract | 0 | `init-package-scaffold` passed and merged as `da9cfe1` | | 2026-08-27 06:08 | Phase 1 / `init-development-layout` | Empty placeholders conflicted with artifact semantics and ignored `tests/dormann/` | Replaced placeholders with one durable package smoke-test task | 0 | Replacement reached deterministic review; no target change accepted | | 2026-08-27 07:19 | Phase 1 / `verify-package-scaffold` | Passing smoke test was incorrectly declared red-first; saved tooling metadata was stale | Added AFK tooling rediscovery and replaced the task with an ordinary passing smoke-test contract | 0 | `add-package-smoke-test` passed and merged as `2bedefb` | | 2026-08-27 07:26 | Campaign state | Replacement history left batch budget count at the original 13 | Reconciled count from append-only amendments to 14 logical tasks; retained all 18 historical nodes | 0 | Campaign remains running with four ready phase-1 tasks | ## Checkpoints ### 151 documented opcodes - Timestamp: Not reached; campaign stopped on 2026-08-27 in phase 1. - Target commit: `2082a8c` - Vector result: Not attempted; no SingleStepTests corpus was fetched. - Campaign statistics: 0/6 phases; 14 passed historical task nodes; 31 attempts; 3,410,574 tokens; 30m 8s active time; $0.4309 metered value. - Human interventions to this point: 5 state-changing interventions; 0 manual target-source edits. Four additional parent acceptances are now required to continue but have not been performed or counted. - Direct comparison with round 1: Inconclusive because round 2 did not reach the matched 151-opcode milestone. ### All 256 opcode bytes - Timestamp: Not reached. - Target commit: `2082a8c` - Vector result: Not attempted. - Dormann functional result: Not attempted; only mocked fetcher contracts pass. - Dormann decimal result: Not attempted; only mocked build contracts pass. - Campaign statistics: Stopped in phase 1 before CPU implementation. - Total human interventions: 5 performed; 4 more supervisor acceptances needed before the current plan can continue. - Manual target-source edits: 0 - New AFK friction and resulting follow-up: Successful decompositions still halt unattended execution at per-parent coherence acceptance gates. The gate preserved auditability and prevented inferred completion, but four routine approvals in one phase are incompatible with the intended AFK run. ## Interpretation rule Call round 2 more autonomous only if it reaches the 151-opcode checkpoint with fewer state-changing human interventions and no greater manual target-source editing than round 1. Completing all 256 bytes is a stronger product result, but it does not by itself prove the runner needed less supervision. Record failures and escalations as experiment results rather than erasing them from campaign state.