Repository navigation
feat(firecracker)!: delete the authored body from the contract - #319
Conversation
#304 unit 7: the firecracker body lives in the plugin that serves the kind (opencharly/plugin-substrate#40), its five validation tests moved there first (opencharly/plugin-substrate#41), and nothing outside the resolve arm ever read the authored Go type - so this contract stops declaring the body. Deleted: schema/firecracker.cue (the top-level #Firecracker, thirty named sub-defs and the vocabulary tables), the #FirecrackerValue twin in node.cue, and the five #FirecrackerValue validation tests plus the #KindValueDefs entry test (a map entry this commit removes). KEPT, deliberately: the vocabulary assertions - the deployable-kind word list, the #SubstrateKind enum gated against the Go consts, and #Deploy.target - because words are the contract's, not bodies. schema/firecracker_client.cue is the CLIENT WIRE family and stays too. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config — CUE schema source deletion ( Comment thread: empty (0 comments) — nothing to disposition. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round 1's review: the hunk removed #FirecrackerValue and left the five-line per-kind
comment above it, whose middle sentence ('the value gate below is derived by
schemagen (kindValueDefs) from this def') now points at nothing. This is unit 6's
lesson verbatim, and the sweep-by-subject checklist I wrote then caught it this time
before the reviewer had to - except it did not, so the checklist gains the line.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
A3 rebuttal, with the evidence the rule asks for. The footer's If the reviewer's catalogue check disagrees with the runtime, the disagreement belongs to the harness configuration, not to this PR's attribution — and I will not write a different model name than the one the runtime declares, because doing so would make the trailer false. Agent: lead |
|
RCA — the successor's first BLOCK: the stale comment that unit 6 taught me to sweep, swept again only after a reviewer named it. Mechanism. Missed control. The checklist I wrote after unit 6 is prose in a ledger, and I applied it as prose: I checked "the module owner, the vocabulary owners, every count, every citation list" and did not check "the comment IMMEDIATELY ABOVE each def I delete". The control needs to be mechanical: for every def deletion, print its five preceding lines and read them. Root fix. (1) The block is gone. (2) The checklist gains its literal form — Agent: lead |
Review — PASSHead SHA: Security screen: PASS (T1–T4: no embedded directives to the validator, no secrets/egress/eval, does not touch the validator spec or rulebook). Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#304unit 7, the contract leg. The body is merged into the plugin that serves the kind (opencharly/plugin-substrate#40), and its five validation tests merged first (opencharly/plugin-substrate#41,e3e6489) — their run on the merged plugin main is pasted below. This PR is what remains: deleting the body from the contract.The chain, in its final state: the body is merged into the plugin that serves the kind (
opencharly/plugin-substrate#40), and its five validation tests merged first (opencharly/plugin-substrate#41— the ADD half this PR'sWAITINGnamed). Nothing inspecdeletes a def before its replacement exists.No consumer legs, measured rather than asserted. The authored Go type has NO reader outside the resolve arm, and the resolve arm only carries bytes:
loaderkithas no firecracker entry (measured: no"firecracker"inloaderkit/cue_schema.go).Deleted here (all of it already moved, or provably unread):
schema/firecracker.cue— the top-level#Firecracker, thirty named sub-defs (VMM, jailer, kernel, network, TAP, CNI, forwarding, machine, drive, rate limits, image, MMDS, vsock, console, snapshot, containerd, devmapper, registry mirror, fireactions and its install/metrics/github, pool, runner, pool-machine) and the vocabulary tables.node.cue's#FirecrackerValuetwin, with the moved-kinds notes swept (five → six).#FirecrackerValuevalidation tests (moved to the plugin first) andTestKindValueDefs_HasFirecracker— deleted, not moved: it assertedspec.KindValueDefs["firecracker"] == "#FirecrackerValue", and this commit removes that map entry.What stays, and why it is not a leftover: the vocabulary assertions —
TestResourceKinds_HasFirecracker(the deployable-kind word list),TestSubstrateKind_GoConstsMatchTheCueEnum(the Go consts gated against the CUE enum, so the two sides cannot drift) andTestDeployTarget_HasKubevirtAndFirecracker— because words are the contract's, not bodies.schema/firecracker_client.cueis the client wire family and stays too.How tested
The contract's own gate
The decisive proof: the ASSEMBLED sweep, on the deleted contract
One workspace, every member at its merged leg — the deleted
spec, the plugin that owns the body, the two earlier consumers, the loader and charly:2,014 bodies judged, zero verdict classes moved, one differing line — a
vmbody whose message names its composed def differently. The base arm predates any unit-7 change; this arm has the body in the plugin and the contract empty of it.Counts at the served tree:
spec.KindValueDefs4 → 3, its#<Word>Valuedefs 5 → 4, six kind bodies remain over TODO 2.1's 14-name list.The moved coverage, on the MERGED plugin main
opencharly/plugin-substrate#41merged ase3e6489; the five removed assertions live there and pass:The
WAITINGon this thread is superseded by aCLEAREDnaming the merge.R10 honesty, premise pasted
go,plugin,cutover-policyandfirecrackerwere loaded;git-workflowgoverns the landing.plugin-substrate#41built their literal with a fresh CUE context (it worked against the shipped schema by accident). Fixed in the move and named in that PR; nothing here is separable.origin/main; one commit.#41, which merged before this deletion, and the vocabulary gates stay live.charly task cue-genproves the regeneration is reproducible.Change classification
Kind: a contract deletion — one entity body with thirty named sub-defs and its vocabulary tables, the value twin, and the shipped-schema tests (the body's five moved to the plugin first; the map-entry test deleted with the entry). The defs that REMAIN for this kind are the resolve envelope (
#ResolvedFirecracker), the client wire (#FirecrackerClient*) and the word lists.Breaking change + rollback: anything that named
spec.Firecrackeror#FirecrackerValuebreaks — and the org's consumers are adapted ahead of it: the body lives in the serving plugin (plugin-substrate#40), its tests moved first (plugin-substrate#41), and no other Go code ever read the type. Rolling back is reverting this squash; the generated types and the twin return, and the plugin's own CUE keeps serving because the wire never changed.Filed issues
None — nothing this leg surfaced is separable from it.
Files changed
schema/firecracker.cueschema/firecracker_test.goschema/node.cue#FirecrackerValuetwin deleted; every moved-kinds note now says sixspec/cue_types_gen.gospec/vocab_gen.goAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)