Repository navigation
Track the Newest Upstream Line of Each Pinned Host Tool - #4412
Conversation
A scheduled caller points the hub's own check-upstream-version-task.yml at the hub, with a resolve-upstream hook reading Python's release-cycle data and the .NET release index. The state file is seeded at the current pins, so the first run names the lines that have already moved. The bump pull request sets auto-merge false, so a human decides whether each pin moves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jq already fails on each shape the removed checks named, and the step turns any jq failure into its own error. The hook header's pin list named a file the hub does not hold and missed others, so it goes. The hook-step tests run on POSIX only, since the hook runs on a Linux runner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The task requires every caller to carry its own hook at this path, so the audit's hub-only check would otherwise report a carrier's required hook as undeclared hub content. A test runs that check on a constructed carrier tree. Co-Authored-By: Claude Opus 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
Approval is blocked by active critical issues in tracker pin-change handling and accepted-gap scoping, plus a test that does not verify the seeded values explicitly.
3 open issues
What changed in this PR
Adds a scheduled tracker that detects newer released Python and .NET host-tool lines and opens human-reviewed pull requests.
Changes:
- Adds a weekly and manual workflow targeting
develop. - Resolves upstream release lines through a composite action and jq filters.
- Adds seeded state, audit metadata, and tests for resolver and workflow behavior.
| File | Description |
|---|---|
| tests/test_resolve_upstream.py | Tests the resolver filters, composite action execution, workflow configuration, tracker state format, and audit behavior. |
| spec/divergences.json | Records the repository-owned upstream resolver hook as an accepted divergence. |
| host-tool-lines.json | Stores the seeded Python and .NET upstream line observations. |
| .github/workflows/check-host-tool-lines.yml | Schedules the host-tool line tracker and routes updates to human review without automatic merging. |
| .github/actions/resolve-upstream/python.jq | Selects the newest released Python minor line from upstream release metadata. |
| .github/actions/resolve-upstream/dotnet.jq | Selects the newest released .NET major line from upstream release metadata. |
| .github/actions/resolve-upstream/action.yml | Fetches upstream Python and .NET release metadata and emits their resolved lines. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4412 +/- ##
===========================================
- Coverage 81.60% 79.53% -2.08%
===========================================
Files 26 47 +21
Lines 9070 16183 +7113
===========================================
+ Hits 7402 12871 +5469
- Misses 1668 3312 +1644
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:
|
…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
The hub pins one version line per host tool, and nothing told anyone when upstream shipped a later line. This adds one scheduled tracker that does. It follows the maintainer's answer of 2026-11-01 on the issue, option 1. That means one tracker, one key per pinned tool holding the newest upstream line, and
auto-merge: false. The reusablecheck-upstream-version-task.ymlis not changed..github/workflows/check-host-tool-lines.ymlis a thin scheduled caller of the hub's owncheck-upstream-version-task.yml. It runs weekly and onworkflow_dispatch. It targetsdeveloponly, since the pins live there and reachmainby promotion. It passesauto-merge: false, so the bump pull request waits for a human (D8.3). Its head isno-auto-merge-host-tool-lines-develop, which no merge-bot rule matches. Concurrency is keyed on the workflow alone withcancel-in-progress: true, per "Workflow YAML Conventions" Concurrency exception (5). It setspermissions: {}, since every write in the task uses the App token..github/actions/resolve-upstream/action.ymlis the hook the task requires. It reads two upstream release documents, Python's release-cycle data from peps.python.org and the .NET release index. It reports the newest released line of each, such as{"dotnet":"10","python":"3.14"}..github/actions/resolve-upstream/python.jqanddotnet.jqpick the newest released line. A preview line does not count as released: Python'sfeatureandprerelease, and .NET'spreviewandgo-live. A status or support phase outside the known set fails the run rather than being guessed, and so does a malformed line.host-tool-lines.jsonis the committed state file. It is seeded at the current pins, python3.13and dotnet10. So the first run opens one pull request naming the lines that have already moved, rather than recording them silently. Merging that pull request records the new lines and closes the signal, so merging it is the human's decision on each line, including a decision to stay. A pin that moves goes in a pull request of its own, since the next run regenerates the bump branch and would drop a commit pushed onto it. The file is deliberately not namedupstream-version.json, since that name is anupstream-wrapperdetect hint inspec/project-types.json.spec/divergences.jsongains oneacceptedgap row for.github/actions/resolve-upstream/action.yml, modelled on the.github/actions/validate/action.ymlrow. Without it the audit's hub-only check reports ESPHome-NonRoot's own required hook as undeclared hub content to triage. Running that check against ESPHome-NonRoot's and NxWitness's live trees, onmainanddevelop, flagged that one path and nothing else. Sopython.jqanddotnet.jqtake no row.tests/test_resolve_upstream.pyruns both filters on constructed data. It runs the hook's step whole under bash with a stubcurlserving constructed files, so no case reaches the network. The hook-step cases run on POSIX only, since the hook runs on a Linux runner and jq ends its lines in CRLF on Windows. It also reads the caller and the state file for the shape the task diffs. Finally, it runs the audit's hub-only check on a constructed carrier tree, and that case fails without the new gap row.Notes for the reviewer
check-upstream-version-task.ymlitself as a hosted task, so that filename hint already matched the hub before this change. This change adds noupstream-version.json, and the hub's build does not read the state file for a tag. So the hub does not newly read as anupstream-wrapperrepository.canonical-review-sweep.yml, is declared in neitherspec/files.jsonnor the prose gate'shub_hostedlist, and the repo gate passes with this one added.tests/test_cli_usage.py, a file outside this change's scope. The hook's logic is two jq filters, and jq is the maintained parser for this JSON.Owed to the maintainer
main, since a schedule runs on the default branch. Aworkflow_dispatchfromdevelopafter this merges would prove it sooner. Expect its first pull request to namedotnet to 11, python to 3.15, the lines released as of this writing.Verification
python3 -m unittest discover -s testspasses, including the 23 new resolver and tracker cases and the 2 hub-only cases.spec/validate.pypasses, and so do the spec, audit, and fidelity test modules.scripts/docker_lint.pypasses for actionlint, editorconfig-checker, and shellcheck.repo_gate.pypasses every check, includingcomposite-actionsandsha-pin.--allow-comments. This pull request carries thecommentslabel, since the workflow's concurrency citation is a comment a rule requires.Compute upstream version diff stepwas run by hand against the seeded state file. It produced the expected head, title, and body, and it rewrote the file in the same form this change commits.Closes on promotion: #1170
🤖 Generated with Claude Code