You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tri tma check|deploy: size budget gate and atomic Mini App deploy #13345
Add a tri tma subcommand family as a spec. The size budgets come from the TRI CLAW TMA layout law (t27os, specs/os/bots/tri_claw_tma_layout.t27, landing in parallel): 1.5 MB raw and 450 KB brotli for the wasm.
Boundary
specs/tri/commands/tma.t27
User Scenarios
Given a Mini App dist directory, when a developer runs tri tma check <dist>, then it exits non-zero if the wasm is over budget.
Given a dist and a host:dir, when a developer runs tri tma deploy <dist> <host:dir>, then top-level files are uploaded, unchanged assets are hardlinked (cp -al), the dist dir is swapped atomically and dist.prev is kept for rollback.
Requirements
FR-001: tri tma check MUST read the budgets from the layout law and fail when raw or brotli size is over budget.
FR-002: tri tma deploy MUST swap the dist directory atomically and MUST keep dist.prev for rollback.
FR-003: The spec MUST carry test blocks, including a negative control for an over-budget dist.
Success Criteria
specs/tri/commands/tma.t27 has at least 3 passing tests, with 0 failing.
Activity
gHashTag commentedon Nov 17, 2026
Spec created: specs/tri/tma.t27 (typecheck OK, 2 tests pass).