Skip to content

feat(schema)!: remove the group kind from the spec schema (Cutover C task 1, contract half) - #105

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/drop-group-kind
Sep 6, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/drop-group-kind

Conversation

@atrawog

@atrawog atrawog commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

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). #GroupInput had 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-none doc, 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) — TestHasMembersUniform pins HasMembers on a Target: "pod" member-bearing deploy.
  • spec/loader_seam.go: stale #GroupInput / targetless-group examples in the Threaded seam docs reworded generically.
  • spec/cue_types_gen.go, spec/vocab_gen.go: regenerated (ResourceKinds is 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 / arbiter is_group wire FIELDS are deliberately KEPT in this PR — they are the check-bed/arbiter plugin contracts (plugin-check d.IsGroup arms, plugin-preempt in.IsGroup); their removal rides those consumers' own cutover PRs, not the schema kind removal.

How tested

Executed on the final committed tree (ccdae54, clean git status):

  • task cue:gen run TWICE — hash-identical (idempotent, second run a no-op):
    28dafc493052e72324fe13540197c5391cacfd0ac89dcdd8445be7f631625f2b  spec/cue_types_gen.go
    d989e9cd46178428de369aaf3fb78e881b7f3caae5a5343b8f9e8c2bd286eb5b  spec/vocab_gen.go
    c3d3520f8667a05837337d108ea0f2520c7829ea649652424930311f8a2d5c7e  spec/version_gen.go
    
    (identical for both runs; diff of the two sha256sums empty)
  • go build ./... → exit 0 (no output)
  • go vet ./... → exit 0 (no output)
  • go test ./... → exit 0; first run tail:
    ok  	github.com/opencharly/spec/schema	1.002s
    ok  	github.com/opencharly/spec/spec	0.307s
    ok  	github.com/opencharly/spec/transport	0.181s
    
    (includes TestGenReproducible, the cue:gen no-op gate)
  • Executed sweep on the COMMITTED tree: git grep -n -E '#GroupInput|"group"|IsGroup\(\)' -- '*.cue' '*.go' → ZERO matches. Remaining group mentions are: GPU/VFIO group fields (unrelated domain), intentional C2-group history + the removal documentation itself, and the KEPT seam/arbiter is_group wire fields (consumers in flight, above).
  • Plugin blast radius (read-only): plugin-check bed_session.go calls node.IsGroup() and reads d.IsGroup; plugin-preempt reads in.IsGroup — both are the named in-flight consumer wave's scope; no spec-internal callers remain.

Rulebook compliance

  • R0 — skills loaded before the first tool call: git-workflow, root-cause-analyzer, strict-policy.
  • R1 — the dual-representation removal is RCA'd (in the plan): the member-tree bed shape makes a node both a fleet-shaped member tree and a scalar-keyed bed config; the group kind was the only producer of that duality. One execution anomaly surfaced and was RCA'd: the PR body initially referenced a shared-/tmp body-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).
  • R2 — every in-scope occurrence fixed in this one change: schema vocabulary, dead predicate, stale docs, tests, generated artifacts — plus the claim-keyed repo sweep (zero matches) in the same cutover. The seam/arbiter is_group wire fields are the consumers' same-mechanism siblings, named above and landed in their own repos' PRs.
  • R3 — no new parallel copies: ResourceKinds stays generated from the ONE CUE source (#ResourceKind); the vocab is regenerated, never hand-edited.
  • R4 — no workarounds: the generated files come from task cue:gen, no hand edits; no suppression of failing gates.
  • R5 — the kind dies at the schema boundary, deleted completely: no alias, no shim, no deprecation — the predicate and every live doc claim are removed; history stays in the changelogs.
  • R6 — no force-push, no hook bypass, no direct push to main; branch feat/drop-group-kind, PR-only landing; git status inspected before every destructive-capable action.
  • R7 — the migrated test (TestHasMembersUniform) exercises the changed surface; TestGenReproducible fails if the generated artifacts drift from the schema; the removal is pinned by the zero-match sweep on the committed tree.
  • R8 — emitted artifacts validated at their actual boundary: cue_types_gen.go/vocab_gen.go regenerated and hash-compared twice.
  • R9 — N/A for this repo: the binary gate (task build:binary) is a charly-core rule; the spec contract module's gate is cue:gen idempotence + build/vet/test, all executed.
  • R10 — the exact change-class gate for a contract-module schema change ran on the FINAL COMMITTED tree (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

  • Change class: contract-module schema cutover (CUE schema + generated Go types + Go predicate removal + test migration) — breaking at the Go-module boundary, coordinated by the same wave's consumer PRs.
  • Verification gate: task cue:gen idempotence (×2, hash-identical) + go build ./... + go vet ./... + go test ./..., all on the final committed tree.
  • Attribution tier: 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)

…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)
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: ccdae5490a55bc1cb961895577a891e72217d2e6 (branch: feat/schema-remove-group-kind)

Change class: schema + Go code change (removes the group kind from the spec schema).

Security screen: PASS — no secrets, exfiltration, scope-mismatch, or guardrail-weakening in the diff itself.

Blocks

  1. A1 — body is completely mismatched with the diff (body-truthfulness, rule 4). The PR title and diff are about removing the group kind from the spec schema: schema/node.cue drops "group" from #ResourceKind, spec/vocab_gen.go drops "group" from ResourceKinds, spec/charly_methods.go deletes Deploy.IsGroup(), spec/member_tree_test.go renames TestHasMembersAndIsGroupUniform → TestHasMembersUniform, plus comment-only edits in _common.cue, deploy.cue, cue_types_gen.go, loader_seam.go. The body, however, describes an entirely different change — a plugin-check member-tree migration (bed_persist.go, bed_session.go, cmd_helpers.go, venue.go, instrument.go, live_gather.go, plugin-check tests, spec/sdk version pins). None of those files or pins appear in this diff. Every section of the body (Summary, How tested, Rulebook compliance, Change classification, Attribution) is about the wrong change. The body must be rewritten to account for every file in THIS diff.

  2. A1/A3 — "How tested" evidence is for the wrong repo and does not validate this change. The pasted go build/go vet/go test output is github.com/opencharly/plugin-check/... — not this spec repo. The change class (schema + Go code) requires fresh-rebuild proof for THIS change (the group-kind removal), which is entirely absent. The claimed attribution tier fully tested and validated is therefore unjustified for this diff.

  3. A1 — attribution footer format deviation. The footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)* places the attribution tier in the <confidence> slot rather than a confidence value, and the tier itself is unsupported by any evidence for this diff.

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.

View action run

…nsumed a stale shared-/tmp body file; the correct body describing this diff is now on the PR)
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 119fedfe6fd3bcaadec2a38e3027fe036df02638 (branch: feat/schema-remove-group-kind)

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 group kind from the schema; the body accounts for every file in the diff.

Blocks

  1. A1 — attribution footer format deviation (surviving). The body ends with
    *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)*.
    The <confidence> slot contains the attribution tier (fully tested and validated)
    rather than a confidence value. A1 requires the exact form
    *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)*. This was flagged by
    the prior review and was NOT fixed by the body correction (the correction addressed the
    content mismatch, not the footer). Fix: replace the parenthetical with a confidence value.

Comment dispositions

  • github-actions[bot] prior BLOCK:
    • Block 1 (body mismatched with diff) — stale-superseded: the current body now describes exactly this group-kind-removal diff and accounts for every file.
    • Block 2 (evidence for wrong repo) — stale-superseded: the current body's go test output is github.com/opencharly/spec/..., the correct repo.
    • Block 3 (footer format deviation) — verified-blocking: the footer still places the tier in the <confidence> slot; re-derived against the current body and confirmed.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@atrawog

atrawog commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

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: *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)*, placing the attribution tier in the parenthetical slot. The validator's own spec (pr-validator.md, item 3) likewise defines the parenthetical as the TIER slot: "fully tested and validated requires the cutover's NEW/CHANGED code paths to have EXECUTED against the fresh rebuild."

Precedent on THIS repo, this wave: opencharly/spec #104 MERGED with the byte-identical footer:

*Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)*

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)
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 9a8f6336ff0d (branch: feat/schema-remove-group-kind)

Security screen: PASS — no secrets, exfiltration, scope-mismatch, or guardrail-weakening. The diff is a clean removal of the group kind from the spec schema.

Checklist: All applicable rules PASS or NA.

Comment dispositions:

  • github-actions[bot] BLOCK (ccdae54) — Block 1 (body mismatched with diff): stale-superseded — the current body describes exactly this group-kind-removal diff and accounts for all 8 files. Block 2 (evidence for wrong repo): stale-superseded — the current body's go test output is github.com/opencharly/spec/..., the correct repo. Block 3 (footer format): verified-non-blocking — see below.
  • github-actions[bot] BLOCK (119fedf) — footer format deviation: verified-non-blocking — the author's RCA (atrawog) cites the project rulebook's PR-body requirement feat(spec): #DistroConfig/#BuilderConfig build-vocabulary containers → CUE-sourced spec (#55 step 3-III producer) #6 verbatim example placing the attribution tier in the parenthetical slot, pr-validator.md item 3 defining that slot as the TIER, and merged precedent feat(spec): Threaded gains the structural declared-fields channel #104 with the byte-identical footer. Given the org's own rulebook defines the parenthetical as the tier slot and a merged precedent exists, the footer is in the org-mandated form; the prior reviewer's literal <confidence>-as-value reading is rebutted.
  • atrawog RCA — verified-non-blocking — consistent with the current body and diff.

Key verifications:

  • A1: body accounts for every file in the diff (node.cue, deploy.cue, _common.cue, charly_methods.go, member_tree_test.go, loader_seam.go, cue_types_gen.go, vocab_gen.go); How-tested names the change-class gate (cue:gen ×2 hash-identical + build/vet/test) with pasted output on the committed tree; attribution tier fully tested and validated justified (changed paths executed live).
  • SDD (B13): schema/*.cue changes are matched by *_gen.go changes in the same commit (cue_types_gen.go, vocab_gen.go); #ResourceKind → ResourceKinds regeneration consistent; no banned @go(-) patterns introduced.
  • R5/B10: kind removed completely (no alias/shim/deprecation); sweep command pasted and consistent with the diff (no surviving "group"/IsGroup() in changed files).
  • R2/B6: seam/arbiter is_group wire fields routed to named consumer PRs (charly CC PR, CC consumer wave) — named-batch routing, not a vague deferral.
  • B16 placement: CORRECT — the schema is the contract boundary; removing the group kind there and deleting the dead IsGroup() predicate is right-layer work.
  • The two post-ccdae54 commits are docs-only (PR-body edits); the code tree is unchanged, so the ccdae54 test evidence is valid for the current head.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 6, 2026 21:06
@github-actions
github-actions Bot merged commit 3877529 into main Sep 6, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 6, 2026
github-actions Bot pushed a commit to opencharly/distro-arch that referenced this pull request Sep 7, 2026
… 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]>
@aitrawog
aitrawog deleted the feat/drop-group-kind branch September 25, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant