Skip to content

bash autoresearch: migrate off root platformio.ini; synthesise from ci/boards.py #3281

Closed

Description

@zackees

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

  1. bash autoresearch <board> --parlio (and all other driver flags) compiles + uploads + monitors using a synthesised platformio.ini derived from ci/boards.py. NO read of root ./platformio.ini in the default path.
  2. Verify by git mv platformio.ini platformio.ini.bak && bash autoresearch <board> --parlio — must still work end-to-end. Restore after.
  3. 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.
  4. Update agents/docs/hardware-autoresearch.md with the new flow and the deprecation note.
  5. Update .coderabbit.yaml lockdown rule (path: platformio.ini) to remove the autoresearch carve-out — after this lands, root ./platformio.ini has NO sanctioned non-bash debug reader.

Out of scope (separate follow-ups)

  • Migrating bash debug off root (much smaller user surface; can stay).
  • Deleting root ./platformio.ini entirely (premature until bash debug migrates too).

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions