Skip to content

chore(dev): summarize dev-loop failure artifacts (#2248) - #2284

Merged
Sinity merged 1 commit into
masterfrom
feature/chore/devloop-observability-2248
Jun 21, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/chore/devloop-observability-2248

Conversation

@Sinity

@Sinity Sinity commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Completes the branch-local dev-loop close-out by making devtools workspace dev-loop --inspect-run useful as the first diagnostic stop after daemon, web, CLI, receiver, extension, or browser-loop failures. The helper now surfaces failed summary files, failed terminal captures, slowest timed events, and artifact paths grouped by surface, so a developer can move directly from one run id to the log/stdout/stderr artifact that explains the failure.

Problem

#2248 had already landed branch-local preflight, isolated ports, daemon launch artifacts, /api/dev-loop, CLI capture, receiver request ids, extension diagnostics, browser plans, and real Chrome unpacked-extension smoke. The remaining weakness was the final debugging step: when a run produced many local artifacts, --inspect-run mostly reported counts and raw failed events, so agents still had to scan the run directory to find the useful next file.

Solution

This PR extends the existing run inspector rather than adding a second observability ledger:

  • reads duration and artifact metadata from existing dev-loop.events.jsonl, daemon/browser/extension/TUI summary JSON, and terminal capture summaries;
  • reports failed_summaries, failed_terminal_captures, slowest_events, and artifact_index in JSON output;
  • shows the slowest event and available artifact groups in human output;
  • updates the dev-loop documentation to describe the postmortem workflow;
  • expands the focused dev-loop test to cover the new failure-postmortem behavior.

Acceptance Matrix

Requirement Evidence
Branch-local daemon/web/browser-capture runs are isolated from the deployed service Landed in prior #2248 PRs: preflight, isolated ports, dev archive root, daemon launcher, /api/dev-loop; confirmed in issue comments with local smoke run ids.
CLI/TUI capture artifacts are tied to the same run id Existing --capture-cli and --tui-plan write run-local artifacts; this PR indexes terminal capture summaries in --inspect-run.
Browser-extension loop is exercised from the branch #2280 added real Chrome unpacked-extension smoke and fixed the CORS request-id preflight gap; issue comment records ok=True local evidence.
Failed or slow dev-loop runs are diagnosable from local artifacts This PR adds failed summaries, failed terminal captures, slowest timed events, and per-surface artifact index to --inspect-run.
No new ops-tier table unless logs are insufficient No table added. Existing structured launcher JSONL, summary files, /api/dev-loop, and daemon events answer the current debugging questions.
Browser-control boundary stays local/operator-owned docs/dev-loop.md continues to treat real authenticated browser/profile work as local operator/agent procedure; repo owns URLs/config/artifacts and smokes only.

Verification

  • devtools test tests/unit/devtools/test_dev_loop.py -q → 19 passed in 41.44s after formatting.
  • devtools render all --check → all generated surfaces sync OK.
  • devtools verify --quick → all checks passed in 13.1s locally.
  • Pre-push devtools verify --quick → all checks passed in 11.83s, run id 20260621T143839Z-quick-67399-bf5fa775.

Notes

I did not run a fresh real-browser smoke in this PR because #2280 already added and verified that path. This change is the postmortem layer over the run artifacts produced by those existing commands.

Closes #2248

Problem: branch-local daemon/web/browser debugging still required opening multiple run artifacts manually after a failed dev-loop run, even though the helper already recorded enough event and summary data to identify the failure surface.\n\nWhat changed: extend devtools workspace dev-loop --inspect-run to surface failed summary files, failed terminal captures, the slowest timed events, and an artifact index grouped by run surface. Update the dev-loop documentation and focused unit coverage for the richer postmortem.\n\nVerification: devtools test tests/unit/devtools/test_dev_loop.py -q; devtools render all --check\n\nRef #2248
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 57 minutes and 20 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a04e4160-3899-4615-83cb-41e295beb2a0

📥 Commits

Reviewing files that changed from the base of the PR and between cb464aa and 7b847f3.

📒 Files selected for processing (3)
  • devtools/dev_loop.py
  • docs/dev-loop.md
  • tests/unit/devtools/test_dev_loop.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/chore/devloop-observability-2248

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.

github-actions Bot pushed a commit that referenced this pull request Jun 21, 2026
@Sinity
Sinity merged commit 3809a1a into master Jun 21, 2026
12 checks passed
@Sinity
Sinity deleted the feature/chore/devloop-observability-2248 branch June 21, 2026 14:41
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.

chore(dev): make daemon, web shell, and browser extension loops branch-local

1 participant