Skip to content

chore(pins): advance sdk to v0.2026241.1032 + plugin-fleet/substrate to the ledger tags - #447

Merged
github-actions[bot] merged 14 commits into
mainfrom
feat/ledger-pins
Aug 29, 2026
Merged

github-actions[bot] merged 14 commits into
mainfrom
feat/ledger-pins

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The install ledger moved to the ledger: section of the per-host charly.yml (sdk#183) — the single home for local system state. Pin the merged tags: sdk v0.2026241.1032, plugin-fleet v0.2026241.1037, plugin-substrate v0.2026241.1038. The reverse-channel e2e test reads the ledger from the charly.yml ledger: section (the per-run XDG_CONFIG_HOME override redirects the plugin's default resolution).

How tested

$ cd /tmp/charly-pr2/charly && go test ./...
ok  	github.com/opencharly/charly/charly	77.582s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	(cached)

Rulebook compliance

Rule How
R1 — RCA every anomaly The install ledger was per-deploy JSON files under ~/.config/opencharly/installed/ — the user directive to unify all local state into ~/.config/charly/charly.yml with proper kinds (sdk#183).
R2 — no pre-existing split N/A — single pin update.
R3 — no duplication N/A — pins only.
R4 — no workarounds The fix is the real pin advance, not a shim.
R5 — hard cutover The old pins are replaced in the same commit; the sdk dropped the legacy LedgerPaths fields (a stale consumer fails to compile loudly).
R6 — git safety git status clean before commit; no force-push; PR-only landing.
R7 — prove the gate go test ./... passes on the final tree (above).
R8 — generation/label verification N/A — no generated artifacts.
R9 — binary integrity N/A — no binary artifacts.
R10 — disposable fresh-rebuild proof The consuming stack is gated by the check-charly-vm disposable bed (the sdk#183/plugin-fleet#6/plugin-substrate#3 bed runs are pasted in their PRs).
RDD — prove high-risk assumptions The e2e test exercises the ledger read from the charly.yml.
ADE — spec-is-the-test N/A — no plan: acceptance steps.
SDD — schema-driven design The ledger: kind is CUE-sourced (spec#66).

Change classification

  • Change class: config (dependency pin bumps)
  • Verification gate: build + unit tests
  • Attribution tier: fully tested and validated — go test ./... passes on the final tree; the changed path (the ledger read) is exercised by the e2e test.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

atrawog added 14 commits August 29, 2026 11:35
…Client; cache in the per-host charly.yml

The per-host charly.yml (~/.config/charly/charly.yml) is the SINGLE home for
local system state — deployments, install records, local system info, and
cache status. The git metadata cache the loader resolves @github refs with
lives in its `cache:` section (spec#66), NOT in ad-hoc JSON files.

- charly/git_client.go: the charly-core process-wide GitClient singleton
  (spec/refs.GitClient); the host seams share it instead of calling the raw
  git primitives directly (R3)
- host_build_remote_image_resolve.go: refs.GitLatestTag → gitClient().LatestTag
- host_build_box_fetch_resolve.go: refs.GitDefaultBranch → gitClient().DefaultBranch
- plugin_prescan.go: builtinOnlyInvocation() skips the remote prescan fetch
  for version/help/settings/ssh — the 13s `charly version` hang (issue #423)
- charly.yml: schema migration 2026.232.0520 → 2026.240.1943 (required by the
  new spec)
- go.mod: spec v0.2026241.931, sdk v0.2026241.933 (git-layer wiring),
  plugin-vm v0.2026240.2034, plugin-check v0.2026241.920 (dev-worktree
  allowance)
- host_build_retention_defaults.go: the retention-defaults seam reads
  charly.yml defaults directly (no walk, no refs) — the #423 clean-hang fix
…t the new kernel files

- charly/charly.yml: schema migration 2026.232.0520 → 2026.240.1943 (the
  embedded default config, required by the new spec)
- testdata + test fixtures: version bump to 2026.240.1943
- build_target_oci_test.go: the cargo builder (sdk PR #180) copies the crate
  to /tmp/charly-cargo-src before installing — the test now expects the new
  rendering
- reverse_channel_three_legs_test.go: whitelist the retention-defaults host
  builder kind
- KERNEL_MANIFEST.md: rows for host_build_retention_defaults.go + git_client.go
TestMaterializeSeam_RealFixtureDeterministic loads box/fedora as its fixture and
failed on this branch with:

  box/fedora/charly.yml: schema 2026.240.1943 is required
  (found "2026.232.0520"). Run: charly migrate

The spec this branch pins requires schema 2026.240.1943; distro-fedora carried
the old stamp. That migration is now merged (opencharly/distro-fedora#43), so
advance the gitlink to it. Only the gitlink changes here -- no edit inside the
submodule.

  box/fedora: f267d3fb -> fbc10ba4

Claude-Session: https://claude.ai/code/session_01Gf42A3bau77JigFYLALrnq
…240.1943 migrations

The five box submodules (arch/cachyos/debian/fedora/ubuntu) migrated their
charly.yml to schema 2026.240.1943 (version-bump-only PRs). Advance the
pointers so the charly project loads them under the new spec.
The `go` job's gofmt gate fails the build:

  gofmt would rewrite these files:
  charly/host_build_retention_defaults.go
  charly/plugin_prescan.go

Both are cosmetic -- one struct-tag field alignment, one stray double blank
line. No behaviour change.

Claude-Session: https://claude.ai/code/session_01Gf42A3bau77JigFYLALrnq
The kernel-manifest row and the reverse-channel whitelist entry are registration
gates -- neither fails if the new code computes the wrong answer. Add a test per
new behavior, each verified to fail without it:

  builtinOnlyInvocation      break the builtin case list -> 6 subtests FAIL
  hostBuildRetentionDefaults drop the keep_images read   -> ReadsBothFields FAIL
  gitClient                  return a new client per call -> IsSingleton FAIL

The discriminating halves matter more than the happy paths: builtinOnlyInvocation
is table-driven over commands that must NOT skip (build/check/config/start), since
a mis-firing skip silently loses external command words; the retention seam is
pinned to degrade to 0/0 with a NIL error on an absent or unparseable project,
which is its documented best-effort contract; and the gitClient singleton is what
keeps the cache alive across calls -- a per-call client would silently restore the
timing this cutover exists to fix.

Claude-Session: https://claude.ai/code/session_01Gf42A3bau77JigFYLALrnq
…scan skip

- TestBuiltinOnlyInvocation: the prescan remote fetch is skipped for
  builtin-only invocations (version/help/settings/ssh) — the #423 13s
  `charly version` hang; non-builtin commands are NOT skipped
- TestHostBuildRetentionDefaults: the retention seam reads
  defaults.keep_images/keep_check_runs from charly.yml WITHOUT walking the
  project or resolving @github refs; absent config degrades to 0/0
- TestGitClientSingleton: the charly-core process-wide GitClient singleton
  constructs a spec/refs.GitClient and is process-wide (same instance)
…to the ledger tags

The install ledger moved to the `ledger:` section of the per-host charly.yml
(sdk#183). Pin the merged tags: sdk v0.2026241.1032, plugin-fleet
v0.2026241.1037, plugin-substrate v0.2026241.1038. The reverse-channel e2e
test reads the ledger from the charly.yml `ledger:` section (the per-run
XDG_CONFIG_HOME override redirects the plugin's default resolution).
# Conflicts:
#	charly/go.mod
#	charly/go.sum
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 916afe454a12 (branch: feat/ledger-pins)

Security screen: PASS — pin bumps to legitimate opencharly repos; no secrets, exfiltration, or guardrail changes; summary accounts for all 3 diff files (go.mod, go.sum, e2e test).

Checklist: All applicable rules PASS or NA.

  • Change class: config (dependency pin bumps) + test migration. go test ./... passed on the final tree; the e2e test exercises the changed ledger-read path against the new pins. go.mod/go.sum bumps are internally consistent (sdk v0.2026241.1032, plugin-fleet v0.2026241.1037, plugin-substrate v0.2026241.1038 match the body's claims).
  • R1/R2/R3/R4/R5: RCA provided (ledger moved to charly.yml per sdk#183); no pre-existing split; no duplication; no workarounds; old pins replaced in the same commit with the sdk dropping legacy LedgerPaths fields.
  • R10: charly's own gate (go test ./...) passed; the disposable check-charly-vm bed is referenced (cross-repo runs pasted in the upstream PRs) — acceptable for a pin-bump class where the charly-repo gate is the unit/e2e suite.
  • Architecture gate: placement CORRECT — pin bump + test-only change, no layer misplacement.
  • Attribution: fully tested and validated justified — the changed e2e path executed live via go test ./...; footer in the required *Assisted-by:* form.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 10:56
@github-actions
github-actions Bot merged commit d8a0df8 into main Aug 29, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the feat/ledger-pins branch September 25, 2026 19:05
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