Project Model¶
truST project tree, config-file ownership, and build/run lifecycle.
This specification owns the truST project tree, config-file roles, and the build/run lifecycle that turns source files into a runnable project.
1. Canonical Files¶
project/
src/
trust-lsp.toml
runtime.toml
io.toml
simulation.toml
hmi/
program.tpi
deployment-record.bin
2. File Ownership¶
| Path | Owns |
|---|---|
src/ |
project-owned Structured Text sources |
trust-lsp.toml |
editor/LSP config, dependencies, vendor profile |
runtime.toml |
execution, control, discovery, mesh, runtime-cloud policy |
io.toml |
driver selection and safe-state I/O behavior |
simulation.toml |
deterministic virtual coupling and fault injection |
hmi/ |
HMI pages and screen layout, specified in docs/specs/39-hmi-builder.md |
program.tpi |
the program image this computer runs, written by trust-runtime build (specification 44 §4.1, NX-15) |
deployment-record.bin |
the program image's deployment record (specification 34 §5.1.1) |
3. Separation of Concerns¶
trust-lsp.tomldefines authoring and semantic context; its[project] vendor_profilealso selects the conversion rules with which every tool that runs the project executes it (trust-runtime build/check/run,trust-dev test, debug sessions,trust-harness --project; seedocs/specs/07-standard-functions.mdsection 2.10)runtime.tomldefines execution and exposed control surfacesio.tomldefines physical or simulated I/O backendssimulation.tomldefines deterministic plant simulation behaviorhmi/defines operator-facing presentation
3.1 Simulation coupling thresholds¶
For file-backed simulation.toml, each optional
[[couplings]].threshold must be finite. The loader rejects NaN and positive
or negative infinity before returning a configuration; it does not normalize,
clamp, or substitute a value. This requirement covers TOML loading only and
does not define programmatic SignalCouplingRule construction or source-value
admission.
4. Lifecycle¶
- Author/edit source files in
src/ - Build to
program.tpiwithtrust-runtime build - Validate configuration and bundle contents
- Run or reload the runtime
- Drive HMI, tests, harness scenarios, or agent workflows against the same project
5. Related Specs¶
44-native-execution.mdforprogram.tpi20-agent-api-v1.mdfor runtime agent orchestration21-harness-protocol.mdfor deterministic harness execution