Skip to content

feat: add the LatestTag seam to RefsCollectSeams (hermetic version-less ref resolution) - #52

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/refs-latest-tag-seam
Aug 26, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/refs-latest-tag-seam

Conversation

@atrawog

@atrawog atrawog commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

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, 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.

How tested

In-repo failing-without-it test (new, this PR): TestRefsCollectSeams_LatestTagSeam references RefsCollectSeams.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.

$ go test ./spec/ -run TestRefsCollectSeams_LatestTagSeam -count=1 -v
=== RUN   TestRefsCollectSeams_LatestTagSeam
--- PASS: TestRefsCollectSeams_LatestTagSeam (0.00s)
PASS
ok  	github.com/opencharly/spec/spec	0.002s

Full spec suite:

$ go test ./spec/ -count=1
ok  	github.com/opencharly/spec/spec	0.002s

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-remote at test time:

$ go test ./loaderkit/ -run TestCollectRemoteRefsOpts_VersionlessRefResolvesLatestTag -count=1 -v
=== RUN   TestCollectRemoteRefsOpts_VersionlessRefResolvesLatestTag
    refs_versionless_test.go:38: version-less ref resolved to v2026.235.1653
--- PASS: TestCollectRemoteRefsOpts_VersionlessRefResolvesLatestTag (0.00s)
PASS

Rulebook compliance

Rule How / N/A
R0 N/A — no skills surface touched
R1 N/A — no anomaly; additive seam
R2 N/A — no deferral; the seam lands with its consumer (sdk#168)
R3 One seam field joins the existing RefsCollectSeams pattern; no re-implementation
R4 N/A — no workaround; the seam is the mechanism-level fix for offline testability
R5 N/A — no legacy path removed
R6 N/A — no git operations beyond the PR itself
R8 N/A — no docs surface
R9 N/A — no test-only change; the seam ships with its failing-without-it test
R10 In-repo failing-without-it test (compile-time) + consumer hermetic test, both pasted above

Change classification

  • Change class: additive seam (spec contract) + in-repo test
  • Verification gate: go test ./spec/ green; consumer hermetic test green
  • Attribution tier: fully tested and validated (the seam's path executes in the in-repo test; the consumer path executes in sdk#168's hermetic test, both pasted)

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

…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.
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 69fb56be4c39955f4179d883c9b88867b94b35e7 (PR #52, opencharly/spec)

Change class: additive code change — one new LatestTag seam field on RefsCollectSeams in spec/loader_seam.go (5 insertions, 0 deletions, 1 file).

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 RefsCollectSeams seam pattern (Downloader/MigrateCache/ResolveLocal); registry-coupled resolution belongs at the host seam, not core. No alias file, no new sdk-kit import into core.

Blocks

  1. A1 — How tested is incomplete. The body supplies only go build ./spec/... (exit 0). A1 requires the gate to name the disposable target, the fresh-rebuild confirmation, whether the CHANGED code path executed live, and pasted output. None of the disposable-target / fresh-rebuild / changed-path-execution evidence is present; the claimed hermetic test "in sdk#168" is asserted as a promise with no pasted output.

  2. B12/R10 — no shipped proof, evidence rests on a sibling unmerged branch. New code (the LatestTag field) is added with NO test or hook in this diff that would fail without it — B12 requires the change to ship coverage proving its new functionality. The body's entire R10 case ("The hermetic test in sdk#168 proves the seam") points at a sibling unmerged branch (spec/loader_seam.go:482-486), which is neither verifiable from this PR's tools nor part of the state that ships when this PR merges alone. This is exactly the "sibling unmerged branch" evidence pattern B10/B14 reject for producer-repo claims, and the tool-limited R10 cross-check flags it as a suspicious-but-unverified claim: BLOCK until the body pastes the hermetic test output (stub resolver, no network) run against a fresh rebuild — or ships a test in this repo that fails without the seam.

  3. A3 — attribution tier inflated. fully tested and validated requires the NEW/CHANGED code path to have EXECUTED against a fresh rebuild. The only pasted execution is go build; the seam's path executes nowhere in this repo's evidence, and the claimed execution lives in an unverifiable sibling PR. The tier is not justified by the proof; downgrade to a tier matching what is actually demonstrated.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

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).
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 0675c9c78432 (PR #52, opencharly/spec, base 6aa88d20cc66)

Change class: additive Go seam (one LatestTag field on RefsCollectSeams) + in-repo pinning test — 2 files, +29/−0.

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 — spec/ is the seam/contract layer; the registry-coupled tag resolver correctly stays a host-supplied callback alongside Downloader/MigrateCache/ResolveLocal. No alias file, no core import, no legacy smell.

Comment intake: prior github-actions[bot] BLOCK (head 69fb56be4c39) — all three findings re-derived against the CURRENT head and found stale-superseded: (1) A1 "no pasted test output" — the new commit 0675c9c78432 ships loader_seam_latesttag_test.go and the body now pastes the in-repo go test -run TestRefsCollectSeams_LatestTagSeam PASS, full-suite PASS, and consumer output; the changed seam path (assignment + invocation) executes in the in-repo test; disposable-target evidence is N/A for a library-only change class; (2) B12 "no shipped failing-without-it test" — the compile-time pinning test now SHIPS in this PR's diff and fails at build time without the field; sdk#168 evidence is supplementary, not load-bearing; (3) A3 "tier inflated" — with the seam path executing against a fresh rebuild (-count=1), fully tested and validated is now justified. Attribution footer present in exact required form; pasted output internally consistent (stub tag v2026.235.1653 matches consumer log).

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 (go test ./spec/ is the correct gate for a library seam), B15 (feat+test commits are one atomic unit). CI validate / validate is still in_progress (no failure signal; tool-limited note only — no diff-visible lint/gofmt findings).

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 26, 2026 08:52
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 946ab3b393f0 (branch: feat/refs-latest-tag-seam)

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 go test -run TestRefsCollectSeams_LatestTagSeam -count=1 -v PASS plus full-suite PASS; disposable-target element N/A for a library-only additive seam; attribution footer present in exact required form), A2 (library seam gate go test ./spec/ is correct; no beds applicable), A3 (tier justified: the changed seam path — field assignment, nil check, invocation, return assertion — executes against a fresh -count=1 run in the shipped test), R3 (joins the existing RefsCollectSeams seam pattern, no duplication), R10 (the shipped loader_seam_latesttag_test.go fails at BUILD time without the field — the failing-without-it proof is in-repo; sdk#168 consumer output is supplementary, internally consistent), B16 placement CORRECT (host-supplied registry-coupled callback in the spec seam layer; no alias file, no kit import, no legacy smell), B15 (feat+test commits are one atomic unit, squash collapses them), R0/R1/R2/R4/R5/R6/R8/R9 N/A with reasons. CI validate / validate in_progress only — no failure signal, no diff-visible gofmt/lint findings.

Comment intake:

  • github-actions[bot] BLOCK @ 69fb56be4c39 — stale-superseded: all three findings (A1 no pasted test output, B12 no shipped failing-without-it test, A3 tier inflated) were raised against the pre-test-commit head; the current head ships the in-repo pinning test and the body pastes its green output, so none reproduce.
  • github-actions[bot] PASS @ 0675c9c78432 — verified-non-blocking: independently re-derived security/placement/tier/stale-dispositions against the current head and confirmed each.

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit ce44afa into main Aug 26, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 26, 2026
@aitrawog
aitrawog deleted the feat/refs-latest-tag-seam branch September 25, 2026 19:09
charly-auto-merge Bot added a commit that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant