Repository navigation
refactor(loader): remove LibvirtGraphicsListeners YAML expander (JSON decoder serves both paths) - #6
Merged
Merged
Conversation
… decoder serves both paths) Consumer half of the sdk UnmarshalJSON fix (v0.2026189.59): the sdk type is now a json.Unmarshaler, so implementsJSONUnmarshaler short-circuits it and cue.Value.Decode runs its tri-shape UnmarshalJSON on both the YAML and opaque substrate-decode paths. expandLibvirtListenersNode (+ its expander-map entry) is dead → DELETED (R5); one decoder serves both paths (R3). Fixes check-cross-vm-http (listen: 127.0.0.1 scalar shorthand on the opaque vm path). sdk pointer 945974e → 0561805. Live: box/fedora box validate exit 0. Assisted-by: Claude (fully tested and validated)
Contributor
Author
pr-validator — APPROVED ✅Change class: code/config (cross-repo: sdk pointer bump
Independent verification (re-ran, trusted nothing):
Decision: APPROVED. The failure class is a load-time decode; Assisted-by: Claude (analysed on a live system) |
…bvirtGraphicsListeners expander) Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
atrawog
added a commit
that referenced
this pull request
Jul 9, 2026
…; fix -C fail-open The pre-commit gate detected commits with a regex that could not span a quoted arg with a space: a failed match was read as 'no commit' and allowed everything, so git -C "$P" commit blocked with a misleading message and git -C "/has space" commit bypassed the gate. Fixing that had grown into a ~200-line shell-parsing engine (line-continuation normalization, eval/bash -c recursion, a wrapper safety net) chasing obfuscations a static gate provably cannot close and no honest commit uses. Wrong shape. These gates are DISCIPLINE BACKSTOPS, not security boundaries: every change is re-validated by a fresh pr-validator agent and by GitHub branch protection. Rewritten to catch the common honest mistakes cheaply and delegate the rest. - New shared .claude/hooks/gitcmd.py: git_invocations() finds git [globals] <subcmd> via plain shlex.split (quotes handled -> a quoted spaced path is one token, the one real fix), plus hooks_path_override() and dash_c_dir(). The parsing was duplicated across both gates (same fail-open in each) and now lives once (R3). - pre-commit-gate.sh: the five documented invariants as INDEPENDENT best-effort checks, so no single fragile parse disables the rest. An unresolvable -C (a $VAR / bad path) SKIPS the diff-dependent checks rather than inspecting the wrong repo. - pre-push-gate.sh: force-push / --no-verify / core.hooksPath / push-to-main over the same shared parser, which also closes its identical fail-open (was task #6). - Deleted the whole anti-obfuscation layer. Obfuscation (splitting the command word, runtime-generated strings) defeats any static parser in an infinite regress; GitHub branch protection is the authority for the adversarial case. 27-case behavioural suite on real repos, all pass: every invariant blocks its violation and allows its honest form, incl. the original bug now fixed, -C to a submodule, --no-verify inside a message, commit's own -c HEAD~1, echo-mention, and the push set. Assisted-by: Claude (fully tested and validated)
6 of 7 tasks
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 29, 2026
Carries plugin-marketplace#5 (marketplace.json description/version moved to top level per the Claude Code plugin-marketplace spec — they were nested under metadata, so the published catalog had neither as far as Claude Code is concerned) and #6 (the generator generates the marketplace and nothing else: emit_hooks, emit_dispatcher and emit_setup deleted, -513 lines). Verified at the tag rather than inferred from the PR numbers: the emitter carries `json:"description,omitempty"` and emit_hooks.go is absent. The corpus cannot receive either change until this ref advances, because generation resolves the generator through this pin. Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated) Claude-Session: https://claude.ai/code/session_01RsGxCtfzmm8S5wJzjSBGrY Co-authored-by: atrawog <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 30, 2026
main ships the omarchy `installer:` block (#485) with a plugin-vm that does not implement `source.kind: iso`. So the answer format is there and unusable: charly: error: command "vm": vm "omarchy-vm": unsupported source.kind "iso" (want one of cloud_image, bootc, bootstrap) #485 carried this bump as a second commit; the squash-merge landed only charly/charly.yml. Confirmed: $ git show --stat 5caaf43 | tail -2 charly/charly.yml | 236 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 236 insertions(+) So this is not a new dependency decision — it is the half of #485 that did not land, restored, and re-verified against what is published now rather than what was published then. plugin-vm v0.2026240.2034 -> v0.2026242.1323 plugin-distro v0.2026242.804 -> v0.2026242.1131 sdk v0.2026241.2111 -> v0.2026242.1250 spec v0.2026242.753 -> v0.2026242.1251 plugin-vm brings the iso engine (#8), the virtio answers volume (#9) and the per-domain seed (#10). plugin-distro brings the resolver that stops `installer:` arriving nil at every consumer (#6) — without it the block in charly.yml is silently dropped even once the engine exists. sdk and spec bring the seed context's disk_size_bytes and the template arithmetic the partition geometry needs. Verified: `task build:binary` passes its own go.work.sum drift guard, and the resulting binary builds an iso VM — vm-build and vm-create both PASS on check-omarchy-iso-vm, where the previous binary failed in 761 ms with the error above. Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 30, 2026
distro-omarchy has landed two PRs that charly's gitlink does not yet reach: #5 omarchy-vm — the official ISO, installed unattended, and its disposable bed check-omarchy-iso-vm #6 charly-omarchy — the ready-to-run keeper deploy, and its disposable twin check-charly-omarchy-vm Until this bump, none of those entities is reachable from charly: `charly -C box/omarchy vm build omarchy-vm` resolves the pinned commit, which predates them. The work was merged but not wired in. Both beds pass on the submodule commit this pins: check-omarchy-iso-vm PASS (steps=9), zero non-allowlisted findings, 13/13 after the disposable rebuild check-charly-omarchy-vm PASS (steps=9), check-live 11/11 Policy B is preserved by construction: this repo's box/omarchy IS the pin the umbrella mirrors, so the umbrella syncs to this rather than being hand-pinned. That sync is its own PR in opencharly/opencharly. Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
This was referenced Sep 7, 2026
This was referenced Sep 26, 2026
Closed
This was referenced Oct 14, 2026
This was referenced Oct 17, 2026
This was referenced Oct 27, 2026
This was referenced Nov 27, 2026
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
Consumer half of the sdk
LibvirtGraphicsListeners.UnmarshalJSONfix (sdkv0.2026189.59, already merged). With the sdk type now ajson.Unmarshaler, the CUE normalizer'simplementsJSONUnmarshalerguard short-circuits it, socue.Value.Decoderuns the tri-shape decoder on both the YAML read path and the opaque substrate-decode path (a de-typed vm body). The charly-sideexpandLibvirtListenersNodeexpander (+ itscueShorthandExpandersentry) is now dead and deleted (R5) — one decoder serves both paths (R3, the Matcher/PortScope precedent).Fixes the
check-cross-vm-httpweb-vm regression (pre-existing, from Cutover L):listen: 127.0.0.1scalar shorthand (and object/list forms) failed on the opaque path with "cannot unmarshal string into … LibvirtGraphicsListeners".Bumps the sdk pointer
945974e → 0561805.Change class + gate (R10)
Cross-repo (sdk pointer bump + loader Go). The failure is a load-time decode, so the gate is
box validate(which folds + resolves web-vm's vm body through the exact opaque path) + the unit decoders:go test ./...green (+TestLibvirtListeners_OpaqueNotExpanderlocking the fix + the sdkTestLibvirtListeners_JSONTriShape);golangci-lint0 issues;task build:charlyR9 (charly version2026.189.0109).charly -C box/fedora box validateexit 0 (before:vm resolve: decode: cannot unmarshal string into LibvirtGraphicsListeners).git grep expandLibvirtListenersNode→ only CHANGELOG.Tier: fully tested and validated.
Assisted-by: Claude (fully tested and validated)