Repository navigation
fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout - #1
Merged
Merged
Conversation
…a temp checkout The candy de-submodule scaffold copied the umbrella structure into every standalone repo, declaring a 'charly' git submodule pointing at opencharly/charly. The refs downloader (populateSubmodules) initializes every declared submodule on fetch, so a consumer fetching this candy at any ref pulls the ENTIRE opencharly/charly repo into charly/ inside the fetched tree. That leaked tree breaks the charly parity test (TestFleetCompileParity_PluginRoundTrip): its seedParityProject copies the fetched fixture into .parity/candy/<name>, and the .parity root's 'discover: candy recursive' walks into .parity/candy/<name>/charly/ finding the ROOT's charly.yml (agentteams box + 663 candy manifests), so cfg.AllBoxNames() returns the root's boxes and the compile resolves 'agentteams' instead of the 3 parity fixtures. Fix: remove the submodule gitlink + .gitmodules. The CI gate (deploy.yml) keeps validating against the pinned charly by cloning it at CI time into a temp checkout (/tmp/charly, pinned tag v2026.238.1242) instead of a committed repo submodule — the candy repo itself carries no charly tree.
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no scope mismatch (all 3 diff items — Checklist: All applicable rules PASS or NA.
One non-blocking nit: the body's pasted Verdict: PASS deepseek.com/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
The candy de-submodule scaffold copied the umbrella structure into every standalone repo, declaring a
charlygit submodule (path = charly,url = https://github.com/opencharly/charly.git,branch = main). The refs downloader'spopulateSubmodules(spec/refs/git.go) initializes EVERY declared submodule on fetch — so a consumer fetching this candy at any ref pulls the ENTIRE opencharly/charly repo intocharly/inside the fetched tree. That leaked tree breaks the charly parity test (TestFleetCompileParity_PluginRoundTrip): its seedParityProject copies the fetched fixture into .parity/candy/, the .parity root'sdiscover: candy recursivewalks into .parity/candy//charly/ finding the ROOT's charly.yml (agentteams box + 663 candy manifests), so cfg.AllBoxNames() returns the root's boxes and the compile resolves "agentteams" instead of the 3 parity fixtures.Fix: remove the submodule gitlink +
.gitmodules. The CI gate (deploy.yml) keeps validating against the pinned charly by cloning it at CI time into a temp checkout (/tmp/charly, pinned tagv2026.238.1242) — the candy repo itself no longer carries any charly tree. (Pinned tag replaces the previous floatingbranch = main— a tightening.)How tested
1. Diff (real, from the live branch)
2. The submodule was the ONLY gitlink — removed cleanly
3. The CI replacement works: charly builds from a CI-time temp checkout (no repo submodule) — the EXACT shipped commands
4. The candy manifest validates at the pinned charly (the deploy.yml gate, exactly as CI runs it)
Zero lines of output, exit 0 — a clean validate of the candy manifest at the repo root with the CI-built binary (the exact
/tmp/charly/bin/charlypath the workflow ships).5. Repo-wide old-submodule sweep — zero hits
Rulebook compliance
git-workflow+layerskills loaded before the change.populateSubmodulesmaterializes every declared submodule on fetch, leaking the charly repo into consumer fetch trees; the parity test's recursive discover then folds the ROOT's boxes..gitmodulesare deleted in this PR.task verifyis umbrella-scoped; the repo's CI gate (deploy.yml) is exercised by the pastedcharly box validaterun (section 4).charly box validateemits zero lines / exit 0 (section 4).Change classification
charlygit submodule (scaffold defect) + rewrite the CI gate to fetch charly at CI time (pinned tag).charly box validate(exit 0, zero output) with the CI-time charly build + repo-wide submodule sweep.analysed on a live system— the validate gate ran live with the freshly-built charly; the full repo CI suite was not run.Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)