Skip to content

feat(cutover-c3): stage:/parallel: schema — the shared stage step modifier + the member-concurrency substrate scalar - #116

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/cc3-stage-parallel
Sep 7, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/cc3-stage-parallel

Conversation

@atrawog

@atrawog atrawog commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Cutover C task 3 (CC-3) — the stage:/parallel: schema. This is the FIRST PR of the CC-3 wave (spec → sdk → charly → umbrella).

stage: — the shared STAGE-GROUPING step modifier (schema/_common.cue):

  • #Op gains a shared modifier stage?: string & =~"^[^.]+$" (singular, dot-free — dots are reserved for dotted-path addressing, like deployment keys).
  • When a bed carries stages, the check walk groups steps by stage and executes the stage groups in first-seen order; within a stage, steps on DIFFERENT members run as INDEPENDENT Runner instances CONCURRENTLY (A4 — never share one Runner); same-member steps keep authored order.
  • All-or-nothing per bed: if any step of a bed carries stage:, every step of that bed must (validated at load — the SDK PR).

parallel: — the substrate scalar covering the deploy's members (schema/deploy.cue):

  • #Deploy gains parallel?: bool beside disposable:.
  • When true: whole-member-plan concurrency (each member's plan on an INDEPENDENT Runner). Does NOT interact with stage: — stages dominate.

Generated + tests:

  • task cue:gen regenerated: Op.Stage, Deploy.Parallel, vocab AuthoringVerbs/OpFields gain stage.
  • New spec/stage_parallel_cue_test.go: CUE-level typing gates (dotted stage rejected, empty stage rejected, non-bool parallel rejected; valid values accepted) + yaml round-trips for both new generated fields.

How tested

$ cd spec && go build ./...           # PASS (all packages)
$ go test ./...                       # PASS (18 packages ok)
$ go test ./spec/ -run 'TestOpStage|TestDeployParallel|TestDeployNodeParallel' -count=1 -v
  → all subtests PASS (reject cases: dotted stage, empty stage, parallel "yes", parallel 1)
$ gofmt -l spec/ schema/              # clean

task cue:gen re-run is reproducible: TestGenReproducible (spec/gen_repro_test.go) passed in the suite.

Rulebook compliance

  • R3 (no duplication): the schema is the single source; the generated Go + vocab come from cue:gen only.
  • R5 (no legacy): purely additive — nothing retired.
  • The walk + load validation + charly consumers land in the follow-up PRs of this wave (sdk → charly → umbrella), per the CC-3 wave order.

Change classification

  • Change class: schema/additive (spec: new optional fields; generated code; tests)
  • Verification gate: go build ./... + go test ./... green on the final tree; cue:gen reproducibility test green
  • Attribution tier: fully tested and validated

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

…ifier + the member-concurrency substrate scalar

#Op gains the shared STAGE-GROUPING step modifier stage: (a dot-free string): when a bed carries stages, the check walk groups steps by stage and executes the stage groups in first-seen order; within a stage, steps on DIFFERENT members run as INDEPENDENT Runner instances CONCURRENTLY (A4). #Deploy gains the parallel: substrate scalar beside disposable: covering the deploy's members: whole-member-plan concurrency when true; does not interact with stage: (stages dominate).

- schema/_common.cue: stage?: string & =~"^[^.]+$" on #Op shared modifiers
- schema/deploy.cue: parallel?: bool beside disposable: (the substrate scalar)
- cue:gen regenerated (Op.Stage, Deploy.Parallel, vocab AuthoringVerbs/OpFields)
- validation tests: CUE-level typing gates (dotted/empty stage rejected, non-bool parallel rejected) + yaml round-trips for both new generated fields
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: ddb46d33de392b1e822b2487be755a2a79f17486 (branch: feat/cutover-c3)

Security screen: PASS — no embedded directives, no scope mismatch (all 5 files accounted for in the body), no secrets/exfiltration/network, no weakened guardrails, no supply-chain changes. Purely additive schema + generated code + tests.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for every file; gate (go build ./... + go test ./... + cue:gen reproducibility) matches the schema/additive change class; Assisted-by: footer present in exact form; "fully tested and validated" justified — the new stage:/parallel: fields are exercised by the new tests against the fresh build.
  • R2/B15: follow-up walk/load-validation work is routed to the NAMED CC-3 wave (sdk → charly → umbrella), not a vague deferral; one atomic commit in the spec repo.
  • R3/R5: schema is single source; purely additive, nothing retired.
  • SDD: schema/*.cue changes are matched by *_gen.go + vocab_gen.go changes in the same commit; no @go(-) tags; no hand-written schema-shaped types.
  • B12: new stage_parallel_cue_test.go provides coverage that would fail without the new fields (dotted/empty stage rejected, non-bool parallel rejected, yaml round-trips); test names and -run regex in the body are internally consistent with the diff.
  • B16 placement: CORRECT — wire shapes belong in spec, CUE-first; no alias files, no core imports of sdk kits.
  • B18: gofmt-clean; vocab additions alphabetically placed; no lint-visible issues.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 7, 2026 09:03
@github-actions
github-actions Bot merged commit 9ad57dd into main Sep 7, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 7, 2026
@aitrawog
aitrawog deleted the feat/cc3-stage-parallel 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