Repository navigation
Open
Description
Context
Follow-up to #8141 (fixes #8111), which makes the GitHub and GitLab route kill-switch checks consult config.base.yaml. These review items were left open when it was approved, and are tracked here so the PR could merge.
Fail-open items
- An invalid
config.yamlvalue hides a basekill_switch: true(both forges). Any non-null overlay value is taken as final, even when it isn't a recognised true/false spelling. Withconfig.base.yamlkill_switch: true, aconfig.yamlofkill_switch: "",[],{},garbage, or a file that is one bare scalar still dispatches built-in stages. Go'sLoadConfigrejects all of these (cannot unmarshal !!str garbage into bool), soharness-dispatchfails closed while the route step fails open. Fix: after quote stripping, halt on true/yes, proceed on false/no/null, and fail on anything else. On GitLab, treat a non-bool result as active. Add tests for these values against a basetrue. - GitLab fails open on configs over 128 KiB (new in fix(#8111): consult config.base.yaml for kill_switch in GitHub and GitLab dispatch #8141).
run-agent-job.shnow passes both config texts as environment variables instead of stdin. Linux caps one env string at 128 KiB, so a ~140 KBconfig.yamlgivespython3: Argument list too long, then the "treating as unconfigured" warning, and dispatch proceeds. Fix: write both texts to temp files underRUNNER_TEMPand pass the paths. - A two-document
config.yamlhides the base switch. yq evaluates every document (foo: 1/---/kill_switch: trueprintsnullthentrue), so the override wins. Go reads only the first document. Fix:select(document_index == 0), or fail on multi-line output.
Correctness of comments and tests
- The workflow comment in
reusable-dispatch.ymlsays quote stripping matches go-yaml's handling of a quoted"true". yaml.v3 rejectskill_switch: "true"with a decode error; only a quoted"yes"decodes as true. Halting on quoted"true"is still right (pre-fix(#8111): consult config.base.yaml for kill_switch in GitHub and GitLab dispatch #8141 yq parity, and fail-closed), but the stated reason should be corrected. - Nothing guards the route job's sparse-checkout of
.fullsend/config.base.yaml.TestCheckKillSwitchStep_ConsultsConfigBaseYAMLwrites the file straight into a temp dir, so dropping the sparse-checkout line would pass every test. The new e2e scenario uses a custom harness, which runs inharness-dispatch(noneeds: route) and already reads the base file through Go, so it never reaches the changed step. Add a built-in-stage scenario with the switch set only inconfig.base.yaml, or at least a Go test asserting the sparse-checkout list.
Test polish (low)
pkg/behaviourtest/steps/cleanup.go(ValidateSlotClean) treats any error reading the base file as "absent". Useforge.IsNotFound.- Halt cases in
internal/scaffold/github_kill_switch_test.goassert only a non-zero exit, so a yq error or abad substitutionon bash 3.2 passes them. Also assert theKill switch is activemessage. KillSwitchBaseActivatedinpkg/behaviourtest/world/world.gois not reset inresetScenarioWorld.
Out of scope here
GitLab still proceeds with a warning when config.yaml is malformed and the base sets the switch; #8111 put that pre-existing behaviour out of scope.
Items 1, 3, 4 and 5 touch .github/workflows/reusable-dispatch.yml, which needs a human change (the code agent has no workflows permission).
Reacted by fullsend-ai-triage
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Oct 15, 2026
🤖 Finished Triage · ✅ Success · Started 11:44 AM UTC · Completed 11:46 AM UTC
Commit:
3b5e19f· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.16
fullsend-ai-triage commentedon Oct 15, 2026
Thanks for tracking these follow-ups in one place. Work on them is blocked until PR #8141 merges. It is still open (approved and mergeable, but not yet merged), and the code and tests these items change are introduced by that PR. For example,
internal/scaffold/github_kill_switch_test.goand the base-config handling in the route kill-switch step do not exist on the default branch yet. Items 1, 2, 3, 5, 7 and 8 modify that new code directly. #8141 doesn't address any of the eight items, so this issue isn't being fixed in flight.Once #8141 merges, this issue can be re-triaged. The description is already detailed enough to implement.
Note for whoever picks this up: items 1, 3, 4 and 5 involve
.github/workflows/reusable-dispatch.yml. The code agent has noworkflowspermission, so those changes will need a human PR or maintainer action. Items 2, 6, 7 and 8 are outside the workflow files and could be done by the code agent.Blocked by:
rh-hemartin commentedon Oct 30, 2026
/fs-triage [Automated Message] the blocking PR is already merged
fullsend-ai-triage commentedon Oct 30, 2026
🤖 Finished Triage · ✅ Success · Started 11:49 AM UTC · Completed 11:51 AM UTC
Commit:
8b8c75b· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.15
fullsend-ai-triage commentedon Oct 30, 2026
The blocker (PR #8141) has merged. The eight items were re-checked against the default branch and all still apply. No open PR addresses them, and no duplicate issue was found.
Workflow-file warning: items 1, 3, 4 and 5 involve
.github/workflows/reusable-dispatch.yml. The code agent cannot modify workflow files under its current permissions, so this issue is flaggedrequires_workflow_changesand will not be auto-dispatched to the code agent. Those changes need a human PR or maintainer action. Items 2 (GitLab temp files), 6, 7 and 8, and the Go-side parts of item 5 (a sparse-checkout assertion test), don't touch workflow files. A maintainer may want to split the issue so those can be automated.Notes for the implementer:
LoadConfigbehaviour: first document only, and fail closed on anything that is not a recognised bool."true"(item 4), and the exact current assertions in the halt-case tests (item 7). Both are quick to confirm.Suggested test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidance