Repository navigation
Carry Attention Lists, Cut Lists, and Opt-In Billing in backlog_metrics.py JSON - #4392
Conversation
…_metrics.py JSON, Name Cut Lists, Make Billing Opt-In Add a per-repository attention object to the JSON document with failing pull requests, stale pull requests, failing branches, and recovered branches. Add truncated_lists beside truncated. Skip the billing read unless --billing is given, with billing null and no note when skipped. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… Runs, Stale Instants, and Caps Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… With Opt-In Billing and the All-or-Nothing Attention Read Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
The change still has unresolved correctness issues in check-suite supersession and workflow-state identity, along with consistency and style problems in the attention query.
4 open issues
What changed in this PR
Extends backlog_metrics.py JSON output with maintainer attention data and truncation details, while making billing collection explicitly opt-in. Markdown behavior remains unchanged, with documentation and tests updated for the expanded JSON contract.
Changes:
- Adds failing, stale, recovered, and branch workflow attention lists for JSON consumers.
- Adds
truncated_listsand--stale-dayssupport. - Adds
--billingand documents the expanded JSON fields.
| File | Description |
|---|---|
| tests/test_backlog_metrics.py | Adds coverage for attention lists, truncation reporting, billing opt-in behavior, and related JSON output changes. |
| scripts/README.md | Documents the new command-line options and expanded JSON fields. |
| scripts/backlog_metrics.py | Implements attention collection, truncation metadata, stale thresholds, and opt-in billing. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4392 +/- ##
===========================================
+ Coverage 79.39% 79.50% +0.11%
===========================================
Files 46 46
Lines 16070 16163 +93
===========================================
+ Hits 12758 12851 +93
Misses 3312 3312
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
…he Gate's Checks Window in the Attention Read Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…lts, Secret Sync Fields, and Audit Account Fixes (#4428) Promotes the 28 pull requests that landed on develop since the last promotion (#4388), from the away-mode backlog burndown run. - #4391: Drop the false XML comment suppression claim from the .NET conventions. - #4390: Blank quotations after a heredoc label on its opening line in the paste-safe rule. - #4392: Carry attention lists, cut lists, and opt-in billing in the `backlog_metrics.py` JSON. - #4393: Gate `configure.sh apply`'s interaction limit on a committed bot verification record. - #4394: Make the gh and node report note say a one-line vendor source is configured. - #4395: Add ShellCheck and shfmt lint tasks to the VS Code task snippets. - #4396: Count a CodeRabbit clean pass on the head in the digest's `other_reviewed`. - #4401: Date the line-ending intentRefs by the skill and trim advisory restatements. - #4399: Share one any-level heading region primitive between `heading_body` and `extract_anchored`. - #4398: Name the hub pull requests a standup lands through, and add HACS first-run guidance. - #4404: Add a PowerShell section to CODESTYLE.md and narrow the shell rule. - #4405: Close AUDIT.md section 10's convergence loop and fix three skill pointers. - #4409: Route CODESTYLE.md's General section to the language skills (part of #1153, which stays open). - #4410: Detect a C# test project by its own text rather than its file name. - #4411: Drop the unruled "working gate is not drift" sentence from CODESTYLE.md. - #4412: Track the newest upstream line of each pinned host tool. - #4413: Correct AUDIT.md section 0's account of what the audit checks. - #4416: Add a required coverage shield class to the README audit. - #4414: Tie drive-pr's merge to its authorization and align the pass moments. - #4417: Pass over a second SIGTERM in `pr_review.py` so an interrupt prints one line. - #4418: Point the report-path placeholder at AUDIT.md section 8. - #4419: Correct the audit account copies outside AUDIT.md section 0. - #4422: Drop the archived DevKitCIoT from the rollout checklists. - #4423: Report a stale `pullRequestCheck: false` and correct AUDIT.md section 6. - #4424: Add a `prune` subcommand to retire orphaned canonical review passes. - #4425: Drop the archived DevKitCIoT from the reusable-workflows checklists and fix a normalization docstring. - #4427: Store secret sync metadata in item fields, not 1Password tags. - #4426: Declare and apply the Actions workflow token defaults through `configure.sh` (the `configure.sh` part of #1783, which stays open). ## Owed by the maintainer - #4412: A live run of the new host-tool line tracker. Scheduled runs start only once this reaches `main`, and a `workflow_dispatch` would prove it sooner. - #4426: A fleet `configure.sh apply` for the workflow token defaults, after the per-repository read the 2026-11-01 answer requires. Please also confirm the new `--lower-workflow-token` option, which a `write` repository needs for the apply to lower its default. - #4427: Run `python3 scripts/secrets_sync.py selftest`, then the cleanup script in that pull request's body (`move_sync_tags.py`, dry run first, then `--apply`). Until that runs, every un-migrated secret item refuses to sync. - #4393: The pilot's first interaction limit is set by hand in its settings and its bots verified there. The verification record is committed afterwards through a hub pull request, and only then does `apply` set the limit fleet-wide. - A fleet resync is owed, because carried text changed: AGENTS.md, GOVERNANCE.md, CODESTYLE.md, and several skills. Fixes #4387 Fixes #4383 Fixes #4284 Fixes #1095 Fixes #4299 Fixes #4370 Fixes #4364 Fixes #4173 Fixes #4064 Fixes #3536 Fixes #3929 Fixes #3808 Fixes #3812 Fixes #3810 Fixes #4320 Fixes #4232 Fixes #1748 Fixes #1607 Fixes #1270 Fixes #1170 Fixes #3692 Fixes #4415 Fixes #3908 Fixes #1648 Fixes #4276 🤖 Generated with [Claude Code](https://claude.com/claude-code)


Summary
scripts/backlog_metrics.py:--format jsoncarries a per-repositoryattentionobject: failing pull requests, stale pull requests (--stale-days, 7 by default), failing branches, and workflows that failed in the window and recovered. Failing checks are read through the review gate's owncheck_nodes. Read only for JSON.truncated_listsnames each list that reached the item limit, beside the unchangedtruncated.--billing. Skipped,billingisnulland no billing note or line prints.scripts/README.mddocuments each field. Tests cover each.Closes on promotion: #4284, #1095, #4299, #4370
Local review
Six recorded passes. Every
introducedfinding they raised is fixed or declined with a reason:UPDATED_AT, so a pull request updated mid-walk can be missed on a weekly timer's read. Not hardened, per the trust-boundaries rule.billingisnullby default whileschemastays1. Make backlog_metrics.py's User Billing Read Opt-In, Since a Fine-Grained Token Cannot Reach It #4370 asks fornull.Pre-existing findings, not filed:
scripts/backlog_metrics.py:635,style: a 105-column line the change did not touch.🤖 Generated with Claude Code