Repository navigation
feat(spec): InstallPlan IR discriminator enums (P4-unit-1) - #11
Conversation
Moves the IR discriminator enums out of charly into sdk/spec (ir_enums.go, hand-written): Venue (int,+String), Phase (int,+String), StepKind (string,13), Gate (string,4). Internal execution enums, NOT wire carriers — StepView serializes them as primitives (Venue int / Gate string / Kind string), so no CUE (and Venue/ Phase are int iota enums gengotypes can't express). Matches the ReverseOpKind/Scope precedents in spec. First P4 unit; the InstallPlan struct + step vocabulary follow. Assisted-by: Claude (fully tested and validated)
|
| bed | deploy-add | check-live | update | cleanup | total |
|---|---|---|---|---|---|
check-builder-local |
ok | ok | ok | ok | 71s |
check-local |
ok | ok | ok | ok | 57s |
summary.yml ok: true for every step (fresh CalVer 2026.189.1551). The update step is the fresh-rebuild leg — the IR-enum move is proven end-to-end (loader → IR compiler → builder DEPLOY leg → local deploy → external-plugin execution over the reverse channel → fresh charly update → teardown) with Venue/Phase/StepKind/Gate sourced from sdk/spec.
Merging --rebase after finalizing the merge-time CalVer.
Assisted-by: Claude (fully tested and validated)
…nstallPlan IR discriminator enums move) Assisted-by: Claude (fully tested and validated)
Summary
First P4 unit — begins the InstallPlan IR E-envelope move to sdk. Moves the IR discriminator enums verbatim out of charly into
sdk/spec/ir_enums.go(hand-written):Venue(int + String),Phase(int + String),StepKind(string, 13 kinds),Gate(string, 4 gates).SDD call: these are INTERNAL execution enums, NOT host↔plugin wire carriers — the
StepViewwire struct (deploy_wire.go) serializes them as primitives (Venue int,Gate string,Kind string). So the wire-type-CUE mandate does not apply, andVenue/Phaseareintiota enumscue exp gengotypescannot faithfully express anyway. Hand-written matches the existingReverseOpKind/Scopespec precedents. The charly consumer (delete defs, alias) is the paired superproject PR.Change class
sdk Go — moved internal IR enums (no authored/wire schema surface → no schema-version bump).
How R10-tested
check-builder-localPASS 4/4 +check-localPASS 4/4, golangci-lint 0 both repos, zero warnings.Attribution tier
fully tested and validated
Compliance
Assisted-by: Claude (fully tested and validated)