This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.

Orient and choose the right layer

1.
Identify the app, its root app.contract, app.json, data module, imports, authored tests, and requested target hosts. An external app uses EXACT_APP_DIR with the same Exact build/driver scripts.
2.
Read the nearest working example for the feature. Search contract/corpus/, contract/cli/tests/it/, and the app's sources before designing new syntax.
3.
Decide whether the change belongs in Contract, the app's data module, its optional native/GPU module, or the host. Do not extend the compiler to avoid writing an ordinary data-source function.
4.
Check the current branch and dirty files. Preserve other work. Do not commit unrelated staged paths or use git stash in this repository.
Work
Normal home
View structure, UI state, event binding
.contract
Derived labels, record copies, bounded list transforms, a presentation order by one key (sortBy)
Contract expressions / fn
Network, authentication, storage, a stored or locale order, domain algorithms
App TypeScript/Rust data module
Device facts
Reserved source with an admitted shape
A system control (button, list, switch, picker, menu, tabs, bars)
Contract's native form (below); an app native module only where none exists
What only the platform's own object can do (a gesture recognizer, a bar's look, drawing into a view)
An access hatch: hatch="word" on the node, native code handed its view (Exact developer reference); bun exact.mjs hatch <word> writes the stubs
Canvas 2D drawing
Data module's canvas surface
GPU scene or game
Optional GPU/game artifact
App identity, grants/deploy selection, module placement
App manifest and data-module declarations
Windows apps default to ink, or CPU when the manifest declares game; host.windows.painter: "ink" or "cpu" selects either, and EXACT_PAINTER overrides both. Headless drives explicitly use CPU unless overridden, so inspect the desktop capture too. See the Windows painter choices for device selection and the other platforms' defaults.
For the implementation, the relevant authorities are:
Question
Source
Tokens, indentation, escapes
Declarations, statements, elements
Precedence, templates, callbacks
Records, locals, callbacks
Tags, aliases, authored CSS names
Kernel property declarations
Function signatures
format.json, field stdlib, plus compiler intrinsics
Commands and argument checks
Event payloads and arities
Imports and file boundaries
CLI flags and output
cli/main.rs, cli/build.rs, cli/lib.rs (diagnostic JSON)
The design is recorded in LLP 1006, LLP 1017.000 and LLP 1035.005.000. A proposal in a design document is not an implemented grammar production.
Is this helpful
Last updated November 30, 2026
Exact Docs