Repository navigation
chore(pins): advance sdk to v0.2026241.1032 + plugin-fleet/substrate to the ledger tags - #447
Merged
Merged
Conversation
…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
# Conflicts: # charly.yml
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)
…viors_test.go covers them)
…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
Contributor
Review — PASSHead SHA: 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.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlledger:section (the per-run XDG_CONFIG_HOME override redirects the plugin's default resolution).How tested
Rulebook compliance
~/.config/opencharly/installed/— the user directive to unify all local state into~/.config/charly/charly.ymlwith proper kinds (sdk#183).LedgerPathsfields (a stale consumer fails to compile loudly).git statusclean before commit; no force-push; PR-only landing.go test ./...passes on the final tree (above).check-charly-vmdisposable bed (the sdk#183/plugin-fleet#6/plugin-substrate#3 bed runs are pasted in their PRs).ledger:kind is CUE-sourced (spec#66).Change classification
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)