Skip to content

Latest commit

 

History

History
590 lines (505 loc) · 30.8 KB

AGENTS.md

File metadata and controls

590 lines (505 loc) · 30.8 KB

Arx Contributor Guide

This file is the shared operating manual for AI contributors working in the Arx monorepo. It applies to compiler, library, runtime, documentation, test, CI, and release changes unless a more specific instruction file overrides it.

Reusable Agent Skills

Task workflows and detailed coding/architecture guidance live in .agents/skills/<skill-name>/SKILL.md. Select relevant skills for Python/C++, Douki, compiler, Arrow/native work, testing, PR review and planning. In particular, apply minimal-change to implementation and implementation-planning to plans: keep diffs necessary and coherent, reuse existing tests/docs, add no unrequested benchmarks, and normally timebox plans to one working week. These skills supplement—not override—the repository contracts below.

Core Objectives

  1. Keep changes scoped; apply the pre-2.0 compatibility policy below.
  2. Respect package ownership and keep cross-package contracts aligned.
  3. Keep Python support aligned with requires-python in the package manifests and the tested versions in .github/workflows/main.yaml.
  4. Make minimal, targeted changes with focused tests, source contracts; and ONLY necessary guide, architecture, or safety documentation, just if really necessary.
  5. Report evidence honestly; never invent commands, results, spans, or support.

Milestone Implementation Workflow

Apply this approach to every implementation:

  • Be objective and concise. Read the current plan and local implementation, identify the requested milestone's scope and acceptance criteria, and deliver the smallest complete, correct change that satisfies them.
  • Prioritize rapid delivery, especially when many milestones must fit a short timeline. Reuse existing code and extension points; avoid speculative infrastructure, unrelated refactors, formatting churn, and future-milestone work.
  • Do not add or change documentation, tests, or benchmarks by default. Do so only when directly relevant and necessary for the changed contract, correctness, safety, or milestone acceptance. Reuse existing coverage before adding tests; defer benchmarking unless the requested scope requires it. Preserve required source contracts and docstrings.
  • Run the smallest relevant existing checks first. Broaden verification when affected boundaries require it; do not turn a focused implementation into an unrelated documentation, testing, or tooling project.
  • Gain speed by limiting scope, not by weakening validation, ownership, cleanup, diagnostics, or required CI gates. Report changes, executed checks, and remaining blockers briefly; distinguish completed work from deferred work.

Compatibility Before Arx 2.0

  • Backward compatibility is not a requirement before Arx 2.0. Prefer the clearest, most robust API and architecture for the requested feature, even when that means changing or removing existing APIs, syntax, or import paths.
  • Do not add compatibility aliases, shims, deprecated entry points, or deprecation periods solely to preserve old usage unless explicitly requested. Do not retain an inferior design just to avoid a breaking change.
  • Update affected callers, tests, examples, source contracts, and necessary guides together in the same PR. Record intentional breaking changes in concise release notes, not parallel deprecated API documentation; historical usage does not need a parallel supported implementation.
  • This policy does not authorize unrelated changes or weaken correctness, data integrity, ownership, diagnostics, or validation. Preserve behavior outside the requested scope and keep all components of the current release consistent, including native ABI producers and consumers.
  • Revisit and explicitly define the compatibility policy when Arx reaches 2.0; do not assume this pre-2.0 exemption continues afterward.

Arx API And Syntax Design

Arx should be approachable and easy to use. Python and its widely used library APIs are primary usability references, not compatibility specifications. We do not aim to recreate Python or make Arx identical to it.

  • When designing or extending syntax, a feature, builtin, library, class, function, or method, first consider how the equivalent task is expressed in Python. Examine relevant builtins, the standard library, and established Python ecosystem libraries, not just core Python syntax.
  • Prefer familiar names, call shapes, conventions, and workflows when they fit Arx. Evaluate the user-facing experience before settling on the internal implementation; do not expose low-level runtime plumbing as the only way to perform a common task.
  • Repair a failing language feature with an established equivalent in Python or another widely used language. Preserve support for its syntax and add end-to-end regression coverage that proves the intended behavior.
  • Choose API placement by semantic generality, frequency of use, and natural ownership. Keep builtin scope small and focused on core, broadly applicable operations such as cast, print, and len; justify each new builtin. Put shared algorithms in focused, explicitly imported stdlib modules, such as numeric reductions in stdlib.math. Prefer methods for common operations specific to a value's type, such as DataFrame transformations or text editing.
  • Share generic behavior through typed capabilities and adapters rather than requiring artificial inheritance from a common base object. A builtin may delegate type-specific behavior to a focused dunder-style protocol. Resolve hook identity and type/ownership contracts in semantic analysis; preserve checked conversions, failure propagation, and native execution guarantees. Implement a protocol only for a concrete operation that needs it, not as a speculative universal framework. A dunder spelling alone does not establish support; label proposed hooks as unimplemented until verified end to end.
  • Prefer one canonical public call shape for the same contract. Generic functions and specialized methods may coexist when their contracts or workflows meaningfully differ, not as synonymous wrappers. A builtin plus its implementation hook is a protocol, not a redundant public entry point. Do not force every operation into a method or migrate unrelated APIs merely to make their appearance uniform.
  • Propose the public API with a short common-case and advanced example in the PR description or executable tests. Keep defaults, return meaning, supported options, validation, errors, and relevant ownership next to code. Explain intentional differences from the Python reference without duplicating the contract across guides. Clearly label proposed syntax as unimplemented.
  • Make common operations simple: minimize required arguments and boilerplate, use sensible and safe defaults, and keep naming and behavior consistent across related APIs. Convenience must not conceal surprising data loss, resource use, or lifecycle requirements.
  • Provide the meaningful parameterization needed for the supported workflows, rather than hardcoding policy or exposing only a minimally usable interface. Prefer clear named parameters; group related advanced settings in focused, typed options when that keeps calls simpler. Avoid redundant entry points, ambiguous flags, and speculative knobs without a concrete use case.
  • Keep the API robust: validate options and their combinations, reject unsupported behavior explicitly, and provide actionable errors. Document restrictions instead of silently ignoring parameters or changing semantics.
  • Adapt rather than copy. Preserve Arx's type system, ownership guarantees, native execution model, package boundaries, and behavior outside the requested scope. Explain deviations that improve safety, clarity, or consistency. Familiarity alone does not justify unsafe coercions or unnecessary language complexity.
  • Borrowing an API design does not require importing its Python implementation, adding a dependency, or promising full feature parity. Keep implementation scope focused while making the supported interface coherent and useful.

Documentation Scope

Keep handwritten documentation small. Document getting started, short common workflows, architecture and ownership boundaries, intentional restrictions, migration decisions, and behavior whose omission could cause data loss or resource misuse. Do not create or maintain handwritten API catalogs, copied signatures, exhaustive method lists, or duplicated parameter/default tables.

Keep concise public contracts next to code: types, defaults, return meaning, supported options, validation, relevant ownership, and failure behavior. Follow existing Douki conventions; do not weaken required docstrings or runtime type checking. A user-facing API change requires tests and a concise code contract, not an additional API reference page. Update a short guide or example only when the workflow or important operational contract changes.

Do not add a document per feature or fix. Prefer updating the existing contract or guide over creating another page. Unless explicitly requested, keep investigation diaries and test-result catalogs out of the repository; report validation in the PR or CI output. Preserve required source docstrings.

Existing generated reference output stays generated. Do not hand-edit it. Keep the native DoukiMD API sources in doukimd.yaml working. API references come from source docstrings and signatures; do not add an intermediate Markdown generator or handwritten API catalogs. Keep theme overrides in docs/theme/.

Keep one compact capability/status page describing support boundaries, not every method. Preserve essential explanations of null semantics, aliasing, mutation, atomic publication, durability, error recovery, native dependencies, and unsupported behavior in code/tests or one appropriate guide before removing duplicated reference material.

Keep volatile support facts, such as Python version ranges, in executable configuration. Link to package manifests and CI rather than copying their values into guides or docstrings. Retain version-specific explanations only when needed to explain behavior, restrictions, or historical changes.

Working With Repository State

  • Inspect the local workspace, requested branch or commit, working tree, code, tests, manifests, CI, and review context before drawing conclusions.
  • For reviews, use the requested change as the subject, then verify it against the local implementation, tests, configuration, and documented contracts. Use issues and prose documentation as supporting context, not as a substitute for executable evidence.
  • Clearly distinguish current behavior from proposed or partially implemented behavior. Lexical reservation and AST modeling do not prove end-to-end language support.
  • Refresh dated facts from the repository. Do not preserve stale package, version, CI, or support claims merely because they appear in prose.
  • Do not mutate GitHub, publish artifacts, or perform other remote side effects unless the user explicitly requests them.

Repository And Architecture

The root project is the development metaproject for six Python packages:

  • packages/arx/ (arxlang): Arx surface syntax, source/package discovery, lexer, parser, CLI, stdlib, examples, and compiled-language tests. It emits ASTx and supplies parsed modules to IRx.
  • packages/astx/ (astx): language-agnostic AST nodes and types. Adding a node does not imply semantic-analysis or backend support.
  • packages/irx/ (pyirx): semantic analysis and metadata, diagnostics, LLVM lowering, native runtime features, linking, and Python-side Arrow interoperability.
  • packages/arxpy/ (arxpy): the Python API layer for the Arx stack and a foundational integration package.
  • packages/arxjit/ (arxjit): a developing Numba-style Python frontend. Native dispatch is not complete; @jit currently executes Python fallback.
  • packages/aix/ (airx): a toy symbolic-language experiment, not the design authority for Arx.

The main compiler pipeline is:

.x source -> Arx lexer/parser -> ASTx -> IRx semantic sidecars
          -> IRx LLVM lowering -> registered native features -> link/run

Important root locations:

  • examples/: executable Arx examples
  • docs/: DoukiMD documentation
  • scripts/: build, documentation, release, and maintenance tooling
  • .makim.yaml: canonical local task definitions
  • .github/workflows/main.yaml: CI behavior
  • .releaserc.json: lockstep release and version-replacement wiring

Package Ownership Boundaries

Arx, ASTx, And IRx

  • Arx owns source syntax, lexing, parsing, module discovery, CLI flow, and frontend-specific diagnostics. It constructs existing astx nodes directly.
  • ASTx owns reusable node and type modeling. Do not create Arx-owned AST or ASTx node classes.
  • IRx owns program meaning and validity in irx.analysis, plus general lowering and native code generation. Lowering must consume node.semantic and the CompilationSession; it must not rediscover symbols, types, conversions, imports, class rules, or other semantic facts.
  • Hosts provide ParsedModule and ImportResolver. IRx must not find or parse source files itself.
  • When a feature needs a reusable node, add it to ASTx and coordinate frontend emission, IRx semantics, lowering, exports, source contracts, and tests, plus necessary guide or architecture changes. When a needed semantic or lowering hook is absent, implement it in IRx rather than adding a frontend workaround.
  • packages/arx/src/arx/codegen.py is an Arx integration adapter over IRx. Keep it small and prefer shrinking it; do not add general feature lowering there.
  • Never silently omit input or emit a generic node that merely fails in a later phase. Reject unsupported input at the earliest responsible boundary with an actionable diagnostic.

Arrow-First Runtime And Pure-Arx Libraries

  • Arx is a general-purpose, LLVM-compiled language with data-intensive computing at its core: Arrow-first, not Arrow-exclusive. Prefer Arrow Scalar, Datum, storage, compute, memory and interchange where they implement approved Arx semantics. Unsupported contracts may use reviewed LLVM, native or pure-Arx implementations; Arrow is not the language's capability ceiling.
  • Primitive LLVM register/stack transport is allowed; persistent scalar boxing is not mandatory. Do not select a different mathematical implementation just because an operand is scalar. Measure boxing and Arrow-resident chains before choosing a representation or enabling a conformant fast path.
  • The migration target is one exact Arrow 26 release, initially 26.0.1, shared by PyArrow and arx-arrowcpp-sources. The currently deployed versions remain those in the IRx manifest and root lockfile until the matching artifact is available and qualified. Upgrade source headers, libraries, native cache inputs and pins together, using root poetry lock; never invent a published bundle or leave mismatched manifests/lockfiles. Reject version/ABI mismatch; do not add a multiple-Arrow-major compatibility framework. Historical benchmark runs do not establish support for additional runtime versions.
  • Preserve the current interpreter/Ubuntu CI stack and C++20 toolchain unless a verified dependency or correctness requirement justifies a minimal change. Keep support facts in manifests, CI and the compact support matrix.
  • Resolve imported callable identity, argument types/shapes, conversions, typed options, null/overflow/error policy, ownership and native requirements in irx.analysis. Lowering consumes closed semantic plans. Reuse a typed operation catalog and shared registered Arrow C++ dispatcher; adding another supported kernel should not require another handwritten C++ wrapper. Never expose arbitrary kernel strings or embed Arrow C++ layouts in LLVM.
  • Independently installed libraries containing only .x and declarative metadata must be able to consume supported Arrow operations through typed Arx modules, without author-written C/C++ shims, native build hooks or raw-pointer plumbing. External native kernel producers still need explicit, trusted registration. C Data/C Stream exchanges data, not arbitrary C++ function calls; automatic foreign bindings and Arx UDF exports are separate work.
  • Put mathematical functions in imported stdlib.math, starting with the proposed sqrt(f64) / sqrt(series[f64]). Keep unimplemented APIs labeled. Require IEEE NaN/infinity/signed-zero behavior and operation-specific floating ULP/relative/absolute bounds, plus exact integer, Boolean, validity and error semantics. Preserve registered features, typed statuses, success-only output reads and explicit lifetime/cleanup contracts.

Before declaring the first public compute slice complete, prove:

  • a separately installed .x-only package calls scalar and Series sqrt;
  • a second approved typed kernel uses the same dispatcher without new C++ glue;
  • aliases, shadowing, unsupported types/options, errors and escaped owners work through the installed package graph, using current name-first syntax, two-space indentation and valid Douki module docstrings;
  • semantic, compiled-language, native ABI/sanitizer and clean installed-wheel tests pass on the declared single-version build. Existing arithmetic/package tests alone do not establish that the proposed math API is implemented.

Long-Term Direction

Python is the current implementation language. Keep typed Python APIs and stable ABI/IR boundaries migration-friendly, but do not begin speculative self-hosting or rewrites. Arx self-hosting is only a long-term option after a stable Arx-to-LLVM binding exists.

Cross-Package Implementation Standards

  • Use strict type annotations for every argument and return. Minimize Any and test invalid runtime inputs.
  • ASTx and IRx runtime-checked code must use the owning package wrapper (astx.tools.typing.typechecked or irx.typecheck.typechecked), not an ad hoc Typeguard import. Runtime validation must cover arguments and collection items. Follow the established package convention elsewhere.
  • Do not encode API privacy with leading-underscore names in new code. In packages using atpublic, use @private and @public from public; do not expand existing naming debt.
  • Use Plum multiple dispatch for behavior that varies by type, especially visitors. Overload one method name such as visit; do not create per-type names. Keep a typed, fail-closed fallback.
  • Use structured, phase-appropriate diagnostics and exceptions. Do not raise a generic Exception, invent source locations, or attach spans that cannot be trusted.
  • Prefer guard clauses and early returns over deeply nested control flow.
  • Apply SOLID principles where they improve clarity, testability, or change safety. Avoid unrelated refactors and formatting churn.
  • Comment non-obvious intent and constraints, not code that is already clear.
  • Python uses four-space indentation. Ruff uses a 79-character line length and double-quoted formatting. Mypy is strict.
  • Python docstrings use Douki-style content blocks. Keep them present and synchronized for new or updated public symbols; douki sync must remain idempotent.

Arx Frontend Contract

Key Locations

  • packages/arx/src/arx/io.py: shared source buffer and standard file/string entry points
  • packages/arx/src/arx/lexer/: tokens, lexical behavior, and syntax tables
  • packages/arx/src/arx/lexer/syntax.json: canonical lexical manifest for the lexer and editor tooling
  • packages/arx/src/arx/parser/: concern-grouped parser core and mixins
  • packages/arx/src/arx/docstrings.py: Douki YAML validation
  • packages/arx/src/arx/schema/douki.json: Arx docstring schema
  • packages/arx/src/arx/main.py and cli.py: compilation orchestration and CLI
  • packages/arx/src/arx/settings.py and package_index.py: project settings, source roots, and installed-package discovery
  • packages/arx/src/arx/codegen.py: remaining Arx builder/link adapter

Syntax Changes

Arx uses significant two-space indentation. The lexical source of truth is packages/arx/src/arx/lexer/syntax.json. Apply syntax changes in this order:

  1. Update the syntax manifest.
  2. Update token definitions and lexer behavior.
  3. Update the relevant parser module or mixin.
  4. Add lexer, parser, and integration tests.
  5. Update affected executable examples and editor-facing consumers; update a short guide only when workflows or important restrictions change.

Do not infer parser, semantic, or lowering support from a keyword or operator being present in the manifest. Check each downstream stage. Preserve current parser and test behavior unless the task explicitly changes the language.

Use LexerError with a trustworthy source location for lexer failures and ParserException for parser-specific user errors. Do not replace these with generic exceptions.

Arx Docstrings

Arx docstrings are Douki YAML enclosed by triple backticks:

```
title: Example
summary: Optional summary
```

The parser enforces these rules:

  • A module docstring is the first top-level statement and starts at line 1, column 1, without leading spaces.
  • A function docstring, when present, is the first statement in its function block. The parser does not require one in every user function.
  • Class or member docstrings appear in the supported declaration position and use the same valid Douki YAML form.
  • Abstract methods may use a docstring-only body when supported by the parser.
  • The YAML value is a non-empty mapping that satisfies the schema; title is required.
  • Docstrings are currently validated but omitted from AST/IR output.

Every committed .x file, including examples, stdlib files, fixtures, and compiled tests, must begin with a valid module docstring. Added class and method docstrings must also follow the parser-supported Douki placement. Use quadruple Markdown fences when an example needs to contain the triple-backtick syntax.

IRx Semantic, Lowering, And Native Runtime Contract

  • Put meaning, type validity, symbol resolution, conversion rules, imports, and class rules in packages/irx/src/irx/analysis/.
  • Keep analysis and lowering separate. Lowering consumes resolved semantic metadata and fails explicitly when required metadata is absent.
  • Preserve result_stack discipline: push only values that are semantically produced and never assume a value follows a statement-only or terminating branch.
  • Never emit instructions after a terminator. Create merge values such as PHI nodes only when incoming paths fall through and their types are compatible.
  • Generated LLVM must remain valid and parseable with llvm.parse_assembly.
  • Activate native code only through registered runtime features. Do not add implicit compiler/linker dependencies outside the runtime feature registry.
  • Keep Arrow C++ objects behind opaque handles and the irx_arrow_* or irx_rb_* C ABI. Never encode Arrow C++ layouts directly in LLVM IR.
  • Make ownership, lifetime, transfer, status, and output-slot contracts explicit and test them. Read output slots only after a successful status result.
  • Treat Arrow kernels as focused runtime primitives, not as a general-purpose query engine.

Native and Arrow tests should cover relevant null, empty, error, overflow, shape/type mismatch, ownership, and release paths, plus PyArrow interchange when applicable.

ArxJIT Contract

Keep these stages independently testable:

extract -> validate -> resolve_signature -> lower
        -> future compile/bridge/cache
  • @jit still calls the original Python function; do not claim native dispatch is implemented.
  • Preserve source indentation. Parse nested definitions inside a wrapper rather than using dedent.
  • Python AST columns are UTF-8 byte offsets. Convert them to one-based Unicode columns only at the source-location boundary, and omit a location when it cannot be trusted.
  • Validation aggregates violations. Reject unsupported global/closure access and calls to a shadowed intrinsic range.
  • An explicit signature selects scalar types; it does not redefine function shape or arity. Reserved annotations map int, float, and bool to i64, f64, and bool_ without consulting mutable globals.
  • Lower only forms accepted by IRx and prove the boundary with analyze(lower(...)). Range-check contextual literal widths and mangle names reserved by IRx, including main.

Tests, Documentation, And Examples

  • Extend existing tests and fixtures first. Add cases only for distinct current contracts or failure modes not already covered, not one test per PR or bug ID.
  • Put detailed cases at the earliest responsible layer and representative integration tests at changed package boundaries. Do not repeat full matrices across layers; each parameter dimension must address a distinct risk.
  • Reuse verified IR and compilation fixtures rather than rebuilding identical programs for different inputs. Native artifact reuse must respect source, headers, flags, target, compiler, and ABI; isolate execution and mutable state.
  • Retire tests that only preserve intentionally removed pre-2.0 behavior. Consolidate regressions only when the same invariant remains covered or was intentionally removed, never merely because a test is old. Preserve meaningful ownership, cleanup, diagnostics, overflow, and data-integrity coverage.
  • Arx Python tests live in packages/arx/tests/python/; compiled Arx tests live in packages/arx/tests/arx/.
  • ASTx, IRx, ArxPy, ArxJIT, and AIX tests live under their respective packages/<name>/tests/ trees.
  • Parser or syntax changes need lexer/parser coverage and at least one relevant example or compiled-language test; reuse existing coverage where sufficient.
  • Codegen/control-flow changes need a translate-path regression, normally in packages/arx/tests/python/test_codegen_ast_output.py, and a build/run test when behavior depends on linked execution and the toolchain is available.
  • Keep affected examples/*.x, stdlib files, tests, syntax manifests, and source contracts synchronized with supported behavior. Never invent syntax in examples; examples used as support evidence must execute in tests.
  • Follow Documentation Scope: update necessary workflow, architecture, and safety guidance, not API catalogs. A new public symbol does not require a new page or changes to every overview. Leave generated reference output to DoukiMD and the API sources in doukimd.yaml.
  • Public cross-package changes may also require schemas, exports, package manifests, dependency pins, build scripts, and release wiring.

Tooling And Verification

Install the root development environment with:

mamba env create --file conda/dev.yaml
conda activate arx
poetry install

Prefer the smallest relevant checks first:

pytest <target> -q
makim <package>.unittests
makim <package>.typecheck
makim <package>.lint
makim <package>.ci

For expensive test changes, measure setup/compilation and execution separately (for example, pytest --durations=20) and report before/after evidence. Eliminate repeated work before raising timeouts or adding parallelism; do not weaken assertions, skip required cases, or lower coverage gates for a faster green run.

Repository-wide and documentation checks are:

makim all.typecheck
makim all.lint
makim all.ci
makim docs.build

Useful Arx-specific checks include:

makim arx.test-compiled
makim arx.test-smoke
makim arx.check-syntax
pytest -q packages/arx/tests/python/test_codegen_ast_output.py
pytest -q packages/arx/tests/python/test_codegen_file_object.py

.github/workflows/main.yaml defines the tested Python versions, platforms, package suites, Arx language checks, and lint gates. Do not assume a change is portable because it passes on only one Python version. Native build and execution checks may additionally require Clang and a C++ toolchain.

Always report exactly which checks ran, their results, and any environment or toolchain blockers. Do not imply that an unrun check passed.

Configuration And Release Rules

  • Never use heredocs inside YAML files, including GitHub workflows and .makim.yaml. Use plain shell commands or direct Python/xonsh statements.
  • Never edit poetry.lock manually. Change the appropriate pyproject.toml and regenerate the lockfile only with poetry lock from the repository root.
  • Keep package versions and dependency pins synchronized with the lockstep semantic-release configuration. Update .releaserc.json, build/publish scripts, and release assets when adding or renaming a package.
  • Use a Conventional Commit PR title. The project squash-merges PRs and releases the package set in lockstep.
  • When a final answer delivers implementation changes or a plan intended for a PR, end it with PR title: <title>. Suggest one concise Conventional Commit title describing the overall change, not just the latest edit. Omit this line for unrelated questions or responses where no PR is applicable.

PR Review Protocol

Lead with findings ordered by severity. Each finding should state:

  1. the violated contract or defect,
  2. its concrete impact,
  3. supporting evidence,
  4. an exact file and line location where possible.

Review callers and downstream stages, not only the changed function. Probe the relevant edge cases: shadowing, Unicode locations, overflow and null handling, terminators and result stacks, lifetime/ownership/status, unsupported nodes, Python-version differences, docs, CI/release wiring, and stacked-branch assumptions.

Require cross-stage evidence for cross-stage claims. Separate merge blockers from follow-up improvements. If no findings remain, say so and list unverified risks or checks rather than inventing confidence.

Delivery Checklist

Before finalizing a change, verify as applicable:

  • behavior changes have focused, non-duplicative coverage; expensive test additions justify their runtime and obsolete cases are removed or updated
  • new public APIs consider Python ecosystem ergonomics, with common/advanced examples in the PR or tests and concise accurate contracts next to code
  • intentional breaking changes update affected callers and necessary guides together, with concise release notes and no unnecessary pre-2.0 compatibility layers
  • frontend, ASTx, semantics, lowering, runtime, and exports remain aligned
  • syntax changes update manifest, lexer, parser, tests, affected executable examples, editor consumers, and necessary workflow/restriction guidance
  • touched code passes relevant Ruff, mypy, Douki, and unit checks
  • generated LLVM and native boundaries are validated where affected
  • necessary guide/architecture/safety changes are synchronized; source contracts are accurate; handwritten API duplication has not increased; examples used as support evidence execute in tests
  • schemas, manifests, dependency pins, and release wiring are current
  • no unrelated refactor, formatting churn, generic error, or silent fallback
  • the final report lists executed checks and remaining blockers