Repository navigation
refactor(docs): remove hardcoded catalog counts + autogenerate the census - #234
Conversation
…nsus
Every hand-maintained count of candies/skills/plugins/words/tools in the
prose and docs site is removed; the catalog census is now COMPUTED by the
docs generator into reference/providers.md (a unit test re-derives the
numbers from the same plugins slice and fails on drift).
- candy/plugin-docs/gen_plugins.go: generateProviderIndex emits a census
line ("N words across M plugin candies, K compiled into the binary") +
per-class counts, derived from the tree at generation time.
- README + ~25 candy configs + docs vocabulary: the How-many tables become
Class | Examples; the census sentences point at the generated provider
index; per-image counts ("32 candies", "11 tools", ...) are rephrased
without numbers.
- Pre-existing drift surfaced by the drift gate (blocking): the committed
CLAUDE.md/AGENTS.md dispatcher and pre-commit-gate.sh did not match
'charly marketplace generate' output. The hook entity is fixed to restore
the workspace_member_roots go.work-membership logic (the drifted
candy-path heuristic missed the standalone tools/* modules), and the three
generated files are regenerated.
- Submodule gitlinks re-pointed to the count-removal PR heads (box/fedora,
plugins, docs).
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
The first sweep's R5 pattern (digit immediately before the noun) missed wrapper forms: "32 direct candies", "~30 identical candies", "27 application boxes", "the 11 testing standards", "10 font families", "10 read-only inspection tools", "~80 transitive packages", and the deploy-shape/compiler-emitted kind counts. All removed from the candy configs + schema comments; the plugins skills and docs pages are regenerated. Submodule gitlinks re-pointed to the updated PR heads. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
The dangling "counted elsewhere on this page" sentence referenced counts removed in this cutover; it now points at the live census (the provider index above). Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
… missed The claim-class-keyed sweep found counts with uppercase adjectives the first patterns missed: "11 MCP tools", "5 AI CLIs", "15 ReverseOp kinds", "4 GPU-library probes", and the install-plan "all 12 compiler-emitted kinds". All removed from the candy configs; the plugins skills and docs pages are regenerated. Submodule gitlinks re-pointed to the updated PR heads. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
…mmit Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
…ure passage The provider index's per-class headers read '1 word' for singular classes (was '1 words'); the census unit test updated to match. The README's fixture passage makes the table-vs-index distinction explicit and fixes the subject-verb agreement. Docs gitlink re-pointed to the regenerated pages. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
The docs gitlink moved to the merged count-removal commit (2714d2d6); the DOCS_REF clone-cache key and the pinned-commit check's stdout matcher are updated to match, so the check-docs bed builds the right commit. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
…d row The README said "There is one entity keyword, candy:" while the kind row lists the entity keywords (candy, distro, group, builder, agent). The statement now reads "A candy is declared with one entity keyword, candy:", scoping it to the candy entity. Docs gitlink re-pointed to the follow-up. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
The beds-and-r10 skill description carried "7 currently-tested images" and "32 check steps" in the coverage snapshot — counts in the claim class that survived the sweep. Removed from the source; the plugins skills and docs pages are regenerated. Submodule gitlinks re-pointed to the updated PR heads. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
…al commits plugins → 0bce6e2 (v2026.219.2151), docs → b5a4820 (v2026.219.2140). Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
The docs gitlink moved to the merged follow-up commit (b5a4820); the DOCS_REF clone-cache key and the pinned-commit check's stdout matcher are updated to match. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: mixed — Go generator code ( Head SHA validated: Security & anti-tampering screen (T1–T4) — PASSNo exfiltration, scope-mismatch, weakened-gate, or supply-chain finding. The hook entity change restores the correct Checklist
Drift gates (re-run by the validator)
Comments consideredNone — the PR carries no comments. Cross-PR interactions consideredNone open — PR 234 is the only open PR in opencharly/charly; no open PRs in plugins, docs, distro-fedora, or sdk. Decision — FAIL, not mergedBlocking findings:
The author fixes and re-pushes; the status resets and the validator re-runs. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
…ypes The claim-keyed sweep found 4 code comments still carrying the counts the cutover removes elsewhere (plugin-appium "~80 transitive packages", plugin-installstep "12 compiler-emitted kinds", plugin-migrate "11 live verbs", plugin-substrate "5 substrate kinds"). Removed. The command.cue comment edit is accompanied by the regenerated cue_types_gen.go (cue:gen is now a no-op). Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Head SHA: Change class: mixed — Go generator code ( Security & anti-tampering screen (T1–T4) — PASSNo exfiltration, no scope mismatch (the diff does what the description claims), no weakened guardrails (the Per-item checklist
Blocking findings1. SDD drift — Regeneration is NOT a no-op. This violates SDD item a ("a 2. R5 claim-keyed sweep incomplete — Go source comments in the claim class survived.
Per R5's claim-keyed sweep (and R1's comment-divergence rule), the same claim must be swept across every surface — including Go source comments — in the same change. The PR swept the prose/docs surfaces but missed the Go comments. What the author must fix
Verified-passing items (for the fix round)
Comments considered: none — the PR carries no comments. Cross-PR interactions considered: none found — PR #234 is the only open PR in opencharly/charly; plugins/docs/distro-fedora have no open PRs. Decision: FAIL — not merged. Blocking: (1) SDD drift — Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
pr-validator — Phase 1b documentation scrutiny (follow-up)A cold reader (a general-purpose sub-agent forbidden every other source) read the PR-head Relevant to this PR's own changes (non-blocking, but fix in the same round):
Pre-existing README issues the cold reader surfaced (NOT introduced by this PR — route to the docs batch, not this cutover):
The 1b mechanical checks I ran myself are clean: no reader-state claims, no contradiction between the "one entity keyword" statement and the kind row (now scoped to the candy entity), and the provider-index references are coherent. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
gen_plugins.go's "one of the 86 plugin candies" was stale (the census computes 88) and gen_cli.go's "36 top-level words" was a hardcoded count. Both rephrased without numbers. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — APPROVED ✅Change class: mixed — Go generator code ( Head SHA validated: Security & anti-tampering screen (T1–T4) — PASSNo exfiltration, scope-mismatch, weakened-gate, or supply-chain finding. The hook entity change restores the correct Checklist
Drift gates (re-run by the validator at the head)
Comments considered
Cross-PR interactions consideredNone open — PR 234 is the only open PR in opencharly/charly; no open PRs in plugins, docs, sdk, or distro-fedora. Decision — APPROVEDAll 19 checklist items pass. The census is computed (not hardcoded), the drift gates are clean at zero warnings, the SDD gate is a no-op, the R5 claim-keyed sweep is complete, the gitlinks point at the merged+tagged producer commits, and the DOCS_REF pin matches the docs gitlink. Proceeding to finalize the merge-time CalVer, squash-merge, and tag. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — merge completeGated-action outcomes (verbatim):
Merge + tag:
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
pr-validator — independent re-validation (post-merge finding)Head SHA validated: Status: This PR was squash-merged by a concurrent validator session ( What I independently verified (all PASS)
My independent blocking finding (would have been FAIL)Phase 1b — the fixture-passage sentence in RecommendationThe merge is done and verified (squash Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
…-top-level-key fix, sdk #234) The sdk 702 config-stack merge (loaderkit/config_stack.go) silently collapsed duplicate top-level keys within a single config layer, making the parse-level 'duplicate top-level entity name' contract (pinned by TestCrossKindNameReuse_LoaderAcceptsAllKinds) unreachable. sdk #234 rejects duplicates per layer before the merge; spec follows to v0.2026250.709 (sdk 758's transitive require; go mod tidy confirms the minimal consistent graph). Full suite green.
… fleet/→deploy/ (#554) * feat(cutover-c2): retire the fleet vocabulary — FleetNode→DeployNode, fleet/→deploy/ CC-2 charly cutover: the charly module's fleet vocabulary retires in lockstep with the spec/sdk/plugin wave that already removed the group: kind and renamed the member tree. - charly/fleet_add_cmd.go → charly/deploy_add_cmd.go - charly/fleet_compile_parity_test.go → charly/deploy_compile_parity_test.go - charly/fleet_del_diagnostics_test.go → charly/deploy_del_diagnostics_test.go - charly/fleetnode_disposable_loader_test.go → charly/deploynode_disposable_loader_test.go - charly/node_fleet_test.go → charly/node_deploy_test.go - charly/testdata/fleet_compile_parity_{golden,tags}.json → charly/testdata/deploy_compile_parity_{golden,tags}.json - tools/golden-compile regenerates the renamed goldens - FleetNode → DeployNode, Fleet map → Deploy map, fleet add → deploy add, fleetDiscForEntity → deployDiscForEntity, LoadFleetConfig → LoadDeployConfig throughout Go sources, charly.yml, KERNEL_MANIFEST.md, and the root charly.yml corpus - pins UNCHANGED: spec v0.2026250.523, sdk v0.2026250.527 (the MCP packaging PR bumps to 632/650 after this lands) Verified: go build ./..., go vet ./..., go test ./... all exit 0 * docs(cc2): retire the fleet vocabulary across the repo-root rulebooks and README Finishes the CC-2 charly cutover's claim-keyed sweep: every remaining 'charly fleet add/del' reference in the repo-root docs (.gitignore, .reasonix/README.md, AGENTS.md, CLAUDE.md, README.md, PROGRAM/factory-north-star.md) moves to the new 'charly deploy add/del' surface. The candy/plugin-fleet package-name references are dispositioned for the plugin rename PR. * fix(cc2): gofmt the swept files + ship the retired-command-word intercept (was missed in the staging; pins stay spec 523 / sdk 527) * feat(cc2): complete the retired-command intercept + re-pin sdk to v0.2026250.702 - wire the retired-command-word guard into main() BEFORE kong.Parse (the guard file itself landed in the preceding fix commit; this is its call site) - KERNEL_MANIFEST.md: document retired_command_word.go (clause B — CLI-root bootstrap wiring, same class as main.go) - unified_test.go: hermeticize TestLoadUnified_AbsentFileReturnsNotPresent against the user config-stack layer (sdk v0.2026250.702+ LoadUnified merges the system → user → in-dir stack, so a sibling test's deploy-state write into the shared TestMain XDG_CONFIG_HOME surfaced as an existing user layer; R1 2026-09-07) - pins: sdk v0.2026250.527 → v0.2026250.702 (the #229+#231 tag), spec v0.2026250.523 → v0.2026250.656 per sdk 702's transitive require * test(cc2): isolate two more LoadUnified consumers from the sdk 702 config-stack user layer sdk v0.2026250.702+ merges the system → user → in-dir config stack in LoadUnified; a sibling test's deploy-state write into the shared TestMain XDG_CONFIG_HOME previously surfaced as an existing user layer and changed these two consumers: - plugin_bootstrap_test.go: the F9 marker comment was dropped by the yaml.Node merge, so the marker-gated transform never fired and the stale version was rejected by the schema gate - layers_test.go: the merged user-layer candy map shadowed the fixture's local svc candy Both now set their own XDG_CONFIG_HOME (R1 2026-09-07, the CC-2 sdk 702 pin). * chore(cc2): re-pin sdk v0.2026250.702 → v0.2026250.758 (the duplicate-top-level-key fix, sdk #234) The sdk 702 config-stack merge (loaderkit/config_stack.go) silently collapsed duplicate top-level keys within a single config layer, making the parse-level 'duplicate top-level entity name' contract (pinned by TestCrossKindNameReuse_LoaderAcceptsAllKinds) unreachable. sdk #234 rejects duplicates per layer before the merge; spec follows to v0.2026250.709 (sdk 758's transitive require; go mod tidy confirms the minimal consistent graph). Full suite green. * test(cc2): B12 end-to-end exit-80 test + B14 sweep wording (pr-validator round 2) - retired_command_word_test.go: TestRetiredCommandWord_EndToEnd builds a real charly binary (buildCharlyBinary) and asserts exits 80 with the pointed retired-word message and Usage: charly <command> [flags] OpenCharly — the open infrastructure compiler for you and your agents Flags: -h, --help Show context-sensitive help. --host=STRING Remote host (alias or user@host[:port]) to run this command on via SSH ($CHARLY_HOST) --host-identity-file=STRING SSH identity file for --host ($CHARLY_HOST_IDENTITY_FILE) --host-option=HOST-OPTION,... OpenSSH option for --host (repeatable, KEY=VALUE) ($CHARLY_HOST_OPTION) -C, --dir=STRING Project directory containing charly.yml (default: cwd) ($CHARLY_PROJECT_DIR) --repo=OWNER/REPO[@ref] Read charly.yml from a remote git repo (e.g. opencharly/charly). Use 'default' for opencharly/charly ($CHARLY_PROJECT_REPO). Commands: agent [<args> ...] [flags] agent (out-of-process command plugin) agentteams [<args> ...] [flags] agentteams (out-of-process command plugin) alias [<args> ...] [flags] alias (out-of-process command plugin) cache [<args> ...] [flags] cache (out-of-process command plugin) candy [<args> ...] [flags] candy (out-of-process command plugin) check box [<args> ...] Pure-box check (disposable container, build-scope checks) check plan [<args> ...] Resolve a box's check plan and print it as JSON without running it check live [<args> ...] Full-stack check against a running deployment check feature [<args> ...] Run a running deployment's baked plan as acceptance tests; agent steps are agent-graded (Agent Driven Evaluation) check run [<args> ...] Run a disposable check bed (R10 sequence) or an iterate: entity (AI loop). check sync-credential [<args> ...] Copy AI credentials into a score's target. check scope [<args> ...] AI-facing: print the active iteration's scope.yml. check last-tag [<args> ...] AI-facing: print the prior iteration's image tag. check self-evaluate [<args> ...] AI-facing: re-run the in-scope plan live. check stop [<args> ...] Stop the in-flight run of a bed, scoped to that bed's lock holder. check list [<args> ...] List past runs under .check/. check report [<args> ...] Print a past result-<calver>.yml. check note [<args> ...] Persistent NOTES.md memory (read/append). check list-agent [<args> ...] List configured agents. clean [<args> ...] [flags] clean (out-of-process command plugin) cmd [<args> ...] [flags] cmd (out-of-process command plugin) config [<args> ...] [flags] config (out-of-process command plugin) cp [<args> ...] [flags] cp (out-of-process command plugin) doctor [<args> ...] [flags] doctor (out-of-process command plugin) dsh [<args> ...] [flags] dsh (out-of-process command plugin) examplecommand [<args> ...] [flags] examplecommand (out-of-process command plugin) feature [<args> ...] [flags] feature (out-of-process command plugin) fleet [<args> ...] [flags] fleet (out-of-process command plugin) logs [<args> ...] [flags] logs (out-of-process command plugin) migrate [<args> ...] [flags] migrate (out-of-process command plugin) ollama [<args> ...] [flags] ollama (out-of-process command plugin) preempt [<args> ...] [flags] preempt (out-of-process command plugin) reap-orphans [<args> ...] [flags] reap-orphans (out-of-process command plugin) remove [<args> ...] [flags] remove (out-of-process command plugin) restart [<args> ...] [flags] restart (out-of-process command plugin) service [<args> ...] [flags] service (out-of-process command plugin) settings [<args> ...] [flags] settings (out-of-process command plugin) shell [<args> ...] [flags] shell (out-of-process command plugin) ssh tunnel [<args> ...] Forward a VM's SPICE/VNC endpoint from a remote libvirt host to the local machine start [<args> ...] [flags] start (out-of-process command plugin) status [<args> ...] [flags] status (out-of-process command plugin) stop [<args> ...] [flags] stop (out-of-process command plugin) tmux [<args> ...] [flags] tmux (out-of-process command plugin) tui [<args> ...] [flags] tui (out-of-process command plugin) update [<args> ...] [flags] update (out-of-process command plugin) vm [<args> ...] [flags] vm (out-of-process command plugin) volume [<args> ...] [flags] volume (out-of-process command plugin) udev [<args> ...] [flags] udev (out-of-process command plugin) marketplace [<args> ...] [flags] marketplace (out-of-process command plugin) bpf [<args> ...] [flags] bpf (out-of-process command plugin) generate-packages [<args> ...] [flags] generate-packages (out-of-process command plugin) cardwire [<args> ...] [flags] cardwire (out-of-process command plugin) box add-candy [<args> ...] add-candy (out-of-process command plugin) box build [<args> ...] build (out-of-process command plugin) box cat [<args> ...] cat (out-of-process command plugin) box feature [<args> ...] feature (out-of-process command plugin) box fetch [<args> ...] fetch (out-of-process command plugin) box generate [<args> ...] generate (out-of-process command plugin) box inspect [<args> ...] inspect (out-of-process command plugin) box labels [<args> ...] labels (out-of-process command plugin) box list boxes [<args> ...] List enabled boxes box list candies [<args> ...] List every scanned candy box list targets [<args> ...] List build targets in dependency order box list services [<args> ...] List candies that trigger an init system box list routes [<args> ...] List candies that declare a route box list volumes [<args> ...] List candies' declared volumes box list aliases [<args> ...] List candies' declared aliases box list tags [<args> ...] List an image's tags in local podman storage box load [<args> ...] load (out-of-process command plugin) box merge [<args> ...] merge (out-of-process command plugin) box new [<args> ...] new (out-of-process command plugin) box pull [<args> ...] pull (out-of-process command plugin) box reconcile [<args> ...] reconcile (out-of-process command plugin) box refresh [<args> ...] refresh (out-of-process command plugin) box rm-candy [<args> ...] rm-candy (out-of-process command plugin) box set [<args> ...] set (out-of-process command plugin) box validate [<args> ...] validate (out-of-process command plugin) box write [<args> ...] write (out-of-process command plugin) version [flags] Print computed CalVer tag Run "charly <command> --help" for more information on a command. still parses (exit 0) — the B12 gate the validator required (the guard now has a committed test that fails without the main() wiring) - KERNEL_MANIFEST.md + main.go + retired_command_word.go: reword the historical 'bundle→fleet cutover' references to 'bundle-era cutover' so the claim-keyed sweep (git grep -iw fleet, excl CHANGELOG/plugin-fleet) has zero matches outside the guard mechanism itself (B14(d))
Summary of changes
Remove every hardcoded catalog count from the prose and docs site, and autogenerate the census in the docs plugin:
candy/plugin-docs/gen_plugins.go'sgenerateProviderIndexnow emits a computed census line at the top ofreference/providers.md("N words across M plugin candies, K compiled into the binary") plus per-class counts in each section header (singular classes read "1 word"), derived from the tree at generation time (never transcribed). A new unit test (gen_plugins_test.go) re-derives the three numbers from the same plugins slice and fails the moment they diverge.skill:descriptions drop their per-image counts ("32 candies", "11 tools", "~40 methods", "27 application boxes", "7 currently-tested images", …); the docs vocabulary page mirrors the README edits.charly marketplace generateoutput (the fleet cutover hand-edited the dispatcher without re-sorting; the hook entity had drifted to a "candy"-path heuristic that misses the standalonetools/*modules). The hook entity is fixed to restore the correctworkspace_member_rootsgo.work-membership logic, and the three generated files are regenerated.The submodule legs (box/fedora #14, plugins #146, docs #26, docs #27) carry the README/skill/docs projections; this super leg carries the sources + the gitlink re-points to the merged producer commits.
Change class
mixed — Go generator code (
candy/plugin-docs) + docs/config prose. The runtime gate is the generator's live execution via the drift gates; no disposable bed (dev-time generator, no deploy path).How R10-tested — exact gate, commands, and pasted output
task build:binary→charly version= 2026.219.1539 (CalVer-stamped from the source).charly marketplace generate+charly docs generateran against the fresh binary, and the drift gates confirm the committed output matches.The pre-commit-gate hook (regenerated from the fixed hook entity) was exercised live by the commit process: every super-leg commit ran through the PreToolUse pre-commit-gate hook, which passed (the hook's lint_staged_go ran against the staged Go files with the restored workspace_member_roots logic).
Attribution tier
analysed on a live system — the generator ran live via the drift gates against the fresh rebuild; the complete fresh-rebuild R10 bed did not run (dev-time generator, no deploy path, per the operator's scoping).
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-build:docs,/charly-tools:docs-site,/charly-internals:git-workflow,/charly-internals:cutover-policyloaded and honored.tools/*modules) — root-caused and fixed in-tree (hook entity restored toworkspace_member_roots). Zero warnings on the changed paths.task build:binaryfrom the worktree;charly versionmatches.charly box validategreen.CHANGELOG/2026.219.0000.mdstaged (placeholder — the pr-validator finalizes it).Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)