Skip to content

docs(lessons): record RP2350W HIL diagnosis lessons - #4209

Merged
zackees merged 2 commits into
masterfrom
docs/lessons-hil-diagnosis
Sep 8, 2026
Merged

zackees merged 2 commits into
masterfrom
docs/lessons-hil-diagnosis

Conversation

@zackees

@zackees zackees commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Eight entries appended to agents/tasks/lessons.md from an unattended
RP2350W + ESP32-C6 bench session. Each is tied to a specific failure with the
evidence that produced it, per the CLAUDE.md rule "Self-improvement: Update
agents/tasks/lessons.md after corrections".

The two I'd most want a future agent to read:

A harness PASS means what the harness checked, not what its name implies.
runParallelTest skips RX loopback validation for the RP PIO0+PIO1 pair
(AutoResearchRemoteRunParallelTest.cpp:308), so its PASS proves channel
creation and a clean shared show() — not byte-correct output. I quoted it on
#3899 as "decisive loopback evidence" and had to retract that.

On a HIL bench, most "device faults" are host-side. Four in this session
alone: a 20 ms RPC timeout that read as a hung board; deployed firmware schema does not contain rpSpiLoopback against a board that exposes it; a
zero_capture that was an unfitted jumper; and serial driver may be wedged
that was a dead fbuild daemon. Three of those are fixed in #4206/#4208 so they
now say what they mean.

The rest cover the silent second-RpcBench failure (#4207), instrumenting
rather than hypothesising when an error path swallows its own signal, verifying
the firmware you think you flashed actually landed, Python equivalence checks
being blind to C overflow, peer-OTA reflashing a fixture that has no watchdog
escape armed, and the non-W rp2350 build renaming the board's
/dev/serial/by-id path.

Docs only — no code or test changes. bash lint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51

Summary by CodeRabbit

  • Documentation
    • Added thirteen lessons covering harness-result interpretation, host-side hardware-in-the-loop failures, RPC port conflicts, and swallowed errors.
    • Documented firmware verification, C overflow testing, fixture recovery, RP2350 USB identity changes, and cache-sensitive artifact sampling.
    • Added guidance for distinguishing bugs from contributing causes, exposing wrapped exceptions, maintaining RPC manifests, and preventing resource leaks.
    • Included safer diagnostic and recovery procedures for hardware testing.

Eight entries from an unattended RP2350W/ESP32-C6 bench session, each tied
to a concrete failure rather than general advice:

- a harness PASS asserts only what the harness checks (runParallelTest skips
  RX validation for the RP PIO0+PIO1 pair; I cited it as loopback evidence on
  #3899 and had to retract)
- on a HIL bench most "device faults" are host-side -- four in one session
- a second RpcBench on a held port connects and is then silently inert (#4207)
- when an error path swallows its signal, instrument instead of hypothesising
  (four successive refuted guesses at one `None`)
- verify the firmware you think you flashed actually landed
- Python equivalence checks cannot see C overflow
- peer-OTA reflashes the fixture, which has no escape armed
- the non-W rp2350 build renames the board's /dev/serial/by-id path

Per CLAUDE.md "Self-improvement: Update agents/tasks/lessons.md after
corrections".

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a4d312b6-ff5e-4df4-befa-6e79146a14da

📥 Commits

Reviewing files that changed from the base of the PR and between bad0718 and cd067f9.

📒 Files selected for processing (1)
  • agents/tasks/lessons.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • agents/tasks/lessons.md

Included review availability: Your plan provides up to 8 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

Added thirteen lessons to agents/tasks/lessons.md. The lessons cover hardware-test interpretation, HIL diagnostics, firmware and artifact verification, fixture recovery, device identity, RPC maintenance, and RP resource cleanup.

Changes

Hardware Testing Lessons

Layer / File(s) Summary
Test interpretation and diagnostics
agents/tasks/lessons.md
Documents limits of parallel-test PASS results, host-side HIL failures, swallowed exceptions, firmware verification, C-overflow checks, and subsystem-failure diagnosis.
Fixture recovery and artifact validation
agents/tasks/lessons.md
Documents fixture reflashing and recovery differences, RP2350 USB identity changes, and cache-sensitive artifact sampling.
RPC and RP resource maintenance
agents/tasks/lessons.md
Documents wrapped-error diagnosis with MESON_FORCE_BACKTRACE=1, RPC help-manifest maintenance, and complete RP resource cleanup with arbitration control coverage.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to cd067

This update documents HIL bench lessons without changing runtime code, tests, or deployment behavior. No merge-blocking risk is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the documentation change: recording RP2350W HIL diagnosis lessons.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/lessons-hil-diagnosis

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.

Five more from the same bench session: sampling one artifact when the
property depends on cache-hit status, mistaking a real bug in the right
subsystem for the actual cause, forcing opaque wrapper errors to yield
their underlying exception, checking what a manifest is before calling
it truncated, and the RP controller resource-lifetime trap.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
@zackees
zackees merged commit 48cce1e into master Sep 8, 2026
1 check passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 8, 2026
@zackees
zackees deleted the docs/lessons-hil-diagnosis branch November 5, 2026 05:52
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.

1 participant