diff --git a/docs/guides/user/bring-your-own-agent.md b/docs/guides/user/bring-your-own-agent.md index bf8911831b..898a691c4f 100644 --- a/docs/guides/user/bring-your-own-agent.md +++ b/docs/guides/user/bring-your-own-agent.md @@ -70,8 +70,9 @@ Next: ✓ Post-script completed (0.3s) ``` - `.env.local` needs `GITHUB_ISSUE_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`, - `GH_TOKEN`, and whatever the agent's route needs besides those — see + `.env.local` needs `FULLSEND_WORK_ITEM_URL`, `ISSUE_NUMBER`, + `REPO_FULL_NAME`, `GH_TOKEN`, and whatever the agent's route needs besides + those — see [Pick a route](#pick-a-route). `GH_TOKEN` must be a real token: a connectivity check runs before the agent does. See [Running agents locally](running-agents-locally.md). @@ -82,8 +83,8 @@ Next: The route — which model, on which credential path — decides what a local run needs in `.env.local` beyond the GitHub variables every route uses -(`GITHUB_ISSUE_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`, `GH_TOKEN`). Pick the -row that matches the agent you want; CI is covered below the table. +(`FULLSEND_WORK_ITEM_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`, `GH_TOKEN`). +Pick the row that matches the agent you want; CI is covered below the table. | Route | `agent new` flags | harness `providers:` | Env beyond the GitHub variables | |-------|-------------------|-----------------------|----------------------------------| @@ -487,13 +488,17 @@ overlays: post_script: scripts/post-triage.sh env: runner: - GITHUB_ISSUE_URL: ${GITHUB_ISSUE_URL} + ISSUE_URL: ${GITHUB_ISSUE_URL} GH_TOKEN: ${GH_TOKEN} + FULLSEND_FORGE: github sandbox: - GITHUB_ISSUE_URL: "${GITHUB_ISSUE_URL}" - GH_TOKEN: "${GH_TOKEN}" + ISSUE_URL: "${GITHUB_ISSUE_URL}" + FULLSEND_FORGE: github ``` +New agents should map `ISSUE_URL` from `FULLSEND_WORK_ITEM_URL`; the example +above shows the current built-in GitHub overlay before that migration. + Key patterns to note: - **`policy: policies/triage.yaml`** is a per-agent policy that includes filesystem, landlock, process, and network rules (via inline `network_policies`). This agent predates the provider-based pattern — new agents can use `providers:` instead (see [Minimum viable agent](#minimum-viable-agent)). @@ -608,7 +613,7 @@ ops: ```bash POST_LINT_DOCS_DRY_RUN=1 \ - GITHUB_ISSUE_URL="https://github.com/OWNER/REPO/pull/99" \ + FULLSEND_WORK_ITEM_URL="https://github.com/OWNER/REPO/pull/99" \ ISSUE_NUMBER=99 \ REPO_FULL_NAME=OWNER/REPO \ GH_TOKEN="$(gh auth token)" \ diff --git a/docs/guides/user/running-agents-locally.md b/docs/guides/user/running-agents-locally.md index 7bf409e683..ca2a112edb 100644 --- a/docs/guides/user/running-agents-locally.md +++ b/docs/guides/user/running-agents-locally.md @@ -239,12 +239,17 @@ custom agent definitions exist. ### Triage agent +The built-in triage and code agents still read `GITHUB_ISSUE_URL` from their +GitHub overlays. Set both URL variables until the agents repository migrates +to `FULLSEND_WORK_ITEM_URL`. + Add to an env file: ```bash # fullsend-triage.env GH_TOKEN={github-pat} GITHUB_ISSUE_URL=https://github.com/{org}/{repo}/issues/{issue_num} +FULLSEND_WORK_ITEM_URL=https://github.com/{org}/{repo}/issues/{issue_num} ``` ```bash @@ -297,6 +302,7 @@ GH_TOKEN={github-pat} PUSH_TOKEN={github-pat} PUSH_TOKEN_SOURCE=pat GITHUB_ISSUE_URL=https://github.com/{org}/{repo}/issues/{issue_num} +FULLSEND_WORK_ITEM_URL=https://github.com/{org}/{repo}/issues/{issue_num} REPO_FULL_NAME={org}/{repo} ISSUE_NUMBER={issue_num} CODE_ALLOWED_TARGET_BRANCHES=main