Skip to content

Carry Attention Lists, Cut Lists, and Opt-In Billing in backlog_metrics.py JSON - #4392

Merged
ptr727 merged 6 commits into
developfrom
burndown/backlog-metrics-attention
Nov 24, 2026
Merged

ptr727 merged 6 commits into
developfrom
burndown/backlog-metrics-attention

Conversation

@ptr727

@ptr727 ptr727 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

scripts/backlog_metrics.py:

  • --format json carries a per-repository attention object: 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 own check_nodes. Read only for JSON.
  • truncated_lists names each list that reached the item limit, beside the unchanged truncated.
  • The billing read is opt-in through --billing. Skipped, billing is null and no billing note or line prints.
  • scripts/README.md documents each field. Tests cover each.

Closes on promotion: #4284, #1095, #4299, #4370

Local review

Six recorded passes. Every introduced finding they raised is fixed or declined with a reason:

Pre-existing findings, not filed:

  • scripts/backlog_metrics.py:635, style: a 105-column line the change did not touch.

🤖 Generated with Claude Code

ptr727 and others added 3 commits November 23, 2026 19:49
…_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]>
Copilot AI lite review requested due to automatic review settings November 24, 2026 04:01
@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head b885fe3706bcda584fdda96395d434383e8c0983, the content this pull request carries at that commit against develop, and it recorded 5 findings.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_lists and --stale-days support.
  • Adds --billing and 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

Comment thread scripts/backlog_metrics.py Resolved
Comment thread scripts/backlog_metrics.py Resolved
Comment thread scripts/backlog_metrics.py Resolved
Comment thread scripts/backlog_metrics.py Resolved
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.50%. Comparing base (477c4d1) to head (07811cf).
⚠️ Report is 2 commits behind head on develop.

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              
Flag Coverage Δ
python-3.13 79.50% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 07811cf8ac2198ee096d9fff4d25e6977b837d6d, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 054e8fd into develop Nov 24, 2026
14 checks passed
@ptr727
ptr727 deleted the burndown/backlog-metrics-attention branch November 24, 2026 04:50
ptr727 added a commit that referenced this pull request Nov 24, 2026
…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)
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.

2 participants