Skip to content

feat(spec): adopt sdk/spec InstallPlan IR enums (P4-unit-1 consumer) - #31

Merged
atrawog merged 2 commits into
mainfrom
feat/sdk-ir-enums
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/sdk-ir-enums

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Consumer of P4-unit-1 (producer: sdk v0.2026189.1556, merged e4a9598). The IR discriminator enums Venue/Phase/StepKind/Gate live in sdk/spec now; charly:

  • deletes their definitions from install_plan.go;
  • re-exports them via type + const aliases — mirroring the existing Scope = spec.Scope alias block already in the same file (zero-churn across the whole deploy/step/build surface);
  • bumps sdk → e4a9598 + go.mod → v0.2026189.1556.

Change class

charly Go (IR-enum adoption) + submodule/go.mod bump.

How R10-tested

  • Verbatim move; golden go test ./... green (zero-churn aliases prove behavior-neutral).
  • Beds on final code (merged sdk e4a9598, fresh binary, source frozen): check-builder-local PASS 4/4 + check-local PASS 4/4, golangci-lint 0, zero warnings.

Attribution tier

fully tested and validated

Compliance

  • R5: git grep 'type Venue int|type StepKind string' -- charly/ returns none (defs in sdk/spec; charly aliases only). R3: one importable home. Producer-first. CHANGELOG 2026.189.1401.md.

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 8, 2026 18:01
Consumer of P4-unit-1 (producer: sdk v0.2026189.1556). The IR discriminator enums
Venue/Phase/StepKind/Gate live in sdk/spec now; charly deletes their definitions
from install_plan.go and re-exports them via type + const aliases (mirroring the
existing Scope = spec.Scope alias block in the same file) — zero-churn across the
whole deploy/step/build surface. Bumps sdk → v0.2026189.1556. Behavior-neutral;
golden tests + check-builder-local + check-local beds green.

Assisted-by: Claude (fully tested and validated)
… sdk/spec IR enums consumer)

Validator-finalized the CHANGELOG placeholder to the merge-time CalVer. Pure CHANGELOG rename; the runtime cutover (charly install_plan.go enum type-def deletion + type/const alias re-export mirroring the Scope block + sdk -> v0.2026189.1556) rides the author commit 2f35605, certified fully tested and validated (go build/vet/test/gofmt/golangci-lint 0-issue clean + check-builder-local PASS 4/4 + check-local PASS 4/4 fresh-rebuild disposable beds run concurrently, zero warnings).

Assisted-by: Claude (documentation reviewed)

Claude-Session: https://claude.ai/code/session_01WW2VeHbqQ5h2FUzj9h3jai
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go (IR-enum adoption: type/const alias relocation) + submodule/go.mod bump.

Security screen (T1–T4): PASS. No self/security-machinery edit (spec, CLAUDE.md, hooks, branch-protection untouched); description↔code match exactly (enum relocation, nothing more); no secrets/exfiltration/network/new deps; go.mod sdk bump v0.2026189.1328 → v0.2026189.1556 verified legitimate (== merged sdk main HEAD e4a9598 == annotated tag v0.2026189.1556 deref target). No embedded instructions to the validator.

Checklist (independently re-derived, not taken on the author's word):

  • [PASS] 0. security & anti-tampering — clean (above).
  • [PASS] 1. description complete — filled template; pasted-evidence claims re-verified live.
  • [PASS] 2. change-class gate (R7/R10) — runtime class; I rebuilt the binary from the frozen final source (charly version 2026.189.1601, no charly/*.go newer than binary) and ran BOTH disposable beds — not a dry-run/rebuild-alone.
  • [PASS] 3. attribution tier — fully tested and validated justified: I re-ran the full fresh-rebuild R10, the changed deploy-IR paths (StepKindExternalPlugin / StepKindBuilder / Venue / Gate) executed live, both outputs pasted.
  • [PASS] 4. R0 skills — /charly-internals:install-plan (IR), /charly-internals:go+/charly-internals:plugin (spec home), /charly-internals:git-workflow: alias-relocation of internal IR enums honors each.
  • [PASS] 5. R1 zero-warning — bed + go-gate output scanned; zero warnings/errors (only "0 failed" pass-reports).
  • [PASS] 6. R2 no split — no deferred/pre-existing carve-out.
  • [PASS] 7. R3 no dup — one importable home in sdk/spec/ir_enums.go; charly aliases only.
  • [PASS] 8. R4 no workaround — none.
  • [PASS] 9. R5 hard cutover — git grep -nE '^type (Venue|Phase|StepKind|Gate) (int|string)$|func \(v Venue\) String|func \(p Phase\) String' -- charly/ → EMPTY; alias block defines all 4 types + all 23 consts (= spec.X); no dual-mode/transitional path.
  • [PASS] 10. R6/R8/R9 — binary rebuilt on target, charly version matches source, pkg/arch restored; no OCI-label/Containerfile surface changed.
  • [PASS] 11. R10 disposable + fresh-rebuild + coverage — both beds disposable: true; fresh CalVer 2026.189.1606; golden go test ./... (42s) proves behavior-neutrality (aliases must resolve to spec.X to compile).
  • [PASS] 12. RDD/ADE/SDD — the hand-written (non-CUE) enums are correctly the standing exception: internal execution enums, not wire carriers (StepView serializes them as primitives; int-iota Venue/Phase are inexpressible by cue exp gengotypes). task cue:gen unaffected.
  • [PASS] 13. concurrency mandate — IR spans a shared-state (deploy) path, so I ran both beds CONCURRENTLY at max parallelism; both PASS under simultaneity, no idle/serial pass invoked.
  • [PASS] 14. hard cutover — ONE atomic author commit (2f35605); only my Phase-3 version-stamp added.
  • [PASS] 15. kernel/plugin boundary — no concrete-kind leak; these are generic-Envelope IR discriminators (E), correctly homed in sdk/spec and consumed via alias.
  • [PASS] 16. disposable-only autonomy — destroy/rebuild only on disposable: true beds.
  • [PASS] 17. clean architecture + go gates — re-ran myself: go build 0, go vet 0, go test ./... ok, gofmt -l . empty, golangci-lint v2.12.2 0 issues.
  • [PASS] 18. CHANGELOG present — finalized to merge-time CalVer 2026.189.1610.

Bed evidence (my fresh run 2026.189.1606):

  • check-builder-local: 4/4 steps ok: true (deploy-add · check-live · update · cleanup), total 74s.
  • check-local: 4/4 steps ok: true, total 60s; check-live probes incl. examplestep-deploy-marker (ExternalPluginStep→OpExecute over the E3b reverse channel) PASS.

Decision: Byte-for-byte behavior-neutral relocation of the InstallPlan IR discriminator enums to sdk/spec (producer sdk v0.2026189.1556 merged e4a9598), re-exported via = spec.X type+const aliases mirroring the existing Scope block. Submodule bump proven == merged sdk main == tag target. All gates green, concurrent beds green, zero warnings. Finalized as CalVer 2026.189.1610, merged --rebase, tag v2026.189.1610.

Assisted-by: Claude (fully tested and validated)

@atrawog
atrawog merged commit 22f703a into main Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-ir-enums branch July 8, 2026 16:14
atrawog added a commit that referenced this pull request Jul 12, 2026
…ge model (#67)

Documentation-only. The superproject half of the two-gate merge-authorization
correction (producer plugins #31 merged first, B2 order).

- CLAUDE.md Post-Execution point 3: corrected to the proven two-gate model. Keeps
  the landing-authorization POLICY; removes the false "steers the classifier /
  NEITHER Self-Approval NOR Merge Without Review" framing. States the operative
  mechanism accurately: permissions.allow clears the success STATUS POST only; the
  classifier's Merge-Without-Review gate is cleared solely by an operator
  autoMode.allow rule in USER/MANAGED settings (never CLAUDE.md prose, never
  permissions.allow, never an agent self-grant). Points at git-workflow B5.
- plugins gitlink 04316ce6 -> 118a4e7 (plugins #31, all-*.md).
- CHANGELOG/2026.193.0931.md.

Assisted-by: Claude (documentation reviewed)
atrawog added a commit that referenced this pull request Jul 15, 2026
… redesign marshal (#67)

feat(deploy)!: K5-Unit-1 Option A — clean kit of R-item, shrink seam, redesign marshal (#67)

The K5-Unit-1 cutover moves the deploy state-model body from `charly/` core into
`sdk/deploykit` (a kind-blind mechanism kit). The original move contaminated the
kind-blind kit with a deploy-kind-specific transform (`MarshalBundleNodeLegacy`)
and threaded FOUR core-coupled ops through the `DeployStateHost` seam. Option A
fixes that incomplete-seam violation.

SDK leg (sdk PR #55, merged 9ec6940, tag v0.2026196.1147):
- Removes `MarshalBundleNodeLegacy` from `sdk/deploykit` — the R-item that
  contaminated the kind-blind kit.
- Removes `MigrateDeployEntity` + `LatestSchemaVersion` +
  `AcquireDeployConfigLock` from the `StateHostMechanisms` seam.
- Collapses `LatestSchemaVersion` → `kit.LatestSchemaVersion()` directly;
  `AcquireDeployConfigLock` → `kit.AcquireFileLock(path+".lock", true)` directly.
- Redesigns `SaveBundleConfig` as a kind-blind shell taking a `marshalNode`
  callback (version-stamp + provides-marshal + write-temp-rename + fail-safe
  re-check).
- Shrinks the seam from 4 ops to 1 op (`LoadUnifiedBundleConfig` — K1-gated,
  dies when K1 relocates LoadUnified to loaderkit, task #31).

Super leg (this PR):
- Fuses `MarshalBundleNodeLegacy` + `migrateDeployEntity` into ONE clean
  canonical `marshalBundleNode` in `charly/deploy_nodeform.go`.
- Adds `saveBundleConfigNodeForm(dc)` — the ONE `charly/` helper (R3) supplying
  `marshalDeployNode` as the callback.
- Updates ~12 `charly/` `SaveBundleConfig` call sites →
  `saveBundleConfigNodeForm`.
- Registers ONLY `LoadUnifiedBundleConfig` in `deploy_state_host.go` init (1-op seam).
- Deletes `migrateDeployEntity` (dead after fusion — R5).
- Bumps the `sdk` gitlink to the merged Option A sdk commit `9ec6940` +
  `charly/go.mod` require `v0.2026196.1147`.

Net core-LOC NEGATIVE (494 insertions, 1027 deletions). IMPORT-PURITY preserved
(`deploy_nodeform.go` imports spec+yaml.v3 only; `deploy_state_host.go` uses the
pre-existing `deploykit` import directly — body-move exception). ZERO-ALIASES
preserved (the alias file shrank; no new `charly/*_aliases.go`). The marshal +
helper + ~12 deploy-lifecycle consumers live in `charly/` core until K4 moves
them to their plugin homes (plugin-bundle / plugin-deploy-pod / plugin-check) —
tracked K4-exit inventory (task #52), not permanent residue.

R10: 5 disposable beds CONCURRENTLY (check-sidecar-pod, check-charly-vm,
check-structkind, check-substrate, check-group) — all exit 0, zero warnings,
fresh-rebuild (`update` step) on each. The changed deploy state-model paths
executed live on every bed's deploy-add → config → update route. Delta re-gate
after merging main (#123): go build/vet/gofmt/test/lint all clean, file overlap
EMPTY.

Assisted-by: Claude GLM 5.2 Cloud (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Sep 10, 2026
… seam (#579)

The namespace-qualified (git-linked) entity reference seam (the RCA'd
divergence between the load-time validator and the runtime resolver):

- sdk v0.2026251.531 → v0.2026253.1714 (ResolveEntityRef #246 + the
  namespace-aware runtime resolution #247)
- spec v0.2026251.1735 → v0.2026253.1700 (the deploy from: regex allows the
  ns.entity form, #127)
- plugin-vm v0.2026253.830 → v0.2026253.1802 (the namespace-qualified vm
  entity resolution #31 + the clone-drive leaf #32 + the entity-keyed leaf
  paths #33)

Effect: EVERYTHING in charly is referenceable — locally AND via git-linked
imports (ns.entity) — validated once, resolved everywhere. The X3 spike
(from: omarchy.check-charly-omarchy-vm:golden) proves it end to end.
aitrawog added a commit that referenced this pull request Sep 28, 2026
…d bound too)

The pinned v2026.271.0852 carries only the #31 gate-notice exclusion; v2026.271.0909
also carries #32 (the assembler BOUNDS the comment thread). Advancing the weld so
the engine has BOTH INCONCLUSIVE-class fixes.

Refs #712.
github-actions Bot pushed a commit that referenced this pull request Sep 28, 2026
…hread bound) (#726)

main welds v2026.271.0852 (the #31 gate-notice exclusion). v2026.271.0909 also carries
#32 — the assembler BOUNDS the comment thread (the measured ~80% amplifier of the
INCONCLUSIVE collapse: the same review over a trimmed thread returns a clean verdict).
Advance the weld so the engine has BOTH fixes.

Refs #712.
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