Skip to content

fix: stamp the root manifest at the schema this repo's CI charly supports - #3

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/root-manifest-schema-stamp
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/root-manifest-schema-stamp

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Repairs a regression I introduced in the previous PR.

The root charly.yml I added stamped schema 2026.240.1943 (the current HEAD), but
this repo's deploy.yml pins charly v2026.238.1242, whose maximum supported schema is
2026.232.0520. So the candy workflow started failing on main:

config schema 2026.240.1943 is newer than this charly supports (max 2026.232.0520)

This stamps 2026.232.0520 — the value the 226 peer candy repos already carry, and the one
this repo's pinned charly accepts.

Nothing else changes: the candy files under candy/ are untouched, because the schema
requirement applies to the project root manifest only.

Refs opencharly/charly#459.

How tested

Against a binary built from this repo's exact pinned charly tag (v2026.238.1242), not
a newer local build — that mismatch is what caused the regression:

$ charly box validate     # root stamped 2026.232.0520
exit=0                    # accepted

$ charly box validate     # root stamped 2026.232.0521
config schema 2026.232.0521 is newer than this charly supports (max 2026.232.0520)

$ charly box validate     # root stamped 2026.240.1943  (what the previous PR shipped)
config schema 2026.240.1943 is newer than this charly supports (max 2026.232.0520)

The gate is still real at the corrected stamp — quiet acceptance would be worthless.
With - verb:dbus changed to - notaclass:dbus in a plugin candy:

charly: error: command "validate": 2 validation errors:
  candy "plugin-dbus": CUE schema: .../candy/plugin-dbus/charly.yml:
  candy "plugin-dbus": 2 errors in empty disjunction:

So the repo still gets the gate the previous PR was for, and its candy workflow goes green
again.

Rulebook compliance

  • R0 (skills) — /charly-internals:plugin, /charly-internals:git-workflow.
  • R1 (RCA) — root-caused before fixing: the stamp must match the schema HEAD of the
    charly each repo's CI pins, and I used the newest HEAD without checking the pin. Confirmed
    by building that exact tag and testing three stamps against it.
  • R2 (no split) — the regression is fixed everywhere it landed, in the same sweep, not
    deferred.
  • R3 (no duplication) — one stamp value, matching the peer corpus, rather than a
    per-repo special case.
  • R4 (no workarounds) — the stamp is corrected; the gate is not disabled, skipped or
    made non-blocking to hide the failure.
  • R4a (fix the product first) — N/A — my own regression, not a product defect.
  • R5 (hard cutover) — the wrong value is replaced outright; nothing is left behind.
  • R6 (git safety) — feature branch, no force-push, no hook bypass.
  • R7 (prove the gate) — the three-stamp matrix and the malformed-manifest check above
    were run against the pinned tag's binary.
  • R9 (deployed binary) — N/A — no binary or runtime path.
  • R10 (fresh disposable proof) — N/A — cannot reach a running deployment; the validate
    matrix fully observes the change.
  • RDD — the assumption that broke this ("HEAD stamp is fine everywhere") is exactly what
    is now measured rather than assumed.
  • ADE / SDD — N/A — no install content, no schema or generated code.
  • Concurrency mandate — N/A — a one-line change.
  • Architecture gate / placement — correct: the repo declares its own shape at a version
    its own CI can read.

Change classification

  • Change class: regression fix — one line in the root manifest.
  • Verification gate: charly box validate under the repo's pinned charly, across three
    stamps plus a deliberately malformed manifest.
  • Attribution tier: fully tested and validated — exercised against the exact toolchain
    this repo's CI uses, with output retained above.

Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)

…orts

The root charly.yml I added stamped schema 2026.240.1943 (the current HEAD), but this
repo's deploy.yml pins charly v2026.238.1242, whose maximum supported schema is
2026.232.0520. The candy workflow therefore failed on main with:

  config schema 2026.240.1943 is newer than this charly supports (max 2026.232.0520)

Stamps 2026.232.0520 instead - the value the 226 peer candy repos already carry, and
the one this repo's pinned charly accepts. Verified against a binary built from that
exact tag: it accepts the stamp, and still catches a deliberately malformed
plugin.providers entry, so the gate is real rather than merely quiet.

The candy files under candy/ are untouched; the schema requirement applies to the
project ROOT manifest only.

Refs opencharly/charly#459.

Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 647b7499e427 (branch: fix/stamp-root-manifest-schema)

Security screen: PASS — one-line config version stamp; no scope mismatch, no secrets/exfiltration, no weakened guardrails (the change restores the charly box validate gate to working), no supply-chain changes, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • Change class: config (one-line charly.yml schema stamp). Gate charly box validate is the correct and only applicable gate; body ran it against the repo's pinned charly tag with a three-stamp matrix plus a malformed-manifest check. Fresh-rebuild confirmation present; changed code path (the stamp) executed live.
  • A1/A2/A3: Body accounts for the single changed file, names the gate, supplies pasted output, and justifies fully tested and validated (changed value executed against the pinned-tag binary). Attribution footer present in the required form.
  • R1: Real RCA (stamp must match the schema HEAD of the charly each repo's CI pins; author used newest HEAD without checking the pin), confirmed by building the exact tag and testing three stamps. No forbidden framing.
  • R2/R5/B15: Regression fixed outright in one atomic commit; no split, no follow-up deferral, no transitional path left behind.
  • R3/R4: One stamp value matching the peer corpus; gate corrected, not disabled or worked around.
  • R10: N/A for a disposable bed (local validate fully observes the change); the gate itself is the test that fails without the correct stamp, demonstrated by the matrix.
  • B16 placement: CORRECT — the repo declares its own shape at a version its own CI can read; no core/sdk/candy placement concern.
  • B18, B13, B14, B17: N/A (no Go code, no candy/schema/generated changes, no concurrency, no autonomous destroy).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 05:28
@github-actions
github-actions Bot merged commit 90dd12c into main Aug 30, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/root-manifest-schema-stamp branch September 25, 2026 19:23
aitrawog added a commit that referenced this pull request Oct 6, 2026
…the web probe

Round-1 BLOCK findings on the plugin-dsh PR:

- #1 (R4a/R10 regression): appending the /api/* call made the fragment's exit
  status the final `if`, silently discarding a failed token exchange — a bad or
  expired token yielded C=401/404, the `if` was false, and the probe exited 0 while
  layer 1 was broken. The exchange now propagates: `curl … || { echo …; rm -f "$J";
  exit 1; }` on the cleanup path.
- #2 (R1/R4a overclaim): `if [ "$C" = "403" ]` failed only on exactly 403; 000
  (no response), 401, 404, 5xx and 3xx all exited 0, so the "proves the API
  surface actually answers" prose overclaimed. The assertion is now a `case` that
  rejects 403 (the fence), 000 (no response) and 5xx; the prose at every site says
  exactly that.
- #3 (A1/R5): the false single-layer claim lived in the dsh-cli skill, NOT the
  candy entity — the candy entity described the UI as "token-authenticated"
  (accurate). Its wording is still tightened to say the token is exchanged on /
  and an /api/* call asserted, so it matches the probe.

Verified live: a good token exits 0; a bad token exits 1 (the layer-1 guard); a
missing token file exits 1.

Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Oct 6, 2026
…gle-layer auth claim (#12)

* fix(dsh): assert the /api/* surface in the web probe + retire the single-layer auth claim

The shared dshWebTokenProbe fragment authenticated with the launch token and
curled the root GET /?token=… only. `dsh web` authenticates at TWO layers: the
launch token AND the Host/Origin browser-trust fence (api-request-trust), which
every /api/* call passes BEFORE authentication — a forged/non-loopback Host
returns 403 while / still loads. A GET /-only probe cannot see that fence.

- webprobe.go: after the token exchange, make one /api/* call with the cookie and
  fail on a 403, so the probe proves the app's API surface answers, not merely that
  / responds. Document both layers and the `--trusted-host` host-side requirement
  (which this in-box probe, always dialing 127.0.0.1, cannot itself observe).
- webprobe_test.go: lock in the /api/* assertion.
- candy + dsh-cli skill: retire "authenticates every request".

Closes #11

Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)

* fix(dsh): propagate the token-exchange failure and reject 000/5xx in the web probe

Round-1 BLOCK findings on the plugin-dsh PR:

- #1 (R4a/R10 regression): appending the /api/* call made the fragment's exit
  status the final `if`, silently discarding a failed token exchange — a bad or
  expired token yielded C=401/404, the `if` was false, and the probe exited 0 while
  layer 1 was broken. The exchange now propagates: `curl … || { echo …; rm -f "$J";
  exit 1; }` on the cleanup path.
- #2 (R1/R4a overclaim): `if [ "$C" = "403" ]` failed only on exactly 403; 000
  (no response), 401, 404, 5xx and 3xx all exited 0, so the "proves the API
  surface actually answers" prose overclaimed. The assertion is now a `case` that
  rejects 403 (the fence), 000 (no response) and 5xx; the prose at every site says
  exactly that.
- #3 (A1/R5): the false single-layer claim lived in the dsh-cli skill, NOT the
  candy entity — the candy entity described the UI as "token-authenticated"
  (accurate). Its wording is still tightened to say the token is exchanged on /
  and an /api/* call asserted, so it matches the probe.

Verified live: a good token exits 0; a bad token exits 1 (the layer-1 guard); a
missing token file exits 1.

Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
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