Skip to content

feat(#9044)!: pass the gateway endpoint from repository variables - #9158

Open
jctanner wants to merge 8 commits into
mainfrom
jtanner/9044-gateway-endpoint-repo-variable
Open

jctanner wants to merge 8 commits into
mainfrom
jtanner/9044-gateway-endpoint-repo-variable

Conversation

@jctanner

@jctanner jctanner commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #9049, per the design agreed with @rh-hemartin in that thread: the gateway endpoint should come from the workflow layer, read from repository variables, rather than only the runner process environment.

  • reusable-dispatch.yml (all seven agent-run steps) and the standalone reusable-prioritize.yml read vars.OPENSHELL_GATEWAY_ENDPOINT and pass it via a dedicated FULLSEND_OPENSHELL_GATEWAY_ENDPOINT channel. A dedicated name is needed because an unset repository variable renders as an empty string, which would shadow a value configured in the runner's own process environment if passed under the same name.
  • The action's Detect sandbox host step prefers a non-empty workflow channel, falls back to the runner process environment, validates that the resolved value is a single https:// URL with no whitespace (a newline would become a separate GITHUB_ENV assignment; whitespace-only would silently suppress the fallback), logs the source channel rather than the value, and publishes the resolved endpoint to GITHUB_ENV for the sandbox setup.
  • Precedence rule, stated deliberately: a non-empty repository (or organization) variable wins — repository administrators choose the gateway for their runs; when unset, the runner-process value applies (documented fallback for fleet-managed runner images); when neither is set, local sandbox host setup runs as before. An invalid value fails the job with a clear ::error:: rather than selecting a broken remote mode.
  • Tests cover the precedence and the resolved endpoint value unconditionally (remote cases must publish it, local cases must write nothing) plus rejection of whitespace-only, newline-injected, and non-https endpoints.

Cross-reviewed with Claude and Codex before this push; their findings (missed prioritize call site, GITHUB_ENV newline injection, whitespace-only trap, incomplete propagation assertions, value in logs) are all addressed in the second commit.

Stacked on #9049 (base is its branch); retarget to main once that merges.

Addresses #9044

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Pass the OpenShell gateway endpoint from repository variables

✨ Enhancement ⚙️ Configuration changes 🧪 Tests 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Pass the gateway repository variable to every dispatched agent through a dedicated workflow
 channel.
• Prefer a non-empty repository value, fall back to runner configuration, or retain local setup.
• Test endpoint precedence and document remote-gateway configuration.
Diagram

graph TD
  Repo["Repository variable"] --> Dispatch["Dispatch workflow"] --> Detect{"Workflow value?"}
  Detect -->|Yes| Publish["GITHUB_ENV"] --> Sandbox["Remote sandbox"]
  Detect -->|No| Fallback{"Runner value?"}
  Runner["Runner environment"] --> Fallback
  Fallback -->|Yes| Publish
  Fallback -->|No| Local["Local host setup"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Expose a gateway endpoint action input
  • ➕ Makes the workflow-to-action contract explicit for other callers.
  • ➖ Requires input wiring while still needing logic to preserve the runner-environment fallback.

Recommendation: Keep the dedicated environment channel for this follow-up: it fits the existing workflow plumbing and prevents an unset repository variable from masking the runner value. Consider an action input if more workflows need a formal endpoint interface.

Files changed (4) +68 / -17

Enhancement (1) +18 / -2
action.ymlResolve gateway precedence before sandbox setup +18/-2

Resolve gateway precedence before sandbox setup

• Detection prefers a non-empty workflow endpoint, then the runner-process endpoint. It publishes the selected value to GITHUB_ENV for later steps while retaining local setup when neither is set.

action.yml

Tests (1) +30 / -11
action_sandbox_host_test.goTest gateway selection and environment propagation +30/-11

Test gateway selection and environment propagation

• Extends the action-step harness to capture GITHUB_ENV writes. Adds cases for workflow precedence, empty-workflow fallback, and a workflow-only endpoint.

internal/scaffold/action_sandbox_host_test.go

Documentation (1) +9 / -4
advanced-setup.mdDocument repository-variable gateway configuration +9/-4

Document repository-variable gateway configuration

• Explains how to configure a remote gateway through a repository variable and when the runner-environment fallback applies.

docs/guides/infrastructure/advanced-setup.md

Other (1) +11 / -0
reusable-dispatch.ymlPass the repository gateway value to every agent +11/-0

Pass the repository gateway value to every agent

• Adds the dedicated gateway endpoint environment channel to all seven agent-run steps. Its separate name preserves the runner-process fallback when the repository variable is unset.

.github/workflows/reusable-dispatch.yml

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 2:12 PM UTC · Ended 2:22 PM UTC

Commit: d412571 · View workflow run →

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

@qodo-code-review

qodo-code-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (1) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Prioritize runs ignore the remote gateway ✓ Resolved

Resolving commit: 8739d7d

Resolution reason
Passes the repository variable OPENSHELL_GATEWAY_ENDPOINT into the standalone prioritize agent step
as FULLSEND_OPENSHELL_GATEWAY_ENDPOINT, so the remote gateway endpoint is used instead of the local
Podman setup path.
Description
The new endpoint channel is set for the inline prioritize agent in reusable-dispatch.yml, but not
for the agent invocation in reusable-prioritize.yml. Repositories using the standalone prioritize
workflow with only the repository variable configured instead take the local Podman setup path,
which fails on container runners without the required host facilities.


Remediation recommended

2. Gateway setup steps buried in prose ✓ Resolved

Resolving commit: 9c9cc6b

Resolution reason
The PR head rewrote the paragraph at advanced-setup.md lines 109-134 into a numbered list: step 1
sets the OPENSHELL_GATEWAY_ENDPOINT repository/organization variable, step 2 is the
runner-environment fallback for fleet-managed images. The precedence rule and Podman/CLI skip
behaviour follow as a short explanatory paragraph after the list, matching the suggested
remediation's structure.
Description
The rewritten paragraph in advanced-setup.md tells operators to set the
OPENSHELL_GATEWAY_ENDPOINT repository variable, or the runner environment variable as a fallback,
inside one narrative paragraph instead of a numbered list. An operator configuring a remote gateway
must pull the procedure out of the explanation, and the precedence rule is mixed into the same
sentence.

3. Repo variable displaces runner endpoint ✗ Dismissed
Description
The Detect sandbox host script in action.yml uses a non-empty
FULLSEND_OPENSHELL_GATEWAY_ENDPOINT (from vars.OPENSHELL_GATEWAY_ENDPOINT) in place of a
non-empty runner OPENSHELL_GATEWAY_ENDPOINT, so the runner-configured endpoint is never used when
both are set to different values. This applies whenever a fleet-managed runner endpoint differs from
the repository variable, and the resolved repository-variable value is then published to
GITHUB_ENV for sandbox setup. The PR description calls this precedence intentional, but it
conflicts with checklist 4444010's requirement not to disregard the configured endpoint.

4. Gateway addresses appear in run logs ✓ Resolved

Resolving commit: f14ad2e

Resolution reason
The success message now names only the endpoint source ("repository variable" or "runner
environment") instead of the endpoint value; the resolved value is still published to GITHUB_ENV.
The validation error reports only the character count, so no endpoint value is echoed to the log.
Description
Detect sandbox host now echoes the entire resolved endpoint instead of logging only that an
endpoint is set. When a repository variable or runner-process value contains an internal address or
URL-embedded credentials, the value is recorded in the job log for anyone with access to that log.


Informational

5. Operations table omits gateway variable 📘 Rule violation ⚙ Maintainability
Description
The PR makes OPENSHELL_GATEWAY_ENDPOINT a repository variable read by reusable-dispatch.yml and
changes how the action resolves it, but docs/guides/getting-started/operations.md is not updated.
That file holds the repository-variable table (rows such as FULLSEND_GCP_REGION and
FULLSEND_OPENAI_AUDIENCE), and the contributing guide requires new repository variables to be
checked against that table. Operators who look up repository variables there will not find the
gateway endpoint, and the new precedence rule (repository variable wins over the runner environment)
is documented only in advanced-setup.md.
Code

.github/workflows/reusable-dispatch.yml[1094]

+          FULLSEND_OPENSHELL_GATEWAY_ENDPOINT: ${{ vars.OPENSHELL_GATEWAY_ENDPOINT }}
Relevance

● Weak

Near-identical docs finding (repo-variable row missing from operations.md, contributing-doc rule)
was explicitly dismissed as false_positive two weeks ago.

PR-#8489

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
docs/contributing/documentation.md ('Configuration and environment variables') says that for a
repository variable, the author must check the repository-variable table in operations.md and the
documentation of the consuming feature. The PR updates the consuming feature doc
(advanced-setup.md) but leaves the table at operations.md lines 33-38 without an
OPENSHELL_GATEWAY_ENDPOINT row, so the documentation requirement is only partly met.

Rule 2806787: Verify docs changes against contributing documentation guidelines
docs/contributing/documentation.md
docs/guides/getting-started/operations.md[33-38]
docs/guides/infrastructure/advanced-setup.md[109-118]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR adds the `OPENSHELL_GATEWAY_ENDPOINT` repository variable (read in `.github/workflows/reusable-dispatch.yml` and resolved in `action.yml`) but does not add it to the repository-variable table in `docs/guides/getting-started/operations.md`. `docs/contributing/documentation.md` requires that new repository variables be checked against that table.

## Fix Focus Areas
- docs/guides/getting-started/operations.md[33-38]
- docs/guides/infrastructure/advanced-setup.md[109-118]

## Recommended Fix
Add a row for `OPENSHELL_GATEWAY_ENDPOINT` to the repository-variable table in `operations.md`, using the same columns as the neighbouring rows: name, type (`Repo variable`), a one-line description (remote OpenShell gateway `https://` endpoint; takes precedence over the runner environment; unset means local sandbox host setup), and an example value. Link to the `advanced-setup.md` section for the full precedence rule.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #9049
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Web pages:
  +2 more
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/experiments (sha: 134d8885) — View relationship
  Explored: repo: fullsend-ai/.fullsend (sha: ccd984e1) — View relationship
  Explored: repo: fullsend-ai/metrics (sha: 98734731) — View relationship
  Explored: repo: fullsend-ai/scribe (sha: 0f3eb528) — View relationship
  Explored: repo: fullsend-ai/agents (sha: 7dbe6b7e) — View relationship
  Explored: repo: fullsend-ai/mlflow-assessments (sha: 7056b1d1) — View relationship
  Explored: repo: fullsend-ai/test-creator (sha: a5082d20) — View relationship
  Explored: repo: fullsend-ai/pi-anthropic-vertex (sha: 493b84ab) — View relationship
  Explored: repo: fullsend-ai/org (sha: aca10619) — View relationship
  Explored: repo: fullsend-ai/devlake (sha: ba0670f2) — View relationship
✅ REVIEW.md
Review mode: Auto: ⚖️ Balanced: Changes CI workflow env wiring and sandbox setup precedence logic; needs full review.

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread action.yml Resolved
Comment thread .github/workflows/reusable-dispatch.yml Resolved
Comment thread action.yml Resolved
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://43604c23-site.fullsend-ai.workers.dev

Commit: c088e200b9713f1af2d98a0700acf3b7eadfb4ce

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 2:12 PM UTC · Completed 2:22 PM UTC

Commit: d412571 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.56

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:23 PM UTC · Completed 2:36 PM UTC

Commit: 8739d7d · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.82

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (5)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (6)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

Previous run (7)

Risk Assessment: moderate (2/5)

Details

While the PR touches protected workflow paths with elevated recent churn, its modest diff size, opt-in repository variable gating, and complete alignment with a low-risk issue maintain a moderate composite risk.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml:1521 — This PR modifies protected paths: .github/workflows/reusable-dispatch.yml and .github/workflows/reusable-prioritize.yml. The PR links issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.
    Remediation: A human maintainer must review and approve the workflow changes.
  • [fail-open] action.yml:473 — Endpoint pinning is opt-in. When FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED is absent or empty, a non-empty repository or organization variable replaces the runner's own gateway endpoint (lines 454-459). On a shared runner pool where a fleet image sets OPENSHELL_GATEWAY and the gateway uses bearer auth (OIDC or Cloudflare edge, without pinned-CA mTLS), anyone who can write Actions variables in one repository can send that gateway's credentials to any HTTPS host they choose; the https/whitespace check at line 499 does not prove the host is the operator's gateway. Malformed lock values are rejected and lock=1 rejects a differing repository endpoint. advanced-setup.md documents the precedence and the opt-in lock as deliberate, and notes workflow writers can bypass the lock anyway.
    Remediation: Consider pinning by default for runner-provisioned gateways, or require explicit operator opt-in before honoring an endpoint chosen by a repository.

Low

  • [backward-incompatible] .github/workflows/reusable-dispatch.yml:1521 — The reusable workflows now read vars.OPENSHELL_GATEWAY_ENDPOINT from the calling repository and pass it as FULLSEND_OPENSHELL_GATEWAY_ENDPOINT (seven steps in reusable-dispatch.yml plus reusable-prioritize.yml). A non-empty variable takes precedence over the runner's own OPENSHELL_GATEWAY_ENDPOINT, so callers that already hold an organization or repository variable of that name for another purpose will have runs redirected to it. The opt-in lock mitigates this but the default is unlocked. The precedence change is documented.
    Remediation: Call out the precedence change and the lock in the release notes, or make the default safer.
  • [breaking-config] action.yml:499 — The runner-environment contract for OPENSHELL_GATEWAY_ENDPOINT is stricter. Previously any non-empty value selected remote mode; now it must be a single https URL with no whitespace, so plaintext, scheme-less, uppercase-scheme or whitespace-containing values fail the job. The PR is marked ! and advanced-setup.md documents the migration. Fleet images maintained outside this repository will break on upgrade.
    Remediation: No code change required. Keep the ! marker and migration note; mention the stricter validation in the release notes.
  • [breaking-config] action.yml:508 — The Detect sandbox host step now exports the resolved OPENSHELL_GATEWAY_ENDPOINT through GITHUB_ENV, a new side effect for later steps in the caller's job (including a repository-variable value that overrides the runner's own).
    Remediation: Document the GITHUB_ENV export as part of the action's contract.

Earlier findings

  • action.yml:473, breaking-config — resolved: the lock variable's purpose, valid values and fail-closed behavior are documented in advanced-setup.md ("Shared runner pools") and rejection is covered by tests.
  • action.yml:454, breaking-config — reclassified low → info: the new env channel is additive and falls back to the runner endpoint when empty.
  • .github/workflows/reusable-dispatch.yml:1521, scope-creep — remains informational: extension agreed as follow-up design in fix(#9044): skip local sandbox host setup for remote OpenShell gateway #9049.

2 finding(s) below the low severity threshold were not posted.

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoiYWN0aW9uLnltbCIsImlkIjoiZl83MTdlOTkxZDcxMmM2YTZjIiwibGluZSI6NDczLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoiaW5mbyIsImNhd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5jZSJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsInN0YXR1cyI6InJlY2xhc3NpZmllZCJ9LHsiaWQiOiJmX2Y1ZGUwNWEzN2UwMmQ5YjkiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9iMTJkMjkxMTA0N2NiZTU3Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzBiZDcxOGIzOGE0MjIxMTAiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfOGE1MTc0NzY0ZTNjNjEyOCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8yYTViNGZmM2E0N2Q1ZjI5Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2Y2YjkxNWQwMDQ3NmY5YzMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [fail-open] action.yml:473 — The endpoint lock is opt-in. When FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED is absent or empty, a non-empty repository or organization variable (FULLSEND_OPENSHELL_GATEWAY_ENDPOINT) takes precedence over the runner's OPENSHELL_GATEWAY_ENDPOINT and is published to GITHUB_ENV. On the base branch the endpoint could come only from the runner environment, so this PR adds a repository-controlled channel that is open by default. On a shared runner pool with a bearer-auth gateway, someone who can write Actions variables in one repository could point the gateway's credentials at a host they choose, unless the runner operator sets the lock. The precedence is documented as deliberate and the lock as opt-in (advanced-setup.md, "Precedence and validation" and "Shared runner pools"). Setting an Actions variable needs repository admin or org owner rights, and the docs note that workflow writers can set step env: overrides that the lock does not stop. The credential-forwarding code is outside this tree, so the actual impact was not verified. Checked in the step script: a malformed lock value fails the job; lock=1 rejects a differing repository endpoint and rejects a repository endpoint on a runner with no endpoint of its own; an absent or empty lock accepts both. The https/whitespace check validates the format of the value, not where it points. This is a design decision for the maintainers. See also: [breaking-config] finding at this location.
    Remediation: Consider defaulting to locked whenever the runner sets its own OPENSHELL_GATEWAY_ENDPOINT, with an explicit runner-side opt-out (LOCKED=0), or at minimum call out the default-open posture for shared pools in the release notes. Test the absent, empty, malformed, 0 and 1 lock cases against both endpoint channels.

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/reusable-prioritize.yml — This PR modifies files under the protected .github/ path. The PR links issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 and its description explains the change, but human approval is always required for protected-path changes, regardless of context.

Low

  • [breaking-config] action.yml:466 — The Detect sandbox host step now requires the resolved endpoint to be a single https:// URL with no whitespace. On the base branch any non-empty runner OPENSHELL_GATEWAY_ENDPOINT skipped local setup without validation, so a runner that exports a non-https value now fails the job. The break is intentional and marked with !.
    Remediation: Call out the validation as a breaking change in the release notes; optionally allow http:// for loopback endpoints.

  • [backward-incompatible] .github/workflows/reusable-dispatch.yml:1521 — All seven agent steps (lines 1521, 1653, 1830, 2100, 2219, 2321, 2703) pass FULLSEND_OPENSHELL_GATEWAY_ENDPOINT from vars.OPENSHELL_GATEWAY_ENDPOINT. A repository or calling repository that already has a variable with that name, set for another purpose, will switch to remote-gateway mode and skip Podman.
    Remediation: Note in the release notes that an existing OPENSHELL_GATEWAY_ENDPOINT repository or organization variable now changes behavior.

  • [breaking-config] action.yml:473 — New operator contract: FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED accepts 1, 0 or empty, and any other value fails the job. The lock works only when set in the runner's process environment; a step or job env: could override it, which the docs accept as out of scope for workflow writers. With lock=1, a non-empty repository variable fails the job when the runner has no OPENSHELL_GATEWAY_ENDPOINT, so fleet images that set only OPENSHELL_GATEWAY cannot combine the lock with a repository variable. The FULLSEND_ prefix is shared with the channel the workflow supplies. See also: [fail-open] finding at this location.
    Remediation: Keep the strict parsing; document in the config reference that the lock must be set at runner level; consider a distinct prefix for settings that only runner operators control.

Earlier findings

  • docs/guides/infrastructure/advanced-setup.md:118, architectural-conflict — resolved. The latest push replaces the reference to runs driven from the .fullsend config repository with per-repo framing ("a custom poller or other external repository calling the reusable workflow").
  • .github/workflows/reusable-dispatch.yml:1521, scope-creep — reclassified low → info. The workflow plumbing is how the PR's titled feature (repository variable to action) reaches the action; the workflow files are unchanged since the prior review.

1 finding(s) below the low severity threshold were not posted.

Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9yZXVzYWJsZS1kaXNwYXRjaC55bWwiLCJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsImxpbmUiOjE1MjEsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYXJjaGl0ZWN0dXJhbC1jb25mbGljdCIsImZpbGUiOiJkb2NzL2d1aWRlcy9pbmZyYXN0cnVjdHVyZS9hZHZhbmNlZC1zZXR1cC5tZCIsImlkIjoiZl9mNWRlMDVhMzdlMDJkOWI5IiwibGluZSI6MTE4LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJyZWFraW5nLWNvbmZpZyIsImZpbGUiOiJhY3Rpb24ueW1sIiwiaWQiOiJmX2IxMmQyOTExMDQ3Y2JlNTciLCJsaW5lIjo0NjYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjcm9zcy1yZXBvLWNvbnRyYWN0cyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJhY2t3YXJkLWluY29tcGF0aWJsZSIsImZpbGUiOiIuZ2l0aHViL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seyJpZCI6ImZfMGJkNzE4YjM4YTQyMjExMCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl84YTUxNzQ3NjRlM2M2MTI4Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzJhNWI0ZmYzYTQ3ZDVmMjkiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfZjZiOTE1ZDAwNDc2ZjljMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

Low

  • [scope-creep] .github/workflows/reusable-dispatch.yml:1521 — The PR passes vars.OPENSHELL_GATEWAY_ENDPOINT as FULLSEND_OPENSHELL_GATEWAY_ENDPOINT through all seven agent-run steps and the prioritize workflow, and adds https-only validation (feat!). Issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 only asked to skip local Podman/gateway setup when the runner's own environment sets the endpoint. The PR body says a maintainer agreed this design in the fix(#9044): skip local sandbox host setup for remote OpenShell gateway #9049 follow-up thread; that could not be verified from the PR inputs.
    Remediation: Confirm the maintainer agreement, or link a feature issue tracking the repository-variable channel and stricter validation.
  • [architectural-conflict] docs/guides/infrastructure/advanced-setup.md:118 — The new text refers to runs "driven from the .fullsend config repository", a per-org installation concept deprecated by ADR 0044. The calling-repository caveat itself remains valid in per-repo mode.
    Remediation: Keep the caveat but describe it in per-repo terms (e.g. custom pollers or external repositories calling the reusable workflow); drop the .fullsend config repository reference.
  • [breaking-config] action.yml:466 — Detect sandbox host now rejects any OPENSHELL_GATEWAY_ENDPOINT that is not a single https URL without whitespace. On main any non-empty value selected remote mode, so runners with plaintext, scheme-less or whitespace-padded values will fail after upgrade. The ! marker and the migration note in advanced-setup.md cover the break.
    Remediation: Call out the stricter validation in the release notes; optionally trim trailing whitespace before validating.
  • [backward-incompatible] .github/workflows/reusable-dispatch.yml:1521 — The repository variable now takes precedence over the runner's OPENSHELL_GATEWAY_ENDPOINT; an existing variable of that name used for another purpose will switch runs to remote-gateway mode, and it is read from the calling repository so the effect differs by run type.
    Remediation: Document the precedence and calling-repository scoping in the migration notes (advanced-setup.md already covers most of it).
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9yZXVzYWJsZS1kaXNwYXRjaC55bWwiLCJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsImxpbmUiOjE1MjEsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYnJlYWtpbmctY29uZmlnIiwiZmlsZSI6ImFjdGlvbi55bWwiLCJpZCI6ImZfYjEyZDI5MTEwNDdjYmU1NyIsImxpbmUiOjQ2NiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL3JldXNhYmxlLWRpc3BhdGNoLnltbCIsImlkIjoiZl8wYmQ3MThiMzhhNDIyMTEwIiwibGluZSI6MTUyMSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn0seyJzZXZlcml0eSI6ImluZm8iLCJjYXRlZ29yeSI6InNjb3BlLWNyZWVwIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL3JldXNhYmxlLWRpc3BhdGNoLnltbCIsImlkIjoiZl84YTUxNzQ3NjRlM2M2MTI4IiwibGluZSI6MTEwMiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifSx7InNldmVyaXR5IjoiaW5mbyIsImNhdGVnb3J5IjoiaW5jb21wbGV0ZS1kb2MiLCJmaWxlIjoiZG9jcy9ndWlkZXMvZ2V0dGluZy1zdGFydGVkL29wZXJhdGlvbnMubWQiLCJpZCI6ImZfMmE1YjRmZjNhNDdkNWYyOSIsImxpbmUiOjMzLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJpbnRlcm5hbC9zY2FmZm9sZC9hY3Rpb25fc2FuZGJveF9ob3N0X3Rlc3QuZ28iLCJpZCI6ImZfZjZiOTE1ZDAwNDc2ZjljMyIsImxpbmUiOjEzMiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzY1MjdkODVmNDZmNzQwY2QiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfOGE1MTc0NzY0ZTNjNjEyOCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8yYTViNGZmM2E0N2Q1ZjI5Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2Y2YjkxNWQwMDQ3NmY5YzMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

Low

  • [scope-creep] .github/workflows/reusable-dispatch.yml:1521 — Carried-over prior finding on the FULLSEND_OPENSHELL_GATEWAY_ENDPOINT mapping from vars.OPENSHELL_GATEWAY_ENDPOINT. Issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 asked only for runner-environment detection, and the visible authorization for repository-variable sourcing is the author's own comment pointing at a fix(#9044): skip local sandbox host setup for remote OpenShell gateway #9049 review thread, not a maintainer comment on the issue. Advisory only; no concrete defect.
  • [breaking-config] action.yml:466 — The "Detect sandbox host" step now exits 1 when the endpoint is not a single https:// URL with no whitespace, for the runner-environment fallback as well as the new repository-variable channel. The ! marker and BREAKING CHANGE: footer disclose this, but the guide does not say that list item 2 (runner-environment fallback) is held to the same rule, and it has no migration note.
    Remediation: Optionally state in list item 2 of docs/guides/infrastructure/advanced-setup.md that the runner-environment value must also be a single https:// URL, and keep the BREAKING CHANGE note in the squash-merge body.
  • [backward-incompatible] .github/workflows/reusable-dispatch.yml:1521 — A non-empty repository or organization variable OPENSHELL_GATEWAY_ENDPOINT now takes precedence over the runner's own value and is exported to GITHUB_ENV, so consumers who already have a variable with this name will see their routing change. The guide documents this as deliberate and the caller contract is unchanged, but the precedence change has no BREAKING CHANGE footer.
    Remediation: Mention the new variable precedence in the release notes alongside the breaking marker.
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9yZXVzYWJsZS1kaXNwYXRjaC55bWwiLCJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsImxpbmUiOjExMDQsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImluZm8iLCJjYXRlZ29yeSI6InNjb3BlLWNyZWVwIiwiZmlsZSI6Ii5naXRodWIvd29ya2Zsb3dzL3JldXNhYmxlLWRpc3BhdGNoLnltbCIsImlkIjoiZl84YTUxNzQ3NjRlM2M2MTI4IiwibGluZSI6MTEwMiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifSx7InNldmVyaXR5IjoiaW5mb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MiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmX2Y2YjkxNWQwMDQ3NmY5YzMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8yYTViNGZmM2E0N2Q1ZjI5Iiwic3RhdHVzIjoicmVjbGFzc2lmaWVkIn0seyJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsInN0YXR1cyI6Im9wZW4ifV19 -->

Review

Findings

Medium

Earlier findings


Labels: PR updates user-facing infrastructure documentation in addition to sandbox and dispatch code.


2 finding(s) below the low severity threshold were not posted.

Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJpbnRlcm5hbC9zY2FmZm9sZC9hY3Rpb25fc2FuZGJveF9ob3N0X3Rlc3QuZ28iLCJpZCI6ImZfZjZiOTE1ZDAwNDc2ZjljMyIsImxpbmUiOjEzMiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvbXBsZXRlLWRvYyIsImZpbGUiOiJkb2NzL2d1aWRlcy9nZXR0aW5nLXN0YXJ0ZWQvb3BlcmF0aW9ucy5tZCIsImlkIjoiZl8yYTViNGZmM2E0N2Q1ZjI5IiwibGluZSI6MzMsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImRvY3MtY3VycmVuY3kifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiIuZ2l0aHViL3dvcmtmbG93cy9yZXVzYWJsZS1kaXNwYXRjaC55bWwiLCJpZCI6ImZfNjUyN2Q4NWY0NmY3NDBjZCIsImxpbmUiOjEwOTQsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dfQ== -->

Review

Findings

Medium

Low

  • [pattern-inconsistency] internal/scaffold/action_sandbox_host_test.go:132 — require.Error(t, err, string([]rune{})) passes a synthetic empty message, and the following assert.NotNil(t, err) can never fail because require.Error already stops the test.
    Remediation: Replace both lines with require.Error(t, err).

  • [incomplete-doc] docs/guides/getting-started/operations.md:33 — The repository-variable table in "Updating configuration values" does not list the new OPENSHELL_GATEWAY_ENDPOINT repository/organization variable. docs/contributing/documentation.md says to check this table when adding a repository variable. The feature guide (advanced-setup.md) is updated in this PR.
    Remediation: Add an OPENSHELL_GATEWAY_ENDPOINT row to that table (optional repo or org variable; remote OpenShell gateway endpoint; takes precedence over the runner environment).

  • [scope-creep] .github/workflows/reusable-dispatch.yml:1094 — Issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 describes skipping local sandbox-host setup when OPENSHELL_GATEWAY_ENDPOINT is set in the runner process environment. Sourcing the endpoint from repository/organization variables with precedence over the runner environment goes beyond the issue text; the stated authorization is a design agreement in PR fix(#9044): skip local sandbox host setup for remote OpenShell gateway #9049's thread. The runner-environment path is kept as a fallback and the change delivers the same feature.
    Remediation: Optionally record on issue action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044 that repository/organization variable sourcing and its precedence are intended, for traceability.


Labels: PR changes workflow dispatch plumbing and sandbox host setup for a remote OpenShell gateway


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added component/dispatch Workflow dispatch and triggers component/sandbox OpenShell sandbox environment labels Nov 6, 2026

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review-only comments, no changes requested.

[MEDIUM] No threading test guards FULLSEND_OPENSHELL_GATEWAY_ENDPOINT across the agent call sites (internal/scaffold/workflow_call_alignment_test.go, near TestOTELVariableForwarding; the file is not in this diff, so this comment goes here)

The second commit added the missing reusable-prioritize.yml hop. Missing a hop like that is what this file's threading tests exist to catch: TestOTELVariableForwarding, TestOTELHeadersSecretThreading, TestJiraCredentialSecretThreading and TestInferenceGatewayAPIKeySecretThreading. At 8739d7d, no test checks that FULLSEND_OPENSHELL_GATEWAY_ENDPOINT: ${{ vars.OPENSHELL_GATEWAY_ENDPOINT }} is present in each of the 7 uses: ./.defaults/ agent steps in reusable-dispatch.yml (triage, code, review, fix, retro, prioritize, harness) or in reusable-prioritize.yml. action_sandbox_host_test.go tests only the action script. If a new agent stage is added or a step is edited without this line, that stage silently ignores the remote gateway.

Suggestion: add a sibling test to TestOTELVariableForwarding that checks every uses: ./.defaults/ agent step in reusable-dispatch.yml and reusable-prioritize.yml contains FULLSEND_OPENSHELL_GATEWAY_ENDPOINT: ${{ vars.OPENSHELL_GATEWAY_ENDPOINT }}.

Comment on lines +109 to +110
elsewhere. Set the `OPENSHELL_GATEWAY_ENDPOINT` repository (or organization)
variable in the repository being dispatched to that gateway's `https://`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] Docs name the wrong repository for the variable: vars comes from the calling workflow's repository

The guide says to set OPENSHELL_GATEWAY_ENDPOINT "in the repository being dispatched". In a reusable workflow, vars is read from the repository whose workflow calls it, not from the work-item repository. That makes the guide wrong for some callers:

  • reusable-prioritize.yml is called by the config repo's prioritize.yml (internal/scaffold/fullsend-repo/.github/workflows/prioritize.yml, uses: __REUSABLE_WORKFLOW__), with the work item passed as inputs.source_repo. So the config repo's variable applies, not the one on the prioritized repo.
  • reusable-dispatch.yml callers that run from the config repo have the same issue: the Jira and custom pollers, and the harness matrix stage.

If an operator sets the variable on the work-item repo, nothing reports an error; the action quietly falls back to the runner environment or local Podman setup.

Suggestion: name the repository explicitly: the repository whose workflow calls reusable-dispatch.yml or reusable-prioritize.yml (the repo with the fullsend shim, or the .fullsend config repo for prioritize, poller and harness runs). An organization variable visible to that repository also works. Optionally, log github.repository in the Detect step so operators can see whose variables were used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 9c9cc6b: the guide now names the repository where the workflow run is triggered (the one whose Actions tab shows the run), notes that for the standard per-repo install that is the work-item repository itself, and says a variable set only on a different work-item repository is not read. The two configuration ways are now a numbered list.

Base automatically changed from agent/9044-skip-local-sandbox-host to main November 9, 2026 15:02
@jctanner
jctanner force-pushed the jtanner/9044-gateway-endpoint-repo-variable branch from 8739d7d to 9c9cc6b Compare November 10, 2026 11:32
jctanner added a commit that referenced this pull request Nov 10, 2026
…d test

Review follow-ups on #9158:

- The gateway setup steps were buried in one narrative paragraph; the
  guide now uses a numbered list, and names the repository the variable
  is read from: in a reusable workflow, `vars` comes from the calling
  workflow's repository (the repository with the fullsend shim, or the
  .fullsend config repository for prioritize, poller and harness-matrix
  runs), not the work-item repository. A variable set on the work-item
  repository is not read and fails silently, so the guide says so.
- Drop a synthetic empty message and a redundant assertion in the
  sandbox-host detection test: require.Error(t, err) alone.

Signed-off-by: jtanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:34 AM UTC · Completed 11:45 AM UTC

Commit: 9c9cc6b · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.34

jctanner added a commit that referenced this pull request Nov 16, 2026
…d test

Review follow-ups on #9158:

- The gateway setup steps were buried in one narrative paragraph; the
  guide now uses a numbered list, and names the repository the variable
  is read from: in a reusable workflow, `vars` comes from the calling
  workflow's repository (the repository with the fullsend shim, or the
  .fullsend config repository for prioritize, poller and harness-matrix
  runs), not the work-item repository. A variable set on the work-item
  repository is not read and fails silently, so the guide says so.
- Drop a synthetic empty message and a redundant assertion in the
  sandbox-host detection test: require.Error(t, err) alone.

Signed-off-by: jtanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:26 PM UTC · Completed 6:38 PM UTC

Commit: b9f1730 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.71

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review-only comments, no changes requested.

Comment thread action.yml
# and must not shadow a value configured in the runner's own process
# environment, so the fallback reads OPENSHELL_GATEWAY_ENDPOINT only
# when the workflow channel is empty (#9044).
endpoint="${FULLSEND_OPENSHELL_GATEWAY_ENDPOINT:-}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] A repository variable outranks the runner operator's endpoint, so on a shared pool one repository can send the gateway's bearer token to any host

At b9f1730, lines 454-459: a non-empty FULLSEND_OPENSHELL_GATEWAY_ENDPOINT (vars.OPENSHELL_GATEWAY_ENDPOINT) always wins. The runner's OPENSHELL_GATEWAY_ENDPOINT is read only when that variable is empty, and the operator has no way to lock it. The only check is ^https://[^[:space:]]+$, so any https host passes.

In OpenShell v0.1.4, when OPENSHELL_GATEWAY is set, no endpoint matching happens and the named gateway's stored auth is sent to whatever endpoint is given. From crates/openshell-cli/src/tls.rs at v0.1.4:

  • OIDC mode adds an authorization: Bearer <token> header (line 40).
  • Bearer-over-HTTPS without registered mTLS material falls back to ClientTlsConfig::new().with_enabled_roots() (line 434), which trusts the system/public CAs.
  • Cloudflare edge mode sends the edge token (line 374).

Impact: anyone who can write Actions variables in one repository on a shared runner pool can point the variable at a host with a public certificate. That host then receives the shared gateway's OIDC or edge bearer token, and the token works for every other repository's sandboxes on that gateway. Only pinned-CA mTLS blocks this.

Prior context: the earlier precedence thread on these lines was about the #9044 requirement wording and was resolved as intended design. The shared-pool docs thread suggested an operator opt-out, which was deferred as a follow-up. Neither covered reusable bearer tokens leaving the gateway, the docs still do not say this, and I found no follow-up issue for the opt-out.

Suggestion: give the runner operator a lock.

  1. When the runner sets OPENSHELL_GATEWAY, or a flag such as FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED=1, the runner value wins, and a repository variable with a different value fails the job.
  2. Or: when OPENSHELL_GATEWAY is set, accept the repository variable only if it equals that gateway's registered endpoint (from openshell gateway info, after removing a trailing slash).

Either way, the shared-pool docs should say plainly that on bearer-auth gateways (OIDC or Cloudflare edge) the repository variable can send a reusable bearer token to any host. At minimum, file the deferred opt-out as a tracked issue before merge.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in d4ea049: the action now has an operator lock, fail-closed. When the runner's process environment sets FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED=1 together with the runner's own OPENSHELL_GATEWAY_ENDPOINT, the runner value wins and a repository variable naming a different endpoint fails the job. The lock also fails a repository variable on a locked runner with no endpoint of its own (the fleet-image case you describe, where the gateway is registered under OPENSHELL_GATEWAY without exporting the endpoint), and a lock value other than 1, 0 or empty fails rather than silently meaning unlocked. Seven lock cases are in the test harness. The guide states the bearer-token risk plainly, documents the lock and its runner-endpoint prerequisite, and notes the lock defends against variable-only writers — workflow writers remain a runner-group access-control concern. The tracking issue is #9569. I went with your first-listed shape (the dedicated flag rather than keying on OPENSHELL_GATEWAY, to avoid overloading an existing variable's meaning); happy to add the match-registered-endpoint check as a follow-up if you'd prefer the stricter semantics.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:37 AM UTC · Completed 12:50 AM UTC

Commit: d4ea049 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.40

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One finding from a review pass, posted inline.

Comment thread .github/workflows/reusable-dispatch.yml Resolved
Follow-up to #9049, per the design agreed with rh-hemartin: the dispatch
workflow reads vars.OPENSHELL_GATEWAY_ENDPOINT and passes it to the agent
action via a dedicated FULLSEND_OPENSHELL_GATEWAY_ENDPOINT channel, so an
unset repository variable (rendered as an empty string) cannot shadow a
value configured in the runner's own process environment. The action's
detection prefers a non-empty workflow channel, falls back to the runner
process environment, and publishes the resolved endpoint to GITHUB_ENV
for the sandbox setup. Workflow env is the infrastructure-plumbing
channel (ADR 0081); the runner-env detection remains as a documented
fallback for fleet-managed runner images, with the workflow value taking
precedence.

Addresses #9044

Signed-off-by: jtanner <tanner.jc@gmail.com>
…riable

Review follow-up (Claude Sonnet 5.5 + Codex gpt-6.1 cross-review):

- The standalone reusable-prioritize.yml also invokes the agent action;
  pass the repository-variable channel there too (missed call site).
- Reject endpoints that are not a single https:// URL with no whitespace
  before logging or writing them to GITHUB_ENV: a newline in the value
  would become a separate assignment for later steps, and whitespace-only
  configuration would silently suppress the runner-environment fallback.
- Log the endpoint's source channel, not its value (repository variables
  are not masked in public logs).
- Tests: propagation is now asserted unconditionally (remote cases must
  publish the resolved endpoint, local cases must write nothing), the
  runner-only cases assert the published value, and rejection cases cover
  whitespace-only, newline-injected, and non-https endpoints.
- Docs: organization variables apply too; the precedence is stated as
  deliberate (repository administrators choose the gateway for their
  runs); the single-URL requirement is documented.

BREAKING CHANGE: the sandbox-host detection now rejects an endpoint that
is not a single https:// URL with no whitespace, where any non-empty
value was previously accepted. Runner environments configured with a
plaintext http:// endpoint, a value with no scheme, or an uppercase
scheme must switch to an https:// URL; gateways that serve only
plaintext are no longer supported through this path. The no-whitespace
rule keeps GITHUB_ENV injection out either way. Separately, a non-empty
repository or organization variable OPENSHELL_GATEWAY_ENDPOINT now takes
precedence over a value configured in the runner's own process
environment; consumers who already hold a variable with this name will
see their routing change.

Signed-off-by: jtanner <tanner.jc@gmail.com>
…d test

Review follow-ups on #9158:

- The gateway setup steps were buried in one narrative paragraph; the
  guide now uses a numbered list, and names the repository the variable
  is read from: in a reusable workflow, `vars` comes from the calling
  workflow's repository (the repository with the fullsend shim, or the
  .fullsend config repository for prioritize, poller and harness-matrix
  runs), not the work-item repository. A variable set on the work-item
  repository is not read and fails silently, so the guide says so.
- Drop a synthetic empty message and a redundant assertion in the
  sandbox-host detection test: require.Error(t, err) alone.

Signed-off-by: jtanner <tanner.jc@gmail.com>
Review follow-up: the guide read as if setting the variable was all an
installation needed. OpenShell matches the configured endpoint against
the gateways registered on the runner (openshell gateway add, which
stores the mTLS or authentication material), and a value that does not
match a registered endpoint makes the sandbox fail later at the TLS or
authentication handshake, with an error that does not point at the
cause. The section now says the gateway must already be registered and
that the variable must repeat the registered endpoint exactly.

Signed-off-by: jtanner <tanner.jc@gmail.com>
Review follow-up: the wantErr branch accepted any non-zero exit, so the
whitespace, newline-injection and non-https cases would also have passed
if the script had failed for an unrelated reason (a syntax error, a
missing tool on the restricted PATH). runDetectSandboxHost now returns
the combined output and the parsed GITHUB_ENV/GITHUB_OUTPUT maps on
failure too, and the rejection cases assert the step's own validation
error is printed and that nothing is published to GITHUB_ENV or
GITHUB_OUTPUT — the property the newline guard exists to protect. The
runner-environment fallback channel, which turns a bad value that used
to be accepted into a hard failure, now has its own rejection cases
instead of only the workflow channel.

Signed-off-by: jtanner <tanner.jc@gmail.com>
…plicitly

Review follow-up: OpenShell matches the configured endpoint against the
registered gateways only when OPENSHELL_GATEWAY is not set on the
runner. When a fleet image sets it, the named gateway's registered
material is used with whatever endpoint the variable holds, so on a
shared runner pool a repository variable from any one repository
decides where that gateway is used. The guide now says both, and states
that plaintext http:// gateways are rejected (the breaking-change note
on the validating commit).

Signed-off-by: jtanner <tanner.jc@gmail.com>
…ests

Review follow-ups:

- The gateway section had grown back into a single block; it is now
  short labelled paragraphs (what is skipped, registration, endpoint
  matching with and without OPENSHELL_GATEWAY, precedence and
  validation, shared runner pools, CLI preinstall for remote-gateway
  runners), the over-long line is rewrapped, and the mismatch failure
  quotes the actual OpenShell error (failed to read TLS CA under a
  gateways/<name>/mtls path) instead of describing a TLS or
  authentication handshake. The shared-pool warning names the
  OPENSHELL_GATEWAY precondition and says each repository's variable
  steers its own runs, and the migration note in the fallback item is
  version-agnostic and covers uppercase schemes.
- The tests now assert that every endpoint value the case supplied —
  including the losing channel's value in the precedence case, and each
  line of a newline-injected value — never appears in the step's
  output, and that the success log names the channel the endpoint came
  from, so a future echo of the value cannot regress the redaction
  silently.

Signed-off-by: jtanner <tanner.jc@gmail.com>
Review follow-up on the bearer-token finding: on a shared runner pool
with a bearer-auth gateway (OIDC or Cloudflare edge, without pinned-CA
mTLS), anyone who can write Actions variables in one repository could
point OPENSHELL_GATEWAY_ENDPOINT at a host of their choosing, and the
gateway's reusable bearer token would be sent there, because the
repository variable wins over the runner's own value and the only
validation is the https-URL shape.

Add an operator lock: when the runner's process environment sets
FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED=1 together with the runner's
own OPENSHELL_GATEWAY_ENDPOINT, the runner value wins and a repository
variable naming a different endpoint fails the job instead of
redirecting the credentials. The lock is fail-closed: a repository
variable also fails on a locked runner with no endpoint of its own (a
fleet image may register the gateway under OPENSHELL_GATEWAY without
exporting the endpoint), and a lock value other than 1, 0 or empty
fails rather than silently meaning unlocked. The lock is opt-in and
defends against variable-only writers; workflow writers remain a
runner-group access-control concern. The guide states the bearer-token
risk plainly, documents the lock and its runner-endpoint prerequisite,
and the config-repository wording is updated to per-repo terms per ADR
0044.

Signed-off-by: jtanner <tanner.jc@gmail.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 4:03 AM UTC · Completed 4:18 AM UTC

Commit: c088e20 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.27

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread action.yml
# fleet image may register the gateway under OPENSHELL_GATEWAY
# without exporting OPENSHELL_GATEWAY_ENDPOINT), and a value other
# than 1, 0 or empty fails rather than silently meaning unlocked.
lock="${FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED:-}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] fail-open

Endpoint pinning is opt-in. When FULLSEND_OPENSHELL_GATEWAY_ENDPOINT_LOCKED is absent or empty, a non-empty repository or organization variable replaces the runner's own gateway endpoint (lines 454-459). On a shared runner pool where a fleet image sets OPENSHELL_GATEWAY and the gateway uses bearer auth (OIDC or Cloudflare edge, without pinned-CA mTLS), anyone who can write Actions variables in one repository can send that gateway's credentials to any HTTPS host they choose; the https/whitespace check at line 499 does not prove the host is the operator's gateway. Malformed lock values are rejected and lock=1 rejects a differing repository endpoint. advanced-setup.md documents the precedence and the opt-in lock as deliberate, and notes workflow writers can bypass the lock anyway. Severity is anchored to the prior assessment: this code is unchanged since the prior review.

Suggested fix: Consider pinning by default for runner-provisioned gateways, or require explicit operator opt-in before honoring an endpoint chosen by a repository.

# (#9044): passed via a dedicated channel so an unset variable
# (rendered as an empty string) does not shadow a value configured
# in the runner's own process environment.
FULLSEND_OPENSHELL_GATEWAY_ENDPOINT: ${{ vars.OPENSHELL_GATEWAY_ENDPOINT }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] backward-incompatible

The reusable workflows now read vars.OPENSHELL_GATEWAY_ENDPOINT from the calling repository and pass it as FULLSEND_OPENSHELL_GATEWAY_ENDPOINT (seven steps in reusable-dispatch.yml plus reusable-prioritize.yml). A non-empty variable takes precedence over the runner's own OPENSHELL_GATEWAY_ENDPOINT, so callers that already hold an organization or repository variable of that name for another purpose will have runs redirected to it. The opt-in lock mitigates this but the default is unlocked. The precedence change is documented.

Suggested fix: Call out the precedence change and the lock in the release notes, or make the default safer.

Comment thread action.yml
# single https:// URL with no whitespace. This also rejects
# whitespace-only configuration, which would otherwise suppress
# the fallback and select an unusable remote mode.
if [[ ! "$endpoint" =~ ^https://[^[:space:]]+$ ]]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] breaking-config

The runner-environment contract for OPENSHELL_GATEWAY_ENDPOINT is stricter. Previously any non-empty value selected remote mode; now it must be a single https URL with no whitespace, so plaintext, scheme-less, uppercase-scheme or whitespace-containing values fail the job. The PR is marked ! and advanced-setup.md documents the migration. Fleet images maintained outside this repository will break on upgrade.

Suggested fix: No code change required. Keep the ! marker and migration note; mention the stricter validation in the release notes.

Comment thread action.yml
# The sandbox setup reads OPENSHELL_GATEWAY_ENDPOINT from the
# environment; publish the resolved value for the later steps.
if [[ -n "${GITHUB_ENV:-}" ]]; then
echo "OPENSHELL_GATEWAY_ENDPOINT=${endpoint}" >> "${GITHUB_ENV}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] breaking-config

The Detect sandbox host step now exports the resolved OPENSHELL_GATEWAY_ENDPOINT through GITHUB_ENV, a new side effect for later steps in the caller's job (including a repository-variable value that overrides the runner's own).

Suggested fix: Document the GITHUB_ENV export as part of the action's contract.

# (#9044): passed via a dedicated channel so an unset variable
# (rendered as an empty string) does not shadow a value configured
# in the runner's own process environment.
FULLSEND_OPENSHELL_GATEWAY_ENDPOINT: ${{ vars.OPENSHELL_GATEWAY_ENDPOINT }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] protected-path

This PR modifies protected paths: .github/workflows/reusable-dispatch.yml and .github/workflows/reusable-prioritize.yml. The PR links issue #9044 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Suggested fix: A human maintainer must review and approve the workflow changes.

decides which endpoint receives that gateway's registered credentials
for its runs. On a bearer-auth gateway (OIDC or Cloudflare edge, without
pinned-CA mTLS), that means anyone who can write Actions variables in
one repository can send the gateway's reusable bearer token to any host

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] The shared-runner docs understate what a redirected endpoint receives. Provider credentials go to it too, not only the bearer token.

This paragraph says a repository variable can send "the gateway's reusable bearer token to any host with a public certificate". That part is correct for OpenShell v0.1.4. With OPENSHELL_GATEWAY set, resolve_gateway keeps the named gateway, and apply_auth_with_status attaches its stored OIDC or edge token.

But fullsend then runs openshell provider create ... --credential KEY against the same resolved endpoint (internal/sandbox/sandbox.go, around lines 1142-1225). The CLI reads each credential value from the environment and stores it on the gateway. So a host picked through a repository variable also receives the inference API keys and any forge token registered as a provider credential. The exposure is larger than the paragraph says, and the lock is opt-in.

This is about how the doc describes the exposure, not about the opt-in default, which earlier threads already settled.

Suggestion: say that the redirected host receives the gateway bearer token and also every provider credential fullsend registers for the run (inference API keys, forge tokens). Operators of bearer-auth shared pools can then judge whether they need the lock with the full exposure in view.

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — c088e200 Deployed Nov 18, 2026 by github-actions[bot]
dev — c088e200 Deployed Nov 18, 2026 by jctanner via playback #20579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/dispatch Workflow dispatch and triggers component/docs User-facing documentation component/sandbox OpenShell sandbox environment requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants