Abstract
[2.0.0] — 2026-06-12 Added — Tier-1 release polish (AAA #2136 · EPIC #1976 Phase 7, Repo 1/4) Brings the spec repo to the Tier-1 bar of REFERENCE/STANDARD_trugs_release_polish.md. Layer 1 (industry baseline, SP1): ruff + mypy + pytest declared in pyproject.toml [project.optional-dependencies] dev with [tool.*] config; Makefile adds a single-command make check gate; .github/workflows/check.yml runs it in CI (coexists with compliance.yml); .gitignore covers .mypy_cache//.ruff_cache/. Baseline was already lint/type/test-green; formatting applied. Layer 3 (TRL contracts, SP3): tools/build_language_trug.py (the one production module) carries a module-level header, function-level contracts on its 3 public functions, and inline annotations on significant lines. Layer 2 (structural, SP2): this changelog finalized from CHANGELOG_TRUGS_2.0_pending.md → CHANGELOG.md (resolving the folder.trug.json doc_changelog mispoint); folder.trug.json brought to a clean tg check (added nodes for Makefile, PROPOSAL/, zzz_ARCHIVE/). Layer 4 (self-description, SP4): "the spec proves itself" — the spec's shipped TRUGs (TRUGS_LANGUAGE/language.trug.json + the EXAMPLES/ + STUDIES/ exemplars) validate against TRUGS's own 16-rule CORE via tg validate, and language.trug.json is a deterministic rebuild of SPEC_vocabulary.md. Verify in one command: make trugs # tg validate every shipped TRUG + confirm the deterministic language.trug.json rebuild (or, all four layers at once: make check). Branch protection (PR-required, no force-push) is applied to the public TRUGS-LLC/TRUGS at the 2.0 release; the private dev mirror cannot carry it (GitHub plan limit). Reconciliation note (AAA #2136 ADR-003): the "Added — Dark Code (under TRUGS 1.x line)" entry below references tools/compliance_check.py + a trugs-compliance-check entrypoint that are not present in this 2.0 spec-only repo (the tooling moved to trugs-tools); and it records the initial baseline 26.72%, whereas .github/compliance-baseline.json currently reads 99.83%. The historical entry is preserved as-is; this note flags the drift. The baseline number is not advanced here (out of scope). Added — TRUGS 2.0 (corpus-driven vocabulary expansion · AAA #2048 / EPIC #1976 Phase 4) Vocabulary grows 211 → 233 words. The 22 additions are corpus-evidenced: derived from the de-masked per-class TRL drift re-measurement (Xepayac/TRUGS-DEVELOPMENT#2018, which overturned #1996's null result), HITM-dispositioned as accepted, with swap-safety confirmed by the swap-capacity regression check (#1998). 22 vocabulary additions in TRUGS_LANGUAGE/SPEC_vocabulary.md (per-POS counts + §11 Summary table reconciled): Verbs +19 (61 → 80): EXECUTE, INVOKE, HALT, COMPLETE, PASS (control); EMIT, POST, LOAD, APPEND, PRODUCE, DELEGATE (move); APPLY, DERIVE, UPDATE (transform); ACCEPT, SUGGEST (permit); HAVE (bind); ASSERT_NOT, INVARIANT (obligate keywords). Adjectives +3 (36 → 39): ONLY, AT_LEAST, EXACTLY (quantity — the cardinality/exclusivity family; AT_LEAST fills the >= gap where only strict-> EXCEEDS existed). leading_keyword_directive grammar in TRUGS_LANGUAGE/SPEC_grammar.md — ASSERT / ASSERT_NOT / INVARIANT may head a sentence (keyword before subject). INVARIANT is the first-class temporal-universality keyword subsuming the legacy ASSERT … ACROSS ALL TIME idiom. 10 capacity-preserving swaps (no vocabulary added — these drift forms are retired in favor of an existing word, confirmed capacity-preserving by #1998): CONTAIN→CONTAINS, EXIST→EXISTS, EQUAL→EQUALS, BEFORE→PRECEDES, ASK→REQUEST, UNRESOLVED→PENDING, SUPERSEDED→SUPERSEDES, ONE→1 (integer literal), FOR→'for (sugar), AT→'at (sugar). TRUGS_LANGUAGE/language.trug.json — regenerated from the spec by tools/build_language_trug.py (22 new BASE_WORD nodes; total nodes 267 → 289; meta.word_count 211 → 233). tools/test_build_language_trug.py constants updated; all 7 generator tests pass. Deferred to EPIC #1976 Phase 5 (parser update) The leading_keyword_directive production is spec-only here; the v1 reference parser does not yet implement it. Parser support + the corpus migration retiring the ACROSS ALL TIME idiom land in Phase 5. 2 of the 12 #2018 swaps — ACROSS→INVARIANT and TIME→INVARIANT — are deferred: #1998 flagged them capacity-NOT-confirmed because dropping the ACROSS ALL TIME idiom requires the parser to parse INVARIANT as a leading directive first. Until Phase 5, the idiom remains supported. Added — TRUGS 2.0 (selective loading foundation) LEVEL_PREFIX part of speech — 21 SI prefixes added to TRL vocabulary (vocabulary grows 190 → 211 words across 9 parts of speech). New section in TRUGS_LANGUAGE/SPEC_vocabulary.md §9 Level Prefixes. Prefixes: YOTTA, ZETTA, EXA, PETA, TERA, GIGA, MEGA, KILO, HECTO, DEKA (macro · zoom out); BASE (default · ground zero); DECI, CENTI, MILLI, MICRO, NANO, PICO, FEMTO, ATTO, ZEPTO, YOCTO (micro · zoom in). level_directive BNF rule — bare metric_level token (e.g. DECI_STATEMENT) on its own line marks a hierarchy transition for an LLM consumer reading TRL source. Compiles to nothing; no node, no edge. Validator does not enforce directives — they are an LLM-comprehension affordance, not a correctness gate. See TRUGS_LANGUAGE/SPEC_grammar.md §level_directive. metric_level value position — _ may appear in the value position of an object_phrase, e.g. ... AT BASE_FUNCTION. Compiles to a metric_level property on the affected node (existing metric_level property semantics from CORE Rule 9 — no change). TRUGS_LANGUAGE/SPEC_examples.md — examples 29–30 demonstrate the directive form and the value form. TRUGS_LANGUAGE/language.trug.json — 21 new word nodes (w-yotta … w-yocto), 1 new top-level category (level_prefixes), 3 sub-category nodes (macro · default · micro). Total nodes: 246 → 267. Added — Dark Code (under TRUGS 1.x line) REFERENCE/ folder — canonical library for TRUGS papers, standards, and cross-cutting material REFERENCE/README.md — index REFERENCE/PAPER_dark_code.md — WHY paper, moved from TRUGS-LLC/TRUGS-AGENT; TRL→TRUG/L rename applied REFERENCE/PAPER_how_to_code_with_trugs.md — HOW paper, practitioner guide (new) REFERENCE/STANDARD_dark_code_compliance.md — CHECK, the auditable compliance standard (new) tools/compliance_check.py — trugs-compliance-check CLI — mechanical C1–C7 verifier per STANDARD tools/test_compliance_check.py — 23 unit tests covering C1, C3, C4, C5 + metrics + CLI pyproject.toml entrypoint: trugs-compliance-check .github/compliance-baseline.json — initial baseline (26.72%) recorded Changed folder.trug.json — new nodes for REFERENCE/ children and tools_compliance_check, plus 4 edges TRUGS_LANGUAGE/SPEC_vocabulary.md, SPEC_grammar.md, SPEC_examples.md, language.trug.json — version bumped 1.0.1 → 2.0.0 to reflect LEVEL_PREFIX vocabulary extension. Context Implements TRUGS-DEVELOPMENT#1719 — selective-loading foundation. Macro-to-micro hierarchy markers in TRL allow an LLM to consume a large TRUG selectively (top-down by level) without loading the whole graph upfront. The TRUG itself remains the source of truth; the directives are LLM affordance. Implements TRUGS-LLC/TRUGS#48 (foundation) for Xepayac/TRUGS-DEVELOPMENT#1548 EPIC — bring TRUGS-LLC public portfolio to Dark Code compliance. Convention: TRUG/L (not "TRL") in all prose going forward. Migration This is the first release on the TRUGS 2.0 line. trugs 1.2.x and 1.0.x remain on PyPI for now and will be yanked at the end of the 6-week migration window for #1719. Any consumer outside the TRUGS-LLC portfolio should pin to trugs>=2.0.0. There are no breaking changes to existing CORE rules — only additive vocabulary and grammar.