Skip to content

refactor(build): repoint pure-compute helpers to sdk; delete core copies (P8b-followup) - #80

Merged
atrawog merged 4 commits into
mainfrom
feat/p8b-followup
Jul 12, 2026
Merged

atrawog merged 4 commits into
mainfrom
feat/p8b-followup

Conversation

@atrawog

@atrawog atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

P8b-followup (superproject half) — pure-compute helpers → sdk libraries

The pure-compute build helpers moved into the sdk libraries (opencharly/sdk#32, tag v0.2026193.1801); charly core repoints to aliases/shims and DELETES the core copies (R5). Producer-first: the sdk half landed + tagged first.

  • installDirAtomic → var = kit.InstallDirAtomic
  • formatPhaseTemplate/builderPhaseTemplate → buildkit.* aliases (+ 2 stale "stay charly-side" header R1 sweeps); LoadBuildConfigForBox/LoadDefaultBuildConfig STAY (loader)
  • intermediates.go DAG pure funcs → sdk/deploykit via the candyModelMap adapter (new intermediates_shim.go, graph_shim pattern); the *Config-reading RESOLVE orchestration (ComputeIntermediates family) STAYS core; no-core-caller funcs (graphReaches/topoSortByPopularity/sortByPopularity/addTransitiveDeps) fully DELETED
  • stepEmitSystemPackages render → buildkit.RenderSystemPackagesFragment; the host-engine-coupled emitters STAY
  • sdk gitlink → merged sdk main; charly/go.mod require → v0.2026193.1801

R10 gate — byte-parity against the RELEASED sdk

charly box generate -C box/fedora --tag 2026.001.0000 (46 Containerfiles incl. every auto-intermediate) resolving the tagged sdk (gitlink f0f37fab, not a local override): BYTE-IDENTICAL hash 25852f20… — the intermediate DAG is unchanged. (The --tag pin is load-bearing; the unpinned ARG BASE_IMAGE CalVer default is clock-derived.) Independently confirmed by team-lead (fresh sub-agent, clean 933730e PRE). R5 grep self-test clean (no stale core defs). go test ./charly/... ok · golangci-lint 0 issues · gofmt clean.

Assisted-by: Claude (fully tested and validated)

https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif

atrawog added 2 commits July 12, 2026 20:09
…ies (P8b-followup)

The superproject half of #24. The pure-compute build helpers moved into the sdk libraries
(opencharly/sdk v0.2026193.1801); charly core repoints to aliases/shims and DELETES the core
copies (R5 grep clean — the no-core-caller funcs graphReaches/topoSortByPopularity/
sortByPopularity/addTransitiveDeps are fully removed; the rest reach sdk via the candyModelMap
adapter). installDirAtomic->kit; formatPhaseTemplate/builderPhaseTemplate->buildkit (+2 stale
header R1 sweeps); the intermediate-DAG pure funcs->deploykit (the *Config RESOLVE orchestration
STAYS core); stepEmitSystemPackages render->buildkit.RenderSystemPackagesFragment.

sdk gitlink -> merged sdk main; charly/go.mod require -> v0.2026193.1801. Behaviour-neutral:
charly box generate is BYTE-IDENTICAL against the RELEASED sdk (pinned --tag, box/fedora 46
Containerfiles incl. every auto-intermediate, hash 25852f20 - independently confirmed).

Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
@atrawog

atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

(Fresh independent evaluation (I am not the author T-P8b). I re-derived every check and re-ran the full runtime gate — including a from-scratch byte-parity build of both legs. The pre-screen was a courtesy, not a substitute.)

Change class: charly Go + sdk gitlink bump — the #24 superproject consumer half (repoints the relocated helpers to sdk aliases/shims, deletes the core copies, bumps the sdk gitlink). No check bed; the byte-parity IS the behavior-equivalence proof. Head 01bf1f0; base main 5f2d1368 (not behind; #79 still open).

The load-bearing checks (all PASS on my re-run)

  • sdk resolution: gitlink records f0f37fab, charly/go.mod requires v0.2026193.1801, replace => ../sdk → the build resolves the released tagged sdk (the one I validated in sdk#32), not a local override. ✔

  • R5 grep self-test (no stale core def): graphReaches/topoSortByPopularity/sortByPopularity/addTransitiveDeps fully deleted (0 core defs, no caller); installDirAtomic = var kit.InstallDirAtomic; formatPhaseTemplate/builderPhaseTemplate = var buildkit.*; the intermediates funcs are thin deploykit.* delegating shims via candyModelMap; stepEmitSystemPackages does the host-coupled wire-view reconstruction then delegates the pure render to buildkit.RenderSystemPackagesFragment. No stale duplicated core body survives. ✔

  • Byte-parity — method-independent, re-run by me: I built both legs from source and generated box/fedora at the pinned --tag 2026.001.0000:

    (The reference 25852f20… is the author/lead fingerprint under a different hashing convention — I did not match that specific string, but a direct per-file diff of the two generate outputs is a stronger, collision-proof form of the same proof: the DAG is unchanged.)

Gates I re-ran (verbatim)

R5 grep                         -> graphReaches/topoSort/sortByPop/addTransitiveDeps: 0 core defs;
                                   all other moved funcs: thin alias/delegating shim. CLEAN.
sdk gitlink                     -> f0f37fab ; go.mod require -> v0.2026193.1801 ; replace => ../sdk
go build (PRE + POST)           -> both EXIT 0
go test ./charly/... -count=1   -> ok charly 64.331s + pluginsgen; EXIT 0; 0 FAIL/panic
byte-parity (PRE vs POST)       -> 46/46 Containerfiles BYTE-IDENTICAL (diff -q 0 differ; sha256 equal)
gofmt -l .                      -> clean
go vet ./...                    -> OK
golangci-lint run ./...         -> 0 issues

Decision: APPROVED. The relocation is behavior-preserving — proven by a from-scratch byte-identical generate of both the pre-move and post-move trees (not merely a matched hash string) — the deletions are complete (no stale core def), the shims delegate correctly to the released sdk, and the *Config-reading RESOLVE half stays in core (mode-purity). go test / build / gofmt / vet / golangci all green on my own run. Finalizing the merge-time CalVer, merging --squash, and tagging. With this the #24 pure-compute relocation is fully landed (producer sdk#32 → consumer #80, git-workflow B6).

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

atrawog added 2 commits July 12, 2026 20:29
Evaluator version stamp for PR #80 — the #24 superproject half: repoint the
relocated pure-compute build helpers to the sdk libraries and delete the core
copies. Renames the placeholder CHANGELOG to the merge-time CalVer and aligns
its H1. No behavior change.

Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_014ykuqUwq8WCYeBmmzm5VDk
@atrawog
atrawog merged commit 2f949a0 into main Jul 12, 2026
@atrawog
atrawog deleted the feat/p8b-followup branch July 12, 2026 18:34
atrawog added a commit that referenced this pull request Jul 17, 2026
sdk PR #63 (status-substrate wire narrowing) merged as 1368316 via squash;
plugins PR #80 (K5 status-subsystem skill sync) merged as 1a14544 via
squash. Both squashes mint new commits distinct from the branch-tip
commits this PR previously pinned (62894a3 / 6e28c72, both now orphaned,
unreachable-from-main commits). Re-bumped to the real merged SHAs.
Verified the assembled build is clean with both pins.

Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)
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