Skip to content

docs(perf): LOOP.md — warm-deploy agent loop spec#113

Merged
zackees merged 1 commit intomainfrom
perf/warm-deploy-loop-spec
Apr 18, 2026
Merged

docs(perf): LOOP.md — warm-deploy agent loop spec#113
zackees merged 1 commit intomainfrom
perf/warm-deploy-loop-spec

Conversation

@zackees
Copy link
Copy Markdown
Member

@zackees zackees commented Apr 18, 2026

Summary

  • Adds LOOP.md at the repo root: an agent-loop spec targeting the warm rebuild + verify-skip + monitor-reconnect path with a 4 000 ms end-to-end budget.
  • Phase budget tree (CLI handshake / daemon dispatch / warm-build fingerprint / verify-flash / port reattach / TTFB) uses real instrumentation already in the repo — no code changes required to run it.
  • Five numbered test cases (T1–T5 + a T0 cold baseline) covering warm no-change rebuild, verify-skip deploy, deploy + monitor reconnect, comment-only edit, and real source edit.
  • Decision rules per failure mode, /loop cadence guidance, and concrete references to docs/PERF_WARM_BUILD.md, perf_log.rs, SharedSerialManager, and the Python SerialMonitor.auto_reconnect.

Test plan

  • Run FBUILD_PERF_LOG=1 FBUILD_USE_ESPFLASH_VERIFY=1 FBUILD_USE_ESPFLASH_WRITE=1 against a real ESP32-S3 DevKit and confirm the T1/T2/T3 timings land inside or near the budgets on the first pass. Tune budget numbers in a follow-up if the real hardware disagrees.
  • Confirm the /loop @./LOOP.md invocation drives a full iteration + append to tasks/loop-runs/RESULTS.csv.

🤖 Generated with Claude Code

Adds `LOOP.md` at the repo root: a spec for an agent-driven loop that
benchmarks the warm rebuild + verify-skip + monitor-reconnect path
against a 4 000 ms end-to-end budget, with a phase budget tree, five
numbered test cases (T1–T5 + a T0 cold baseline), one-iteration
procedure, decision rules for each failure mode, and cadence guidance
for the `/loop` skill.

Scope:

- Targets the ESP32-S3 DevKit path because it is the largest warm-build
  offender documented in `docs/PERF_WARM_BUILD.md`.
- Relies on existing instrumentation: `FBUILD_PERF_LOG=1` phase lines,
  the daemon's "verify-flash: … skipping write" log from
  `handlers::operations`, the `SharedSerialManager` retry schedule, and
  the `auto_reconnect` behaviour of the Python `SerialMonitor`.
- No code changes — purely a runnable spec to drive follow-up
  optimization work.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@zackees has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 13 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 14 minutes and 13 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 499f8bbd-4886-4740-a3ca-ccf100bd713e

📥 Commits

Reviewing files that changed from the base of the PR and between e7aad0e and 462ed53.

📒 Files selected for processing (1)
  • LOOP.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perf/warm-deploy-loop-spec

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 and usage tips.

@zackees zackees merged commit cacba6f into main Apr 18, 2026
6 of 77 checks passed
@zackees zackees deleted the perf/warm-deploy-loop-spec branch April 18, 2026 19:38
zackees added a commit that referenced this pull request Apr 18, 2026
LOOP.md is a per-session operator benchmark spec, not a stable doc.
Committing it to main in #113 was a mistake — remove it from the tree
and add `/LOOP.md` + `tasks/loop-runs/` to `.gitignore` so the file
can still live in local working copies without being pushed again.

Reverts the tracking of the file added in cacba6f (#113). The issue
it was referenced from (#114) points at the file path as a local
artefact, not a repo-tracked doc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
zackees added a commit that referenced this pull request Apr 18, 2026
LOOP.md is a per-session operator benchmark spec, not a stable doc.
Committing it to main in #113 was a mistake — remove it from the tree
and add `/LOOP.md` + `tasks/loop-runs/` to `.gitignore` so the file
can still live in local working copies without being pushed again.

Reverts the tracking of the file added in cacba6f (#113). The issue
it was referenced from (#114) points at the file path as a local
artefact, not a repo-tracked doc.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant