Repository navigation
Description
Problem
bash autoresearch is currently one of only two consumers of root ./platformio.ini (the other being bash debug). This keeps root ./platformio.ini alive as a load-bearing file even after the CI sever (#3274 Phase 2 / #3278) lands.
ci/boards.py already carries all of the information needed to drive autoresearch builds — every board autoresearch touches has a Board(...) definition, and Phase 1 of #3274 (#3271 PARLIO IRAM, the monitor_filters port) ensured the synthesised platformio.ini for those boards is complete on its own.
Goal
Make bash autoresearch synthesise its own .build/pio/<board>/platformio.ini from ci/boards.py before launch, the same way bash compile already does. Root ./platformio.ini becomes unnecessary for the autoresearch path.
After this lands, the only remaining consumer of root ./platformio.ini would be bash debug (and raw pio run if a user invokes it directly). That puts root ./platformio.ini on a clean path to retirement (or to a much smaller, dev-only role).
Acceptance criteria
bash autoresearch <board> --parlio(and all other driver flags) compiles + uploads + monitors using a synthesisedplatformio.iniderived fromci/boards.py. NO read of root./platformio.iniin the default path.- Verify by
git mv platformio.ini platformio.ini.bak && bash autoresearch <board> --parlio— must still work end-to-end. Restore after. - Force-flag escape hatch:
bash autoresearch --use-root-platformio-ini(or similar) preserves the legacy behavior for one release cycle, in case a user has local edits to root they rely on. Log a deprecation warning when the flag is used. - Update
agents/docs/hardware-autoresearch.mdwith the new flow and the deprecation note. - Update
.coderabbit.yamllockdown rule (path:platformio.ini) to remove the autoresearch carve-out — after this lands, root./platformio.inihas NO sanctioned non-bash debugreader.
Out of scope (separate follow-ups)
- Migrating
bash debugoff root (much smaller user surface; can stay). - Deleting root
./platformio.inientirely (premature untilbash debugmigrates too).
Refs
- Parent: Sever root platformio.ini from CI compile path; deprecate PioCompiler as a build fallback #3274 (sever root platformio.ini from CI compile path)
- Companion: PR chore(lockdown): require justification on every change to root platformio.ini #3280 (lockdown rule already references this issue in
.coderabbit.yaml) - Phase 1 building blocks (already in flight): PR fix(esp32/parlio): CONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1 default in boards.py #3276 (PARLIO IRAM), PR feat(boards.py): port monitor_filters + check_tool from root platformio.ini (#3274 Phase 1) #3277 (monitor_filters), esp32: CONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1 should be a boards.py default on all PARLIO-capable boards #3271, Sever root platformio.ini from CI compile path; deprecate PioCompiler as a build fallback #3274
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(lockdown): correct cross-reference 3280 → 3281
chore(lockdown): require justification on every change to root platfo…
feat(autoresearch): synthesise platformio.ini from boards.py, drop ro…
docs: address CodeRabbit review on PR #3295
feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (#3279) (#3295