Skip to content

refactor(schema): derive the pi word sets from vocabulary tables - #11

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/s3-vocab
Nov 10, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/s3-vocab

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Convert the five inline | word unions in candy/plugin-agent-pi/schema/pi.cue
to the §10.1 S3 vocabulary-table idiom, so each closed set of words has ONE home
and the enum a document meets is or() of that table's keys:

_commandType  _streamingBehavior  _mode          (+ _commandTypeWord / _streamingBehaviorWord / _modeWord)

That is the 13 union rows design/dpat-baseline.tsv records for
plugin-agent-pi/candy/plugin-agent-pi/schema/pi.cue. They are FIVE
disjunctions, not 13:
the 32-word Pi RPC command catalog is written one
alternative per line (9 rows), and streamingBehavior, the command mode, the
state steeringMode and the state followUpMode are each written on one line
(4 rows). The catalog's last word, extension_ui_response, closes its line after
a |, so it carries a row too — which is why the catalog is 9 rows for 32 words.

One extraction beyond the field-by-field kind. Pi renders ONE two-word enum
in three fields: the command mode and the state steeringMode / followUpMode
all accept all | one-at-a-time. Two tables for that would be a copy, so _mode
is ONE table and all three fields are or(_modeWord) — extracted on the second
occurrence, per R2. A later divergence of any one field is then one table split,
not three literals to find.

How this repo was picked, by shape. The umbrella's union rows, grouped by
owner, on origin/main:

$ git show origin/main:design/dpat-baseline.tsv | grep -v '^#' | awk -F'\t' '$2=="union"{split($1,a,"/"); print a[1]}' | sort | uniq -c | sort -rn | head -9
    187 spec
     16 plugin-egress
     13 plugin-agent-pi
     11 plugin-punktfunk
      8 plugin-pipeline
      8 plugin-lobster
      7 plugin-desktop-kind
      6 plugin-omarchy
      6 plugin-gh

spec is the producer and out of scope; plugin-egress's 16 rows are 16
separate single-line unions, ~3 not word lists; plugin-punktfunk (11 rows = 2
disjunctions) landed first. plugin-agent-pi is next: five disjunctions, all
pure word lists, no defaults, no heterogeneous or struct alternatives.
Every
row this repo carried is retired by this PR; nothing is left to judgement.

The accepted sets are IDENTICAL before and after — 32 command types, 2
streamingBehavior words, 2 mode words — read from the compiled CUE on both sides
(250-case differential below). The generated Go does not move either: every
field, type and tag is byte-identical, and the only line the regeneration changes
is one doc comment.

The diff is exactly the five unions. Every other line of pi.cue is
byte-identical to origin/main, including images?: [..._] and the label
alignment — the first head of this PR carried two formatting collateral edits
(cue fmt rewrote [..._] to [...] and re-aligned the fields), and the review
round's fix commit restored them, so the file now carries only the sweep.

Files the diff carries:

M candy/plugin-agent-pi/schema/pi.cue
M candy/plugin-agent-pi/params/cue_types_gen.go
M candy/plugin-agent-pi/go.mod
A candy/plugin-agent-pi/schema_served_test.go
file change
schema/pi.cue five unions become three S3 tables + derived lists; the shared mode set has one home
params/cue_types_gen.go regenerated — one doc comment is the only change
schema_served_test.go new: composes the plugin's own Describe reply, compiles the served body, pins the table → derived list → enum derivation for all three tables and all five fields
go.mod cuelang.org/go becomes a direct requirement (the test imports it)

Head d662fb4eade821961ffdc7d80774a7c1b1e12bd1.

How tested

Everything below ran on the committed tree, at that head.

1. The projection is the repo's own generator's output, and a re-run is
byte-identical.
This repo's committed projection is produced by
charly candy params, and the measurement decides it: on the PRISTINE tree
charly candy params --check said current, while raw cue exp gengotypes at
[email protected] changes 96 lines against the committed file — it drops the
yaml: tag the candy params retag contract puts beside every json: one
(plugin-candy's params_test.go pins that contract). The raw form therefore does
not reproduce this repo's projection, and the wrapper is the generator that
owns it. After the sweep, three runs carry one sha256 and --check is current:

$ charly candy params plugin-agent-pi
charly candy params: …/params/cue_types_gen.go already current

$ charly candy params plugin-agent-pi
charly candy params: …/params/cue_types_gen.go already current

$ charly candy params plugin-agent-pi --check
charly candy params: …/params/cue_types_gen.go is current

$ sha256sum candy/plugin-agent-pi/params/cue_types_gen.go
5fde48c35b8dd05ada8bd9fe639039bdb35e11765ed541464a7b541ac00c6a15  candy/plugin-agent-pi/params/cue_types_gen.go

and the generated Go does not move: the only changed line is the doc comment on
Type, because a derived or() still generates the same named string type.

2. The module gate, on the final tree:

$ go build ./...
build rc=0

$ go vet ./...
vet rc=0

$ gofmt -l .
(no output — all formatted)

$ go test -count=1 ./...
ok  	github.com/opencharly/plugin-agent-pi/candy/plugin-agent-pi	2.300s
?   	github.com/opencharly/plugin-agent-pi/candy/plugin-agent-pi/cmd/serve	[no test files]
?   	github.com/opencharly/plugin-agent-pi/candy/plugin-agent-pi/params	[no test files]

with GOTOOLCHAIN=go1.26.4, the version go.mod pins (host note, no finding:
this host's default go is go1.27.3-X:nodwarf5, and pinning the module's own
version reproduces the gate).

3. The schema still LOADS through NewMeta().Describe, and the body it serves
compiles.
charly box validate does NOT compile a served schema
(opencharly/spec#301), so the load gate is the plugin's own Describe reply,
compiled with the same CUE library the runtime links:

$ go test -count=1 -v -run 'TestServedSchemaResolvesItsDefs|TestS3VocabularyTablesDriveTheirEnums|TestServedCatalogCoversTheWholeEnum' .
=== RUN   TestServedSchemaResolvesItsDefs
--- PASS: TestServedSchemaResolvesItsDefs (0.00s)
=== RUN   TestServedCatalogCoversTheWholeEnum
--- PASS: TestServedCatalogCoversTheWholeEnum (0.01s)
=== RUN   TestS3VocabularyTablesDriveTheirEnums
--- PASS: TestS3VocabularyTablesDriveTheirEnums (0.08s)
PASS
ok  	github.com/opencharly/plugin-agent-pi/candy/plugin-agent-pi	0.107s

and the repo's structural check:

$ charly box validate
charly box validate: OK — checked 5 candies, 7 distros, 7 builders; 0 warnings, 0 errors

(that charly is the umbrella tree's worktree-local build, 2026.306.0314).

4. The accepted surface did not move: 250 cases, 20 categories, ZERO verdicts
moved in either direction.
Both schemas are compiled from source — BEFORE from
origin/main (a59c500), AFTER from this tree — and the same documents are
judged with the EXACT operation the host performs (spec/climodel's
ValidateCUEInput, which sdk.SchemaValidator.ValidateJSON delegates to:
input.Unify(def).Validate(cue.Concrete(true))). The case set is derived from the
compiled enums, never restated by hand: six blocks over every command word, the
2 streamingBehavior words and 5 refusals, the 2 mode words against ALL THREE
fields plus 5 refusals each, 6 command-shape cases, 5 structural cases, 6 state
documents, 4 state-response documents, 6 sub-command documents, and the three
fixture documents this repo's own plugin_test.go uses.

instrument: 32 command types, 2 streamingBehavior words, 2 mode words (identical on both sides)
--- 250 cases across 20 categories ---
  A command accept             32
  B command near-miss          32
  C command case               32
  D command+bogus key          32
  E command+streamingBehavior  32
  F command near-miss+mode     32
  G streamingBehavior accept    2
  G streamingBehavior refuse    5
  H command mode accept         2
  H command mode refuse         5
  I steeringMode accept         2
  I steeringMode refuse         5
  J followUpMode accept         2
  J followUpMode refuse         5
  K command shape               6
  L structural                  5
  M state                       6
  N state response              4
  O sub-commands                6
  P authored docs               3
verdicts: before 80 OK / 170 ERR; after 80 OK / 170 ERR
verdicts moved: 0 (must be 0)
error-texts moved: 102 (CUE's own rendering, not a verdict)

The 102 moved error TEXTS are CUE's own summarising — a near-miss command reports
a longer disjunction summary before, a shorter one after; the verdict, the
failing field path and the refusal are the same.

The rig is not green by construction: making type optional (word set unchanged)
turns it red.

$ # plant: `type?:` in the after schema
verdicts moved: 1 (must be 0)
MOVED K command shape	omitted	before=false after=true
rc=1

5. Every new test fails on a planted break — five plants, each applied to the
committed tree, observed red, then restored from a saved copy:

PLANT 1  dangling reference in the served def (`or(_commandTypeWordX)`)
  --- FAIL: TestServedSchemaResolvesItsDefs
      schema_served_test.go:141: Describe: plugin schema does not compile: #PiRPCCommand.type: reference "_commandTypeWordX" not found

PLANT 2  table kept, enum bound to a literal (`type: "prompt"`)
  --- FAIL: TestServedCatalogCoversTheWholeEnum
      schema_served_test.go:170: served enum is missing its TAIL (extension_ui_response) — the derivation is losing rows; got 1 commands: [prompt]
  --- FAIL: TestS3VocabularyTablesDriveTheirEnums
      schema_served_test.go:217: "commandType" word "abort" is refused where an author uses it: #PiRPCCommand.type: conflicting values "abort" and "prompt"

PLANT 3  the derived list no longer derived (`_commandTypeWord: ["prompt"]`)
  --- FAIL: TestS3VocabularyTablesDriveTheirEnums
      schema_served_test.go:213: "commandType"'s derived list [prompt] is not its table's row set [abort abort_bash … steer switch_session]

PLANT 4  the enum loses its TAIL (the `extension_ui_response` row deleted)
  --- FAIL: TestServedCatalogCoversTheWholeEnum
      schema_served_test.go:170: served enum is missing its TAIL (extension_ui_response) — got 31 commands

PLANT 5  a field wired to a literal with a SUBSET of the shared table (`steeringMode: "all"`)
  --- FAIL: TestS3VocabularyTablesDriveTheirEnums
      schema_served_test.go:217: "mode" word "one-at-a-time" is refused where an author uses it: #PiRPCState.steeringMode: conflicting values "one-at-a-time" and "all"

6. The text-parsed disjunction check came first. This repo has NO test that
reads a union's textual form — git grep -n -e ReadFile -e schemaFS -e '.cue' HEAD -- '*_test.go' exits 1 — so there was nothing to fix here. The existing
TestPiRPCBoundaryRejectsUnknownCommandsAndIncompleteState validates through the
embedded schema, not by parsing it, and still passes; the new served-schema test
adds the enum-coverage half the repo lacked.

7. The census gate. The umbrella's design/dpat-baseline.tsv and its
emission are the lead's, by emission, in the change that advances the pin; this
PR touches neither the census nor the umbrella.

Review round

The first head (871ab7e59b979219d49ab534ca217ff66099de74) returned a BLOCK with two findings;
both are fixed in d662fb4eade821961ffdc7d80774a7c1b1e12bd1, and this body is keyed to that head.

  1. A1 — unaccounted CUE edit (images?: [..._] → [...]). Fixed by REVERTING it: the file is
    restored to origin/main's formatting and that element type, and only the five unions change.
    RCA (missed control): I ran cue fmt for tidiness and read its output as "formatting only",
    without diffing the FILE against origin/main line by line before committing. The control I now
    apply is the one the body relies on: git diff origin/main -- <schema> is read in full and every
    changed line is classified as a union, the table block, or nothing — images is no longer in it.

  2. A3 — attribution model/provider not evidenced in the body. Fixed by pasting the harness's own
    session descriptor, which names agentProvider: ollama-cloud and agentModel: deepseek-v4.1-flash, beside dsh --version. RCA (missed control): I pasted the harness
    version and the session id but not the descriptor record that carries the provider and model, so
    the trailer was an assertion rather than a quotation. The control now is to paste the two
    descriptor records the runtime writes at session start.

  3. Round 2 — body contradicted its own pasted evidence (error-text count). The differential
    output said 102, the prose below it said 103. Fixed to 102 in both places. RCA (missed
    control):
    I patched the pasted output but not the prose that quotes it, so a body-wide claim
    changed in one place and not the other. The control now is to grep the body for every instance
    of a changed number before finalizing; grep -n '10[23]' finds one of each, and they agree.

No other finding was raised; the comments on this PR were coordination metadata, not defects.

Rulebook compliance

  • R0 — skills first. Read this repo's AGENTS.md (via
    git show origin/main:AGENTS.md) and the umbrella's rulebook before the first
    edit; loaded /charly-internals:git-workflow, /charly-internals:plugin,
    /charly-internals:go, /charly-automation:agent and /charly-check:check —
    the five the dispatcher selects for a plugin CUE schema, the Pi runtime, and a
    PR landing.

  • R1 — every anomaly root-caused, then fixed. One finding, in scope and fixed
    here: the instrument itself. Raw cue exp gengotypes at the pinned cue does
    NOT reproduce this repo's committed projection (96 changed lines, every one the
    documented yaml: retag), so using it would have landed a mass tag change
    unrelated to the sweep. Root cause: the projection is produced by
    charly candy params, whose retag contract is pinned by plugin-candy's
    params_test.go; the fix is to use the generator that owns the file, verified
    by --check on the pristine tree and by three identical runs after. No gate
    warned: every command below exited 0.

  • R2 — no duplication. Each word set has ONE home, the _x table; the
    derived _xWord list is a comprehension, not a copy; the enum is or() of it.
    The shared all | one-at-a-time set appears in ONE table and is used by three
    fields — the second occurrence was extracted, not copied. The test readers
    (servedSchema, schemaWordList) live once.

  • R3 — no workarounds. No sleeps, retries or suppressions. The projection is
    produced by the repo's generator instead of being hand-edited, and
    GOTOOLCHAIN=go1.26.4 runs the version go.mod pins instead of hiding a
    toolchain skew.

  • R4 — product before prose. N/A — no documented command, user-facing
    instruction or emitted page changes. The one prose edit describes the shape it
    now has, in the same commit.

  • R5 — legacy deleted completely, with the grep. The retired form is gone:

    $ git grep -n '|' HEAD -- candy/plugin-agent-pi/schema/pi.cue ; echo "rc=$?"
    rc=1
    
  • R6 — user work preserved, git safe. git status was read before staging
    and is clean after the commit; the four intended paths were staged by literal
    pathspec; the branch was re-created on fresh origin/main (a59c500 — it moved
    while this unit was being prepared) and carries one commit; git commit -F; no
    force-push, no history rewrite, no hook bypass, no direct push to main. The
    umbrella was never edited: no pin, no design/dpat-baseline.tsv, no census row.
    The identity used is repo-local (aitrawog <[email protected]>).

    $ git status --short      (after the commit and after every plant was restored)
    (no output)
    
  • R7 — proved behaviour, and the proof can fail. Five plants turn the new
    tests red (§5); the differential rig turns red on a semantic plant (§4); the
    changed artefact is validated at its boundary — the served body as the host
    receives it, and the projection against the generator that owns it.

  • R8 — live or skip, never fake. N/A — this change crosses no service
    boundary: it moves CUE words and a generated projection, and nothing in it
    contacts an agent process, a transport or a registry. The word sets are proven
    identical, so no live run could distinguish the before and after trees.

  • R9 — binary equals source. No charly source changed and no new runtime OS
    dependency. The module's dependency block moves one line: cuelang.org/go v0.16.1 becomes a DIRECT requirement because the new test imports the CUE API
    — the same promotion the two precedents made.

  • R10 — fresh proof on the gate that owns the change. This repo declares no
    per-repo candy gate; the gates that own it are the module build/test above, the
    projection currency check, and the served-schema load gate. All ran on the
    committed tree with zero warnings. The org-wide required charly/pr-validator
    is the merge gate and runs on this PR. No live consumer is claimed: the pi
    runtime's acceptance is its own bed in a consumer repo, and the word sets here
    are proven identical.

  • Cutover and landing. One phase, one commit. The census rows live in the
    umbrella and are lowered there by the lead only after this lands and the pin
    advances, never from this PR.

  • AI attribution (A3). The trailer carries this runtime's exact names. The
    harness's own session descriptor names the model deepseek-v4.1-flash and the
    session, and dsh --version prints the harness version — no config file is the
    evidence:

    $ dsh --version
    0.2.1-rc.2
    
    $ zstdcat ~/.dsh/sessions/--home-atrawog-Sync-Atrapub-lo-dsh-opencharly--/ca19da03-0b4d-402f-82d4-983ac86138c4/session.v4.jsonl.zstd | head -2
    {"type":"session","version":4,"id":"ca19da03-0b4d-402f-82d4-983ac86138c4","createdAt":1794293841130,"cwd":"/home/atrawog/Sync/Atrapub/lo/dsh/opencharly","parentSession":"session-f8a0eb3b-2677-47a9-8139-49b1ba39440c","isSeeded":false,"origin":"subagent","delegationDepth":1,"agentPreset":"standard"}
    {"type":"subagent/descriptor","seq":0,"time":1794293841134,"data":{"version":3,"mode":"continuable","provider":"spawn","label":"Sweep three leaf repos","agentProvider":"ollama-cloud","agentModel":"deepseek-v4.1-flash"}}
    

    The second record is the harness's own session descriptor, not a config file: it names
    agentProvider: ollama-cloud and agentModel: deepseek-v4.1-flash, which is exactly the
    provider-qualified model in the trailer.

    The tier fully tested and validated is the tier the gates above earned on
    this tree.

Change classification

Internal schema refactor — no consumer-visible change. The accepted surface does
not move (250 cases, zero verdicts moved); the generated Go does not move
(identical types, fields and tags, one comment); no definition is renamed or
removed; no accepted word is added or dropped. The shared mode set now has one
home, so a future divergence of mode / steeringMode / followUpMode is one
table split. What DOES change is the served CUE TEXT (the schema a host splices),
so a published page that renders that text verbatim will show the derived form
after its own regeneration — the lag both precedents left in place.

Breaking change + rollback: none — no word is added, dropped or renamed, no
definition is renamed, and the generated Go is byte-identical apart from one doc
comment, so no consumer action and no migration is owed; backing the change out is
one inverse commit. The census rows this retires are lowered in the umbrella by the
lead, by emission, in the change that advances the pin.

Filed issues

None — no R1 finding was separable from this change; the one finding (the
instrument) is fixed in this diff.

Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Convert the five inline `|` word unions in
candy/plugin-agent-pi/schema/pi.cue to the §10.1 S3 vocabulary-table
idiom: a `_`-prefixed table keyed by word, a derived `_…Word` list, and
the field as `or()` of that list, each table tagged `@vocab(pi)`.

Two sets are new tables — `_commandType` (the 32-word Pi RPC command
catalog) and `_streamingBehavior` (2 words). The third is ONE table for
the ONE upstream enum Pi renders in three fields: the command's `mode`
and the state's `steeringMode` / `followUpMode` all accept
`all | one-at-a-time`, so `_mode` has one home and all three fields are
`or(_modeWord)` — the second occurrence is extracted, not copied.

The accepted word sets are IDENTICAL before and after (32 commands,
2 streamingBehavior words, 2 mode words), read from the compiled CUE on
both sides; the generated params type is byte-identical except for one
doc comment, so no Go field, type or tag moves.

The projection is regenerated with `charly candy params`, the generator
that owns THIS repo's file: its documented retag contract adds the
`yaml:` tag beside every `json:` one (plugin-candy's params_test.go),
and raw `cue exp gengotypes` at v0.16.1 drops those tags, so the raw
form is the one that does not reproduce the committed projection here.

A new schema_served_test.go composes the plugin's own Describe reply and
compiles the body the host receives — the load gate `charly box validate`
does not provide (opencharly/spec#301) — and pins the table → derived
list → enum derivation for all three tables and all five fields.

Refs opencharly/opencharly#945 (the census), opencharly/opencharly#950
(the sequence), opencharly/plugin-jetkvm#15 and opencharly/plugin-cua#10.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — the plugin-agent-pi §10.1 S3 sweep is open as this PR.

Head 871ab7e59b979219d49ab534ca217ff66099de74 on feat/s3-vocab, off origin/main a59c500. The repo's 13 union rows are FIVE disjunctions (a 32-word command catalog written one word per line, plus streamingBehavior, mode, steeringMode and followUpMode on one line each); all are retired. The three all | one-at-a-time fields now share ONE _mode table rather than three copies. Evidence in the body: the wrapper produces one sha256 across three runs, 250 judged cases across 20 categories move ZERO verdicts, the served body is compiled through NewMeta().Describe, and five planted breaks turn the new tests red. The instrument finding (raw cue exp gengotypes does not reproduce this repo's yaml:-retagged projection) is measured and explained there.

Next: the validator's verdict. The census and the pin are the lead's, by emission, in the umbrella change that advances the pin.

Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 871ab7e59b979219d49ab534ca217ff66099de74 (branch: feat/s3-vocab)

Change class: plugin CUE-schema refactor (candy) + regenerated Go projection + new Go test. No core/sdk.

Security screen: PASS (no T1–T4 findings; go.mod change is only promoting the existing cuelang.org/go v0.16.1 pin from indirect to direct — no version/dep change).

Blocks

  1. A3 — attribution model/provider not evidenced. The trailer claims
    *Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)*,
    but the pasted runtime evidence is only:

    $ dsh --version
    0.2.1-rc.2
    $ env | grep -E '^DSH_(PROFILE|SESSION_ID)='
    DSH_PROFILE=web
    DSH_SESSION_ID=ca19da03-0b4d-402f-82d4-983ac86138c4
    

    Neither the provider (ollama-cloud) nor the model (deepseek-v4.1-flash) appears in any
    pasted output. The body asserts "the harness's own session descriptor names the model" but
    never pastes that descriptor. Per A3 the full model name must be cross-checked against the
    runtime evidence in the body; here it is the author's word alone (rule 4). Paste the
    DSH_*/session line that actually names the provider+model, or correct the trailer.

  2. A1 — unaccounted CUE edit. candy/plugin-agent-pi/schema/pi.cue changes
    images?: [..._] → images?: [...] (the _ element type is dropped). This is not one of the
    five word unions and is mentioned nowhere in the Summary or the per-file table. It is also
    not covered by the 250-case differential (images is not among the exercised fields), so
    "the accepted surface did not move" is unproven for it. The generated-Go byte-identity suggests
    it is a no-op, but the body must either revert it or state it and confirm equivalence
    ([...] ≡ [..._]) explicitly.

Comment disposition

  • Comment 6761478657 (@aitrawog, STATUS …) — coordination metadata (valid STATUS label,
    Agent:/Assisted-by: footers present); restates the body's claims and adds no independent
    finding. Not a sign-off, not a defect. No bearing on this verdict.

Verdict: BLOCK


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

View action run

The previous commit carried two formatting collateral changes that are
not part of the §10.1 S3 sweep: `images?: [..._]` lost its `_` element
type (cue fmt rewrote it to `[...]`), and every field label in
#PiRPCCommand and #PiRPCState was re-aligned. Neither is a word set and
neither was stated in the body.

Restore the file's original formatting and the `[..._]` element type so
the diff against origin/main is exactly the five unions replaced by
three vocabulary tables. The generated projection is unchanged by this
commit (it already compiled from the same schema semantics) and a
second `charly candy params` run is still `current`.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — round 2 is pushed at d662fb4eade821961ffdc7d80774a7c1b1e12bd1, carrying both BLOCK fixes.

A1 (unaccounted [..._] → [...] edit). Fixed by reverting it: the schema is restored to origin/main's formatting and element type, so the diff is exactly the five unions replaced by three tables. RCA — the missed control: I ran cue fmt for tidiness and read its output as "formatting only" without diffing the FILE against origin/main line by line before committing. The control I now apply: read git diff origin/main -- <schema> in full and classify every changed line as a union, the table block, or nothing.

A3 (attribution not evidenced). Fixed by pasting the harness's own session descriptor, which names agentProvider: ollama-cloud and agentModel: deepseek-v4.1-flash, beside dsh --version. RCA — the missed control: I pasted the harness version and the session id but not the descriptor record that carries the provider and model, so the trailer was an assertion rather than a quotation; the control now is to paste the two descriptor records the runtime writes at session start.

The body is re-finalized for the new head, the gate was re-run on it (build, vet, gofmt, go test, the served-schema tests, charly box validate), the 250-case differential still moves zero verdicts, and all five plants still turn the tests red.

Next: the validator's verdict on the new head.

Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d662fb4eade821961ffdc7d80774a7c1b1e12bd1 (branch: feat/s3-vocab)

Change class: plugin candy CUE-schema refactor (five | unions → three S3 vocabulary tables) + regenerated Go projection + new Go test. No core/sdk.

Security screen: PASS (no T1–T4 findings; go.mod only promotes the existing cuelang.org/go v0.16.1 pin indirect→direct; new test is read-only, no network/secret egress, @vocab(pi) is inert metadata).

The two prior-head BLOCK findings are genuinely resolved in the current state: images?: [..._] is present as an unchanged context line (A1 fixed), and the body now pastes the session descriptor naming agentProvider: ollama-cloud / agentModel: deepseek-v4.1-flash beside dsh --version (A3 fixed).

Blocks

  1. A1 / rule 4 — body contradicts its own pasted evidence (error-text count). The pasted differential output (§4) states error-texts moved: 102 (CUE's own rendering, not a verdict), but the body prose immediately below says "The 103 moved error TEXTS are CUE's own summarising…". 102 ≠ 103. Per rule 4, a pasted output that contradicts the body must be flagged regardless of plausibility, and A1 requires the body to accurately supply the evidence it reports. Reconcile the two — correct the prose to 102, or correct the pasted output — and re-finalize the body at this head. (The core claim verdicts moved: 0 over 250 cases is internally consistent; only the error-text count disagrees.)

Comment disposition

  • Comment 6761478657 (@aitrawog, STATUS …) — coordination metadata (valid STATUS label, Agent:/Assisted-by: footers present); restates the body's claims and adds no independent finding. Not a sign-off, not a defect.
  • Comment 6761509922 (@github-actions[bot], BLOCK at 871ab7e) — stale-superseded: it reviewed the prior head. Both its findings are resolved in the current diff/body — the [..._]→[...] edit is reverted (line is now unchanged context), and the attribution provider/model is now quoted from the harness session descriptor. Neither survives as a finding.
  • Comment 6761585959 (@aitrawog, STATUS … round 2) — coordination metadata; both claimed fixes re-derived and confirmed against the current diff (images restored, descriptor pasted), and the RCA naming the missed control is present.

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — the round-2 finding is fixed by a body-only change; the gate was re-run on the SAME head d662fb4eade821961ffdc7d80774a7c1b1e12bd1 via the REST re-run of the failed run, and the body is re-finalized at that head.

The finding: the pasted differential said error-texts moved: 102 while the prose below said 103. Both now say 102; grep -n '10[23]' finds no disagreement. RCA — the missed control: I patched the pasted output but not the prose that quotes it, so a body-wide number changed in one place and not the other. The control now is to grep the body for every instance of a changed number before finalizing.

Next: the re-run's verdict on the same head.

Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: d662fb4eade821961ffdc7d80774a7c1b1e12bd1 (branch: feat/s3-vocab)

Security screen: PASS (no T1–T4 findings; go.mod only promotes the existing cuelang.org/go v0.16.1 pin indirect→direct — no version/dep change; new test is read-only NewMeta().Describe + CUE compile, no network/secret egress; @vocab(pi) is inert metadata).
Checklist: All applicable rules PASS or NA.

Comment disposition:

  • 6761478657 (@aitrawog, STATUS …) — coordination metadata (valid label, footers present); restates body, no independent finding.
  • 6761509922 (@github-actions[bot], BLOCK @871ab7e) — stale-superseded: both findings re-derived against current state. images?: [..._] is an unchanged context line (A1 resolved); the session descriptor naming agentProvider: ollama-cloud / agentModel: deepseek-v4.1-flash is now pasted beside dsh --version (A3 resolved).
  • 6761585959 (@aitrawog, STATUS … round 2) — coordination metadata; both fixes and the missed-control RCAs re-derived and confirmed against the current diff/body.
  • 6761604542 (@github-actions[bot], BLOCK @d662fb4) — stale-superseded: the error-text count is now 102 in both the pasted differential output and the prose; contradiction reconciled.
  • 6761672449 (@aitrawog, STATUS …) — coordination metadata; the 102 reconciliation confirmed.

Non-blocking observation (not a stated-rule obligation, so not a block): R6 prose says the branch "carries one commit" while the PR commit list shows two (871ab7e sweep + d662fb4 review-round fix). Two commits is the HC-sanctioned shape ("first push is the change, each review round appends one fix"), so this is a wording imprecision only — the substantive R6 requirements (git status checked, no force-push/rewrite/bypass) are met and the commit list is internally consistent.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 10, 2026 07:35
@github-actions
github-actions Bot merged commit 36ce6d0 into main Nov 10, 2026
5 of 6 checks passed
github-actions Bot pushed a commit to opencharly/plugin-task that referenced this pull request Nov 10, 2026
…es (#65)

Convert the five `mode` word unions in candy/plugin-task/schema/task.cue to the
§10.1 S3 vocabulary-table idiom: a `_`-prefixed table keyed by word, a derived
`_...Word` list, and the field as `or()` of that list, each table tagged
`@vocab(task)`.

That is the 4 `union` rows design/dpat-baseline.tsv records for this file, and the
row count is a property of the OLD file's FORMATTING: four distinct lines, five
FIELD SITES — `mode?: "sync" | "check"` appears twice (#SpliceRegionInput and
#ModulePinsInput, written identically) and the census records it once with a
count of 2. So THREE tables cover FIVE fields:

  _submodulesMode   status bump verify currency   #GitSubmodulesInput.mode
  _checkSync        check sync                    #FileParityInput.mode
                                                 #SpliceRegionInput.mode
                                                 #ModulePinsInput.mode
  _pruneMode        report prune                  #PruneInput.mode

`_checkSync` is the one two-word set three verbs share, so it has ONE home and
three consumers rather than three copies that could drift apart (R2). No union in
this file carried a default, a scalar-type alternative, or a heterogeneous or
struct alternative; nothing is left to judgement.

The accepted sets are IDENTICAL before and after (4/2/2/2/2 words), read from the
compiled CUE on both sides, and the differential is zero-verdict: 163 cases across
46 categories, no verdict moved in either direction.

The generated projection does not move at all: `charly candy params plugin-task
--check` says current on the pristine tree and after the sweep, so this diff
carries no params/cue_types_gen.go change. Raw `cue exp gengotypes` would NOT
reproduce it — it drops the `yaml:` retag the wrapper adds to all 28 tagged
fields, 112 diff lines — so the wrapper is the instrument that owns the file.

Two tests are added. schema_served_test.go composes the plugin's own Describe
reply and compiles the body the host receives (the load gate `charly box validate`
does not provide, opencharly/spec#301), pins the table -> derived list -> field-enum
derivation for all three tables and the @vocab owner, and mutates a table to prove
each field is DERIVED from it rather than merely equal to it. mode_dispatch_test.go
keeps each of the five `mode` fields and the Go function that dispatches on it in
step in BOTH directions, and pins the four Go-level defaults for an omitted mode
against the words the schema accepts.

Refs opencharly/opencharly#945 (the census), opencharly/opencharly#950 (the
sequence), opencharly/plugin-jetkvm#15, opencharly/plugin-cua#10,
opencharly/plugin-punktfunk#20, opencharly/plugin-gh#13, opencharly/plugin-agent-pi#11,
opencharly/plugin-omarchy#11 and opencharly/plugin-agent#15.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: aitrawog <[email protected]>
charly-auto-merge Bot added a commit that referenced this pull request Nov 10, 2026
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