Skip to content

feat: the python-gobject, agent-tools and hello-web example candies - #3

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/example-candies
Nov 23, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/example-candies

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

GRIEVANCES.md in opencharly/opencharly is being rewritten (opencharly/opencharly#1249) so that its examples build one project, step by step, from imported candies only. Today this repository ships only search-tools. This PR adds the three candies the later grievances need:

Candy What it shows in GRIEVANCES Content Checks
python-gobject one concern, a package name that differs per distribution family distro: arch → python-gobject, fedora → python3-gobject, "debian,ubuntu" → python3-gi python3 imports gi
agent-tools a box that can run containers and VMs inside the deployment it is handed (nesting) distro.arch: podman, qemu-base, libvirt. Arch family only, as its description says /usr/bin/podman, /usr/bin/qemu-system-x86_64 and /usr/bin/virsh exist
hello-web checks that travel with the artifact, in both phases the system Python (arch → python, fedora and "debian,ubuntu" → python3); /srv/hello/hello and /srv/hello/health, written by write: steps; the hello-web service on port 8080 the page is in the artifact (file), and the running server answers GET /hello with 200 and hello (http, runtime context, eventually: 30s)

README.md and AGENTS.md now describe four candies instead of one. hello-web's description and the README say that, until opencharly/charly#764 lands, a box composing hello-web also composes @github.com/opencharly/layer-supervisord.

GRIEVANCES.md shows these candies in DESIGN.md's target grammar. This repository writes them in the schema the pinned charly reads today, as it already does for search-tools.

Branch: the original commit, plus one review-round commit (round 1's fixes). Diff against main: 3 files changed, 130 insertions(+), 13 deletions(-).

Closes #2

How tested

# head 188e33250914ed1389b8a09874defe50d8b89de9 (git rev-parse HEAD)
$ charly version
2026.327.1010
$ charly -C . box validate
charly box validate: OK — checked 4 candies, 6 distros, 7 builders; 0 warnings, 0 errors

The binary is built from the umbrella's charly pin bd82136f877c4002f2da6b7a6057f4540fd9b4a3 (clean tree; the commit is dated 2026-11-23 10:10 UTC, which is the CalVer it stamps).

The R10 beds: one per distribution family the candies name. No bed in the org composes these candies, so I built a scratch project with four disposable: true pod beds:

Bed Box base Composes
check-cachyos-example-pod cachyos.cachyos (distro-cachyos:v2026.327.0930), Arch family all four candies
check-fedora-example-pod fedora.fedora (distro-fedora:v2026.325.1900) search-tools, python-gobject, hello-web
check-debian-example-pod debian.debian (distro-debian:v2026.325.1116) the same three
check-ubuntu-example-pod ubuntu.ubuntu (distro-ubuntu:v2026.325.1116), the "debian,ubuntu" key the same three

Every box also composes layer-supervisord:v2026.314.0710 (charly#764). agent-tools is composed on the Arch-family box only, because its package names are Arch's. The scratch project's candy text is byte-identical to this head's charly.yml: tail -n $(wc -l < charly.yml) ../bed-all/charly.yml | cmp - charly.yml prints nothing and exits 0. The project validates with 0 warnings, 0 errors.

charly check run check-cachyos-example-pod: PASS (steps=16, skipped_checks=2)
charly check run check-fedora-example-pod: PASS (steps=16, skipped_checks=2)
charly check run check-debian-example-pod: PASS (steps=16, skipped_checks=2)
charly check run check-ubuntu-example-pod: PASS (steps=16, skipped_checks=2)

Each skipped_checks=2 is the two runtime-context checks that do not run in image mode (hello-web's http check and one of layer-supervisord's). Both ran and passed in every live phase. Per phase:

== check-cachyos-example-pod (2026.327.1725)
  check-image          15 steps: 13 passed, 0 failed, 2 skipped
  check-live           15 steps: 15 passed, 0 failed, 0 skipped
  feature-run          15 steps: 15 passed, 0 failed, 0 skipped
  check-live-rebuild   15 steps: 15 passed, 0 failed, 0 skipped
  feature-run-rebuild  15 steps: 15 passed, 0 failed, 0 skipped
== check-fedora-example-pod (2026.327.1646)
  check-image          12 steps: 10 passed, 0 failed, 2 skipped
  check-live           12 steps: 12 passed, 0 failed, 0 skipped
  feature-run          12 steps: 12 passed, 0 failed, 0 skipped
  check-live-rebuild   12 steps: 12 passed, 0 failed, 0 skipped
  feature-run-rebuild  12 steps: 12 passed, 0 failed, 0 skipped
== check-debian-example-pod (2026.327.1655)
  check-image          12 steps: 10 passed, 0 failed, 2 skipped
  check-live           12 steps: 12 passed, 0 failed, 0 skipped
  feature-run          12 steps: 12 passed, 0 failed, 0 skipped
  check-live-rebuild   12 steps: 12 passed, 0 failed, 0 skipped
  feature-run-rebuild  12 steps: 12 passed, 0 failed, 0 skipped
== check-ubuntu-example-pod (2026.327.1710)
  check-image          12 steps: 10 passed, 0 failed, 2 skipped
  check-live           12 steps: 12 passed, 0 failed, 0 skipped
  feature-run          12 steps: 12 passed, 0 failed, 0 skipped
  check-live-rebuild   12 steps: 12 passed, 0 failed, 0 skipped
  feature-run-rebuild  12 steps: 12 passed, 0 failed, 0 skipped

== the new candies' checks in check-live, per bed
-- cachyos
  PASS  check the container engine is installed  [plan:candy:agent-tools:0]  ok
  PASS  check the headless QEMU system emulator is installed  [plan:candy:agent-tools:1]  ok
  PASS  check the libvirt client is installed  [plan:candy:agent-tools:2]  ok
  PASS  check the page is in the artifact  [plan:candy:hello-web:0]  ok
  PASS  check the server answers at the hello endpoint  [plan:candy:hello-web:1]  status=200
  PASS  check the system Python imports the GObject bindings  [plan:candy:python-gobject:0]  exit=0
-- fedora
  PASS  check the page is in the artifact  [plan:candy:hello-web:0]  ok
  PASS  check the server answers at the hello endpoint  [plan:candy:hello-web:1]  status=200
  PASS  check the system Python imports the GObject bindings  [plan:candy:python-gobject:0]  exit=0
-- debian
  PASS  check the page is in the artifact  [plan:candy:hello-web:0]  ok
  PASS  check the server answers at the hello endpoint  [plan:candy:hello-web:1]  status=200
  PASS  check the system Python imports the GObject bindings  [plan:candy:python-gobject:0]  exit=0
-- ubuntu
  PASS  check the page is in the artifact  [plan:candy:hello-web:0]  ok
  PASS  check the server answers at the hello endpoint  [plan:candy:hello-web:1]  status=200
  PASS  check the system Python imports the GObject bindings  [plan:candy:python-gobject:0]  exit=0

R7: every new check can fail. I built a broken variant of the Arch-family box, with three removals: python-gobject's arch package replaced by python, libvirt removed from agent-tools, and the hello page's write: step removed. Then I ran charly check box example-candies-broken-box. It exited 2, and each removal fails exactly its own check. This ran on the round-1 candy text, which differs from this head only in the description: prose of agent-tools and hello-web (git diff 13edd9d20268c7848e1900737eb6f15c33c6bdda HEAD -- charly.yml changes no package, file, service or check line).

  PASS  check the container engine is installed  [plan:candy:agent-tools:0]  ok
  PASS  check the headless QEMU system emulator is installed  [plan:candy:agent-tools:1]  ok
  FAIL  check the libvirt client is installed  [plan:candy:agent-tools:2]  exists=false, want true
  FAIL  check the page is in the artifact  [plan:candy:hello-web:0]  exists=false, want true
  SKIP  check the server answers at the hello endpoint  [plan:candy:hello-web:1]  context [runtime] not active in box mode
  FAIL  check the system Python imports the GObject bindings  [plan:candy:python-gobject:0]  exit=1, want 0 (stderr: Traceback (most recent call last): File "<string>", line 1, in <module> import gi; print("gi-ok") ^^^^^^^^^ ModuleNotFoundError: No module named 'gi')
15 steps: 10 passed, 3 failed, 2 skipped

Rulebook compliance

  • R0: loaded /charly-internals:git-workflow, /charly-image:layer, /charly-check:check and /charly-internals:design, and read this repository's AGENTS.md.
  • R1: four anomalies, each with an RCA:
    1. Round 1's BLOCK (A2/R10): the fedora and debian/ubuntu mappings were never exercised.
      • Mechanism: I gated the change on one bed, on the family I was targeting.
      • Missed control: my gate selection counted the change's targets, not the mappings it declares. A per-distribution key is a declared path, and each needs a bed.
      • Fix: the fedora, debian and ubuntu beds above.
    2. Validation warned: box "example-candies-box" resolves init "supervisord" … that candy is not in this project's scanned set.
    3. The first four-bed run aborted before any build: resolving box "fedora-example-box": image fedora-example-box: build: field required, while box validate had reported 0 errors.
    4. check-cachyos-example-pod run 2026.327.1633 failed one phase, feature-run-rebuild (14 of 15 failed with Error: unable to find user user: no matching entries in passwd file).
  • R2: no duplication. Each candy is one concern, and the per-distribution names sit in one distro: map.
  • R3: no workaround in the candies. eventually: 30s on the http check is the declared readiness window for a server that starts after the container.
  • R4: no prose routes around a defect. The init caveat names the defect and its issue.
  • R5: nothing legacy.
  • R6: a feature branch in this repository only; no other session's work touched. No force-push: round 1's fixes are a new commit.
  • R7: the broken variant above fails each new check.
  • R8: the http check runs against the real running server.
  • R9: charly version is pasted above, and the binary matches the umbrella's charly pin.
  • R10: the four beds above, on disposable: true pods, cover every distribution family the candies name.
  • R11: D-CANDY-2 (a candy's content), D-IR-4 (each file has exactly one effect, here write:) and D-VERB-7 (the file check observes the artifact, the http check the deployment) conform. D-VAL-1 (checks optional) does not apply here: every candy carries checks.

Change classification

  • Class: new candies in an existing candy repository (config only). Gate: charly box validate, plus one disposable pod bed per distribution family the candies name.
  • Breaking change + rollback: none. Three candies are added and search-tools is unchanged, so no existing consumer sees a difference. Roll back by reverting the squash commit.

Filed issues

Agent: grievances-word-blind · Claude Code session 74a95641-000e-42f0-a677-43f5bcdf1d01
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

GRIEVANCES.md in opencharly/opencharly builds one project step by step from this
repository's candies. Add the three it needs beyond search-tools: a per-distribution
package (python-gobject), a container engine and hypervisor for nesting (agent-tools),
and a served page whose checks cover the artifact and the running deployment (hello-web).

Closes #2

*Agent: `grievances-word-blind` · Claude Code session `74a95641-000e-42f0-a677-43f5bcdf1d01`*
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 13edd9d20268c7848e1900737eb6f15c33c6bdda (branch: feat/example-candies)

Change class: config (three new candy definitions) + docs.

Blocks

  1. A2 / R10 — the fedora and debian/ubuntu distro mappings are never exercised by any bed. The change's defining feature (the body's own words) is that python-gobject "names [the package] once per family": arch→python-gobject, fedora→python3-gobject, "debian,ubuntu"→python3-gi; hello-web likewise maps arch→python and fedora/"debian,ubuntu"→python3. The only bed run (check-example-candies-pod) is on cachyos.cachyos (Arch), so the check python3 -c 'import gi' and the file/http checks execute only the Arch branch. The fedora and debian/ubuntu package names are asserted in charly.yml and the body table but are installed and checked by nothing — charly box validate "checked … 6 distros" only validates schema/resolution, not installation. Per A2, a bed that never exercises the touched path proves nothing for those mappings. Fix: run a bed on at least one non-Arch family (fedora and/or debian/ubuntu) exercising these candies, or — if the example is genuinely Arch-only — drop the unused fedora/"debian,ubuntu" entries, or state explicitly that those mappings are schema-validated but not install-tested and file that as a real ## Filed issues entry.

Non-blocking notes (not gating this verdict)

  • R1 / consumer caveat. hello-web ships a service: whose init (supervisord) is not fetched (charly#764), so any box composing it alone warns. The body explains this, but neither the README.md overview nor the hello-web candy description: tells a consumer to also compose layer-supervisord until #764 lands. Worth a one-line caveat so the shipped example is not silently broken for a reader.
  • A3 / R9 — unverifiable from context. The footer names Claude Opus 5.5; the body contains no runtime evidence to cross-check the model name against, and charly version output is not pasted (only the version + source pin are stated). Tool-limited: I cannot confirm or refute the model string from the diff/body alone.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…ly caveats

The validator (round 1) found that only the Arch branch of python-gobject and
hello-web had run. The candies are unchanged in substance. This round adds beds on
fedora, debian and ubuntu (in the PR body), says in hello-web's description and the
README that a box composing it also composes layer-supervisord until
opencharly/charly#764 lands, and says that agent-tools is Arch-family only.

*Agent: `grievances-word-blind` · Claude Code session `74a95641-000e-42f0-a677-43f5bcdf1d01`*
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

Round 1 → head 188e33250914ed1389b8a09874defe50d8b89de9.

The block (A2/R10), RCA.

  • Mechanism: the change declares three per-distribution package mappings (arch, fedora, "debian,ubuntu"), but I gated it on one bed, on the Arch family.
  • Missed control: my R10 gate selection counted the change's targets, not the paths it declares. A per-distribution key is a declared path, and it needs a bed of its own.
  • Fix: beds on fedora, debian and ubuntu as well as cachyos. All four PASS, and the new candies' checks pass in every live phase on each.
  • Control fix: when a candy carries distro: keys, I gate it with one bed per key family.

The non-blocking notes:

  • The charly#764 caveat is now in hello-web's description and in the README.
  • agent-tools is stated to be Arch-family only.
  • charly version output is pasted.

Found during the round (in the body's R1):

Agent: grievances-word-blind · Claude Code session 74a95641-000e-42f0-a677-43f5bcdf1d01
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 188e33250914ed1389b8a09874defe50d8b89de9 (branch: feat/example-candies)

Security screen: PASS — diff adds exactly the three candies and the two doc updates the body describes; no secrets, no scope mismatch, no guardrail weakening, no injected directives.
Checklist: All applicable rules PASS or NA. Round-1 A2/R10 block resolved: the four beds exercise the arch (cachyos), fedora, debian and ubuntu keys by name; per-check PASS lines, per-phase counts (15 vs 12 = the 3 agent-tools checks), the R7 broken-variant, and the version/pin evidence are internally consistent.

Comments considered:

  • 7107046637 (@github-actions[bot], round-1 BLOCK) — stale-superseded/resolved: the fedora/debian/ubuntu mappings are now exercised by named beds, and the charly#764 consumer caveat is in README.md + hello-web's description:. Its model-name note is tool-limited and non-blocking.
  • 7109268484 (@aitrawog, STATUS) — coordination/evidence metadata; no finding.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

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.

Add the python-gobject, agent-tools and hello-web example candies for the GRIEVANCES.md rewrite

1 participant