Lat source
Caller-provided in-memory source bytes, not file I/O.
Declaration and Representation
The language lane turns bounded declarations into validated metadata and deterministic reports. It does not execute declarations or grant authority.
Pipeline Boundary
The current Lat pipeline composes grammar parsing, semantic validation, Lat-to-LIR lowering, and pipeline reporting while preserving no-effect flags and source-span metadata.
Caller-provided in-memory source bytes, not file I/O.
Grammar checks, stable errors, bounded summaries, and source spans.
Deterministic validation before lowering metadata.
Bounded module, node, edge, and metadata shape.
Status labels, counts, no-effect flags, and source-span metadata.
Layer Roles
Lat, LIR, and L-UI are related, but they are not interchangeable. Each layer carries a narrow current responsibility.
Lat records contract-like source intent for modules, states, policies, transitions, assertions, and effect declarations.
LIR carries graph-shaped representation metadata. It is not an execution engine or runtime authority surface.
L-UI parses preview-card declarations and report surfaces before any interactive terminal-control behavior exists.
No-Effect Contract
A successful language check should still report that execution, mutation, server, recovery, and hardware authority are unavailable.
no_effect=1, execution_allowed=0, mutation_allowed=0
server_allowed=0, recovery_allowed=0, hardware_allowed=0
Stable labels such as parse_not_ok, semantic_not_valid, lowering_not_ok, and no_effect_violation.
Reports
The report surfaces are intentionally small and deterministic so they can be used as evidence records, not as runtime promises.
Summarizes status, error labels, module name, source length, declaration counts, LIR counts, no-effect flags, and spans.
Represents source kind, module/card names, node and edge counts, bindings, text records, and authority flags.
Reports the accepted preview card, rails, fields, effect=none, boundary=preview_only, and span fields.
Keep line, column, and span metadata available for rejected input without widening behavior.
Local Checks
These commands are no-effect validation paths from the repository root.
sh scripts/test-lat-pipeline.sh
sh scripts/test-lat-specific-lir-refinement.sh
sh scripts/test-l-ui-parser.sh
sh scripts/test-l-ui-parser-source-span.sh
sh scripts/test-l-ui-rendering.sh
sh scripts/test-l-ui-rendering-detailed-report-refinement.sh
Source Records
Use these records when you need the authoritative boundary instead of this overview.