Skip to content

docs: six live comments still point sdk/schema / sdk/schemaconcat at paths the 2026.210 move retired #1113

Open

Description

@aitrawog

What

Six live comments in charly/ still name the contract packages by their pre-2026.210 module paths: sdk/schema/*.cue (four sites) and sdk/schemaconcat (one), plus one more sdk/schema/… path. The schema and the concatenation contract have lived in github.com/opencharly/spec since CHANGELOG/2026.210.0644.md moved sdk/{spec,proto,schema,schemaconcat} → spec/{spec,proto,schema,schemaconcat}; the Go code was repointed then, the comments were not.

Evidence

$ grep -rn 'sdk/schemaconcat\|sdk/schema\b' --include='*.go' --include='*.md' charly/ .agents/ | grep -v CHANGELOG
charly/check_kit_adapter.go:173:// concatenates here via the public sdk/schemaconcat over the conventional "schema"
charly/provider_checkenv.go:20:// CUE-sourced (K1-unblock W3 Unit B, sdk/schema/checkresult.cue's #CheckEnv) — the SAME
charly/reserved_registry.go:7:// sdk/schema/*.cue); this file is the SINGLE place that proves every
charly/reserved_registry.go:18:// from sdk/schema/*.cue. Every loader consumer reads these; no hand-maintained
charly/reserved_registry.go:40:// from sdk/schema/*.cue. NEVER hand-edit a parallel copy; change the schema and
charly/vm_plugin_client.go:24:// spec.VmDisplayEndpoint / spec.VmResolveResult) are now CUE-sourced (sdk/schema/vmclient.cue) —

grep -rn 'sdk/schemaconcat' charly/go.mod is empty, and github.com/opencharly/spec/schemaconcat is the package that exists — so every one of these names a path that resolves to nothing.

Why it matters

A reader following one of these pointers lands on a package that no longer exists, in the file that documents the concat contract's own caller (the kit-verb adapter) and the schema's generated-word lists (reserved_registry.go). The code is correct; only the signposts are wrong.

RCA — the missed control

The sdk → spec move was a REPO move whose Go imports were mechanical (compile-checked), while its prose references were not: nothing in that cutover's control set read comments, and R5's claim-keyed grep is keyed on the retired IDENTIFIER (schemaconcat), which still matches here with the wrong module prefix — so a grep keyed on the bare package name passes over a stale prefix.

Root fix

One sweep, retargeting the six comments to spec/…. The candidate control is a repo-wide grep keyed on the FULL import path shape (sdk/<pkg>) rather than the package name alone, in the same family as scripts/check-pin-verb-scope.py.

Found while landing the concat → package cutover's consumer leg (opencharly/charly, spec schema composed by module import); it is unrelated to that change and separable from it.

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

Activity

  1. aitrawog commented on Nov 9, 2026

    @aitrawog
    ContributorAuthor

    Additional evidence, found while checking this issue's own list against the code — the check_kit_adapter.go:173 site is stale in a SECOND way, not just the module prefix.

    The comment says "The candy passes its RAW schema embed.FS + InputDefs; charly concatenates here via the public sdk/schemaconcat over the conventional schema subdir". The function below it does no such thing: registerCompiledCheckVerb reads caps.GetSchemaCue() off meta.Describe(...) — the kit candy's own BuildCapabilities concatenates its schema SERVE-SIDE (in the plugin/SDK), and charly only receives the resulting schema_cue text. So the comment also names a concat step that moved out of charly.

    $ sed -n '180,190p' charly/check_kit_adapter.go
    	caps, err := meta.Describe(context.Background(), &pb.Empty{})
    	if err != nil {
    		panic("registerCompiledCheckVerb " + kv.Reserved() + ": describe: " + err.Error())
    	}
    	cueSource := caps.GetSchemaCue()
    

    The fix for this site is therefore two edits: the module prefix, and the claim itself (the candy's NewMeta/BuildCapabilities is where the concatenation happens).

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

  2. aitrawog commented on Nov 9, 2026

    @aitrawog
    ContributorAuthor

    Third site, and it is the same claim as the check_kit_adapter.go one — in this repo's own authored skill prose, which is why it is worth recording separately from the stale path.

    .agents/skills/plugin/references/authoring-recipes.md (the kit-verb recipe, COMPILED-IN bullet) says registerCompiledCheckVerb "… converts kit.Result→CheckResult), concatenates the candy's schema (via the public spec/schemaconcat), and registers through the SAME RegisterBuiltinPluginUnit gate". The function reads caps.GetSchemaCue() off meta.Describe(...); the concatenation happens SERVE-SIDE, in the kit candy's own NewMeta/BuildCapabilities — which the SAME file says correctly a few dozen lines above ("BuildCapabilities concatenates + compiles the …"). So this repo states both the true and the false version of one mechanism.

    No stale module path here — the package named is the right one after the 2026.210 move — so this one is prose-only: the verb belongs to the candy's NewMeta, not to charly's registration.

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

  3. added
    category:experience
    type:chore
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:experiencetype:chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions