docs(#484): document CODE_ALLOWED_TARGET_BRANCHES in AGENTS.md - #487
Conversation
Add a "Code agent configuration" section (§7) to AGENTS.md documenting the CODE_ALLOWED_TARGET_BRANCHES environment variable. Covers format (comma-separated or wildcard), default (auto-detected repo default branch), and where to set it (runner env via harness/code.yaml runner_env). Renumber the existing "Skill resolution" section from §7 to §8. Note: pre-commit could not run in the sandbox due to network restrictions (git fetch blocked). The post-script runs pre-commit authoritatively on the runner. Closes #484
|
/fs-fix the changes have to go under docs/code.md in the variables section. |
|
🤖 Finished Fix · ✅ Success · Started 9:28 AM UTC · Completed 9:32 AM UTC |
Move variable documentation from AGENTS.md section 7 to docs/code.md under the Variables section, per reviewer feedback. Restore AGENTS.md section numbering (Skill resolution back to §7). Addresses review feedback on #487
🔧 Fix agent — iteration 1 (human-triggered)Moved CODE_ALLOWED_TARGET_BRANCHES documentation from AGENTS.md to docs/code.md under the Variables section per human instruction. Reverted AGENTS.md to its original state with correct section numbering. Fixed (2):
Tests: passed Updated by fullsend fix agent |
|
/fs-fix Use a table as the other docs, also the env var should be passed to |
|
🤖 Finished Fix · ✅ Success · Started 9:37 AM UTC · Completed 9:42 AM UTC |
…T_BRANCHES Reformat the Variables section to use a horizontal table matching the pattern in review.md. Replace deprecated runner_env reference with env.runner. Addresses review feedback on #487
🔧 Fix agent — iteration 2 (human-triggered)Addressed both human review findings: reformatted the Variables section to use a standard horizontal table (matching review.md) and replaced the deprecated runner_env reference with env.runner. Fixed (2):
Tests: passed Decision points
Updated by fullsend fix agent |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 9:46 AM UTC · Completed 9:58 AM UTC |
ReviewFindingsMedium
Low
Labels: PR adds documentation for the code agent's CODE_ALLOWED_TARGET_BRANCHES configuration variable |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 10:03 AM UTC · Completed 10:09 AM UTC |
The documentation incorrectly referred to the harness YAML key as `env.runner` when the actual key in harness/code.yaml is `runner_env`. Corrected to match the codebase. Addresses review feedback on #487
🔧 Fix agent — iteration 3 (human-triggered)Fixed 1 of 2 review findings. Changed Fixed (1):
Disagreed (1):
Tests: passed Updated by fullsend fix agent |
|
🤖 Finished Retro · ✅ Success · Started 10:21 AM UTC · Completed 10:39 AM UTC |
Retro: PR #487 — Document
|
Move variable documentation from AGENTS.md section 7 to docs/code.md under the Variables section, per reviewer feedback. Restore AGENTS.md section numbering (Skill resolution back to §7). Addresses review feedback on #487
…T_BRANCHES Reformat the Variables section to use a horizontal table matching the pattern in review.md. Replace deprecated runner_env reference with env.runner. Addresses review feedback on #487
The documentation incorrectly referred to the harness YAML key as `env.runner` when the actual key in harness/code.yaml is `runner_env`. Corrected to match the codebase. Addresses review feedback on #487
…/code.md Move variable documentation from AGENTS.md section 7 to docs/code.md under the Variables section, per reviewer feedback. Restore AGENTS.md section numbering (Skill resolution back to §7). Addresses review feedback on fullsend-ai#487
…T_BRANCHES Reformat the Variables section to use a horizontal table matching the pattern in review.md. Replace deprecated runner_env reference with env.runner. Addresses review feedback on fullsend-ai#487
The documentation incorrectly referred to the harness YAML key as `env.runner` when the actual key in harness/code.yaml is `runner_env`. Corrected to match the codebase. Addresses review feedback on fullsend-ai#487
Summary
CODE_ALLOWED_TARGET_BRANCHESenvironment variable*wildcard), default behavior (auto-detected via GitHub API, falls back tomain), and where to set it (runner environment, passed throughrunner_envinharness/code.yaml)Context
CODE_ALLOWED_TARGET_BRANCHEScontrols which branches the code agent is allowed to push to. It is defined inharness/code.yaml:52and validated inscripts/post-code.src.sh, but was not documented anywhere user-facing. All documented details were verified against the actual source code.Testing
scripts/post-code.src.shCloses #484
Post-script verification
agent/484-document-allowed-branches)3760b3bb70de32596c1922332fb96e76cd9ebcd8..HEAD)