Repository navigation
fix(build): remove /tmp/cue-rdd scratch-binary residue; rewrite stale schema README - #74
Conversation
The pinned-cue bootstrap (Taskfile.yml) and the spec reproducibility test (spec/gen_repro_test.go findCue) consulted /tmp/cue-rdd/cue, an RDD-spike scratch path present since the initial import. A stale binary at that machine-local path silently won over the checksum-verified download and the repo bin/cue, making build and test inputs host-dependent. The checksum-verified pinned download (bootstrap) and the repo bin/cue-or-PATH resolution (findCue) are now the only sources. Verified: the edited task bootstrap-cue checksum-verifies and installs bin/cue v0.16.1; GOWORK=off go mod tidy (no-op) + go mod verify + go build ./... + go vet ./... + go test ./... all pass; TestGenReproducible runs (not skipped) against the repo bin/cue. Assisted-by: Kimi Code (Moonshot K3; documentation reviewed)
schema/README.md still claimed the cue bootstrap prefers a pre-fetched scratch binary — the same /tmp/cue-rdd behavior removed in the parent commit. Updated to the current contract (sdk checkout's bin/cue, else checksum-pinned download). Assisted-by: Kimi Code (Moonshot K3; documentation reviewed)
…3s bed Two repo-tooling inputs depended on host-local scratch state: - taskfiles/Cue.yml bootstrap-cue preferred /tmp/cue-rdd/cue, an RDD-spike scratch binary present since the genesis import; a stale file there silently won over the checksum-verified pinned download. The sdk checkout's sdk/bin/cue fallback and the verified download are now the only sources (sdk-side residue removed in opencharly/sdk#74). - The check-k3s-vm bed's kv-charly-version step probed /tmp/charly-build/charly first, a host scratch path no step ever populates; the || fallback always ran ${CHARLY_BIN} version except on hosts carrying the stale binary. The step now invokes ${CHARLY_BIN} version directly, per the host-side plan-command rule. Verified: task cue:bootstrap-cue resolves the pinned v0.16.1 via sdk/bin/cue; bin/charly box validate exits 0 on the edited charly.yml; YAML parse clean; grep sweep finds no remaining cue-rdd or /tmp/charly-build references outside dated CHANGELOG history. Assisted-by: Kimi Code (Moonshot K3; documentation reviewed)
schema/README.md described the pre-sdk-extraction world: //go:embed in charly/cue_schema.go, generated types in charly/spec, the generator at charly/internal/schemagen, and an enumerated suppressed-defs list that had already drifted. Rewritten to the current contract: schema travels as schema.FS consumed via schemaconcat.ConcatSchema; generated types live in spec/; the generator is internal/schemagen; the superproject task cue:gen wraps this repo's own task (pin-equality gated); the union-suppression section points at the @go(-) source + spec/union_types.go instead of a drifting list. Also folds in the bootstrap claim correction from the scratch-binary removal. Assisted-by: Kimi Code (Moonshot K3; documentation reviewed)
pr-validator — CHANGES REQUESTED ❌Bound head SHA (live Change class (validator-derived): cross-repo — sdk build/test tooling + docs (producer leg; consumer = opencharly/charly#159). No wire/schema/runtime- behavior change; no Checklist
Comments considered: none — the PR carries zero comments. Cross-PR interactions considered:
Validator's independent gate re-run (this session, on the bound head)README rewrite verified claim-by-claim against reality: DecisionFAIL — one blocking finding (item 1), fixable by a PR-body edit (no code change, no head move): The org PR template (
Everything else passed independent re-verification — once the body supplies the mandated sections, push nothing (a body edit does not move the head); the fresh validator re-runs. Assisted-by: Kimi Code (Moonshot K3; analysed on a live system) |
pr-validator — APPROVED ✅Bound head SHA (live This is a FRESH, independent validation round (new context, nothing inherited). I re-derived everything from scratch: protected policy + skills loaded from the protected-main objects (plugins gitlink Change class (validator-derived): cross-repo — sdk build/test tooling + docs (producer leg; consumer = opencharly/charly#159). No wire/schema/runtime-behavior change; no Checklist
Comments considered:
Cross-PR interactions considered:
Validator's independent gate re-run (this session, on the bound head
|
Rename the CHANGELOG placeholder to the merge-time CalVer and re-stamp its H1 (pr-validator Phase 3). Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
pr-validator — LANDED ✅ (Phase 3 outcome)All gated actions were ALLOWED (zero denials). Final landing record:
The consumer leg opencharly/charly#159 now bumps the Assisted-by: Kimi Code (Moonshot K3; analysed on a live system) |
Bumps the sdk submodule to the merged opencharly/sdk#74 squash (9b29e8b, tag v0.2026201.603) — the producer leg of this cutover — and the charly/go.mod require to the same version (in-tree resolution rides the ../sdk replace; the require matters for out-of-tree consumers). The delta also carries the independently landed sdk#72 (F-CLI-NEST); assembly re-gated: go test ./... + go vet clean, golangci-lint 0 issues, task build:binary rebuilt (2026.201.0515), box validate exit 0, non-runtime suite green. Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
…ne-local scratch paths Repo-configuration validation failed on a pristine clone of main, two build/check inputs silently depended on machine-local scratch state, and the venue builder tarball name was a concurrency hazard. Five fixes, one theme (repo tooling/config hygiene): - .agents/skills developer profile re-synced to the plugins gitlink (v2026.200.1901): committed the 292-link profile incl. the previously untracked charly-automation--agent link, so plugins/setup <kimi|codex> --check developer passes on a fresh clone. - scripts/validate-agent-config.py required terms now pin the current build:binary temp-output + atomic-promote contract (-o ../bin/.charly.next, mv bin/.charly.next bin/charly) instead of the stale -o ../bin/charly. - taskfiles/Cue.yml bootstrap-cue no longer prefers /tmp/cue-rdd/cue (an RDD-spike scratch binary that silently won over the checksum-verified pinned download); sdk/bin/cue fallback + verified download are the only sources (sdk-side residue removed in opencharly/sdk#74). - check-k3s-vm bed kv-charly-version invokes ${CHARLY_BIN} version directly (the /tmp/charly-build probe prefix was never populated on any host). - runVenueHomeArtifactBuilder's venue transfer tarball now carries the host staging dir's unique MkdirTemp suffix (venueBuilderTarName), closing the two-concurrent-same-candy-deploys collision; covered by TestVenueBuilderTarNameUniquePerScope. - sdk gitlink bumped to the merged sdk#74 squash 9b29e8b (tag v0.2026201.603; delta also carries the independently merged sdk#72 F-CLI-NEST); charly/go.mod require bumped to v0.2026201.603. Fresh pr-validator: independently re-ran the full gate (plugins/setup x3, validate-agent-config.py, gate_test.py 35/35, gofmt/go vet/go test, golangci-lint 0 issues, task build:binary + content marker, box validate, cue:gen no-op, edited bootstrap-cue live), corrected the PR's "no bed can exercise the venue naming" claim by running the matching disposable bed itself (charly check run check-builder-vm PASS steps=10/236s on the branch head), recovered the mid-validation landing of #160 via a descendant-wins update-branch merge, and re-ran the non-empty-overlap delta re-gate on the merged tree (full battery + check-builder-vm PASS steps=10/278s) — zero warnings throughout. Assisted-by: Kimi Code (Moonshot K3; fully tested and validated)
Summary of changes
The pinned-cue bootstrap and the spec reproducibility test consulted
/tmp/cue-rdd/cue— a leftover RDD-spike scratch path present since theinitial import (
297f4e9). A stale binary at that machine-local pathsilently won over the checksum-verified download and the repo's own
bin/cue, making build and test inputs host-dependent. Separately,schema/README.mdstill described the pre-sdk-extraction layout. Both areremoved/corrected; this is a supply-chain strengthening (a machine-local
binary trust path is deleted, not added).
Concrete edits (the entire diff is accounted for here):
Taskfile.yml: the/tmp/cue-rdd/cuepreference branch ofbootstrap-cueis removed; the checksum-verified pinned download is the only source. The
task
descno longer advertises the scratch binary.spec/gen_repro_test.go:findCuedrops the/tmp/cue-rdd/cuecandidate;it resolves the repo
bin/cueor a PATHcuereporting the pinnedv0.16.1. The stale../../bin/cuecomment is corrected to../bin/cue.schema/README.md: rewritten to the post-extraction contract — the schematravels as
schema.FSconsumed viaschemaconcat.ConcatSchema(no more//go:embedin charly); generated types live inspec/(notcharly/spec); the generator isinternal/schemagen; the superprojecttask cue:genwraps this repo's own task (pin-equality gated); thebootstrap claim matches the checksum-pinned download; the
union-suppression section points at the
@go(-)source +spec/union_types.goinstead of an enumerated list that had alreadydrifted from the schema.
CHANGELOG/2026.201.0449.md: the placeholder entry (merge-time CalVer isfinalized by the pr-validator).
Change class
cross-repo — producer leg. Repos + landing order: sdk (this PR) FIRST →
then superproject opencharly/charly#159 (consumer), which removes the
matching
taskfiles/Cue.ymlresidue and bumps thesdkgitlink to thismerge's commit before its own validation (B2 order).
How R10-tested — exact gate, commands, and pasted output
GOWORK=off go mod tidyno-op +go mod verify+go build ./...+go vet ./...+go test ./...) + live execution of the edited task and edited test +task cue:genclean-regeneration no-op + non-runtime standards (gofmt,golangci-lint, R5 grep self-test). No disposable bed exists that can
exercise sdk dev tooling — per the R10-gate-by-change-class matrix, this
class takes the standalone battery, not a bed roster.
N/A — no disposable bed can exercise sdk build/test tooling; the live execution is the editedbootstrap-cuetask andTestGenReproducible, both run directly (below).go build ./...re-runs from this source tree;task cue:genis a clean no-op; gate output carries ZERO warnings.bootstrap-cuewas executed withbin/cuedeleted (forced the editedbranch: checksum-verified download → pinned binary); the edited
findCueran in
TestGenReproducible(PASS, not skipped) against the repobin/cue. Both edited paths executed.arbiter/lifecycle/lock change.
(Independently re-run and confirmed by the fresh pr-validator on the bound
head
9282617— see its verdict comment.)Attribution tier
analysed on a live system — the edited task and edited test executed live
against the rebuilt tree, but no disposable-bed roster applies to this class.
(The branch commits carry the earlier, more conservative
documentation reviewedtrailer — an under-claim this body corrects; the squash-mergetrailer records the earned tier.)
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)git-workflow+strict-policy+go+checkloaded bypath before any candidate action; this body follows the org template and
the B2 producer→consumer order they mandate.
/tmp/cue-rdddependence was root-causedas RDD-spike residue (genesis import
297f4e9), not dismissed asharmless; every gate output above is zero-warning.
schema/README.mdscratch-binaryclaim) was fixed in THIS cutover; the matching superproject
taskfiles/Cue.ymlresidue is the paired consumer leg feat(loaderkit): root-level remote candy name derivation (the candy de-submodule cutover) #159, named andsequenced, not parked.
repo; no second bootstrap mechanism introduced.
non-deterministic source instead of working around it.
git grep 'cue-rdd' -- . ':!CHANGELOG'→ zerohits; no transitional/dual-mode branch left (the
elifscratch path isgone entirely).
appended commits only.
test-candidate list + docs); the live execution proof is the edited
task/test run above.
go build ./...from this tree; no new OSdeps.
TestGenReproducibleexercises the editedfindCueand FAILS without the fix's resolution contract (it runs, notskips, against the repo
bin/cue); the editedbootstrap-cuewas executedfrom a forced-clean state.
live (scratch path took precedence before the fix; gone after). ADE N/A —
no candy change. SDD —
task cue:genclean-regeneration no-op confirmed;no schema edit.
squash commit on main.
touches dev tooling, a test, and docs only.
gofmt -l .empty,golangci-lint run ./...0 issues,go vetclean,go test ./...green.CHANGELOG/2026.201.0449.mdstaged (placeholder CalVer —the pr-validator finalizes it at merge).
Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)