Skip to content

fix(build): remove /tmp/cue-rdd scratch-binary residue; rewrite stale schema README - #74

Merged
atrawog merged 5 commits into
mainfrom
feat/agent-config-drift-repair
Jul 20, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/agent-config-drift-repair

Conversation

@atrawog

@atrawog atrawog commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

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 the
initial import (297f4e9). A stale binary at that machine-local path
silently won over the checksum-verified download and the repo's own
bin/cue, making build and test inputs host-dependent. Separately,
schema/README.md still described the pre-sdk-extraction layout. Both are
removed/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/cue preference branch of bootstrap-cue
    is removed; the checksum-verified pinned download is the only source. The
    task desc no longer advertises the scratch binary.
  • spec/gen_repro_test.go: findCue drops the /tmp/cue-rdd/cue candidate;
    it resolves the repo bin/cue or a PATH cue reporting the pinned
    v0.16.1. The stale ../../bin/cue comment is corrected to ../bin/cue.
  • schema/README.md: rewritten to the post-extraction contract — the schema
    travels as schema.FS consumed via schemaconcat.ConcatSchema (no more
    //go:embed in charly); generated types live in spec/ (not
    charly/spec); the generator is internal/schemagen; the superproject
    task cue:gen wraps this repo's own task (pin-equality gated); the
    bootstrap claim matches the checksum-pinned download; the
    union-suppression section points at the @go(-) source +
    spec/union_types.go instead of an enumerated list that had already
    drifted from the schema.
  • CHANGELOG/2026.201.0449.md: the placeholder entry (merge-time CalVer is
    finalized 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.yml residue and bumps the sdk gitlink to this
merge's commit before its own validation (B2 order).

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: sdk standalone battery (GOWORK=off go mod tidy no-op + go mod verify + go build ./... + go vet ./... +
    go test ./...) + live execution of the edited task and edited test +
    task cue:gen clean-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.
  • Eval beds run: N/A — no disposable bed can exercise sdk build/test tooling; the live execution is the edited bootstrap-cuetask andTestGenReproducible, both run directly (below).
  • Fresh rebuild: R9 — go build ./... re-runs from this source tree;
    task cue:gen is a clean no-op; gate output carries ZERO warnings.
  • Did the CHANGED code path execute live? yes — the edited
    bootstrap-cue was executed with bin/cue deleted (forced the edited
    branch: checksum-verified download → pinned binary); the edited findCue
    ran in TestGenReproducible (PASS, not skipped) against the repo
    bin/cue. Both edited paths executed.
  • Concurrency (shared-state changes only): N/A — no loader/ledger/store/
    arbiter/lifecycle/lock change.
$ rm sdk/bin/cue && (cd sdk && task bootstrap-cue)
bootstrap-cue: downloading https://github.com/cue-lang/cue/releases/download/v0.16.1/cue_v0.16.1_linux_amd64.tar.gz
/tmp/.../cue_v0.16.1_linux_amd64.tar.gz: OK          # sha256 verified
bootstrap-cue: bin/cue is cue version v0.16.1
$ GOWORK=off go mod tidy && git status --short       # (empty — no-op)
$ GOWORK=off go mod verify                           # all modules verified
$ GOWORK=off go build ./...                          # OK
$ GOWORK=off go vet ./...                            # OK
$ GOWORK=off go test ./...                           # all packages ok
$ GOWORK=off go test ./spec/ -v -run 'Repro'
--- PASS: TestGenReproducible (0.46s)                # ran, NOT skipped
$ GOWORK=off task cue:gen && git status --short      # (empty — clean regeneration)
$ gofmt -l .                                         # (empty)
$ golangci-lint run ./...                            # 0 issues.
$ git grep -n 'cue-rdd' -- . ':!CHANGELOG'           # zero hits (R5 self-test)

(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 reviewed trailer — an under-claim this body corrects; the squash-merge
trailer records the earned tier.)

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: git-workflow + strict-policy + go + check loaded by
    path before any candidate action; this body follows the org template and
    the B2 producer→consumer order they mandate.
  • R1 RCA + zero warnings: the /tmp/cue-rdd dependence was root-caused
    as RDD-spike residue (genesis import 297f4e9), not dismissed as
    harmless; every gate output above is zero-warning.
  • R2 no out-of-scope: the R5 sibling (schema/README.md scratch-binary
    claim) was fixed in THIS cutover; the matching superproject
    taskfiles/Cue.yml residue is the paired consumer leg feat(loaderkit): root-level remote candy name derivation (the candy de-submodule cutover) #159, named and
    sequenced, not parked.
  • R3 no duplication: one checksum-verified download path remains per
    repo; no second bootstrap mechanism introduced.
  • R4 no workaround: no sleep/retry/env-shim; the fix DELETES the
    non-deterministic source instead of working around it.
  • R5 hard cutover + grep: git grep 'cue-rdd' -- . ':!CHANGELOG' → zero
    hits; no transitional/dual-mode branch left (the elif scratch path is
    gone entirely).
  • R6 git safety: no destructive git action taken; feat branch advanced by
    appended commits only.
  • R7 runtime gate: N/A — no runtime-affecting change (build tooling +
    test-candidate list + docs); the live execution proof is the edited
    task/test run above.
  • R8 artifact invariants: N/A — no generation/Containerfile/label change.
  • R9 binary == source + deps: go build ./... from this tree; no new OS
    deps.
  • R10 disposable + coverage: TestGenReproducible exercises the edited
    findCue and FAILS without the fix's resolution contract (it runs, not
    skips, against the repo bin/cue); the edited bootstrap-cue was executed
    from a forced-clean state.
  • RDD / ADE / SDD: RDD — the machine-local override behavior was proven
    live (scratch path took precedence before the fix; gone after). ADE N/A —
    no candy change. SDD — task cue:gen clean-regeneration no-op confirmed;
    no schema edit.
  • Hard cutover: one atomic cutover; no TODO/deferred scope; lands as one
    squash commit on main.
  • Kernel/plugin boundary law: N/A — no core capability change; the diff
    touches dev tooling, a test, and docs only.
  • Disposable-only autonomy: N/A — no destroy/rebuild of any target.
  • Clean architecture + Go gates: gofmt -l . empty, golangci-lint run ./... 0 issues, go vet clean, go test ./... green.
  • CHANGELOG: CHANGELOG/2026.201.0449.md staged (placeholder CalVer —
    the pr-validator finalizes it at merge).

Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)

atrawog added 2 commits July 20, 2026 06:50
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)
atrawog added a commit to opencharly/charly that referenced this pull request Jul 20, 2026
…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)
@atrawog atrawog changed the title fix(build): remove /tmp/cue-rdd scratch-binary residue fix(build): remove /tmp/cue-rdd scratch-binary residue; rewrite stale schema README Jul 20, 2026
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Bound head SHA (live git ls-remote origin refs/heads/feat/agent-config-drift-repair): 92826170f37cae73aabe6e58b7f95094cdfc4c9d
Base (live refs/heads/main): 76df6c096c7698d186c2d4a0f7c4ecf86e934c3a

Change class (validator-derived): cross-repo — sdk build/test tooling + docs (producer leg; consumer = opencharly/charly#159). No wire/schema/runtime- behavior change; no disposable: true bed can exercise the sdk's dev tooling, so the gate is the sdk standalone battery + live execution of the edited task/test + non-runtime standards for the docs.

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4): no exfiltration/secrets/new deps; the diff removes a machine-local binary trust path (/tmp/cue-rdd/cue silently winning over the checksum-verified download) — a supply-chain strengthening; no scope mismatch (all 4 files accounted); no attempt to manipulate the validator; not a self-modifying-security change.
  • [FAIL] 1. Description complete (filled template MANDATORY). The body omits two template-mandated sections (details in Decision): the Harness rulebook compliance section (every applicable R0–R10 + pillars rule with a one-line HOW or N/A — <reason>) and the Attribution tier section with its evidence-based justification; the How R10-tested block lacks the required sub-statements (disposable-target N/A, fresh-rebuild/R9 N/A, explicit "changed code path executed live", concurrency N/A); the change-class line is not one of the canonical tokens (cross-repo here). All four recently merged sdk PRs (fix(spec)!: restore the 4 live deploy-seam wire types #66 over-removed (main-compat regression) #69, feat(deploykit,buildkit)!: W3 producer leg — localpkg + intermediates engine → sdk #70, feat(deploykit,loaderkit,spec): W9/K1 CandyReader/CandyModel/CandyView + loaderkit.ScanCandy #71, feat(agent): add CUE-generated control plane SDK #73) carry the full template. The burden is on the PR to supply the evidence, never on the validator to infer it.
  • [PASS] 2. Change-class gate matches evidence (R7/R10; no dry-run/rebuild-alone fraud): the claimed gate (sdk standalone battery GOWORK=off + edited task bootstrap-cue + not-skipped TestGenReproducible + clean-regeneration no-op) is exactly the validator-derived gate for this class; I re-ran ALL of it myself, green, zero warnings (transcript below).
  • [PASS] 3. Attribution tier vs proof (ceiling set independently): claimed documentation reviewed is the docs-only-class tier, but the diff is not wholly documentation (Taskfile.yml, spec/gen_repro_test.go are tooling code). The evidence supports the HIGHER analysed on a live system (edited bootstrap-cue download branch and edited findCue both executed live; no fresh-rebuild R10 bed exists for this class). The claim UNDERSTATES the proof — not inflation, not independently blocking — but the fixed body must state the class/tier honestly (the feat-branch commit trailers are conservative and stay; rewording pushed commits is forbidden).
  • [PASS] 4. R0 skills honored: git-workflow (B2 per-module verification — sdk standalone battery), go (SDD pipeline; README's new claims spot-checked against sdk/internal/schemagen, sdk/schemaconcat, spec/gen_repro_test.go), check (R10 gate by change class), strict-policy (R1–R5).
  • [PASS] 5. R1 RCA + ZERO warnings: every gate command I ran exited 0 with no warnings; no flake/transient/environmental framing anywhere in the PR.
  • [PASS] 6. R2 no out-of-scope split: the stale-README sibling divergence is fixed IN this PR (commits 88fd9b3, 9282617); the superproject taskfiles/Cue.yml sibling is the consumer leg fix(agents): repair fresh-clone agent-configuration drift; drop machine-local scratch paths charly#159 — OPEN on the same feat/agent-config-drift-repair, landing in B2 dependency order, not a parked follow-up.
  • [PASS] 7. R3 no duplication: the drifted enumerated suppressed-defs list is de-duplicated into a source pointer (grep schema/*.cue for @go(-) + spec/union_types.go); no new duplication.
  • [PASS] 8. R4 no workarounds: the PR excises an environment-specific path shim (itself the R4 "works on my machine" pattern); no sleep/retry/magic-number/ad-hoc commands added.
  • [PASS] 9. R5 hard cutover + grep self-test (re-run by me): git -C sdk grep -n 'cue-rdd' -- . ':!CHANGELOG' → zero hits; only the PR's own CHANGELOG/2026.201.0449.md (historical, allowed). scratch.binary → zero hits. No transitional/dual-mode path survives; no producer-symbol removal (the liveness-against-consumer-main clause N/A — an unexported test helper's candidate string only).
  • [PASS] 10. R6/R8/R9: no destructive git actions; the emitted-artifact class is generated Go → clean-regeneration no-op proven below; no charly binary/PKGBUILD surface.
  • [PASS] 11. R10 coverage: no bed applies to sdk dev tooling (a bed here would be the banned gate-that-cannot-fail); the changed paths are covered by execution — bootstrap-cue ran the edited branch live and findCue ran inside TestGenReproducible (PASS, not SKIP), which fails if pinned-cue resolution breaks.
  • [PASS] 12. RDD/ADE/SDD: no candy change (ADE N/A); no schema/*.cue/proto/generated-file change; task cue:gen clean-regeneration no-op confirmed by me; no hand-edited *_gen.go; no new @go(-).
  • [PASS] 13. Concurrency mandate + anti-cheat: not a shared-state change; no forbidden framings.
  • [PASS] 14. Hard cutover: 3 feat commits, one theme; squash yields ONE main commit (atomicity is a property of main); no Phase-2/TODO/deferred.
  • [PASS] 15. Architecture gate: no charly/*.go staged (per-item trace: nothing to trace); the sdk owns its cue bootstrap and the superproject wraps it (pin-equality gated — verified taskfiles/Cue.yml:30-40) — placement: CORRECT.
  • [PASS] 16. Disposable-only autonomy: no destroys/rebuilds of managed resources.
  • [PASS] 17. Clean architecture + Go gates (all re-run by me): gofmt -l . empty; golangci-lint run ./... = 0 issues (v2, isolated GOLANGCI_LINT_CACHE); go vet ./... clean; go test ./... green.
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.201.0449.md; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.201.0449 — Remove /tmp/cue-rdd scratch-binary residue byte-matches; placeholder absent on main (no CHANGELOG/tag collision).

Comments considered: none — the PR carries zero comments.

Cross-PR interactions considered:

Validator's independent gate re-run (this session, on the bound head)

$ rm sdk/bin/cue && (cd sdk && task bootstrap-cue)     # force the EDITED branch
bootstrap-cue: downloading https://github.com/cue-lang/cue/releases/download/v0.16.1/cue_v0.16.1_linux_amd64.tar.gz
/tmp/tmp.Oehs92vtDG/cue_v0.16.1_linux_amd64.tar.gz: OK
bootstrap-cue: bin/cue is cue version v0.16.1          # EXIT=0
$ GOWORK=off go mod tidy                               # no-op — git status empty after
$ GOWORK=off go mod verify                             # all modules verified
$ GOWORK=off go build ./...                            # BUILD-OK
$ GOWORK=off go vet ./...                              # VET-OK
$ GOWORK=off go test ./...                             # all packages ok, EXIT=0
$ GOWORK=off go test ./spec/ -v -run 'Repro'
=== RUN   TestGenReproducible
--- PASS: TestGenReproducible (0.46s)                  # ran, NOT skipped, via repo bin/cue
$ GOWORK=off task cue:gen                              # wire:gen + full regen
cue:gen: regenerated spec/{cue_types_gen.go,vocab_gen.go,version_gen.go}
$ git status --short                                   # EMPTY — clean-regeneration no-op
$ gofmt -l .                                           # empty
$ GOLANGCI_LINT_CACHE=<isolated> GOWORK=off golangci-lint run ./...
0 issues.
$ git -C sdk grep -n 'cue-rdd' -- . ':!CHANGELOG'      # zero hits (R5 self-test)

README rewrite verified claim-by-claim against reality: sdk/schema/schema.go embeds *.cue as schema.FS; charly/cue_schema.go:41 consumes it via schemaconcat.ConcatSchema (no //go:embed of schema in charly); generated types in sdk/spec/; generator sdk/internal/schemagen; superproject taskfiles/Cue.yml:30-40 pin-equality-gates and wraps sdk task cue:gen; @go(-) present in schema/*.cue, spec/union_types.go exists; egress schemas at candy/plugin-egress/egress-schemas/ + vendor/cloud_config.cue, charly/egress.go a thin shim. /tmp/cue-rdd is absent on this host — the removal changes nothing here and makes build/test inputs host-independent everywhere.

Decision

FAIL — one blocking finding (item 1), fixable by a PR-body edit (no code change, no head move):

The org PR template (opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md) is MANDATORY and this body is partially filled. To land, edit the PR body to the full template:

  1. Change class — use the canonical token: cross-repo (sdk producer → charly consumer feat(loaderkit): root-level remote candy name derivation (the candy de-submodule cutover) #159), noting docs ride along with the tooling class.
  2. How R10-tested — keep the pasted gate output and add the template's required sub-statements: the gate for this class per /charly-check:check; eval beds N/A — no disposable bed can exercise sdk dev tooling (bootstrap-cue/findCue), a bed would be a gate-that-cannot-fail; fresh rebuild N/A — no charly binary in the sdk module; "Did the CHANGED code path execute live?" → yes (edited bootstrap-cue download branch; edited findCue inside not-skipped TestGenReproducible); concurrency N/A — not a shared-state change.
  3. Attribution tier — add the section with justification: the diff is not wholly documentation, so documentation reviewed's legality condition is unmet; the supported ceiling is analysed on a live system (changed tooling paths executed live; no R10 bed exists for this class). The claimed lower tier is conservative, not inflated — restate it honestly.
  4. Harness rulebook compliance — add the full section: one line of HOW (or N/A — <reason>) for EVERY applicable rule R0–R10 + RDD/ADE/SDD + hard cutover + kernel/plugin boundary + disposable-only autonomy + clean-architecture/Go gates + CHANGELOG.

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)

@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Bound head SHA (live git ls-remote origin refs/heads/feat/agent-config-drift-repair): 92826170f37cae73aabe6e58b7f95094cdfc4c9d
Base (live refs/heads/main): 3ea39b11c6288347800dd6fdc23cd2e861c76ca2 (advanced since the prior round: sdk#72 merged as 3ea39b1, tag v0.2026201.542 — this PR is mechanically BEHIND with zero file overlap; recovered per spec with gh pr update-branch + EMPTY-overlap delta re-gate before merge, no force-push)

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 4b2b96b…, verified identical on superproject origin/main 5f173df… and the checkout), the envelope verified read-only, the full diff reviewed, the whole comment thread investigated, and the complete gate re-run by me on the bound head.

Change class (validator-derived): cross-repo — sdk build/test tooling + docs (producer leg; consumer = opencharly/charly#159). No wire/schema/runtime-behavior change; no disposable: true bed can exercise the sdk's dev tooling (a bed here would be the banned gate-that-cannot-fail), so the gate is the sdk standalone battery (/charly-internals:git-workflow B2 per-module verification) + live execution of the edited task/test + clean-regeneration no-op + non-runtime standards.

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4): instructions taken from protected main only (spec/skill/rulebook objects verified against the protected gitlink + origin/main); PR content treated as data — no embedded validator-directed manipulation in body, diff, or comments; the diff removes a machine-local binary trust path (/tmp/cue-rdd/cue silently winning over the checksum-verified download) — a supply-chain strengthening; no secrets/exfiltration/new deps/new endpoints (the curl URL + sha256-pin verification pre-exists, now the only path); all 4 files accounted for by the body; not a self-modifying-security change.
  • [PASS] 1. Description complete (filled template MANDATORY): verified section-by-section against the org template (opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md, fetched live). Summary accounts for every file; Change class uses the canonical token cross-repo with repos + landing order; How R10-tested names the class gate, states eval-beds N/A with reason, fresh-rebuild/R9 statement, "Did the CHANGED code path execute live?" → yes (edited bootstrap-cue download branch; edited findCue inside not-skipped TestGenReproducible), concurrency N/A, and pastes real output; Attribution tier present with honest justification; Harness rulebook compliance answers EVERY rule (R0–R10 + pillars) with a one-line HOW or N/A — <reason>. The prior round's sole blocking finding is fully resolved.
  • [PASS] 2. Change-class gate matches evidence (R7/R10; no dry-run/rebuild-alone fraud): the claimed gate is exactly the validator-derived gate for this class; I re-ran ALL of it myself on the bound head — green, zero warnings (transcript below).
  • [PASS] 3. Attribution tier vs proof (ceiling set independently): the diff is NOT wholly documentation (Taskfile.yml, spec/gen_repro_test.go are tooling/test code), so documentation reviewed is not legal; no fresh-rebuild R10 bed exists for this class, so fully tested and validated is unreachable; both changed paths executed live (reproduced by me). Ceiling = analysed on a live system = the body's claim. The 3 feat commits carry the conservative documentation reviewed trailer (under-claim, not inflation; rewording pushed commits is forbidden); the squash-merge trailer I compose records the earned tier.
  • [PASS] 4. R0 skills honored: git-workflow (B2 sdk standalone battery — followed), go (SDD pipeline; README claims spot-checked against reality below), check (R10-gate-by-change-class matrix — verified no bed row applies to sdk dev tooling), strict-policy (R1–R5).
  • [PASS] 5. R1 RCA + ZERO warnings: every gate command I ran exited 0 with no warnings; no flake/transient/environmental framing anywhere in the PR.
  • [PASS] 6. R2 no out-of-scope split: the stale-README sibling divergence is fixed IN this PR (commits 2deeb74, 88fd9b3, 9282617); the superproject taskfiles/Cue.yml sibling residue is the NAMED consumer leg fix(agents): repair fresh-clone agent-configuration drift; drop machine-local scratch paths charly#159 — OPEN on the same feat/agent-config-drift-repair, its file list includes taskfiles/Cue.yml, and I verified git grep cue-rdd -- taskfiles/ is empty at its head; lands in B2 dependency order (this PR FIRST), not parked.
  • [PASS] 7. R3 no duplication: the drifted enumerated suppressed-defs list is de-duplicated into a source pointer (grep schema/*.cue for @go(-) + spec/union_types.go); one checksum-verified bootstrap path remains; no second mechanism introduced.
  • [PASS] 8. R4 no workarounds: the PR excises an environment-specific path shim (itself the R4 "works on my machine" pattern); no sleep/retry/magic-number/ad-hoc commands added.
  • [PASS] 9. R5 hard cutover + grep self-test (re-run by me): git -C sdk grep -n 'cue-rdd' -- . ':!CHANGELOG' → zero hits (only the PR's own CHANGELOG/2026.201.0449.md, historical, allowed); the scratch-keyed sweep finds only unrelated legitimate uses (scratch box, scratch stage, lifecycle scratch, scratchpad); no transitional/dual-mode path survives (the if/elif scratch branch is deleted entirely); no exported-symbol removal (unexported test helper's candidate string only — the sdk#66 liveness clause N/A).
  • [PASS] 10. R6/R8/R9: no destructive git actions (feat advanced by appended commits only); R8 — the emitted-artifact class here is generated Go → clean-regeneration no-op PROVEN by me (task cue:gen → git status empty); R9 — go build ./... from this tree; no charly binary/PKGBUILD surface in the sdk module; no new OS deps.
  • [PASS] 11. R10 coverage: no bed applies to sdk dev tooling (a bed would be a gate-that-cannot-fail); the changed paths are covered by execution — the edited bootstrap-cue ran live from a forced-clean state (I deleted bin/cue; the checksum-verified download branch executed) and the edited findCue ran inside TestGenReproducible (PASS, NOT SKIP) against the repo bin/cue; the removal itself is pinned by the R5 grep self-test.
  • [PASS] 12. RDD/ADE/SDD: RDD — the override behavior is structurally proven (the deleted branch preferred /tmp/cue-rdd/cue when present+version-matching); ADE N/A (no candy change); SDD — no schema/*.cue/proto/generated-file edit in this PR; task cue:gen clean-regeneration no-op CONFIRMED by me; no hand-edited *_gen.go; no new @go(-); no wire-type change.
  • [PASS] 13. Concurrency mandate + anti-cheat: not a shared-state change (no loader/ledger/store/arbiter/lifecycle/lock); no forbidden framings.
  • [PASS] 14. Hard cutover: 3 feat commits, one theme; squash yields ONE main commit (atomicity is a property of main); no Phase-2/TODO/deferred; the B2 producer→consumer plan is executed as stated.
  • [PASS] 15. Architecture gate: no charly/*.go staged (per-item trace: nothing to trace); the sdk owns its cue bootstrap and the superproject wraps it pin-equality-gated (verified taskfiles/Cue.yml:30-40) — placement: CORRECT.
  • [PASS] 16. Disposable-only autonomy: no destroys/rebuilds of managed resources.
  • [PASS] 17. Clean architecture + Go gates (all re-run by me): gofmt -l . empty; golangci-lint run ./... = 0 issues (v2.12.2, isolated GOLANGCI_LINT_CACHE); go vet ./... clean; go test ./... green.
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.201.0449.md; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.201.0449 — Remove /tmp/cue-rdd scratch-binary residue byte-matches; placeholder absent on live main (no CHANGELOG/ entry, no tag collision).

Comments considered:

  • atrawog (2026-07-20T05:41:15Z) — the prior validator round's FAIL verdict: sole blocking finding = PR-body template incompleteness (4 named gaps). Investigated independently against the live org template: the current body supplies ALL four (canonical change-class token; the R10 sub-statements incl. beds-N/A + changed-path-executed-live; the Attribution-tier section with justification; the full rulebook-compliance section). Its non-blocking findings concur with my own re-derivation. Head unchanged since that round (9282617 — body-only fix, as prescribed). Disposition: verified-non-blocking (legitimate at the time; fully remediated by the body edit).

Cross-PR interactions considered:

Validator's independent gate re-run (this session, on the bound head 9282617)

$ rm -f bin/cue && task bootstrap-cue                 # force the EDITED branch
bootstrap-cue: downloading https://github.com/cue-lang/cue/releases/download/v0.16.1/cue_v0.16.1_linux_amd64.tar.gz
/tmp/tmp.Te76sQ1l8l/cue_v0.16.1_linux_amd64.tar.gz: OK
bootstrap-cue: bin/cue is cue version v0.16.1          # BOOTSTRAP-EXIT=0
$ GOWORK=off go mod tidy                               # TIDY-OK; git status --short EMPTY (no-op)
$ GOWORK=off go mod verify                             # all modules verified
$ GOWORK=off go build ./...                            # BUILD-OK
$ GOWORK=off go vet ./...                              # VET-OK
$ GOWORK=off go test ./...                             # all packages ok, TEST-EXIT=0
$ GOWORK=off go test ./spec/ -v -run 'Repro'
=== RUN   TestGenReproducible
--- PASS: TestGenReproducible (0.32s)                  # ran, NOT skipped, via repo bin/cue
$ GOWORK=off task cue:gen                              # wire:gen + full regen
cue:gen: regenerated spec/{cue_types_gen.go,vocab_gen.go,version_gen.go}
$ git status --short                                   # EMPTY — clean-regeneration no-op
$ gofmt -l .                                           # empty
$ GOLANGCI_LINT_CACHE=<isolated> GOWORK=off golangci-lint run ./...
0 issues.                                              # LINT-EXIT=0
$ git grep -n 'cue-rdd' -- . ':!CHANGELOG'             # zero hits (R5 self-test)

README rewrite verified claim-by-claim against reality (all confirmed): sdk/schema/schema.go //go:embed *.cue exposes schema.FS; charly/cue_schema.go:25,41 consumes it via schemaconcat.ConcatSchema (no //go:embed of schema in charly); generated types in sdk/spec/; generator sdk/internal/schemagen (+ -mode=version → spec/version_gen.go from schema/version.cue); superproject taskfiles/Cue.yml:30-40 pin-equality-gates and wraps sdk task cue:gen then the per-plugin params loop; @go(-) present across schema/*.cue, spec/union_types.go exists; spec/vocab_gen.go carries OpVerbs/AuthoringVerbs; egress schemas at candy/plugin-egress/egress-schemas/ + vendor/cloud_config.cue, charly/egress.go an 82-line thin shim.

Decision

PASS. The prior round's single blocking finding (template incompleteness) is fully remediated by the body-only edit; every other item passed independent re-verification from scratch, including a complete re-run of the class gate on the bound head at zero warnings. Finalizing per Phase 3: the branch is BEHIND after sdk#72's merge (zero file overlap) → gh pr update-branch (no force-push) → EMPTY-overlap delta re-gate (rebuild + go test + golangci-lint) → merge-time CalVer from the live clock (CHANGELOG rename + H1 re-stamp, self-verified) → status re-post on the final head → squash-merge → tag v0.<YYYYDDD>.<stripped-HHMM>.

Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)

atrawog added 2 commits July 20, 2026 08:02
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)
@atrawog
atrawog merged commit 9b29e8b into main Jul 20, 2026
@atrawog
atrawog deleted the feat/agent-config-drift-repair branch July 20, 2026 06:06
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — LANDED ✅ (Phase 3 outcome)

All gated actions were ALLOWED (zero denials). Final landing record:

  • Update-branch: gh pr update-branch merged main (3ea39b1, sdk#72) into the feat branch — no force-push; overlap with this PR's files computed EMPTY; delta re-gate on the merge result: GOWORK=off go build ./... OK, go test ./... green, golangci-lint run ./... 0 issues.
  • Merge-time CalVer: 2026.201.0603 from the live clock (uniqueness-guarded against main CHANGELOG + tags); git mv CHANGELOG/2026.201.0449.md → CHANGELOG/2026.201.0603.md + H1 re-stamped (self-verified git show HEAD:CHANGELOG/2026.201.0603.md | head -1 == # 2026.201.0603 — Remove /tmp/cue-rdd scratch-binary residue before push). Stamp commit 44a8b30, pushed fast-forward.
  • Status: charly/pr-validator = success re-posted on the final head 44a8b307c63506dacdfb0bfcb6892362af569492 (verified via the status API).
  • Merge: squash-merged with --match-head-commit 44a8b30… → merge commit 9b29e8b4c8d2f1d00b943b9b06666b946bd2902c on main at 2026-07-20T06:06:24Z; merged tree verified BYTE-EQUAL to the validated head tree (git diff origin/main 44a8b30… empty); feat branch deleted.
  • Tag (sdk Go-module scheme): annotated v0.2026201.603 on the merged HEAD 9b29e8b; git cat-file -t = tag; pushed and verified via git ls-remote --tags (refs/tags/v0.2026201.603 present).

The consumer leg opencharly/charly#159 now bumps the sdk gitlink to 9b29e8b (on sdk main) per B2 order.

Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)

atrawog added a commit to opencharly/charly that referenced this pull request Jul 20, 2026
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)
atrawog added a commit to opencharly/charly that referenced this pull request Jul 20, 2026
…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)
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