Skip to content

fix(agents): repair fresh-clone agent-configuration drift; drop machine-local scratch paths - #159

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

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

Conversation

@atrawog

@atrawog atrawog commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Repo-configuration validation failed on a pristine clone of main
(5f173df), 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), from a full repo-wide
sweep with zero deferrals:

  1. .agents/skills developer profile was stale relative to the plugins
    gitlink
    (v2026.200.1901, 4b2b96b): the plugins tree gained
    automation/skills/agent and internals/skills/root-cause-analyzer, but
    the committed .charly-profile.json was never re-synced, so
    plugins/setup <kimi|codex> --check developer failed on every fresh
    clone
    . Committed the synced profile (292 repo-native skill links)
    including the previously untracked charly-automation--agent symlink.
  2. scripts/validate-agent-config.py required a stale build-gate term —
    the literal -o ../bin/charly, while build:binary has built to
    ../bin/.charly.next with an atomic promote since 56b1a6b. The required
    terms now pin the temp-output + promote contract.
  3. taskfiles/Cue.yml bootstrap-cue preferred /tmp/cue-rdd/cue — an
    RDD-spike scratch binary present since the genesis import (2e3eb76) that
    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. (The matching sdk-side residue is the producer leg
    fix(build): remove /tmp/cue-rdd scratch-binary residue; rewrite stale schema README sdk#74.)
  4. 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.
  5. The venue builder transfer tarball was a fixed per-candy name
    (/tmp/charly-builder-<candy>.tar.gz in runVenueHomeArtifactBuilder):
    two concurrent deploys of the same candy to the same venue could
    interleave, the second PutFile overwriting the first's tarball before
    its extract ran. The name now carries the host staging dir's unique
    MkdirTemp suffix (venueBuilderTarName), covered by the new
    TestVenueBuilderTarNameUniquePerScope.

Change class

cross-repo — consumer leg. Repos + landing order: opencharly/sdk#74
(producer) FIRST → this PR
, which then bumps the sdk gitlink to the
merged sdk commit before its own validation (B2 order).

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

  • The gate for this change class: items 1–4 are non-runtime
    (config/validation-script/build-tooling metadata) → the full non-runtime
    standards; item 5 is a one-function runtime change (internal scratch
    naming; no interface/schema/artifact change) → the core Go gate (go test ./... + go vet + golangci-lint + task build:binary + content marker
    • bin/charly box validate). No disposable bed exercises harness-config
      drift repair or venue-scratch naming; the live executions are the edited
      tasks/tests/checks below.
  • Eval beds run: N/A — no disposable bed can exercise .agents/skills profile sync, agent-config validation terms, cue bootstrap sourcing, or the venue tarball NAME computation; the bed whose step text changed (check-k3s-vm) had its file load-validated (box validate exit 0), and its step's effective command is unchanged wherever /tmp/charly-build was absent (always).
  • Fresh rebuild: R9 — task build:binary rebuilt from this tree;
    bin/charly version = 2026.201.0455 (HEAD at build time); the fix-fix(labels): ai.opencharly.env reader decodes the object writeLabels bakes #5
    content marker is present in the binary
    (strings bin/charly | grep -c charly-venue-builder-tar → 2).
  • Did the CHANGED code path execute live? Partially, stated honestly:
    items 1–4 executed live (setup checks ×3, agent-config validator,
    bootstrap-cue via sdk/bin/cue, box validate on the edited charly.yml,
    fresh-clone repro below). Item 5's changed branch executed via its new
    unit test + the rebuilt binary's content marker — NOT on a live venue
    deploy → tier capped at analysed on a live system.
  • Concurrency (shared-state changes only): item 5 IS the concurrency
    fix (same-candy same-venue collision class); its coverage is the unit
    property test (unique-per-scope). No roster applies to a naming-only
    change.
$ plugins/setup claude --check developer
claude project profile is developer (25 plugins)
$ plugins/setup codex --check developer
codex project profile is developer (25 plugins, 292 repo-native skills)
$ plugins/setup kimi --check developer
kimi project profile is developer (25 plugins, 292 repo-native skills)
$ python3 scripts/validate-agent-config.py
validated 40 equivalent R0 dispatcher rows and mandatory policy markers
$ python3 .claude/hooks/gate_test.py
35 case(s), 0 failure(s)
$ cd charly && go test ./...     # all ok (incl. TestVenueBuilderTarNameUniquePerScope)
$ cd charly && go vet ./...      # clean
$ golangci-lint run ./...        # 0 issues.
$ task build:binary && bin/charly version
2026.201.0455
$ bin/charly box validate; echo $?   # 0 — edited charly.yml loads + validates
$ task cue:gen                        # clean regeneration — no diff
$ task cue:bootstrap-cue              # EDITED task: resolves pinned v0.16.1 via sdk/bin/cue

Fresh-clone reproduction (RDD): a --no-local clone at
/tmp/charly-path-test.*/charly with plugins at the recorded gitlink FAILED
plugins/setup kimi --check developer before this change and PASSES after;
pre-push-gate.sh correctly blocked git push origin main from the clone
path; gate_test.py 35/35 there.

Attribution tier

analysed on a live system — the changed runtime path (item 5) ran via
unit test + rebuilt binary but not on a live venue; items 1–4 executed live
but no disposable-bed roster applies to their class. (The item 1–4 commits
carry documentation reviewed; the item-5 commit carries analysed on a live system.)

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

  • R0 skills: git-workflow, skills, agents (hooks doctrine) loaded
    by path before acting; landing follows B1/B2 (feat branch, PR-only,
    producer→consumer order, placeholder CHANGELOG).
  • R1 RCA + zero warnings: every surfaced anomaly root-caused
    (profile drift ← gitlink bump without re-sync; validator drift ← 56b1a6b
    contract change; cue-rdd ← genesis spike residue; venue-tar ← fixed-name
    collision class); all gate outputs zero-warning.
  • R2 no out-of-scope: every issue the sweep surfaced is fixed IN this
    cutover (incl. the sdk-side residue via fix(plugin): synchronize the InvokeWithExecutor reverse-server handoff (data race) #74 and the README sibling) —
    nothing parked as pre-existing/follow-up.
  • R3 no duplication: one canonical cue source per repo; no second
    mechanism introduced; the venue-tar naming extracted to ONE helper.
  • R4 no workaround: fixes DELETE non-deterministic sources (scratch
    preference, dead probe prefix, fixed name) — no sleeps/retries/shims.
  • R5 hard cutover + grep: git grep 'cue-rdd\|/tmp/charly-build' -- . ':!CHANGELOG' → zero hits; the stale sibling claim in
    sdk/schema/README.md fixed in fix(plugin): synchronize the InvokeWithExecutor reverse-server handoff (data race) #74; no transitional/dual-mode paths.
  • R6 git safety: status/stash checked before every staging; the M sdk working-tree state (submodule on its feat branch) is deliberate and
    unstaged; no destructive git action.
  • R7 runtime gate: N/A for items 1–4 (non-runtime); item 5 ran the core
    Go gate + live binary rebuild + content marker (no bed exists for the
    naming-only path — tier capped accordingly).
  • R8 artifact invariants: no Containerfile/label/generation change;
    bin/charly box validate exit 0 confirms the edited bed file's emitted
    config stays valid.
  • R9 binary == source + deps: task build:binary rebuilt;
    bin/charly version = 2026.201.0455; no new OS deps.
  • R10 disposable + coverage: ships the coverage that fails without the
    change — TestVenueBuilderTarNameUniquePerScope (item 5),
    plugins/setup --check passing on a pristine clone (item 1),
    validate-agent-config.py passing (item 2), the edited bootstrap-cue
    resolving the pinned cue (item 3).
  • RDD / ADE / SDD: RDD — the fresh-clone failure was reproduced live at
    an arbitrary path before the fix and passes after; ADE N/A — no candy
    change; SDD — task cue:gen clean-regeneration no-op; no schema edit.
  • Hard cutover: one atomic cutover; no TODO/deferred scope; lands as one
    squash commit on main.
  • Kernel/plugin boundary law: item 5 is a one-function fix inside
    existing core machinery (no new capability, no kind-word switch, no new
    alias — golangci-lint + the pre-commit ZERO-ALIASES gate both green); no
    boundary change.
  • Disposable-only autonomy: N/A — no destroy/rebuild of any target.
  • Clean architecture + Go gates: gofmt clean, golangci-lint 0
    issues, go vet clean, go test ./... green.
  • CHANGELOG: CHANGELOG/2026.201.0437.md staged (placeholder CalVer —
    the pr-validator finalizes it at merge).

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

Two committed drifts made agent-configuration validation fail on a pristine clone:

- .agents/skills/.charly-profile.json was stale relative to the plugins gitlink (v2026.200.1901): plugins gained automation/skills/agent and internals/skills/root-cause-analyzer, so plugins/setup <kimi|codex> --check developer failed until a local sync. Re-synced via plugins/setup kimi developer (292 links) and committed the result, including the new charly-automation--agent link.
- scripts/validate-agent-config.py still required the literal '-o ../bin/charly' in taskfiles/Build.yml, but build:binary now builds to ../bin/.charly.next and promotes atomically (56b1a6b, the split-brain freshness guard). The required terms now pin the temp-output + promote contract.

Verified: plugins/setup <claude|codex|kimi> --check developer pass; scripts/validate-agent-config.py passes including its self-test; .claude/hooks/gate_test.py 35/35; a fresh clone at an unrelated path reproduced both drifts and passes with this change.

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)
@atrawog atrawog changed the title fix(agents): repair fresh-clone agent-configuration drift fix(agents): repair fresh-clone agent-configuration drift; drop machine-local scratch paths Jul 20, 2026
runVenueHomeArtifactBuilder shipped the artifact tarball to a fixed per-candy venue path (/tmp/charly-builder-<candy>.tar.gz): two concurrent deploys of the SAME candy to the SAME venue could interleave, the second PutFile overwriting the first's tarball before its extract ran. The name now carries the host staging dir's unique MkdirTemp suffix via venueBuilderTarName; covered by TestVenueBuilderTarNameUniquePerScope (fails to compile without the helper, pins the uniqueness property).

Verified: go test ./... + go vet ./... clean, golangci-lint 0 issues, task build:binary rebuilt (content marker present), bin/charly box validate exits 0.

Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
atrawog added a commit to opencharly/sdk that referenced this pull request Jul 20, 2026
… schema README

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. 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; a supply-chain
strengthening (a machine-local binary trust path is deleted, not added).

- `Taskfile.yml`: `bootstrap-cue` drops the scratch-binary preference
  branch; the checksum-verified pinned download is the only source.
- `spec/gen_repro_test.go`: `findCue` drops the `/tmp/cue-rdd/cue`
  candidate; resolves the repo `bin/cue` or a PATH `cue` at the pinned
  version.
- `schema/README.md`: rewritten to the post-extraction contract (schema.FS +
  schemaconcat, sdk/spec, internal/schemagen, superproject wrapper task,
  source-pointed @go(-) set).
- `CHANGELOG/2026.201.0603.md`: the merge-time CalVer entry.

Gate (validator re-run on the validated head): sdk standalone battery
(`GOWORK=off go mod tidy` no-op + verify + build + vet + test), edited
`bootstrap-cue` executed live from forced-clean state (checksum-verified
download), `TestGenReproducible` PASS (not skipped), `task cue:gen`
clean-regeneration no-op, gofmt/golangci-lint 0 issues, R5 grep self-test
zero hits. Consumer leg: opencharly/charly#159.

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)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note (from pr-validator on #160)

While validating #160 (fix/oop-command-grammar, F-CLI-NEST consumer leg), I found this PR also bumps charly/go.mod's sdk require + the sdk gitlink (this PR pins 9b29e8b4, #160 pins 3ea39b1).

Verified: 9b29e8b4 is a descendant of 3ea39b1 on sdk's real main (git merge-base --is-ancestor 3ea39b1 9b29e8b4 → true), so there's no semantic conflict — just a merge-order note.

#160 is validated PASS and proceeding to merge now. Once it lands, main's sdk gitlink will be 3ea39b1. When this PR (#159) goes BEHIND and you run gh pr update-branch, this is the exact "Gitlink ANCESTOR bump" scenario /charly-internals:git-workflow documents: because both main and this branch changed the SAME gitlink since their common base, gh pr update-branch will likely report this PR CONFLICTING rather than auto-resolving to the descendant (9b29e8b4).

Recovery (from the skill, verbatim): do the update-branch equivalent LOCALLY — git merge origin/main in this branch's worktree (a real merge auto-resolves the gitlink to the descendant), then push the result fast-forward (no force-push). Then verify the merge resolved the gitlink FORWARD: git ls-tree HEAD sdk (or git diff --submodule=short origin/main..HEAD) must show 9b29e8b4, never 3ea39b1 — a naive recovery that silently re-pins the older bump is the exact regression this class produces.

Only a heads-up so this doesn't surprise you or your validator — not blocking #160's own merge.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅ (phase one)

Bound head SHA (live git ls-remote origin refs/heads/feat/agent-config-drift-repair): 43a2946339af0bdd33268e249ace493818fdb8f6
Protected base at validation start: 5f173df57554ec756a8e3b2c581fc704e13a970a
⚠ Main advanced mid-validation: main is now 09172e1218cd2c666f890494a4c31a82190ef567 — sibling PR #160 (F-CLI-NEST consumer) merged at 2026-07-20T06:32:07Z by its own fresh validator (tag v2026.201.0629). This PR is now BEHIND/CONFLICTING on charly/go.mod + the sdk gitlink. Recovery per /charly-internals:git-workflow "Gitlink ANCESTOR bump" + the non-empty-overlap delta re-gate follows as phase 3 (local update-branch merge — never a force-push — resolving the gitlink FORWARD to the descendant 9b29e8b > 3ea39b1 and go.mod to v0.2026201.603, then rebuild + go test/vet/gofmt/golangci-lint + a check-builder-vm re-run on the merged tree before landing).

Change class (validator-derived): cross-repo consumer leg (sdk#74 producer MERGED FIRST, verified: tag v0.2026201.603 → 9b29e8b on sdk main) — mixed: harness-project-configuration (items 1–2) + build tooling (item 3) + bed-plan step (item 4) + charly Go runtime (item 5).

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4): no secrets/exfiltration/new deps (the only dep delta is the sibling sdk pin → the merged, tagged producer commit); supply-chain posture IMPROVED (a machine-local binary trust path /tmp/cue-rdd/cue deleted in both repos); description↔code scope matches (all 10 files accounted for); scripts/validate-agent-config.py change makes the gate match reality and is stricter (pins the two-term temp-output+promote contract vs one stale literal) — not a guardrail weakening (hook gate_test.py 35/35 re-run by me); no instruction to the validator anywhere in the PR; not a self-modifying-security change.
  • [PASS] 1. Description complete: every template section filled with HOW (Summary ↔ all 10 files; Change class + landing order; How-R10-tested with all 5 sub-bullets; Attribution tier; full R0–R10+pillars compliance; footer). One factual error found and corrected by my own run — see Decision.
  • [PASS] 2. Change-class gate — with validator remediation: items 1–4 ran their exact class gates (harness gate + edited task live + box validate), all re-run by me below. Item 5 (runtime Go) claimed "no disposable bed can exercise the venue tarball NAME computation" — that claim is FALSE: charly.yml:751 check-builder-vm is the dedicated disposable: true bed for exactly this function ("Sole proof of the builder DEPLOY leg (runVenueBuilderStep → runVenueHomeArtifactBuilder)"). Per the spec's bed-coverage + re-run clauses I ran the correct bed MYSELF on the bound head's rebuilt binary:
    $ bin/charly check run check-builder-vm        # binary 2026.201.0615 == HEAD UTC stamp; strings marker charly-venue-builder-tar ×2
    [vm-build] PASS 5.5s [vm-create] PASS 9.4s [deploy-add] PASS 28.2s [deploy-check-builder-member] PASS 48.1s
    [bring-up-members] PASS [check-live] PASS 23.8s [check-live-check-builder-member] PASS 7.8s
    [update] PASS 1m36s (fresh-update R10 re-verify) [cleanup] PASS 16.8s [cleanup-members] PASS
    → PASS (steps=10)
    
    .check/check-builder-vm/2026.201.0640/summary.yml: ok: true, 10 steps all ok: true, total_seconds: 236. The marker ran in check-live.log: PASS … [builder-artifact-present-in-guest] exit=0 — the renamed PutFile→extract→cleanup path executed end-to-end into the nested guest venue on the fresh rebuild. Zero warnings in any step log (grep swept).
  • [PASS] 3. Attribution tier: claimed analysed on a live system was honest at author time (unit test + content marker only). My own fresh-rebuild bed run completed the class gate — the ceiling now supports fully tested and validated (item 5's changed path executed live on a disposable: true target on the rebuilt binary). Understated, never inflated; the squash trailer will carry the tier the FINAL tree's gate earns (delta re-gate pending at this posting).
  • [PASS] 4. R0 skills honored (loaded by path + spot-checked): git-workflow (B1/B2, CalVer-at-merge, gitlink-ancestor recovery), check ("R10 gate by change class" — harness-project-configuration row governs items 1–2; charly-Go row governs item 5), go (SDD pipeline), agents, skills, strict-policy (R1–R5).
  • [PASS] 5. R1 zero warnings — every gate I re-ran exited 0 with no warnings: plugins/setup {claude,codex,kimi} --check developer (25 plugins; 292 repo-native skills — matches the JSON link count, verified 292), python3 scripts/validate-agent-config.py (40 rows + markers), python3 .claude/hooks/gate_test.py (35/35), gofmt -l . empty, go vet ./... clean, go test ./... ok (both packages), golangci-lint run ./... = 0 issues (isolated GOLANGCI_LINT_CACHE), task build:binary → bin/charly version = 2026.201.0615, bin/charly box validate exit 0, task cue:gen clean-regeneration no-op (git status empty after), task cue:bootstrap-cue re-resolved the pinned v0.16.1 via sdk/bin/cue (forced re-run of the EDITED branch), bed run above. No flake/transient/environmental framing anywhere.
  • [PASS] 6. R2: the repo-wide sweep's sibling fixes landed IN this cutover pair (sdk#74 producer FIRST; README sibling in sdk#74); nothing parked as pre-existing/follow-up.
  • [PASS] 7. R3: one helper venueBuilderTarName owns the naming; no second mechanism introduced; cue bootstrap has one canonical source per repo.
  • [PASS] 8. R4: fixes DELETE non-deterministic sources (scratch preference, dead probe prefix, fixed name); the venue fix is uniqueness-by-design (MkdirTemp scope), not a sleep/retry/serialize — the correct sync mechanism class.
  • [PASS] 9. R5 + grep self-test (re-run by me): grep -rn 'cue-rdd\|/tmp/charly-build' outside CHANGELOG/ + .git → only the NEW unique-name helper/test (/tmp/charly-builder-<candy>-<scope> retains the prefix — intended). git -C sdk grep cue-rdd → only sdk/CHANGELOG/2026.201.0603.md. No transitional/dual-mode path. No producer-symbol removal (sdk delta is add-only + one test-candidate string; the removal-liveness clause N/A).
  • [PASS] 10. R6/R8/R9: no destructive git actions in the PR; no Containerfile/label surface; binary rebuilt from this tree (2026.201.0615 == git log -1 --format=%cd UTC of 43a2946); content marker present; no new OS deps.
  • [PASS] 11. R10 disposable-only + fresh rebuild + coverage: the bed is disposable: true (destroy/create observed in-run); coverage that fails without the change ships (TestVenueBuilderTarNameUniquePerScope — compile-fails without the helper, pins uniqueness/stability/format; the fresh-clone setup-check repro). Bed evidence cross-checked on disk (summary.yml matches, same binary stamp).
  • [PASS] 12. RDD/ADE/SDD: RDD — the fresh-clone failure was reproduced before/after by the author (plausible + mechanism verified in review); ADE N/A (no candy change); SDD — task cue:gen no-op re-verified by me; sdk delta's proto/plugin.pb.go carries the DO NOT EDIT wiregen banner and matches its CUE source (protocol/schema/plugin.cue); no hand-edited generated file; no new @go(-).
  • [PASS] 13. Concurrency + anti-cheat: item 5 IS a concurrency fix (same-candy/same-venue collision); no idle/serial dismissal framing; no load failure surfaced in my gate runs.
  • [PASS] 14. Hard cutover: 4 commits, ONE theme (scratch-path/drift hygiene); squash yields ONE main commit (atomicity is a property of main per git-workflow); no Phase-2/TODO/deferred.
  • [PASS] 15. Architecture gate — placement: CORRECT. Per-item trace: charly/builder_venue.go — no alias, no new kit import, a pure naming helper inside the EXISTING venue-agnostic BuilderStep host machinery (M-class mechanism, kind-agnostic); charly/builder_venue_test.go — new test, no concerns. No *Legacy* shape introduced. Pre-commit ZERO-ALIASES gate green (gate_test 35/35).
  • [PASS] 16. Disposable-only autonomy: the only destroy was the bed's own disposable: true domain lifecycle.
  • [PASS] 17. Go gates re-run by me (all green, item 5 above); repo invariants intact (bed step id/command pairing consistent; no shape change).
  • [PASS] 18. CHANGELOG: CHANGELOG/2026.201.0437.md — filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.201.0437 — Repair fresh-clone agent-configuration drift; remove machine-local scratch paths byte-matches the filename; placeholder absent on main (no CHANGELOG/ entry, no v2026.201.0437 tag — both verified).

Comments considered: none — the PR carries zero comments.

Cross-PR interactions considered:

Decision: PASS. The one defective claim (item-2's "no bed can exercise the venue naming") was corrected by my own green run of the correct bed rather than by failing the PR back for an author re-run — the spec's re-run authority exists for exactly this. Finalization under the mid-validation main-advance protocol: update-branch merge (FF push) → delta re-gate (overlap non-empty → rebuild + go test/vet/gofmt/golangci-lint + check-builder-vm re-run on the merged tree) → merge-time CalVer → status re-post → squash-merge → tag. Approval outcomes so far: all network/gh reads ALLOWED, zero denials (auto permission mode).

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

atrawog added 2 commits July 20, 2026 08:53
…ft-repair

Update-branch recovery after #160 landed mid-validation
(09172e1, F-CLI-NEST consumer of sdk#72). Overlap with this cutover:
charly/go.mod + the sdk gitlink. Resolved descendant-wins per
/charly-internals:git-workflow: sdk gitlink fast-forwards to 9b29e8b
(sdk#74, tag v0.2026201.603, descendant of #160's 3ea39b1) and the go.mod
require stays at v0.2026201.603. Delta re-gate (non-empty overlap) follows:
rebuild + go test/vet/gofmt/golangci-lint + check-builder-vm re-run.

Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
Rename the placeholder CHANGELOG/2026.201.0437.md to the merge-time
CHANGELOG/2026.201.0706.md and re-stamp its H1 (fresh pr-validator Phase-3;
uniqueness-guarded vs main CHANGELOG + tags).

Assisted-by: Kimi Code (Moonshot K3; fully tested and validated)
@atrawog
atrawog merged commit 93b14d8 into main Jul 20, 2026
@atrawog
atrawog deleted the feat/agent-config-drift-repair branch July 20, 2026 07:10
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — LANDED ✅ (Phase 3 outcome)

All gated actions ALLOWED, zero denials (auto permission mode).

  • Mid-validation main advance handled: fix(command): restore nested CLI grammar for check/box-list (F-CLI-NEST) #160 merged at 06:32Z (09172e1) making this PR CONFLICTING on charly/go.mod + the sdk gitlink. Recovery: local update-branch merge 6e66e4a (never a force-push), gitlink auto-resolved FORWARD to the descendant 9b29e8b (verified git ls-tree HEAD sdk), go.mod resolved to v0.2026201.603; pushed fast-forward.
  • Delta re-gate (non-empty overlap: go.mod/sdk): on the merged tree — task build:binary → 2026.201.0653; gofmt -l . empty; go vet ./... clean; go test ./... ok; golangci-lint run ./... 0 issues; bin/charly box validate exit 0; task cue:gen no-op; harness gate green (setup ×3, validate-agent-config.py, gate_test.py 35/35); and the primary-bed re-run:
    $ bin/charly check run check-builder-vm        # merged tree, binary 2026.201.0653
    → PASS (steps=10)   summary.yml: ok: true, total_seconds: 278, zero warnings
    PASS [builder-artifact-present-in-guest] exit=0
    
  • Merge-time CalVer: 2026.201.0706 from the live clock (uniqueness-guarded vs main CHANGELOG + tags); git mv CHANGELOG/2026.201.0437.md → CHANGELOG/2026.201.0706.md + H1 re-stamped; self-verified git show HEAD:CHANGELOG/2026.201.0706.md | head -1 == # 2026.201.0706 — Repair fresh-clone agent-configuration drift; remove machine-local scratch paths before push. Stamp commit 5f05eb4, pushed fast-forward.
  • Status: charly/pr-validator = success re-posted on the bound final head 5f05eb4e27743b5f7143f19ffb86436be5bffe8e (bound via git ls-remote, never gh's cached view).
  • Merge: gh pr merge 159 --squash --delete-branch --match-head-commit 5f05eb4… — mergeState was CLEAN; merged as 93b14d892b92f19d6a07131b10973af70bd02882 on main; merged tree verified BYTE-EQUAL to the validated head tree (git diff origin/main 5f05eb4… empty); feat branch deleted.
  • Tag: annotated v2026.201.0706 on the merged HEAD 93b14d8; git cat-file -t = tag; pushed refs/tags/v2026.201.0706; verified via git ls-remote --tags (non-empty).

Verdict: PASS → merged (squash) as 93b14d892b92f19d6a07131b10973af70bd02882, tagged v2026.201.0706.

Follow-up left to the orchestrator (outside this validator's enumerated mutations): advance the local main ref and prune the local feat/agent-config-drift-repair branch; #160's prior landing already covered its own coordination, none remains for this merge.

Assisted-by: Kimi Code (Moonshot K3; fully tested and validated)

atrawog added a commit that referenced this pull request Jul 20, 2026
…loader-cone

Merges origin/main (6d436e2, "thematic hygiene batch — sdk-interface-drift
fixtures, dead code, stale refs" — #161, which fixes the plugin-http/
plugin-port fakeCC fixture failures + #159 builder_venue.go work) into
feat/w9-loader-cone. Clean auto-merge, one conflict: charly/go.mod's sdk
require version (HEAD v0.2026201.636 vs main v0.2026201.603) — resolved
to v0.2026201.649, matching the sdk gitlink bump below. No overlap between
#159/#161's touched files (builder_venue.go, k8s_generate.go,
k8s_deploy_from_box.go, validate_preempt.go, bundle_add_cmd_k8s.go deleted,
plugin-substrate/status_k8s.go) and the W9 retype surface
(layers.go/unified.go/resolved_project_host.go/render_baked_metadata.go).

sdk gitlink -> 5cf230d (sdk#76, a docs-only hygiene fix, confirmed a
descendant of the previous db63ef1 pin).

Verified: task build:binary (2026.201.0649, zero go.work.sum drift); charly
go test ./... 97.7s green; gofmt/vet/golangci-lint clean; GOWORK=off go mod
verify clean; superproject task cue:gen no-op beyond the pre-existing
untouched box/cachyos pointer noise; charly box validate exit 0.
candy/plugin-http + candy/plugin-port: the previously-reproduced fakeCC
fixture failures are now GREEN after this merge (confirming #161's fix
landed correctly here).

This is the W9 loader-cone cutover's FINAL rebase — the full 10/10 disposable
bed roster (check-exampledeploy, check-substrate, check-builder-vm,
check-k3s-vm, check-group, check-structkind, check-sidecar-pod,
check-charly-vm, check-local-vm, check-k8s-deploy) passed against this
lineage's immediate predecessor (6b07a93); check-k8s-deploy's one roster-run
flake was concurrency contention (isolated re-run PASS 10/10), not a
regression, and is tracked separately (bed-robustness batch).

Axis measurements (charly/ only, vs 6d436e2): axis-A (non-test non-alias
files importing an sdk mechanism kit) 139 vs main's 141 (net -2);
non-test LOC 46,835 vs main's 48,177 (net -1,342); *_aliases.go count
1 (vmshared_aliases.go) on both sides — no regression.

Assisted-by: Claude Code (Anthropic 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