Repository navigation
feat: add the LatestTag seam to RefsCollectSeams (hermetic version-less ref resolution) - #52
Conversation
…ss ref resolution) The candy de-submodule cutover (Phase 4) resolves version-less remote refs to the repo's LATEST TAG (immutable) instead of the mutable default branch. The tag resolver (spec/refs.GitLatestTag, a git ls-remote shell-out) is registry-coupled, so it joins the existing seams (Downloader/MigrateCache/ResolveLocal) as a host-supplied callback — letting the loaderkit mechanism be unit-tested offline and deterministically, without live network access at test time.
Review — BLOCKHead SHA: Change class: additive code change — one new Security screen: PASS (additive seam; no secrets, no scope mismatch, no guardrail change, no supply-chain edit; T2: no embedded directives in body). Placement: CORRECT — the field joins the established host-supplied Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
TestRefsCollectSeams_LatestTagSeam references RefsCollectSeams.LatestTag — with
the pre-seam spec it fails at BUILD time ("has no field or method LatestTag"),
the failing-without-it proof for the additive seam (B12).
Review — PASSHead SHA: Change class: additive Go seam (one Security screen: PASS — no secrets, no scope mismatch (diff matches body exactly), no guardrail/supply-chain edits, no embedded directives; change is additive to an established host-supplied seam pattern. Placement: CORRECT — Comment intake: prior Checklist: All applicable rules PASS or NA — R0/R1/R2/R4/R5/R6/R8/R9 N/A with reasons; R3 (joins existing seam pattern), R10 (compile-time failing-without-it test shipped + pasted green output), A2 gate match ( Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — additive seam field + in-repo test; no secrets, no scope mismatch (diff matches body accounting exactly), no guardrail/supply-chain edits, no embedded directives; T4 N/A (no security machinery touched). Checklist: All applicable rules PASS or NA — A1 (summary accounts for both files; How tested pastes the in-repo Comment intake:
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The candy de-submodule cutover (Phase 4) resolves version-less remote refs to the repo's LATEST TAG (immutable) instead of the mutable default branch. The tag resolver (
spec/refs.GitLatestTag, agit ls-remoteshell-out) is registry-coupled, so it joins the existing seams (Downloader/MigrateCache/ResolveLocal) as a host-supplied callback — letting the loaderkit mechanism be unit-tested offline and deterministically, without live network access at test time.How tested
In-repo failing-without-it test (new, this PR):
TestRefsCollectSeams_LatestTagSeamreferencesRefsCollectSeams.LatestTag— with the pre-seam spec it fails at BUILD time (spec.RefsCollectSeams has no field or method LatestTag), the failing-without-it proof for the additive seam.Full spec suite:
Consumer proof (sdk#168, the mechanism that uses the seam): the hermetic loaderkit test stubs the resolver and asserts the version-less ref lands on the stub tag — no live
git ls-remoteat test time:Rulebook compliance
RefsCollectSeamspattern; no re-implementationChange classification
go test ./spec/green; consumer hermetic test greenAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)