Skip to content

fix(#3373)!: block credential-class env.sandbox names; case-fold runner-secret refusal - #8496

Merged
waynesun09 merged 8 commits into
fullsend-ai:mainfrom
tpouyer:issue-3373
Oct 20, 2026
Merged

waynesun09 merged 8 commits into
fullsend-ai:mainfrom
tpouyer:issue-3373

Conversation

@tpouyer

@tpouyer tpouyer commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Close the credential-name filtering gap in env.sandbox and report the
configuration entries affected by the change. Reserved-name matching is now
case-insensitive, with migration guidance for existing harnesses. The
runner-secret bundle check does not read the credential deny-list, so
host-side proxy and CA configuration keeps working.

Related Issue

Closes #3373

Problem

The env.sandbox blocklist had drifted from the credential-key deny-list used
for URL-sourced provider definitions. Of the 32 names on that credential list,
25 could still be exported through env.sandbox.

The gate also matched names case-sensitively. Checking the credential list
without changing that lookup would block HTTPS_PROXY while continuing to
accept https_proxy.

This PR closes that name-list gap. It does not change the existing
trusted-local-provider exception or replace the broader sandbox security model.

Changes

  • Expose the credential deny-list through sandbox.IsReservedCredentialKey()
    and sandbox.ReservedCredentialKeys(), a sorted copy rather than mutable
    policy state.
  • Check those names in the env.sandbox gate beside the existing sandbox
    environment blocklist, which keeps its runner, OIDC and provider-only
    restrictions. The deny-list is not merged into that blocklist.
  • Match reserved names case-insensitively through a predicate shared by
    enforcement and diagnostics.
  • Keep the credential deny-list out of the runner-secret bundle check, which
    still reads the sandbox environment blocklist, so credential-class names
    stay usable as host-side runner secrets.
  • Match runner-secret names case-insensitively, like the sandbox gate, and
    refuse DYLD_* there as the macOS counterpart of LD_*.
  • Report reserved keys when fullsend run or fullsend lock loads the composed
    harness.
  • Add drift tests pinning both doors: credential-only names stay allowed as
    runner-secret keys while env.sandbox refuses them, and every name in
    both lists is stored uppercase so the case fold can match it.
  • Add regression tests and migration guidance.
  • Make the migration guide's OpenShell documentation link independent of the
    pinned version, so a dependency bump cannot leave it pointing at the wrong
    release, and point the harness reference and the operations guide at that
    migration section.
  • Document the new warnings in the CLI reference (docs/cli/run.md,
    docs/cli/README.md), give the harness reference an env.sandbox
    field-details entry beside the env.runner one, and cross-link the "Lock
    files" section of the local-run guide to the reserved-keys section.
  • Correct one comment in images/sandbox/Containerfile (a protected path):
    the pi floor note said the OpenShell sandbox "always" sets HTTPS_PROXY,
    which the pinned OpenShell does not do (it strips proxy variables). Comment
    only, no image change; raised and confirmed in the review thread on the
    same claim in run.go.
  • Record the decision in ADR 0145, "Keep the credential deny-list out of the
    runner-secret refusal", which amends ADR 0136's refused-name rule and
    settles that door's name set: no deny-list, case-insensitive matching, and
    the DYLD_* family. ADR 0136 gets only the italic Amended-by paragraph
    under its Status that other amended ADRs carry.
    Numbers 0143 and 0144 are claimed by open PRs docs(#8421): record entity-source discovery requirements for ADR 0098 #8559 and docs(adr): define poll and entity-bound run lifecycles #8616, so this
    ADR takes 0145; it was renumbered once already for the same reason.

Breaking change and adopter impact

BREAKING CHANGE: Previously accepted env.sandbox entries may no longer reach the sandbox.
The affected settings include:

Configuration Examples
Proxies HTTP_PROXY, HTTPS_PROXY, NO_PROXY, ALL_PROXY
TLS trust SSL_CERT_FILE, SSL_CERT_DIR, CURL_CA_BUNDLE, NODE_EXTRA_CA_CERTS
Git behavior GIT_SSH_COMMAND, GIT_CONFIG_GLOBAL, GIT_EXEC_PATH, GIT_ASKPASS, GIT_TEMPLATE_DIR
Interpreter, loader and shell behavior NODE_OPTIONS, PYTHONPATH, JAVA_TOOL_OPTIONS, LD_AUDIT, IFS, PROMPT_COMMAND and the other credential-denied names

The expansion adds 25 canonical names. Lowercase and mixed-case variants of
all reserved names are now blocked too. Existing restrictions on uppercase
names such as PATH, HOME and runner-only credentials are not new.

Runner-secret bundle keys and env.runner keys that receive a runner secret
are matched case-insensitively against the refused names, and DYLD_* is a
refused family. A bundle containing a key like path or github_token now
fails validation. Credential-class names such as HTTPS_PROXY, SSL_CERT_FILE
and GIT_SSH_COMMAND are accepted as runner-secret keys, as on main before
this PR; only the case variants of runner-owned names and the DYLD_* family
are new there.

Beyond the issue: runner-secret door tightening (needs maintainer sign-off)

Three things in this PR go past the literal scope of #3373, all at the
runner-secret door (ADR 0136) rather than the env.sandbox gate:

  • runnerSecretNameRefused matches case-insensitively, so path or
    github_token is refused like PATH or GITHUB_TOKEN.
  • DYLD_* is a refused family there, the macOS counterpart of LD_*.
    (env.sandbox still refuses only DYLD_INSERT_LIBRARIES, the one name on
    the credential list.)
  • ADR 0145 records both alongside the deny-list split.

They came out of the review thread on the runner-secret door, where keeping a
wider refusal with docs and tests was one of the two options offered. I kept
them because they fail closed and the two doors now match. If you would rather
they ship separately, say so and I will split them and ADR 0145 into a
follow-up PR.

Alternate Git and TLS controls that are not on the credential list (GIT_SSH,
GIT_CONFIG_*, REQUESTS_CA_BUNDLE, GIT_SSL_NO_VERIFY and the rest) remain
accepted for now; see #8503 for the follow-up. An AI security pass over the
final head found a few more names where the plugin-env door and env.sandbox
still disagree (tool-specific proxy names and git command-execution names);
those go on #8503 as well.

The gate skips affected exports and emits warnings; it does not reject the
entire harness solely because those keys are present. An affected agent may
therefore start but later encounter changed proxy routing, TLS failures, Git
authentication failures or missing tool configuration.

The affected population has not been measured. Adopters not using these settings
through env.sandbox do not need a configuration migration for this change.
Adopters relying on them, particularly through a shared base harness, should
audit their configuration before upgrading. The fleet harnesses in
fullsend-ai/agents set none of the newly reserved names under env.sandbox,
use no lowercase env.runner keys, and do not use the runner-secret bundle
(checked against that repo's current main), so the fleet needs no migration.

Migration

  • Corporate proxies: use operator-managed OpenShell outbound-network
    configuration for the version and compute driver you deploy, rather than
    restoring application proxy exports through .env.d. The
    OpenShell gateway configuration reference
    at the pinned tag documents policy-approved TLS CONNECT proxy chaining;
    fullsend records the version it pins in
    .github/scripts/openshell-version.sh
    at your release tag.
    Plain-HTTP destination traffic stays direct. This is not a fullsend harness
    field or a general replacement for every HTTP_PROXY or ALL_PROXY use.
    GitHub Action users: the Action writes its gateway.toml from a fixed
    template with no proxy or CA settings, and has no input for them yet. See
    Add proxy and CA configuration inputs to the fullsend GitHub Action #8505 for the planned Action proxy input.
  • Additional certificate authorities: preserve OpenShell's CA certificate
    and other required roots in workload trust, and account for the supervisor's
    separate upstream TLS verification. Follow the selected driver's certificate
    provisioning instructions in that reference, which documents
    proxy_ca_bundle for a corporate proxy. It requires https_proxy and, on
    Kubernetes, is a path in the gateway Pod rather than the host. Replacing a
    generated bundle with a custom-only file, or changing only the agent image's
    trust store, is not a verified general migration. Have the gateway operator
    validate both trust paths. The linked tag is what the pinned gateway
    supports: where it lacks additional_ca_bundle (OpenShell 0.1.5, Podman
    gateways), a private CA used without a corporate proxy has no gateway-level
    replacement for SSL_CERT_FILE or NODE_EXTRA_CA_CERTS.
  • Git settings: place git configuration with host_files (a git config or
    shell rc file the tools load) or use the tool's own configuration. Every
    launch and the runner's probes read .env.d as data and take only
    assignment lines; .env itself is still shell an agent may source, so
    keep treating these files like pre_script. Git and TLS equivalents not
    yet on the list are tracked in Harden sandbox environment policy for alternate Git and TLS controls #8503.
  • Interpreter, loader and shell names: no supported replacement route
    into the sandbox. Which of them host_files .env.d still delivers differs
    by runtime (the harness reference's .env.d host files entry lists what
    each runtime drops or unsets), and whatever it delivers it does so only
    because that file is trusted like pre_script. Do not assume moving an
    export to .env.d preserves it: the dynamic-loader, interpreter and
    shell-startup variables that entry lists are never taken from it on any
    runtime, and Claude and codex also unset several of these names at launch.
  • Host-side proxy and CA settings: credential-class names blocked from
    env.sandbox remain available as runner-secret bundle keys referenced from
    env.runner for host-side scripts (pre_script, post_script,
    validation_loop). They do not reach the sandbox child.
  • Runner credentials: direct/raw sandbox exports remain restricted. The
    supported provider-only use of GH_WORKFLOW_TOKEN, such as
    credentials.GITHUB_TOKEN: ${GH_WORKFLOW_TOKEN} for GitHub Packages, is
    unchanged. That route supplies a provider placeholder, not the raw runner
    token, inside the sandbox.
  • Other variables: exact-name matching remains in place. This is not a
    blanket ban on FULLSEND_*, *_TOKEN or custom application variables.
    Documented hook inputs remain supported.

Skipping an env.sandbox export does not unset a value supplied through another
mechanism. Enforcement takes effect immediately on upgrade; this PR does not add
a warning-only grace period or compatibility flag.

Release notes

The release body is built from PR titles, and the title names only
env.sandbox, so here is the highlight text for the release cutter to lift.
It covers the three user-visible breaks in this PR:

env.sandbox reserved names. fullsend run now refuses the
credential-class names (proxy, TLS trust, Git, interpreter, loader and
shell-behavior variables such as HTTPS_PROXY, SSL_CERT_FILE,
GIT_SSH_COMMAND and NODE_OPTIONS) from env.sandbox, and matches every
reserved name case-insensitively. Affected entries are dropped with a warning
when the harness loads; the agent still starts. Proxy and CA settings move to
the operator-managed OpenShell gateway configuration; fullsend's own
GitHub Action has no input for them yet (#8505). Runner secrets:
bundle keys and env.runner keys that receive a runner secret are now
matched case-insensitively and DYLD_* is refused, so a key such as path
or github_token fails validation before pre_script; credential-class
names such as HTTPS_PROXY stay accepted there. See
Migrating proxy and certificate settings.

Why the diagnostics are included

We should not widen a security blocklist without telling operators which
configuration stopped taking effect.

The existing per-key stderr warning appears while fullsend run writes the
sandbox environment. The new diagnostic surfaces reserved keys earlier,
alongside other harness warnings, and during harness composition by
fullsend lock.

A current lock entry still skips composition and dependency resolution, so its
keys are not checked. To obtain the composed-key warnings, use:

fullsend lock <agent-name> --update
# or
fullsend lock --all --update

--update also re-resolves dependencies and may modify the lock file. It is
not a diagnostics-only flag. lock also composes without event context, so an
env.sandbox key added by an overlay guarded on event is reported only by
fullsend run; the guide and the CLI reference say so.

Testing

Coverage includes:

  • Complete credential-list membership and preservation of existing restrictions.
  • Accessor completeness, copy isolation and deterministic ordering.
  • Case-insensitive filtering and invalid-identifier handling.
  • Allowed-variable exports and the documented hook carve-out, checked for
    delivery and not only against the predicate.
  • Diagnostic contents, ordering and actual run/lock integration.
  • --update diagnostics for reserved keys from both a base and child harness.
  • The two doors: credential-only names allowed as runner-secret keys,
    infrastructure and loader names refused at both, and case-insensitive
    matching at the runner-secret door.

The reproducer uses live enumeration to follow additions. NotEmpty guards
against an empty accessor result; separate accessor-contract and explicit-name
tests protect completeness and existing membership.

At the reproduction commit (07a6ec0f0, the test(#3373) commit of this branch), this command exercises 32 cases, of which
25 fail:

go test ./internal/cli/ -count=1 -v \
  -run '^TestReservedSandboxKeys_CoversReservedCredentialKeys$'

The same selector passes at the fix. HEAD adds independent infrastructure pins,
so its subtest count differs from the historical test.

Validation results at the current head (rebased onto current main, which
now includes #8574's change to read .env as data on every runtime):

  • The reserved-key, diagnostic, guide, lock, runner-secret and sandbox
    regressions pass with -race -count=1, and the full internal/sandbox
    suite passes.
  • make lint passed after staging the changes.
  • Approximate patch coverage: every changed production function
    (isReservedSandboxKey, buildSandboxEnvLines,
    reservedSandboxEnvDiagnostics, runnerSecretNameRefused,
    sandbox.ReservedCredentialKeys, sandbox.IsReservedCredentialKey) reports
    100% in go tool cover -func; the one changed line in lockOneAgent is
    exercised by TestLockOneAgent_ReportsReservedSandboxEnvKeys.
  • TestGuideNamesMatchTheGate still passes over the edited guide, so the prose
    changes left every named reserved key consistent with the gate.
  • Two unrelated TestRunGatewayRefresh_PendingHandOff* cases fail in a full
    local internal/cli run on this host. They fail identically in a clean
    worktree at origin/main without these changes, so they are not from this
    branch; the test check is the signal for them.

Review rounds

After the last human round I had the AI review the branch (a multi-dimension
PR review plus the repo's ADR conventions check), fixed what it found, and
repeated the review until it came back clean, again after rebasing onto
current main, and once more as a fresh full pass before this push. Fixes
that came out of those rounds:

  • the fix(#3373)! commit message (its trailer carries the GitHub Action
    caveat and its body names what later commits changed);
  • ADR 0145 renumbered twice as docs(#8421): record entity-source discovery requirements for ADR 0098 #8559 and docs(adr): define poll and entity-bound run lifecycles #8616 took 0143 and 0144, with an
    Amends: line, and ADR 0136 carrying the Amended-by paragraph under its
    Status instead of a note;
  • the harness reference's env.sandbox entry and the rewrapped "Refused
    names" bullet, the Git and interpreter classes in the migration section,
    the lock event-context caveat, and the "Lock files" cross-link;
  • the guide's reserved-name note naming the runner-secret bundle, its
    staging path and the GitLab trigger-account token, which the gate already
    dropped but the list left out;
  • the zsh rationale for the runner-secret case fold removed (zsh does not
    import a lowercase path from the environment; the reason is consistency
    with the env.sandbox gate);
  • IsReservedCredentialKey reused in the two provider doors, and three test
    trims: a sweep that re-proved the shared predicate, a duplicate pass-through
    test folded into the guide test, and a mutation probe on a fresh slice.

The remaining notes were advisory and are either kept on purpose (the
guide-parsing test, the per-key loop in the diagnostic, the lock test file's
placement) or filed on #8503 (more equivalent names, and the GitLab pre-auth
variable filter as a fifth door to reconcile).

A last pass scanned the open PRs for ones that touch the same lines, names or
headings. Two coupled lists came out of it, and both are now described by
rule instead of repeated: the guide's .env.d sentence points at the harness
reference's .env.d host files entry rather than naming the dropped
variables (#8610 rewrites that entry to cover every LD_* name), and the
reserved-name note describes the runner's own FULLSEND_* exports as a
family rather than listing them (#7007 and #7451 add FULLSEND_RUN_HEAD_SHA,
FULLSEND_RUN_STARTED_AT and FULLSEND_STEER_ACTIVE to the reserved set).
The guide-parsing test's floor moved with the shorter list. One textual
overlap remains for whoever lands second: #7966 (fullsend lint, draft)
edits the same lint loop in run.go and the same lock row in
docs/cli/README.md; once it lands, reservedSandboxEnvDiagnostics belongs
in fullsend lint too. ADR 0145 is free in every open PR as of this push.

Round five (waynesun09, on 08ada39cb): the OpenShell link at main showed
additional_ca_bundle, which the pinned 0.1.4 lacks. Two commits on top:
the guide links the v0.1.4 tag and says the linked tag is what the pinned
gateway supports, and renovate.json gains a regex manager (the #4808
pattern) so the tag moves with the pin in the same openshell group PR.

Checklist

  • make lint passes (changes staged first).
  • Tests added/updated for new or modified logic.
  • PR title follows Conventional Commits, including ! for the breaking change.
  • The fix commit includes a BREAKING CHANGE: trailer with migration guidance.
  • Commits are signed off (DCO).
  • Edits to accepted ADRs are called out: ADR 0136 gains an Amended-by
    paragraph under its Status (the fix commit's interim clarifying note is
    replaced by it in the last commit); the new decision is recorded in
    ADR 0145, which amends it.
  • I wrote this contribution myself and can explain all changes in it.

@tpouyer
tpouyer requested a review from a team October 16, 2026 15:13
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

E2E tests did not run

E2E tests run automatically for pull requests authored by users with write access or higher.

For other contributors, a maintainer with write access must add the ok-to-test label after the latest push.

See E2E testing guide for details.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Block credential-class environment keys from env.sandbox

🐞 Bug fix 📝 Documentation 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Block credential-denied names and case variants from env.sandbox exports, closing a filtering
 gap.
• Warn about dropped keys during run and lock; identify when a current lock skips diagnostics.
• Add regression tests and migration guidance for affected harnesses.
Diagram

graph TD
  P["Credential deny-list"] --> G["Reserved-name gate"] --> E["Sandbox exports"]
  H["Composed harness"] --> G --> D["Reserved-key diagnostics"] --> R["Run warnings"]
  D --> L["Lock warnings"]
Loading
High-Level Assessment

Reusing the credential deny-list while retaining CLI-only runner and OIDC restrictions is the appropriate scoped fix. Moving all environment policy into a new shared package would be a broader refactor without improving this gate's immediate consistency; the shared predicate also keeps diagnostics aligned with enforcement.

Files changed (10) +845 / -9

Enhancement (1) +29 / -0
sandbox.goExpose a safe copy of reserved credential names +29/-0

Expose a safe copy of reserved credential names

• Adds ReservedCredentialKeys to return a sorted copy of provider credential-denied names. This lets the CLI reuse that policy without duplicating or mutating its source map.

internal/sandbox/sandbox.go

Bug fix (3) +114 / -7
lock.goReport reserved keys or skipped checks during lock +5/-1

Report reserved keys or skipped checks during lock

• Adds reserved-key diagnostics when lock composes a harness, preserving de-duplication across forge variants. A current lock entry instead reports that diagnostics were skipped and directs users to --update.

internal/cli/lock.go

run.goApply credential deny-list to sandbox exports +43/-6

Apply credential deny-list to sandbox exports

• Merges credential-reserved names into existing sandbox restrictions and checks them case-insensitively before writing exports. Adds reserved-key diagnostics when run loads a harness while retaining per-key stderr warnings at export time.

internal/cli/run.go

run_reserved_env_lint.goGenerate diagnostics for dropped sandbox keys +66/-0

Generate diagnostics for dropped sandbox keys

• Adds a warning that lists and sorts reserved keys from the composed harness using the export gate's predicate. Excludes invalid POSIX identifiers, which the gate rejects for a different reason.

internal/cli/run_reserved_env_lint.go

Tests (5) +646 / -0
lock_reserved_env_cache_test.goTest lock cache-hit and update diagnostics +103/-0

Test lock cache-hit and update diagnostics

• Verifies that single-agent and --all cache hits disclose skipped checks without composing, fetching, or rewriting the lock. Confirms --update checks reserved keys inherited from a base harness.

internal/cli/lock_reserved_env_cache_test.go

run_reserved_credential_env_test.goGuard credential-policy coverage and documented passthrough +166/-0

Guard credential-policy coverage and documented passthrough

• Tests that every credential-reserved name is excluded from sandbox exports. Cross-checks the user guide's blocked names and verifies that documented hook inputs remain deliverable.

internal/cli/run_reserved_credential_env_test.go

run_reserved_env_case_test.goTest case-insensitive reserved-name filtering +66/-0

Test case-insensitive reserved-name filtering

• Checks uppercase, lowercase, and mixed-case variants of sensitive names against the export gate. Also pins the uppercase-map invariant required by case-folded lookup.

internal/cli/run_reserved_env_case_test.go

run_reserved_env_lint_test.goTest diagnostic accuracy and CLI integration +234/-0

Test diagnostic accuracy and CLI integration

• Covers dropped-key counts, case variants, stable ordering, invalid identifiers, and agreement with export filtering. Exercises both run and lock to verify warnings appear when harnesses load.

internal/cli/run_reserved_env_lint_test.go

reserved_credential_keys_test.goTest credential deny-list accessor contract +77/-0

Test credential deny-list accessor contract

• Verifies that the accessor returns the complete deny-list in sorted order without exposing mutable state. Pins names that other credential-policy tests do not cover.

internal/sandbox/reserved_credential_keys_test.go

Documentation (1) +56 / -2
customizing-agents.mdDocument blocked sandbox keys and migration options +56/-2

Document blocked sandbox keys and migration options

• Enumerates reserved-name categories, case-insensitive matching, and the distinction between filtered env.sandbox exports and trusted host_files content. Explains run and lock warnings, lock cache-hit limitations, and options for moving affected settings.

docs/guides/user/customizing-agents.md

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://7240d86b-site.fullsend-ai.workers.dev

Commit: c249eca4fbe8d52efe7c30a502cbbf858238449b

@qodo-code-review

qodo-code-review Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Security terms lack first-use definitions ✓ Resolved
Description
The added env.sandbox guidance introduces jargon such as OIDC, TLS, and POSIX without defining the
terms inline or linking them to the glossary. Readers encountering the new credential and identifier
rules must infer these concepts before they can understand which settings are affected.
Code

docs/guides/user/customizing-agents.md[R454-457]

+- **Credentials it mints or receives:** `FULLSEND_GCP_OIDC_AUTH_FILE`,
+  `FULLSEND_TRIGGER_TOKEN`, `FULLSEND_WEBHOOK_SECRET`,
+  `FULLSEND_INFERENCE_GATEWAY_API_KEY`, `FULLSEND_OPENAI_API_KEY`,
+  `OPENAI_API_KEY`, `GH_WORKFLOW_TOKEN`, and the GitHub Actions OIDC request
Relevance

●●● Strong

Recent precedents accept defining or linking unfamiliar jargon in user guides, including domain
terms and security concepts.

PR-#6455
PR-#5778

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed guide introduces OIDC in the credential list and later introduces TLS and POSIX
terminology without inline definitions or glossary links. The documentation rule requires jargon in
guides to be defined on first use via a glossary link or inline definition.

docs/guides/user/customizing-agents.md[454-473]
docs/guides/user/customizing-agents.md[492-496]
Skill: writing-user-docs

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 new `env.sandbox` documentation uses domain-specific terms such as OIDC, TLS, and POSIX without first-use definitions or glossary links.

## Fix Focus Areas
- docs/guides/user/customizing-agents.md[454-473]
- docs/guides/user/customizing-agents.md[492-496]

## Recommended Fix
Define each domain-specific term inline on first use or link it to the corresponding entry in `docs/glossary.md`, while preserving the existing explanation of the reserved environment names.

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


2. Diagnostics guidance stays unnumbered ✓ Resolved
Description
The added guidance instructs readers to use fullsend lock and its --update variants in a prose
paragraph rather than ordered procedural steps. Readers must extract the sequence of checking
cache-hit behavior, updating the lock, and interpreting warnings from narrative text instead of
following explicit numbered actions.
Code

docs/guides/user/customizing-agents.md[R482-485]

+`fullsend run` warns when the harness loads, naming all reserved keys it will
+drop, and warns again on stderr for each key as it writes the sandbox
+environment. `fullsend lock` reports the same lint warning when it loads and
+composes the harness. If its lock entry is already current, it skips that work
Relevance

●●● Strong

The same guide previously accepted converting procedural prose into ordered steps, matching this
multi-action diagnostics guidance.

PR-#2663
PR-#5778

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed guide contains a multi-action procedure for fullsend run and fullsend lock,
including when to use --update, but presents it as narrative prose. The documentation rule
requires procedural content in guides to use numbered steps.

docs/guides/user/customizing-agents.md[482-490]
Skill: writing-user-docs

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 new diagnostics instructions are presented as a prose paragraph even though they describe a sequence of commands and reader actions.

## Fix Focus Areas
- docs/guides/user/customizing-agents.md[482-490]

## Recommended Fix
Rewrite the operational guidance as a numbered list, putting each command or action at the start of its step and following it with the relevant explanation about warnings, cache hits, and `--update` behavior.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 89 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/.fullsend (sha: 7c163cad) — View relationship
  Explored: repo: fullsend-ai/agents (sha: ce9e4323) — View relationship
  Explored: repo: fullsend-ai/mlflow-assessments (sha: 2fdb0120) — View relationship
Review mode: Auto: ⚖️ Balanced: Downgraded extended -> standard: change is below the extended eligibility bar (hunks 14/18, lines 854/200; both must reach the floor). Router rationale: Security-sensitive behavior spans enforcement, diagnostics, locking, docs, and many independent paths.

Grey Divider

Tip of the day
💡 Did you know, you can open the rule or relationship behind a finding in one click

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread docs/guides/user/customizing-agents.md Resolved
Comment thread docs/guides/user/customizing-agents.md Resolved
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/sandbox/sandbox.go 90.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Comment thread internal/cli/run.go Resolved
Comment thread internal/cli/run.go Resolved
Comment thread internal/cli/run_reserved_env_lint.go Resolved
tpouyer added a commit to tpouyer/fullsend that referenced this pull request Oct 16, 2026
Address review comments on PR fullsend-ai#8496 without changing the deny-list or
export-filtering behavior.

Remove the stale claim that OpenShell injects HTTPS_PROXY and retain
only the conditional pi compatibility warning. The pinned OpenShell
version strips ambient proxy variables before child execution.

Replace the generic .env.d and nonexistent-field migration advice with
a link to deployment-aware guidance. Corporate proxy settings belong
with the OpenShell gateway operator; the documented chaining covers
policy-approved TLS CONNECT, not every application proxy use. Extra CA
configuration must preserve OpenShell trust and account for the
supervisor's separate upstream verification.

Define OIDC and TLS, explain the ASCII identifier rule, number the
conditional lock-check steps, and qualify the guide as selected-name
filtering rather than complete protection against every equivalent.

Add regression assertions for the migration warning. Focused CLI and
sandbox tests pass with -race -count=1, staged lint passes, and approximate
branch patch coverage is 40/40 changed instrumented lines. This validates
the code and source-backed guidance, not live gateway connectivity.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Comment thread docs/guides/user/customizing-agents.md Resolved
Comment thread internal/cli/run.go Resolved
tpouyer added a commit to tpouyer/fullsend that referenced this pull request Oct 17, 2026
Address review comments on PR fullsend-ai#8496 without changing the deny-list or
export-filtering behavior.

Remove the stale claim that OpenShell injects HTTPS_PROXY and retain
only the conditional pi compatibility warning. The pinned OpenShell
version strips ambient proxy variables before child execution.

Replace the generic .env.d and nonexistent-field migration advice with
a link to deployment-aware guidance. Corporate proxy settings belong
with the OpenShell gateway operator; the documented chaining covers
policy-approved TLS CONNECT, not every application proxy use. Extra CA
configuration must preserve OpenShell trust and account for the
supervisor's separate upstream verification.

Define OIDC and TLS, explain the ASCII identifier rule, number the
conditional lock-check steps, and qualify the guide as selected-name
filtering rather than complete protection against every equivalent.

Add regression assertions for the migration warning. Focused CLI and
sandbox tests pass with -race -count=1, staged lint passes, and approximate
branch patch coverage is 40/40 changed instrumented lines. This validates
the code and source-backed guidance, not live gateway connectivity.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>

@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 new finding after the rebase, on the version of the OpenShell docs the guide links (inline).

Comment thread docs/guides/user/customizing-agents.md Resolved

@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.

Three new findings at head 5e2a752 (inline): the BREAKING CHANGE trailer, the .env.d sourcing claim, and the ADR 0136 note.

Comment thread internal/cli/run.go Resolved
Comment thread docs/guides/user/customizing-agents.md Resolved
@rh-hemartin

This comment was marked as off-topic.

@rh-hemartin

Copy link
Copy Markdown
Member

/fs-review

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:06 AM UTC · Completed 9:26 AM UTC

Commit: 5e2a752 · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot added the risk/elevated PR risk: elevated label Oct 20, 2026
@fullsend-ai-review

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: elevated (3/5)

Details

Elevated risk due to a breaking security hardening change modifying existing sandbox behavior without a feature flag, coupled with high recent churn and multi-author contention across core CLI runner files.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [design-smell] internal/cli/lock.go:204 — Every current-lock cache hit now emits StepWarn ("Harness diagnostics ... skipped ... use --update"), so the steady state always shows a warning and points at --update, which also re-resolves dependencies. This is documented and deliberate, so only the notice level is in question.
    Remediation: Consider StepInfo rather than StepWarn, or add a diagnostics-only path later.
  • [incomplete-doc] docs/guides/user/running-agents-locally.md:388 — "Lock files" covers cache hits and --update only for dependency resolution and has no cross-link to the new skipped-diagnostics notice documented in customizing-agents.md.
    Remediation: Optionally add a one-line cross-reference.
  • [incomplete-doc] docs/cli/run.md:34 — The CLI reference does not mention the new load-time reserved-key warning or that the reserved set is wider and case-insensitive (AGENTS.md asks for docs/cli updates on CLI behavior changes).
    Remediation: Add a short note or link to the reserved env.sandbox section in customizing-agents.md.
  • [breaking-config] internal/cli/runner_secrets.go:125 — Runner-secret and env.runner keys are now matched case-insensitively and DYLD_* is refused, so keys like path or github_token fail hard before pre_script with no warning period. Declared in the BREAKING CHANGE trailer, but the PR title names only env.sandbox.
    Remediation: Carry this into the release notes; optionally confirm no fullsend-ai/agents harness or known bundle uses such keys.
  • [breaking-config] internal/cli/run.go — env.sandbox now drops about 40 more names (proxy, TLS trust, GIT_*, interpreter, loader, shell), case-insensitively, with a warning only. Proxy/CA behavior can change silently for adopters; self-hosted Actions users behind a corporate proxy have no replacement path yet (Add proxy and CA configuration inputs to the fullsend GitHub Action #8505). The break is declared with !.
    Remediation: Check fullsend-ai/agents and known adopter harnesses before release; mention the Add proxy and CA configuration inputs to the fullsend GitHub Action #8505 gap in the release notes.
  • [backward-incompatible] internal/cli/lock.go:201 — fullsend lock now emits a warning on every current-lock cache hit. Wrappers or CI that fail on warnings or parse lock output may behave differently; the exit code is unchanged.
    Remediation: Mention the new output in the release notes.

Labels: PR hardens sandbox environment handling in the Go harness runner with security impact.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment security Security threat model and related concerns labels Oct 20, 2026
@fullsend-ai-review fullsend-ai-review Bot added component/sandbox OpenShell sandbox environment component/harness Agent harness, config, and skills loading go Pull requests that update go code labels Oct 20, 2026
tpouyer added a commit to tpouyer/fullsend that referenced this pull request Oct 20, 2026
…andbox

Fixes fullsend-ai#3373

Align env.sandbox filtering with the credential-key deny-list used for
URL-sourced provider definitions. Of its 32 names, 25 were previously
exportable through env.sandbox; the other seven were already reserved.
The existing trusted-local-provider exception is unchanged.

Expose a sorted copy through sandbox.ReservedCredentialKeys() and merge
it into the CLI's existing blocklist at init, retaining the runner, OIDC
and provider-only restrictions. Match reserved names case-insensitively
so lowercase and mixed-case spellings cannot bypass the merged list. The
export gate and diagnostics use the same reserved-name predicate and
validate identifiers before matching them.

Include load-time diagnostics with this behavior change so operators can
identify settings that will no longer be exported. fullsend run and
fullsend lock name reserved keys when they load the composed harness;
the existing per-key stderr warnings remain at environment generation.
Current lock entries still skip composition and dependency resolution.
They report that diagnostics were skipped and point to --update, which
re-resolves dependencies and may modify the lock file.

Keep the runner-secret bundle check on its own name set. The merged
credential names are dangerous inside the sandbox child but legitimate
as host-side runner-secret keys (proxy, TLS trust and Git settings for
pre_script and post_script), and reading the widened map at that door
would refuse them and stop every run carrying such a bundle. The
runner-secret refusal keeps the runner infrastructure names, the OIDC
and provider-only keys and the runner-owned prefixes (now including
DYLD_), and matches case-insensitively like the env.sandbox gate so a
lowercase key such as path cannot slip past. Drift tests pin both
doors: credential-only names stay allowed as runner-secret keys, and
every non-credential sandbox-reserved name stays refused. Accepted
ADR 0136 gains a clarifying note that its refused-name rule covers the
runner-infrastructure names.

The reproduction test follows the live accessor so additions remain
covered. NotEmpty rejects an empty result; separate accessor-contract
and explicit-name tests detect omissions and policy shrinkage. Tests
also cover copy isolation, ordering, case variants, invalid identifiers,
allowed exports and the real run/lock call sites. Cache-hit regressions
cover single-agent and --all use without rewriting the lock, and an
--update regression checks reserved keys from both a base and child.

Later commits in fullsend-ai#8496 check the deny-list beside the blocklist instead
of merging it, let the runner-secret refusal read the blocklist again,
drop the lock cache-hit notice, and record the name-set split in
ADR 0145.

Focused regressions passed with -race -count=1. Lint and commit hooks
passed. Approximate patch coverage is 41/41 changed instrumented lines.

BREAKING CHANGE: env.sandbox no longer exports the additional reserved
proxy, TLS trust, Git, interpreter, loader and shell-behavior names.
Matching is now case-insensitive for all reserved names. Audit harness
YAML, shared bases and per-agent overrides before upgrading. Affected
entries are skipped with warnings rather than rejecting the entire
harness; tools may subsequently fail without the requested settings.
Migrate proxy and certificate settings to the operator-managed OpenShell
gateway configuration: the upstream proxy settings and proxy_ca_bundle.
The migration guide's Migrating proxy and certificate settings section
covers this. fullsend's own GitHub Action writes gateway.toml from a
fixed template and has no proxy or CA input yet; fullsend-ai#8505 tracks adding
one. .env.d is not a migration path for proxy or certificate settings.
For Git settings, use supported tool configuration or trusted
host_files. Every launch and the runner's in-sandbox probes read
.env.d as data: only assignment lines are taken, and LD_PRELOAD,
LD_LIBRARY_PATH, LD_AUDIT, every PYTHON* variable, BASH_ENV, ENV and
IFS are never taken from it, so moving a loader or shell export there
does not preserve it.
Direct/raw runner-credential exports remain restricted; supported
provider-only GH_WORKFLOW_TOKEN use is unchanged and supplies a
placeholder inside the sandbox. Runner-secret bundle keys and env.runner
keys receiving a runner secret are now matched case-insensitively
against the refused names and DYLD_* is a refused family, so a bundle
key such as path or github_token now fails validation. Credential-class
names such as HTTPS_PROXY stay accepted as runner-secret keys. The
name-set split between the sandbox gate and the runner-secret refusal
is recorded in ADR 0145, added later in fullsend-ai#8496, which amends ADR 0136's
refused-name rule.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
tpouyer added a commit to tpouyer/fullsend that referenced this pull request Oct 20, 2026
Address review comments on PR fullsend-ai#8496 without changing the deny-list or
export-filtering behavior.

Remove the stale claim that OpenShell injects HTTPS_PROXY and retain
only the conditional pi compatibility warning. The pinned OpenShell
version strips ambient proxy variables before child execution.

Replace the generic .env.d and nonexistent-field migration advice with
a link to deployment-aware guidance. Corporate proxy settings belong
with the OpenShell gateway operator; the documented chaining covers
policy-approved TLS CONNECT, not every application proxy use. Extra CA
configuration must preserve OpenShell trust and account for the
supervisor's separate upstream verification.

Define OIDC and TLS, explain the ASCII identifier rule, number the
conditional lock-check steps, and qualify the guide as selected-name
filtering rather than complete protection against every equivalent.

Add regression assertions for the migration warning. Focused CLI and
sandbox tests pass with -race -count=1, staged lint passes, and approximate
branch patch coverage is 40/40 changed instrumented lines. This validates
the code and source-backed guidance, not live gateway connectivity.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
tpouyer added a commit to tpouyer/fullsend that referenced this pull request Oct 20, 2026
….sandbox gate

Fold the review follow-ups on PR fullsend-ai#8496 into one commit.

Check the credential deny-list in isReservedSandboxKey through a new
sandbox.IsReservedCredentialKey instead of merging it into
reservedSandboxKeys at init. The merge had forced runnerSecretNameRefused
onto its own copy of the runner-infrastructure names, with keep-in-sync
notes in two files and a drift test guarding the copy. With the merge
gone, runnerSecretNameRefused reads reservedSandboxKeys again, as on
main; relative to main its refused set still gains only the case fold
and the DYLD_ family. Tests that read the merged map now call
isReservedSandboxKey or enumerate both lists, and the per-name sweep
that re-proved the shared predicate is dropped.

Drop the lock cache-hit diagnostics notice. It printed a warning for
every up-to-date agent on every `fullsend lock` run, whether or not the
harness had an env.sandbox block, which made the normal result of
`lock --all` on a current repo a list of warnings. `fullsend run` reports
reserved keys when the harness loads, and `lock --update` composes the
harness and reports them; the guide says a current entry is not composed
and points to --update. Because `lock` composes without event context,
the guide, the CLI reference and the command table now say that a key
added by an event-guarded overlay is reported only by `fullsend run`.

Record the decision in a new ADR 0145 instead of a note on accepted
ADR 0136: the credential deny-list stays out of the runner-secret
refusal, which keeps reading the sandbox environment blocklist, matches
case-insensitively and refuses the DYLD_ family. The ADR carries an
Amends line for 0136, ADR 0136 gets the italic Amended-by paragraph
under its Status that every other amended ADR carries, and
docs/architecture.md lists the decision next to the 0136 paragraph.

Drop the guide's claim that .env.d is sourced as shell. Since main's
fullsend-ai#8498 and fullsend-ai#8574, every launch and the runner's in-sandbox probes read
.env.d as data and take only assignment lines; .env itself stays valid
shell an agent may source. The guide says so and links the harness
reference entry that carries the per-runtime rules.

Document the load-time and per-key warnings in docs/cli/run.md and note
the lock behavior in docs/cli/README.md; the CLI reference pages are
maintained by hand and mentioned none of it. Give the harness reference
an env.sandbox field-details entry beside env.runner's, cross-link the
local-run guide's Lock files section to the reserved-keys section, and
extend the migration section with the Git and interpreter-name classes
the deny-list also drops.

Fold the pass-through delivery check into TestGuideNamesMatchTheGate's
carve-out branch, so every name the guide promises is delivered is also
exported in practice, and drop the separate test that repeated it. Use
sandbox.IsReservedCredentialKey in the provider doors instead of their
inline copies of its body, and drop the zsh rationale for the
runner-secret case fold: zsh does not import a lowercase path from the
environment, so consistency with the env.sandbox gate is the reason.
Name the runner-secret bundle, its staging path and the GitLab trigger
account token in the guide's reserved-name note; they were reserved but
unlisted. Give that note its own heading so the CLI reference and the
harness reference link to the list rather than to the PATH section, and
say in the accessor's doc comment that it exists for cross-package tests.

Describe the runner's own FULLSEND_* exports in the guide's reserved-name
note as a family instead of listing them, and send its .env.d sentence to
the harness reference's entry instead of repeating the dropped names, so
the note does not go stale when the runner gains an export or the loader's
drop set changes; the guide test's floor follows the shorter list.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
@tpouyer

tpouyer commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

On the review at 5e2a752c0 (the comment above): every item is addressed at the current head 08ada39cb, pushed this afternoon.

  • Protected path, images/sandbox/Containerfile: the PR body now explains that file on its own: a comment-only correction of the pi floor note that said OpenShell "always" sets HTTPS_PROXY, which the pinned version does not do. No image change. It still needs a human approval; @rh-hemartin or @waynesun09, that one is yours.
  • lock.go cache-hit StepWarn, and the same notice as a backward-incompatible output change: gone. fullsend lock only prints the diagnostics when it composes a harness; a current entry prints nothing new. The guide, docs/cli/run.md and the command table say that a current entry is not checked and how to check it with --update.
  • docs/cli/run.md: has a "Reserved env.sandbox keys" section with both warnings, the case fold and the lock caveats; the command table in docs/cli/README.md links it.
  • running-agents-locally.md "Lock files": cross-links that section.
  • Release notes for the runner-secret case fold and DYLD_*, and for the #8505 Action gap: both are in the "Release notes" block of the PR body, written for the release cutter since the title names only env.sandbox. The fullsend-ai/agents harnesses set none of the newly reserved names, use no lowercase env.runner keys and do not use the bundle, checked against that repo's main.

A re-run of /fs-review on 08ada39cb should show them as resolved.

Comment thread docs/guides/user/customizing-agents.md Resolved
… blocklist

Reproduction test for fullsend-ai#3373
(reproduced). Evidence:
TestReservedSandboxKeys_CoversReservedCredentialKeys: 25/32 subtests fail —
reservedSandboxKeys omits HTTP_PROXY HTTPS_PROXY NODE_OPTIONS PYTHONPATH
PROMPT_COMMAND IFS CDPATH LD_AUDIT DYLD_INSERT_LIBRARIES SSL_CERT_FILE/DIR
CURL_CA_BUNDLE NODE_EXTRA_CA_CERTS HOSTALIASES GIT_SSH_COMMAND GIT_ASKPASS
GIT_CONFIG_GLOBAL GIT_EXEC_PATH GIT_TEMPLATE_DIR JAVA_TOOL_OPTIONS RUBYOPT
PERL5OPT PYTHONSTARTUP NO_PROXY ALL_PROXY; buildSandboxEnvLines emits e.g.
export GIT_SSH_COMMAND='/tmp/evil'. 7 original infra keys (PATH HOME SHELL
LD_PRELOAD LD_LIBRARY_PATH BASH_ENV ENV) pass.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…andbox

Fixes fullsend-ai#3373

Align env.sandbox filtering with the credential-key deny-list used for
URL-sourced provider definitions. Of its 32 names, 25 were previously
exportable through env.sandbox; the other seven were already reserved.
The existing trusted-local-provider exception is unchanged.

Expose a sorted copy through sandbox.ReservedCredentialKeys() and merge
it into the CLI's existing blocklist at init, retaining the runner, OIDC
and provider-only restrictions. Match reserved names case-insensitively
so lowercase and mixed-case spellings cannot bypass the merged list. The
export gate and diagnostics use the same reserved-name predicate and
validate identifiers before matching them.

Include load-time diagnostics with this behavior change so operators can
identify settings that will no longer be exported. fullsend run and
fullsend lock name reserved keys when they load the composed harness;
the existing per-key stderr warnings remain at environment generation.
Current lock entries still skip composition and dependency resolution.
They report that diagnostics were skipped and point to --update, which
re-resolves dependencies and may modify the lock file.

Keep the runner-secret bundle check on its own name set. The merged
credential names are dangerous inside the sandbox child but legitimate
as host-side runner-secret keys (proxy, TLS trust and Git settings for
pre_script and post_script), and reading the widened map at that door
would refuse them and stop every run carrying such a bundle. The
runner-secret refusal keeps the runner infrastructure names, the OIDC
and provider-only keys and the runner-owned prefixes (now including
DYLD_), and matches case-insensitively like the env.sandbox gate so a
lowercase key such as path cannot slip past. Drift tests pin both
doors: credential-only names stay allowed as runner-secret keys, and
every non-credential sandbox-reserved name stays refused. Accepted
ADR 0136 gains a clarifying note that its refused-name rule covers the
runner-infrastructure names.

The reproduction test follows the live accessor so additions remain
covered. NotEmpty rejects an empty result; separate accessor-contract
and explicit-name tests detect omissions and policy shrinkage. Tests
also cover copy isolation, ordering, case variants, invalid identifiers,
allowed exports and the real run/lock call sites. Cache-hit regressions
cover single-agent and --all use without rewriting the lock, and an
--update regression checks reserved keys from both a base and child.

Later commits in fullsend-ai#8496 check the deny-list beside the blocklist instead
of merging it, let the runner-secret refusal read the blocklist again,
drop the lock cache-hit notice, and record the name-set split in
ADR 0145.

Focused regressions passed with -race -count=1. Lint and commit hooks
passed. Approximate patch coverage is 41/41 changed instrumented lines.

BREAKING CHANGE: env.sandbox no longer exports the additional reserved
proxy, TLS trust, Git, interpreter, loader and shell-behavior names.
Matching is now case-insensitive for all reserved names. Audit harness
YAML, shared bases and per-agent overrides before upgrading. Affected
entries are skipped with warnings rather than rejecting the entire
harness; tools may subsequently fail without the requested settings.
Migrate proxy and certificate settings to the operator-managed OpenShell
gateway configuration: the upstream proxy settings and proxy_ca_bundle.
The migration guide's Migrating proxy and certificate settings section
covers this. fullsend's own GitHub Action writes gateway.toml from a
fixed template and has no proxy or CA input yet; fullsend-ai#8505 tracks adding
one. .env.d is not a migration path for proxy or certificate settings.
For Git settings, use supported tool configuration or trusted
host_files. Every launch and the runner's in-sandbox probes read
.env.d as data: only assignment lines are taken, and LD_PRELOAD,
LD_LIBRARY_PATH, LD_AUDIT, every PYTHON* variable, BASH_ENV, ENV and
IFS are never taken from it, so moving a loader or shell export there
does not preserve it.
Direct/raw runner-credential exports remain restricted; supported
provider-only GH_WORKFLOW_TOKEN use is unchanged and supplies a
placeholder inside the sandbox. Runner-secret bundle keys and env.runner
keys receiving a runner secret are now matched case-insensitively
against the refused names and DYLD_* is a refused family, so a bundle
key such as path or github_token now fails validation. Credential-class
names such as HTTPS_PROXY stay accepted as runner-secret keys. The
name-set split between the sandbox gate and the runner-secret refusal
is recorded in ADR 0145, added later in fullsend-ai#8496, which amends ADR 0136's
refused-name rule.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Address review comments on PR fullsend-ai#8496 without changing the deny-list or
export-filtering behavior.

Remove the stale claim that OpenShell injects HTTPS_PROXY and retain
only the conditional pi compatibility warning. The pinned OpenShell
version strips ambient proxy variables before child execution.

Replace the generic .env.d and nonexistent-field migration advice with
a link to deployment-aware guidance. Corporate proxy settings belong
with the OpenShell gateway operator; the documented chaining covers
policy-approved TLS CONNECT, not every application proxy use. Extra CA
configuration must preserve OpenShell trust and account for the
supervisor's separate upstream verification.

Define OIDC and TLS, explain the ASCII identifier rule, number the
conditional lock-check steps, and qualify the guide as selected-name
filtering rather than complete protection against every equivalent.

Add regression assertions for the migration warning. Focused CLI and
sandbox tests pass with -race -count=1, staged lint passes, and approximate
branch patch coverage is 40/40 changed instrumented lines. This validates
the code and source-backed guidance, not live gateway connectivity.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
Address the review finding that the GitHub Action writes its gateway
config from a fixed template with no proxy or CA input. Add the
limitation to the guide's migration section so Actions users behind a
corporate proxy know there is no configuration step available yet.

The GitLab VM executor preserves an operator-configured gateway.toml
and is not affected the same way. The follow-up for an Action proxy
input is tracked in fullsend-ai#8505.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…ependent

Address the review finding that the migration guide linked the OpenShell
v0.1.2 gateway configuration reference while the branch pins 0.1.4. The
two releases differ on the exact field the guide sends readers to look
up: the Docker driver section documents only `https_proxy` at v0.1.2 and
carries `proxy_ca_bundle` and `proxy_connect_by_hostname` from v0.1.3
on, so a Docker reader following the v0.1.2 link to check where that
field was supported was told it does not exist.

Retarget the link at `main` and link the script that records the pinned
version, instead of writing a version into the URL, the link text and the
prose. A version tag in a doc is a third copy of the pin and nothing
keeps it in step: the Renovate rule that bumps `OPENSHELL_VERSION` is
fileFiltered to the script, and the guide copy manager from fullsend-ai#4808 covers
only `running-agents-locally.md`. Repinning here would have left the
next routine dependency bump red rather than updating the link. This
follows how `running-agents-locally.md` already refers to the pin.

Replace the "where supported" hedge, written for the release where Docker
was the one driver missing the field, with the `https_proxy` requirement
the reference carries. Correct the bundle's placement for Kubernetes:
there the reference documents it as a path in the gateway Pod that Helm
mounts from a ConfigMap, not a host path, so a host-path instruction
would send a Kubernetes operator to a hostPath. Verified against the
upstream reference at `main`. Link this section from `harness-reference.md`
and the operations guide, which state the block but had no route to where
the settings go instead.

No guard test is added. A doc tag compared with `OPENSHELL_VERSION` would
alarm on every bump without any way to fix itself, and with no version in
the doc the drift class is gone.

Focused CLI regressions pass with -race -count=1, including
TestGuideNamesMatchTheGate over the edited note, and the doc lint hooks
pass on the delta.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
….sandbox gate

Fold the review follow-ups on PR fullsend-ai#8496 into one commit.

Check the credential deny-list in isReservedSandboxKey through a new
sandbox.IsReservedCredentialKey instead of merging it into
reservedSandboxKeys at init. The merge had forced runnerSecretNameRefused
onto its own copy of the runner-infrastructure names, with keep-in-sync
notes in two files and a drift test guarding the copy. With the merge
gone, runnerSecretNameRefused reads reservedSandboxKeys again, as on
main; relative to main its refused set still gains only the case fold
and the DYLD_ family. Tests that read the merged map now call
isReservedSandboxKey or enumerate both lists, and the per-name sweep
that re-proved the shared predicate is dropped.

Drop the lock cache-hit diagnostics notice. It printed a warning for
every up-to-date agent on every `fullsend lock` run, whether or not the
harness had an env.sandbox block, which made the normal result of
`lock --all` on a current repo a list of warnings. `fullsend run` reports
reserved keys when the harness loads, and `lock --update` composes the
harness and reports them; the guide says a current entry is not composed
and points to --update. Because `lock` composes without event context,
the guide, the CLI reference and the command table now say that a key
added by an event-guarded overlay is reported only by `fullsend run`.

Record the decision in a new ADR 0145 instead of a note on accepted
ADR 0136: the credential deny-list stays out of the runner-secret
refusal, which keeps reading the sandbox environment blocklist, matches
case-insensitively and refuses the DYLD_ family. The ADR carries an
Amends line for 0136, ADR 0136 gets the italic Amended-by paragraph
under its Status that every other amended ADR carries, and
docs/architecture.md lists the decision next to the 0136 paragraph.

Drop the guide's claim that .env.d is sourced as shell. Since main's
fullsend-ai#8498 and fullsend-ai#8574, every launch and the runner's in-sandbox probes read
.env.d as data and take only assignment lines; .env itself stays valid
shell an agent may source. The guide says so and links the harness
reference entry that carries the per-runtime rules.

Document the load-time and per-key warnings in docs/cli/run.md and note
the lock behavior in docs/cli/README.md; the CLI reference pages are
maintained by hand and mentioned none of it. Give the harness reference
an env.sandbox field-details entry beside env.runner's, cross-link the
local-run guide's Lock files section to the reserved-keys section, and
extend the migration section with the Git and interpreter-name classes
the deny-list also drops.

Fold the pass-through delivery check into TestGuideNamesMatchTheGate's
carve-out branch, so every name the guide promises is delivered is also
exported in practice, and drop the separate test that repeated it. Use
sandbox.IsReservedCredentialKey in the provider doors instead of their
inline copies of its body, and drop the zsh rationale for the
runner-secret case fold: zsh does not import a lowercase path from the
environment, so consistency with the env.sandbox gate is the reason.
Name the runner-secret bundle, its staging path and the GitLab trigger
account token in the guide's reserved-name note; they were reserved but
unlisted. Give that note its own heading so the CLI reference and the
harness reference link to the list rather than to the PATH section, and
say in the accessor's doc comment that it exists for cross-package tests.

Describe the runner's own FULLSEND_* exports in the guide's reserved-name
note as a family instead of listing them, and send its .env.d sentence to
the harness reference's entry instead of repeating the dropped names, so
the note does not go stale when the runner gains an export or the loader's
drop set changes; the guide test's floor follows the shorter list.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…teway version

The migration guide linked the OpenShell gateway configuration reference
at main. fullsend pins OpenShell 0.1.4, and the reference at main already
documents settings the pinned gateway lacks: additional_ca_bundle, which
OpenShell 0.1.5 adds for Podman gateways, appears twice at main and not at
v0.1.4. A reader migrating SSL_CERT_FILE or NODE_EXTRA_CA_CERTS would find
that key and set it on a gateway that rejects it.

Link the v0.1.4 tag, the version openshell-version.sh pins, so the
reference matches the gateway fullsend ships; a Renovate manager in the
next commit moves the tag with the pin. Say in the certificate bullet that
the linked tag is what the pinned gateway supports, and that where that
tag lacks additional_ca_bundle a private CA used without a corporate proxy
has no gateway-level replacement for SSL_CERT_FILE or NODE_EXTRA_CA_CERTS.
That sentence is written against the linked tag, so it stays true after
the pin moves.

Found in review of 08ada39 by waynesun09.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
…gents guide link

The previous commit pins the OpenShell gateway configuration link in
docs/guides/user/customizing-agents.md to the tag openshell-version.sh
pins. Renovate updated that pin file and the two copies in
running-agents-locally.md (fullsend-ai#4808) but nothing rewrote a tag inside a
link, so the next OpenShell bump would leave the link one version behind
the gateway again.

Add a regex customManager for the link with the same depName, datasource
and extractVersionTemplate as the fullsend-ai#4808 manager, so the tag moves in the
same openshell group PR. Automerge and postUpgradeTasks are unchanged.

Checked that the matchString finds exactly one value in the guide, the
pinned 0.1.4, with both a JavaScript RegExp and Python re, and that the
file pattern matches the guide path.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>

@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 new finding at head c249eca (inline): ADR 0145 status and PR title versus the open runner-secret scope question.

@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.

Approving at c249eca.

Runner-secret scope: OK to keep in this PR. That covers the case-insensitive runnerSecretNameRefused, the DYLD_ prefix, ADR 0145 and the 0136 Amended-by line, so 0145 can stay Accepted. It fails closed, and fullsend-ai/agents main has no runner-secret bundle and no lowercase env.runner keys.

Before merge, please retitle so the release notes carry both breaks, for example:
fix(#3373)!: block credential-class env.sandbox names; case-fold runner-secret refusal

Validated locally at this head:

  • go build ./..., go vet and go test pass for internal/cli and internal/sandbox.
  • pre-commit run over the PR range passes, including the ADR checks and markdown links.
  • The branch merges cleanly with main.
  • A built fullsend lock on a harness with https_proxy and DYLD_INSERT_LIBRARIES in env.sandbox prints the documented reserved-key warning (the lowercase name is caught) and leaves other keys alone.

The earlier threads are addressed at this head.

@waynesun09 waynesun09 changed the title fix(#3373)!: block credential-class env vars set via env.sandbox fix(#3373)!: block credential-class env.sandbox names; case-fold runner-secret refusal Oct 20, 2026
@waynesun09
waynesun09 added this pull request to the merge queue Oct 20, 2026
Merged via the queue into fullsend-ai:main with commit 839880b Oct 20, 2026
66 of 67 checks passed
@github-actions
github-actions Bot deleted the issue-3373 branch November 22, 2026 10:35

This branch was successfully deployed

1 active deployment
site-preview — c249eca4 Deployed Oct 20, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/harness Agent harness, config, and skills loading component/sandbox OpenShell sandbox environment go Pull requests that update go code requires-manual-review Review requires human judgment risk/elevated PR risk: elevated security Security threat model and related concerns

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reservedSandboxKeys blocklist does not cover security-sensitive env vars blocked by reservedCredentialKeys

3 participants