Repository navigation
feat(deploykit)!: the host refuses a builder reply that does not name its output - #619
Conversation
… its output DESIGN §4.4: there is no version negotiation, and a plugin built against a different protocol shape "fails at its first message, naming the field" (D-PROTO-6). spec#424 made `#BuilderResolveReply.output` REQUIRED; this is the host half — the receipt check that makes an old plugin FAIL instead of shipping an image without its package (#615). - `deploykit.ValidateBuilderResolveReply(word, reply)` refuses an empty discriminator, naming the builder and telling the operator to rebuild it against a current sdk; it also checks the PAIR the discriminator promises (`package` carries its package, `files` its copies, `inline` its fragment) and refuses an unknown value against the closed vocabulary. - the render seam calls it immediately after decoding the plugin's answer, so the failure happens where the message arrives — no coercion, no fallback, no upgrade path. - `kit.BuilderResolve` now stamps the discriminator on every built-in reply (pixi/npm/mise files, aur package, cargo inline), with the vocabulary exported from `kit` so producer and checker cannot drift. - spec pin moves to v0.2026326.2226 (the release carrying the required field). 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: library code (Go) + a contract pin (go.mod/go.sum). Blocks
Comment thread0 comments — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…e duplicate constants are gone Review round on #619, three findings: - R10: the only test called ValidateBuilderResolveReply directly, so neither integration point was executed — deleting the seam call or an Output stamp would have left every test green. Two tests now drive them: TestResolveBuilderStageRefusesAnOldStyleReply feeds the seam exactly what plugin-builder-aur:v2026.271.2317 answered and requires the refusal (verified by removing the call: it fails with "the seam accepted a reply with no `output`"), and TestBuilderResolveStampsTheOutputPerBuilder requires package/files/inline per built-in word. - R2: the unexported duplicate of the output constants is deleted; BuilderResolve uses the exported kit.BuilderOutput* directly. - the attribution tier now rests on paths that execute in `go test ./...`. 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: library code (Go) + a contract pin ( Comment intake: prior BLOCK by @github-actions[bot] on head
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…erResolve's Review block on #619 (QUAL): the const block was inserted between BuilderResolve's doc comment and the func, so that comment documented the constants and the function was left undocumented. The block now sits above the comment it belongs to. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)
|
STATUS STATUS — round RCA, dispositions, and the gate re-pasted on the pushed head. RCA — the missed control. Round 1's block said the seam and the kit stamps had no test. They were correct, and the reason I missed it is specific: I wrote the tests against the function I had just added ( Dispositions of the prior findings.
Gate, on the current head, unmasked: One honest note on the previous round's paste: it carried a bare Agent: |
Review — PASSHead SHA: Comment intake:
Security screen: PASS — no secrets, network calls, weakened guardrails, or supply-chain surprises; the only dependency change is the stated spec pin Checklist: All applicable rules PASS or NA. The prior blocks are genuinely cured: the seam call and every Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Comment intake (all re-derived against the current diff/body):
Security screen: PASS — library code + a pin to the org's own Checklist: All applicable rules PASS or NA. Placement is CORRECT (sdk Non-blocking notes (rulebook-gap style, do not affect the verdict): the body's "How tested" transcript is headed Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… pin is not a stopgap (#236) plugin-builder-aur v2026.326.0746 predates the reply contract spec#424 made mandatory; the probe box named it as a stopgap so the package would install at all. The plugin is now at v2026.327.0012, and the host REFUSES a pre-contract reply at its first message (opencharly/sdk#619), so the pin is a normal out-of-process dependency: a stale one fails loudly instead of shipping an image without the package (opencharly/sdk#615). Proven with the binary rebuilt from opencharly/charly#1237: check-aur-probe-pod PASS, 16 steps, yay in the image and running in the pod. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)
…lt on it (#1237) opencharly/spec#424 made the builder reply's `output` REQUIRED, opencharly/sdk#619 made the host refuse a reply without it, and the five builder plugins now answer with it. This is the pin leg that puts all of that into the binary: - `github.com/opencharly/sdk v0.2026326.825 -> v0.2026326.2300` in `charly/go.mod`, and the same shared pins adopted in every lockstep module by `charly task mods-tidy`. - the five builder plugin candy refs move to the releases built on that contract: pixi v2026.326.2258, npm v2026.327.0024, cargo v2026.326.2259, aur v2026.327.0012, mise v2026.327.0012. With this, a builder plugin older than the contract is refused at its first OpResolve, naming `output` — the silent "payload copied, package never installed" path of opencharly/sdk#615 is closed rather than worked around. Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)
Summary
The host half of the DESIGN-conformant incompatibility check. spec#424 (merged,
v0.2026326.2226) made#BuilderResolveReply.outputrequired; this PR makes the host act on it, so a builder plugin built against the older reply contract fails at its first message, naming the field — DESIGN §4.4's rule ("there is no version negotiation… a plugin built against a different protocol shape fails at its first message", D-PROTO-6), not a version counter.deploykit.ValidateBuilderResolveReply(word, reply)refuses:output— an old plugin's reply — naming the builder and saying to rebuild it against a current sdk (opencharly/sdk#615's exact case:plugin-builder-aur:v2026.271.2317shipped a payload and no package, and nothing failed);output, against the closed vocabulary.kit.BuilderResolvestamps the discriminator on every built-in reply (pixi/npm/mise →files, aur →package, cargo →inline), with the vocabulary exported fromkitand used directly by both producer and checker — one definition, no duplicate block.v0.2026326.2226, the release carrying the required field.How tested
Three tests, each failing without the change:
TestValidateBuilderResolveReply— a table over every refusal (emptyoutput, a package output with no package, a files output with no copies, an inline output with no fragment, an unknown value) and every acceptance, each case naming what it asserts.TestResolveBuilderStageRefusesAnOldStyleReply— drives the SEAM with exactly whatplugin-builder-aur:v2026.271.2317answered (a stage and payload copies, no discriminator) and requires the refusal. Proven able to fail: with the validation call removed it reports "the seam accepted a reply with nooutput: an old plugin would ship without its package again", then passes once restored.TestBuilderResolveStampsTheOutputPerBuilder— requirespackage/files/inlineper built-in word, so a built-in that stopped stamping the discriminator cannot pass.Attribution provenance (A3)
The harness named in the footer is
Claude Code; the model identifier this session's runtime reports isdeepseek-v4.1-flash:cloud, verbatim, and the footer carries that string. It is the runtime's own identifier (a cloud-served variant, so it does not match a public tier name), recorded as reported rather than inferred, and it is the same string the reviewing bot signs its own comments with.Rulebook compliance
/charly-internals:design(D-PROTO-1/6, §4.4 read before the change),/charly-internals:install-plan,/charly-internals:go,/charly-internals:git-workflow.kit, the refusal indeploykit, and the built-in producers use the same constants.output.git statusclean; branch off freshorigin/main; no force-push.Filed issues
plugin-builder-aurpin is then deleted, because the host refuses a stale plugin on its own.Change classification
fully tested and validated— module gate green on this tree, with a table test over every refusal and acceptance.!marks it: a builder plugin older than the requiredoutputfield is refused at its first OpResolve, naming the field. That is the intent. Rollback: revert this squash commit; the spec pin then returns to a release without the required field, and the stale-plugin silent loss returns with it.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)