Execution & gates¶
These tools run the validations. Tramalia orchestrates them via mise (the runner) and captures their raw output in the evidence pack.
What is bootstrap?
The first three (mise, git, uv) are marked as bootstrap: they're the base you install by hand first, because they can't install themselves (mise can't install itself; git and uv are prerequisites). Once present, mise install brings everything else. See Glossary.
Recommended way
Almost all are installed via mise (mise use …): they stay declared in mise.toml and mise upgrade maintains them. The direct way is the alternative.
mise — the runner (bootstrap)¶
- What it is / scope: tool version manager + environment variables + task/gate runner. It's the one that installs and runs almost everything else.
- Requires: nothing (single binary, Rust).
- Install (bootstrap — mise can't install itself):
- Linux/macOS:
curl https://mise.run | sh - Windows:
winget install jdx.mise - Tramalia uses it in:
gates,close(→mise run gates),doctor/update(mise install/mise upgrade). - Interacts with: practically all — it installs them (
mise use npm:…,pipx:…,aqua:…) and runs them.
git — versioning (bootstrap)¶
- What it is / scope: version control; the base of all versioned memory, skills and evidence.
- Requires: nothing.
- Install:
winget install Git.Git·brew install git·apt install git(git-scm.com). - Tramalia uses it in:
skills(clone/pull),evidence(readsgit diff). - Interacts with: the whole repo — it's the "source of truth" that Tramalia governs.
uv — Python tools installer (bootstrap)¶
- What it is / scope: ultra-fast installer/runner of Python packages and tools (copier, Serena, Spec Kit).
- Requires: nothing (binary, Rust).
- Install:
- Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh - Windows:
winget install astral-sh.uv - Tramalia uses it in: indirectly (Serena via
uvx, copier/Spec Kit viauv tool).
Semgrep — security gate (SAST)¶
- What it is / scope: static analysis to find vulnerabilities and bad practices.
- Requires: Python.
- Install:
mise use pipx:semgrep· direct:pipx install semgrep. - Tramalia uses it in: the
securitygate (insidegates/close). - Interacts with: the rules in
docs/ai/04-reglas-seguridad.md; its raw output goes to the evidence pack.
Gitleaks — security gate (secrets)¶
- What it is / scope: detects leaked secrets/credentials in the repo.
- Requires: nothing (binary, Go).
- Install:
mise use aqua:gitleaks· direct:brew install gitleaksor a release binary. - Tramalia uses it in: the
securitygate.
SQLFluff — database gate¶
- What it is / scope: SQL linter and formatter.
- Requires: Python.
- Install:
mise use pipx:sqlfluff· direct:pipx install sqlfluff. - Tramalia uses it in: the
databasegate (if SQL/migrations are detected); rules indocs/ai/03. - Dialect: the gate runs
sqlfluff lint .without a flag; the dialect lives in a.sqlfluffthatinitgenerates from the detected engine (Postgres →postgres, SQL Server →tsql, Databricks →databricks). A dialect can't be guessed from*.sqlby eye: SQL Server is detected via theSqlClientdriver in your.csproj. - Multi-engine (e.g. Postgres + SQL Server in the same repo): SQLFluff uses one dialect per config, so the root
.sqlflufftakes the primary and comments how to give the secondary its grammar — create a.sqlfluffwithdialect = <other>inside that SQL's folder (SQLFluff uses the nearest.sqlfluffto each file).
Lighthouse CI · Playwright · axe · pa11y · Storybook — UX/UI gate¶
They only apply if there's a frontend. All require Node (tramalia doctor flags it as "requires Node").
| Tool | Install | Role in the ux gate |
|---|---|---|
| Lighthouse CI | mise use npm:@lhci/cli · npm i -g @lhci/cli (requires Chrome) | performance + a11y + best practices |
| Playwright | mise use npm:playwright · npm i -D @playwright/test + npx playwright install | visual regression + e2e |
| axe-core | npm i -D @axe-core/cli (or inside Playwright) | accessibility |
| pa11y | npm i -g pa11y (requires Chromium) | accessibility |
| Storybook | npx storybook@latest init (in the project) | component states |
- Tramalia uses them in: the
uxgate (viamise run ux); rules indocs/ai/11-reglas-ux-ui.md. - Interact with: the detected frontend code; their raw output goes to the evidence pack.
Gate matrix per stack¶
tramalia detect identifies the stack and init generates the build/test/lint gates in mise.toml with each one's native command. It's additive: an Angular + .NET monorepo emits both builds in the same gate.
| Stack | Detected signal | build | test | lint |
|---|---|---|---|---|
| Angular | angular.json | ng build | ng test --watch=false | ng lint |
| Node / React / Next / Vue / Svelte / Nest | package.json (+ next.config.*, nest-cli.json…) | npm run build | npm test | npm run lint |
| .NET | *.sln / *.csproj | dotnet build | dotnet test | — |
| Java (Maven) | pom.xml | mvn -B compile | mvn -B test | — |
| Java (Gradle) | build.gradle | gradle build -x test | gradle test | — |
| Go | go.mod | go build ./... | go test ./... | — |
| Rust | Cargo.toml | cargo build | cargo test | — |
| Python | pyproject.toml / requirements.txt | — | pytest | ruff check |
Cross-cutting gates (security, database, ux, bundle) are enabled by feature, not by language — see above and Analytics. tramalia doctor tells you which toolchain is missing for your stack (Go, Rust, Maven/Gradle, .NET, Node included). The commands are starting points: edit mise.toml if your project uses different scripts.