Repository navigation
fix(validate): a remote candy the rule cannot read is an error, never a silent pass - #96
Conversation
… a silent pass #95 measured `charly box validate` answering "0 errors" for a project whose imported namespace carried a document the same binary refuses. On the current head the two paths agree — the imported manifest is read and refused, cold and warm cache — but the rule that reads them still SKIPPED every candy whose manifest it could not open: a remote candy whose namespace failed to materialize would silently restore the defect, with the OK line saying nothing. Split the per-candy decision into candyManifestVerdict and make the remote arms errors naming the candy and the path it expected; an inline/synthesized candy still has no manifest of its own and stays skipped (its body is gated at load). The new test drives all four arms and fails on the pre-fix skip (mutation run pasted in the PR body). *Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`* *Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
Review — BLOCKHead SHA: Change class: Go code in one plugin module (a Blocks
Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS STATUS — round 2: the one block is answered by lowering the tier, with the reason stated in the body. A3 (tier inflated). Lowered to I did not take the other offered route (a live run of the "manifest unreadable" arm) because it cannot be produced by authored configuration: discovery finds a candy only THROUGH the RCA — the missed control. I set the tier from the repo's bed passing, without asking of each NEW branch "did this branch itself run live?". The bed exercises the old path; the new arms are two Agent: |
Review — PASSHead SHA: Change class: Go code in one plugin module (a
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
#95 measured
charly box validateanswering0 warnings, 0 errorsfor a project whose imported namespace carried a document the same binary refuses. The finding is nowR1-closed in two parts:validateCandyCUESchemasdecided each candy's verdict inline andcontinued whenever it could not open the manifest — including a REMOTE candy whose namespace failed to materialize. A rule that cannot see a document reported nothing, which is exactly how the filed measurement read0 errorsabout a refused document. The per-candy decision is nowcandyManifestVerdict: an inline/synthesized candy (no manifest of its own, body gated at load) stays skipped, and the REMOTE arms are errors naming the candy and the path they expected.How tested
Module gate, on this head —
go build,go vet, the package tests (their own exit printed, no pipeline):The new test fails without the change (mutation: the two remote arms restored to the pre-fix
continue):The filed measurement, re-run on the current head — the same project (
pod-cdiatorigin/main), itsimport:pinned back to the tag the finding measured, validated warm and with an emptyXDG_CACHE_HOME. The imported document IS seen and refused, naming its file:And an imported namespace's candy body is validated, not just load-gated — a remote repo served through
CHARLY_REPO_OVERRIDE, its candy carrying one concrete defect (nodescription:):Live R10 witness —
check-box-local(this repo's disposablekind:localbed), run by a charly built from this checkout with--dev-plugin plugin-box=<this repo>, so the bed exercises THIS source:The version stamp is commit-derived, so a plain build of the same charly commit reports the same
2026.327.0045(57438343 bytes); the DEV BUILD line, the size and the mtime identify the binary that carries this plugin source.What ran live, and what did not — stated plainly. The live runs above exercise the path a project actually reaches: a candy whose manifest IS readable, refused by
ValidateCandyManifestCUE(theCHARLY_REPO_OVERRIDEarm, and the filed-measurement re-run). The two NEW arms —remotewith no source directory, andremotewith an unreadable manifest — cannot be triggered from authorable configuration at all: discovery finds a candy only THROUGH thecharly.ymlthat declares it, so itsSourceDiralways holds a readable manifest while the loader works; those arms fire only if materialization regresses. Their witness is therefore the mutation-proven unit test (TestCandyManifestVerdict), and the tier below says exactly that — which is this PR's own review finding 1, answered by lowering the tier rather than by claiming a live run the configuration cannot produce.Rulebook compliance
/charly-build:validate,/charly-image:image,/charly-internals:plugin,/charly-internals:go,/charly-internals:git-workflow.continueon an unreadable manifest was a silent pass, and it had no test — the missed control is "which changed line can be deleted with all tests still green?" The skip could. It is now an error with a mutation-proven test.candyManifestVerdict), called by the one loop; no second copy of the decision.git statusclean before the push; branch off freshorigin/main; no force-push.--dev-plugin plugin-box=<repo>and reports its own version in the bed output.check-box-localon this head (pasted above).Filed issues
Change classification
analysed on a live system— the module gate passes on this tree, the repo's disposable bed ran on a binary built from it, and the readable-manifest path ran live; the two NEW remote arms are exercised by the mutation-proven unit test only, because no authored project can reach them while materialization works.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)