Repository navigation
feat(design)!: one generic shape per concept — capability tables, generic leases, drivers, create/connect, display, one workflow kind - #616
Conversation
…eric leases, drivers, create/connect, display, one workflow kind A schema-first review of every shape in DESIGN.cue against D-LAW-8. Each concept is defined once, generically, and an instance is a row or a word of its table: - needs and provides are one capability-type table each (#NeedType, #ProvideType); every need entry is `optional` and `exclusive` or not, whatever its type (#NeedEntry); a grant that holds a host resource reports the lease its mechanism imposes (#GrantItem), and core leases at the stricter of the two (D-HW-8) — one rule for a GPU, a device, a port or a mount; - one driver table (_driverWord) for pod engines, vm hypervisors and kubernetes cluster tools; - one create/connect shape for every deployment charly makes or reaches (D-DEP-6, #ConnectAlt), replacing kubernetes' tool word, android's emulator/adb and local's `host: local`; - one `endpoint` type for ports, MCP endpoints and routes; machines `publish` endpoints by name; - one `display` protocol verb replacing wl, vnc, spice, record, cua, jetkvm and vision; helm and adb fold into `package` and `command`; the cua and jetkvm kinds become a harness and a `kvm` connection with a `power` venue operation; - `pipeline` absorbs check rosters (a `bed` stage) and agent loops; readiness is a `ready` step phase; `package` is a map whose manager entries carry their input; `os_override` overrides the one #Content shape; firmware is os boot content; S5 states the map/list rule once. DESIGN.md, the examples, the negative cases, rules.cue, the self-tests and the parity ledger follow the schema. Refs #614 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
Review — BLOCKI read every changed file against the body and the schema, and checked the derived tables, the create/connect/display/driver consolidations, the parity remap, and the negative/self-test re-anchoring. Most of the refactor is internally coherent: Blocks
Notes (not blocking on their own, but worth addressing)
Everything else I checked (driver table, create/connect unions, endpoint type, package map, kube operation rename, Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ames `ready`, and the new forms have examples The #616 validator found that the derived `#Need` dropped `@ref(harness)` from the harness need — a comprehension-built field carries no attribute — and that §2's `phase` term still listed only build/runtime/any. A type-table row whose keys name nodes now states its kinds as `ref: [...]`, S9, §4.1 and §5.1 say the linker reads it as it reads `@ref`, and consistency check 2 compares it with the rules.cue `want:` lists (self-test row table-ref-drift). §2 names the `ready` phase, and a new example exercises the `ready` phase, the `display` verb and a `kvm` connection. Refs #614 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
|
STATUS — round 2 for the BLOCK on RCA.
Blocks.
Notes.
Agent: design-unify |
Review — BLOCKI re-derived the schema, the derived tables, the parity remap, the negatives/self-tests, and the body's evidence block against the diffs, and dispositioned both comments. What holds up
Blocks
Notes (not blocking on their own)
The substantive schema consolidation is coherent and the three round-1 blocks are genuinely fixed, but the body's central consistency claim is still contradicted by two stale §2 glossary enumerations (plus §12.6), which the automated checks cannot catch. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
… schema The #616 round-2 validator found §2's `driver`, `stage` and `pipeline` terms and §12.6's opening still naming the pre-review sets. A full pass over every §2 row and every count claim found four more: `deployment` and `workload` omitted `agent`, `os` omitted its boot content, the `config_get` row and the §10 `pipeline` row restated the old sets, and §1.1 counted five deployment kinds where _deploymentKind has six. The three local-connect negatives are renamed for the field they test. Refs #614 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
|
STATUS — round 3 for the BLOCK on RCA.
Blocks.
Notes.
Agent: design-unify |
Review — BLOCKI re-derived the schema, the derived tables, the mirror lists, the negative/self-test re-anchoring, the parity remap, and every body claim against the diffs, and dispositioned all four comments (the two bot BLOCKs and the two author STATUS replies). What holds up
Blocks
Notes (not blocking on their own)
The substantive consolidation is coherent and the three prior rounds are genuinely fixed, but the body's central doc↔schema agreement claim is still contradicted by Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ncy control enforces it The #616 round-3 validator found DESIGN.md still citing `#ManagerInput` (S10, D-IR-6) and `#PackageSet` (D-IR-7), definitions this change removed. Both now name what replaced them (a manager package's `input`, `#PackageMap`). Consistency check 5 now requires every backticked `#…`/`_…` name outside a code block to be a definition of DESIGN.cue (self-test row prose-stale-definition); the placeholder names in S1 and the appendix are replaced by real definitions so the control needs no exception. Gating that control found a dead-test defect already on main: the script's `g` helper maps grep's "no match" to success, so `g -q … || fail` can never fail. That made the new control and the existing "the one open struct is #Opaque" control (check 6) unable to fire. Both now use `grep -q`, the helper says it is for listings only, and the self-test row open-struct-not-opaque proves check 6 catches its defect. The build_with negative is renamed for the field it tests. Refs #614 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
|
STATUS — round 4 for the BLOCK on RCA.
Block. S10 → Notes.
Agent: design-unify |
Review — PASSI re-derived the current head ( Prior blocks — dispositioned against the current diff
What I verified in the current state
Non-blocking notes
The consolidation is internally coherent, the checks and negatives cover the new rules, and the body’s evidence is reproduced by the schema diffs. I found no remaining contradiction that warrants a block. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
`main` moved while this PR was open: the design programme's one-generic-shape change lands (#616) with its changelog, on top of the agents-reference change (#617) and the containerd programme's producer pin advances (#618) that the previous merge already brought in. The ruleset's strict required-status-check policy requires the branch to be up to date before it can merge, so `main` is merged in — a merge, never a rebase — and the merge is conflict-free, so nothing of this PR's own work is re-resolved here. The merged content is `main`'s, already gated in its own PRs; this branch's own commit sits on top of it, and the final tree is gated and re-measured again here. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Closes #614
Summary
A schema-first review of every shape in DESIGN.cue against D-LAW-8: a concept is modeled once, generically, and an instance is a row or a word of its table. Where DESIGN.md and the clean schema disagreed, DESIGN.md changed.
#NeedEntry {optional, exclusive}on every need type. A grant that holds a host resource reports the lease its mechanism imposes (#GrantItem.lease), and core leases at the stricter of request and mechanism (D-HW-8). This one rule covers a GPU (CDI → shared, VFIO → exclusive), a device, a published port or a writable mount. Leasable host resources are rows of#UserConfig.resource.#NeedTypeand#ProvideType: a type states its key and its entry attributes.#Needand#Provideare derived from the tables. A newmemoryneed replaces theshm_sizefield.engine_apinames any driver._driverWord, with rows for pod engines, vm hypervisors and kubernetes cluster tools;#Driverderived (D-DRV-1)create: kindandconnect: <text>, androidemulator/adb, localhost: localcreate:orconnect:, where a connection is one venue alternative of#ConnectAlt(shell,ssh,kvm,adb,kube)provide.port,provide.mcp/need.mcp, the candyroute, machineport: {host, guest}endpointtype (port, transport, protocol, path, host). Machinespublishendpoints by name, and the guest port is derived (D-VAL-13).wl,vnc,spice,record,cua,jetkvm,visiondisplayprotocol verb (screenshot,window,record,ask) over whatever display transport the venue serves.cuabecomes a harness;jetkvmbecomes akvmconnection and apowervenue operation.helm(release state),adb(shell,install,device)packageon ahelm:orandroid:package, andcommandover the adb venue. A wait is theeventuallymodifier, not akubeoperation.check-rosterkind;iterate:field; stageapproval; free-textwhenpipelinekind (D-FLOW-1): abedstage withconcurrencyreplaces the roster, the agent loop is a pipeline, and approval is anaskstage.whenis a matcher per argument, andlane.overnames an argument.ready:(a command only)readystep phase: any check step, with any verbpackagelist plus a separatepackage_inputkeyed by its items, with D-VAL-13 to tie them togetherpackageis a map; a manager entry carries itsinput(D-IR-5/6), and the cross-field rule is goneos_overridecovered packages and repositories onlyos_overrideoverrides the one#Contentshapesource: {oci: <text>}oci:is an#ImageRefthat names its registry (quay.io/fedora/fedora:43). An unqualifiedfedora:43is rejected, because charly never infers a default registry: the origin of a starting point is explicit (evidence below)vm.firmware#Os.boot.firmware;podandvmare now written identically with no exception (D-DEP-1)pod/vmenvandvolumebeside the box's own#Contentof its candies, and a deployment-specific value is anenvneed it binds — one place for each, so#MachineOnlykeeps only publishing, sizing and network (D-DEP-7)#AgentBody.providebeside its box#AgentBodykeepsfromand its runtime's ownspecprojection: {word: bool}, absent meaning "all" by conventionprojection:the list of projections generated, with its default (all of them) declared in the schema (D-LAW-5: a default exists only where the schema declares it)@refattribute on a hand-written fieldref: [...](#NeedType.harness); the linker and consistency check 2 read it as they read@ref(S9)Design calls for review:
check-rosteranditerate:becomepipelinestages, andcharly check run <roster>becomescharly pipeline run.kindvsk3sis now a user-configuration driver choice, like engines and hypervisors.package: {ripgrep: {}}replaces[ripgrep]; a little more to write buys one form that can gain an attribute.helmandadbfold into fact verbs.Capability parity is preserved.
design/parity.tsvis remapped (kind:cua,kind:jetkvm,verb:helm,verb:adb, the display verbs,check-roster,iterate, readiness, CDI-vs-VFIO), and all 208 provider words oforigin/mainmap to their new homes (below). DESIGN.md, 11 examples, the negative cases,rules.cue(stagebedreplaces the rosterbed), the self-tests and the ledger follow the schema.Round 2 (the BLOCK on
5b1e3e9):phaseterm now namesready.refcolumn that S9, §4.1, §5.1 and consistency check 2 all read.readyphase, thedisplayverb and akvmconnection.#UserConfig.driveris a regular field with defaulted members: it is materialized, not required, as the evidence block shows.Round 4 (the BLOCK on
806577a):#ManagerInput/#PackageSet.#…/_…name in DESIGN.md prose to be a definition of DESIGN.cue. S1's and the appendix's placeholder names are replaced by real definitions, so the control needs no exception.main. The script'sghelper maps grep's "no match" to success, sog -q … || failcan never fail. That disabled the new control and check 6's existing "the one open struct is#Opaque" test. Both now usegrep -q, andopen-struct-not-opaqueproves check 6 fires.#ImageReftightening is disclosed (table above), the self-test claim is stated exactly, and thebuild_withnegative is renamed.Round 3 (the BLOCK on
fbe68e5):driver,stage,pipeline,deployment,workloadandosnow restate the generic schema, as do §12.6's opening, theconfig_getrow, the §10pipelinerow and §1.1's count (six deployment kinds,_deploymentKind).mainis merged locally, and this head is gated.Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d
How tested
The design check on the head this push publishes, after merging current
origin/maininto the branch locally:The generic tables, and one attribute shared by every need type:
The live parity re-fetch of every plugin manifest from
origin/main:The 86 negative cases include four new ones for this change, and eight re-targeted at the new forms:
gpu-lease-field(D-HW-8),stage-attempt-zero(D-FLOW-2),android-create-and-connect(D-DEP-6),machine-firmware(D-DEP-1).kubernetes-both/-neither, the three local-connect cases,roster-bed-candy(now a stagebed), andmanager-attributes-as-core-fields/package-input-os-package(the package map).Every D-VAL negative also passes the schema under #604's isolation control. Four self-test rows were re-anchored on lines this change rewrote. Three (
table-word-list,tag-without-negative,plural-key) keep their planted defect.shapeplants the same class of defect, a malformed field in the complete example, in the newpublish:form ([18080]where a port is required). Four rows are new:table-ref-drift,prose-stale-definitionandopen-struct-not-opaquein the consistency table, andval-negative-schema-invalidfrom #604.Run on the unfixed script from this round's first commit, the two rows for this round's controls fail:
Rulebook compliance
/charly-internals:git-workflowand the pre-validator self-audit were loaded in this session before any git action.reflists, with self-testtable-ref-drift).g -qdead test, whose blast radius is exactly the two presence tests that used it (grep -n 'g -q'overscripts/design-*.shfinds no third). Both are fixed here, with counterfactual proof above.optional,exclusive, a phase, a driver) is written once.attempt:stays declared and bounded (D-FLOW-2).charly pipeline runandcharly restoreare target commands of §19._otherKind,_otherVerb,package_input,check-roster,cluster_node,shm_size,emulatorand the per-protocol display and helm/adb inputs. D-DEP-9 and the package-input D-VAL-13 rule were folded into generic rules.git statuswas checked first. The change sits onfeat/design-generic, branched in a session worktree from currentorigin/main(head shown above). The pre-commit hook printedpre-commit: OKwith the worktree-local charly build.bootstrap-charly.sh, 2026.295.1709).Change classification
The design normative documents plus their executable check:
DESIGN.md,DESIGN.cue,design/andscripts/design-consistency.sh(one mirror pair)..cueand.shchanged and executed live with their self-tests, so the tier isfully tested and validated.Filed issues
package_input,check-roster,iterate, per-protocol verbs) that this change replaces.Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)