Skip to content

fix(refs): honor CHARLY_REPO_OVERRIDE at the fetch LEAF, not just one caller - #139

Merged
github-actions[bot] merged 3 commits into
mainfrom
fix/repo-override-at-fetch-leaf
Sep 19, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
fix/repo-override-at-fetch-leaf

Conversation

@atrawog

@atrawog atrawog commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

RCA + root fix: CHARLY_REPO_OVERRIDE was honored at a CALLER, not at the fetch LEAF.

CHARLY_REPO_OVERRIDE is the documented "verify an uncommitted tree before you push" mechanism (spec/proc.RepoOverrideEnv): it points an @github repo ref at a local working tree so an uncommitted candy/charly.yml change can be built and evaluated by ANY consumer before it is pushed. It was enforced in exactly ONE place — sdk/loaderkit.EnsureRepoDownloaded (the loader-side orchestration).

But the standalone generators call the fetch leaf (spec/refs.DownloadRepo) directly:

  • plugin-marketplace (charly marketplace generate) — readkinds.go:37 → candywalk.CollectEntitiesRemote(roots, refs.DownloadRepo)
  • plugin-docs (charly docs generate) — sources.go:152
  • charly/charly/internal/pluginsgen — main.go:102

None of them goes through EnsureRepoDownloaded, so every one silently ignored the override and fetched the pinned REMOTE ref even when the developer had set an override pointing at their live tree. That is the R4 hole: a mechanism whose whole purpose is to test uncommitted work, bypassed by the consumers that need it (I hit it regenerating the marketplace corpus from a skill branch: the override was set, and the generator still read the pinned tag).

Fix (root, one implementation):

  • Move the override parse to spec/proc (next to RepoOverrideEnv) as proc.RepoOverrideDir — its natural home, shared by both sides.

  • Enforce it in spec/refs.DownloadRepo, the fetch LEAF, so EVERY caller inherits it. The override tree is used verbatim and never migrated (migration would mutate the dev's tree).
    Concrete edits (2 code files + tests, spec repo):

  • proc/repo_override.go — add RepoOverrideDir; its canonicalRepoPath helper delegates to the ONE canonical spec.NormalizeRepoSpec (no second copy of the auto-prefix rule), and the comparison canonicalizes both sides (so a bare owner/repo repoPath matches a bare entry and vice versa — a one-sided compare silently ignored that form).

  • refs/git.go — DownloadRepo consults the override first, before any cache/fetch.

  • proc/repo_override_test.go, refs/git_test.go — regression coverage (incl. the bare/bare case).

Consumer leg — landed and its ordering caveat. sdk/loaderkit.RepoOverrideDir delegating to proc.RepoOverrideDir is already merged as opencharly/sdk#266. That PR did NOT bump the github.com/opencharly/spec require (it merged before this producer tagged), so sdk main currently fails to build (undefined: proc.RepoOverrideDir) — the cross-repo ordering violation. The heal is a follow-up sdk PR bumping its spec pin to this PR's merge tag, which I will open the moment this tags. Landing order: this PR (spec) merges + tags FIRST → then the sdk pin-bump PR.

Change class

cross-repo — producer spec (this PR). The sdk delegation is opencharly/sdk#266 (already merged; it needs this PR's tag — see the ordering section). The marketplace/docs/pluginsgen consumers need NO change: they call refs.DownloadRepo, which is now correct for all of them.

Closes / relates to: relates to opencharly/sdk#266 (the delegation, already merged — it needs this PR's tag to heal; see the ordering section).

Breaking change + rollback: none — an additive enforcement at an existing documented seam. Rollback: revert.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the spec module's go build/go vet/go test plus the NEW regression tests, which fail without the fix. The end-to-end effect was proven through a real charly marketplace generate run against the fixed generator (below).
  • Eval beds run: N/A — a pure Go ref-resolution change in the spec contract module; spec ships no beds. The end-to-end proof is a REAL generator run (below).
  • Fresh rebuild: the generator was rebuilt from source against this spec; the run below used it.
  • Did the CHANGED code path execute live? YES — DownloadRepo's override branch executed in a real charly marketplace generate (both the hard-fail and the local-serve arms, below).
  • Concurrency (shared-state changes only): N/A — a pre-fetch short-circuit.

Evidence — put each item in the block whose label names it.

1. Fresh-rebuild gate output (real per-package output + the new tests):

$ cd spec && gofmt -l . && GOWORK=off go build ./... && GOWORK=off go vet ./...
# clean

$ GOWORK=off go test -count=1 ./proc/ ./refs/
ok  	github.com/opencharly/spec/proc	0.164s
ok  	github.com/opencharly/spec/refs	18.017s

$ GOWORK=off go test -count=1 -v -run 'TestDownloadRepoHonorsOverrideAtTheLeaf|TestRepoOverrideDir_LocalResolution|TestRepoOverrideDir_HardErrors' ./refs/ ./proc/
--- PASS: TestDownloadRepoHonorsOverrideAtTheLeaf (0.00s)
--- PASS: TestRepoOverrideDir_LocalResolution (0.00s)
--- PASS: TestRepoOverrideDir_HardErrors (0.00s)

2. Each changed code path executing (the lines proving the changed branch ran, not that it built):

# (a) the new leaf test FAILS without the fix (short-circuit neutralized):
--- FAIL: TestDownloadRepoHonorsOverrideAtTheLeaf
    DownloadRepo with an override must not fetch (got error resolving
    github.com/opencharly/some-repo:v2099.999.9999: git ls-remote ... exit status 128)
FAIL
# (with the fix restored: PASS — the override dir is returned, no network)

# (b) END-TO-END via a real generator, built against this spec (local replace chain):
#     a BROKEN override must now HARD-FAIL (before the fix it was silently ignored):
$ CHARLY_PLUGIN_DIR=<fixed-generator> \
  CHARLY_REPO_OVERRIDE=github.com/opencharly/layer-charly-internals=/nonexistent-override-xyz \
    charly marketplace generate --root <marketplace> --out <marketplace>
charly marketplace: collect entities: resolve @github.com/opencharly/layer-charly-internals:v2026.260.2251:
  CHARLY_REPO_OVERRIDE: override dir for "github.com/opencharly/layer-charly-internals" not accessible:
  stat /nonexistent-override-xyz: no such file or directory
EXIT=1

#     a VALID override now serves the LOCAL tree — the overridden repo's branch content
#     lands in the generated corpus (0 occurrences before, 2 after):
$ CHARLY_PLUGIN_DIR=<fixed-generator> \
  CHARLY_REPO_OVERRIDE=github.com/opencharly/layer-charly-internals=<local branch tree> \
    charly marketplace generate --root <marketplace> --out <marketplace>
$ grep -c 'BODY-BEFORE-PUSH' <marketplace>/internals/skills/git-workflow/SKILL.md
2

3. Docs-only evidence: N/A — not a docs-only change.

Attribution tier

fully tested and validated — the new tests fail without the fix (verified), and the changed path executed live through a real charly marketplace generate run in both arms (broken override → hard fail; valid override → local tree served).

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-internals:marketplace, /charly-internals:go, /charly-internals:plugin loaded.
  • R1 RCA + zero warnings: the bypass was root-caused to the enforcement living at one caller while the leaf ignored it (code sites pasted), then fixed at the leaf. Zero warnings.
  • R2 no out-of-scope: DownloadRepo is the one shared leaf; fixing it covers all three direct consumers — no consumer is left bypassing.
  • R3 no duplication: the parse moved to ONE home (proc), using the canonical spec.NormalizeRepoSpec; loaderkit delegates (opencharly/sdk#266). Before, it existed once but at the wrong layer.
  • R4 no workaround: this IS the R4 fix — no shell substitute, no manual regen; the documented mechanism now works where it is used.
  • R5 hard cutover + grep: no identifier removed; RepoOverrideDir gains one canonical home.
  • R6 git safety: git status checked; append-only commits; no force-push.
  • R7 runtime gate: the generator ran live (block 2b).
  • R8 artifact invariants: N/A — no generated-artifact change in this repo.
  • R9 binary == source + deps: the generator used in the e2e proof was built from source against this spec.
  • R10 disposable + coverage: N/A — no deployable target; the regression tests ship and fail without the change.
  • RDD / ADE / SDD: RDD — the bypass was proven by a real generator run (broken override ignored → after fix, hard-fail + local-serve arms both proven). SDD/ADE — N/A.
  • Hard cutover: atomic commit; no TODO.
  • Kernel/plugin boundary law: N/A — a contract-leaf fix; no concrete-kind logic.
  • Disposable-only autonomy: N/A — no destroy/rebuild.
  • Clean architecture + Go gates: gofmt -l . empty, go vet clean, go test ./... green.
  • CHANGELOG: N/A by construction — written at merge by charly-auto-merge[bot] from this body.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

… caller

RCA: CHARLY_REPO_OVERRIDE (the documented "verify an uncommitted tree before you
push" mechanism) was enforced ONLY in the loader-side orchestration
(sdk/loaderkit.EnsureRepoDownloaded). The fetch LEAF the standalone generators call
directly — spec/refs.DownloadRepo — ignored it entirely, so `charly marketplace
generate`, `charly docs generate`, and pluginsgen silently fetched the PINNED REMOTE
at every tag even with an override set. That is the R4 hole: a mechanism that exists
to test uncommitted work, bypassed by every leaf consumer.

Fix (root, one implementation):
- Move the override parse to spec/proc (next to RepoOverrideEnv) as
  proc.RepoOverrideDir — its natural home, and the ONE parse both sides share.
- Enforce it in spec/refs.DownloadRepo, so EVERY caller inherits it; the override
  tree is used verbatim and never migrated (migration would mutate the dev's tree).
- sdk/loaderkit.RepoOverrideDir now delegates to proc.RepoOverrideDir (R3 — one
  implementation per behavior, no duplication).

Coverage (both fail without the fix, verified by neutralizing the short-circuit):
- spec/refs TestDownloadRepoHonorsOverrideAtTheLeaf — the leaf resolves the local
  tree with NO network fetch (an impossible version proves no fetch).
- spec/proc TestRepoOverrideDir_LocalResolution / _HardErrors — the parse and its
  loud-failure contract.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: dd60972f5dfe7ccb3129c74d96cf667cd4858a55 (branch not returned by get_pr_meta)

Change class: code (spec contract module: proc/repo_override.go, refs/git.go + 2 test files, +155/−1, 4 files — matches meta).

Security screen: no finding (no secrets/egress; the change removes a fetch rather than adding one; no guardrail/validator/rulebook surface touched).

Comments: none on the PR.

Blocks

  1. R3 (duplication) — a second implementation of an existing repo-path normalization, with a demonstrable silent-bypass arm. proc/repo_override.go (normalizeOverrideRepoPath, plus the comparison inside RepoOverrideDir):

    // ...so `opencharly/charly` and `github.com/opencharly/charly` both match
    // (same auto-prefix rule as spec.NormalizeRepoSpec).
    ...
    if normalizeOverrideRepoPath(pair[:eq]) != repoPath { continue }
    • The code's own comment states the auto-prefix rule already exists as spec.NormalizeRepoSpec in the spec package — which this very file already imports ("github.com/opencharly/spec/spec"). Hand-rolling a ~6-line copy of a canonical predicate in a second place is exactly what R3/B7 forbids, and it is the same predicate the PR claims to be de-duplicating. Fix: canonicalize via the existing spec helper (no second implementation), or, if that helper genuinely differs, say so and drop the "same rule" claim.
    • The comparison normalizes only the LHS. The diff's own test enshrines "opencharly/x" as a legal LHS form ({"bare LHS auto-prefixes github.com", ...}), but the reverse input is not normalized: RepoOverrideDir("opencharly/x", "opencharly/x=<dir>") normalizes the LHS to github.com/opencharly/x, compares it against the raw opencharly/x, finds no match, and returns ("", false, nil) — an override silently ignored with no error, i.e. the exact R4 failure class this PR exists to close, re-opened on one input form with no test covering it. Fix: compare canonicalized-to-canonicalized (both sides), and add a regression case for a bare owner/repo repoPath.
  2. R3/R5 — the "single implementation" claim is unproven and the duplicate is deferred to an unnamed PR. The new doc comment asserts that this is "THE single implementation of the CHARLY_REPO_OVERRIDE parse", yet the pre-existing sdk/loaderkit copy is only replaced by "the opencharly/sdk sibling PR" (body: "relates to the opencharly/sdk sibling PR", "sdk/loaderkit.RepoOverrideDir now delegates to proc.RepoOverrideDir (sibling PR)"). No PR number/link and no pasted diff of that delegation is supplied, so at the state this PR merges the two implementations still coexist and the R3 claim is not verifiable. Fix: name/link the companion opencharly/sdk PR (number) and state the merge ordering, so the removal of the second parse is checkable — or drop the deferral and land the delegation in the same cutover.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — BLOCK

Head SHA: dd60972f5dfe7ccb3129c74d96cf667cd4858a55 (branch not returned by get_pr_meta)

Change class: code (spec contract module: proc/repo_override.go, refs/git.go + 2 test files, +155/−1, 4 files — matches meta).

Security screen: no finding (no secrets/egress; the change removes a fetch rather than adding one; no guardrail/validator/rulebook surface touched).

Comments: none on the PR.

Blocks

  1. R3 (duplication) — a second implementation of an existing repo-path normalization, with a demonstrable silent-bypass arm. proc/repo_override.go (normalizeOverrideRepoPath, plus the comparison inside RepoOverrideDir):

    // ...so `opencharly/charly` and `github.com/opencharly/charly` both match
    // (same auto-prefix rule as spec.NormalizeRepoSpec).
    ...
    if normalizeOverrideRepoPath(pair[:eq]) != repoPath { continue }
    • The code's own comment states the auto-prefix rule already exists as spec.NormalizeRepoSpec in the spec package — which this very file already imports ("github.com/opencharly/spec/spec"). Hand-rolling a ~6-line copy of a canonical predicate in a second place is exactly what R3/B7 forbids, and it is the same predicate the PR claims to be de-duplicating. Fix: canonicalize via the existing spec helper (no second implementation), or, if that helper genuinely differs, say so and drop the "same rule" claim.
    • The comparison normalizes only the LHS. The diff's own test enshrines "opencharly/x" as a legal LHS form ({"bare LHS auto-prefixes github.com", ...}), but the reverse input is not normalized: RepoOverrideDir("opencharly/x", "opencharly/x=<dir>") normalizes the LHS to github.com/opencharly/x, compares it against the raw opencharly/x, finds no match, and returns ("", false, nil) — an override silently ignored with no error, i.e. the exact R4 failure class this PR exists to close, re-opened on one input form with no test covering it. Fix: compare canonicalized-to-canonicalized (both sides), and add a regression case for a bare owner/repo repoPath.
  2. R3/R5 — the "single implementation" claim is unproven and the duplicate is deferred to an unnamed PR. The new doc comment asserts that this is "THE single implementation of the CHARLY_REPO_OVERRIDE parse", yet the pre-existing sdk/loaderkit copy is only replaced by "the opencharly/sdk sibling PR" (body: "relates to the opencharly/sdk sibling PR", "sdk/loaderkit.RepoOverrideDir now delegates to proc.RepoOverrideDir (sibling PR)"). No PR number/link and no pasted diff of that delegation is supplied, so at the state this PR merges the two implementations still coexist and the R3 claim is not verifiable. Fix: name/link the companion opencharly/sdk PR (number) and state the merge ordering, so the removal of the second parse is checkable — or drop the deferral and land the delegation in the same cutover.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

…he duplicate

Validator round 1 on spec#139:
- R3: normalizeOverrideRepoPath duplicated the auto-prefix rule the file's own
  comment attributes to spec.NormalizeRepoSpec. Deleted; canonicalRepoPath now calls
  the canonical spec helper (one implementation).
- R4: the comparison normalized only the LHS, so RepoOverrideDir("opencharly/x",
  "opencharly/x=<dir>") — a BARE repoPath against a bare entry — was SILENTLY ignored
  (the exact bypass this PR exists to close). Both sides are now canonicalized, with a
  regression case for every bare/qualified combination.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 8f734ffbb826bf3e1f4d764c787b109af271f03e (branch not returned by get_pr_meta; base 6eb5d41dded9)

Change class: code — spec contract module (proc/repo_override.go, refs/git.go + 2 test files, +160/−1, 4 files — matches meta).

Comments considered (2, both the same prior review at head dd60972f):

  • Prior finding 1 (hand-rolled normalizeOverrideRepoPath = second copy of spec.NormalizeRepoSpec; one-sided comparison silently ignoring a bare owner/repo repoPath) — stale-superseded: head commit 8f734ff replaces it with canonicalRepoPath → spec.NormalizeRepoSpec and canonicalizes BOTH sides (want := canonicalRepoPath(repoPath) vs canonicalRepoPath(pair[:eq])), and the diff now carries the "bare repoPath, bare entry (the one-sided bug)" regression case. Re-derived against the current diff; both arms are resolved.
  • Prior finding 2 (de-duplication of the sdk/loaderkit parse deferred to an unnamed PR) — verified-blocking (see Block 2); nothing in the head commit or body addresses it.

Blocks

  1. A1 — the body does not account for the code at this head. The Summary's concrete-edits list states proc/repo_override.go — add RepoOverrideDir (+ normalizeOverrideRepoPath). No normalizeOverrideRepoPath exists in the current diff; the shipped helper is canonicalRepoPath (delegating to spec.NormalizeRepoSpec), and the both-sides canonicalization + the new bare/bare regression case are the entire substance of commit 8f734ff. Fix: rewrite the concrete-edits line to name canonicalRepoPath/spec.NormalizeRepoSpec and describe the both-sides comparison; a description↔code mismatch is a BLOCK.

  2. R2/R3 — the claimed single implementation is unverifiable and the removal of the second parse is deferred to an unnamed companion PR. proc/repo_override.go's new doc comment asserts this "is THE single implementation of the CHARLY_REPO_OVERRIDE parse" and that "BOTH the loader-side orchestration (sdk/loaderkit.EnsureRepoDownloaded) AND the fetch LEAF … share ONE parse", and the body states sdk/loaderkit.RepoOverrideDir "now delegates to proc.RepoOverrideDir (sibling PR)". The only reference is "the opencharly/sdk sibling PR" — no PR number/link, no pasted delegation diff, no landing order — while the PR's own comment states the parse "lived only in loaderkit" before this change. At the state this PR merges, the two implementations therefore still coexist and the R3 de-duplication the PR claims is not checkable; unlanded consumer work is presented as done. Fix: name/link the companion opencharly/sdk PR (number) and state the landing order, or land the loaderkit delegation in this same cutover.

Non-blocking, tool-limited disposition: the eval-bed N/A — spec ships no beds / no-deployable-target claims and the pasted generator output (CHARLY_REPO_OVERRIDE: override dir for "…" not accessible: stat …: no such file or directory, grep -c = 2) are internally consistent with the code's error format and cannot be re-run read-only; the strings.SplitSeq build dependency on Go ≥1.24 is accepted on the pasted go build/go vet/go test output. Security screen T1–T4: no finding (no secrets/egress, no guardrail/validator/rulebook surface, additive enforcement at an existing seam; no embedded instruction directed at this review).

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — BLOCK

Head SHA: 8f734ffbb826bf3e1f4d764c787b109af271f03e (branch not returned by get_pr_meta; base 6eb5d41dded9)

Change class: code — spec contract module (proc/repo_override.go, refs/git.go + 2 test files, +160/−1, 4 files — matches meta).

Comments considered (2, both the same prior review at head dd60972f):

  • Prior finding 1 (hand-rolled normalizeOverrideRepoPath = second copy of spec.NormalizeRepoSpec; one-sided comparison silently ignoring a bare owner/repo repoPath) — stale-superseded: head commit 8f734ff replaces it with canonicalRepoPath → spec.NormalizeRepoSpec and canonicalizes BOTH sides (want := canonicalRepoPath(repoPath) vs canonicalRepoPath(pair[:eq])), and the diff now carries the "bare repoPath, bare entry (the one-sided bug)" regression case. Re-derived against the current diff; both arms are resolved.
  • Prior finding 2 (de-duplication of the sdk/loaderkit parse deferred to an unnamed PR) — verified-blocking (see Block 2); nothing in the head commit or body addresses it.

Blocks

  1. A1 — the body does not account for the code at this head. The Summary's concrete-edits list states proc/repo_override.go — add RepoOverrideDir (+ normalizeOverrideRepoPath). No normalizeOverrideRepoPath exists in the current diff; the shipped helper is canonicalRepoPath (delegating to spec.NormalizeRepoSpec), and the both-sides canonicalization + the new bare/bare regression case are the entire substance of commit 8f734ff. Fix: rewrite the concrete-edits line to name canonicalRepoPath/spec.NormalizeRepoSpec and describe the both-sides comparison; a description↔code mismatch is a BLOCK.

  2. R2/R3 — the claimed single implementation is unverifiable and the removal of the second parse is deferred to an unnamed companion PR. proc/repo_override.go's new doc comment asserts this "is THE single implementation of the CHARLY_REPO_OVERRIDE parse" and that "BOTH the loader-side orchestration (sdk/loaderkit.EnsureRepoDownloaded) AND the fetch LEAF … share ONE parse", and the body states sdk/loaderkit.RepoOverrideDir "now delegates to proc.RepoOverrideDir (sibling PR)". The only reference is "the opencharly/sdk sibling PR" — no PR number/link, no pasted delegation diff, no landing order — while the PR's own comment states the parse "lived only in loaderkit" before this change. At the state this PR merges, the two implementations therefore still coexist and the R3 de-duplication the PR claims is not checkable; unlanded consumer work is presented as done. Fix: name/link the companion opencharly/sdk PR (number) and state the landing order, or land the loaderkit delegation in this same cutover.

Non-blocking, tool-limited disposition: the eval-bed N/A — spec ships no beds / no-deployable-target claims and the pasted generator output (CHARLY_REPO_OVERRIDE: override dir for "…" not accessible: stat …: no such file or directory, grep -c = 2) are internally consistent with the code's error format and cannot be re-run read-only; the strings.SplitSeq build dependency on Go ≥1.24 is accepted on the pasted go build/go vet/go test output. Security screen T1–T4: no finding (no secrets/egress, no guardrail/validator/rulebook surface, additive enforcement at an existing seam; no embedded instruction directed at this review).

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 39f423236042c2416dcf0417c610e8350d3a81f4 (branch: not returned by get_pr_meta; base 6eb5d41dded9, 4 files, +160/−1)

Security screen: PASS (T1–T4 no finding — no secrets/egress; the change removes a fetch rather than adding one; no guardrail/validator/rulebook/CI-script surface touched; no embedded instruction directed at this review).
Checklist: All applicable rules PASS or NA. Placement: CORRECT — the shared CHARLY_REPO_OVERRIDE parse sits in spec/proc beside RepoOverrideEnv, the only layer both the refs leaf and the sdk loader can consume without duplicating it (no alias file, no mechanism-kit import into core, no residual-second-parse in the diff); refs/git.go enforces it at the leaf while sdk/loaderkit delegates (cross-repo, named). Runtime-gate N/A — spec ships no deployable target is stated with a reason and backed by a real charly marketplace generate execution of the changed branch in both arms; the new tests fail without the fix.
Comments considered (2, both prior github-actions[bot] BLOCKs at heads dd60972f/8f734ff): stale-superseded — finding 1 (hand-rolled normalizeOverrideRepoPath + one-sided comparison silently ignoring a bare owner/repo repoPath) is fixed in 8f734ff (canonicalRepoPath → spec.NormalizeRepoSpec, both sides canonicalized, bare/bare regression case shipped); finding 2 (companion de-dup deferred to an unnamed PR) is resolved at the current head — the body now names opencharly/sdk#266 and states the landing order (this PR merges+tags first → then the sdk pin-bump), and the A1 description↔code mismatch is cured (the body's concrete-edits line names canonicalRepoPath/spec.NormalizeRepoSpec, matching the diff; all 4 changed files are accounted for). The acknowledged sdk main build break is an inherent cross-repo ordering constraint that this PR's tag is the named prerequisite for — it names an exit this PR advances, so it is not a forbidden out-of-scope deferral, and blocking here would prevent the heal.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — PASS

Head SHA: 39f423236042c2416dcf0417c610e8350d3a81f4 (branch: not returned by get_pr_meta; base 6eb5d41dded9, 4 files, +160/−1)

Security screen: PASS (T1–T4 no finding — no secrets/egress; the change removes a fetch rather than adding one; no guardrail/validator/rulebook/CI-script surface touched; no embedded instruction directed at this review).
Checklist: All applicable rules PASS or NA. Placement: CORRECT — the shared CHARLY_REPO_OVERRIDE parse sits in spec/proc beside RepoOverrideEnv, the only layer both the refs leaf and the sdk loader can consume without duplicating it (no alias file, no mechanism-kit import into core, no residual-second-parse in the diff); refs/git.go enforces it at the leaf while sdk/loaderkit delegates (cross-repo, named). Runtime-gate N/A — spec ships no deployable target is stated with a reason and backed by a real charly marketplace generate execution of the changed branch in both arms; the new tests fail without the fix.
Comments considered (2, both prior github-actions[bot] BLOCKs at heads dd60972f/8f734ff): stale-superseded — finding 1 (hand-rolled normalizeOverrideRepoPath + one-sided comparison silently ignoring a bare owner/repo repoPath) is fixed in 8f734ff (canonicalRepoPath → spec.NormalizeRepoSpec, both sides canonicalized, bare/bare regression case shipped); finding 2 (companion de-dup deferred to an unnamed PR) is resolved at the current head — the body now names opencharly/sdk#266 and states the landing order (this PR merges+tags first → then the sdk pin-bump), and the A1 description↔code mismatch is cured (the body's concrete-edits line names canonicalRepoPath/spec.NormalizeRepoSpec, matching the diff; all 4 changed files are accounted for). The acknowledged sdk main build break is an inherent cross-repo ordering constraint that this PR's tag is the named prerequisite for — it names an exit this PR advances, so it is not a forbidden out-of-scope deferral, and blocking here would prevent the heal.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 19, 2026 09:56
@github-actions
github-actions Bot merged commit 76d1ebf into main Sep 19, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 19, 2026
github-actions Bot pushed a commit to opencharly/sdk that referenced this pull request Sep 19, 2026
R1: sdk main is RED — sdk#266 (the loaderkit -> proc.RepoOverrideDir delegation)
merged before its producer (opencharly/spec#139) tagged, and it did not bump the
github.com/opencharly/spec require. Against the old pin, loaderkit fails to build:
  loaderkit/refs_collect.go:72:14: undefined: proc.RepoOverrideDir

spec#139 is now merged and tagged v0.2026262.957. This adopts that tag; the sdk tree
builds, vets, and tests green again.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@aitrawog
aitrawog deleted the fix/repo-override-at-fetch-leaf branch September 25, 2026 19:10
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