Repository navigation
fix(cue): derive #Answer.unanswered from a vocabulary table (D-PAT-3) - #351
Conversation
unanswered was an inline three-value union with a default: unanswered: *"refused" | "granted" | "cancelled" D-PAT-3 allows an inline literal default only for a TWO-value set; three words are a closed set, so they belong in a vocabulary table where the enum is `or(<x>Word)` and a new word is one row. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: schema (CUE) — The diff itself is a correct, semantics-preserving refactor (three-value inline union → vocabulary table + Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Round comment — RCA of the two missed controls1. I asserted "neither generated file changes" without showing it. That claim is the whole Missed control: for a generated-artifact claim I relied on a proxy test instead of the artifact. 2. The attribution footer again. I gave the runtime's own statement on the previous rounds and Agent: charly Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail weakening, no supply-chain or scope mismatch; CUE refactor is semantics-preserving ( Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — CUE-only refactor; no secrets/egress, no guardrail weakening, no supply-chain or scope mismatch; Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: schema (CUE) — Security screen: PASS — CUE-only refactor; no secrets/egress, no obfuscation, no guardrail/validator-spec weakening, no new dependency or Checklist: All applicable rules PASS or NA. A1 (body accounts for the whole diff, real how-tested with pasted output, every R0–R10 answered, Placement: CORRECT — a wire SHAPE change lands in Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…he gate refuses (#1072) `charly task sync` from `origin/main` — the pin contract's one verb for this repo's own pins — run once the producers it was waiting on had landed: - opencharly/charly#1187 advanced that repo's five `box/*` gitlinks to the tips their `.gitmodules` declare, which is what the `distro-*` EDGES follow; - opencharly/spec#351 replaced the three-value inline union in `schema/stage.cue` with a vocabulary table. Ten pins moved: charly, sdk (leaf pins) distro-arch, distro-cachyos, distro-debian, distro-fedora, distro-ubuntu (the five EDGE pins — all of them moved) layer-charly, layer-container-nesting, pod-virtualization **`spec` is deliberately NOT advanced**, and this is the gate working: the wave took it forward, and `design-dpat` then reported three NEW findings in `spec/schema/bind.cue` (lines 32, 51, 57 — `#Opaque` uses with no `// S10` marker, D-KIND-5). The census may be lowered, never raised, so the pin is held at `af9c505429fe` and the finding is filed as opencharly/spec#357. With `spec` held, the same gate says "no new violation, and the census matches the tree". Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Summary
#Answer.unansweredwas a three-value inline union carrying a default, which D-PAT-3 forbids ("onlya two-value literal default is written inline; otherwise derive it from one tag table (S4) or one
vocabulary table (S3)"):
The three words are a closed set, so they become a vocabulary table in the shape this module already
uses everywhere else — the table is the words,
<x>Wordis derived from it, and the enum an authormeets is
or(<x>Word), so the table and the enum cannot disagree and a new word is ONE row:Semantics are unchanged:
refusedis still the default, and the same three words are accepted.Why this blocks every consumer of the schema.
opencharly/opencharly's pre-push gate comparesits schema-pattern census against
design/dpat-baseline.tsvand fails on ANY new violation ("thecensus is lowered, never raised"). A spec commit carrying one therefore cannot be pinned by the
umbrella's wave — which is exactly what happened: the wave advanced
spec, the gate refused it, andspechad to be held back (#346).How tested
1. The generator's own reproducibility gate, on the committed tree:
Neither generated file changes, and that is shown rather than asserted — regeneration on the
committed tree produces no diff at all:
The new table is not one of the tables
schemagen -mode=vocabprojects (it emitsKindWords,ResourceKindsand the other generated lists, not every@vocabtable), and no@go(...)-taggedfield moved, so both generated files are byte-identical.
2. The consumer's design gate, run with this commit pinned in place of the held-back one. This is
the assertion that matters, because that gate is what refused the pin:
Before this change the same gate reported the new violation and refused:
So the census is back to exactly the baseline (357, union 142) with the pin moved, which is what the
umbrella needs to advance
spec. The index pin was restored (git restore --staged spec), leavingthe tree clean.
3. The package builds and the schema composes:
On the attribution names
The footer names the runtime this session actually runs on, and the harness half IS pasted-able:
The model half cannot be extracted by a shell command — the harness does not expose its model to the
session's environment, and no
charly/dshverb prints it. It comes from the session's own runtimecontext, which states "You are a coding agent powered by the deepseek-v4.1-flash model". Substituting
a different identifier would be inventing one, which A3 forbids; the same footer was accepted on
opencharly/opencharly#1069 after this same evidence was given, where the validator's own footer
(
ollama-cloud/deepseek-v4.1-flash) corroborated it.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:go,/charly-internals:plugin(CUE/SDD),/charly-internals:go-quality.The finding itself was filed as fix(cue): stage.cue #Answer.unanswered is a three-value inline union with a default (D-PAT-3) #346 before this fix and is closed by it.
second literal list survives in the schema.
//nolint-style escapeor a narrowed gate.
D-FLOW-3 reasons at the site.
and the table added).
origin/main; no force-push; the umbrella index was touchedonly for the verification above and restored immediately.
consumer's gate was run against the pinned commit — the same gate that fails without the change.
go run ./internal/schemagenandgo testran from this worktree; no shared install.charly task cue-gen(params + vocab + gofmt +TestGenReproducible) plus the consumer's designgate, all pasted above.
Change classification
Breaking change + rollback: none — the accepted words and the default are identical, so every
existing config that validates today still validates. A consumer that pins this commit gains a
schema whose census matches the umbrella's baseline, which is the point. Rollback is reverting this
commit; the inline union returns and the umbrella has to hold
specback again.Change class: Schema (CUE) —
charly task cue-gen's generator + reproducibility test, plus theconsumer's
design-dpatgate.Filed issues
Agent: charly
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)