Files
tricu/demos/viewContracts/modules
James Eversole fdebb6c13d Tricu 2.0.0
Sorry for squashing all of this but 🤷
2026-05-25 12:44:24 -05:00
..
2026-05-25 12:44:24 -05:00
2026-05-25 12:44:24 -05:00
2026-05-25 12:44:24 -05:00
2026-05-25 12:44:24 -05:00
2026-05-25 12:44:24 -05:00

Module View Contract demo

This demo shows producer-checked module export Views flowing into a consumer check as trusted View Contract evidence.

tricu check demos/viewContracts/modules/success.tri
# ok

tricu check demos/viewContracts/modules/failure.tri
# symbol 3 (Util.toString application result) expected Bool but got String

util.tri is a local workspace module. During auto-build, its annotated exports are checked before the module manifest alias is published. The consumer then uses the manifest's View Contract metadata and View Tree export artifacts as module-boundary assumptions; compatibility is still judged by lib/view.tri.