Repository navigation
Compare Intent Staleness Against the Hub's Own Copy and Name the Moved Canonical - #3448
Conversation
…d Canonical (#3371) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟢 Approval recommended
The change is a narrow fix to an advisory-only check, and its new tests cover the skip, the reference case, and the message.
No open issues 🎉
What changed in this PR
This PR fixes a false alarm in the intent staleness advisory in spec/audit.py. The advisory flagged a downstream copy that was byte-identical to the hub's own file at the same path, because it only compared against the intent doc named by intentRef. The PR also corrects the message, which named the intent doc's commit date as if the file itself had changed.
Changes:
check_intent_stalenessnow also treats a copy as current when it matches the hub's file at the unit's own path. Units that name areferenceare still judged against that reference alone.- The advisory message now names the canonical it compares against, for example "the intent canonical DOC.md changed later at ...".
- New tests cover the skip, the non-skip for a differing copy, the
referenceunit, and the message text.
| File | Description |
|---|---|
| tests/test_audit_helpers.py | Adds three tests for the skip, the reference exclusion, and the new message text. |
| spec/audit.py | Compares the copy against the hub file at its own path, skips identical copies, and names canonical_rel in the advisory message. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3448 +/- ##
==========================================
Coverage ? 80.78%
==========================================
Files ? 23
Lines ? 8840
Branches ? 0
==========================================
Hits ? 7141
Misses ? 1699
Partials ? 0
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:
|
…nd Nine Fixes to Main (#3472) ## Summary Promotes the pull requests merged into develop since release 2.0.1166. - [#3444](#3444): keeps untracked files out of the pre-commit snippet's prose gate. - [#3446](#3446): exempts the BuildKit `check=` parser directive in the prose gate. - [#3448](#3448): compares intent staleness against the hub's own copy and names the moved canonical. - [#3450](#3450): says only the prose gate is diff-scoped in the commit hook. - [#3453](#3453): reclassifies HolidayLights as an operational config repository in the registry. - [#3455](#3455): classifies the remaining subprocess failures by status rather than by prose. - [#3464](#3464): splits the semicolon series in WORKFLOW.md's filesystem output-seam bullet. - [#3466](#3466): audits a caller's `workflow-model` input against the registry. - [#3469](#3469): emits one snapshot shape from the skills report's cannot-read paths. - [#3462](#3462): splits `pr_review.py`'s pure check and round readers into the leaf modules `pr_review_checks.py` and `pr_review_rounds.py`. - [#3470](#3470): holds a covered held `wait` while any workflow run on the head has not completed. - [#3473](#3473): answers this promotion's review. The `wait` help and `scripts/README.md` now say what a held head's exit `0` does not prove: a `CHECKS UNREADABLE` payload, the conditions the unregistered-required-check hold reads, and the reach of the completed-run read. The exit code itself stays for #3471. Closes #3370 Closes #3372 Closes #3371 Closes #3369 Closes #3378 Closes #3454 Closes #3332 Closes #1759 Closes #3451 ## Constituent coverage Each change this promotion carries had coverage on its own pull request into develop, at its merged head: | Pull request | Merged head | Coverage | | --- | --- | --- | | [#3444](#3444) | `a61d1e2a` | attested local pass at the merged head, base `develop` | | [#3446](#3446) | `0a0efea1` | attested local pass at the merged head, base `develop` | | [#3448](#3448) | `c2c71ea7` | attested local pass at the merged head, base `develop` | | [#3450](#3450) | `4ec37c34` | attested local pass at the merged head, base `develop` | | [#3453](#3453) | `f20a543c` | a Copilot round on the merged head, its one changed file, no open findings | | [#3455](#3455) | `85f0ce60` | attested local pass at the merged head, base `develop` | | [#3464](#3464) | `fcd48e2d` | attested local pass at the merged head, base `develop` | | [#3466](#3466) | `3426a19c` | attested local pass at the merged head, base `develop` | | [#3469](#3469) | `ea4b0bb7` | attested local pass at the merged head, base `develop` | | [#3462](#3462) | `236eceab` | attested local pass at the merged head, base `develop` | | [#3470](#3470) | `3545ba46` | attested local pass at the merged head, base `develop` | | [#3473](#3473) | `46010530` | attested local pass at the merged head, base `develop`, and a Copilot table on an earlier head naming exactly the changed files | 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
The intent staleness advisory in
spec/audit.pyflagged a copy that is byte-identical to the hub's own file whenever the unit'sintentRefnames a doc, and its message named the wrong thing as having changed.check_intent_stalenessalso skips where the copy is content-identical to the hub's file at the unit's ownpath. Units naming areferenceare still judged against that reference alone.tests/test_audit_helpers.pycover the skip, the non-skip for a differing copy, thereferenceunit, and the message.Local strict review: round 1 found the
referencecase (fixed and tested), round 2 found nothing.Closes on promotion: #3371
🤖 Generated with Claude Code