§1 — Why this release exists

imas-codex composes a standard name for every DD quantity. After its full DD run, 86 sources could not be named because the grammar has no word for something they measure: a power convertor, a slit, a stress tensor, the tritium decay that seeds runaway electrons. imas-codex classified every missing token as add, reject (an existing spelling already says it) or decompose (existing tokens already compose it). That worklist is /home/ITER/mcintos/Code/imas-codex/docs/evidence/fragments/sn-integrity-backlog/sib-vocab-worklist.json, merged in imas-codex 5137eaf7d and read against this repository's tag v0.10.1.

The lead ruled on it on 2026-11-09:

This repository owns the vocabulary and its release; imas-codex owns the pin bump, the graph grammar snapshot and the rerun of the sources, under its own plan sn-integrity-backlog §51.

§2 — The accepted vocabulary enters the grammar

Add these 34 tokens, in the segment and vocabulary file the worklist row names and with its one-sentence definition, by editing the vocabulary YAMLs and grammar/specification.yml and regenerating with build-grammar. Never hand-edit the generated files.

horizontal (component), pipe, ion_source, optical_fibre, power_convertor, slit, thermal_shield (equipment objects), image_surface, magnetic_field_line, pre_sawtooth_crash, threshold_crossing (positions), arc_of_circle, oblique, thick_line (geometry representations), image, grid (geometric bases, in geometry_carriers.yml, the vocabulary the worklist rows name; not the geometry segment's positions), ballooning_parameter, delta_prime, stress (physical bases), helical, ripple, sine, cosine, chemical, bounce, compressive, second_inclination, rotational, tangency (qualifiers), tritium_decay, fragmentation, sublimation (processes), lithium_6 (subject), side (zone).

The six equipment objects are entries of the loci: mapping in locus_registry.yml with type: entity, beside antenna_strap and coil_conductor; no new top-level section is added. specification.yml keeps the prefix device segment for parse compatibility only, so every representative name uses the postfix locus form that compose tooling enforces, for example voltage_of_power_convertor, never power_convertor_voltage.

The 34 tokens enlarge the public grammar by design: each becomes a generated enum member and a filter token, and adding the vocabulary the DD needs is this plan's purpose. Nothing is retired in exchange, because every token serves DD sources that cannot otherwise be named.

Done when:

§3 — The doubtful additions are reworked

The lead judged six proposed tokens too generic or too composite, and a seventh, source as a qualifier, would compete with the existing physical base source for the same spelling. No test guards qualifiers against physical bases today (_no_duplicate_names_across_registries in vocab_loaders.py covers five other registries), so the carve-out rests on one meaning per spelling, not on a failing gate. Each is reworked against the DD documentation of the sources that need it.

It waits for §2 so that its spellings are probed against the grammar they will be released into.

Done when: docs/evidence/fragments/dd-gap-vocabulary/doubtful-rework.json holds one row per reworked token with every DD source path it blocks, the reworked spelling or parts, the existing token each part reuses, and the DD documentation that justifies it; each reworked spelling built only from existing tokens round-trips through parse() at §2's head, recorded per row; each row that needs a genuinely new token lists it separately with its definition for the lead's ruling; doubtful-rework.html beside it summarises the result. No grammar file changes in this section.

§4 — The grammar is released and handed to imas-codex

Once §2 and §5 land, cut a minor release from main with the release CLI. The CLI refuses a detached worktree, so the coordinator cuts it from the main checkout after CI is green on upstream. imas-codex then bumps both pins in its pyproject.toml and syncs its graph grammar snapshot under its own plan.

Done when: a tag above v0.10.1 carrying §2 and §5 is pushed to upstream, its publish workflow is green, and PyPI reports that version as latest.

§5 — A name can locate the maximum of a profile

argmax is the one accepted addition that is grammar machinery rather than a word. It returns the coordinate at which its operand profile is maximal, so the quantity it names has the dimension of that coordinate, not of the operand. It is declared in operators.yml as the indexed unary-prefix token argmax_with_respect_to, exactly as derivative_with_respect_to is, because the renderer and parser emit the operand-first form only for a token containing _with_respect_to_. Its index parameter is the coordinate, so the name carries the coordinate in the same canonical order, operand first and coordinate last: argmax_of_deposited_power_with_respect_to_normalized_toroidal_flux_coordinate is dimensionless, whatever the unit of power. The indexed-operator machinery and its round-trip tests already exist for the derivative.

A name carries no unit itself; a catalog entry pairs a name with a unit, and validation/semantic.py checks that pairing. An operator's effect on dimension already has one owner, the dimension_transforming field of the operator definition in operators.yml and grammar/vocab_loaders.py, read today only by _load_dimension_transforming_operators() to exempt such operators from the base-implies-unit warning. Rather than add a second field beside it, that field becomes typed: it states what the result's dimension is derived from, operand for the operators that carry true today (whose results transform the operand's dimension, as square, inverse or time_derivative do, rather than equal it) and index for argmax_with_respect_to, whose result takes its index coordinate's dimension. No OperatorSemanticEffect member is added. The check reuses what validation/semantic.py already owns: the sibling-entry unit comparison in _check_source_flux_unit_collision is generalised into a named-pair unit check that compares the argmax entry's unit with its coordinate's entry. An indexed operator's coordinate is fused into its token (the parser yields op='argmax_with_respect_to_<coordinate>' with no arguments), so the check extracts the coordinate by splitting the token on _with_respect_to_, as render.py does, and reports a coordinate with no catalog entry itself, in the same issue family _check_referential_integrity uses for an absent target. Both return issue strings in the existing families, so an unchecked pairing is an issue a caller sees, never an empty list that reads as a pass.

Done when:

§6 — The reworked spellings the lead accepts enter the grammar

Once §3 lands and the lead rules on its new-token list, the accepted tokens are added the way §2 adds its own and released in a patch release. Sources whose rework needs no new token are named by imas-codex directly after the §4 release.

Done when: every token the lead accepts from doubtful-rework.json is in its vocabulary with a parse and round-trip test of the row's spelling and a planted-removal control, and a patch tag carrying them is pushed to upstream and published.

§ Followups

Add the accepted vocabulary, rework the doubtful seven, release

Build §2 and §5 in parallel. §3 follows §2, §4 follows §2 and §5, and §6 follows §3 and the lead’s ruling.

/reckon-build dd-gap-vocabulary

§2 landed (merge 4df7cf3, review 120/120). All 34 accepted tokens are in their vocabularies with the worklist definitions; geometry representations now declare the physical bases they admit, so arc_of_circle, oblique and thick_line round-trip beside local_circle; the ten new qualifiers are registered in qualifier_categories.yml. The grammar suite ran serially: 1,285 passed at base, 1,382 at head, no added failure; a planted token removal and a planted rejected spelling each fail their test.

Lead ruling, 2026-11-10, on the rework's first proposal:

  • Accept the three new tokens for §6: pellet_species (subject), plateau_factor (physical base) and current_profile_alignment (physical base, its unit to be confirmed from the DD).
  • Rework two rows again, because their spellings lose what the source distinguishes: edge_sources/source/ggd/current must name the source contribution rather than plain current_density, and the two breakdown-candidate paths must keep the breakdown-candidate selection in the name. This ruling is also the authority for source sitting in this rework.

§5 landed (merge b1d8bca, review 120/120). argmax_with_respect_to is an indexed operator; dimension_transforming is typed, operand for the sixteen existing operators with their exemption unchanged and index for argmax; run_semantic_checks compares an argmax entry's unit with its coordinate's entry and reports an absent coordinate.

§4 done: v0.11.0 tagged from cb8a19d after upstream CI passed (test and docs), the release workflow succeeded and PyPI reports 0.11.0 as latest. The lead approved the final release and the push of main to upstream on 2026-11-10. imas-codex now bumps its pins under its own plan.

Lead ruling, 2026-11-10, on the rework's second pass: accept breakdown_candidate (position) and sourced (qualifier, chosen over specified, which reads as a prescribed value). With the first pass, §6 adds five tokens: pellet_species, plateau_factor, current_profile_alignment (unit A, confirmed by the DD), breakdown_candidate and sourced.

All 34 accepted tokens and ten qualifier category registrations implemented; base 1285 passed/32 skipped and final head 1382 passed/32 skipped, both complete with exit 0 and zero added failure IDs; codegen clean, 82 targeted confirmation tests passed and both planted controls failed as declared.

Independent review of d88e5bee0db310bb311de9aa20f46c63dd4eded9..2a2a3ccae7050650f4627f7ea108a7899a3a2894 is parsed with all six dimensions 20/20, zero findings and zero added failure IDs derived from completed source gate logs.

The 2026-11-10 ruling is recorded: pellet_species, plateau_factor and current_profile_alignment are accepted for vocabulary implementation. Three corrected names explicitly preserve source identity distinctions: sourced_current_density, vertical_grid_of_breakdown_candidate and vertical_position_of_breakdown_candidate. Two reusable additions, sourced and breakdown_candidate, are proposed. All seven full spellings probed at main cb8a19d8527c07be72937e8c8eec91260402aa0b: one ratio round-trips and six refuse pending registration of five unique tokens; seven positive controls and two existing subexpressions pass; DD confirms A at current_alignment and current_alignment/value; zero grammar changes. Evidence anchor /imas-standard-names/evidence/fragments/dd-gap-vocabulary/dgv-doubtful-rework.html#dgv-doubtful-rework-explicit-names

Parsed review of d46fd86214d7c8d3f9ee7ba46c3a93c37aa827f9..67cc80a489ce35936ffd82f23e127444aeb0fd66 stored at both declared paths; all six dimensions scored, no source findings; suite failure delta cannot be measured from empty source arms.

Independent review of 8bead18ed4015da2a7410e1072a5a76091c5b168..8508571f937f82d8f0f6c443803cbb8414b6e3cf is parsed; all six dimensions score 20/20, no findings, and zero added failure IDs derived from completed source gate logs.

Added typed operand/index dimensions and coordinate-indexed argmax with unit and absent-target checks; all 16 operand transformations are tested; base 1576 passed, 32 skipped in 1336.31s (0:22:16); head 1610 passed, 32 skipped in 1206.60s (0:20:06); both exit 0 with zero added failure IDs; 112 passed in 48.16s, 43/43 changed executable lines covered, and both planted controls fail as declared.

Independent revision-bound review parsed with all six scores (20,20,20,20,20,5), zero added failure IDs, and one blocking duplication finding in tests/grammar/test_rework_tokens.py; consolidate its generic case schema and checks into tests/grammar/test_dd_gap_vocabulary.py before landing.

Five accepted tokens retained; six spellings and removal controls consolidated into the existing 40-case registration owner with literal spelling and independent IR expectations. Base 1399 passed/32 skipped, repaired head 1413 passed/32 skipped, both EXIT=0 with zero added failure IDs; 95 focused and 6 repair checks pass; answering-commit reversal yields 5 failed/1 passed, and all token/scope removals fail as intended. Evidence /imas-standard-names/evidence/fragments/dd-gap-vocabulary/dgv-rework-tokens.html#dgv-rework-tokens-shared-contract