Repository navigation
feat(schema)!: remove the group kind from the spec schema (Cutover C task 1, contract half) - #105
Conversation
…task 1, contract half)
The targetless deploy kind group: (C2-group) is REMOVED at the schema boundary: the new member-tree bed shape makes its dual representation forbidden at R10. #ResourceKind drops the word; the former authored shape (a bed-level group: key carrying scalars with member entities as sibling keys) is migrated by the charly migrate rewrite (the charly wave, in flight): the first member becomes the deploy primary substrate node, the group scalars move onto that primary, remaining members stay deploy-level siblings.
- schema/node.cue: group dropped from #ResourceKind; live group doc claims rewritten (the removed #GroupInput had no schema def left, only a doc reference, now gone); the removal + the post-migrate spelling documented inline
- schema/deploy.cue: group removed from the edge-discriminator doc + the venue/lifecycle doc clauses
- schema/_common.cue: the Calamares package surface is candy-only now
- spec/charly_methods.go: Deploy.IsGroup() deleted (a targetless member-bearing deploy is no longer an authorable shape)
- spec/member_tree_test.go: the IsGroup fixture migrated to the post-migrate primary-substrate spelling
- spec/loader_seam.go: stale #GroupInput / targetless-group examples in the Threaded seam docs reworded
- spec/{cue_types_gen,vocab_gen}.go: regenerated (task cue:gen twice, hash-identical)
Review — BLOCKHead SHA: Change class: schema + Go code change (removes the Security screen: PASS — no secrets, exfiltration, scope-mismatch, or guardrail-weakening in the diff itself. Blocks
The author must rewrite the body to describe the actual group-kind-removal diff, supply fresh-rebuild proof for this spec change, and re-justify the attribution tier. Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…nsumed a stale shared-/tmp body file; the correct body describing this diff is now on the PR)
Review — BLOCKHead SHA: Change class: contract-module schema cutover (CUE schema + generated Go types + Go predicate removal + test migration). Security screen: PASS — no secrets, exfiltration, scope-mismatch, or guardrail-weakening. The diff removes the Blocks
Comment dispositions
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
|
RCA response to A1 (attribution footer format): The footer is in the exact org-mandated form — the project rulebook's PR-body requirement #6 gives verbatim this example: Precedent on THIS repo, this wave: opencharly/spec #104 MERGED with the byte-identical footer:
No tree change is possible for this finding — the diff is correct and the body matches it. Re-triggering a fresh per-HEAD review with the evidence above. |
…th the merged #104 precedent + the pr-validator spec item-3 tier vocabulary (see the RCA comment)
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, scope-mismatch, or guardrail-weakening. The diff is a clean removal of the Checklist: All applicable rules PASS or NA. Comment dispositions:
Key verifications:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
… sandbox image + the provisioning contract documented) (#34) * feat: unroll the member-less group: node + migrate to schema 2026.249.2125 (Cutover C task 1, distro wave) The group: deploy kind is removed at the spec contract (opencharly/spec#105). This tree carried exactly ONE group: node — check-agent-live — and it is the DEGENERATE member-less case (no members; only the iterate: score over the separate check-agent-pod sandbox). charly migrate's unroll-group-deploy hook correctly refuses a group with no promotable member, so it is re-authored by hand to the post-migrate spelling: an image-less pod: deploy (agent_provisioned: true, the charly-cli iterate-entity pattern) carrying the iterate: block + description, keeping the check-agent-live name addressable for charly check sync-credential while the sandbox stays check-agent-pod. Schema stamp bumped 2026.240.1943 -> 2026.249.2125 by charly migrate (plugin-migrate v0.2026249.2144). * fix(agent): restore the check-agent-live run-local wiring (git in the sandbox image + the provisioning contract documented) The re-authored imageless agent_provisioned check-agent-live entity dispatches charly check run-local INTO the check-agent-pod sandbox. RCA of the run-local failure chain on the bed runner host: 1. no charly.yml in /home/user — the sandbox had no project at /workspace: the in-pod run-local (plugin-check runlocal.go) resolves the scored project from the bind-mounted /workspace (the clone.go documented contract). The per-host overlay sandbox deploy must bind a STANDALONE git clone of this repo at /workspace (binding the live submodule worktree breaks the per-run clone: its .git is a gitfile pointing outside the mount). 2. exec: git: executable file not found — the check-agent-box image (minimal arch base) shipped no git; the in-pod run-local needs it for the per-run clone + the @github candy-pin resolution. Fix: compose layer-gh (git + git-lfs + gh — the canonical git-shipping candy) into check-agent-box. 3. stale-schema + no-preflight failures — the per-host overlay entry lost disposable:true in the fleet-add merge, so the run preflight never restarted the sandbox nor synced the host charly binary; documented the full provisioning contract on the bed comment. The group: spelling never ran on this host (the old tree/pin hit no-entity; the current binary cannot parse group kind since spec #105) — nothing was regressed by the conversion; the run-local wiring is per-host provisioning. * chore: re-trigger the pr-validator — the body now classifies the full delta (schema migration + test-bed fix) --------- Co-authored-by: atrawog <[email protected]>
Summary
Cutover C task 1, contract half: the targetless deploy kind
group:is REMOVED from the spec schema (R5 at the schema boundary). The new member-tree bed shape makes the group kind's dual representation (a fleet-shaped node that is ALSO a scalar-keyed bed config) forbidden at R10, so the kind dies here — the wire/contract source every consumer regenerates from.schema/node.cue:"group"dropped from#ResourceKind(the kind no longer nests members).#GroupInputhad no schema def left to delete (it left with the C2-group arm externalization) — the last live reference was a doc comment, now removed. The removal and the POST-MIGRATE spelling are documented inline: the FIRST member becomes the deploy's primary substrate node, the group scalars move onto that primary, remaining members stay deploy-level siblings.schema/deploy.cue: the group shape removed from the edge-discriminator doc (~line 106, the required comment), the venue-nonedoc, and the lifecycle rebuild/restart doc clauses.schema/_common.cue: the Calamares package surface is candy-only now.spec/charly_methods.go:Deploy.IsGroup()DELETED — a targetless member-bearing deploy is no longer an authorable shape (post-migrate, every deploy carries its primary substrate target), so the predicate is dead. Charly core has zero live callers (verified by grep); the wave's consumer PRs (charly migrate + tree conversions, in flight) own the plugin-side call sites.spec/member_tree_test.go: the IsGroup fixture MIGRATED to the post-migrate primary-substrate spelling (the fixtures document the NEW world) —TestHasMembersUniformpinsHasMemberson aTarget: "pod"member-bearing deploy.spec/loader_seam.go: stale#GroupInput/ targetless-groupexamples in theThreadedseam docs reworded generically.spec/cue_types_gen.go,spec/vocab_gen.go: regenerated (ResourceKindsis now pod/vm/kubernetes/local/android).Consumers migrated in the SAME wave (named PRs in flight, not this repo): the charly migrate rewrite + tree conversions (the charly CC PR, re-pinning spec), and the CC consumer wave migrating plugin-check/-status/-loader/-fleet off the removed predicates. The seam
is_group/ arbiteris_groupwire FIELDS are deliberately KEPT in this PR — they are the check-bed/arbiter plugin contracts (plugin-checkd.IsGrouparms, plugin-preemptin.IsGroup); their removal rides those consumers' own cutover PRs, not the schema kind removal.How tested
Executed on the final committed tree (
ccdae54, cleangit status):task cue:genrun TWICE — hash-identical (idempotent, second run a no-op):diffof the two sha256sums empty)go build ./...→ exit 0 (no output)go vet ./...→ exit 0 (no output)go test ./...→ exit 0; first run tail:TestGenReproducible, the cue:gen no-op gate)git grep -n -E '#GroupInput|"group"|IsGroup\(\)' -- '*.cue' '*.go'→ ZERO matches. Remaininggroupmentions are: GPU/VFIO group fields (unrelated domain), intentional C2-group history + the removal documentation itself, and the KEPT seam/arbiteris_groupwire fields (consumers in flight, above).bed_session.gocallsnode.IsGroup()and readsd.IsGroup; plugin-preempt readsin.IsGroup— both are the named in-flight consumer wave's scope; no spec-internal callers remain.Rulebook compliance
git-workflow,root-cause-analyzer,strict-policy./tmpbody-file path without writing it and consumed a parallel worker's stale file — fixed by writing the body to a unique path and editing the PR (the head SHA is unchanged; this body edit is evidentiary only).is_groupwire fields are the consumers' same-mechanism siblings, named above and landed in their own repos' PRs.ResourceKindsstays generated from the ONE CUE source (#ResourceKind); the vocab is regenerated, never hand-edited.task cue:gen, no hand edits; no suppression of failing gates.feat/drop-group-kind, PR-only landing;git statusinspected before every destructive-capable action.TestHasMembersUniform) exercises the changed surface;TestGenReproduciblefails if the generated artifacts drift from the schema; the removal is pinned by the zero-match sweep on the committed tree.cue_types_gen.go/vocab_gen.goregenerated and hash-compared twice.task build:binary) is a charly-core rule; the spec contract module's gate is cue:gen idempotence + build/vet/test, all executed.ccdae54, clean status):task cue:gen×2 hash-identical +go build/go vet/go test ./...all exit 0, pasted above. No runtime/bed surface changed in this repo.Change classification
task cue:genidempotence (×2, hash-identical) +go build ./...+go vet ./...+go test ./..., all on the final committed tree.fully tested and validated(gates passed on the final tree; changed paths executed live — cue:gen, sweep, tests).Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)