Skip to content

tri tma check|deploy: size budget gate and atomic Mini App deploy #13345

Closed

Description

@gHashTag

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.
  • git diff --stat origin/master shows 0 hand-written non-t27 files.

Activity

  1. gHashTag commented on Nov 17, 2026

    @gHashTag
    CollaboratorAuthor

    Spec created: specs/tri/tma.t27 (typecheck OK, 2 tests pass).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions