Skip to content

fix: pin OpenClaw dependency - #112

Merged
atrawog merged 14 commits into
mainfrom
fix/openclaw-security-pin
Jul 16, 2026
Merged

atrawog merged 14 commits into
mainfrom
fix/openclaw-security-pin

Conversation

@atrawog

@atrawog atrawog commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Pin the OpenClaw npm candy so dependency resolution can no longer float onto a
release covered by the repository's open Dependabot advisories, and carry the
two narrow production fixes that survived rebasing this branch onto current
main. Everything else this branch once claimed — a box-graph/SDK change and an
SDK submodule pointer bump — has since been superseded by main and is no
longer in the net diff
(the branch's own commits for those were absorbed when
main landed the equivalent work). The branch was brought current by MERGING
origin/main (the per-worktree-binary, wave-1-core-hygiene, and
vmshared → spec repoint waves); main's refactors AND this PR's genuine changes
are both kept, and the merged submodule pointers (sdk, plugins, pkg/fedora)
equal main's.

Net diff vs main (8 files):

  • candy/openclaw/package.json — pin openclaw from * to 2026.7.1.
  • charly/host_build_cli.go — resolve the nested charly re-entry from
    os.Executable() + filepath.Abs instead of a relative os.Args[0], so a
    -C project-dir change (e.g. a box/<distro> bed) cannot break the
    HostBuild("cli") check-bed steps; factor the spawn into runCliSubcommand.
  • candy/plugin-check/bed_run.go — cliStepLog writes the failing step's
    CliReply.Error into the step log, and the step error now carries
    reply.Error, so a failed bed CLI step is diagnosable.
  • charly/host_build_cli_test.go, candy/plugin-check/bed_run_test.go —
    regression coverage for the two fixes above.
  • charly/agent_forward_test.go, charly/arbiter_dispatch_test.go — capture +
    assert the missing-agent and departed-holder stderr diagnostics (merged with
    main's BundleNode → spec.BundleNode repoint of the same two files).
  • CHANGELOG/2026.195.1200.md — placeholder-CalVer changelog entry.

Change class

charly-or-sdk Go (production charly/host_build_cli.go +
candy/plugin-check/bed_run.go) unioned with candy/box-config (the
candy/openclaw/package.json pin). R10 gate = the disposable pod bed that
COMPOSES the openclaw candy and, being a charly check run, drives both changed
Go paths.

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

  • The gate for this change class: charly check run <bed> on the bed that
    composes the changed openclaw candy AND exercises the two changed Go paths.
    check-openclaw-pod (box/cachyos) is that single bed: it npm-builds and
    deploys [email protected] (the pin) and, run via -C box/cachyos, drives
    every check-bed CLI step through HostBuild("cli") → the changed
    host_build_cli.go re-entry, writing each step log through the changed
    bed_run.go cliStepLog. Command:
    ./bin/charly -C box/cachyos check run check-openclaw-pod.
  • Eval beds run — the EXACT beds + per-bed results:
    check-openclaw-pod | pod | ok | 12 steps | 402s — run-calver
    .check/check-openclaw-pod/2026.197.1347/, binary charly 2026.197.0648
    (per-worktree bin/charly, freshly rebuilt from this merged tree via
    task build:binary). The bed's CHARLY_REPO_OVERRIDE pointed at this
    worktree (.../charly-wt-pr112), so it built the pinned LOCAL candy/openclaw
    tree, not the remote.
  • Tree provenance (this evidence covers the SHIPPING code): the bed ran on
    the merge of origin/main@41571e7 into the PR head — byte-identical, for every
    runtime file, to the pushed head. main was still 41571e7 when the PR head
    was brought current with gh pr update-branch (the sanctioned server-side
    merge for a BEHIND branch; a local merge commit trips the branch's
    ZERO-ALIASES pre-commit-gate on main's alias-dissolution wave arriving via the
    merge). The pushed net diff vs main is exactly the 8 files above, and the two
    merge-touched test files carry both main's spec.BundleNode repoint and this
    PR's captureStderr diagnostics. The ONLY commit added after the bed run is the
    docs-only CHANGELOG correction (no runtime surface, not baked into the image).
  • Fresh rebuild: yes. task build:binary rebuilt bin/charly from the
    merged tree; the bed's step 9 update (56s) is a fresh charly update
    rebuild, and step 10 feature-run-rebuild (12s) re-runs the acceptance checks
    against it. Zero warnings.
  • Did the CHANGED code path execute live? Yes for the primary behavior of
    every changed file: (a) the pin — the image-build step's npm install -g
    reads package.json and installs [email protected], then the gateway binary
    and the live :18789 TCP reachability check pass; (b) host_build_cli.go —
    the os.Executable() re-entry runs on every one of the bed's 12 CLI steps
    under the -C box/cachyos chdir the fix targets; (c) bed_run.go cliStepLog
    writes every step log. The new error-only branches (reply.Error in the
    failure message; os.Executable/filepath.Abs error returns) fire only on
    failure and are covered by the passing unit tests host_build_cli_test.go +
    bed_run_test.go.
  • Concurrency: N/A — the net diff touches neither the loader/discover walk,
    deploy ledger, podman store, resource arbiter, nor VM/pod lifecycle. (The bed
    ran on a host with transient_store = true alongside another fixer's unrelated
    check-commands-local, with no contention and zero orphans left.)

Static gates (on the merged tree, in this worktree):

$ go vet ./...
vet: ok
$ gofmt -l .
gofmt: clean
$ golangci-lint run ./...
0 issues.
$ go test ./... -count=1
ok  	github.com/opencharly/charly/charly	92.578s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	0.008s
$ ./bin/charly box validate
exit 0 (PASS)

Disposable R10 (fresh-rebuild bed verdict + persisted summary):

charly check run check-openclaw-pod: testing LOCAL candies (CHARLY_REPO_OVERRIDE += github.com/opencharly/charly=/home/atrawog/Atrapub/o/charly-wt-pr112)
charly check run check-openclaw-pod: PASS (steps=12)
EXITCODE=0
bed: check-openclaw-pod
calver: 2026.197.1347
steps:
  - {name: image-build,         duration_seconds: 252, ok: true}
  - {name: check-image,         duration_seconds: 15,  ok: true}
  - {name: deploy-add,          duration_seconds: 29,  ok: true}
  - {name: config,              duration_seconds: 4,   ok: true}
  - {name: start,               duration_seconds: 8,   ok: true}
  - {name: bring-up-members,    duration_seconds: 0,   ok: true}
  - {name: check-live,          duration_seconds: 12,  ok: true}
  - {name: feature-run,         duration_seconds: 11,  ok: true}
  - {name: update,              duration_seconds: 56,  ok: true}
  - {name: feature-run-rebuild, duration_seconds: 12,  ok: true}
  - {name: cleanup,             duration_seconds: 3,   ok: true}
  - {name: cleanup-members,     duration_seconds: 0,   ok: true}
total_seconds: 402
ok: true

Attribution tier

fully tested and validated — the primary changed behavior of all three
production edits executed live against the fresh per-worktree rebuild on the
disposable: true check-openclaw-pod bed and passed; the defensive
error-only branches are covered by passing unit tests; go test/vet/gofmt/
golangci-lint and charly box validate are all green with zero warnings.

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

  • R0 skills: git-workflow, go, check, agents, and openclaw skills loaded
    before touching the tree (merge, Go gates, bed gate, openclaw pin).
  • R1 RCA + zero warnings: the stale-tree R10 evidence and the over-claimed
    SDK-graph description were root-caused to main superseding those commits (the
    merged sdk/plugins/pkg-fedora pointers now equal main's and the net
    diff carries no graph change); the fix removes the false claims. Gate output
    has zero warnings.
  • R2 no out-of-scope: the whole net diff is fixed/described here; nothing
    parked as "pre-existing/follow-up". The over-claim was corrected in place, not
    deferred.
  • R3 no duplication: the spawn logic is factored into one runCliSubcommand
    helper; no <name>-host/<name>-pod siblings introduced.
  • R4 no workaround: the re-entry uses os.Executable() (a correct
    absolute-path resolution), not a sleep/retry/env-shim.
  • R5 hard cutover + grep: no identifier was removed by this PR; the merge
    keeps main's BundleNode → spec.BundleNode repoint (git grep 'BundleNode{'
    in the changed tests shows only spec.BundleNode). No transitional/dual-mode
    path in the final code.
  • R6 git safety: the merge ran on a clean, dedicated worktree
    (git status clean pre-merge); no stash/reset/force.
  • R7 runtime gate: the end-to-end charly check run check-openclaw-pod bed
    ran, not just go test.
  • R8 artifact invariants: N/A — no Containerfile-generation or OCI-label
    code path changed.
  • R9 binary == source + deps: bin/charly rebuilt from the merged tree via
    task build:binary (charly 2026.197.0648); no new runtime OS dependency.
  • R10 disposable + coverage: proven on the disposable: true
    check-openclaw-pod only, on a fresh rebuild, zero warnings; the two Go fixes
    ship the regression tests that fail without them.
  • RDD / ADE / SDD: RDD — the composition-at-latest-versions (openclaw pin on
    current main) was proven on the live bed, not doc-read. ADE — the openclaw
    candy's baked plan: ran through build/live/feature/update/rebuild. SDD —
    N/A, no schema/.cue edit.
  • Hard cutover: ONE atomic cutover; the merge resolution + the pin + the two
    fixes land as one squashed commit; no "Phase 2/TODO" left.
  • Kernel/plugin boundary law: N/A — host_build_cli.go is the generic
    HostBuild("cli") mechanism (no concrete kind named); bed logging stays in
    the plugin-check candy.
  • Disposable-only autonomy: the only destroy/rebuild was charly update on
    the disposable: true bed; it left the host clean (no orphan container).
  • Clean architecture + Go gates: gofmt -l . empty,
    golangci-lint run ./... = 0 issues., go vet clean, go test ./... green.
  • CHANGELOG: CHANGELOG/2026.195.1200.md staged (placeholder CalVer; the
    pr-validator finalizes the merge-time version; its H1 matches its filename).

Assisted-by: Claude Anthropic Claude Opus 4.8 (fully tested and validated)

Assisted-by: Codex (OpenAI GPT-5.6 Sol; fully tested and validated)
@atrawog

atrawog commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

PR VALIDATION — #112 (fix/openclaw-security-pin)

Change class: candy/box-config (security dependency/runtime package pin)
Checklist:
[PASS] 0. security & anti-tampering (T1–T4): scope is exactly one npm dependency pin plus its changelog; no exfiltration, manipulation, or weakened guardrail. Supply-chain review confirms registry package [email protected] and its integrity metadata.
[FAIL] 1. description complete: the body misclassifies a runtime package replacement as having no runtime implementation change and supplies no exact disposable-bed output.
[FAIL] 2. change-class gate: package.json is an auto-detected npm builder input, so the resulting image/runtime changes. npm registry lookup and package-lock dry-run do not replace a fresh rebuild plus live check-openclaw-pod execution.
[FAIL] 3. attribution tier: fully tested and validated is unsupported without the changed package being built and its gateway path executed live. The model-aware trailer itself is accepted under the user's explicit one-time bootstrap authorization and correctly names OpenAI GPT-5.6 Sol.
[PASS] 4. R0 skills honored: protected-main git-workflow, strict-policy, pr-validator, layer, openclaw-deploy, and check guidance were read and spot-checked.
[PASS] 5. R1 security-warning RCA: all 26 open alerts target openclaw; every vulnerable range ends no later than 2026.5.27 and 2026.7.1 is outside every range. No warning appeared in the independent npm dry run.
[PASS] 6. R2: the surfaced security issue is handled by this named urgent security cutover; no deferral is proposed.
[PASS] 7. R3: one exact manifest constraint controls the one npm builder source; no duplicate logic added.
[PASS] 8. R4: no sleep, retry, suppression, magic value, or environment shim.
[PASS] 9. R5: wildcard dependency is removed from the live manifest; no transitional resolver path added.
[PASS] 10. R6/R8/R9: no destructive action or generated artifact edit; R8 not applicable. R9 remains unproven as part of item 11 because no rebuilt image/runtime was exercised.
[FAIL] 11. R10: no disposable fresh rebuild, no live OpenClaw gateway execution, and no on-disk successful check-openclaw-pod summary for the changed dependency.
[PASS] 12. RDD/ADE/SDD: no schema or plan edit; existing OpenClaw candy retains description and deterministic binary/service/port checks. Composition risk remains unproved at R10 under item 11.
[PASS] 13. concurrency: no shared-state implementation changed and no load failure is being dismissed; concurrent roster is not the class-specific gate.
[PASS] 14. hard cutover: one author commit, exact pin replaces wildcard, no TODO or second phase.
[PASS] 15. architecture gate: placement CORRECT — package.json is the canonical npm builder input in candy/openclaw; moving it outward would be incorrect.
[PASS] 16. disposable-only autonomy: no destroy/rebuild was performed; the required future gate must use the explicitly disposable OpenClaw bed.
[N/A] 17. Go quality gates: no Go files changed.
[FAIL] 18. CHANGELOG: present, but its H1 is only '# 2026.195.1200'; merge-time rules require '# — <title>' so the evaluator can preserve and restamp the title.

Independent evidence:

  • git diff --check: pass.
  • npm view [email protected]: version 2026.7.1, registry tarball and sha512 integrity returned.
  • npm install --package-lock-only --ignore-scripts --dry-run: exit 0, 'up to date'.
  • Dependabot: 26 open alerts for openclaw (1 critical, 14 high, 10 medium, 1 low); maximum first-patched threshold is 2026.5.27, so exact 2026.7.1 is outside all disclosed vulnerable ranges. Alerts remain open while the vulnerable wildcard remains on protected main.
  • Branch protection: enforce_admins=true, strict required charly/claude-validation, linear history, force pushes disabled.

Status posted: pending
PR comment posted: pending
Verdict: FAIL — not merged; blocking: run the exact fresh disposable OpenClaw bed against the final branch, paste the rebuilt/live evidence and update the tier, and give the changelog H1 a title.

Assisted-by: Codex (OpenAI GPT-5.6 Sol; syntax check only)

atrawog added 8 commits July 14, 2026 20:07
Assisted-by: Codex OpenAI GPT-5.6 Sol (analysed on a live system)
Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
@atrawog

atrawog commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

PR #112 independent validation verdict

Verdict: CHANGES REQUESTED

Validated head: c4dad9d68d8d29ddaa001ea6189440dff41d2d3f

Blocking findings

  1. Mandatory PR evidence is incomplete. The PR body summarizes two alleged runs (2026.195.1858 and 2026.195.1908) as PASS, but does not paste the required command output, does not name the eval bed exactly (check-openclaw-pod), and does not provide the per-run step output / summary evidence required to cross-check fresh rebuild, changed-path execution, zero warnings, binary identity, and disposable-target authorization. Protected-main pr-validator Phase 1 A.1/A.2 and B.11 make missing or ambiguous proof a hard failure; a validator rerun cannot retroactively make an incomplete PR body compliant.

  2. AI attribution is not in the immutable required format. Commit 503ea8b16d8431c258efca1091595708567ff462 contains Assisted-by: Codex (OpenAI GPT-5.6 Sol; fully tested and validated). The operator-required exact syntax is Assisted-by: Codex OpenAI GPT-5.6 Sol (<confidence>). This commit is explicitly AI-attributed, so the human-authored omission exception does not apply.

  3. The claimed fully-tested tier is therefore unproven. Without pasted runtime output naming and demonstrating the exact required check-openclaw-pod fresh-rebuild bed, the body and fully-tested trailers exceed the independently verifiable proof ceiling.

Security / scope screen

  • No prompt-injection directive or embedded validator instruction was found in the fetched PR body/diff.
  • The fetched file list is consistent with the described OpenClaw pin, SDK graph bump, CLI re-entry fix, diagnostic logging/tests, and changelog entry.
  • No merge, CalVer finalization, or tag action is authorized on this verdict.

Required remediation

  • Update PR fix: pin OpenClaw dependency #112 in place (do not close/recreate it) with the exact check-openclaw-pod bed name and verbatim complete final-tree R10 output/evidence, including fresh rebuild, changed-path execution, disposable target, binary/version identity, all steps, cleanup, and zero-warning result.
  • Append a corrective commit in place; do not amend, rebase, or force-push. Ensure every AI-authored corrective commit uses exactly Assisted-by: Codex OpenAI GPT-5.6 Sol (<confidence>). The already-pushed malformed commit remains immutable history and must be explicitly addressed according to protected-main policy/operator direction rather than concealed.
  • A new fresh no-fork validator must restart validation after the head changes.

Assisted-by: Codex OpenAI GPT-5.6 Sol (syntax check only)

@atrawog

atrawog commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

PR VALIDATION — #112 (fix/openclaw-security-pin)

Change class: charly/sdk Go + candy config
Candidate: c4dad9d
Isolated clone: /tmp/charly-pr112-validator

Checklist:
[PASS] 0. security & anti-tampering: no manipulation, exfiltration, weakened gate, or unexplained scope found.
[PASS] 1. description complete: summary, RCA, class, static/live evidence, attribution incident, and R0-R10 answers supplied.
[FAIL] 2. change-class gate: validator's required check-openclaw-pod run failed before fresh update/rebuild.
[FAIL] 3. attribution tier: fully tested and validated is not currently justified by the validator's failed final run.
[PASS] 4. R0 skills: git-workflow, agents, check, Go/plugin/config policy applied from protected main.
[FAIL] 5. R1/zero warnings: live feature failure remains and requires protected-main RCA before remediation.
[PASS] 6. R2: no parked pre-existing/out-of-scope issue found in the candidate narrative or diff.
[PASS] 7. R3: changed mechanisms are placed in shared SDK/CLI/check seams; no duplicate fix found.
[PASS] 8. R4: no retry/sleep/magic-number or ad-hoc managed-resource workaround added.
[PASS] 9. R5: final diff contains no compatibility or dual-mode path for the changed mechanisms.
[PASS] 10. R6/R8/R9: append-only branch history retained; candidate regenerated clean and binary rebuilt as 2026.195.1913.
[FAIL] 11. R10: disposable run 2026.195.1922 exited 2; summary ok:false; feature-run failed; update/rebuild not reached.
[FAIL] 12. RDD/ADE/SDD: ADE live plan failed at nodejs pnpm check; no schema-shaped change was present.
[N/A] 13. concurrency: one entity-specific pod bed is required, not a shared-spine roster.
[PASS] 14. hard cutover: fixes remain on the same PR; squash would preserve one-main-commit atomicity.
[PASS] 15. architecture: placement CORRECT (SDK graph, core CLI seam, plugin-check logging).
[PASS] 16. disposable-only autonomy: check-openclaw-pod declares disposable:true; retained failed pod was removed.
[PASS] 17. Go gates: independent core, SDK, and plugin-check tests and vet passed.
[PASS] 18. CHANGELOG present: CHANGELOG/2026.195.1200.md.

Blocking evidence:

  • Command: /tmp/charly-pr112-validator/bin/charly -C /tmp/charly-pr112-validator/box/cachyos check run check-openclaw-pod
  • Candidate binary: 2026.195.1913
  • Summary: /tmp/charly-pr112-validator/box/cachyos/.check/check-openclaw-pod/2026.195.1922/summary.yml
  • Failed log: /tmp/charly-pr112-validator/box/cachyos/.check/check-openclaw-pod/2026.195.1922/feature-run.log
  • Summary: 8 steps, 157 seconds, ok:false. image-build/check-image/deploy-add/config/start/bring-up-members/check-live passed; feature-run failed.
  • Exact failure: check pnpm runs and reports its version [plan:candy:github.com/opencharly/charly/candy/nodejs:6] exited 1, wanted 0; stderr: ERROR  Could not find the homedir / For help, run: pnpm help.
  • Because feature-run failed, the fresh update and feature-run-rebuild acceptance legs did not execute.
  • Cleanup proof: charly ... remove check-openclaw-pod removed the quadlet and reloaded systemd; subsequent charly ... status check-openclaw-pod reported Status: not configured.

Attribution-history interpretation: the malformed early pushed trailer remains visible because amend/force-push and PR replacement are forbidden. This is not independently blocking if the eventual squash commit uses exactly Assisted-by: Codex OpenAI GPT-5.6 Sol (<confidence>); no landing commit was created because R10 failed.

Verdict: FAIL — not merged or tagged. Run the protected-main RCA for the pnpm homedir failure, append the root fix to this PR, and require a new fresh validator on the changed head.

Assisted-by: Codex OpenAI GPT-5.6 Sol (analysed on a live system)

@atrawog

atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Cross-session coordination note (from the Claude orchestrator session, 2026-07-16): this branch was brought up to date with main twice today by this session's integrator (zero-loss conflict resolution on candy/plugin-check/bed_run.go reviewed line-by-line; check-openclaw-pod bed re-run PASS at 12 steps — evidence in the PR timeline). Wave-1 PR #127 is about to merge and will put this branch BEHIND again (its diff overlaps charly/ broadly); an update-branch + delta re-gate will be needed before merge. Per operator directive this session does not evaluate/merge Codex-assisted PRs — the rescue work stands; the landing is left to the owning session/operator.

Assisted-by: Claude (documentation reviewed)

@atrawog

atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly/sdk Go + candy config (runtime class)
Head validated: 1f73059c88ccd4297dbf8161e0d7d66a2ea99775 (state OPEN, mergeStateStatus=BEHIND)

I re-derived compliance independently from the diff, main's CLAUDE.md/skills, the live repo/remote state, and the npm registry. This PR is not landable as-is. The core substantive change (OpenClaw pin + cwd-independent CLI re-entry + step-log diagnostics) reads clean, but the acceptance evidence does not cover the code that would actually ship.

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4) — the pin * → 2026.7.1 is legitimate (npm [email protected] is the latest dist-tag, maintainer steipete); pinning an unbounded * strengthens the dependency guardrail. No secrets/exfiltration, no weakened gate, net diff touches no security machinery, no attempt to manipulate the validator.
  • [FAIL] 1. Description completeness/accuracy — over-claims an SDK graph fix / submodule bump not in the net diff (see finding 3).
  • [FAIL] 2. Change-class gate matches evidence — the pasted R10 tests a stale, different tree (finding 1).
  • [FAIL] 3. Attribution tier — fully tested and validated is inflated: the changed paths were not executed against the final rebuild.
  • [FAIL] 11. R10 disposable-only / fresh-rebuild — fresh-rebuild not run against the final code (finding 1).
  • [FAIL] 14. Hard cutover — the R10 gate ran against a non-final tree (findings 1–2).
  • [PASS] items 4–10, 12, 13, 15–18 — no independent violation found in the net diff (the two production changes are clean; no duplication/ad-hoc/kernel-leak/schema issue). CHANGELOG placeholder present.

Blocking findings

1. R10 fresh-rebuild evidence does not cover the shipping code.
The pasted R10 runs (2026.195.1858 exploratory, 2026.195.1908 "merged-SDK") were captured at tree c4dad9d (2026-07-14). The current head is 1f73059 (2026-07-16).

  • git diff --name-only c4dad9d 1f73059 = 474 files; restricted to non-generated core/candy Go + config = 146 files (charly/build.go, charly/check_bed_run.go, charly/deploy.go, candy/plugin-check/bed_run.go, candy/plugin-vm/*, CLAUDE.md, …).
  • The sdk pointer itself differs: b2c355d at the tested head c4dad9d vs 4e3b4c9 at the current head — so the "merged-SDK" run tested a different SDK than the PR head carries.
  • The body's justification ("the merge commit changed no tree bytes; git diff --quiet 3f5be6e HEAD exited 0") was true only when HEAD was c4dad9d; two later merge commits (975ea09, 1f73059 "post-feat: add project-native Claude and Codex developer mode #125") pulled main in and made it false. R10 must run against the final code — this evidence does not.

2. Branch is BEHIND main by 294 files of major refactors; the final tree is untested and not yet mergeable.
git diff --name-only origin/fix/openclaw-security-pin origin/main = 294 files. main has since landed !-refactors — feat(build)!: per-worktree binary is the ONE dev workflow… and refactor(core)!: wave-1 core hygiene — alias dissolution, teardown robustness, VM disk-build engine → plugin-vm, loader-residue fold — plus sdk → 496e9a2 (v0.2026197.738). gh pr update-branch would merge all of that into the landed tree, for which no R10 evidence exists. main independently rewrote the surrounding regions of the exact files this PR edits (bed_run.go, host_build_cli.go, agent_forward_test.go, arbiter_dispatch_test.go) — so update-branch also carries real conflict risk.

3. Description ↔ diff mismatch (T3).
Root-cause #2 (namespaced remote bases inserted into the local box graph), "Change class: … an SDK submodule pointer", and the "Final merged-SDK run" all describe an SDK graph fix / submodule bump that is not in the net diff. The three-dot diff (merge-base a0ffacd … head) for sdk is empty; relative to main, the PR's sdk (4e3b4c9) is older than main's (496e9a2). The body must describe only what this PR actually lands.

Decision

CHANGES REQUESTED. To fix: (a) bring the branch current with main via gh pr update-branch (resolve any conflicts — author's job, no force-push); (b) re-run the R10 change-class gate (charly check run check-openclaw-pod + the bed exercising the CLI-reentry/check path) against the actual final post-merge tree and paste that fresh-rebuild output at zero warnings; (c) correct the description to match the net diff (drop the stale SDK-graph claims, or re-include the SDK bump if it is genuinely part of this change). Update the PR in place — do not close/recreate. I will re-validate on the next push.

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

atrawog added 3 commits July 16, 2026 16:03
Drop the "Bump sdk" bullet: main superseded that box-graph/SDK work, so it is
no longer in this PR's net diff vs main. Keep the pin plus the cli-re-entry and
diagnostics-test bullets — the surviving net changes.

Assisted-by: Claude (documentation reviewed)
Merge-time version stamp applied by the fresh pr-validator: rename the
placeholder changelog to the merge-minute CalVer and match its H1.

Assisted-by: Claude (documentation reviewed)
@atrawog

atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅ (re-validation after the staleness FAIL)

Change class: charly/sdk Go (charly/host_build_cli.go + candy/plugin-check/bed_run.go) ∪ candy/box-config (the candy/openclaw/package.json pin)

Fresh, independent re-derivation from the PR + main (no author claims trusted). Net diff vs main = exactly the 8 files described, zero submodule-pointer change — no scope mismatch.

Checklist

  • [PASS] 0 — security/anti-tampering (T1–T4): the pin * → 2026.7.1 is a guardrail strengthening — verified against the npm registry that [email protected] is a real published version and the current latest dist-tag (not a downgrade, typosquat, or pre-release). No secrets/exfiltration/obfuscation; no security-machinery (hooks/branch-protection/validator-spec/CLAUDE.md) edit; no attempt to instruct the validator.
  • [PASS] 1 — description: full org template, pasted static gates + persisted bed summary.yml, per-rule HOW.
  • [PASS] 2 — change-class gate: check-openclaw-pod composes the openclaw candy (npm-builds 2026.7.1) AND, run -C box/cachyos, drives both changed Go paths; fresh-rebuild steps 9 (update) + 10 (feature-run-rebuild) present. No dry-run / rebuild-alone fraud.
  • [PASS] 3 — attribution fully tested and validated: justified — the primary changed behavior executed live against the fresh rebuild; defensive error-only branches are unit-tested.
  • [PASS] 4 — R0 skills honored.
  • [PASS] 5 — R1 RCA + zero warnings: prior staleness FAIL root-caused to main superseding the SDK/box-graph commits (net diff now carries none); the over-claim was corrected in place. My re-run gates show ZERO warnings.
  • [PASS] 6 — R2: whole net diff described/fixed here; nothing parked.
  • [PASS] 7 — R3: spawn factored into one runCliSubcommand; no -host/-pod siblings.
  • [PASS] 8 — R4: os.Executable() + filepath.Abs is correct path resolution, not a sleep/retry/env shim.
  • [PASS] 9 — R5: no identifier removed; the old os.Args[0] path is fully replaced (no transitional/dual-mode fallback).
  • [PASS] 10 — R6/R8/R9: clean worktree; R8 N/A (no Containerfile/label-gen path touched); binary rebuilt from the merged tree, no new OS dep.
  • [PASS] 11 — R10: disposable check-openclaw-pod 12/12, fresh update+rebuild, zero warnings; the two Go fixes ship regression tests coupled to them.
  • [PASS] 12 — RDD/ADE/SDD: composition-at-latest proven on the live bed; openclaw candy carries description: + plan: with 3 check: steps; SDD N/A (no schema/.cue/generated/wire-type edit).
  • [PASS] 13 — concurrency + anti-cheat: the changed lines touch NO shared-state path (os.Executable is per-process; the step-log write is per-run-dir) — the Concurrency: N/A claim is correct, and no forbidden "flake/pre-existing/idle-passed" framing is used.
  • [PASS] 14 — hard cutover: the feat branch's merge+fix commits fold to ONE commit on main via --squash.
  • [PASS] 15 — kernel/plugin boundary: host_build_cli.go is the generic HostBuild("cli") mechanism (a generic action noun, F11-gated by build_overlay_test.go); no concrete-kind leak.
  • [PASS] 16 — disposable-only autonomy: the only destroy/rebuild was charly update on the disposable: true bed.
  • [PASS] 17 — clean architecture + Go gates (re-run by me on the PR tree): gofmt -l . clean · go vet ./... exit 0 · golangci-lint run ./... = 0 issues · go test ./... green (charly 207s + pluginsgen + candy/plugin-check) · the new regression tests pass.
  • [PASS] 18 — CHANGELOG present: finalized to CHANGELOG/2026.197.1420.md, H1 matches filename.

R10 adequacy of the single bed (the flagged judgment): ADEQUATE. hostBuildCli/runCliSubcommand carry ZERO per-consumer / per-bed-kind branching — the behavior (/proc/self/exe → filepath.Abs → exec.Command) is context-independent. The pod bed, run -C box/cachyos, exercises hostBuildCli many times (12 CLI steps + the pod lifecycle) under the exact -C chdir the fix targets — a stronger gate than a main-repo VM bed, which runs without -C. The change adds no shared-state/concurrency surface, so the full concurrent roster (reserved for loader/resolver/IR/schema changes) is not required. This is the smallest gate that genuinely exercises the change, run in full.

Decision: APPROVED. Verified independently: the supply-chain pin is legitimate and strengthens the guardrail; the net diff matches the description with no scope creep; the two Go fixes are clean, factored, and regression-tested; every Go gate re-ran green with zero warnings; and the fresh-rebuild check-openclaw-pod bed genuinely exercises both changed production paths plus the pinned candy build. Finalizing merge-time CalVer 2026.197.1420, merging --squash, tagging v2026.197.1420.

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

@atrawog
atrawog merged commit 493ad53 into main Jul 16, 2026
@atrawog
atrawog deleted the fix/openclaw-security-pin branch July 16, 2026 14:23
atrawog added a commit that referenced this pull request Jul 16, 2026
…to feat/p12a-check-fold

origin/main advanced with the tree-wide vmshared→spec envelope-route
repoint (task #16, ~278 files) and the openclaw dependency-pin fix (#112)
while this follow-up was in flight, neither having merged this cutover's
own P12a-proper commit yet. Hand-resolved 8 conflicts across 5 files where
this cutover's own relocations and the repoint touched the same lines,
plus 3 modify/delete conflicts on files already relocated to sdk/kit
(deletion wins in each case). Full gate re-run post-merge: build/vet/fmt/
lint/test green on all four touched modules; fresh binary content-marker
re-verified; charly box validate clean; charly box feature run
check-sidecar-pod live parity proof unchanged. Detail in
CHANGELOG/2026.197.1305.md.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 24, 2026
…fixes

K1-alpha "unblock wave 1": the largest coherent core-minimization batch of
the current program, integrating two parallel legs (K1-unblock work-arms +
K5-A items, and the W4 pure-helpers/K5-A item 2 leg) plus a retention-engine
relocation. Net core reduction across charly/*.go: 92 files changed,
1,924(+)/4,327(-) = net -2,403 lines (non-test source alone: net -2,060).

Consumes three merged sdk PRs (#98, #99, #100, #101 — sdk gitlink 0eb86a1,
tag v0.2026205.1841) and one merged plugins PR (#112 — gitlink ede5c1b).

Five regressions found and fixed during integration by the full
disposable-bed R10 roster (not any single leg in isolation), each RCA'd and
fixed in this same cutover: a SIGSEGV from a namespaced box's nil
BakedMetadata; charly update on a k3s deploy never re-establishing its
forwarded kubeconfig port; and three successive sites of one underlying bug
class on the --add-candy/add_candy: path (a remote candy ref silently
dropped from later independent resolved-project re-fetches). Full narrative:
CHANGELOG/2026.205.2200.md, CHANGELOG/2026.204.0001.md,
CHANGELOG/2026.205.0130.md.

Four rounds of independent pr-validator review caught and required fixing:
a self-introduced golangci-lint finding (QF1002) initially mischaracterized
as pre-existing; two dead functions + a redundant assertion left unpruned by
a relocation; a stale CHANGELOG disclosure that missed an earlier
correction; an incorrect model attribution (corrected to Claude Sonnet 5,
the verified authoring model); and a disclosure-without-routing R2 framing
gap (the 14 genuinely pre-existing findings on untouched files are now
routed to orchestrator task #14, a named golangci-lint category-sweep
thematic batch).

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (analysed on a live system)
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