Skip to content

fix(loader): flat imports must not abort the plugin prescan - #613

Merged
github-actions[bot] merged 4 commits into
mainfrom
fix/plugin-prescan-flat-import
Sep 17, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
fix/plugin-prescan-flat-import

Conversation

@atrawog

@atrawog atrawog commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

prescanDeclaredPluginWords decoded the project root's import: directive as
[]map[string]string. import: is a mixed-shape list — a bare string (a FLAT import,
e.g. the documented per-kind sibling split - vm.yml) or a single-key alias: ref map
(a namespaced import). A bare-string entry cannot unmarshal into map[string]string, so the
whole struct unmarshal failed and the function returned early (via
prescanRemotePluginManifests), which skipped the local discover: walk entirely. The
plugin pin that lives in a discovered candy manifest was therefore never prescanned, so a
plugin-provided kind word (pipeline:, examplekind:, …) was never registered and the loader
rejected it in every document — including the root file's own inline entity.

RCA (R1)

Minimal reproducer:

# charly.yml
version: 2026.249.2125
import:
    - omarchy: '@github.com/opencharly/distro-omarchy:v2026.251.2301'
    - pipes.yml
discover:
    - path: candy
      recursive: true
# pipes.yml
my-pipe:
    pipeline:
        stages:
            - id: s
              kind: command
              command: 'true'
              expect_exit: 0
  • Mechanism: the hand-rolled Import []map[string]string (charly/plugin_prescan.go).
  • Missed control: spec.ImportList (spec/spec/load_directives.go) is the ONE canonical
    mixed-shape decoder; the prescan had forked it (R3).
  • Blast radius: any project using the documented flat per-kind file split together with
    any plugin-provided kind.

Fix

Use spec.ImportList (R3 — delete the second decoder). Both import shapes now share ONE
prescanAndCollect(path, &allData) helper (R3 — no duplicated
prescanPluginManifest + ReadFile + append idiom); the flat branch reads a local sibling
file so its own pinned plugin refs are prescanned.

How tested

A/B discriminator on the changed path. A committed fixture
(charly/testdata/flat-import-project/) reproduces the exact failing shape: the root's import:
has a FLAT bare-filename entry (- flat.yml) and discover: [], and the flat-imported
flat.yml carries the project's ONLY plugin pin (the out-of-tree plugin-example-kind plugin)
TOGETHER WITH the examplekind: entity it provides. So the kind word is prescanned ONLY when the
flat file is read — the fixture cannot be satisfied by the decode fix alone. Three binaries on
the SAME fixture:

$ /tmp/oc/charly-prefix-real box validate -C charly/testdata/flat-import-project  # from origin/main c81a28c7
charly: error: ... flat.yml:doc0: node "probe-kind": no kind discriminator — collections and
plan steps live INLINE in the kind value; run: charly migrate

$ /tmp/oc/charly-decodefix-noflat box validate -C charly/testdata/flat-import-project  # decode fix ONLY, flat-read branch removed
charly: error: ... flat.yml:doc0: node "probe-kind": no kind discriminator  (the flat ref was never read)

$ bin/charly box validate -C charly/testdata/flat-import-project                  # fixed, 2026.260.1113
charly box validate: OK — checked 3 candies, 7 distros, 7 builders; 0 warnings, 0 errors

The bed therefore witnesses BOTH halves of the fix (decode + flat-file read), not just one.

Unit coverage (R7) — fails on the pre-fix/flat-branch-less source.

$ GOWORK=off go test -run TestPrescan_FlatImportDoesNotAbortTheWalk ./charly
# with the flat branch removed, the test FAILS:
--- FAIL: TestPrescan_FlatImportDoesNotAbortTheWalk
    plugin_prescan_import_test.go:137: the flat-imported sibling file's own plugin
    declaration was never prescanned — the flat branch is missing
FAIL

Full gate.

$ cd charly && gofmt -l .            # clean
$ GOWORK=off go build ./...          # exit 0
$ GOWORK=off go vet ./...            # exit 0
$ GOWORK=off go test -count=1 ./...  # ok github.com/opencharly/charly/charly 141.127s
                                     # ok .../internal/pluginsgen 27.441s
$ task build:binary                  # exit 0
$ bin/charly version                 # 2026.260.0546
$ bin/charly box validate            # OK — 628 candies, 129 boxes, 54 deploys; 0 warnings, 0 errors

On-point R10 bed (the changed path, live, disposable).

$ bin/charly check run check-loader-flat-import-local     # disposable: true, lifecycle: dev
[deploy-add] PASS after 34.48s
[check-live] PASS after 22.01s   <- the flat-import prescan path executes live
[update]     PASS after 20.39s   <- fresh rebuild (R10)
[cleanup]    PASS after 14.06s
check-loader-flat-import-local: PASS (steps=6)
# .check/check-loader-flat-import-local/2026.260.1114/summary.yml: ok: true, errors: 0

Plus the command-dispatch class bed:

$ bin/charly check run check-commands-local
charly check run check-commands-local: PASS (steps=6)
# .check/check-commands-local/2026.260.1033/summary.yml: ok: true, errors: 0

Rulebook compliance

  • R1 — the abort was RCA'd to the wrong decoder before any fix; a minimal reproducer plus
    an A/B pre-fix binary were used.
  • R2 — the same-mechanism sibling in plugin-fleet (writeVmBoxEntity) and plugin-vm
    (charly vm import) are fixed in their own PRs (opencharly/plugin-fleet#18,
    opencharly/plugin-vm#35) — separate repos, same cutover theme, no deferral.
  • R3 — spec.ImportList is reused; the forked decoder is deleted; both import shapes share
    one prescanAndCollect helper.
  • R4 — no workaround; the flat branch reads the project's real directives.
  • R5 — the forked decoder is fully replaced in the same change.
  • R6 — no force-push; the fix is an append-only commit on the branch.
  • R7 — coverage fails on the pre-fix source (unit test + A/B bed).
  • R8 — N/A: no emitted artifact/label changed.
  • R9 — task build:binary rebuilt the deployed binary from the final tree;
    bin/charly version → 2026.260.0546 matches the source CalVer.
  • R10 — two disposable beds (check-loader-flat-import-local, check-commands-local) ran
    the full build → deploy → check-live → fresh-update sequence on the final tree; both
    ok: true, zero errors.

Change classification

charly Go code — the loader prescan. Verification gate: go test/go vet/task build:binary plus the on-point R10 bed check-loader-flat-import-local and the class bed
check-commands-local. Attribution tier: fully tested and validated.

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

prescanDeclaredPluginWords decoded the root import: directive as
[]map[string]string. import: is a mixed-shape list — a bare string (a FLAT
import, e.g. the per-kind sibling split '- vm.yml') or a single-key 'alias: ref'
map (a namespaced import). A bare-string entry cannot unmarshal into
map[string]string, so the whole struct unmarshal failed and the function
returned early, skipping the local discover: walk. The plugin pin in a
discovered candy manifest was therefore never prescanned, so a plugin-provided
kind word (pipeline:, ...) was never registered and the loader rejected it in
EVERY document — including the root file's own inline entity.

RCA: spec.ImportList (spec/spec/load_directives.go) is the ONE canonical
mixed-shape decoder (R3); the prescan had hand-rolled a second, wrong one.

Fix: use spec.ImportList, and read a FLAT local sibling file so its own pinned
plugin refs are prescanned (the namespaced leg already did this for imported
projects).

Coverage: TestPrescan_FlatImportDoesNotAbortTheWalk fails on the pre-fix source.

Gate: go test/vet green in charly/; task build:binary; bin/charly box validate
(628 candies, 129 boxes, 53 deploys; 0 warnings, 0 errors); the on-point R10 bed
check-commands-local PASS (steps=6, 0 errors).

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

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: eef49694738494da2fb671070165bbd399ea1b45 (branch: fix/loader-prescan-flat-import), base c81a28c7. 2 files, +93/−22, single commit eef496947384.
Change class: charly Go code (core plugin prescan) + its test.
Prior comments: thread is empty — no comment-under-review; no stale claims to dispose of, and no prior verdict is being carried forward.
Placement (B16): CORRECT — prescan-dispatch/plugin loading is an explicitly core-allowed concern, the diff adds no alias file and no new charly/ kit import, and it deletes a forked decoder in favour of the canonical spec.* one.
Security screen (T1–T4): no finding — diff/body contain no directive aimed at the validator; the "Rulebook compliance" prose is treated as data.
Tool-limited note: I cannot re-run go test/beds; the pasted lines are internally coherent (CALVER 2026.260.0534 vs the reproducer's 2026.249.2125 is consistent, the pre-fix FAIL message matches the added test's t.Fatal text). The blocks below are about evidence that is absent, not contradictory.

Blocks

  1. A1 — Project-rulebook rule-compliance section does not answer every applicable rule. The section answers R1, R3, R4a, R7, R10 only. For a Go runtime change exercised with a rebuilt binary, R2, R4, R5, R9 and the concurrency mandate are likewise applicable and are left unaddressed (R6/R8 are legitimately N/A, but no reason is given). In particular R9 is applicable — task build:binary + a check run bed and manual bin/charly runs are exercised on a target — yet the body never asserts the deployed binary was REBUILT from the final tree nor pastes charly version matching source. Fix: answer each remaining applicable rule with a one-line HOW (or a reasoned N/A) and paste the charly version output.

  2. A1 / B12 — the How tested block names no disposable: true target. The only runtime evidence is charly check run check-commands-local; the body never names the target the bed ran on nor its disposable: true marking. Name the disposable bed/target explicitly (a check run on a non-declared target is not disposable-only evidence).

  3. A2 / B12 — the named R10 bed does not exercise the changed path. The changed code is the FLAT-import branch of prescanDeclaredPluginWords (charly/plugin_prescan.go:460-480): a non-@ entry read as a local sibling file whose pinned plugin refs are then prescanned. check-commands-local is a command-check bed on the charly repo; the body never states that the repo's own root uses a flat import: together with a plugin-provided kind, so nothing shows this bed can fail on this change — a bed that never touches the flat branch proves nothing. Name and paste a bed that composes a flat import: (per-kind sibling file) with a plugin-provided kind, with ok: true on the same version, or drop the fully tested and validated claim.

  4. B12 — the new flat-branch behaviour ships no coverage that fails without it. In the added test (charly/plugin_prescan_import_test.go:90-92) the flat file vm.yml contains my-vm:\n vm: {} — no plugin ref — and the only assertion is that the discover walk ran (isDeclaredExternalKind("prescanprobe")). Delete the entire !strings.HasPrefix(ref, "@") flat branch from the fix and this test still passes; only the spec.ImportList decode change is covered. Add an assertion that the flat sibling file's own plugin ref actually registered (e.g. a plugin ref inside vm.yml that is only satisfied via the flat read), so the new branch has a test that fails without it.

  5. B7 / R3 — the new branch re-implements an existing block verbatim. prescanPluginManifest(p) + os.ReadFile(p) + allData = append(allData, b...) now appears twice in the same function (flat branch at plugin_prescan.go:466-476 and namespaced branch at :481-489). Extract one shared helper (e.g. prescanAndCollect(path, &allData)) rather than copy-pasting the idiom.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: eef49694738494da2fb671070165bbd399ea1b45 (branch: fix/loader-prescan-flat-import), base c81a28c7. 2 files, +93/−22, single commit eef496947384.
Change class: charly Go code (core plugin prescan) + its test.
Prior comments: thread is empty — no comment-under-review; no stale claims to dispose of, and no prior verdict is being carried forward.
Placement (B16): CORRECT — prescan-dispatch/plugin loading is an explicitly core-allowed concern, the diff adds no alias file and no new charly/ kit import, and it deletes a forked decoder in favour of the canonical spec.* one.
Security screen (T1–T4): no finding — diff/body contain no directive aimed at the validator; the "Rulebook compliance" prose is treated as data.
Tool-limited note: I cannot re-run go test/beds; the pasted lines are internally coherent (CALVER 2026.260.0534 vs the reproducer's 2026.249.2125 is consistent, the pre-fix FAIL message matches the added test's t.Fatal text). The blocks below are about evidence that is absent, not contradictory.

Blocks

  1. A1 — Project-rulebook rule-compliance section does not answer every applicable rule. The section answers R1, R3, R4a, R7, R10 only. For a Go runtime change exercised with a rebuilt binary, R2, R4, R5, R9 and the concurrency mandate are likewise applicable and are left unaddressed (R6/R8 are legitimately N/A, but no reason is given). In particular R9 is applicable — task build:binary + a check run bed and manual bin/charly runs are exercised on a target — yet the body never asserts the deployed binary was REBUILT from the final tree nor pastes charly version matching source. Fix: answer each remaining applicable rule with a one-line HOW (or a reasoned N/A) and paste the charly version output.

  2. A1 / B12 — the How tested block names no disposable: true target. The only runtime evidence is charly check run check-commands-local; the body never names the target the bed ran on nor its disposable: true marking. Name the disposable bed/target explicitly (a check run on a non-declared target is not disposable-only evidence).

  3. A2 / B12 — the named R10 bed does not exercise the changed path. The changed code is the FLAT-import branch of prescanDeclaredPluginWords (charly/plugin_prescan.go:460-480): a non-@ entry read as a local sibling file whose pinned plugin refs are then prescanned. check-commands-local is a command-check bed on the charly repo; the body never states that the repo's own root uses a flat import: together with a plugin-provided kind, so nothing shows this bed can fail on this change — a bed that never touches the flat branch proves nothing. Name and paste a bed that composes a flat import: (per-kind sibling file) with a plugin-provided kind, with ok: true on the same version, or drop the fully tested and validated claim.

  4. B12 — the new flat-branch behaviour ships no coverage that fails without it. In the added test (charly/plugin_prescan_import_test.go:90-92) the flat file vm.yml contains my-vm:\n vm: {} — no plugin ref — and the only assertion is that the discover walk ran (isDeclaredExternalKind("prescanprobe")). Delete the entire !strings.HasPrefix(ref, "@") flat branch from the fix and this test still passes; only the spec.ImportList decode change is covered. Add an assertion that the flat sibling file's own plugin ref actually registered (e.g. a plugin ref inside vm.yml that is only satisfied via the flat read), so the new branch has a test that fails without it.

  5. B7 / R3 — the new branch re-implements an existing block verbatim. prescanPluginManifest(p) + os.ReadFile(p) + allData = append(allData, b...) now appears twice in the same function (flat branch at plugin_prescan.go:466-476 and namespaced branch at :481-489). Extract one shared helper (e.g. prescanAndCollect(path, &allData)) rather than copy-pasting the idiom.

Verdict: BLOCK


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

View action run

…port prescan

Resolves the validator's blocks on the flat-import prescan PR:

- B12: TestPrescan_FlatImportDoesNotAbortTheWalk now asserts the FLAT branch
  itself — the flat-imported sibling carries its OWN plugin declaration, so
  deleting the '!strings.HasPrefix(ref, "@")' branch fails the test (proven:
  the decode-only fix survives the old assertion).
- B7/R3: both import shapes (flat sibling file, namespaced project) now share
  ONE prescanAndCollect(path, &allData) helper — the duplicated
  prescanPluginManifest + ReadFile + append idiom is gone.
- A2/B12: a committed fixture charly/testdata/flat-import-project + the
  on-point R10 bed check-loader-flat-import-local exercise the changed path
  live: a flat import + a discovered candy pinning the out-of-tree
  plugin-example-kind plugin, validated with 'box validate -C'.

Gate: go test/vet green; task build:binary (2026.260.0546); check-loader-flat-import-local
PASS (steps=6, ok: true); check-commands-local PASS (steps=6, ok: true).

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

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: f64d21a756c3aed77109cefb565d1028408703ac (branch: fix/loader-prescan-flat-import)
Base: c81a28c789e5afcb43e7139a4cf20cc3dab37588

Change class: charly Go code (core plugin prescan) + new charly.yml R10 bed/fixture + unit test.

Prior comments (both github-actions[bot], both posted against the superseded head eef4969) — all five of their blocks target that head and are resolved against the CURRENT diff, so they are stale-superseded as findings: (1) rule-compliance now answers R1–R10 with R8 reasoned N/A; (2) a disposable: true target is now named and present in the diff; (3) an on-point bed (check-loader-flat-import-local) now exists; (4) the added test now asserts flatprobe, which fails without the flat branch; (5) the copy-pasted idiom is now the shared prescanAndCollect helper. No comment is carried forward as a surviving finding.

Blocks

  1. B12 / A1 + R1 — the new R10 bed's prose contradicts the bed it ships, and the bed is not the witness for the new branch that it claims to be.
    • charly.yml (the comment block above check-loader-flat-import-local) and that bed's description: both assert the bed "writes the exact fixture to a temp dir" / "Writes, into a mktemp dir, the exact failing shape"; check-loader-flat-import-app's description: repeats it ("the bed only needs the host charly binary + a temp dir"). False: the bed's only plan step runs ${CHARLY_BIN} box validate -C charly/testdata/flat-import-project — the committed repo fixture. Nothing writes a mktemp dir anywhere in the added app/bed.
    • The same prose asserts the bed "proves BOTH the decode fix and the flat-file read (each alone leaves the other broken)" and "deleting EITHER half of the fix breaks the bed". False for the flat-read half: charly/testdata/flat-import-project/flat.yml declares no plugin:/require: of its own — the only @github pin is charly/testdata/flat-import-project/candy/pin/charly.yml, and that manifest is registered by the discover walk, which the spec.ImportList decode fix re-enables. Delete the !strings.HasPrefix(ref, "@") flat branch in charly/plugin_prescan.go (the prescanAndCollect(p, &allData) call) and the bed still prints box validate: OK. The bed therefore witnesses only the decode fix, while the shipped description asserts it is the witness for the flat read.
    • Fix (either): give flat.yml its own plugin pin, mirroring the unit test's flatprobe in the temp-dir vm.yml, so the bed actually fails without the flat branch; or rewrite the charly.yml comment/description to state the bed witnesses only the decode fix and point at the unit test as the flat-branch coverage — and drop the mktemp claim in all three places.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: f64d21a756c3aed77109cefb565d1028408703ac (branch: fix/loader-prescan-flat-import)
Base: c81a28c789e5afcb43e7139a4cf20cc3dab37588

Change class: charly Go code (core plugin prescan) + new charly.yml R10 bed/fixture + unit test.

Prior comments (both github-actions[bot], both posted against the superseded head eef4969) — all five of their blocks target that head and are resolved against the CURRENT diff, so they are stale-superseded as findings: (1) rule-compliance now answers R1–R10 with R8 reasoned N/A; (2) a disposable: true target is now named and present in the diff; (3) an on-point bed (check-loader-flat-import-local) now exists; (4) the added test now asserts flatprobe, which fails without the flat branch; (5) the copy-pasted idiom is now the shared prescanAndCollect helper. No comment is carried forward as a surviving finding.

Blocks

  1. B12 / A1 + R1 — the new R10 bed's prose contradicts the bed it ships, and the bed is not the witness for the new branch that it claims to be.
    • charly.yml (the comment block above check-loader-flat-import-local) and that bed's description: both assert the bed "writes the exact fixture to a temp dir" / "Writes, into a mktemp dir, the exact failing shape"; check-loader-flat-import-app's description: repeats it ("the bed only needs the host charly binary + a temp dir"). False: the bed's only plan step runs ${CHARLY_BIN} box validate -C charly/testdata/flat-import-project — the committed repo fixture. Nothing writes a mktemp dir anywhere in the added app/bed.
    • The same prose asserts the bed "proves BOTH the decode fix and the flat-file read (each alone leaves the other broken)" and "deleting EITHER half of the fix breaks the bed". False for the flat-read half: charly/testdata/flat-import-project/flat.yml declares no plugin:/require: of its own — the only @github pin is charly/testdata/flat-import-project/candy/pin/charly.yml, and that manifest is registered by the discover walk, which the spec.ImportList decode fix re-enables. Delete the !strings.HasPrefix(ref, "@") flat branch in charly/plugin_prescan.go (the prescanAndCollect(p, &allData) call) and the bed still prints box validate: OK. The bed therefore witnesses only the decode fix, while the shipped description asserts it is the witness for the flat read.
    • Fix (either): give flat.yml its own plugin pin, mirroring the unit test's flatprobe in the temp-dir vm.yml, so the bed actually fails without the flat branch; or rewrite the charly.yml comment/description to state the bed witnesses only the decode fix and point at the unit test as the flat-branch coverage — and drop the mktemp claim in all three places.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: f64d21a756c3aed77109cefb565d1028408703ac (branch: fix/loader-prescan-flat-import)

Change class: charly core Go code (plugin prescan) + R10 bed in charly.yml + testdata fixture + unit test.

Prior comments: both bot comments (5709679951 / 5709680062, identical, reviewed eef496947384) → stale-superseded. All five of their findings are resolved in the current head f64d21a7: (1) rule-compliance section now answers R1–R10 including R2/R5/R6/R9; (2) a disposable: true/lifecycle: dev target is named (check-loader-flat-import-local, charly.yml); (3) a dedicated flat-import bed + fixture was added; (4) the test now asserts flatprobe (reachable only via the flat read), so the flat branch is covered; (5) the duplicated idiom is extracted into prescanAndCollect. None of those claims reproduce against the current diff.

Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file, no new charly/ kit import, and a forked decoder is deleted in favour of spec.ImportList.

Blocks

  1. R1 / T3 / A1 — the new bed's shipped prose contradicts what the bed actually does. charly.yml (block banner and the new check-loader-flat-import-local: description:) states: "A disposable kind:local deploy on host: local writes the exact fixture to a temp dir and runs charly box validate against it" / "Writes, into a mktemp dir, the exact failing shape … charly box validate -C <dir> then proves …", and the check-loader-flat-import-app: description adds "the bed only needs the host charly binary + a temp dir." The plan contains no write step at all and the sole check is command: "${CHARLY_BIN} box validate -C charly/testdata/flat-import-project" — a fixed repo-relative path, not a mktemp dir. Fix: describe it as validating the committed fixture charly/testdata/flat-import-project (and that it therefore needs the repo tree, not "binary + a temp dir"), or actually implement the tmpdir write it claims.

  2. Logically false coverage claim in the same description: (R1 / A2 / B12). The description asserts the fixture is "the sole R10 witness" and "The plugin ref lives ONLY in the discovered candy … so deleting EITHER half of the fix breaks the bed." That is not true. charly/testdata/flat-import-project/flat.yml carries no plugin ref of its own (probe-kind:\n examplekind:\n marker: value); the only pin is in the discovered candy charly/testdata/flat-import-project/candy/pin/charly.yml. So examplekind is registered by the discover walk that the spec.ImportList decode fix alone enables — delete the new !strings.HasPrefix(ref, "@") flat-read branch and the bed still passes (probe-kind parses, box validate: OK). The bed does not witness the flat-file read, contrary to its text, and a bed that cannot fail on that half proves nothing for it. Fix: put the plugin ref that must be prescanned inside flat.yml (so its registration is reachable only via the flat read) — or add a second flat-imported file whose own ref registers a word an entity requires — and then correct the description; the unit test's flatprobe assertion is currently the only real coverage of that branch.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: f64d21a756c3aed77109cefb565d1028408703ac (branch: fix/loader-prescan-flat-import)

Change class: charly core Go code (plugin prescan) + R10 bed in charly.yml + testdata fixture + unit test.

Prior comments: both bot comments (5709679951 / 5709680062, identical, reviewed eef496947384) → stale-superseded. All five of their findings are resolved in the current head f64d21a7: (1) rule-compliance section now answers R1–R10 including R2/R5/R6/R9; (2) a disposable: true/lifecycle: dev target is named (check-loader-flat-import-local, charly.yml); (3) a dedicated flat-import bed + fixture was added; (4) the test now asserts flatprobe (reachable only via the flat read), so the flat branch is covered; (5) the duplicated idiom is extracted into prescanAndCollect. None of those claims reproduce against the current diff.

Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file, no new charly/ kit import, and a forked decoder is deleted in favour of spec.ImportList.

Blocks

  1. R1 / T3 / A1 — the new bed's shipped prose contradicts what the bed actually does. charly.yml (block banner and the new check-loader-flat-import-local: description:) states: "A disposable kind:local deploy on host: local writes the exact fixture to a temp dir and runs charly box validate against it" / "Writes, into a mktemp dir, the exact failing shape … charly box validate -C <dir> then proves …", and the check-loader-flat-import-app: description adds "the bed only needs the host charly binary + a temp dir." The plan contains no write step at all and the sole check is command: "${CHARLY_BIN} box validate -C charly/testdata/flat-import-project" — a fixed repo-relative path, not a mktemp dir. Fix: describe it as validating the committed fixture charly/testdata/flat-import-project (and that it therefore needs the repo tree, not "binary + a temp dir"), or actually implement the tmpdir write it claims.

  2. Logically false coverage claim in the same description: (R1 / A2 / B12). The description asserts the fixture is "the sole R10 witness" and "The plugin ref lives ONLY in the discovered candy … so deleting EITHER half of the fix breaks the bed." That is not true. charly/testdata/flat-import-project/flat.yml carries no plugin ref of its own (probe-kind:\n examplekind:\n marker: value); the only pin is in the discovered candy charly/testdata/flat-import-project/candy/pin/charly.yml. So examplekind is registered by the discover walk that the spec.ImportList decode fix alone enables — delete the new !strings.HasPrefix(ref, "@") flat-read branch and the bed still passes (probe-kind parses, box validate: OK). The bed does not witness the flat-file read, contrary to its text, and a bed that cannot fail on that half proves nothing for it. Fix: put the plugin ref that must be prescanned inside flat.yml (so its registration is reachable only via the flat read) — or add a second flat-imported file whose own ref registers a word an entity requires — and then correct the description; the unit test's flatprobe assertion is currently the only real coverage of that branch.

Verdict: BLOCK


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

View action run

…e fix

Resolves the validator's blocks on the on-point R10 bed:

1. The bed prose claimed a mktemp-dir write that the plan never performs; it now
   describes what the bed ACTUALLY does — validate the committed fixture
   charly/testdata/flat-import-project (and therefore needs the repo tree, not
   'binary + a temp dir').
2. The fixture did NOT witness the flat-file read: the plugin ref lived in a
   DISCOVERED candy, so the spec.ImportList DECODE fix alone registered the kind
   word and the bed passed with the flat-read branch deleted. The pin now lives
   INSIDE the flat-imported file (flat.yml), the only plugin ref in the project —
   so a decode-fix-only binary fails the bed too. Proven:
     - true pre-fix binary        -> FAIL (no kind discriminator)
     - decode-fix-only binary     -> FAIL (flat ref never read)
     - fixed binary               -> OK

Gate: bin/charly box validate (628 candies, 129 boxes, 54 deploys; 0 warnings,
0 errors); go test ./charly green.

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

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 273688a60b2b18857b148fda4d876339c27e3b6e (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24, 3 commits.

Change class: charly core Go (plugin prescan) + charly.yml R10 bed + committed testdata fixture + unit test.

Security screen: PASS — no directive aimed at the validator (body/config prose treated as data); no secrets, egress, new deps, or guardrail edits; T1/T4 not engaged (this PR does not touch the validator spec or rulebook). Scope in the diff matches the description exactly.

Checklist: all applicable rules PASS or NA.

Prior-comment intake (all 6 bot comments: 5709679951/5709680062 @ eef4969, 5713298905/5713299034/5713304624/5713304803 @ f64d21a7) — every one re-derived against the CURRENT diff/body and stale-superseded:

  • rule-compliance section now answers R1–R10 (R8 reasoned N/A) — resolved.
  • disposable: true / lifecycle: dev target now named and present in charly.yml — resolved.
  • on-point bed check-loader-flat-import-local now exists — resolved.
  • unit test now asserts flatprobe, reachable only via the flat read, so it fails without the flat branch (pasted FAIL output matches the current t.Fatal text) — resolved.
  • duplicated idiom extracted into prescanAndCollect — resolved.
  • "writes a mktemp dir" prose gone; the comment now truthfully says the bed validates the COMMITTED fixture and needs the repo tree — resolved.
  • charly/testdata/flat-import-project/flat.yml now itself carries the pin (require: '@github…/plugin-example-kind:v2026.242.0529') and the examplekind: entity, with the root at discover: [] — so deleting the !strings.HasPrefix(ref, "@") branch removes the only plugin ref in the project and probe-kind fails with "no kind discriminator". The bed now genuinely witnesses both halves, as its shipped prose claims — resolved.

Tool-limited note (rule 4): I cannot re-run go test/beds. The pasted output is internally coherent — pre-fix build from origin/main c81a28c7 fails on flat.yml:doc0: node "probe-kind", fixed 2026.260.0546 prints box validate: OK; the bed summary ok: true/errors: 0 at 2026.260.1050 post-dates the A/B; the plugin_prescan_import_test.go:137 FAIL line matches the current test; and the fixture's 3 candies, 7 distros, 7 builders reconciles with 2 local entities + the imported plugin candy. Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file, no new charly/ kit import, and a forked decoder is deleted in favour of spec.ImportList.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 273688a60b2b18857b148fda4d876339c27e3b6e (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24, 3 commits.

Change class: charly core Go (plugin prescan) + charly.yml R10 bed + committed testdata fixture + unit test.

Security screen: PASS — no directive aimed at the validator (body/config prose treated as data); no secrets, egress, new deps, or guardrail edits; T1/T4 not engaged (this PR does not touch the validator spec or rulebook). Scope in the diff matches the description exactly.

Checklist: all applicable rules PASS or NA.

Prior-comment intake (all 6 bot comments: 5709679951/5709680062 @ eef4969, 5713298905/5713299034/5713304624/5713304803 @ f64d21a7) — every one re-derived against the CURRENT diff/body and stale-superseded:

  • rule-compliance section now answers R1–R10 (R8 reasoned N/A) — resolved.
  • disposable: true / lifecycle: dev target now named and present in charly.yml — resolved.
  • on-point bed check-loader-flat-import-local now exists — resolved.
  • unit test now asserts flatprobe, reachable only via the flat read, so it fails without the flat branch (pasted FAIL output matches the current t.Fatal text) — resolved.
  • duplicated idiom extracted into prescanAndCollect — resolved.
  • "writes a mktemp dir" prose gone; the comment now truthfully says the bed validates the COMMITTED fixture and needs the repo tree — resolved.
  • charly/testdata/flat-import-project/flat.yml now itself carries the pin (require: '@github…/plugin-example-kind:v2026.242.0529') and the examplekind: entity, with the root at discover: [] — so deleting the !strings.HasPrefix(ref, "@") branch removes the only plugin ref in the project and probe-kind fails with "no kind discriminator". The bed now genuinely witnesses both halves, as its shipped prose claims — resolved.

Tool-limited note (rule 4): I cannot re-run go test/beds. The pasted output is internally coherent — pre-fix build from origin/main c81a28c7 fails on flat.yml:doc0: node "probe-kind", fixed 2026.260.0546 prints box validate: OK; the bed summary ok: true/errors: 0 at 2026.260.1050 post-dates the A/B; the plugin_prescan_import_test.go:137 FAIL line matches the current test; and the fixture's 3 candies, 7 distros, 7 builders reconciles with 2 local entities + the imported plugin candy. Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file, no new charly/ kit import, and a forked decoder is deleted in favour of spec.ImportList.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 17, 2026 11:29
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 273688a60b2b (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24, 3 commits.
Change class: charly core Go code (plugin prescan) + R10 bed in charly.yml + committed testdata fixture + unit test.

Placement (B16): CORRECT — prescan/plugin-loading is an explicitly core-allowed concern; the diff adds no alias file and no new charly/ kit import, and it deletes a forked decoder in favour of the canonical spec.ImportList + prescanAndCollect.

Security screen (T1–T4): no finding — no directive aimed at the validator, no secrets/egress/guardrail change.

Prior comments (all 5, github-actions[bot], targeting superseded heads eef4969 and f64d21a7) — stale-superseded: their blocks (rule-compliance section; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp prose; flat.yml lacking its own pin) are each resolved against the CURRENT diff/body and do not reproduce. No comment is carried forward.

Blocks

  1. A1 / R1 — the PR body's How tested describes a fixture shape the diff does not ship, and contradicts the shipped charly.yml comment.
    The body states: "A committed fixture (charly/testdata/flat-import-project/) reproduces the exact failing shape: a FLAT import: entry plus a discover:ed candy pinning the out-of-tree plugin-example-kind plugin, with the flat-imported file declaring an examplekind: entity."
    That is the fixture as it existed at head f64d21a7 (the very shape the previous review blocked), not the one in this diff. The shipped root is discover: [] (charly/testdata/flat-import-project/charly.yml:13-15), and the pin lives inside the flat-imported file (charly/testdata/flat-import-project/flat.yml:11-13). This distinction is the whole point of commit 273688a: with a discovered pin the bed would pass even with the flat-read branch deleted (the discover walk would register the word), so the body as written describes a bed that does not witness the flat-read half — directly contradicting the shipped comment it claims to document (charly.yml, banner: "the flat-imported sibling carries BOTH the pin for the out-of-tree plugin-example-kind plugin AND an examplekind: entity it provides — the only plugin ref in the project") and the bed's own description: ("the flat-imported sibling carries BOTH the only pin …").
    Fix: correct the body's How tested sentence so it states the fixture's only plugin pin lives inside the flat-imported flat.yml with discover: [], i.e. the bed's box validate: OK is reachable only when the flat branch reads that file.

Tool-limited note: I cannot re-run go test/beds; the pasted unit-test FAIL is internally consistent with the current test file (the t.Fatal for flatprobe is at charly/plugin_prescan_import_test.go:137, matching the pasted line number), and the pre-fix error naming flat.yml:doc0 matches the current fixture. The block above is about a body-vs-diff contradiction, not absent evidence.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 273688a60b2b (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24, 3 commits.
Change class: charly core Go code (plugin prescan) + R10 bed in charly.yml + committed testdata fixture + unit test.

Placement (B16): CORRECT — prescan/plugin-loading is an explicitly core-allowed concern; the diff adds no alias file and no new charly/ kit import, and it deletes a forked decoder in favour of the canonical spec.ImportList + prescanAndCollect.

Security screen (T1–T4): no finding — no directive aimed at the validator, no secrets/egress/guardrail change.

Prior comments (all 5, github-actions[bot], targeting superseded heads eef4969 and f64d21a7) — stale-superseded: their blocks (rule-compliance section; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp prose; flat.yml lacking its own pin) are each resolved against the CURRENT diff/body and do not reproduce. No comment is carried forward.

Blocks

  1. A1 / R1 — the PR body's How tested describes a fixture shape the diff does not ship, and contradicts the shipped charly.yml comment.
    The body states: "A committed fixture (charly/testdata/flat-import-project/) reproduces the exact failing shape: a FLAT import: entry plus a discover:ed candy pinning the out-of-tree plugin-example-kind plugin, with the flat-imported file declaring an examplekind: entity."
    That is the fixture as it existed at head f64d21a7 (the very shape the previous review blocked), not the one in this diff. The shipped root is discover: [] (charly/testdata/flat-import-project/charly.yml:13-15), and the pin lives inside the flat-imported file (charly/testdata/flat-import-project/flat.yml:11-13). This distinction is the whole point of commit 273688a: with a discovered pin the bed would pass even with the flat-read branch deleted (the discover walk would register the word), so the body as written describes a bed that does not witness the flat-read half — directly contradicting the shipped comment it claims to document (charly.yml, banner: "the flat-imported sibling carries BOTH the pin for the out-of-tree plugin-example-kind plugin AND an examplekind: entity it provides — the only plugin ref in the project") and the bed's own description: ("the flat-imported sibling carries BOTH the only pin …").
    Fix: correct the body's How tested sentence so it states the fixture's only plugin pin lives inside the flat-imported flat.yml with discover: [], i.e. the bed's box validate: OK is reachable only when the flat branch reads that file.

Tool-limited note: I cannot re-run go test/beds; the pasted unit-test FAIL is internally consistent with the current test file (the t.Fatal for flatprobe is at charly/plugin_prescan_import_test.go:137, matching the pasted line number), and the pre-fix error naming flat.yml:doc0 matches the current fixture. The block above is about a body-vs-diff contradiction, not absent evidence.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 273688a60b2b18857b148fda4d876339c27e3b6e (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24.

Security screen: PASS — no content-directed-at-validator instruction (body/charly.yml prose treated as data); no secrets, egress, new deps, or guardrail/spec/rulebook edits; T1/T4 not engaged. Diff scope matches the description exactly.
Checklist: All applicable rules PASS or NA. Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file and no new charly/ kit import added, and a forked decoder is deleted in favour of spec.ImportList + one prescanAndCollect helper. The flat branch now genuinely witnesses both halves: the fixture root is discover: [] and the project's only @github pin lives inside the flat-imported flat.yml, so deleting !strings.HasPrefix(ref, "@") removes the ref and probe-kind fails "no kind discriminator".

Comment intake (10 prior github-actions[bot] comments):

  • 5709679951/5709680062 @ eef4969 and 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 — stale-superseded: every block (rule-compliance coverage; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp-prose) is satisfied by the CURRENT diff/body.
  • 5713611649/5713611883 @ 273688a6 (PASS) — unverified-dismissed as authority: grants nothing; independently re-derived, and the body has since been edited, so their reviewed state is superseded.
  • 5713615997/5713616174 @ 273688a6 (BLOCK) — stale-superseded: they quote a How tested line ("a discover:ed candy pinning…") that does not appear in the CURRENT body; the current body correctly states discover: [] with the pin inside the flat-imported flat.yml.

Tool-limited note (rule 4): I cannot re-run go test/beds; the pasted output is internally coherent where checkable — the FAIL line plugin_prescan_import_test.go:137 matches the added test's second t.Fatal at the current file's line 137, the pre-fix error naming flat.yml:doc0 matches the shipped fixture, and the bed names are real charly.yml top-level keys with disposable: true.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 273688a60b2b18857b148fda4d876339c27e3b6e (branch: fix/loader-prescan-flat-import), base c81a28c7. 5 files, +211/−24.

Security screen: PASS — no content-directed-at-validator instruction (body/charly.yml prose treated as data); no secrets, egress, new deps, or guardrail/spec/rulebook edits; T1/T4 not engaged. Diff scope matches the description exactly.
Checklist: All applicable rules PASS or NA. Placement (B16): CORRECT — prescan/plugin-loading is core-allowed, no alias file and no new charly/ kit import added, and a forked decoder is deleted in favour of spec.ImportList + one prescanAndCollect helper. The flat branch now genuinely witnesses both halves: the fixture root is discover: [] and the project's only @github pin lives inside the flat-imported flat.yml, so deleting !strings.HasPrefix(ref, "@") removes the ref and probe-kind fails "no kind discriminator".

Comment intake (10 prior github-actions[bot] comments):

  • 5709679951/5709680062 @ eef4969 and 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 — stale-superseded: every block (rule-compliance coverage; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp-prose) is satisfied by the CURRENT diff/body.
  • 5713611649/5713611883 @ 273688a6 (PASS) — unverified-dismissed as authority: grants nothing; independently re-derived, and the body has since been edited, so their reviewed state is superseded.
  • 5713615997/5713616174 @ 273688a6 (BLOCK) — stale-superseded: they quote a How tested line ("a discover:ed candy pinning…") that does not appear in the CURRENT body; the current body correctly states discover: [] with the pin inside the flat-imported flat.yml.

Tool-limited note (rule 4): I cannot re-run go test/beds; the pasted output is internally coherent where checkable — the FAIL line plugin_prescan_import_test.go:137 matches the added test's second t.Fatal at the current file's line 137, the pre-fix error naming flat.yml:doc0 matches the shipped fixture, and the bed names are real charly.yml top-level keys with disposable: true.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 90bd6b5f0704105c7624530a60bcf51365a6feb5 (branch: fix/plugin-prescan-flat-import), base b702a7159d06. 5 files, +211/−24.

Change class: charly core Go (plugin prescan import leg) + charly.yml R10 bed + committed testdata fixture (2 files) + unit test.

Security screen (T1–T4): PASS — no content directed at the validator (body and charly.yml prose treated strictly as data; the run: charly migrate string is a pasted CLI error, not a directive); no secrets/egress/new deps; no alias file, no new charly/ kit import, no guardrail/spec/rulebook edit. Scope in the diff matches the description exactly (no undocumented behavior).

Checklist: All applicable rules PASS or NA — A1–A3 (body accounts for all 5 files, ends with the correct *Assisted-by: …* footer, tier fully tested and validated justified by the live bed check-live+update steps on the changed path); B5–B15 (forked []map[string]string decoder deleted in favour of spec.ImportList in the same change, both import shapes now on the one prescanAndCollect helper — R3/R5 satisfied; flat branch carries a unit assertion flatprobe reachable only via the flat read, plus an on-point bed; no forbidden framing; no parking phrase); B12 (disposable check-loader-flat-import-local, disposable: true/lifecycle: dev, fresh [update] step, ok: true); B16 placement: CORRECT — prescan/plugin loading is an explicitly core-allowed concern, no alias file added, no new core kit import, and capability code is not pulled inward.

Comment intake (12 prior bots). 5709679951/5709680062 @ eef49694 → stale-superseded (their five blocks — rule-compliance coverage, named disposable target, on-point bed, flat-branch coverage, duplicated idiom — all target a head superseded by f64d21a6/273688a6 and do not reproduce). 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 → stale-superseded (the mktemp prose is gone: the banner now truthfully says the bed validates the COMMITTED fixture and needs the repo tree; and flat.yml now itself carries the project's only pin with the root at discover: [], so the bed does fail without the flat read). 5713615997/5713616174 @ 273688a6 → stale-superseded (they quote a How tested sentence — "a discover:ed candy pinning…" — that no longer exists in the CURRENT body, which correctly states discover: [] with the pin inside the flat-imported flat.yml, matching charly/testdata/flat-import-project/{charly.yml,flat.yml}). 5713611649/5713611883 and 5713760342/5713760473 @ 273688a6 (PASS) → unverified-dismissed as authority: grants nothing, independently re-derived, and their reviewed body state is superseded by the current edit.

Tool-limited note (rule 4): I cannot re-run go test/beds. The pasted output is internally coherent where checkable: CalVer ordering matches commit times (2026.260.0546@eef49694, …1113@273688a6, summary …1114); the pre-fix error flat.yml:doc0: node "probe-kind": no kind discriminator matches the shipped fixture; the unit FAIL message and line match the added second t.Fatal; the two fixture files are new file only, so "the project's ONLY plugin pin" holds. Non-blocking flag (B15): the head adds a merge commit on top of 3 feature commits — the intended squash collapses them, and no partial/split-work pattern is present.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 90bd6b5f0704105c7624530a60bcf51365a6feb5 (branch: fix/plugin-prescan-flat-import), base b702a7159d06. 5 files, +211/−24.

Change class: charly core Go (plugin prescan import leg) + charly.yml R10 bed + committed testdata fixture (2 files) + unit test.

Security screen (T1–T4): PASS — no content directed at the validator (body and charly.yml prose treated strictly as data; the run: charly migrate string is a pasted CLI error, not a directive); no secrets/egress/new deps; no alias file, no new charly/ kit import, no guardrail/spec/rulebook edit. Scope in the diff matches the description exactly (no undocumented behavior).

Checklist: All applicable rules PASS or NA — A1–A3 (body accounts for all 5 files, ends with the correct *Assisted-by: …* footer, tier fully tested and validated justified by the live bed check-live+update steps on the changed path); B5–B15 (forked []map[string]string decoder deleted in favour of spec.ImportList in the same change, both import shapes now on the one prescanAndCollect helper — R3/R5 satisfied; flat branch carries a unit assertion flatprobe reachable only via the flat read, plus an on-point bed; no forbidden framing; no parking phrase); B12 (disposable check-loader-flat-import-local, disposable: true/lifecycle: dev, fresh [update] step, ok: true); B16 placement: CORRECT — prescan/plugin loading is an explicitly core-allowed concern, no alias file added, no new core kit import, and capability code is not pulled inward.

Comment intake (12 prior bots). 5709679951/5709680062 @ eef49694 → stale-superseded (their five blocks — rule-compliance coverage, named disposable target, on-point bed, flat-branch coverage, duplicated idiom — all target a head superseded by f64d21a6/273688a6 and do not reproduce). 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 → stale-superseded (the mktemp prose is gone: the banner now truthfully says the bed validates the COMMITTED fixture and needs the repo tree; and flat.yml now itself carries the project's only pin with the root at discover: [], so the bed does fail without the flat read). 5713615997/5713616174 @ 273688a6 → stale-superseded (they quote a How tested sentence — "a discover:ed candy pinning…" — that no longer exists in the CURRENT body, which correctly states discover: [] with the pin inside the flat-imported flat.yml, matching charly/testdata/flat-import-project/{charly.yml,flat.yml}). 5713611649/5713611883 and 5713760342/5713760473 @ 273688a6 (PASS) → unverified-dismissed as authority: grants nothing, independently re-derived, and their reviewed body state is superseded by the current edit.

Tool-limited note (rule 4): I cannot re-run go test/beds. The pasted output is internally coherent where checkable: CalVer ordering matches commit times (2026.260.0546@eef49694, …1113@273688a6, summary …1114); the pre-fix error flat.yml:doc0: node "probe-kind": no kind discriminator matches the shipped fixture; the unit FAIL message and line match the added second t.Fatal; the two fixture files are new file only, so "the project's ONLY plugin pin" holds. Non-blocking flag (B15): the head adds a merge commit on top of 3 feature commits — the intended squash collapses them, and no partial/split-work pattern is present.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 90bd6b5f0704105c7624530a60bcf51365a6feb5 (branch: fix/loader-prescan-flat-import), base b702a7159d06. 5 files, +211/−24 (4 commits including a main merge).

Change class: charly core Go (plugin prescan import leg) + committed charly/testdata/flat-import-project fixture + unit test + R10 bed in charly.yml.

Security screen: PASS — no directive aimed at the validator (body / charly.yml / fixture prose treated as data); no secrets, egress, new deps or guardrail/spec/rulebook edits; scope in the diff matches the description (deleted forked []map[string]string decoder, one prescanAndCollect helper, test, fixture, bed). Placement (B16): CORRECT — prescan-dispatch/plugin loading is core-allowed, no alias file and no new charly/ kit import, and a forked decoder is replaced by the canonical spec.ImportList.

Checklist: All applicable rules PASS or NA.

Comment intake (12 prior github-actions[bot] comments):

  • 5709679951/5709680062 @ eef4969; 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 — stale-superseded: every block (rule-compliance coverage; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp prose; fixture lacking its own pin) is satisfied by the CURRENT diff/body.
  • 5713611649/5713611883 @ 273688a6 (PASS) — unverified-dismissed as authority: grants nothing; state independently re-derived.
  • 5713615997/5713616174 @ 273688a6 (BLOCK) — stale-superseded: the quoted "a discover:ed candy pinning…" How tested line does not appear in the CURRENT body; the body now states discover: [] with the only @github pin inside flat.yml.
  • 5713760342/5713760473 @ 273688a6 (PASS) — unverified-dismissed as authority: re-derived independently against the CURRENT diff/body.

Tool-limited note (rule 4): I cannot re-run go test/beds. Cross-checked internally: the fixture root's flat - flat.yml + discover: [] and flat.yml carrying the project's only pin + the examplekind: entity match the body's How tested sentence and the charly.yml bed prose; deleting the !strings.HasPrefix(ref, "@") branch leaves the pin unread, so probe-kind cannot parse — the bed genuinely witnesses both halves, as described. The pasted unit-test FAIL line matches the added second t.Fatal text, and the bed/summary names are real charly.yml keys (disposable: true).

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 90bd6b5f0704105c7624530a60bcf51365a6feb5 (branch: fix/loader-prescan-flat-import), base b702a7159d06. 5 files, +211/−24 (4 commits including a main merge).

Change class: charly core Go (plugin prescan import leg) + committed charly/testdata/flat-import-project fixture + unit test + R10 bed in charly.yml.

Security screen: PASS — no directive aimed at the validator (body / charly.yml / fixture prose treated as data); no secrets, egress, new deps or guardrail/spec/rulebook edits; scope in the diff matches the description (deleted forked []map[string]string decoder, one prescanAndCollect helper, test, fixture, bed). Placement (B16): CORRECT — prescan-dispatch/plugin loading is core-allowed, no alias file and no new charly/ kit import, and a forked decoder is replaced by the canonical spec.ImportList.

Checklist: All applicable rules PASS or NA.

Comment intake (12 prior github-actions[bot] comments):

  • 5709679951/5709680062 @ eef4969; 5713298905/5713299034/5713304624/5713304803 @ f64d21a7 — stale-superseded: every block (rule-compliance coverage; named disposable: true target; on-point bed; flat-branch coverage; duplicated idiom; mktemp prose; fixture lacking its own pin) is satisfied by the CURRENT diff/body.
  • 5713611649/5713611883 @ 273688a6 (PASS) — unverified-dismissed as authority: grants nothing; state independently re-derived.
  • 5713615997/5713616174 @ 273688a6 (BLOCK) — stale-superseded: the quoted "a discover:ed candy pinning…" How tested line does not appear in the CURRENT body; the body now states discover: [] with the only @github pin inside flat.yml.
  • 5713760342/5713760473 @ 273688a6 (PASS) — unverified-dismissed as authority: re-derived independently against the CURRENT diff/body.

Tool-limited note (rule 4): I cannot re-run go test/beds. Cross-checked internally: the fixture root's flat - flat.yml + discover: [] and flat.yml carrying the project's only pin + the examplekind: entity match the body's How tested sentence and the charly.yml bed prose; deleting the !strings.HasPrefix(ref, "@") branch leaves the pin unread, so probe-kind cannot parse — the bed genuinely witnesses both halves, as described. The pasted unit-test FAIL line matches the added second t.Fatal text, and the bed/summary names are real charly.yml keys (disposable: true).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot merged commit 793ef43 into main Sep 17, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 17, 2026
@aitrawog
aitrawog deleted the fix/plugin-prescan-flat-import branch September 25, 2026 19:06
aitrawog added a commit that referenced this pull request Nov 15, 2026
The comment said the chain "aborts the marketplace corpus walk (#613)" in the present tense,
while #613 is CLOSED (marketplace#616). Both halves were true at different times, which is exactly
how a shipped comment goes stale: it now says ABORTED, names the closing PR, and states what is live
today — a generation completes with one counted skip, whose carriers are filed on #1156.

Gate: charly box validate OK (573 candies, 104 boxes, 0 warnings); charly check box agentteams
45 steps, 40 passed, 0 failed, 5 structural skips.

Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (analysed on a live system)
github-actions Bot pushed a commit that referenced this pull request Nov 15, 2026
…ted crabbox era (#1159)

* fix(agentteams): compose layer-agentteams v2026.319.1239 off the deleted crabbox era

The `agentteams` box composed `layer-agentteams:v2026.274.2144`. That tag's
`box/cachyos-base` still pins `distro-cachyos/candy/cachyos-base-check:v2026.274.2120`, a
distro tag whose tree carries `box/crabbox-e2e/charly.yml` pinning the DELETED
`pod-crabbox:v2026.274.0652` (its commit no longer exists; that repo's history now starts
at 2026.307). The chain aborts the marketplace corpus walk — opencharly/marketplace#613 —
and is filed as #1156.

`v2026.319.1239` is the tag that fixed it (opencharly/layer-agentteams#25, whose own
per-box ADE over the new `cachyos-base-check:v2026.319.0820` ref ran green, 6/6).

This is the ROOT of the last carrier: `plugin-herdr` and `pod-herdr` pin this repo as a
submodule (`charly` gitlink `eda33c0`), so their copies of this line follow when their
gitlink advances — not by editing them.

Gate: `charly box build agentteams` OK, then `charly check box agentteams` —
45 steps, 40 passed, 0 failed, 5 skipped (all five structural: four `[runtime]` steps not
active in box mode, one mutating step in verify-only mode, one agent step with no grader).
`charly box validate`: 573 candies, 104 boxes, 0 warnings, 0 errors.

Refs opencharly/marketplace#613, #1156.

Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (fully tested and validated)

* fix(agentteams): compose layer-agentteams v2026.319.1239; correct the herdr note

Round-1 fixes, both from the validator.

1. The shipped comment claimed plugin-herdr/pod-herdr "vendor a COPY of this file ... advanced
   there in their own PRs". They do not: they pin THIS repo as a submodule, so the line reaches
   them only when that gitlink advances. Corrected in the comment (R1: shipped documentation must
   match the mechanism) and in the body.

2. The body claimed this removes the ROOT dead-ref carrier. MEASURED, it does not: with the fix
   branch in a probe, the corpus walk resolves BOTH v2026.274.2144 (from other pins) and
   v2026.319.1239 (this ref). What this change proves is that ITS ref resolves to the fixed tag;
   the corpus warning reaches zero only when every remaining pin advances (#1156).

Gate re-run on the final tree: charly box validate OK (573 candies, 104 boxes, 0 warnings);
charly box build agentteams OK; charly check box agentteams 45 steps, 40 passed, 0 failed,
5 skipped (all structural).

Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (fully tested and validated)

* docs(agentteams): state the corpus status as it is today, not as it was

The comment said the chain "aborts the marketplace corpus walk (#613)" in the present tense,
while #613 is CLOSED (marketplace#616). Both halves were true at different times, which is exactly
how a shipped comment goes stale: it now says ABORTED, names the closing PR, and states what is live
today — a generation completes with one counted skip, whose carriers are filed on #1156.

Gate: charly box validate OK (573 candies, 104 boxes, 0 warnings); charly check box agentteams
45 steps, 40 passed, 0 failed, 5 structural skips.

Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (analysed on a live system)
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