docs: record the invariants path list as permanent compatibility - #26
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_5c60117d-00c0-469e-a906-a53211ff9ce4) |
📝 WalkthroughWalkthroughThe pull request updates ChangesPolicy path documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
Thanks, both pre-merge warnings checked. One was a real miss, one I am declining with reasons. Description check: valid, fixed. You were right. Docstring Coverage: declining, and I think the 50% is measuring something narrower than it looks. The figure comes from the two symbols this diff touches. For the wider picture, No inline findings this round, and the review at |
Review summaryRound complete. No inline comments and no formal reviews were filed. Both findings came from CodeRabbit's pre-merge checks. Fixed (1)
Declined (1)
Answered (0) No human comments to respond to. Check status
Leaving this PR open. The merge decision and the exact-head approval are both the owner's. |
Summary
PR #24 restored the invariants path fallback after it turned out to be load-bearing, but left a docstring promising its removal once a commit touching
support-policy.jsonlanded after the rename. That removal condition is wrong, so this replaces it.support-policy.jsoncarriespolicyInvariantsDigest, andconsumer.pyrejects a capture where the captured policy does not match the captured invariants. The two documents only agree inside the tree php-bin reviewed them in, which is exactly why the capture pins to the commit that last changed the policy: at that commit php-bin's own validation had just checked one against the other.That makes the pin correct rather than under-specified, and rules out the obvious alternatives:
support-policy.jsoncommit would need a real edit, but every field in that file is a semantic claim and its digest already matches. There is no honest change to make, and an empty commit is not one.So the pinned commit can be arbitrarily old, and the invariants path is whatever php-bin's layout was at the time. The two-URL list is permanent compatibility with historical layouts rather than a pending cleanup, and the next path move should extend it. The docstring now says that and explains why the alternatives do not work, so the reasoning sits with the code.
Docstring and one test comment only. No executable change.
Verification
scripts/test.shphp-binrelease contract remains compatiblescripts/test.shpasses locally at 9 tests plus the plugin contract, andPlugin contractis green on this PR. The remaining three items are unaffected by construction: the diff changes a docstring and a comment, so no target check, release selection, checksum path, or contract surface is touched.git diffon this branch is confined to the docstring body infetch_first_urland two comment lines intest/test_autorelease.py.Security
Both hold for the same reason: there is no executable change. The checksum requirement lives in the install path, which this PR does not touch, and the diff adds no files.