Repository navigation
fix(cue): mark the three #Opaque uses in bind.cue with their S10 reason - #361
Merged
Merged
Conversation
D-PAT-1 requires every use of `#Opaque` to mark itself `// S10` on the line that uses it, because an open struct is otherwise indistinguishable from a typo-tolerant shape. The three uses in bind.cue carried their reason only in the definition's doc comment, so the umbrella's census counted them as findings and the umbrella had to hold its `spec` pin back (#357). Each site now names what makes it foreign-owned, and nothing else changes: the shapes, the generated Go, and the wire contract are byte-identical. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — comment-only CUE markers; no embedded directives, secrets, guardrail weakening, or scope beyond the stated three Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
github-actions Bot
pushed a commit
to opencharly/opencharly
that referenced
this pull request
Nov 17, 2026
`charly task sync` from `origin/main` — the pin contract's one verb for this repo's own pins — run once opencharly/spec#361 had landed: it marks the three `#Opaque` uses in `schema/bind.cue` with their `// S10` reason, which is what the pre-push gate's census needed before the `spec` pin could move. Three pins moved: spec (the one the gate had refused through two waves) charly (picks up the box/* wave landed as opencharly/charly#1187) pod-ai-toolkit (the merge that preceded this wave) The five `distro-*` EDGE pins were already at the tips their sources declare (0 moved), which is the state the last wave established. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
D-PAT-1 requires that every use of
#Opaquemark itself// S10on the line that uses it, becausean open struct is otherwise indistinguishable from a typo-tolerant shape. The three uses in
schema/bind.cuecarried their reason only in the definition's doc comment — which the census doesnot read — so
design-dpatcounted them as findings:That is why opencharly/opencharly could not pin past
af9c505429fe: its pre-push gate compares theschema census against
design/dpat-baseline.tsvand fails on ANY new violation. So a spec commitcarrying three findings blocked every consumer, and the umbrella's
specpin satbehindthrough twowaves (filed as #357).
Each site now names what makes it foreign-owned, on the use line:
Nothing else changes. The shapes are the same;
#Opaqueremains the one open struct (§4, S10:foreign-owned payload); and the long explanations stay where they were, in the definitions' doc
comments.
Markers are single-line on purpose. My first attempt put the reason on a continuation line; the
schema generator carries continuation lines into the generated Go as doc comments, which produced
truncated fragments like
// configuration shape (D-CAP-2), and a solver that inspected it would be a second authority. A one-line marker keepsspec/cue_types_gen.gobyte-identical.How tested
1. The generators are a no-op on this tree — pasted, not asserted:
2. The consumer's design gate, run with THIS commit pinned in place of the held-back one — the
assertion that matters, because that gate is what refused the pin:
The
opaquebucket is back to 0 and the total is exactly the baseline's 357. Without the change,the same command on the same tree reports the three findings quoted above. 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.closed by this fix rather than deferred again. Zero warnings from the generators, the
reproducibility test, and the consumer's gate.
keeps the long form and states nothing contradictory.
//nolint-styleescape is introduced. The marker is the mechanism the rule itself defines.
D-CAP-2/S10 reason.
origin/main; no force-push; the umbrella index was touched onlyfor the measurement above and restored immediately.
both directions (opaque 3 without, 0 with; total 357 = the baseline).
go run ./internal/schemagenandgo testran from this worktree; no shared install.disposable: truedeployment; its gate for a schema change ischarly task cue-gen(params + vocab + gofmt +TestGenReproducible) plus the consumer's designgate, all pasted in items 1 and 2.
Change classification
Breaking change + rollback: none — not even for the wire contract. Three CUE comments are added;
the schema's shapes, the generated Go types,
spec/vocab_gen.go, the JSON/YAML wire form, and everyvalidating config are unchanged, which is what item 1's empty generator diff proves. Rollback is
reverting this commit; the umbrella would have to hold
specback again.Change class: Schema (CUE), comment-only —
charly task cue-gen's generator + reproducibility test,plus the consumer's
design-dpatcensus.Filed issues
#Opaqueuses this fixes.Agent: charly
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)