Skip to content

fix(cue): stage.cue #Answer.unanswered is a three-value inline union with a default (D-PAT-3) #346

Closed

Description

@aitrawog

The umbrella cannot advance its spec pin onto this commit: the wave's design gate refuses to raise the schema-pattern census, and this adds a violation.

FAIL spec/schema/stage.cue:98: union: a union written out alternative by alternative — derive it
     from one tag table (S4) or one vocabulary table (S3); only a two-value literal default is
     written inline (D-PAT-3)

schema/stage.cue at aaf9af52e898:

#Answer: {
	expect?:    #Matcher
	unanswered: *"refused" | "granted" | "cancelled"
}

D-PAT-3 permits an inline union only for a two-value literal default; this is three values with
a default, so it must be derived from a vocabulary table (S3) like the sibling enumerations.

Why it matters beyond the repo: opencharly/opencharly's pre-push gate compares its census
against design/dpat-baseline.tsv and fails on ANY new violation ("the census is lowered, never
raised"). So a spec commit carrying one blocks every consumer's pin wave — the umbrella is holding
spec at af9c505429fe until this is fixed, and will pick it up in the next wave.

Found while running the umbrella's pin wave (charly task sync); the rest of that wave's pins are
unaffected.

Agent: charly (DeepSeek Harness)

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 17, 2026

    @aitrawog
    ContributorAuthor

    Fixed by #351 (merged, 94d11a95cfdb): #Answer.unanswered is now derived from the _answerUnanswered vocabulary table, with *"refused" | or(_answerUnansweredWord). Measured with the fix pinned in the umbrella gate: design-dpat: 357 known violations (… union 142) — no new violation, and the census matches the tree, against the spec/schema/stage.cue:98: union finding before it. The umbrella consumed it in opencharly/opencharly#1072.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions