Repository navigation
feat(check): fail-fast SKIP for GPU beds with no matching host card - #8
Merged
Merged
Conversation
A bed claiming a GPU resource (requires_exclusive/requires_shared → resource: gpu
vendor) on a host without that card built a 10-30GB image then died at start
("unresolvable CDI devices nvidia.com/gpu=all") or hard-failed at vm-create. Add
a deterministic pre-build host-prereq check (bedGPUPrereqMissing / pure
gpuPrereqMissing, reusing DetectVFIO + selectGPUByVendor): an absent GPU vendor
SKIPS the bed with a new CheckSkippedExitCode (3) + a "SKIPPED" line, like a
missing /dev/kvm — never a FAIL, never a wasted build. bedRunResult gains
SkippedPrereq/SkipReason; check run + main() map exit 3; verify-beds reads exit 3
as skippedPrereq deterministically (was agent-inferred). Live: check-cachyos-gpu-vm
→ SKIPPED exit 3, no build; check-local (non-GPU) → PASS exit 0 unaffected.
Assisted-by: Claude (fully tested and validated)
Contributor
Author
pr-validator — APPROVED ✅Change class: code/config (Go) + a prompt-string workflow edit (
Verified independently (adversarial):
Non-blocking observation (author's next cutover, not gating): the skip reason prints three times ( Decision: APPROVED. The change is additive, sound, and both new code paths are proven live on a fresh rebuild. Finalizing the merge-time CalVer, merging (rebase), and tagging. Assisted-by: Claude (fully tested and validated) |
…ail-fast skip) Merge-time version stamp for PR #8 (feat/gpu-bed-failfast), applied by the fresh pr-validator on PASS. No behavior change — renames the placeholder CHANGELOG entry to the merge-time CalVer. 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 24, 2026
…fedora main opencharly/distro-fedora PR #8 (the R5 HostArbiter prose-sweep completion, companion to this PR) merged as afb9237b (squash) on distro-fedora main. Repoint this PR's box/fedora gitlink from the branch-tip commit (a06cd314, which was never on distro-fedora's protected main) to the merged commit -- the half-assembled-base hazard B2 warns about (a superproject PR must never reference a submodule commit its own main has never seen). git -C box/fedora fetch origin main confirms afb9237b is origin/main's tip; git diff --cached --submodule=short shows the gitlink advancing FORWARD to the descendant merge commit, never re-pinning the older branch tip. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
atrawog
added a commit
that referenced
this pull request
Aug 4, 2026
…ips with
The previous commit's subject was "the excerpt checker shipped red". It fixed the
two classification bugs and pasted EXIT=0. The checker still exits 1 at the
committed state, and the EXIT=0 I pasted was executed against my WORKING TREE,
where the `docs` submodule sits on the unmerged `faae85c`.
Mechanically, no experiment needed:
$ git -C docs cat-file -e 9b4697f2:src/content/docs/guides/authoring-a-candy.md
fatal: path '...' exists on disk, but not in '9b4697f2...'
The script reads pages that exist only on the branch opencharly/docs#8 lands. A
missing page is a hard failure, by design. So against the `docs` gitlink this
commit pins — which is what the squash lands — it exits 1 on missing pages, and
would have gone onto main as a gate red on its own tree.
That is the fourth time in this program a claim survived only because of local
checkout state, and the first inside a commit whose entire subject was the same
class of error. The rule that catches it is not new and I keep restating it
without applying it: evidence must be executed against `git ls-tree HEAD
<submodule>`, never the working tree, because the working tree is exactly the
thing under suspicion.
THE FIX IS ORDERING, NOT CODE. The script is correctly placed in the superproject
— it is the only place that can see the docs and the sources they quote at once —
and it is genuinely non-vacuous (review mutated three blocks; each failed). It
simply cannot pass until the pages it reads exist at the pinned gitlink. So it
moves to the leg that bumps the `docs` gitlink after #8 merges: the first tree
where it can be green.
The two alternatives were worse. Adding a "not-yet-landed" category to let it
degrade would build a silent-skip path into the one tool whose docstring exists
because an earlier version silently skipped blocks and reported a confident false
pass. Bumping the gitlink now is the unmerged-pointer defect that blocked
charly#207.
The CHANGELOG's "Also here" section claimed the checker was part of this landing.
It is now under "Deliberately not here" with the reason, so the entry no longer
claims excerpt verification this tree does not perform.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
atrawog
added a commit
that referenced
this pull request
Aug 4, 2026
…ot a manual (#209) The tagline described what charly produces. The bet it actually makes — VISION.md's opening and its first tenet — is that you hand an agent everything rather than taking things away. "The fully stocked gourmet kitchen for you and your agents" says that directly: a kitchen is where you work, and fully stocked is the whole argument. README.md is cut to roughly a quarter of its length. It was a pitch, a concept primer, a command reference, a catalog index and a troubleshooting table at once, most of it duplicated on opencharly.ai — where the reference and recipe halves are GENERATED and cannot drift, while a hand-kept copy can and did. It is now a door: what this is, the words, one worked example, install, where to learn more. The install section is inverted to lead with the native package and scope the checkout to working ON charly, and every command outside that section runs from the binary alone via --repo. VISION.md changes ONE bullet, and not a tenet: all twelve numbered tenets are byte-identical. The changed line is one of six under "Where the factory is heading", which used "kitchen" for the small kernel while the new tagline uses it for the whole product. CLAUDE.md's H1 is the tagline, so it follows or the sweep is false; AGENTS.md carries no tagline. CLAUDE.md and AGENTS.md also add R4a — fix the product first; documentation never routes around a defect. Every command a reader is told to run must work with nothing but the charly binary installed; where it cannot, the page says nothing and the gap is filed as a product defect rather than documented as a workaround. The rule is applied to this same diff: the skill-tree setup commands are removed and filed as #210, and the MCP section states the reachable form instead of a verb the binary does not carry. GRIEVANCES.md (new) states the four DevOps grievances charly reacts to, each with the status quo stated fairly rather than strawmanned, the mechanism that answers it, and an explicit honest-limits section. taskfiles/Docs.yml fixes four tasks that had never worked: DOCS_DIR is absolute and was used as a task-level dir:, which Task resolves relative to the include's own dir: {{.ROOT_DIR}}, so the two concatenated. install, dev, build and preview now use a relative dir: docs. No gitlink moves — all twelve submodule pointers are byte-identical to main, pkg/arch included, because opencharly/pkg-arch#7 has not merged yet. This is the producer for opencharly/docs#8, which regenerates the vision projection against the VISION.md changed here and lands next; task docs:drift is red at this commit by design and returns to a no-op the moment #8 merges. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
atrawog
added a commit
that referenced
this pull request
Aug 17, 2026
…-merge PR heads A validator caught that four of NINE gitlinks named commits that are on no branch. Three are fixed here; sdk stays pending until sdk#140 lands. box/arch e77a894 -> 67cf83d the pre-CalVer feat head; the merge is already on main box/debian fdbf9ba -> 90c260b pre-squash feat head from 08-14; PR #8 merged the squashed form box/ubuntu f3822d5 -> 72cb06e same shape Verified recoverable-and-superseded rather than assumed: main is strictly AHEAD of each old pin, carrying the CalVer-finalized CHANGELOG (2026.226.1807 / 2026.226.1833) plus an add_candy repoint, so re-pinning loses nothing. Nothing was orphaned. **Why my own gate missed it, which is the reusable part.** I reported "all seven gitlinks in sync with their submodule HEADs". That compares the gitlink to a LOCAL CHECKOUT — and a checkout sitting on a PR head satisfies it perfectly, so it cannot detect an unmerged target. It also counted seven; there are nine, and both uncounted ones (box/debian, box/ubuntu) were in the failing set. The question that discriminates is per-submodule, after a fetch: git merge-base --is-ancestor <gitlink> origin/main Merging with an unmerged pin would have been worse than early: when those PRs merge, the CalVer commit plus the squash produce DIFFERENT SHAs, so the pins would be permanently wrong rather than merely ahead. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
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]>
atrawog
added a commit
that referenced
this pull request
Aug 30, 2026
#499) distro-omarchy has landed two PRs that charly's gitlink does not reach, so none of the work is usable from charly: #8 the omarchy beds assert through typed verbs instead of shell #9 upstream's system and cups acceptance suites ported onto check-omarchy-iso-vm box/omarchy 2f5e5c1 -> db2199a import pin v2026.242.0551 -> v2026.242.2251 Until this bump, `charly -C box/omarchy check run check-omarchy-iso-vm` resolves the pinned commit and runs the OLD 28-step shell-based bed. The work was merged but not wired in. 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. ## What it brings in The bed goes from 28 steps to 52, and from 43 `command:` shell steps across three beds to 4 in this one — each of the four justified in place with the reason it is not a verb. The 24 new assertions are the first consumer of the verb fields charly#498 just repinned: `service: {scope: user}` for the user-session audio stack, `service: {none_failed:}` on both managers, `user: {not_groups: [docker]}` for the root-equivalent-group posture, `file: {owner, group_of, mode}` for the CUPS policy file, and `command: {expect_non_zero: true}` for the two assertions whose whole point is that they must fail. ## How tested $ task build:binary [exit 0] $ charly -C box/omarchy box validate [exit 0] The bed is reachable through charly at its new size, which is the thing this bump exists to make true: $ python3 -c "... yaml.safe_load(open('box/omarchy/charly.yml')) ..." iso bed steps reachable from charly: 52 The bed itself was proven in distro-omarchy#9 on the submodule commit this pins — `PASS (steps=9)`, with `check-live` and `check-live-rebuild` both at `52 steps: 52 passed, 0 failed, 0 skipped` and no `warnings=` counter on any step. Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
atrawog
added a commit
that referenced
this pull request
Aug 31, 2026
distro-omarchy#10 converted `check-omarchy-pacstrap-vm` to typed check verbs — the conversion withdrawn from #8 while its guest could not boot, unblocked by #502. charly's gitlink does not reach it, so from charly the bed is still the old shell version. box/omarchy db2199a9 -> b82ed69e import pin v2026.242.2251 -> v2026.243.0406 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. ## How tested $ task build:binary [exit 0] $ charly -C box/omarchy box validate [exit 0] The converted bed is reachable through charly at its new shape, which is the thing this bump exists to make true: pacstrap bed reachable from charly: 6 steps, 1 command (5 `command:` steps before the conversion, 1 after — the remaining one needs `sudo -n` to read a mode-0700 ESP, which `file:` cannot do.) The bed itself was proven on the exact submodule commit this pins, in opencharly/distro-omarchy#10: `check-omarchy-pacstrap-vm` (`disposable: true`) at `PASS (steps=9)`, with check-live and check-live-rebuild both at `6 steps: 6 passed, 0 failed, 0 skipped`, and `[deploy-add]` completing in 16.26s where it previously hung indefinitely. 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 31, 2026
…#516) charly pinned plugin-box v0.2026243.729, from before two fixes merged and tagged in the owning repo. A merged and tagged module is not a shipped fix until its consumer repins, so neither was in any charly binary: #8 (v0.2026243.1040) -- `charly box validate` reported "N warnings" and never said what any of them were. The count was visible, the cause was not. #9 (v0.2026243.1718) -- `charly box reconcile`, which the git-workflow rule names as THE remedy for a `resolved to multiple versions` warning, rewrote the 4 pins it reported and 405 lines in total. It re-serialized the whole document, and yaml.v3 does not reproduce a folded block scalar (`>-`): every authored description: in the file was reflowed. The remedy's own diff was a review blocker, so the warning it exists to clear could not be cleared with it. Both verified against a stock `task build:binary` of this tree, on a real 160KB project rather than a fixture: box validate now prints the two warnings by name, not just the count box reconcile 2 files changed, 4 insertions(+), 4 deletions(-) (was 170 insertions(+), 235 deletions(-) on the same 4 pins) go.sum moves with the require; no source changes. Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6 Co-authored-by: atrawog <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 8, 2026
…e parsed node (wave: spec 533, sdk 531, plugin-loader 534) (#565) * refactor: F2 — the genericNode dual representation dies (bridge deletion) Parser consolidation F2 (plan/nested-capture-architecture.md, Cutover F2). The dual-representation member-tree IR is gone: node_parsed.go (the JSON→yaml→JSON round-trip machine parsedNodeToGeneric/genericToParsedNode + the normalizeNodeInto test bridge), node_parse.go (the genericNode type), node_candy.go (the yaml-key candyIsImage + buildCandy re-conversion) and node_build.go (decodeNodeValue's wrapper) are DELETED. Their last prod callers (foldCandyKind, validateKindValueCUE, materializeDiscoveredNode) now operate on the wire-safe spec.ParsedNode through the loader seam: - foldCandyKind: pl.CandyIsImage(pn)/pl.BuildCandy(pn) (the loaderkit parsed-node restatement) + the SHARED spec set-body folds (spec.SetBoxInto/SetCandyInto, F2.4) — no genericNode reconstruction anywhere in the dispatch. - validateKindValueCUE: the mapping-shape check reads the canonical JSON body directly; the CUE ingest is CueDocFromJSON (F2.3) — the gn→yaml.Marshal→CueDocFromYAML round trip is gone. - materializeDiscoveredNode: pl.CandyIsImage(pn) (F2.1). - materializeDocStream: the ONE loaderkit doc-stream composer (pl.ParseDocStream, F2.5) drives the embedded-vocab stream with the same per-document pipeline as the file walk; the hand-rolled classify/gate/parse loop is deleted. - The three self-labeled (R3) one-line wrappers (isStandaloneResourceKind, foldStandaloneTemplateReply, decodeNodeValue) are inlined at their call sites / die with buildCandy; node_normalize.go disappears, ensureMap moves beside its consumer. - pluginPrimaries (F2.6): the frozen 11-entry table is DELETED — the table is seeded at init from the compiled-in units' declared capability primaries (the embedded charly.yml verb_primaries: data directive, admitted by #NodeDoc), and the expectation is a parity assertion (node_desugar_test.go). - KindProvider (the last type naming genericNode) + its no-op bijection gate die with the type; the reserved-registry test iterates the live ClassKind registry instead. - R5 sweep: stale claims about the deleted bridge fixed across loader_threaded.go / plugin_prescan.go / materialize.go / materialize_seam_parity_test.go / plugin_inproc.go / the kernel manifest. - Moved tests: the bridge test files' candy/child-form coverage lives beside the loaderkit implementation in sdk (candy_node_test.go, node_childform_test.go); the charly-side plugin e2e + node-form tests were rewritten against parsed-node fixtures (parsednode_helpers_test.go). Full kernel suite green on the committed tree (with the wave's worktree replaces; the final pin commit swaps them for the released tags). * fix(deps): pin the F2 wave tags — spec v0.2026251.533, sdk v0.2026251.531, plugin-loader v0.2026251.534 The F2 bridge-deletion wave's seam surface + implementations are released (spec #123/#124, sdk #240, plugin-loader #8). The dev worktree replaces are dropped; the full kernel suite is green on the final committed real-pinned tree. * chore: re-trigger validator with the A2/A3 bed evidence (pod 2026.251.0621 + VM 2026.251.0627, both PASS)
atrawog
added a commit
that referenced
this pull request
Sep 12, 2026
…encode-session fix (#593) ROOT CAUSE of the org-wide verdict outage, second half. The PR validator runs `charly review` from the PINNED charly RELEASE bundle (charly-linux-amd64 + charly-plugins-linux-amd64.tar.gz), NOT from plugin-review@main — so merging opencharly/plugin-review#8 changed nothing on the gate. That bundle still welds plugin-review v2026.254.1719, which never sends the `x-opencode-session` header the org's Go gateway now requires, so every review attempt returns HTTP 400 MissingSessionID and NO PR in any repo can obtain a verdict. EVIDENCE (the live gate, after #8 merged at 16:48:23Z): validator runs at 16:48:54Z and 16:49:11Z still log plugin-review: attempt 1/3 failed: LLM 400: {"type":"error","error":{"type":"MissingSessionID"...}} while plugin-review's main demonstrably carries the fix — because the gate never reads main. This commit delivers it: pin the welded plugin-review at v2026.255.1648, the tag-on-merge tag of #8's merge commit 80dbbdb4c1ae. The next charly release then bundles the fixed engine, and the org variable CHARLY_VERSION must be pointed at that release (nothing else on the gate changes; the workflow's hardcoded default is unreachable while the gate is down). PROVEN LOCALLY with the org key before landing (every candidate explanation tested): /zen/go/v1 plain -> 400 MissingSessionID /zen/go/v1 + x-opencode-session -> 200 + a real completion /zen/v1 (any header) -> 401 - that base does not serve the org's model User-Agent default/none/action -> 200/200/200 - the UA is IRRELEVANT stream:true + header -> 200 + real SSE chunks and through the engine's own request path ((*llmClient).chat): ACCEPTED with the header, the exact 400 without it. OPERATOR NOTE: this PR cannot obtain a validator verdict while the gate it repairs is dark, so it needs the app-based (or admin-assisted) operator merge — same situation as plugin-review#8.
This was referenced Sep 24, 2026
This was referenced Oct 3, 2026
This was referenced Oct 14, 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
A check bed claiming a GPU resource (
requires_exclusive/requires_shared→ aresource:gpu vendor) on a host with no matching card used to build a 10-30 GB image and only then die at start with "unresolvable CDI devices nvidia.com/gpu=all" (the shared-nvidia pods), or hard-FAIL at vm-create (the exclusive nvidia VMs). On this AMD-only host that made three NVIDIA-passthrough beds unrunnable-but-reported-as-FAIL — noise that obscured real failures in the P1 roster.Added a deterministic pre-build host-prerequisite check: before any build or resource acquire,
bedGPUPrereqMissing(pure innergpuPrereqMissing, reusingDetectVFIO+selectGPUByVendor) detects when a required GPU vendor is absent and SKIPS the bed — a newCheckSkippedExitCode(3) + aSKIPPED — no GPU matching vendor …line, exactly like a missing/dev/kvm, never a FAIL and never a wasted build.bedRunResultgainsSkippedPrereq/SkipReason;charly check run+main()map it to exit 3; the verify-beds workflow now reads exit 3 asskippedPrereqdeterministically (R4 — was an agent's heuristic inference of the output).Change class + gate (R10, code)
go test ./...green (+ newTestGPUPrereqMissing: absent/present vendor, non-GPU token never probes, mixed, none);golangci-lint0 issues;task build:charlyR9 (charly version2026.189.0146).Tier: fully tested and validated.
Assisted-by: Claude (fully tested and validated)