Platform

Budgets, Limits & Telemetry

Transparent response envelopes, verification tiers, static-analysis boundaries, and local JSONL logging.

Every Strata tool returns a consistent response structure so AI agents know not just what was found, but how it was verified and what might have been skipped.

Verification Tiers & Omissions

Each tool response reports:

  • scope: The workspace root, package, or file that was analyzed.
  • verification:
    • semantic — backed by both the SQLite index and TypeScript's Language Service / TypeChecker.
    • graph — backed by the SQLite index without running TypeScript type expansion.
    • syntax-fallback — syntax-level fallback used when TypeScript type resolution could not complete.
  • omissions: Places static analysis cannot resolve automatically (such as DYNAMIC_SPREAD for v-bind="obj" or {...props}), returned with exact file/line sourceRef handles for manual review.
  • diagnostics: Warnings such as CONTRACT_TYPES_UNRESOLVED, DYNAMIC_HTTP_METHOD, COMPONENT_TREE_TRUNCATED, or SLICE_TRUNCATED.

Response Budgets & Pagination

  • Default response budget (max_bytes: 16384): Prevents a single tool call from flooding the agent's context window. If a response is too large, Strata returns BUDGET_RESPONSE_TOO_LARGE with a suggested retryMaxBytes and narrowing hints (limit, sections, package, or max_lines).
  • Text mode by default (format: "text"): Compact, readable output that omits duplicate structuredContent in MCP stdio responses to save tokens. Pass format: "json" when structured JSON is needed.

Local Tool Telemetry (strata stats)

When .strata/ exists in a workspace, Strata records one JSON Lines entry per MCP tool call to .strata/strata.log (never sent externally, rotated at 2 MiB with one .1 backup):

  • Tracks timestamp, tool name, mode, status, execution duration (duration_ms), output bytes, estimated tokens, and bloat_alert when a response exceeds 16 KiB.
  • Sensitive strings like raw code/patterns are summarized by byte count rather than logged verbatim; output previews are disabled by default (STRATA_LOG_PREVIEW=1 to opt in).

Inspect local telemetry anytime with:

strata stats .
strata stats . --json