{
  "slug": "browse-functions-secrets-attach-links-a-project-secret-by-id-3d81448726e6",
  "title": "browse functions secrets attach links a project secret by ID",
  "tools": [
    "browse"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-23T21:40:12.661Z",
  "announced_at": "2026-09-23T21:40:12.661Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an existing project secret needs to be available to a published function, run `browse functions secrets attach` with the function ID and secret ID.",
    "examples": [
      "browse functions secrets attach <functionId> <secretId>"
    ],
    "gotchas": [
      "Version: 0.11.0",
      "<functionId> (required): ID of the function to attach the secret to; the docs say to use the ID from `builtFunctions[].id` in the publish output.",
      "<secretId> (required): ID of the existing secret to attach. The docs show the argument but do not further define it.",
      "Prerequisite: The project secret must already exist; the README shows creating it with `browse cloud secrets create BROWSERBASE_API_KEY --env BROWSERBASE_API_KEY`.",
      "Prerequisite: Publish the function first; the README describes attaching the secret to the published function and identifies its ID in the publish output.",
      "The project secret must already exist; attachment is by function ID."
    ]
  },
  "why_it_matters": "Attach an existing project secret to a function that needs it.",
  "sources": [
    "https://github.com/browserbase/stagehand/blob/main/packages/cli/CHANGELOG.md#0110",
    "https://github.com/browserbase/sdk-functions-node"
  ],
  "rank": 0.90016,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "browse-20261014",
    "verdict_id": "browse-20261014:browse-20261014-3b463bdb01b8c8a7-0:gate",
    "evidence_hash": "b340035ce7d5245b8531eb2c5958680164d8363bfaea28020b39b07caa630314"
  },
  "review": {
    "draft_hash": "e2acdf5234012a0dc60bbbdc7440fdd3e683da28b41c6a920f1a04ba7b89bdbc",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "browse-20261014:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
