Threat model evidence map
Final review of
THREAT_MODEL.mdfor P9-01 (2026-11-03). One row per threat (T1-T35,A1-A15): the code that enforces it, the tests that prove it (file and test title) and what is left. This page is checked byscripts/test/threat-evidence.test.ts: every row of the threat model must have a row here, every path must exist and every quoted test title must appear in a test file named in the same row. A rename of a test or a file fails CI until this page follows (L-010, L-483).
How to read it
Section titled “How to read it”| Level | Meaning |
|---|---|
| A | Automated in CI (pnpm test; in-memory and SQLite storage, workerd for the Worker, a real browser for e2e/), against fakes or fixtures that model Agility. |
| A+L | Automated as above, plus a part that only a live Agility tenant or a real MCP client can prove. That part is named in the last column and stays unproven until the owner runs it (never faked here). |
| P | Process or pipeline control, checked by a lint script or a workflow check, not by a runtime test. |
Residual risks are accepted explicitly in the register below (R-n); a row that points at an R-n has nothing left to
fix, only something to know. Live items are collected in the second register.
Evidence
Section titled “Evidence”| Id | Code | Tests | Level | Residual (R-n) or live evidence still missing (L-n) |
|---|---|---|---|---|
| T1 | packages/auth/src/tokens/device.ts, packages/auth/src/tokens/admin.ts, packages/http-app/src/rate-limit.ts, apps/worker/src/rate-limit.ts, apps/worker/src/shared-limiter.ts |
packages/auth/test/tokens.test.ts “checks format and checksum before any storage read”; packages/auth/test/fuzz-tokens.test.ts “accepts what we issue and refuses every single-character change of it”; packages/http-app/test/rate-limit.test.ts “authentication failures lock out only failed attempts”; apps/worker/test/shared-limiter-workerd.test.ts “holds one exact bucket” |
A | R-4 |
| T2 | packages/auth/src/access/resolve.ts, packages/http-app/src/oauth/server.ts |
packages/http-app/test/app.test.ts “a token for team-a used at team-b is refused”; packages/http-app/test/oauth/suite.ts “publishes RFC 9728 metadata per workspace”; apps/worker/test/authz.test.ts “MCP route × principal × method/tool on workerd” |
A | L-3 |
| T3 | packages/auth/src/access/resolve.ts, packages/core/src/identity/scope.ts, packages/core/src/query/compiler.ts |
packages/auth/test/resolve.property.test.ts “the effective access never exceeds the workspace, the grant or the deployment”; packages/http-app/test/authz.test.ts “tools outside the grant”; packages/core/test/tools/query.test.ts “never returns rows outside the workspace and narrows to one project” |
A | - |
| T4 | packages/core/src/query/compiler.ts, packages/core/src/metadata/model.ts |
packages/core/test/query/compiler.test.ts “property: filter tokens are exactly the server tokens plus one token over $v1, whatever the value”; packages/core/test/query/compiler.test.ts “property: arbitrary field names are refused unless they are valid paths”; packages/core/test/fuzz-parsers.test.ts “refuses any arbitrary string as a cursor with the one typed error” |
A+L | L-1 |
| T5 | packages/core/src/agility/client.ts, packages/core/src/agility/limiter.ts, packages/core/src/agility/quota.ts, packages/core/src/query/limits.ts |
packages/core/test/tools/cost.test.ts “a budget just below a composite hides it”; packages/core/test/agility/quota.test.ts “refuses a read before it is sent once the day is used up”; packages/core/test/agility/limiter.test.ts “shares one semaphore per instance and credential in a process” |
A | L-2 |
| T6 | packages/core/src/output/envelope.ts, packages/core/src/output/text.ts, packages/core/src/output/format.ts |
packages/core/test/output/envelope.test.ts “fuzz: data cannot close or forge the envelope”; packages/core/test/output/envelope.test.ts “neutralises look-alike markers, even with the real id”; packages/core/test/fuzz-parsers.test.ts “no cell starts as a spreadsheet formula, whatever the value” |
A | R-1 |
| T7 | packages/auth/src/secrets/keyring.ts, packages/auth/src/secrets/credentials.ts, packages/storage-sqlite/src/files.ts |
packages/auth/test/secrets.test.ts “refuses a wrong key, tampered ciphertext or IV, another record id, another version or another purpose”; packages/auth/test/fuzz-tokens.test.ts “a sealed value opens only unchanged”; packages/storage-sqlite/test/files.test.ts “creates the directory and the database privately, in WAL mode, migrated” |
A | R-6 |
| T8 | packages/core/src/redact.ts, packages/core/src/logger.ts, packages/core/src/secret.ts, packages/http-app/src/audit.ts |
packages/core/test/redact.test.ts “is idempotent”; packages/core/test/fuzz-parsers.test.ts “removes a planted secret wherever it sits in arbitrary text, and is idempotent”; packages/http-app/test/audit.test.ts “no secrets, bodies or Agility content in any row”; scripts/test/security-inventories.test.ts “logging.md lists every fixed log message of the code and every audit column” |
A | - |
| T9 | packages/http-app/src/oauth/server.ts, packages/http-app/src/oauth/clients.ts, packages/http-app/src/oauth/consent.ts, packages/http-app/src/oauth/refresh-family.ts |
packages/http-app/test/oauth/suite.ts “an SDK client registers, authorizes one workspace, exchanges the code, calls MCP and refreshes”; packages/http-app/test/oauth/clients-suite.ts “CIMD: the https callback on the client id host works”; packages/http-app/test/fuzz-parsers.test.ts “code-running schemes are refused outright, whatever follows” |
A+L | L-4 |
| T10 | packages/http-app/src/oauth/abuse.ts, packages/http-app/src/oauth/clients.ts, packages/http-app/src/oauth/consent.ts |
packages/http-app/test/oauth/abuse-suite.ts “register: a flood from one address stores only its own limit of clients”; packages/http-app/test/oauth/consent.test.ts “renders hostile client names inert and keeps long unbreakable text from becoming markup”; e2e/oauth-consent.spec.ts “Deny returns access_denied, and a hostile, very long app name stays inside the page” |
A+L | L-4 |
| T11 | packages/http-app/src/oauth/clients.ts, apps/worker/src/cimd-fetch.ts, packages/auth/src/identity/http.ts, packages/core/src/agility/instance.ts |
packages/http-app/test/oauth/clients-suite.ts “an unknown or oversized client id that is not a URL is a 400, never a server error”; packages/auth/test/identity/http.test.ts “refuses redirects (never followed, never trusted)”; packages/http-app/test/oauth/clients-memory.test.ts “a refused fetch, or a document that fails validation, evicts no stored document”; packages/http-app/test/fuzz-parsers.test.ts “a client id that may be fetched is a canonical https URL on a named, dotted host with a path” |
A | - |
| T12 | packages/core/src/agility/client.ts, packages/http-app/src/server.ts, packages/auth/src/access/resolve.ts |
packages/http-app/test/passthrough.test.ts “refuses a missing token, plain HTTP, a disabled feature, a stored workspace and an invalid token”; packages/core/test/agility/client.test.ts “never writes the token, even when Agility echoes it back” |
A | - |
| T13 | packages/admin-ui/src/headers.ts, packages/admin-ui/src/kit.ts, packages/admin-ui/src/components.tsx, scripts/check-ui-escaping.ts |
packages/admin-ui/test/headers.test.tsx “allows nothing inline or dynamic and nothing from another origin”; packages/admin-ui/test/kit.test.ts “refuses cross-site requests that are not top-level navigations, before the session is read”; scripts/test/check-ui-escaping.test.ts “passes the real sources”; e2e/security.spec.ts “forged requests from another origin on the same site and from another site change nothing” |
A | - |
| T14 | packages/auth/src/access/guards.ts, packages/auth/src/identity/policy.ts, packages/auth/src/identity/session.ts, packages/http-app/src/session.ts |
packages/auth/test/guards-unbind.test.ts “refuses an admin and a member, and an owner without a recent sign-in, writing nothing”; packages/auth/test/identity/policy.test.ts “refuses an unknown identity with no allowlist, and creates nothing”; packages/auth/test/identity/session.test.ts “ends a session at its absolute lifetime however active it is”; packages/http-app/test/sessions.test.ts “is __Host-, Secure, HttpOnly, SameSite=Lax, Path=/ and without Domain on https” |
A | - |
| T15 | packages/http-app/src/access-cache.ts, packages/http-app/src/oauth/refresh-family.ts |
packages/http-app/test/app.test.ts “revocation applies after the access cache”; packages/http-app/test/oauth/admin-suite.ts “disconnecting a device ends its access and refresh tokens and nobody elses”; apps/worker/test/authz.test.ts “MCP route × principal × method/tool on workerd” |
A | - |
| T16 | packages/core/src/agility/query-cache.ts, packages/http-app/src/query-cache-edge.ts |
packages/core/test/agility/query-cache.test.ts “differ for every scope dimension and agree for the same scope and a reordered query”; packages/http-app/test/query-cache.test.ts “binds the caller own Agility token”; packages/http-app/test/query-cache.test.ts “never answers a denied request from the cache and reaches neither the cache nor Agility” |
A | R-10 |
| T17 | packages/http-app/src/audit.ts, packages/core/src/writes/ledger.ts, packages/core/src/writes/pipeline.ts |
packages/http-app/test/audit.test.ts “a failing audit store never fails or slows the request”; packages/http-app/test/admin-audit-writes.test.ts “pairs intents with outcomes and flags an intent with no outcome”; packages/http-app/test/writes.test.ts “refuses a write whose intent cannot be stored: the audit is down, nothing is sent” |
A | - |
| T18 | .github/workflows/ci.yml, .github/workflows/release.yml, .github/workflows/security.yml, .github/workflows/scorecard.yml, scripts/check-workflows.ts, scripts/check-package.ts, scripts/release.ts, renovate.json |
scripts/test/check-workflows.test.ts “fails when an action is pinned by tag instead of SHA”; scripts/test/release.test.ts; scripts/test/renovate.test.ts |
P | R-12, L-5 |
| T19 | packages/http-app/src/app.ts, packages/http-app/src/oauth/server.ts |
packages/http-app/test/app.test.ts “answers the same 401 for no token, a bad token, a wrong workspace and an unknown workspace”; packages/http-app/test/oauth/suite.ts “answers a known, an unknown and a disabled workspace alike”; apps/worker/test/authz.test.ts “MCP route × principal × method/tool on workerd” |
A | R-8 |
| T20 | packages/http-app/src/rate-limit.ts, packages/http-app/src/mcp-request.ts, packages/http-app/src/oauth/abuse.ts, apps/worker/src/rate-limit.ts |
packages/http-app/test/rate-limit.test.ts “per IP before authentication: 429 with Retry-After, other IPs unaffected”; packages/http-app/test/oauth/abuse-suite.ts “authorize: a flood from one address is cut at the limit”; apps/worker/test/oauth-edge-limit.test.ts “with the binding a flood causes no D1 write after the binding refuses”; packages/http-app/test/fuzz-parsers.test.ts “reads a body up to the cap and refuses anything bigger, a batch or a wrong type, whatever the bytes” |
A | R-4 |
| T21 | packages/core/src/context.ts, packages/http-app/src/app.ts, apps/worker/src/index.ts, scripts/check-runtime-imports.ts |
packages/http-app/test/app.test.ts “keeps two workspaces and two credentials apart within one process (T21)”; packages/http-app/test/authz.test.ts “interleaved concurrent calls never mix data or credentials”; apps/worker/test/worker.test.ts “keeps two workspaces apart under 24 interleaved calls”; packages/http-app/test/isolation.test.ts “does not share a pass-through validation in flight between requests” |
A | - |
| T22 | packages/core/src/registry.ts, packages/core/src/tools/index.ts, packages/core/src/query/compiler.ts |
packages/core/test/registry.test.ts “a non-read tool that was not built by defineWriteTool, or is outside the writes group (L-105)”; packages/core/test/contract.test.ts “lists exactly the catalogue, with derived annotations” |
A | - |
| T23 | packages/core/src/registry.ts, apps/cli/src/keychain.ts, apps/cli/src/manage/secret-input.ts |
packages/core/test/registry.test.ts “a secret-like input field anywhere in the schema”; apps/cli/test/keychain.test.ts “stores, reads, replaces and deletes a secret, and the secret is never in argv” |
A | - |
| T24 | packages/http-app/src/app.ts, packages/http-app/src/edge.ts, scripts/cf-setup.ts |
packages/http-app/test/app.test.ts “refuses hostile Host and Origin headers, and Origin: null (DNS rebinding, T24)” |
A | - |
| T25 | packages/http-app/src/oauth/abuse.ts, packages/http-app/src/oauth/server.ts, docs/security/data-protection.md |
packages/http-app/test/oauth/abuse-suite.ts “the operator view shows the caps, the limits and the refusals, and nothing that identifies a caller (P5-20)”; scripts/test/security-inventories.test.ts “data-protection.md lists every column of the tables that hold personal data” |
A | - |
| T26 | packages/core/src/output/links.ts |
packages/core/test/output/links.test.ts “keeps every url on the pinned origin whatever the rows hold”; packages/core/test/output/links.test.ts “gives no link when the pinned base is not a plain origin” |
A+L | L-6 |
| T27 | packages/core/src/apps/views.ts, packages/core/src/apps/view-script.ts, packages/core/src/apps/index.ts |
packages/core/test/apps/views.test.ts “uses no markup string, code string, network, storage or navigation”; packages/http-app/test/apps.test.ts “offers nothing with the switch off, whatever the client declares” |
A+L | R-11, L-7 |
| T28 | apps/cli/src/doctor.ts |
apps/cli/test/doctor.test.ts “prints no secret: not the token, the master key, nor the member”; apps/cli/test/doctor.test.ts “without –fix never writes, with a database, key files and client files present” |
A | - |
| T29 | apps/cli/src/manage/config-bundle.ts |
apps/cli/test/config-bundle.test.ts “a wrong passphrase and a changed file give the same refusal, and nothing else”; apps/cli/test/fuzz-bundle.test.ts “any text parses to a bundle or fails with a ConfigError” |
A | - |
| T30 | packages/core/src/telemetry/attributes.ts, packages/core/src/telemetry/telemetry.ts, packages/core/src/telemetry/otlp.ts |
packages/core/test/telemetry/attributes.test.ts “lists exactly these span and resource attributes”; packages/http-app/test/telemetry.test.ts “sends a bounded number of spans” |
A+L | L-8 |
| T31 | packages/core/src/writes/pipeline.ts, packages/core/src/writes/approval.ts, packages/core/src/writes/runtime.ts, packages/http-app/src/approval-page.ts, packages/http-app/src/writes.ts |
packages/core/test/tools/writes-wave1.test.ts “negative authorization: no layer can be skipped”; packages/core/test/writes/pipeline.test.ts “needs confirm: true, and confirm is not approval”; packages/http-app/test/approval-page.test.ts “another person cannot see or approve the request, and their attempt approves nothing”; e2e/approval.spec.ts “a page that shows another change than the stored one approves nothing” |
A+L | R-1, R-2, L-9 |
| T32 | packages/http-app/src/tasks.ts |
packages/http-app/test/tasks.test.ts “returns a handle at once, runs nothing, and stores a sealed record under a hashed key” |
A | - |
| T33 | packages/core/src/public-catalog.ts, packages/http-app/src/public-catalog-cache.ts |
packages/http-app/test/public-catalog.test.ts “answers 401 to initialize, ping and tools/list without a credential”; packages/http-app/test/public-catalog.test.ts “answers the same for a real, an unknown, a disabled and a malformed workspace, and reads no storage” |
A | R-13 |
| T34 | scripts/cf-setup.ts, scripts/cf-migrate.ts |
scripts/test/cf-setup.test.ts “refuses a local config of another deployment, before calling wrangler (T34)”; scripts/test/cf-migrate.test.ts |
A | - |
| T35 | packages/storage-sqlite/src/files.ts, packages/core/src/redact.ts, packages/core/src/output/text.ts, packages/core/src/agility/xml.ts |
packages/storage-sqlite/test/files.test.ts “refuses a path that is not a regular file”; packages/core/test/redact.test.ts “runs in linear time on hostile input”; packages/core/test/output/text.test.ts “is linear on hostile input”; packages/core/test/fuzz-parsers.test.ts “stays fast on hostile repetitions” |
A | - |
| A1 | packages/core/src/output/text.ts, packages/core/src/output/envelope.ts |
packages/core/test/output/text.test.ts “drops scripts, styles, comments, embedded objects and every attribute”; packages/core/test/fuzz-parsers.test.ts “never throws and never lets a script, handler or script-scheme link through”; packages/core/test/output/envelope.test.ts “fuzz: data cannot close or forge the envelope” |
A | R-1 |
| A2 | packages/core/src/writes/mutation.ts, packages/core/src/writes/pipeline.ts, packages/core/src/writes/limiter.ts |
packages/core/test/tools/writes-wave1.test.ts “a type outside an allow list is refused the same way”; packages/http-app/test/write-grant-limit.test.ts “refuses a value above the deployment limit, and zero, fractions and unknown keys, changing nothing” |
A+L | L-9 |
| A3 | packages/core/src/query/compiler.ts |
packages/core/test/query/compiler.test.ts “property: filter tokens are exactly the server tokens plus one token over $v1, whatever the value” |
A+L | L-1 |
| A4 | packages/core/src/identity/resolve.ts, packages/core/src/identity/scope.ts |
packages/http-app/test/authz.test.ts “direct scope (Story) and derived scope (Task): only the workspace project, single assets outside are not found”; packages/core/test/identity/resolve.test.ts “answers an asset outside the workspace exactly like a missing one”; packages/core/test/fuzz-parsers.test.ts “accepts only a number or an OID token, never throws anything but a typed error” |
A | - |
| A5 | packages/auth/src/access/guards.ts, packages/auth/src/access/resolve.ts, packages/auth/src/secrets/credentials.ts |
packages/auth/test/resolve.test.ts “never with a shared credential (A5), without the server switch, the workspace switch or OAuth mcp:write”; packages/auth/test/p4-review-guards.test.ts “pass-through needs a recent sign-in, like every other widening of who may read”; packages/http-app/test/member-self-service.test.ts “stores a token Agility refuses as unusable, says so, and will not move a grant to it” |
A | R-9 |
| A6 | packages/core/src/writes/pipeline.ts, packages/core/src/writes/ledger.ts, packages/auth/src/access/resolve.ts |
packages/auth/test/resolve.test.ts “never with a shared credential (A5), without the server switch, the workspace switch or OAuth mcp:write”; packages/http-app/test/writes.test.ts “are offered and applied when every layer enables them: ledger in kv, intent then outcome in audit” |
A+L | L-9 |
| A7 | packages/core/src/output/format.ts, packages/core/src/tools/planning/members.ts |
packages/core/test/tools/planning.test.ts “lists members of the workspace’s projects, without emails by default”; packages/core/test/tools/planning.test.ts “includes emails only with the workspace switch” |
A | - |
| A8 | packages/core/src/tools/collaboration/attachments.ts, packages/auth/src/access/resolve.ts |
packages/core/test/tools/collaboration.test.ts “returns the text of an attachment of an asset in scope inside the envelope, and audits it”; packages/http-app/test/attachments.test.ts “is neither listed nor callable by default, and nothing is fetched”; packages/http-app/test/attachments.test.ts “writes an audit row per download with the asset number, attachment id, size and type, never the content” |
A+L | L-10 |
| A9 | packages/core/src/agility/instance.ts, packages/auth/src/access/validate.ts, apps/worker/src/boot.ts |
packages/core/test/agility/instance.test.ts “classifies address literals: loopback, private, link-local (metadata), public”; packages/auth/test/validate.test.ts “refuses redirects, web pages, other JSON and 404s; network and TLS failures say so”; packages/core/test/fuzz-parsers.test.ts “either refuses with a typed error or returns a canonical https (or loopback http) origin without credentials” |
A | R-5, R-7 |
| A10 | packages/core/src/agility/quota.ts, packages/core/src/agility/limiter.ts, packages/core/src/agility/breaker.ts |
packages/core/test/agility/quota.test.ts “a refused call spends no unit of the request budget (Q-4)”; packages/http-app/test/quota.test.ts “counts concurrent requests of one grant without losing any” |
A+L | L-2 |
| A11 | packages/core/src/output/format.ts, packages/core/src/identity/scope.ts |
packages/core/test/tools/query.test.ts “refuses global types unless the workspace allows them, and denied or unknown types”; packages/core/test/output/format.test.ts “picks a table up to 8 columns and CSV above” |
A | R-3 |
| A12 | packages/core/src/metadata/model.ts, packages/core/src/metadata/service.ts, packages/core/src/registry.ts |
packages/core/test/metadata/service.test.ts “keeps only identifiers: display names and invalid names are dropped (A12)”; packages/core/test/contract.test.ts “lists exactly the catalogue, with derived annotations” |
A | - |
| A13 | packages/http-app/src/approval-page.ts, packages/core/src/writes/approval.ts |
packages/http-app/test/approval-page.test.ts “another person cannot see or approve the request, and their attempt approves nothing”; e2e/approval.spec.ts “another person, an unknown id and a malformed id all get the same 404” |
A+L | L-9 |
| A14 | packages/auth/src/access/services.ts, packages/auth/src/access/guards.ts |
packages/auth/test/services.test.ts “changes the origin only through a retarget, which revokes the credentials and grants first (A14)”; packages/auth/test/p4-review-guards.test.ts “fix: an admin cannot add an instance with a CA file; with none it still can” |
A | - |
| A15 | live/readonly-fetch.ts, live/shape.ts, live/guarded-fetch.ts, .github/workflows/live.yml |
scripts/test/live-guard.test.ts “refuses a redirect instead of following it”; scripts/test/live-guard.test.ts “replaces strings and numbers with markers, masks custom attribute names and caps arrays” |
A+L | L-9 |
Fuzz and property coverage
Section titled “Fuzz and property coverage”Parsers that take text from outside a trust boundary, and the test that fuzzes each (seeded, replayable with
AB_TEST_SEED=<n> pnpm vitest run <file>, L-123). Added by P9-01 unless noted.
| Parser | Where | Fuzz or property test |
|---|---|---|
| Effective-permission resolver (existing) | packages/auth/src/access/resolve.ts |
packages/auth/test/resolve.property.test.ts |
| Query compiler and filter values (existing) | packages/core/src/query/compiler.ts |
packages/core/test/query/compiler.test.ts |
| Untrusted-data envelope (existing) | packages/core/src/output/envelope.ts |
packages/core/test/output/envelope.test.ts |
| Rich text to plain text | packages/core/src/output/text.ts |
packages/core/test/fuzz-parsers.test.ts |
| Secret redaction | packages/core/src/redact.ts |
packages/core/test/fuzz-parsers.test.ts |
| Instance URLs and address classes | packages/core/src/agility/instance.ts |
packages/core/test/fuzz-parsers.test.ts |
| Asset references | packages/core/src/identity/refs.ts |
packages/core/test/fuzz-parsers.test.ts |
| XML answers | packages/core/src/agility/xml.ts |
packages/core/test/fuzz-parsers.test.ts |
| CSV output | packages/core/src/output/format.ts |
packages/core/test/fuzz-parsers.test.ts |
Instance metadata (meta.v1) |
packages/core/src/metadata/model.ts |
packages/core/test/fuzz-parsers.test.ts |
| Paging cursors | packages/core/src/query/cursor.ts |
packages/core/test/fuzz-parsers.test.ts |
| Device and admin token formats, bearer header | packages/auth/src/tokens/device.ts |
packages/auth/test/fuzz-tokens.test.ts |
| Identity provider JWTs | packages/auth/src/identity/jwt.ts |
packages/auth/test/fuzz-tokens.test.ts |
| Master key and sealed values | packages/auth/src/secrets/keyring.ts |
packages/auth/test/fuzz-tokens.test.ts |
| OAuth client ids, redirect URIs, registrations | packages/http-app/src/oauth/clients.ts |
packages/http-app/test/fuzz-parsers.test.ts |
| MCP bodies and message classification | packages/http-app/src/mcp-request.ts |
packages/http-app/test/fuzz-parsers.test.ts |
| Configuration bundle import | apps/cli/src/manage/config-bundle.ts |
apps/cli/test/fuzz-bundle.test.ts |
JWT and ID-token verification wraps the jose library; the fuzz test checks our wrapper (every non-token is refused with
a typed error, no key is fetched for a token that is not well formed). The library’s own parsing is not re-tested here.
Accepted residual risks
Section titled “Accepted residual risks”Each is a known limit that the project accepts for 1.0. It is stated in the threat model, in the guide where a user decides on it, and here, so no one finds it by surprise.
| Id | Risk | Why it is accepted | Rows | Where it is documented |
|---|---|---|---|---|
| R-1 | The untrusted-data envelope reduces prompt injection; it does not eliminate it. | No output filter can; the real barrier is the approval of every write (ADR-0013) and the member’s own Agility permissions. | T6, T31, A1 | THREAT_MODEL section 8; write tools |
| R-2 | Elicitation is answered by the client, which may not prove that a human looked. | The approval page (page_only) is the stronger channel and can be required per grant or workspace. |
T31, A13 | THREAT_MODEL section 8; write-tools guide |
| R-3 | Data returned to the client leaves our control (the LLM provider’s retention). | Outside the product’s reach; mitigated by tiers, asset-type allow lists and local-model guidance. | A11 | THREAT_MODEL section 8; clients |
| R-4 | Per-isolate rate limits on Workers are approximate unless the optional Durable Object limiter is on. | The Rate Limiting binding backstops across isolates; the exact limiter is opt-in (P3-12) because it costs a request per check. | T1, T20 | Cloudflare limits |
| R-5 | Workers cannot trust private CAs or reach private networks. | A platform limit; on-premises instances use the Node deployment. | A9 | THREAT_MODEL section 8 |
| R-6 | A process holding the master key can decrypt every stored token. | Inherent to envelope encryption with an operator-held key; the key is separate from the data and rotatable. | T7 | secrets; cryptography |
| R-7 | Instance URLs may point at private addresses by default. | On-premises instances need it; only owners and admins define instances and every change is audited; AB_INSTANCE_PRIVATE_ADDRESSES=refuse closes it. |
A9 | THREAT_MODEL section 8 |
| R-8 | A bad token on a pass-through workspace answers after an Agility round trip, so a caller can tell which slugs are pass-through. | Padding the latency was judged not worth it; body and status are identical. | T19 | THREAT_MODEL section 8 |
| R-9 | An Agility token carries the member’s full permissions; a stolen one can act directly against Agility. | We can narrow what the bridge does, not what Agility allows; tokens never leave encrypted storage and are revocable. | A5 | THREAT_MODEL section 3 and 8 |
| R-10 | A read-only grant beside a writing one can see up to one cache TTL of data from before the other grant’s write. | The cache is off by default and capped at 60 s; the guide says so. | T16 | query cache |
| R-11 | The MCP App view posts to '*' because a sandboxed host has an opaque origin. |
The view is static and carries no data of its own; the host is the only peer. | T27 | THREAT_MODEL section 8i-4 |
| R-12 | The release chain trusts GitHub, npm and the registries’ own controls (account takeover of a maintainer). | Mitigated by provenance, 2FA, pinned actions and a separate publish job; cannot be removed. | T18 | verify a release |
| R-13 | With AB_PUBLIC_TOOL_CATALOG on, anyone can read the tool names and descriptions. |
Opt-in, static, no instance data; the setting says so. | T33 | THREAT_MODEL section 8i-3 |
Evidence that needs a live tenant or a real client
Section titled “Evidence that needs a live tenant or a real client”These are not proven by anything in this repository. They are listed so the owner can run them (the live pass of P8-12, a writable sandbox, real clients) and tick them off; nothing here is claimed as verified.
| Id | Rows | What is unproven | How to prove it |
|---|---|---|---|
| L-1 | T4, A3 | That a real Agility instance treats every with value as a single bound value in all query shapes we emit (the spike found that scalars split at commas, which the compiler already accounts for). |
pnpm test:live with the live token, query tests with hostile values; shapes only, no content. |
| L-2 | T5, A10 | The cost model against a real instance: the ceilings, the ChangeDate sort cost, real quota behaviour under load. |
The live pass and the bench:worker / live cost run. |
| L-3 | T2 | The RFC 8707 audience binding with every real client (claude.ai web and mobile, IDEs). | Connect each real client, then use a token from workspace A at B. |
| L-4 | T9, T10 | The consent flow, redirect handling and registration paths with real clients; real DCR and CIMD client behaviour. | Real client connection runs recorded in the client compatibility issues. |
| L-5 | T18 | That the published npm package, image and Worker bundle carry the provenance and signatures the pipeline claims. | The verify guide run by someone other than the author. |
| L-6 | T26 | Whether assetdetail.v1?oid= opens every asset type and how Agility redirects it. |
The live pass (P8-12). |
| L-7 | T27 | The MCP App view inside real clients (only a real browser engine and the host contract are tested). | A real client that supports MCP Apps. |
| L-8 | T30 | Export to a hosted telemetry backend (only fakes and a local collector are tested). | Point AB_OTEL_ENDPOINT at a hosted collector. |
| L-9 | T31, A2, A6, A13, A15 | That every write tool changes exactly one item in a real Agility instance, and the attribution of the change to the member. | The writable sandbox (P7-07, owner step) and a real client approval. |
| L-10 | A8 | Attachment downloads against real attachment content types and sizes. | The live pass with an attachment fixture on the tenant. |
agility-bridge is an unofficial, community project. It is not affiliated with, endorsed by, or supported by Digital.ai. Digital.ai, Agility and VersionOne are trademarks of their respective owners.