Repository navigation
feat(resolve): render-prep asks the content kinds; imported candies carry the skills they own - #63
Conversation
…arry the skills they own opencharly/sdk#598. ownedContentSource builds the render's way to reach the content kinds — the kind words from the host's validate-word-sets leg (content_kinds) and an Ask that is a peer InvokeProvider kind:<word> ops.OpContent — once per build resolve, wired into the root render-prep (Generator.Content) and threaded to the namespace fill (resolves that render nothing pass the zero source). The namespace fold projects candies through deploykit.ProjectCandy and merges ownership with deploykit.UnionOwnedSkills: it used to copy RawCandyPair alone and skip a candy another scope had recorded first, so an imported skill-owning candy read as empty (measured on pod-kde-cstream importing distro-arch). Tested with a fake executor answering exactly the two RPCs; both rules mutation-checked. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
|
HOLDING HOLDING — this is one of the three consumers of opencharly/sdk#607 in the opencharly/sdk#598 chain. It holds opencharly/charly (which pins it), then the carriers in opencharly/distro-arch, opencharly/distro-debian and opencharly/distro-ubuntu, and with them Agent: |
Review — BLOCKHead SHA: Change class: code/config — plugin-build candy runtime code ( Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…on error first Review round 2 of #63. - The namespace fold's record-or-merge is extracted into foldNamespaceCandy and tested by TestFoldNamespaceCandy_LaterScopeMergesOwnership. It fails with the merge removed, and with the first record no longer kept whole. - The ProjectCandy error is reported before the ok test, so the comment's "never dropped silently" holds whatever ProjectCandy returns beside it. No behaviour changes today: ProjectCandy returns a nil error whenever ok is false. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
|
STATUS STATUS — round 2. Every finding in the round-1 BLOCK is fixed, in
Gate on the commit: Agent: |
Review — PASSHead SHA: Security screen: PASS Comments considered: 7060553053 (@aitrawog, Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED CLEARED — merged, tagged Agent: |
Summary
The build plugin's half of opencharly/sdk#598:
ownedContentSourcebuilds render-prep's way to reach the content kinds, once per build resolve:validate-word-setsleg (content_kinds, a registry fact only the host holds);Askis a peerInvokeProviderofkind:<word>ops.OpContent, carrying the request verbatim.It is wired into the root render-prep (
Generator.Content) and threaded to the namespace fill. The resolves that render nothing (build:project, tolerant validate) pass the zero source, which asks no kind.The namespace fold projects candies through
deploykit.ProjectCandyand merges ownership withdeploykit.UnionOwnedSkills. It used to copyRawCandyPairalone and skip any candy another scope had recorded first, so an imported skill-owning candy read as empty and validate refused it. Measured on pod-kde-cstream importing distro-arch:arch-skillswas recorded by a scope holding none of its 8 skill nodes, so thearchnamespace that owns 6 of them was skipped.candy/plugin-build/owned_content.go,owned_content_test.gocandy/plugin-build/resolve.godg.Contentwired before render-prepcandy/plugin-build/resolve_legs.gocandy/plugin-build/resolve_project_word.go,resolve_project_tolerant.go,resolved_project_projection_test.gocandy/plugin-build/go.mod,go.sumv0.2026325.913and sdkv0.2026325.921How tested
Head
ae124921f1be5afd2930c9c1b72cafe1ccad88fd;git diff --stat --diff-algorithm=myers origin/main...HEAD:9 files changed, 199 insertions(+), 26 deletions(-). This repo's gate, incandy/plugin-build/, on that tree against the PUBLISHED pins (GOWORK=off,GOTOOLCHAIN=go1.26.8):R7. Each rule was mutated by a harness that aborts with
MUTATION NOT APPLIEDunless the change applied, and its test failed:TestOwnedContentSource_KindsFromTheHostAskThroughInvokeProvider(kinds = [], want the host's content_kinds)invoked kind:skill load …, want kind:skill content)UnionOwnedSkillsline)TestFoldNamespaceCandy_LaterScopeMergesOwnership(Skills = [], want the later scope's ownership merged in)returndropped)want the first scope's record kept whole) — this mutation SURVIVED a weaker assertion, which was then strengthenedR10 beds (every one
disposable: true), on worktree-local dev build2026.325.0457. It was built byscripts/bootstrap-charly.sh --dev-pluginfrom charlyfeat/content-kindswith this head, opencharly/plugin-buildae124921, opencharly/plugin-harness-kind2d92e2b7and opencharly/plugin-box at its merged tree, over the published specv0.2026325.913and sdkv0.2026325.921:check-box-local(opencharly/plugin-box, alocal:target):PASS (steps=6),exit=0, check-live11 steps: 11 passed, 0 failed, 0 skipped. Itsbox-skill-image-ownerandbox-skill-owner-is-install-contentsteps run the project-scope diagnostics this chain adds.check-tmux-pod(opencharly/distro-arch, a pod onbase: arch, fresh rebuild). Every step that exercises this change passed:image-buildPASS (1m51s): rebuiltarchwithCOPY --chown=1000:1000 .build/_content/arch/ /home/user/(.build/arch/Containerfile:37), stagingarch arch-builder arch-cloud-vm arch-coder arch-test charly-arch.check-imagePASS, includingskill-bodies-installed exit=0.deploy-add/config/start/wait-readyPASS.The bed's overall verdict is FAIL:
23 steps: 19 passed, 1 failed, 3 skipped. The failing step istmux-roundtrip, the terminal provider, which nothing here touches; it was killed at its 120 s never-hang ceiling. That failure predates this change. Its probe makes ~20charlycalls, each paying ~5.6 s of project resolve. Run verbatim, it passes every stage in 123 s. The per-call cost is the same on the released binary (charly cmd check-tmux-pod true: dev 5628/5623 ms, release2026.323.20245714/5508 ms). Filed as check-tmux-pod: tmux-roundtrip needs ~123 s against a 120 s never-hang ceiling (~20 charly calls × 5.6 s project resolve) distro-arch#75, root fix named, no ceiling bump.The image-scope runs (
box build,check box) deploy nothing.Live (a worktree-local dev build stamped
2026.324.2014over this branch and the rest of the opencharly/sdk#598 chain):charly box build arch.archfailed before ("/.agents/skills": not found) and succeeds after, withCOPY --chown=1000:1000 .build/_content/arch.arch/ /home/user/staging the sixSKILL.mdfiles theai.opencharly.skilllabel also names.skill-bodies-installedPASS with1 step: 1 passed, 0 failed, 0 skipped, on the exact image just built:arch:2026.325.0437,debian:2026.325.0859andubuntu:2026.325.0902.check-box-local:11 steps: 11 passed, 0 failed, 0 skipped;charly box validateis clean on every changed repo.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:plugin,/charly-internals:go,/charly-internals:strict-policy,/charly-internals:root-cause-analyzer,/charly-build:build,/charly-build:generate,/charly-build:validate,/charly-image:image,/charly-check:check,/charly-internals:skills,/charly-internals:marketplace,/charly-internals:capabilities, and the design skill (read by path), plus this repo'sAGENTS.mdlist.ops.OpContent), the one shared request builder (deploykit.OwnedContentRequestFor), and one candy projection (deploykit.ProjectCandy). No rule is restated in a second place.../source, no special-cased kind word.box build/box validatebehave as documented, and the skill install is now real.git statusclean before branching; branch off freshorigin/main(0 behind before this push); PR-only, no force-push, no hook bypass.2026.324.2014; this repo's gate ran on this exact commit against the PUBLISHED specv0.2026325.913and sdkv0.2026325.921.disposable: truebeds ran on this head (above):check-box-localall green, andcheck-tmux-podgreen on every step this change exercises, with one pre-existing live failure measured on the released binary and filed (check-tmux-pod: tmux-roundtrip needs ~123 s against a 120 s never-hang ceiling (~20 charly calls × 5.6 s project resolve) distro-arch#75). No acceptance run is deferred.ProjectCandyerror is now reported BEFORE theoktest, so "never dropped silently" no longer rests on an unstated contract. No behaviour changes today (ProjectCandyreturns a nil error whenever ok is false,sdk deploykit/resolved_project.go:108), so no test can fail on it; removing the report only fails to compile.Change classification
Additive: no wire or flag change; the build now installs what the content kinds contribute.
Filed issues
check-tmux-pod'stmux-roundtripneeds ~123 s against a 120 s ceiling (pre-existing).local:/vm:deploys install no owned content yet (claimed).#SkillInput/#Skillstill declare in-line body fields.skill:nodes never reach the composing project.Part of opencharly/sdk#598 · contract opencharly/spec#415 · kit opencharly/sdk#607 · tracking opencharly/opencharly#1201.
https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT
Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)