Repository navigation
fix(cue): give each #MountNeed boolean its own union line (D-PAT-3) - #365
Conversation
D-PAT-3 judges a line: a `|` disjunction outside `or(...)` is a violation unless the line carries
exactly ONE, as a literal default (`design-dpat.sh`: `if (nbar == 1 && literal_default(...))`).
`#MountNeed` packed two of them onto one line:
```cue
#MountNeed: {host!: #AbsPath, path!: #AbsPath, writable: *false | bool, exclusive: *false | bool}
```
so the census counted a union finding there, and opencharly/opencharly could not pin the commit that
carried it — the same block that held `spec` back through three waves, one layer down.
The shape is unchanged; the fields are simply written one per line, which is how its two siblings
`#CountNeed` and `#SizeNeed` already read:
```cue
#MountNeed: {
host!: #AbsPath
path!: #AbsPath
writable: *false | bool
exclusive: *false | bool
}
```
`*false | bool` is the pre-existing spelling on every such field in this schema and is not part of
this change: it keeps validating as before, and the census sees one literal default per line.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — layout-only CUE change; no secrets, no guardrail weakening, no supply-chain/instruction-injection content. Tool-limited note: cannot re-run Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
`charly task sync` from `origin/main`, run once the three producer legs had landed: - opencharly/spec#365 — `#MountNeed` gives each boolean its own union line, so the D-PAT-3 census stops counting a finding there (opencharly/spec#364); - opencharly/charly#1189 — `box/cachyos` advanced to the tip distro-cachyos serves, which the umbrella's `distro-cachyos` EDGE pin follows. Seven pins moved: charly, sdk, spec (leaf pins) distro-cachyos (EDGE — unblocked by box/cachyos) charly-ubuntu, layer-tailscale, pod-comfyui Control after the wave, which is what this change exists to satisfy: currency: 0 of 394 pin(s) NOT current [394 cur] Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Summary
D-PAT-3 judges a line: a
|disjunction outsideor(...)is a violation unless the line carriesexactly ONE, as a literal default —
scripts/design-dpat.sh:#MountNeedpacked two of them onto one line:so the census counted a union finding at
schema/capability.cue:209, and opencharly/opencharly couldnot pin the commit that carried it — the same block that held
specback through three waves, onelayer down. Filed as #364.
The shape is unchanged; the fields are written one per line, which is how its two siblings already
read:
*false | boolis the pre-existing spelling on every boolean field in this schema (17 sites acrosscapability.cueanddocs.cue) and is deliberately not part of this change: it keeps validating asbefore, and one literal default per line is exactly what the rule asks for.
How tested
1. The generators are a no-op — pasted, not asserted:
2. The consumer's design gate, with THIS commit pinned — the assertion that matters:
Without the change, the same command on the same tree reports:
The index pin was restored afterwards (
git restore --staged spec), leaving the umbrella tree clean.Rulebook compliance
/charly-internals:go,/charly-internals:plugin(CUE/SDD),
/charly-internals:git-workflow.this schema and is filed (fix(cue): #MountNeed carries two unions on one line, so the umbrella cannot pin it (D-PAT-3) #364) and fixed here in the same breath rather than left
for the next wave. Zero warnings from the generators, the reproducibility test and the consumer's
gate.
are CUE's own two-value set; the fix is layout, not a second source of truth for
true/false.// S10-stylemarker used to silence a rule that is about shape rather than ownership.
still explains the lease-field port.
origin/main; no force-push; the umbrella index was touchedonly for the measurement and restored immediately.
723d29b, absent at this commit; census 357 with the same 142 unions in both).go run ./internal/schemagenandgo testran from this worktree; no shared install.disposable: truedeployment; a schema change's gate here ischarly task cue-gen(params + vocab + gofmt +TestGenReproducible) plus the consumer's designgate, both pasted.
Change classification
Breaking change + rollback: none — the definition's shape and its fields' types are identical, so
every validating config validates as before and the generated Go is byte-identical (item 1). Rollback
is reverting this commit; the union finding returns and the umbrella has to hold
specat115d5d3b97a0again.Change class: Schema (CUE), layout-only —
charly task cue-gen's generator + reproducibility test,plus the consumer's
design-dpatcensus.Filed issues
#MountNeedunion finding this fixes.Agent: charly
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)