Prepare the next implementation

The workflow commands reduce repeated navigation and test setup. They do not generate proven implementations or change the status tracker. An item without recorded prerequisites still needs its own audit and proof.

python3 tools/cpu_plan.py next
python3 tools/cpu_plan.py packet --out /absolute/path/to/new-work-packets
python3 tools/cpu_plan.py packet I8 --out /absolute/path/to/new-reciprocal-packet
python3 tools/cpu_plan.py verify T3 --out /absolute/path/to/new-check-results

next orders active work by recorded prerequisites and priority. Partial prerequisites remain blockers. Deferred, retired and implemented items are excluded. Research stays identified as research. packet saves the current requirements, recorded progress, dependency blockers, source filename matches, source hashes and known check commands. It searches the repository's src, tests, tools and docs, without reading game data or external reference directories. A filename match is a navigation hint, not proof of implementation.

verify builds the mapped targets using the process's CPU affinity as its default job count. It discovers the configured tests before running them and saves logs, CTest XML and checks.json. Missing groups, skipped tests, timeouts and failures prevent a passing verdict. I7, I8, I9, I11, I15, T3 and T5 have audited check mappings. Other items require adding their own proofs first. Passing known checks does not mark an item complete or establish PR readiness, cross-platform correctness or better game performance. Output folders must be new.

Expand a supplied candidate grid with literal ${axis} placeholders in argv and working directories:

{
  "item": "I15",
  "axes": {"variant": ["baseline", "candidate"]},
  "candidate": {
    "name": "${variant}",
    "cwd": "/absolute/checkouts/${variant}",
    "build": ["cmake", "--build", "build", "--target", "the-item-benchmark"],
    "check": ["build/the-item-benchmark", "--check"],
    "bench": {"ordinary": ["build/the-item-benchmark", "--bench", "ordinary"]}
  }
}

Replace the illustrative commands with real independent checks and equivalent workloads before running:

python3 tools/cpu_plan.py matrix I15 /absolute/path/to/grid.json --out /absolute/path/to/new-manifest.json
python3 tools/cpu_plan.py run I15 /absolute/path/to/new-manifest.json --out /absolute/path/to/new-results

Expansion validates the commands and unique names, rejects unknown axes and limits the grid to 256 candidates. It executes nothing. The existing runner then builds and checks supplied candidates before serial timing. These tools do not change optimization levels, ABI settings or runtime code, and never infer completion from filenames or benchmark results. Use isolated worktrees when build commands can write shared outputs.


Made from docs/history/cpu-translator-progress.md at 69237645142c. GPL-3.0-or-later.