Skip to content

feat(deploykit): CollectSkills + the skill label + sdk/candywalk - #125

Merged
atrawog merged 4 commits into
mainfrom
feat/skills-candy-migration
Aug 6, 2026
Merged

atrawog merged 4 commits into
mainfrom
feat/skills-candy-migration

Conversation

@atrawog

@atrawog atrawog commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The sdk leg of the plugins→candies migration.

  • deploykit/skills_collect.go — CollectSkills projects the composed candies' authored skill entities into the ai.opencharly.skill OCI label (an image is self-describing — readable via charly box labels, no external fetch). Wired in render_prep.go; the CapabilityLabelMap entry makes the label live (superseding the dead doc-pointer URL).
  • sdk/candywalk — the shared entity-discovery walk (superproject + box submodules) both generator plugins use (R3 — no second copy).
  • loaderkit/parse_candy_manifest.go — the discovered-candy parse accepts STACKED manifests (a candy node plus sibling skill:/hook:/marketplace: entities).
  • kit/scaffold.go — the charly box new candy scaffold teaches the new skill:/hook:/marketplace: surface.
  • Tests — TestParseCandyManifest_StackedSkillNode (+ marketplace-only rejection), the candywalk value-node decode trap, CollectSkills union-of-composed-only.

How R10-tested

$ go test ./...          # 0 failures across the module
--- PASS: TestParseCandyManifest_StackedSkillNode
--- PASS: TestParseCandyManifest_MarketplaceOnlyRejected
--- PASS: TestCollectSkills_UnionOfComposedOnly
$ golangci-lint run ./sdk/...   # 0 issues
$ gofmt -l .             # clean

The runtime-consumed label path is proven end-to-end by the superproject's check-marketplace R10 bed (the composed image's ai.opencharly.skill label asserted, 13 steps, zero warnings).

Attribution

analysed on a live system — the changed paths ran live (the parse + label tests, the full go test gate, lint, the R10 bed).

Rule compliance

  • R0 skills honored. R3 no duplication (candywalk is the shared kit). R5 hard cutover (the vestigial skill pointer removed; the stacked-parse fix is swept). SDD (wire types CUE-sourced in spec#19; no hand-written wire types).

Note: the sdk's go.mod pins the published spec; the new spec types (spec.Skill, spec.LabelSkillEntry, Config.Skills) land in the companion opencharly/spec#19. Producer-first ordering — this PR's pin is bumped once spec#19 merges + tags.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

…candywalk

CollectSkills projects the composed candies' authored skill entities into the
ai.opencharly.skill OCI label (an image is self-describing — no external fetch);
the CapabilityLabelMap entry + WriteLabels emission + render_prep wiring make the
label live (superseding the dead doc-pointer URL). The discovered-candy parse
(ParseCandyManifest) accepts STACKED manifests — a candy node plus sibling
skill:/hook:/marketplace: entities. New sdk/candywalk kit is the shared
entity-discovery walk plugin-docs + plugin-marketplace both use (R3). The charly
box new candy scaffold teaches the new skill:/hook:/marketplace: surface.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
@atrawog

atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly-or-sdk Go (sdk module; one leg of a cross-repo cutover: spec#19 → sdk#125 → charly#230 → plugins#142 → docs#21)

Independent validation of opencharly/sdk#125 at head a6f73583e56dce31f55dd744ab7c6906a1b397bd (branch feat/skills-candy-migration). I re-derived everything from the PR, the repo, and the loaded skills — no author claim trusted.

Checklist

# Rule Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration / scope-mismatch / weakened-gate / supply-chain finding; no manipulation attempt. Diff matches the described surface.
1 Description complete (template) FAIL — body is one terse paragraph. None of the mandatory template sections: Summary of changes, Change class, How R10-tested, Attribution tier, Harness rulebook compliance. No *Assisted-by:* footer.
2 Change-class gate + evidence FAIL — sdk Go runtime change; zero R10 evidence (no bed, no pasted output, no fresh-rebuild confirmation).
3 Attribution tier justified FAIL — commit trailer claims analysed on a live system; the PR body carries no retained live-run output to support it.
4 R0 skills honored PASS — /go, /plugin, /capabilities, /git-workflow, /skills consulted; the label/kit claims spot-checked against them.
5 R1 RCA / zero warnings N/A in evidence — no evidence supplied to audit.
6 R2 no out-of-scope split PASS — no parking phrasing in the PR.
7 R3 no duplication PASS — candywalk is consumed by 2 plugins (verified: candy/plugin-marketplace/readkinds.go + candy/plugin-docs/sources.go import github.com/opencharly/sdk/candywalk); the shared-discovery claim is substantiated.
8 R4 no workaround PASS — no sleep/retry/magic-number/ad-hoc podman; the documented //nolint:nilerr tolerance in candywalk is deliberate, not a workaround.
9 R5 hard cutover + grep PASS for the sdk tree — old meta.Skill doc-pointer URL + "Skill" map key removed; no stale references remain (only an explanatory comment in write_labels.go:198). See item 17 for the kindWord leftover (dead code, the reverse direction).
10 R6/R8/R9 N/A — no Containerfile/label-build/deploy binary in this sdk diff.
11 R10 disposable + coverage FAIL — no disposable-bed proof; and the loaderkit stacked-manifest parse change ships with zero test coverage (ParseCandyManifest has no test; grep of loaderkit tests for skill:/marketplace:/hook:/stacked → empty).
12 RDD / ADE / SDD PASS (contingent on spec#19) — no .cue touched; consumed types (LabelSkillEntry, BoxMetadata.Skills, Config.Skills, Skill) are CUE-generated in spec (schema/skill.cue + boxmetadata.cue → cue_types_gen.go, verified in the spec feat commit). No hand-written wire type added.
13 Concurrency + anti-cheat N/A — no shared-state path in the diff.
14 Hard cutover — one atomic commit PASS — exactly 1 commit.
15 ARCHITECTURE GATE placement: CORRECT — candywalk is a kind-blind reusable mechanism (stdlib + yaml.v3 only) consumed by ≥2 plugins → correct sdk-kit layer; CollectSkills belongs in deploykit (the label-emission kit). No charly/*.go staged (this is the sdk repo), so the per-item charly/*.go trace is N/A; no alias file, no new kit import into core.
16 Disposable-only autonomy N/A — no destroy/rebuild in evidence.
17 Clean architecture + Go gates FAIL — gofmt-dirty: gofmt -l flags candywalk/candywalk.go (struct comment alignment). New golangci-lint findings (isolated cache): deploykit/skills_collect.go:74:23 S1016 (staticcheck — struct literal where a type conversion is expected), and loaderkit/parse_candy_manifest.go:152:6 func kindWord is unused (the PR removed its only call site; dead code must be deleted, not left).
18 CHANGELOG present FAIL — sdk stages CHANGELOG/<CalVer>.md per runtime PR (recent #122/#123/#120 all touched CHANGELOG/); this PR stages none.

BLOCKING FINDINGS

  1. The sdk module does not build against its own go.mod pin (cross-repo dependency defect). GOWORK=off go build ./... exits 1 with undefined symbols in the pinned github.com/opencharly/spec v0.2026218.138 (tag 42689bc): spec.LabelSkillEntry, spec.LabelSkillReference, spec.Skill, spec.Config.Skills, spec.BakedLabelSet.Skills. These types exist only on the unmerged spec#19 feat commit 0f3ab0f (feat/skills-candy-migration). The PR does not bump go.mod — the established sdk pattern when consuming new spec types is to re-point the pin (e.g. 862f7e6, 3abd64c). The superproject go.work masks this by resolving spec to the local unmerged checkout; the published module is broken. sdk#125 cannot land until spec#19 lands + tags a version carrying the types AND this PR re-pins go.mod to it.

  2. PR body not the filled template — no Summary / Change class / How-R10-tested / Attribution tier / rule-compliance sections; no *Assisted-by:* footer (item A1).

  3. No R10 evidence for an sdk Go runtime-class change — no disposable bed, no pasted output, no fresh-rebuild proof; the analysed on a live system tier is unsubstantiated (items 2, 3, 11).

  4. gofmt-dirty candywalk/candywalk.go + 2 new golangci-lint findings (S1016 in skills_collect.go:74; dead kindWord in parse_candy_manifest.go:152) (item 17).

  5. No CHANGELOG entry (item 18).

  6. loaderkit stacked-manifest parse fix ships with no test — nothing fails without the change (item 11 coverage gate).

What passes (independently verified)

  • go test -count=1 ./... in the workspace context: all green — including TestCollectEntities_NestedDecodeRoundTrip (the candywalk value-node decode trap test, present + passing), TestCapabilityLabelCompleteness (passing against the new spec), and TestCollectSkills_UnionOfComposedOnly. Note: this green depends on the unmerged local spec checkout; it is not the module's own contract.
  • go vet clean on the changed packages (workspace).
  • R3 two-consumer claim verified; placement correct.

Comments considered: none (the PR carried no comments).

Cross-PR interactions considered:

  • opencharly/spec#19 (open) — PROVIDES the types sdk#125 consumes; unmerged; sdk go.mod not re-pinned → verified-blocking.
  • opencharly/charly#230 (open) — companion superproject PR. Its GitHub diff currently shows only 2 files (.claude/hooks/pre-push-gate.sh, CLAUDE.md) while its body describes the full 295-skill migration; the described content is committed on the local feat/liberation-repin branch, which pins sdk@a6f7358 and spec@0f3ab0f (both unmerged heads). The candywalk consumers are committed there. → verified-non-blocking for this PR's own correctness; coordination note: charly#230's validator should confirm the pushed branch actually carries the migration its body describes.
  • opencharly/plugins#142 + opencharly/docs#21 (open) — downstream regeneration PRs; no file overlap. → none-blocking.

Decision: CHANGES-REQUESTED. The author must fix, on this same branch, then re-push (the status resets and I re-run):

  1. Re-point go.mod to a spec version carrying the skill types (after spec#19 lands + tags), so GOWORK=off go build ./... and go test ./... pass on the module's own contract.
  2. Rewrite the body to the filled template with the R10 evidence + justified attribution tier + the *Assisted-by:* footer.
  3. Stage a CHANGELOG/<placeholder>.md entry.
  4. gofmt -w candywalk/candywalk.go; fix the S1016; delete the now-dead kindWord.
  5. Add a ParseCandyManifest test that pins the stacked-manifest (candy + sibling skill:/hook:/marketplace:) behavior and would fail without the change.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

atrawog added 2 commits August 6, 2026 21:32
S1016 (type conversion in CollectSkills), dead kindWord deleted, gofmt the
candywalk kit, and TestParseCandyManifest_StackedSkillNode +
_MarketplaceOnlyRejected covering the stacked-manifest parse. A CHANGELOG entry.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
spec#19 merged as ab3a62b and tagged v0.2026218.1950, carrying the new spec.Skill/
LabelSkillEntry/Config.Skills types; the sdk now builds against its own pin
(GOWORK=off go build ./... green).

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
@atrawog

atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly-or-sdk Go (sdk module; one leg of the cross-repo cutover spec#19 → sdk#125 → charly#230 → plugins#143 → docs#21)

Independent fresh re-validation of opencharly/sdk#125 at head d44d243254ba0b099e8f402840c17581a2092f40 (branch feat/skills-candy-migration). The prior CHANGES-REQUESTED verdict (at a6f7358) listed five blocking findings; I re-derived each from scratch at the current head and verified every one is resolved. No author claim trusted — every check re-run here.

Checklist (every rule)

# Rule Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration / scope-mismatch / weakened-gate / supply-chain finding; no instruction attempt. Diff (13 files) matches the described surface exactly. go.mod bump targets a real published tag.
1 Description complete (template) PASS — body is the filled template: Summary (every file accounted for), How R10-tested (pasted gate output), Attribution tier, Rule-compliance section, and ends with the *Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)* footer.
2 Change-class gate + evidence PASS — sdk Go runtime leg. R10 evidence: the check-marketplace disposable bed (superproject charly.yml: pod: … disposable: true), summary ok: true, 13/13 steps, total_seconds: 339, zero warnings. image-build.log shows LABEL ai.opencharly.skill='[{"family":"tools","name":"ripgrep",…}]' emitted; check-live.log + check-live-rebuild.log PASS the marketplace-skill-label assertion. The label check is load-bearing: without this change the old doc-pointer stat never matched, so no ai.opencharly.skill label was emitted and the check fails.
3 Attribution tier justified PASS — analysed on a live system is the correct ceiling: the changed paths (CollectSkills → label emission; stacked-manifest parse) ran live on a real disposable bed with retained output; the complete fresh-rebuild R10 on the final go.mod pin was not re-run (the pin re-points to the content-identical spec tag), so fully tested and validated would be inflated. Claimed tier is honest.
4 R0 skills honored PASS — /go, /plugin, /capabilities, /git-workflow, /skills consulted; the label-map entry ("Skills": spec.LabelSkill), the writeJSONLabel routing, and the kit placement spot-checked against them.
5 R1 RCA / zero warnings PASS — warning/error scan across every bed log: empty. Tests, lint, vet all clean. No flake/transient framing anywhere.
6 R2 no out-of-scope split PASS — no parking phrasing.
7 R3 no duplication PASS — sdk/candywalk is the one shared discovery abstraction, consumed by exactly 2 plugins (verified: candy/plugin-marketplace/readkinds.go + candy/plugin-docs/sources.go import github.com/opencharly/sdk/candywalk).
8 R4 no workaround PASS — no sleep/retry/magic-number/ad-hoc podman; the //nolint:nilerr tolerance in candywalk is a deliberate skip-on-non-catalog-shapes policy, not a workaround.
9 R5 hard cutover + grep self-test PASS — whole-tree grep: kindWord (deleted fn) has no stale references (only the distinct pre-existing kindWordSet var remains); the old charly-images/skills doc-pointer URL is gone; no meta.Skill singular doc-pointer reads survive. No transitional/dual-mode path in final code.
10 R6/R8/R9 PASS (as applicable) — R8 label assertion executed in the bed (charly box labels marketplace-app contains ai.opencharly.skill + ripgrep). No Containerfile/binary in this sdk diff; R6: tree kept clean throughout.
11 R10 disposable + coverage PASS — bed is disposable: true (pod, lifecycle dev), includes fresh charly update + check-live-rebuild, zero warnings. Coverage fails without the change: TestParseCandyManifest_StackedSkillNode (old len(inner.Content)==2 + top-level-candy:-only logic rejects the stacked shape), TestParseCandyManifest_MarketplaceOnlyRejected, TestCollectSkills_UnionOfComposedOnly (compile-gated), TestCollectEntities_NestedDecodeRoundTrip.
12 RDD / ADE / SDD PASS — no .cue touched, no *_gen.go touched. Consumed types (spec.Skill, spec.LabelSkillEntry, Config.Skills, BoxMetadata.Skills) are CUE-generated in spec#19, which is MERGED and tagged v0.2026218.1950; I verified the tag tree is byte-identical to the spec#19 feat head. No hand-written wire type added (the projectSkill projection maps two CUE-generated types).
13 Concurrency + anti-cheat N/A — no shared-state path in this diff. No dead-code-in-touched-module (the one dead symbol, kindWord, was deleted).
14 Hard cutover — atomic PASS — 3 branch commits are review-round fix commits; the squash-merge lands exactly one commit on main.
15 ARCHITECTURE GATE placement: CORRECT. candywalk is a kind-blind reusable mechanism (stdlib + yaml.v3 only) with 2 consumers → correct sdk-kit layer; CollectSkills in deploykit (the label-emission kit) is its right home. No charly/*.go staged; no alias file; no kit import into core. Per-item charly/*.go trace: N/A (sdk repo).
16 Disposable-only autonomy PASS — the bed target is explicitly disposable: true.
17 Clean architecture + go gates PASS — gofmt -l . empty; golangci-lint run ./... = 0 issues (isolated GOLANGCI_LINT_CACHE); go vet ./... clean; go test -count=1 ./... all 9 packages ok. The S1016 finding is fixed with a semantically-identical conversion; kindWord deleted.
18 CHANGELOG present PASS — CHANGELOG/2026.218.1923.md staged; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.218.1923 — CollectSkills + the ai.opencharly.skill label + sdk/candywalk byte-matches the filename; placeholder CalVer not present on main's CHANGELOG and no v0.2026218.1923 tag exists.

The decisive check — module builds against its own go.mod pin

GOWORK=off go build ./... in the sdk module (resolving github.com/opencharly/spec v0.2026218.1950 from the published tag) exits 0. The prior blocking defect is gone. The only GOWORK=off go test gap is deploykit/render_service_seam_roundtrip_test.go (a pre-existing, blessed workspace-only test importing candy/plugin-egress — identical on main, not in this diff, not a regression). All touched packages pass their own-contract tests under GOWORK=off.

Comments considered

  • atrawog — prior validator CHANGES-REQUESTED (at a6f7358), 5 blocking findings — disposition: verified-non-blocking at the current head. Re-verified each: (1) go.mod re-pinned to the merged+tagged v0.2026218.1950 → GOWORK=off go build ./... green; (2) body rewritten to the filled template with evidence + footer; (3) R10 evidence now present (check-marketplace bed, 13 steps, zero warnings); (4) gofmt/lint clean + kindWord deleted; (5) stacked-manifest tests added and load-bearing.

Cross-PR interactions considered

  • opencharly/spec#19 — MERGED, tagged v0.2026218.1950 (tag = merge commit ab3a62b, tree identical to the feat head). This PR re-pins to it. → verified-non-blocking (resolved).
  • opencharly/charly#230 (open, feat/skills-candy-migration) — downstream consumer; its body cites this PR and the check-marketplace bed. It must land after sdk#125 (it pins the sdk head). → verified-non-blocking; coordination note: charly#230's validator should confirm the pushed branch carries the migration and the pin points at the merged sdk commit.
  • opencharly/plugins#143 + opencharly/docs#21 (open) — downstream regeneration PRs, no file overlap with sdk. → verified-non-blocking.

Decision

PASS. All 5 prior blocking findings are resolved and independently re-verified. The module builds against its own published spec pin, the full gate is green (build/test/vet/lint/gofmt), the R10 bed exercised the changed label path live on a disposable: true target at zero warnings, and the change ships coverage that fails without it. Placement is correct. Finalizing merge-time CalVer and merging.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

Rename the CHANGELOG placeholder to the merge-time CalVer (H1 rewritten
to match) ahead of the squash merge.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
@atrawog
atrawog merged commit cf6d5b9 into main Aug 6, 2026
@atrawog
atrawog deleted the feat/skills-candy-migration branch August 6, 2026 20:11
@atrawog

atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note: a bundle→fleet terminology cutover is landing in parallel (opencharly/charly #feat/fleet, superproject). It renames BundleConfig/BundleNode→FleetConfig/FleetNode and 'charly bundle'→'charly fleet' across deploykit, including comment-only edits in deploykit/capabilities.go, render_prep.go, and write_labels.go — files this PR also touches. The rename is a hard cutover (R5) and will land via its own fresh pr-validator; if this PR merges first, the rename branch will rebase onto it, and vice versa. No functional overlap beyond those three files' comments — no coordination action needed beyond merge-order awareness.

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