Repository navigation
squabble relock --gather: take the evidence from each record's own repository - #166
Conversation
…pository Read-only: git ls-remote for the tags whose commit is the SHA (annotated tags by their peeled commit); only when there is none, a blob-less fetch into a private temporary directory for the branches that contain it, plus the default branch. A failed lookup is reported and the record stays a referral; a commit no branch holds is no evidence, not an error. Tests run real git against a local fixture repository. Live: the ZeroInflatedCounts.jl cicd-suite leaf gives main (identical to #22) and ResidualEvidenceTypes.jl's upload-artifact record gives v7.0.0, with no hand-made evidence. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7Zmiut2nCcbtEx25HAU
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
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. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|



Summary
The second step of the SQ-LOCK-01 executor (#164).
squabble relockcould repair a lock only from an evidence TSV that a person gathered by hand.--gatherasks each flagged record's own repository instead, so the executor can run from a lock and its workflows alone. Still read-only on every repository, and still a dry run unless--writeis given and the guards say Apply.Live check, no hand-made evidence:
hyperpolymath/cicd-suite@0da816c0…(no tags; the commit is onmain) givesmain, byte-identical to the hand repair in ZeroInflatedCounts.jl#22.actions/upload-artifact@bbbca2dd…(one tag at that SHA) givesv7.0.0.Changes
crates/squabble-cli/src/relock_gather.rs(new):git ls-remote --tagsfor the tags whose commit is the SHA (an annotated tag by its peeled^{}commit). Only when there is no tag: a blob-less fetch of all branch heads into a private temporary directory (removed on drop) andfor-each-ref --contains. Also the default branch fromls-remote --symref. It never writes to the repository it asks and never to the lock. Tests run real git against a local fixture repository (annotated tag found by its peeled commit; branches named when there is no tag; a commit no branch holds is no evidence, not an error; an unreachable remote is an error).crates/squabble-cli/src/relock.rs:--gatherand--remote-base, exactly one of--evidenceor--gather. A failed lookup printsgather-failedand leaves the record without evidence, so it is a referral, never a guess.docs/decisions/0004-first-line-rule-catalogue.adoc: the executor section's evidence bullet, and the proof.Not in this PR
Opening the fix PR is still a separate step that is not built. Nothing has been run on any repository other than as the read-only comparisons above, and no applier wave is widened by this.
RSR Quality Checklist
Required
cargo test: 106 in the CLI crate, 215 in squabble-core)cargo fmt --check)cargo clippy --all-targets -- -D warnings)unsafeblocks.envfiles includedAs Applicable
Generated by Claude Code