Skip to content

[Bug]: docs still describe route code as sandboxed by default #558

Closed

Description

@jimhoyd

Runtime revision and environment

main at 645239b (static source review plus local synthetic checks). Node 22/26, macOS. Deployment: not applicable.

Minimal reproduction

The trust-model prose check misses wording like "guest" and "sandboxed function":

  • docs/MIDDLEWARE-EXAMPLES.md:16, 60-68 — cookbook middleware "runs on the guest API" without crypto/fetch; the routes (examples/cookbook/routes/middleware.yaml, recipes/middleware/urlcode.yaml) have no sandbox: true.
  • docs/LOCAL-DEVELOPMENT.md:23 ("/hello/Ada (sandboxed function)" — route removed in 2a4ab39), :19/:42/:60 (starter "containing both examples"), :91 ("never bypasses the function sandbox").
  • docs/READINESS.md:224 — "no ambient filesystem/network access" as a general code-containment row.
  • docs/RECIPES.md:26 — json-api "echoed by a sandboxed function".
  • docs/TYPESCRIPT.md:7 — "YAML and sandboxed functions are unaffected".
    Related: [Bug]: generated AGENTS.md implies trusted route code is confined to declared bindings #539 (generated AGENTS.md).

Relevant output

node scripts/check-trust-model-prose.ts passes on these files.

Suggested fix

Rewrite each for trusted-by-default with sandbox: true as opt-in, and extend check-trust-model-prose.ts patterns to catch "guest API"/"sandboxed function" outside sandbox-specific sections.

Activity

  1. added
    bug
    documentation
    on Sep 23, 2026
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

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions