Files
Zsolt Dollenstein fbfc000904 [ty] Add runtime threat models for Ruff and ty (#28523)
## Summary

The repository threat model in #28395 covers CI and release automation.
Ruff and ty also need security guidance for their command-line tools,
libraries, language servers, and browser playgrounds.

Add three models that define trusted inputs, security invariants, and
severity for these components, including the public playground sharing
API. An index linked from `AGENTS.md` points reviewers to the applicable
models.

Depends on #28395.

## Test Plan

Reviewed the trust assumptions and execution paths against the CLI,
language-server, and playground code.
2026-09-15 17:42:18 +01:00

693 B

Security threat models

Use each model that covers the behavior under review.

  • Ruff and ty CLI: command-line tools, native libraries, analysis, configuration, file operations, subprocesses, and diagnostics.
  • Language servers: editor messages, workspace trust, document access, edits, and logs.
  • Playgrounds: browser applications, WASM, Python execution, and the HTTP sharing API.
  • GitHub repository: CI, releases, publishing, ecosystem jobs, and maintainer automation.

Development tools that build or run third-party code follow the repository model.