Skip to content

fix(loaderkit): the candy-manifest fallback runs the one desugar step (#323, #315) - #354

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/one-desugar-validate-path
Oct 7, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/one-desugar-validate-path

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #323 and #315 (cluster C3 — the loader's parallel paths must not
bypass the one desugar/validate step).

#323 — the candy-manifest fallback ran no desugar step. spec.DocDirectives no longer contains
version (retired with the version-stamp cutover), so a project file carrying the legacy top-level
version: SCALAR makes ParseDoc fail on that scalar node and ParseCandyManifest takes its
FALLBACK branch. That branch is a different SHAPE SCAN, but it was also a different PARSE: it decoded
the candy body RAW, with no desugarEntityPlan. The authored <word>: <input> plugin-verb sugar then
matched no #Op field and the closed-schema CUE decode silently DROPPED it, so every authored plugin
verb in that candy's plan vanished. It now runs the same desugarEntityPlan the node-form path gets
from parseNode; the canonical candy: kind-keyed branch (reachable only when ParseDoc failed AND
no node-form candy node exists, so nothing had desugared it) runs the same idempotent step.
DecodeNodeValue consumes a pn.Body that parseNode already desugared, so no third bypass remains —
one parse-to-desugar path, not two.

#315 — the dead EffectiveVersion vestige. The box's EffectiveVersion lost its only writer when
sdk#313 removed deploykit.ComputeEffectiveVersions. The dead assignment is deleted, and
CompileLocalPkgStep's doc — which still claimed the step "carries ... the release CalVer (the box's
effective version)" — is corrected in the same commit.

Review-round fix 1 (R1). Running this repo's OWN committed gate (below) found that the #323 change
had pushed ParseCandyManifest to cyclomatic complexity 31, one over the repo's configured gocyclo
threshold of 30 — the CI was RED. Fixed in the tree, not by raising the threshold: the function is
split into three behaviour-identical helpers (candyFromParsedNodes, candyFromFlatScan,
candyFromKindKeyedForm). The new flat scan reuses the ONE existing kit.MappingChild rather than
adding a second copy of the mapping lookup (R3).

How tested

Change class and gate, from the matrix that owns it (/charly-check:check
references/beds-and-r10.md, "R10 gate by change class", the Contract / library module row, which
names this module explicitly):

Contract / library module — a Go module with NO charly.yml project, NO main/deployable target
and therefore NO disposable: true entity (the github.com/opencharly/spec +
github.com/opencharly/sdk contract modules; any standalone library repo) — the R10 gate is: Run
the repo's OWN committed module CI (.github/workflows/ci.yml) GREEN on the PR head — the module
suite IS the gate, because no bed CAN exist … The no disposable target premise is a negative
claim: prove it with executed output … A change whose behaviour is observable only at a CONSUMER's
live boundary names the consumer PR running that bed — the bed rides the consumer change
(producer→consumer order, B6), never the library PR.

So this class requires no charly check run bed in this repo (none can exist here). The gate is
this module's own CI, DISCOVERED at origin/main (not assumed): .github/workflows/ci.yml runs
test -z "$(gofmt -l .)", go vet ./..., golangci-lint (pinned v2.13.2), go test ./..., and a
GOOS=linux cross-compile matrix over amd64/arm64/arm/386 with CGO_ENABLED=0. All of it, executed
on this head:

$ test -z "$(gofmt -l .)"; echo "gofmt exit=$?"
gofmt exit=0
$ go vet ./...; echo "vet exit=$?"
vet exit=0
$ go run github.com/golangci/golangci-lint/v2/cmd/[email protected] run ./...
0 issues.
$ go test ./... > /tmp/sdk-fulltest2.log 2>&1; echo "exit=$?"; grep -c 'FAIL' /tmp/sdk-fulltest2.log
exit=0
0
$ for a in amd64 arm64 arm 386; do GOOS=linux GOARCH=$a CGO_ENABLED=0 go build ./... && echo "linux/$a ok"; done
linux/amd64 ok
linux/arm64 ok
linux/arm ok
linux/386 ok

The lint run is not ceremony: it is the gate that FAILED on the first head of this PR, with

$ go run github.com/golangci/golangci-lint/v2/cmd/[email protected] run ./...
loaderkit/parse_candy_manifest.go:54:1: cyclomatic complexity 31 of func `ParseCandyManifest` is high (> 30) (gocyclo)
1 issues:
* gocyclo: 1
exit status 1

and it is 0 issues on the head pushed here (the refactor above). Both changed pieces are EXECUTED
by the suite, not merely compiled, and each new test fails without its change:

$ go test -run 'TestParseCandyManifest_ProjectFileFallback' -v ./loaderkit/
=== RUN   TestParseCandyManifest_ProjectFileFallbackDesugarsPlan
--- PASS: TestParseCandyManifest_ProjectFileFallbackDesugarsPlan (0.00s)
$ go test -run 'TestCompileLocalPkgStep_CarriesNoDeadEffectiveVersion' ./deploykit/
ok  	github.com/opencharly/sdk/deploykit

Negative controls (the fix reverted in a scratch copy, then restored — the tree pushed is the
restored one), showing each test genuinely exercises the changed path:

$ go test -run 'TestParseCandyManifest_ProjectFileFallback' -v ./loaderkit/
--- FAIL: TestParseCandyManifest_ProjectFileFallbackDesugarsPlan (0.00s)
    parse_candy_manifest_fallback_test.go:92: plan[0].Plugin = "", want "examplerunverb" — the fallback branch decoded the plan WITHOUT desugarEntityPlan, so the authored plugin-verb sugar was dropped by the closed #Op decode (sdk#323)
    parse_candy_manifest_fallback_test.go:95: plan[0].PluginInput[marker] = <nil>, want "hello" — the sugar's input must survive as plugin_input
FAIL
FAIL	github.com/opencharly/sdk/loaderkit	0.004s
$ go test -run 'TestCompileLocalPkgStep_CarriesNoDeadEffectiveVersion' ./deploykit/
--- FAIL: TestCompileLocalPkgStep_CarriesNoDeadEffectiveVersion (0.00s)
    localpkg_test.go:1000: LocalPkgInstallStep.Version = "2026.268.1917", want empty (sdk#315): the box's EffectiveVersion lost its only writer in sdk#313 and has no reader (downloadLocalPkg uses the format's stable-latest download_template), so the dead assignment must not be reinstated
FAIL
FAIL	github.com/opencharly/sdk/deploykit	0.003s

The deploykit piece, and the consumer boundary that owns its bed. CompileLocalPkgStep is called
from BuildDeployPlan (deploykit/candy_steps.go:115), whose live boundary is a CONSUMER deploy that
actually installs a local_pkg. That bed is not in this repo — per the matrix row it rides the
consumer change — and the consumer bed for a localpkg install is charly's check-pkg-uninstall, which
opencharly/charly#752 records as RED for an independent, named reason (the inner guest's charly does
not load /usr/lib/charly/plugins), tracked and owned there. The live loader boundary is exercised in
sibling PR opencharly/charly#823 (the C3 consumer leg, which also carries the charly-side loader gate
and, once this PR merges and tags, the pin bump that adopts this module), and I have run its
change-class bed against this unreleased sdk via the local-replace recipe:

$ # charly worktree: temporary, uncommitted `replace github.com/opencharly/sdk => <this worktree>`
$ ./scripts/bootstrap-charly.sh > /tmp/charly-build-replace.log 2>&1; echo "build exit=$?"
build exit=0
$ ./bin/charly version
2026.280.2122
$ ./bin/charly box validate > /tmp/val.out 2> /tmp/val.err; echo "exit=$?"; tail -1 /tmp/val.out
exit=0
charly box validate: OK — checked 609 candies, 125 boxes, 45 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
$ git -C <charly worktree> status --short
   (empty — the temporary replace was reverted before this head)

The no disposable target premise, proven with executed output rather than asserted:

$ git ls-files | grep -c 'charly.yml'
4
$ git ls-files | grep 'charly.yml'
workflowkit/testdata/charly-step.charly.yml.golden
workflowkit/testdata/e2e.charly.yml.golden
workflowkit/testdata/nested.charly.yml.golden
workflowkit/testdata/redo.charly.yml.golden
$ git grep -l 'disposable: true' -- '*.yml'
   (no match — exit 1)

The four hits are .golden fixtures of workflowkit, not a project; no tracked YAML in this module
declares a disposable: true entity, so no bed can exist here. (cmd/charly-lib-gen/main.go is a
codegen CLI, not a deployable target.)

git diff --stat for this head:

$ git diff --stat origin/main...HEAD
 deploykit/install_build.go                      |   7 +-
 deploykit/localpkg_test.go                      |  38 +++++
 loaderkit/parse_candy_manifest.go               | 178 ++++++++++++++----------
 loaderkit/parse_candy_manifest_fallback_test.go |  51 +++++++
 loaderkit/scan_live_bed_test.go                 |  12 +-
 5 files changed, 202 insertions(+), 84 deletions(-)

Head e2395eb2ba7baf611923c27439edbae45a9d4ee9

Rulebook compliance

  • R0 — skills loaded before each step: /charly-internals:plugin and /charly-internals:go
    (sdk/loaderkit Go + the per-plugin CUE contract), /charly-internals:git-workflow (before any
    git/PR action, plus references/pre-validator-self-audit.md before the first push),
    /charly-internals:strict-policy (R1/R2/R3 + RDD), /charly-check:check (loaded before any bed
    decision, and its references/beds-and-r10.md is the matrix quoted above).

  • R1 — three findings were root-caused here, none parked: (a) the issue's premise re-derived on
    origin/main and reproduced as a failing test BEFORE the fix; (b) the CI lint gate red on my own
    first head (gocyclo 31 > 30) — fixed by the refactor, and the whole gate re-measured green; (c) the
    warning question reconciled by measurement instead of prose — the single WARNING line in the live
    output is on stderr and is the documented R9 dev/worktree-build notice, while
    charly box validate's own tally on stdout is exactly one line reporting 0 warnings, 0 errors:

    $ ./bin/charly box validate > /tmp/val.out 2> /tmp/val.err; echo "exit=$?"
    exit=0
    $ cat /tmp/val.err
    WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
    plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-kind_candy_plugin-example-kind-cd021299955007d9 (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
    plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-structkind_candy_plugin-example-structkind-afb618fcb3061ebf (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
    plugin plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/plugin-jetkvm-8855c4091d0ab0a7 (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
    $ wc -l < /tmp/val.out
    1
    $ tail -1 /tmp/val.out
    charly box validate: OK — checked 609 candies, 125 boxes, 45 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

    The dev-build notice is the R9 worktree-binary behaviour the rulebook requires (never install a
    shared binary), not a validate finding; the three plugin ...: served from lines on stderr are
    informational register lines, not warnings.

  • R2 — no deferral and no unnamed parking. The doc the deletion falsified is corrected in this
    commit. The one residue this change cannot fix in-tree — the now-orphaned
    spec.LocalPkgInstallStep.Version and its view round-trip, which live in a DIFFERENT repo — is
    filed as its own issue with the exact named scope: spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download spec#204 (field, view round-trip
    lines, and the doc comment that claims a versioned download). That is the named immediate-next batch
    this PR advances it to, not "a spec-side residue batch".

  • R2 / rule 11 (guidance is part of the fix) — the claim this change INVALIDATES is swept in the
    same cutover, claim-keyed rather than file-pattern-keyed: the phrase that the candy-manifest fallback
    "does not desugar" (and its sibling "the ONLY branch that desugars") is now false, so it is fixed at
    its one live surface, the fixture comment in loaderkit/scan_live_bed_test.go (liveBedParse), whose
    legacy-version: strip stays — but for its real reason, mirroring production's command:migrate
    reshape rather than leaning on which branch desugars. The org-wide sweep shows no other live surface
    carrying it (the one remaining hit is CHANGELOG/ history, the permitted survivor):

    $ for d in sdk charly spec marketplace; do printf '%s: ' "$d"; (cd $d && grep -rn 'ONLY branch that desugar\|only branch that desugar\|decoder that does not desugar' --include='*.go' --include='*.md' --include='*.cue' . | grep -v '^./CHANGELOG' | wc -l); done
    sdk: 0
    charly: 0
    spec: 0
    marketplace: 0

    No other surface promises a versioned LocalPkgInstallStep either — the field's only writer is
    deleted here and its only live references are the inert spec-side ones named in
    spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download spec#204, which is the guidance half of the same cutover.

  • R3 — one desugar step: every branch of ParseCandyManifest runs the SAME desugarEntityPlan,
    and neither the split nor the flat scan adds a second copy of anything (the flat scan reuses
    kit.MappingChild, the ONE mapping lookup). The three DecodeEntityViaCUE call sites were swept
    (run from the sdk worktree root): the third, loaderkit/node_tree.go:108, decodes a pn.Body that
    parseNode already desugared, so it is not a bypass.

    $ cd .worktrees/loader-paths/sdk
    $ grep -rn 'DecodeEntityViaCUE' --include='*.go' . | grep -v _test
    ./loaderkit/cue_validate.go:8:// only interoperate within the cue.Context that built them, so (unlike DecodeEntityViaCUE's
    ./loaderkit/decode_entity.go:13:// from charly core's process-wide cueSchemaCtx (charly/cue_schema.go) — DecodeEntityViaCUE never
    ./loaderkit/decode_entity.go:35:// DecodeEntityViaCUE normalizes a single entity node against its Go type, then CUE-ingests +
    ./loaderkit/decode_entity.go:39:func DecodeEntityViaCUE(node *yaml.Node, t reflect.Type, out any, label string) error {
    ./loaderkit/node_tree.go:108:	return DecodeEntityViaCUE(body, reflect.TypeOf(out).Elem(), out, "node "+pn.Name)
    ./loaderkit/parse_candy_manifest.go:145:		if derr := DecodeEntityViaCUE(candyBody, reflect.TypeOf(spec.CandyYAML{}), &c, path); derr != nil {
    ./loaderkit/parse_candy_manifest.go:201:	if err := DecodeEntityViaCUE(body, reflect.TypeOf(spec.CandyYAML{}), &ly, path); err != nil {

    The dead field claim is likewise backed by executed output, not asserted — the only writer was the
    deleted line, and the consumer sweep finds no reader (run from the umbrella root, against a
    freshly-fetched origin/main):

    $ git -C sdk fetch origin main && git -C sdk grep -n 'Version' origin/main -- 'deploykit/localpkg.go' 'deploykit/candy_steps.go' 'deploykit/install_build.go'
    deploykit/install_build.go:55:		Version:         layer.GetVersion(),
    deploykit/install_build.go:223:		Version:     img.EffectiveVersion,
    $ git -C charly grep -n 'LocalPkgInstallStep' origin/main -- '*.go' | grep -v _test
    charly/plugin_executor_reverse.go:154:// LocalPkgInstallStep (makepkg + pacman/dnf/apt), SystemPackagesStep (the format's
    charly/plugin_executor_reverse.go:214:	case *spec.LocalPkgInstallStep:
    $ git -C spec grep -n 'Version' origin/main -- 'spec/install_step_view.go'
    spec/install_step_view.go:125:		v.Version = s.Version
    spec/install_step_view.go:263:			Version:     v.Version,

    line 55 above is InstallPlan.Version (a different struct); the localpkg execution path reads no
    step Version (downloadLocalPkg, deploykit/localpkg.go:306, uses the format's stable-latest
    download_template), and the field only round-trips through spec/install_step_view.go:125,263 —
    which is exactly the inert residue spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download spec#204 now owns.

  • R4 — no sleep, retry, suppression or environment shim; the fallback keeps its documented role
    (the "charly.yml is everything at once" project-file shape) instead of being papered over.

  • R4a — N/A — this change adds no user-facing command; the doc that contradicted it was corrected
    in the same commit rather than routed around.

  • R5 — the dead assignment and the stale prose describing it are deleted in this commit; the one
    remaining live reference to the field is the spec-side round-trip, which is filed as
    spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download spec#204 with its exact lines.

  • R6 — git status --short is empty on both worktrees and the temporary proof replace was
    reverted before this head; no reset, no force-push, no hook bypass, no push to main.

  • R7 — both new tests fail without their change (negative controls pasted above), and the live
    charly box validate executed the changed parse path over 609 real candy manifests.

  • R7a — N/A — no boundary crosses a real external service; the parse is pure and in-process (the
    live run additionally registered three real out-of-process plugins).

  • R8 — no emitted artifact changes: the parsed/validated value for every non-colliding input is
    unchanged, proven by the module suite (TestDeployCompileParity-style compile fixtures included) and
    by the live box validate resolving the same 609/125/45/7/7 entity counts with 0 warnings, 0 errors.

  • R9 — the live runs used a worktree-local CalVer-stamped binary built by
    ./scripts/bootstrap-charly.sh (2026.280.2122), invoked through that worktree's bin/; nothing was
    installed as a shared binary.

  • R10 — the class is Contract / library module, whose matrix gate is this module's own committed
    CI green on the PR head; that gate is pasted above in full (gofmt, vet, golangci-lint 0 issues, go test ./... 0 failures, four cross-compile targets) together with the executed proof that no
    disposable: true entity — and therefore no bed — can exist in this module. The consumer boundary
    bed belongs to the consumer change: it rides sibling PR fix(plugin-loader): a plugin-vs-plugin CUE def-name collision is a load ERROR (#770) charly#823 (and the pin bump that
    follows this merge), whose bed I ran against this unreleased sdk via the local-replace recipe with
    pasted output.

  • A1/A3 (attribution) — substantiated, not asserted. The authoring runtime is the DeepSeek Harness
    DSH, cross-checked against the managed environment variables the harness exports in this session:

    $ env | grep -i '^DSH_' | sort
    DSH_HOME=/home/atrawog/.dsh
    DSH_PROFILE=web
    DSH_PROFILE_DIR=/home/atrawog/.dsh/profiles/web
    DSH_SESSION_ID=09394229-4031-4299-9576-ca9af176a3e4
    DSH_SHELL=1
    DSH_WEB_URL=http://127.0.0.1:3080

    The provider and the model are named by the session's own runtime record — the DSH session
    transcript for THIS session (DSH_SESSION_ID=09394229-4031-4299-9576-ca9af176a3e4), which carries the
    provider/model pair the runtime actually used:

    $ zstd -dc ~/.dsh/sessions/--home-atrawog-Sync-Atrapub-a-dsh-opencharly--/09394229-4031-4299-9576-ca9af176a3e4/session.v4.jsonl.zstd | grep -o '"model":"[^"]*"' | sort -u
    "model":"deepseek-v4.1-flash"
    $ zstd -dc ~/.dsh/sessions/--home-atrawog-Sync-Atrapub-a-dsh-opencharly--/09394229-4031-4299-9576-ca9af176a3e4/session.v4.jsonl.zstd | grep -oE '"(provider|modelId|profile)":\s*"[^"]*"' | sort -u
    "provider":"ollama-cloud"
    "provider":"spawn"

    So the harness, provider and model are all cross-checked against runtime evidence, and the trailer
    names them in that order: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash.

Change classification

Code — Go source plus tests in the sdk contract module (loaderkit/, deploykit/). Not a
docs-only change, so documentation reviewed would be invalid. The class is Contract / library
module
; its matrix gate is this module's own committed CI, pasted in full above and green on this
head, with both changed paths executed by tests that fail without them and the changed parse path also
run live on 609 real candy manifests through the assembled charly loader.

Agent: loader-paths
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

sdk#323. spec.DocDirectives no longer contains version (retired with the
version-stamp cutover), so a project file carrying the legacy top-level
version: SCALAR makes ParseDoc fail on that scalar node and ParseCandyManifest
takes its FALLBACK branch — which decoded the candy body RAW, with no
desugarEntityPlan. The authored <word>: <input> plugin-verb sugar then matched no
#Op field and the closed-schema CUE decode silently DROPPED it, so every authored
plugin verb in that candy's plan vanished. The fallback is a different SHAPE SCAN,
never a different PARSE: it now runs the same desugarEntityPlan the primary branch
gets from parseNode, and the canonical candy: kind-keyed branch (reachable only
when ParseDoc failed AND no node-form candy node exists, so nothing had desugared
it) runs the same idempotent step. DecodeNodeValue consumes a pn.Body parseNode
already desugared, so no third bypass remains.

sdk#315. The box's EffectiveVersion lost its only writer when sdk#313 removed
deploykit.ComputeEffectiveVersions, and nothing reads LocalPkgInstallStep.Version
either: downloadLocalPkg obtains the format's stable-latest download_template and
the field only round-trips through spec/install_step_view.go. The dead assignment
is deleted and CompileLocalPkgStep's doc, which still claimed the step "carries
... the release CalVer (the box's effective version)", is corrected with it.

Tests (both fail without their change, measured):
- loaderkit TestParseCandyManifest_ProjectFileFallbackDesugarsPlan — before the
  fix plan[0].Plugin was "" and PluginInput nil.
- deploykit TestCompileLocalPkgStep_CarriesNoDeadEffectiveVersion — before the
  fix the fixture box's version leaked onto the step.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 110862ccfac00863d6170eab8f423ccfdb4a14f6 (branch: feat/one-desugar-validate-path)

Change class: Code — Go source + tests in the sdk module (loaderkit/, deploykit/).

Security screen (T1–T4): no finding — no secrets/egress, no guardrail weakening, no scope mismatch, no supply-chain change, no security-machinery edit.

Comment thread: empty (0 comments) — nothing to disposition.

Blocks

  1. A2 / R10 — no change-class bed run; the deploykit piece has no gate evidence. The body runs no eval bed at all and explicitly declines to claim one ("I am flagging that R10 class choice to the Lead rather than claiming it"). A code change must run the change-class bed by name (A2: "ran EVERY required bed by NAME"). The only assembled bed the body names is check/eval-host-project, and it is not run. Also, the live charly box validate only exercises the loaderkit parse path — the changed deploykit/install_build.go:220 deletion has no live/gate output ("pasted output for EACH changed piece"). Either run the named bed (or state, with the matrix, that the class requires none) and paste output covering the deploykit change too.

  2. B14(d) / R5 — the "dead field / no reader" claim is unevidenced. The body asserts spec.LocalPkgInstallStep.Version and its view round-trip are "inert (no reader in sdk, charly or the plugins — measured)", but no command or output is pasted — unlike the DecodeEntityViaCUE sweep, which does paste a real grep. A dead-code/no-reader claim requires actually-executed, pasted output. Paste the grep (sdk + consumer origin/main) that proves the field has no reader, or the removal of its only writer in deploykit/install_build.go:220 is unproven.

  3. R2 / B14(b) — residue parked to an unnamed batch. The R2 section parks the now-writer-less spec.LocalPkgInstallStep.Version + view round-trip to "a spec-side residue batch" and "the Lead". That is not a named thematic batch/task (no batch id, no issue, no "immediate-next cutover") — it is the forbidden vague-follow-up parking phrase. Either fix it in-tree if spec resolves within this module, or name the exact batch/task this PR advances it to.

  4. A3 / A1 — the Assisted-by: trailer is not substantiated. The trailer reads *Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)*; no authoring-runtime evidence in the body cross-checks the harness/provider/model, and the model slot does not correspond to a provider model name. A3 requires the harness/provider/full-model to be cross-checked against runtime evidence — supply it or correct the trailer.

  5. R1 — the live-gate evidence contradicts itself. The R1 section says the gate "reports 0 warnings, 0 errors" and that "the one WARNING line in that output is the documented R9 dev/worktree-build notice" — but the pasted charly box validate output contains no WARNING line and no such notice. Per R1 a surviving warning needs an RCA and a real fix, and the pasted output must not contradict the body. Paste the full gate output and reconcile: either it is zero-warning, or the warning is RCA'd/fixed.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

Review-round fix on the BLOCK of #354: running the repo's OWN
committed CI (`.github/workflows/ci.yml`) surfaced

    loaderkit/parse_candy_manifest.go:54:1: cyclomatic complexity 31 of func
    `ParseCandyManifest` is high (> 30) (gocyclo)

The sdk#323 fix pushed ParseCandyManifest one branch over the repo's configured
gocyclo threshold of 30, so the module's own gate was RED. Fixed in the tree, not
by raising the threshold: the function is split into three behaviour-identical
helpers — candyFromParsedNodes (the node-form scan over a ParseDoc result),
candyFromFlatScan (the ParseDoc-FAILURE flat scan, which carries the sdk#323
desugar step and reuses the ONE existing kit.MappingChild rather than a second
copy), and candyFromKindKeyedForm (the canonical `candy:` form + the
unrecognized-shape error).

Re-measured on this head: `go test ./...` exit 0 with zero failing tests,
`golangci-lint run ./...` (v2.13.2, the CI pin) reports 0 issues, `gofmt -l .`
empty, `go vet ./...` clean, and the CI cross-compile matrix
(linux/{amd64,arm64,arm,386}, CGO_ENABLED=0) builds for all four.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 3a6bed3e8d3b78a1ee077daff90219a788a7a20e (branch: feat/one-desugar-validate-path)

Security screen: PASS
Checklist: All applicable rules PASS or NA.
Comment intake: Comment 6047226795 (@github-actions[bot], head 110862cc…) — stale-superseded: all five findings re-derived against the current head and resolved (class gate + executed CI now pasted; dead-field greps pasted; residue routed to the named opencharly/spec#204; DSH authoring-runtime evidence supplied; stdout/stderr warning split reconciled).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 7, 2026 21:42
…oes desugar

Rule 11 (guidance is part of the fix, claim-keyed not file-pattern-keyed): the
fix in this PR makes the candy-manifest FALLBACK branch desugar too, which
falsifies "the ONLY branch that desugars authored verb sugar" / "it would fall
back to a decoder that does not desugar" — a live claim carried by the
liveBedParse fixture comment in loaderkit/scan_live_bed_test.go.

The fixture's legacy-`version:` strip STAYS, because it is right for its real
reason (it mirrors production's command:migrate reshape of the pristine export
before the parse); only the reason text changes, so the fixture no longer leans
on which branch desugars.

Org-wide sweep of the same claim, excluding the permitted CHANGELOG history: 0
live hits in sdk, charly, spec or marketplace.

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

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: e2395eb2ba7baf611923c27439edbae45a9d4ee9 (branch: feat/one-desugar-validate-path)

Change class: Code — Go source + tests in the sdk contract module (loaderkit/, deploykit/). The Contract / library module R10 row is quoted, and the "no disposable: true entity / no bed can exist here" premise is backed by executed output (git ls-files | grep -c 'charly.yml' → 4 golden fixtures; git grep -l 'disposable: true' → no match), which is internally consistent with this repo. Tool-limited disposition: I cannot open references/beds-and-r10.md to re-read the row verbatim; I neither adopt nor reject the class on the author's word — the executed negative-claim proof is what carries it.

Placement: CORRECT — the change keeps the desugar call inside loaderkit at the existing parse seam (no capability moved into core, no new charly/ kit import, no alias-file growth, no *Legacy* relocation). The deploykit piece is a deletion of a write to a field in the same module.

Security screen (T1–T4): PASS — no secrets/egress, no new endpoints, no guardrail/branch-protection/validator-spec weakening, no dependency or pin change, no security-machinery edit; no instruction-like content in body, commits, or diff.

Blocks

  1. Rule 4 / A1 — the body's prose contradicts its own pasted gate output. The R1 section states: "the three plugin ...: served from lines on stderr are informational register lines, not warnings." The cat /tmp/val.err block pasted immediately above it contains exactly one such line (plus the single WARNING dev-build notice). Output that contradicts the body must be flagged, and a body that misdescribes its own live-gate stderr does not supply honest evidence for the R1 warning reconciliation the previous round demanded. Fix: paste the complete stderr (or the run in which three register lines actually appear, saying which run it was), or correct the count so the prose matches the evidence shown.

  2. A3 — the Assisted-by: model slot is asserted, not evidenced. The trailer reads *Assisted-by: DeepSeek Harness DeepSeek V4.1 Flash (fully tested and validated)*, and the body's only authoring-runtime evidence is env | grep -i '^DSH_', which evidences the harness (DSH_*) but nothing at all about the provider/model (deepseek-v4.1-flash / DeepSeek V4.1 Flash). This is the same slot the previous round flagged; the response supplied harness-only evidence. A3 requires the harness, provider, and full model name to be cross-checked against runtime evidence — a guessed or config-read model name is a defect. Fix: paste runtime evidence that names the provider/model (session/profile config that carries it), or correct the trailer to what the evidence supports.

Comment intake

  • 6047226795 (BLOCK @ 110862cc) — findings 1 (class/bed + deploykit gate evidence), 2 (dead-field greps), 3 (unnamed residue batch), 5 (warning contradiction): re-derived against the current body — the class row is now quoted with the executed no-disposable-target proof and a live run pasted; the origin/main greps for the field's writer/readers are pasted; the residue is routed to the named opencharly/spec#204 with exact lines; the stdout/stderr split is pasted → stale-superseded. Finding 4 (unsubstantiated trailer) is only partly cured (harness evidenced, model not) → verified-blocking, folded into Block 2; the same section's residual prose/evidence mismatch is Block 1.
  • 6047406978 (PASS @ 3a6bed3) — approve-comment carries no authority in either direction, and it reviews a head that is superseded by the merge commit e2395eb. Re-derived independently; its "all resolved" claim does not hold for the two items above → stale-superseded.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: e2395eb2ba7baf611923c27439edbae45a9d4ee9 (branch: feat/one-desugar-validate-path)

Security screen: PASS (T1–T4 — no secrets/egress, no guardrail/validator-spec/branch-protection weakening, no supply-chain or dependency change, no scope mismatch, no instruction-like content).
Checklist: All applicable rules PASS or NA. Placement: CORRECT (desugar kept at the existing loaderkit parse seam; no capability into core, no new charly/ kit import, no alias growth, no *Legacy* relocation; the deploykit piece is a same-module dead-write deletion). Class: Code — Go source + tests in the sdk contract module; Contract / library module gate (own module CI) is the named gate and its executed output is pasted, with the "no disposable: true entity" negative premise backed by executed output.

Comment intake:

  • 6047226795 (BLOCK @ 110862cc) — stale-superseded: head is not the current head; every finding is cured in the current body (class row quoted + executed no-disposable-target proof, dead-field origin/main greps pasted, residue routed to the named opencharly/spec#204, DSH authoring-runtime evidence supplied, stdout/stderr warning split pasted).
  • 6047406978 (PASS @ 3a6bed3) — stale-superseded: reviews a superseded head; an approve-comment grants nothing in either direction.
  • 6047862385 (BLOCK @ e2395eb) — stale-superseded; both blocks re-derived against the CURRENT body and refuted: (1) it claims the pasted cat /tmp/val.err contains "exactly one" plugin …: served from line, but the current body's block contains exactly three (plugin-example-kind, plugin-example-structkind, plugin-jetkvm), matching the prose "the three … lines" — the count it flags is wrong; (2) it claims the model slot is evidenced only by env | grep -i '^DSH_', but the current body also pastes the DSH session transcript naming "model":"deepseek-v4.1-flash" / "provider":"ollama-cloud", matching the current trailer DeepSeek Harness ollama-cloud/deepseek-v4.1-flash. The comment quotes a stale body revision (older trailer + harness-only evidence), so its claims do not reproduce.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit c2b7a1f into main Oct 7, 2026
6 of 7 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 7, 2026
github-actions Bot pushed a commit to opencharly/spec that referenced this pull request Oct 7, 2026
…s spec half) (#208)

Closes #204. The field has had no writer since opencharly/sdk#354
deleted deploykit/install_build.go's `Version: img.EffectiveVersion` (whose
producer, deploykit.ComputeEffectiveVersions, died in sdk#313), and it has no
reader anywhere either: downloadLocalPkg obtains the format's stable-latest
`download_template`, never a versioned URL, so the in-proc field and its view
round-trip are pure residue.

Deleted in this cutover:
- spec/install_step_vocab.go — the `LocalPkgInstallStep.Version` field AND the doc
  that claimed a behaviour the code never had ("Version is the release CalVer
  (e.g. "2026.225.1200") to download") — the R5 half and the guidance half of
  the same removal.
- spec/install_step_view.go — both round-trip assignments (StepToView /
  StepFromView), so the wire no longer pretends to carry a version.
- spec/install_step_vocab_test.go, spec/install_step_view_test.go — the fixtures
  that set it (the step-IR round-trip test stays green).

Not touched, and named rather than silently dropped: the wire view's own
`version?: string @go(Version)` in spec/schema/deploy.cue (#InstallStepView) is
now written by nothing and read by nothing, but spec/schema/* is another
owner's surface in this wave, so it is reported to the Lead rather than edited
here.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
aitrawog added a commit that referenced this pull request Oct 8, 2026
…ained

The validator's R1/R5 finding is correct and the divergence was introduced by this
hunk: one event — "the field lost its only writer" — was attributed three ways
(sdk#315 in the new comment, sdk#313 in the new error string directly beneath it, and
sdk#354 in the PR body), and the guard-adding PR was attributed to #354.

Measured, rather than picked from the three:
  - #315 does NOT resolve as a pull request; it is the ISSUE, now CLOSED:
    "deploykit: install_build.go still assigns the now-unpopulated EffectiveVersion
    (dead after sdk#313)".
  - the assertion this change replaces — the retained evidence, itself tagged sdk#315 —
    said the box's EffectiveVersion "lost its only writer in sdk#313".
  - opencharly/spec#208 is the spec-side PR of that retirement (the field and its view
    round-trip), which is what this change adapts to.
  - #354 is a loaderkit fix ("the candy-manifest fallback runs the one
    desugar step (#323, #315)"), not the field's retirement, so naming it as the writer's
    deleter or the guard's author was false.

The comment and the error string now both say the same thing: the writer was already
lost in sdk#313; the retirement is tracked by ISSUE sdk#315 and landed on the spec side
as spec#208. No PR number is invented for the guard: the commit that added it could not
be measured from this checkout (`git log -S` on its text finds nothing here), so the
text names the issue instead of guessing a number.

Refs #315, opencharly/spec#208

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Oct 8, 2026
…egs) (#358)

* chore(deps): adopt spec v0.2026280.2244 (the sdk#315 and sdk#253 consumer legs)

Bumps `require github.com/opencharly/spec` v0.2026276.0 -> v0.2026280.2244 via
`go get` + `go mod tidy` (the toolchain, never a hand-pin) and adapts the two
consumer surfaces the adopted range changes:

1. spec#208 removed `spec.LocalPkgInstallStep.Version` (with its view
   round-trip) after #354 deleted the field's only writer. The
   dead-vestige guard added in that PR asserted the field was EMPTY, which no
   longer typechecks; it now asserts STRUCTURALLY that the type has no `Version`
   field at all — a reinstated assignment is a compile error, and the reflection
   check keeps the vestige from creeping back as a field without a writer.

2. spec#202 made a ref's identity its PROJECT identity, not the enclosing
   repository (the fix for the false import back-edge sdk#253 measured as three
   namespace failures). `loaderkit.RepoIdentity` is a plain alias of
   `spec.RepoIdentity`, so the stale expectation in `TestRepoIdentity` is updated
   to the project identity and the reason is recorded at the assertion: stripping
   `@github.com/o/r/candy/x:v1.2.3` to `github.com/o/r` is the PRE-#202
   behaviour.

This closes the residual the sdk#253 dossier named — "sdk's own go.mod still pins
spec v0.2026276.0 (a pin bump, not the defect)" — in the same range.

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

* docs(deploykit): reconcile one retirement's provenance to what is retained

The validator's R1/R5 finding is correct and the divergence was introduced by this
hunk: one event — "the field lost its only writer" — was attributed three ways
(sdk#315 in the new comment, sdk#313 in the new error string directly beneath it, and
sdk#354 in the PR body), and the guard-adding PR was attributed to #354.

Measured, rather than picked from the three:
  - #315 does NOT resolve as a pull request; it is the ISSUE, now CLOSED:
    "deploykit: install_build.go still assigns the now-unpopulated EffectiveVersion
    (dead after sdk#313)".
  - the assertion this change replaces — the retained evidence, itself tagged sdk#315 —
    said the box's EffectiveVersion "lost its only writer in sdk#313".
  - opencharly/spec#208 is the spec-side PR of that retirement (the field and its view
    round-trip), which is what this change adapts to.
  - #354 is a loaderkit fix ("the candy-manifest fallback runs the one
    desugar step (#323, #315)"), not the field's retirement, so naming it as the writer's
    deleter or the guard's author was false.

The comment and the error string now both say the same thing: the writer was already
lost in sdk#313; the retirement is tracked by ISSUE sdk#315 and landed on the spec side
as spec#208. No PR number is invented for the guard: the commit that added it could not
be measured from this checkout (`git log -S` on its text finds nothing here), so the
text names the issue instead of guessing a number.

Refs #315, opencharly/spec#208

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
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.

ParseCandyManifest's fallback branch skips desugarEntityPlan — a top-level version: scalar silently strips every authored plugin verb

1 participant