Repository navigation
docs(design)!: restate the target as eight unified mechanisms with full capability parity - #597
Conversation
…ll capability parity The target now names the eight mechanisms every capability is an instance of (M1 content → IR, M2 artifact, M3 kind × driver, M4 need → grant, M5 lifecycle and state, M6 venue, M7 observation, M8 store), and DESIGN.cue owns one table per mechanism. Upstream instances become rows: the containerd engine and the libvirt/qemu/krun/firecracker hypervisors are driver rows chosen by the user configuration (#UserConfig, D-DRV-1..3); microVM isolation, rootful privilege and userns sandboxes are needs (D-HW-7); capture gains a scope and restore (D-CAPTURE-4/5); every interaction is a venue operation (D-VENUE-1/2); verbs are fact or protocol verbs (D-VERB-6); pipeline is the one workflow kind (D-FLOW-1/2); non-first-party words are namespaced (D-PLUG-7). Every first-party kind and verb is typed; #Opaque marks only S10 payloads, gated by a new consistency control. design/parity.tsv maps all 208 provider words of the 110 product plugins on origin/main, the divergent subcommands and the measured runtime capabilities to their homes. Refs #593 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
Review — PASSI re-derived the PR from the supplied body, the 17 per-file diffs, the single commit, and the (empty) comment thread. No comment asserts anything, so there is no sign-off to weigh and no stale claim to dismiss; the change stands on its own evidence. What I checked, file by fileDESIGN.cue — The removal of DESIGN.md — §1.1, §10.1, §12.6, §12.7 and A.8 are new as claimed; §20 now splits fact/protocol; §7.1 ownership rows track the new word lists; §9.2/§9.3 add the driver-dependent form and Negatives / selftests / scripts — The 9 new negative files, the 3 consistency selftest rows (one re-anchored) and the 1 example selftest row match the body's "9 new negatives, 4 new selftest rows, one re-anchored." The consistency-script hunks add exactly the three controls claimed (S10, verb disjointness, ledger IDs/§), and the examples-script hunk adds the Correctness / security / scope — No runtime code, no secrets, no injection surface, no dependency change; it is a design-document + executable-check change. The change is coherent and does not leave a legacy path ( Minor observations (non-blocking)
Neither observation changes the substance: the schema, prose, checks and ledger are mutually consistent, and the change ships the coverage (negatives + selftests) that would fail without it. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — both minor observations from the PASS verdict are addressed.
Agent: design-unify |
…hanisms, and a control holds it (#598) The #597 validator observed that design/parity.tsv used `core` and `operations` in its mechanism column, which §1.1 does not define, and that no control checked the column. The seven rows now name the mechanism that absorbs them (loader → authoring, mcp serve → workflow, alias → M6, settings → M3, generate-packages → M2), and design-consistency.sh check 4 fails on any value outside M1–M8, workflow and authoring, with a self-test row proving it. Refs #593 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
The branch was BEHIND origin/main, and the org ruleset requires the branch to be up to date before the required check counts, so the armed auto-merge could not land it. A MERGE, never a rebase: no published commit is rewritten, no history is rewritten, and the push stays a fast-forward of the published branch. The merge brings in the design restatement and its changelogs (PR #597, PR #598), which landed on main while this round was open. Those commits touch no file this branch changes, so the merge is a pure fast-forward of the two trees; the branch's own work is unchanged. Every measurement this PR carries was taken again on the merged head.
Closes #593
Summary
This PR restates the normative target (DESIGN.md + DESIGN.cue) top-down. charly is eight mechanisms, and every capability is an instance of exactly one of them: a row of that mechanism's table, never a kind, verb, command group or plugin of its own (new law D-LAW-8, new §1.1).
#ActionAlt#ArtifactRef,build#Driver#Need#MethodIO(capturewith a scope,restore)#VenueOutputAlt,_venueOperationWord#FactVerb,#ProtocolVerbHow the upstream changes since 2026-10-14 land as rows rather than new concepts:
containerd, krun, Firecracker.
containerd(spec#266) is a container-engine driver row.libvirt,qemu,krunandfirecracker(spec#227/chore: sync gitlinks #229) are hypervisor driver rows. Drivers are chosen by the new user-configuration schema (#UserConfig,#Driver; D-DRV-1..3, §12.6) and never named in an authored document. The form avmconsumes follows its driver: a disk, a root drive plus theosbootkernel, or an image forkrun(D-FORM-3).New needs. The runtime facts of CONTAINERD.md, K3S.md, LIBKRUN.md and CONTAINERD-IMAGES.md (read in full) become needs:
isolation: microvm(the runtime handler or RuntimeClass),privilege: rootful, andnesting: userns(the narrow seccomp profile, never unconfined). They have new grant-matrix rows in §16.1 and D-HW-7.Capture and restore.
capturegainsscope: filesystem | process(CRIU), and the new kind method and commandrestore(D-CAPTURE-4/5) absorbvm snapshot revert,check run --anchorand the k3s datadir backup.Venues. Every interaction is a venue operation, and a venue declares the operations it serves (a microVM venue serves no
exec; D-VENUE-1/2, §12.7).Verbs. A verb is a fact verb or a protocol verb (D-VERB-6). New typed fact verbs:
user,group,mount,kernel-param,dns,interface. Application and internal-operation verbs become namespaced (D-PLUG-7) orapimethods.One workflow kind.
pipelineabsorbstask, and its stages carrylane:(the spec#264 fan-out) (D-FLOW-1/2, §10.1). This is a design call, flagged here for review.Store. It is served read-only as an image registry (D-STORE-10, charly-registry).
Volumes. A volume can be
encrypted, absorbing plugin-enc.Every first-party kind and verb is now typed. This replaces the opaque
_otherKind/_otherVerb/#OtherBody(D-KIND-5).#Opaqueremains only on S10 lines, and a new consistency control enforces that.Parity is proved, not designed.
design/parity.tsv(Appendix A.8) maps:origin/main(plus charly-registry);Each row names its mechanism and DESIGN home. Design-check check 4 now resolves every D-ID and
home-column § in it.The check machinery changed with the design, as Appendix A.7 requires:
scripts/design-consistency.shadds three controls: the S10 control, the verb-table disjointness control, and ledger IDs/§ in check 4.scripts/design-examples.shadds auser-configexample mode validated against#UserConfig.design/example/rules.cueadds reference clauses for roster beds, pipeline stages and builder boxes.Section numbers are stable, because TODO.md cites them; new material lives in §1.1, §10.1, §12.6, §12.7 and A.8.
Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d
How tested
The change class is the design normative documents plus their executable check (Appendix A.1). The gate is
bash scripts/design-check.shon the committed tree, which runs the changed scripts live together with their self-tests. On top of that, a live re-fetch of every plugin manifest fromorigin/mainis diffed against the ledger.Design check on head
2acf387(base = currentorigin/maine22b979):Every new control was proven able to fail by the self-tests above:
opaque-unmarked,verb-both-tablesandparity-dangling-idare in the consistency check's 32 planted defects (up from 29 at baseline).user-config-shapeis in the example check's 19 (up from 18).e22b979before any change also passed, with 69 negatives; there are 78 now.Parity completeness. The verify script re-fetches every non-archived
plugin-*repo andcharly-registryviagh api(git/trees/HEAD), parses eachcandy/*/charly.ymlwith PyYAML, and diffs every declaredprovidersword against ledger column 1, excluding only the example and scaffold repos. The ledger itself was generated by a scratch script that fails on any unmapped word.The ledger's subcommand rows come from the Kong command trees inventoried in this session, and they are not machine-diffed. Making the ledger a re-deriving gate is filed as #595.
Claim-keyed greps on the head:
Both
rootlesshits are example descriptions (instances);podis no longer defined as rootless (§10, §12.1).Rulebook compliance
/charly-build:docs;/charly-internals:skills("where guidance belongs");/charly-internals:cutover-policy;/charly-internals:git-workflowwithumbrella-mechanics.mdandpre-validator-self-audit.md;import:turned out to be a list, not a map. The process was stopped, and the 218 stray checkouts were deinitialized so the pre-commit pin gate passed. Nothing outside this worktree was touched.builder:plugins become one builder plus data nodes;vnc/spiceshare#Screen.attempt:is declared and bounded (D-FLOW-2).charly restore,charly pipeline run) is a target command of §19 and is not claimed to exist today.nerdctl,_otherKind,_otherVerb,#OtherBodyand thetaskkind (grep fence above;taskis now a §2 "Not" term enforced by check 5).git statuswas checked before branching. The change sits onfeat/design-unified-mechanisms, branched in a session worktree from currentorigin/main(base shown above). The pre-commit hook printedpre-commit: OK.design-check.sh) passed with zero failures on the committed head.Also:
Change classification
Design normative documents plus their executable check:
DESIGN.md,DESIGN.cue,design/,scripts/design-consistency.sh,scripts/design-examples.sh. No charly code, pin, gitlink or runtime config changed.Because
.cue,.sh,.tsvand.yamlfiles changed, the tier isfully tested and validated(precedent #454, the same file set): the change-class gate ran on the final tree, and the changed scripts executed live with self-tests proving every control can fail.Filed issues
design/parity.tsva gate that re-derives the inventory.plugin-task-*test repos.charly-).plugin-nerdctl/layer-nerdctlnames, and retiringverb:/command:containerdper D-CLI-3.Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)