Skip to content

feat(buildkit): adopt sdk/buildkit vocabulary resolver (P3-unit-2 consumer) - #25

Closed
atrawog wants to merge 2 commits into
mainfrom
feat/sdk-resolvedbox
Closed

atrawog wants to merge 2 commits into
mainfrom
feat/sdk-resolvedbox

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Consumer of P3-unit-2 (producer: sdk v0.2026189.1201, merged 81938e6). The distro/builder vocabulary resolver now lives in sdk/buildkit; charly:

  • trims format_config.go to the Phase/Venue phase-template resolvers + LoadBuildConfigForBox loader glue (Phase/Venue are the in-core IR enums, so they stay);
  • re-exports DistroConfig/BuilderConfig + WrapDistroDef/DistroTagChain (free funcs, zero-churn) via buildkit_aliases.go;
  • renames 3 method-call sites to the exported ResolveInherits/ExpandPackageInheritance (bundle_add_cmd.go/config.go/vm_bootstrap.go + distro_cascade/debootstrap tests);
  • bumps sdk → 81938e6 + go.mod → v0.2026189.1201;
  • (2nd commit) R5 sweep of 2 stale expandPackageInheritance comment refs.

Change class

charly Go (build-config adoption) + submodule/go.mod bump + comment-only R5 sweep.

How R10-tested

  • Verbatim move; charly's golden distro_cascade/format_config/debootstrap tests exercise the resolver + pass → behavior preserved (empirically proves sort.Strings==sortStrings ordering).
  • Bed check-builder-local on FINAL code (merged sdk 81938e6, fresh 2026.189.1051 binary, source frozen) → PASS (steps=4): deploy-add ✓22s · check-live ✓5s · update ✓29s · cleanup ✓7s · zero warnings.

Attribution tier

fully tested and validated (2nd commit rides documentation reviewed).

Compliance

  • R5: charly deletes its resolver copies; git grep resolveInherits|expandPackageInheritance -- charly/ clean (method refs renamed to exported). R3: one importable library. Kernel/plugin boundary: logic moved core→sdk. Producer-first cross-repo. CHANGELOG 2026.189.1133.md.

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 8, 2026 14:05
…sumer)

Consumer of P3-unit-2 (producer: sdk v0.2026189.1201). The distro/builder
vocabulary resolver lives in sdk/buildkit now; charly trims format_config.go to the
Phase/Venue phase-template resolvers + LoadBuildConfigForBox loader glue, re-exports
DistroConfig/BuilderConfig + WrapDistroDef/DistroTagChain via buildkit_aliases.go,
and renames three method-call sites to the exported ResolveInherits/
ExpandPackageInheritance (bundle_add_cmd/config/vm_bootstrap + distro_cascade/
debootstrap tests). Bumps sdk → v0.2026189.1201. Behavior-neutral; golden tests +
check-builder-local bed (4/4 green, fresh rebuild).

Assisted-by: Claude (fully tested and validated)
Comment-only: the method is exported ExpandPackageInheritance in sdk/buildkit now
(P3-unit-2); two doc comments (format_config.go, install_build.go) still named the
old lowercase form. R5 grep clean.

Assisted-by: Claude (documentation reviewed)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly Go (build-config adoption) + submodule/go.mod bump + comment-only R5 sweep

Fresh, independent re-validation against R0–R10 + the loaded skills (/charly-internals:git-workflow, /charly-internals:go, /charly-internals:generate-source). Nearly everything passes — but the PR is not one atomic commit, which is a blocking Hard-Cutover + R5 violation.

Checklist

  • [PASS] 0. security & anti-tampering (T1–T4): pure code-move + sdk bump; no secrets/exfil/scope-mismatch/weakened-gate; sdk gitlink points at the MERGED producer main (verified below); no instructions aimed at the validator
  • [PASS] 1. description complete (template filled, pasted bed evidence)
  • [PASS] 2. change-class gate matches evidence (go test + build:charly + check-builder-local bed re-run; no dry-run/rebuild-alone fraud)
  • [PASS] 3. attribution tier justified (fully tested and validated — resolver-consuming paths exercised by the fresh-rebuild bed + golden tests)
  • [PASS] 4. R0 skills honored (go / generate-source / git-workflow spot-checked)
  • [PASS] 5. R1 — zero warnings across every gate; no flake/transient framing
  • [PASS] 6. R2 — no out-of-scope split
  • [PASS] 7. R3 — resolver single-sourced in sdk/buildkit, consumed via aliases (removes duplication)
  • [PASS] 8. R4 — no ad-hoc workaround
  • [FAIL] 9. R5 hard cutover — SAME-COMMIT sweep violated (see Decision)
  • [PASS] 10. R6/R8/R9 — binary rebuilt (charly version = 2026.189.1205, matches source); no new runtime OS deps; no generation/label change
  • [PASS] 11. R10 — disposable-only, fresh-rebuild, zero-warning; golden distro_cascade/format_config/debootstrap tests are the fail-without-it coverage
  • [PASS] 12. SDD — no CUE-schema change in charly; go test (incl. reproducibility) green; producer sdk owns the generated move
  • [PASS] 13. concurrency — N/A: the moved functions are pure/stateless vocabulary resolvers, no shared-state path touched
  • [FAIL] 14. Hard Cutover — NOT one atomic commit (see Decision)
  • [PASS] 15. kernel/plugin boundary — logic moved core→sdk library; no concrete-kind leak
  • [PASS] 16. disposable-only autonomy — bed is disposable: true
  • [PASS] 17. clean architecture + go gates — gofmt -l . empty, go vet clean, go test ./... green, golangci-lint run ./... = 0 issues
  • [PASS] 18. CHANGELOG present (CHANGELOG/2026.189.1133.md, placeholder)

Decision — CHANGES REQUESTED (blocking)

The cutover ships as two author change-commits, and the second is an R5 completion that belongs in the first:

  • 0a12c44 feat(buildkit): adopt sdk/buildkit vocabulary resolver
  • 6e5bbdd docs(buildkit): sweep stale expandPackageInheritance comment refs (R5)

Empirically, the tree at 0a12c44 fails the R5 grep self-test:

$ git grep -nE '\b(resolveInherits|expandPackageInheritance)\b' 0a12c44 -- charly/
0a12c44:charly/format_config.go:8:  // (... AllFormatNames / expandPackageInheritance / ...)
0a12c44:charly/install_build.go:581:// expanded (at resolve time, expandPackageInheritance) ...

6e5bbdd then sweeps exactly those two comment refs.

  • R5 (item 9): "The SAME commit deletes the old code path … and every reference, docstring, comment … naming a deleted identifier." The identifier-reference sweep was split into a follow-up commit; commit 1's tree is R5-dirty.
  • Hard Cutover / one-atomic-commit (item 14): git-workflow is explicit — "the author's SINGLE change commit … Multiple SEPARATE change commits are forbidden." Because the merge is --rebase (linear, preserves commits — not squash), both commits land on main, and 0a12c44' individually fails the R5 grep self-test — a broken intermediate a git bisect / single-commit git revert would expose. The validator adds only the version-stamp commit and never rewrites author history, so this cannot be remediated at merge.

What the author must do: land this as ONE atomic commit whose tree passes the R5 grep self-test (fold the two comment-only edits into the cutover commit). Force-push is forbidden on any branch, so the non-force path is a fresh single-commit branch + PR (superseding this one). Everything else is green and re-usable as-is.

Assisted-by: Claude (analysed on a live system)

@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by a single-atomic-commit re-land (feat/p3u2-consumer) — same fully-validated content, folding the R5 comment sweep into the cutover commit so the tree passes the R5 grep self-test at every commit (git-workflow one-atomic-commit rule; force-push forbidden). Assisted-by: Claude (fully tested and validated)

@atrawog atrawog closed this Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-resolvedbox branch July 8, 2026 12:17
atrawog added a commit that referenced this pull request Jul 11, 2026
Consumer pointer bump: the `plugins` submodule gitlink `7369724` → `60f9934` (merged
plugins PR #25), which makes the sdk Go-module tag scheme's leading-zeros-stripped rule
explicit across `pr-validator.md` + `git-workflow` — the divergence that produced the
invalid `v0.2026192.0733` tag during the P6 landing.

Documentation-only: the bumped `plugins` commit's own diff is `*.md` only. Adds the
finalized `CHANGELOG/2026.192.0910.md`.

Assisted-by: Claude (documentation reviewed)
github-actions Bot pushed a commit that referenced this pull request Sep 2, 2026
box/omarchy recorded fb7bf641 (pre-#25); advance to distro-omarchy main so the
omarchy box catalog carries the current suite-base + keeper/twin steps
(OMARCHY_PATH env, record-lane layers)

Co-authored-by: atrawog <[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