Skip to content

feat(spec): InstallStep interface (P4-unit-2) - #12

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

atrawog merged 2 commits into
mainfrom
feat/sdk-installstep

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Second P4 unit. Moves the InstallStep interface — the polymorphic element of the InstallPlan IR E-envelope — verbatim out of charly into sdk/spec/install_step.go. It returns ONLY spec types (Kind()StepKind / Scope()Scope / Venue()Venue / RequiresGate()Gate / Reverse()[]ReverseOp — all spec after P4-unit-1).

Placement: homed in sdk/spec (not deploykit, despite the plan's rough wording) — deploykit imports spec, so the interface must be the base; and InstallPlan.Steps []InstallStep (also destined for spec) holds it. The 13 concrete step structs (the step VOCABULARY → sdk/deploykit later) implement spec.InstallStep structurally, so they need no change beyond the charly alias.

Change class

sdk Go — moved IR interface (no schema surface → no schema-version bump).

How R10-tested

  • Verbatim move; charly's golden tests exercise it and pass (structs satisfy spec.InstallStep structurally).
  • Beds (fresh binary, source frozen): check-builder-local PASS 4/4 + check-local PASS 4/4, golangci 0 both repos, zero warnings.

Attribution tier

fully tested and validated

Compliance

  • R3: one importable home. R5: charly deletes the def (paired PR), aliases only. Boundary: IR E-envelope interface → spec. Producer-first. CHANGELOG present.

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 8, 2026 18:43
Moves the InstallStep interface — the polymorphic element of the InstallPlan IR
E-envelope — out of charly into sdk/spec (install_step.go). It returns only spec
types (Kind()StepKind/Scope()Scope/Venue()Venue/RequiresGate()Gate/Reverse()[]ReverseOp,
all spec after P4-unit-1) and belongs with the InstallPlan container that holds a
[]InstallStep. Homed in spec (not deploykit) because deploykit imports spec → the
interface must be the base; the 13 concrete step structs (step vocabulary, deploykit
later) implement spec.InstallStep structurally. Second P4 unit.

Assisted-by: Claude (fully tested and validated)
…nstallStep interface move)

Assisted-by: Claude (fully tested and validated)
@atrawog
atrawog merged commit 07db71b into main Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-installstep branch July 8, 2026 17:08
github-actions Bot pushed a commit that referenced this pull request Oct 14, 2026
…very both sweep closes need (#394)

Two closes of one ruling need the same discovery and R2 forbids two copies: the
`charly-registry` store cutover (#12) sweeps the pre-store per-ref layouts a deleted
writer left INSIDE the store's own tree, and `charly-registry#11` sweeps the
pre-rename `~/.cache/charly/images` root. Discovering orphaned layouts is a property
of the store layout, not of any policy a plugin owns, so it belongs here beside the
store it inspects.

- The predicate is `NamedStores()`'s marker test INVERTED: one `LayoutFile` constant
  read two ways — what is a store at a cache root is junk inside a store.
- The CALLER names the root, because liveness is policy and this is mechanism. The
  function cannot answer "no merged writer still writes this" (`NamedStores()` cannot
  either — it returns exactly the marker-carrying children in question), so the
  contract is the opposite: the caller passes a root in which a marker-carrying child
  cannot be live — a store's own tree (orphan by construction) or a root the
  migration table retired.
- Discovery and sizing only, never deletion: the destructive half stays with the
  surface that also reports it (`--dry-run` first).
- `Orphan.Bytes` counts every file in the tree, the marker included — a size that
  omitted it under-reported a real sweep (measured while writing the first consumer's
  assertion).

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: Andreas Trawoeger <[email protected]>
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