Repository navigation
fix: stamp the root manifest at the schema this repo's CI charly supports - #3
Merged
Merged
Conversation
…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
Review — PASSHead SHA: Security screen: PASS — one-line config version stamp; no scope mismatch, no secrets/exfiltration, no weakened guardrails (the change restores the Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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)
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
Repairs a regression I introduced in the previous PR.
The root
charly.ymlI added stamped schema2026.240.1943(the current HEAD), butthis repo's
deploy.ymlpins charlyv2026.238.1242, whose maximum supported schema is2026.232.0520. So thecandyworkflow started failing onmain:This stamps
2026.232.0520— the value the 226 peer candy repos already carry, and the onethis repo's pinned charly accepts.
Nothing else changes: the candy files under
candy/are untouched, because the schemarequirement 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), nota newer local build — that mismatch is what caused the regression:
The gate is still real at the corrected stamp — quiet acceptance would be worthless.
With
- verb:dbuschanged to- notaclass:dbusin a plugin candy:So the repo still gets the gate the previous PR was for, and its
candyworkflow goes greenagain.
Rulebook compliance
/charly-internals:plugin,/charly-internals:git-workflow.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.
deferred.
per-repo special case.
made non-blocking to hide the failure.
were run against the pinned tag's binary.
matrix fully observes the change.
is now measured rather than assumed.
its own CI can read.
Change classification
charly box validateunder the repo's pinned charly, across threestamps plus a deliberately malformed manifest.
fully tested and validated— exercised against the exact toolchainthis repo's CI uses, with output retained above.
Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)