Skip to content

docs: add AutoResearch agent runbook - #3617

Merged
zackees merged 1 commit into
masterfrom
docs/autoresearch-agent-runbook-3616
Jul 7, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/autoresearch-agent-runbook-3616

Conversation

@zackees

@zackees zackees commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

Closes #3616.

Summary

  • Add an AutoResearch agent runbook covering chat-log mining, lower-cost yes/no gatekeeping, attention indices, GPT-5.5 synthesis, board bring-up, validation levels, driver development, and low-memory vs full-memory board strategy.
  • Link the relevant source docs and code paths agents should verify against, including CLAUDE.md, the AutoResearch wrapper/parser/phases, examples/AutoResearch, fl/channels README, LPC README, and FastLED/datasheets.
  • Update AutoResearch CLI compatibility docs and behavior: --lpuart now warns and aliases to --uart; --flexio [0|1] warns and aliases to --flex-io only when set to 1.
  • Remove stale --i2s examples from the agent docs and replace them with the current LCD driver flag shape.

Validation

  • uv run pytest ci/tests/test_autoresearch_phases.py -> 87 passed
  • uv run pytest ci/tests/test_autoresearch_phases.py -k "lpuart or flexio" -> 4 passed
  • bash autoresearch --help | rg -- "--lpuart|--flexio|--flex-io|GPIO-only"
  • direct Args.parse_args smoke for --lpuart, --flexio, --flexio 1, --flexio 0
  • git diff --check
  • bash lint -> passed; existing PlatformIO-internal-usage category remains warn-only and existing TypeScript complexity warning remains non-fatal

Summary by CodeRabbit

  • Documentation

    • Expanded the AutoResearch runbook with clearer setup, validation, and board bring-up guidance.
    • Updated usage examples to reflect current display-driver options and lane configurations.
    • Added help text for additional driver choices and legacy aliases.
  • Bug Fixes

    • Made driver/special mode flags optional, allowing GPIO-only bring-up to run without errors.
    • Added deprecation support for legacy --lpuart and --flexio options with warnings and automatic translation to the newer flags.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 7, 2026
@zackees
zackees merged commit b424d5b into master Jul 7, 2026
11 checks passed
@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ace97e51-ccf9-4151-845a-e906ac123725

📥 Commits

Reviewing files that changed from the base of the PR and between 298830f and cb74099.

📒 Files selected for processing (5)
  • agents/docs/hardware-autoresearch.md
  • autoresearch
  • ci/autoresearch/args.py
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_phases.py

📝 Walkthrough

Walkthrough

This PR adds an AutoResearch agent runbook and updated usage examples to hardware-autoresearch.md, and introduces deprecated CLI aliases (--lpuart mapping to --uart, --flexio mapping to --flex-io) with warnings. Driver/special-mode flags become optional, enabling GPIO-only bring-up. Related tests are updated.

Changes

AutoResearch Documentation Updates

Layer / File(s) Summary
Agent runbook and error-handling guidance
agents/docs/hardware-autoresearch.md
Adds an "Agent Runbook: Evidence to AutoResearch Docs" section covering log mining, gatekeeper classification, board bring-up, validation levels, driver-mode development, and memory-strategy guidance; replaces the "MANDATORY: Driver Selection Required" error text with guidance explaining that omitting driver flags performs GPIO-only bring-up.
Driver example updates
agents/docs/hardware-autoresearch.md
Updates strip-size, lane-configuration, and color-pattern examples to use --lcd in place of --i2s, and adds new --lane-counts examples.

Estimated code review effort: 2 (Simple) | ~10 minutes

Deprecated Driver Flag Aliases and GPIO-only Bring-up

Layer / File(s) Summary
CLI help text updates
autoresearch, ci/autoresearch/args.py
Documents deprecated --lpuart and --flexio aliases and clarifies that driver/special flags are optional for GPIO-only bring-up.
Argparse wiring and translation
ci/autoresearch/args.py
Adds --flexio (dest flexio_alias, choices 0/1) argparse option; parse_args translates --lpuart/--flexio into --uart/--flex-io with warnings; lpuart field forced to False in the resulting Args.
Phase orchestration deprecation handling
ci/autoresearch/phases.py
Emits a stderr deprecation warning for --lpuart, maps it to args.uart, excludes it from Teensy-specific driver gating, and removes the separate LPUART driver-list entry.
Test coverage
ci/tests/test_autoresearch_phases.py
Updates tests for --lpuart/--flexio alias translation and deprecation warnings, adds fault_emit_test default, updates synthesise_autoresearch_project assertions, and renames patched RPC target to run_pin_discovery_segmented.

Estimated code review effort: 2 (Simple) | ~15 minutes

Estimated code review effort: 2 (Simple) | ~20 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/autoresearch-agent-runbook-3616

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees deleted the docs/autoresearch-agent-runbook-3616 branch July 7, 2026 02:57
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 7, 2026
eelstretching pushed a commit to eelstretching/FastLED-pico that referenced this pull request Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

docs: add AutoResearch chat-log mining and agent runbook

1 participant