Skip to content

refactor(envmanifest): publish sandbox env variable contract as JSON Schema - #8679

Merged
jflowers merged 4 commits into
fullsend-ai:mainfrom
jflowers:opsx/sandbox-env-manifest
Nov 6, 2026
Merged

jflowers merged 4 commits into
fullsend-ai:mainfrom
jflowers:opsx/sandbox-env-manifest

Conversation

@jflowers

@jflowers jflowers commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Publishes the sandbox environment-variable contract as generated JSON Schemas
(Draft 2020-12), so harness authors and content repos validate against a
released runner with stock tooling instead of hand-maintained mirrors. A
collector runs the production emitters themselves (bootstrap .env,
per-iteration env, trace ID, security-hook env, each runtime's EnvExports()
and launch commands, the Vertex scaffold, and the merged reserved-key set), so
the schemas cannot drift from the code that builds the sandbox environment.

Scope is the sandbox only. The environment of host-side pre-, post-, and
validation scripts is out of scope.

Related Issue

Changes

  • docs/normative/sandbox-env/v1/: two generated, self-contained schemas plus
    a README (usage, category semantics, fetching, versioning)
    • harness-env.schema.json rejects reserved keys in a harness's
      env.sandbox, in any letter case (the runner upper-cases keys before
      its lookup), at the top level, under forge.<name>.env, and under
      overlays[].env
    • env-references.schema.json validates
      {"runtime": ..., "variables": [...]} for a runtime or portable; its
      $defs hold the inventory: 5 always, 12 conditional (with gates),
      per-runtime sets (claude 6, codex 6, opencode 9, pi 19), 4
      harness-delivered, 63 reserved, and deprecated. The security-hook
      variables are reachable only under the runtimes whose Bootstrap
      appends hook env (claude, codex, pi), not under opencode or portable;
      the collector derives that set from internal/runtime's call graph
  • internal/envmanifest: the contract model, deterministic schema rendering,
    and ExportedNames, an export-aware shell parser (export statements, bare
    re-exports, prefix assignments; ignores shell-local assignments, quoted data,
    and command substitutions)
  • The collector (internal/cli) replays the commands that write sandbox env
    files in a scratch workspace and parses the files they produce;
    TestEnvManifestGolden byte-compares both committed schemas (-update
    regenerates), and TestEnvManifestRuntimeEnumeration pins the runtime list
    to the registry
  • internal/runtime: LaunchEnvExports() for claude, codex, opencode, and pi,
    pinned to the built launch commands by TestLaunchEnvExportsMatchLaunchCommands
    across hooks, gateway auth-mode, and provider variants
  • ADR 0146 records the decision; cross-references in architecture, threat
    model, run CLI, harness reference, runtime docs, and user/dev guides

Why the ADR and implementation ship together

docs/contributing/adrs.md recommends separating an ADR from non-trivial
implementation. Here the implementation is the evidence for the decision:
ADR 0146 decides that the contract is generated from the emitters
themselves
rather than hand-maintained. Whether a collector can actually
derive every name from production code paths, deterministically and with no
hand-kept lists, is the question the decision depends on, and the collector
and golden tests answer it. An ADR-only PR would have asked reviewers to
accept that claim without the proof. If maintainers would still rather split
it, the ADR and living-doc changes separate cleanly from internal/ and
docs/normative/.

Code evidence

The hand-synced sources ADR 0146 replaces, at the commit the ADR was written
against:

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic
go test ./internal/envmanifest ./internal/cli -run 'EnvManifest|ExportedNames|Schema'
go test ./internal/runtime -run TestLaunchEnvExports
go test ./internal/cli -run TestEnvManifestGolden -update   # regenerate the schemas

The schema-behavior tests validate with Python jsonschema (skipped when it is
not installed, as lint_json_schema_test.go does). Validated by hand against
every harness on fullsend-ai/agents main: all seven pass, and a harness with
TRACEPARENT in env.sandbox fails.

golangci-lint --new-from-rev=upstream/main reports no new issues. Locally,
11 internal/runtime tests (binary pinning and Claude launch guards checking
for agent-writable PATH directories) fail on macOS; the same 11 fail on a clean
upstream/main checkout. CI on Linux is the arbiter.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

I wrote this contribution with AI assistance and cannot explain all changes
in it.

🤖 Generated with Claude Code

@jflowers
jflowers requested a review from a team October 21, 2026 20:15
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

E2E tests are running

Authorization passed for this commit. See the E2E Tests workflow for results.

@jflowers jflowers self-assigned this Oct 21, 2026
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Publish a generated sandbox environment contract manifest

✨ Enhancement 📝 Documentation 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Publish a versioned manifest of sandbox exports, conditional gates, runtime variables, and
 reserved keys.
• Derive the manifest from production emitters and byte-compare it in a golden test to detect drift.
• Document contract semantics and tag-pinned validation for downstream harness authors.
Diagram

graph TD
  Emitters["Runner and runtime emitters"] --> Collector["Test collector"] --> Builder["Manifest builder"] --> Manifest[("Versioned JSON")] --> Readers["Contract readers"]
  Other["Scaffold and reservations"] --> Collector
  Builder --> Golden["Golden test"] --> Manifest
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Expose runtime and export registries through production APIs
  • ➕ Avoids parsing runtime switch cases in a test.
  • ➕ Could make runtime enumeration and export discovery less fixture-dependent.
  • ➖ Changes production interfaces for a documentation artifact.
  • ➖ Still needs fixtures to distinguish conditional emissions.
2. Golden-test every emission gate independently
  • ➕ Provides stronger evidence that each documented gate matches runtime behavior.
  • ➖ Requires substantially more fixtures and maintenance.
  • ➖ Does not replace the need for a published, categorized manifest.

Recommendation: Keep the test-only collector and committed manifest: they add drift detection without changing sandbox behavior. Treat the hand-described gates and all-on/all-off fixtures as the main coverage boundary; expand gate-specific checks if those emission paths change.

Files changed (22) +1675 / -8

Enhancement (3) +303 / -0
sandbox-env.jsonCommit the generated v1 environment inventory +97/-0

Commit the generated v1 environment inventory

• Publishes eight always-on exports, nine conditional exports, four runtime groups, four harness-delivered variables, and 34 reserved keys as the machine-readable artifact.

docs/normative/sandbox-env/v1/sandbox-env.json

builder.goAssemble categorized environment contracts +79/-0

Assemble categorized environment contracts

• Adds a builder for universal, conditional, runtime-specific, harness-delivered, and reserved names. Building stamps the schema version and canonicalizes the result.

internal/envmanifest/builder.go

manifest.goDefine and serialize the v1 manifest +127/-0

Define and serialize the v1 manifest

• Introduces the typed schema, deterministic JSON rendering, parsing, and canonical name sets. Rendering enforces that harness-delivered entries are not labeled runner-guaranteed.

internal/envmanifest/manifest.go

Tests (4) +1029 / -0
env_manifest_collector_test.goDerive contract names from production emission paths +588/-0

Derive contract names from production emission paths

• Exercises bootstrap, iteration, trace, hook, runtime, and scaffold paths; reads the effective reserved map; and categorizes extracted names. Tests pin expected contents and compare runtime enumeration with the resolution registry.

internal/cli/env_manifest_collector_test.go

env_manifest_golden_test.goPin the committed manifest to collector output +92/-0

Pin the committed manifest to collector output

• Byte-compares the derived JSON against the normative file on ordinary test runs. Adds a '-update' regeneration path and a concise mismatch summary.

internal/cli/env_manifest_golden_test.go

builder_test.goTest builder canonicalization and empty categories +61/-0

Test builder canonicalization and empty categories

• Checks sorting, deduplication, explicit empty runtime exports, zero-value use, and serialization of empty categories.

internal/envmanifest/builder_test.go

manifest_test.goTest serialization and schema semantics +288/-0

Test serialization and schema semantics

• Covers exact JSON, repeatability, input-order independence, category shapes, parsing round trips, invalid input, and the names-only field inventory.

internal/envmanifest/manifest_test.go

Documentation (15) +343 / -8
0146-sandbox-environment-contract-manifest.mdRecord the sandbox contract decision +87/-0

Record the sandbox contract decision

• Explains the drift problem, generated-manifest decision, tag-based versioning, and intended cross-repository validation cadence. Distinguishes the committed contract from a future consumer gate.

docs/ADRs/0146-sandbox-environment-contract-manifest.md

architecture.mdLink sandbox architecture to the contract +7/-2

Link sandbox architecture to the contract

• Identifies environment variables and reserved keys as a decided, generated part of the sandbox contract while leaving tool and workspace setup open.

docs/architecture.md

run.mdPoint run CLI readers to the full environment inventory +5/-0

Point run CLI readers to the full environment inventory

• Links the existing iteration-variable documentation to the generated inventory of injected and reserved names.

docs/cli/run.md

runtime-implementation.mdAdd manifest maintenance to runtime guidance +12/-0

Add manifest maintenance to runtime guidance

• Adds collector and golden-test checks to the runtime implementation checklist, including the regeneration command. Clarifies that the generated contract supersedes prose tables for runner-written variables.

docs/contributing/runtime-implementation.md

cli-internals.mdConnect CLI environment internals to the manifest +6/-0

Connect CLI environment internals to the manifest

• Points readers of the bootstrap and iteration environment diagram to the machine-checkable inventory and its delivery categories.

docs/guides/dev/cli-internals.md

bring-your-own-agent.mdClarify Vertex variables are harness-delivered +1/-1

Clarify Vertex variables are harness-delivered

• Explains that the referenced Vertex environment file delivers variables through harness configuration, not a runner guarantee, and links their manifest category.

docs/guides/user/bring-your-own-agent.md

building-custom-agents.mdLink agent inputs to the environment contract +5/-0

Link agent inputs to the environment contract

• Directs custom-agent authors to the full inventory of universal, runtime-specific, and harness-delivered variables.

docs/guides/user/building-custom-agents.md

customizing-agents.mdReference the reserved-key inventory +3/-1

Reference the reserved-key inventory

• Links the warning about protected 'env.sandbox' variables to the generated reserved set.

docs/guides/user/customizing-agents.md

running-agents-locally.mdIdentify API-key override protection +3/-1

Identify API-key override protection

• Notes that 'OPENAI_API_KEY' appears in the published reserved set when explaining why it cannot be supplied through 'env.sandbox'.

docs/guides/user/running-agents-locally.md

README.mdSpecify the v1 contract and consumer rules +202/-0

Specify the v1 contract and consumer rules

• Defines category guarantees, JSON fields, tag-pinned fetch URLs, fail-closed parsing guidance, regeneration, and schema versioning. Explicitly separates runner exports from scaffold-delivered variables.

docs/normative/sandbox-env/v1/README.md

agent-infrastructure.mdMark the sandbox environment surface as specified +1/-1

Mark the sandbox environment surface as specified

• References the generated contract within the infrastructure resource-access discussion without treating other resource-access questions as resolved.

docs/problems/agent-infrastructure.md

security-threat-model.mdIdentify the manifest as a drift baseline +2/-0

Identify the manifest as a drift baseline

• Connects the published environment inventory to the threat model’s need for machine-checkable security-relevant baselines.

docs/problems/security-threat-model.md

harness-reference.mdLink harness overrides to the complete reserved set +1/-1

Link harness overrides to the complete reserved set

• Extends the timeout-variable reference with a link to all runner-injected variables and keys protected from 'env.sandbox' overrides.

docs/reference/harness-reference.md

claude.mdDocument Claude's manifest coverage +5/-0

Document Claude's manifest coverage

• Identifies 'CLAUDE_CONFIG_DIR' as Claude’s runtime-specific export and points to the contract for other exports and reserved keys.

docs/runtimes/claude.md

pi.mdDocument pi's manifest coverage +3/-1

Document pi's manifest coverage

• Links pi’s six runtime-specific exports and the runner’s reserved-key set from the Vertex troubleshooting guidance.

docs/runtimes/pi.md

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:17 PM UTC · Completed 8:39 PM UTC

Commit: e38def5 · View workflow run →

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

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Action required

1. The manifest ADR mixes decisions ✗ Dismissed
Description
ADR 0146's Decision section separately decides to publish a generated manifest, derive it from
production emitters with a golden test, version it by release tag, and impose PR and nightly
validation cadence. These are multiple distinct architectural decisions recorded in one ADR instead
of one decision with supporting implementation details.

2. The new ADR falls outside the template ✓ Resolved

Resolving commit: 2400bf8

Description
The new ADR adds a ## References section that is not part of docs/ADRs/0000-adr-template.md's
required structure. Future readers and validation tooling encounter an extra top-level section
rather than the repository's prescribed ADR format.


Remediation recommended

3. The ADR repeats the drift problem ✗ Dismissed
Description
The Context section reproduces several paragraphs of the environment-drift incident instead of
giving a brief summary with links to the existing problem documentation. Readers must maintain
duplicated details about allowlists, released runners, and the drift-control gap across the ADR and
threat-model material.

4. Pi exports fail manifest validation ✓ Resolved

Resolving commit: e3d6ecf

Resolution reason
N/A
Description
collectSandboxEnvManifest populates runtime_specific only from EnvExports(), omitting
launch-command exports such as FULLSEND_RUNTIME for codex and pi, and FULLSEND_PI_MANIFEST,
GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION for pi. When the agents-repo reachability gate
checks skills against the manifest, it can reject references to variables the runner supplies,
including $FULLSEND_RUNTIME in bootstrap-guided skills and GOOGLE_CLOUD_LOCATION for pi on
Vertex; gateway-route exports are also absent from the inventory.

5. Fleet exports fail manifest validation ✗ Dismissed
Description
harness_delivered is derived only from the Vertex scaffold, so it omits GOOGLE_CLOUD_PROJECT and
ANTHROPIC_DEFAULT_SONNET_MODEL even though the agents fleet delivers both through
env/gcp-vertex.env. When agents switches its reachability check to this manifest, references to
those fleet-delivered variables will appear unreachable.

View medium (3)
6. New runtimes pass the golden check ✓ Resolved

Resolving commit: 2400bf8

Description
The README says registering a runtime without a manifest decision fails TestEnvManifestGolden, but
that test collects only the hard-coded productionSandboxRuntimes list. A new registry case leaves
its golden output unchanged; only the separate TestEnvManifestRuntimeEnumeration detects it, so
the documented golden-only command does not provide the stated safeguard.

7. Deadline and trace variables can be absent ✓ Resolved

Resolving commit: b8f89c6

Description
collectSandboxEnvManifest puts the three iteration-file exports in always based on a successful
iterationEnvCommand probe. If writing that file fails, the runner warns, clears it, and continues
to rt.Run; the agent can therefore start without the advertised timeout, deadline, or trace
variable.

8. The ADR hides a related decision link ✓ Resolved

Resolving commit: 2400bf8

Description
The ADR cites ADR 0038 only in its Decision section even though the manifest's tag-pinned fetch
mechanism builds on that earlier decision. Because the related link is absent from Context,
readers reviewing the motivation and architectural dependencies must search beyond the required
context section.


Informational

9. Rendering can mutate the caller's gate map ✓ Resolved

Resolving commit: b8f89c6

Description
Manifest.normalized() copies and sorts every other category, but Conditional reuses the caller's
map as-is. The doc comment's claim that "m itself is not modified" therefore holds only because
nothing writes to the result today. A later edit to the normalized copy (for example, trimming gate
descriptions) would silently change the builder's or parsed manifest's map. Reusing the builder
after Build() has the same problem: further AddConditional calls also change manifests that were
already built.

10. Infrastructure problem lacks options ✓ Resolved

Resolving commit: 2400bf8

Description
docs/problems/agent-infrastructure.md adds a prescribed sandbox contract reference without
describing alternative approaches or their trade-offs. The modified open-questions section still
contains questions and decisions rather than two analyzed solution options, so readers cannot
compare alternatives in this core problem document.

11. Threat model problem lacks options ✓ Resolved

Resolving commit: d28e7ef

Description
docs/problems/security-threat-model.md adds the generated manifest as the answer to
environment-surface drift without describing alternative approaches or their trade-offs. The
modified section presents one prescribed mechanism and then returns to general drift concerns, so
the core problem document lacks the required comparison of solutions.

Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 95 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/agents (sha: cf464e2e) — View relationship
Review mode: Auto: 🧠 Deep: Complex contract generation spans multiple emitters, runtimes, tests, and security-sensitive reservations.

Grey Divider

Tip of the day
💡 Did you know, you can switch off images and animations for a plain-text comment

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread docs/normative/sandbox-env/v1/README.md Resolved
Comment thread internal/envmanifest/manifest.go Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 21, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected path or dependency edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run

Risk Assessment: moderate (2/5)

Details

Large additive change introducing JSON schemas and tests with zero protected path or dependency edits, moderate runtime file churn in git history, and full alignment with the linked feature issue.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Large additive change introducing JSON schemas and tests with zero protected path or dependency edits, moderate runtime file churn in git history, and full alignment with the linked feature issue.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched runtime files, and full alignment with an active linked issue.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched files, and full alignment with an active linked issue.

Previous run (5)

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (6)

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (7)

Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (8)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or dependency modifications, elevated churn and regression history in touched runtime packages, and full alignment with active linked issue #8465.

Previous run (9)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or dependency modifications, elevated churn and regression history in touched runtime packages, and full alignment with active linked issue #8465.

Previous run (10)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or dependency modifications, elevated churn and regression history in touched runtime packages, and full alignment with active linked issue #8465.

Previous run (11)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with active linked issue #8465.

Previous run (12)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with active linked issue #8465.

Previous run (13)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with active linked issue #8465.

Previous run (14)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (15)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (16)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (17)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (18)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (19)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (20)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (21)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn across touched documentation files, and full alignment with an active linked issue.

Previous run (22)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn across touched documentation files, and full alignment with an active linked issue.

Previous run (23)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and multi-author contention across touched documentation files, and full alignment with an active linked issue.

Previous run (24)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Additive contract manifest package and tests with no protected path or dependency changes, high churn across touched doc files, and well-scoped issue alignment yield a moderate risk score.

Previous run (25)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Additive contract manifest package and tests with no protected path or dependency changes, high churn across touched doc files, and well-scoped issue alignment yield a moderate risk score.

Previous run (26)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Additive contract manifest package and tests with no protected path or dependency changes, high churn across touched doc files, and well-scoped issue alignment yield a moderate risk score.

Previous run (27)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (28)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (29)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, offset by elevated churn and coupling on existing documentation files, and full alignment with an active linked issue.

Previous run (30)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (31)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (32)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (33)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (34)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (35)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (36)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (37)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (38)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, elevated churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (39)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

Previous run (40)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large additive change with no protected paths or workflow edits, high churn and change coupling across touched documentation files, and full alignment with an active linked issue.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Low

  • [logic-error] internal/envmanifest/shellexports.go:106 — The export branch skips every argument that starts with -, so export -n FOO is recorded as exporting FOO. In bash, -n removes the export attribute, and shellexports_test.go expects the wrong result. No current emitter appears to use -n, so the impact is small.
    Remediation: Handle -n as removal of the export attribute instead of skipping it. Add a regression case for export FOO=bar; export -n FOO.
  • [api-shape] internal/runtime/runtime.go:306 — LaunchEnvExporter embeds Runtime. The sibling optional interfaces (ContextBridger, HomeInstructionsBridger, ProviderResolver) declare only their own method. The embed ties the capability interface to the full Runtime contract and complicates test doubles.
    Remediation: Remove the embedded Runtime so the interface declares only LaunchEnvExports() []string.
  • [pattern-inconsistency] internal/cli/env_manifest_golden_test.go:71 — keysOf is a hand-written key collector for map[string][]byte. env_manifest_collector_test.go already uses slices.Collect(maps.Keys(...)).
    Remediation: Replace keysOf(schemas) with slices.Collect(maps.Keys(schemas)) and delete the helper.
  • [backward-incompatible] docs/normative/sandbox-env/v1/README.md — The Versioning table classes some changes as v1 even though they make input that used to validate start failing for consumers pinned to a tag. Adding a name to reserved and removing a name from an export category (after a deprecated window) are the examples. This is documented and the table states the consumer impact, so it is advisory.

Earlier findings

  • docs/ADRs/0146-sandbox-environment-contract-manifest.md:1, architectural-conflict — resolved. Commit 7660dc7 replaced the commit-SHA code permalinks in the Context and Decision sections with plain prose, as docs/contributing/adrs.md asks.

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
Previous run

<!-- fullsend:review-findings-v2:eyJ2Z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dHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJhY2t3YXJkLWluY29tcGF0aWJsZSIsImZpbGUiOiJkb2NzL25vcm1hdGl2ZS9zYW5kYm94LWVudi92MS9SRUFETUUubWQiLCJpZCI6ImZfODExZjk2N2Q3ZGUxMGMxYiIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjcm9zcy1yZXBvLWNvbnRyYWN0cyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZjE0NWYzOWUyZDY4MmQyZiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8xNjM5ZTkzZjgzZDk0NzdiIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzhkODA1OWQ1YWNkMWZlZjQiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfZThiNzliYzNhMDY1YWU1ZSIsInN0YXR1cyI6Im9wZW4ifV19 -->

Review

Findings

Low

  • [logic-error] internal/envmanifest/shellexports.go:106 — export -n FOO is treated as exporting FOO although Bash's -n removes the export attribute, and the new test expects that result. Latent today (no launch command uses export -n), but an emitter that unexports a variable would still look exported to the collector.
    Remediation: Handle export -n separately and change the test to expect no exported name.
  • [api-shape] internal/runtime/runtime.go:306 — LaunchEnvExporter embeds Runtime, unlike the other single-method optional extension interfaces in the package; the type assertion in LaunchEnvExportsFor does not need it.
    Remediation: Declare only LaunchEnvExports() []string.
  • [pattern-inconsistency] internal/cli/env_manifest_golden_test.go:71 — bespoke keysOf helper where sibling tests use slices.Collect(maps.Keys(...)).
    Remediation: Use the standard-library form and drop keysOf.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — ADR 0146 ships with a 34-file implementation, against the docs/contributing/adrs.md recommendation to keep implementation out of ADR PRs. The PR body gives a rationale, so this is a maintainer judgment call.
    Remediation: Split into an ADR/living-docs PR and a follow-up implementation PR, or get explicit maintainer agreement.
  • [backward-incompatible] docs/normative/sandbox-env/v1/README.md — Adding a name to reserved is a v1 change, but consumers validating at a tag or main will see harnesses that set that key start failing CI (previously a silent runner no-op); the deprecated window has no consumer notification mechanism.
    Remediation: Optional: require a release-note entry whenever reserved grows.

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
Previous run (2)

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

Review

Findings

Low

  • [logic-error] internal/envmanifest/shellexports.go:106 — Skipping all export options treats export -n FOO as an export of FOO, although Bash's -n removes the export attribute. The new test asserts this incorrect result, so replacing an export with an unexport can leave the derived launch-export inventory unchanged even though the agent no longer receives the variable.
    Remediation: Handle export options according to their semantics (e.g. do not record operands of export -n), or reject unsupported options rather than recording their operands as exported names. Replace the export -n FOO test expectation in shellexports_test.go with a case checked against actual shell behavior.
  • [api-shape] internal/runtime/runtime.go:306 — Optional extension interfaces in internal/runtime (DebugLogNamer, ContextBridger, HomeInstructionsBridger, ProviderResolver) do not embed the base Runtime interface. LaunchEnvExporter embeds Runtime, which diverges from that pattern and forces stubs to implement every Runtime method; LaunchEnvExportsFor already takes a Runtime before the type assertion, so the embedding is redundant.
    Remediation: Remove the embedded Runtime from LaunchEnvExporter so it declares only LaunchEnvExports() []string.
  • [pattern-inconsistency] internal/cli/env_manifest_golden_test.go:71 — keysOf is a bespoke helper that collects map keys, while sibling tests in internal/cli (env_manifest_collector_test.go lines 115 and 223) use slices.Collect(maps.Keys(...)).
    Remediation: Replace keysOf(schemas) with slices.Collect(maps.Keys(schemas)) and remove the keysOf helper.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — docs/contributing/adrs.md recommends that non-trivial implementation not accompany an ADR in the same PR ("When in doubt, split the implementation into its own PR"). This PR couples ADR 0146 with a substantial implementation across 34 files. The author acknowledged the guideline and justified the coupling as proof of generator feasibility; this is a process deviation left to maintainer discretion.

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
Previous run (3)

Review

Findings

Low

  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — ADR 0146 ships in the same PR as a non-trivial implementation (new internal/envmanifest package, runtime LaunchEnvExporter, collector and golden tests, generated schemas). docs/contributing/adrs.md recommends keeping implementation out of ADR PRs. The PR body acknowledges the guideline, explains why the generator is the evidence for the decision, and offers a clean split. Whether to accept that rationale is a maintainer call, not a defect, so this is advisory.
    Remediation: Maintainers decide whether to accept the stated rationale. If not, split the ADR and living-doc updates from internal/, the tests, and docs/normative/sandbox-env/v1/.
  • [sub-agent-failure] N/A — The docs-currency sub-agent did not return findings: it timed out after 900s. Documentation staleness was not independently checked in this run.

Earlier findings

  • internal/envmanifest/schema.go:93, api-contract — resolved: reserved-name matching is now case-insensitive (reserved_any_case), with lower- and mixed-case test cases.
  • internal/envmanifest/schema.go:73, api-contract — resolved: overlays[].env now uses the shared env-block validation.
  • internal/envmanifest/schema.go:73, fail-open — resolved: overlay entries are validated, with reserved- and malformed-name rejection tests.
  • internal/envmanifest/schema.go:93, fail-open — resolved: reserved-name rejection covers lower- and mixed-case spellings across top-level, forge, and overlay inputs.
  • internal/envmanifest/schema.go:105, logic-error (two findings) — resolved: hook-only variables are now restricted to the runtimes that emit them (conditionalReachableUnder).
  • internal/envmanifest/schema.go:106, logic-error — resolved: per-runtime reachability no longer admits every conditional variable.
  • docs/ADRs/0146-sandbox-environment-contract-manifest.md:27, architectural-conflict — resolved: the commit-SHA permalinks were replaced with plain prose and moved to the PR description's code evidence.
  • docs/ADRs/0146-sandbox-environment-contract-manifest.md:1, architectural-conflict — reclassified from medium to low (see above).
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJ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JyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9iNWYyNTU1ZDMzOGI5YjM2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzE4M2I4OTA0ZWU2YzQ3OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [api-contract] internal/envmanifest/schema.go:93 — Reserved-name validation is case-sensitive, unlike the runner's case-insensitive isReservedSandboxKey check. For example, {"env":{"sandbox":{"traceparent":"x"}}} passes the published harness schema, but the runner drops that binding.
    Remediation: Generate a case-insensitive reserved-name constraint while retaining the canonical uppercase inventory, and test lowercase and mixed-case reserved keys.
  • [api-contract] internal/envmanifest/schema.go:73 — The harness schema checks top-level env and forge.<name>.env but leaves overlays unconstrained. A harness containing {"overlays":[{"when":"true","env":{"sandbox":{"TRACEPARENT":"x"}}}]} validates successfully even though overlays supply effective sandbox environment settings and the runner drops the reserved key. The reserved-key gate therefore misses an existing harness configuration path.
    Remediation: Validate overlays[].env using the same env_block definition and add a reserved-key rejection test for an overlay.
    See also: [fail-open] finding at this location.
  • [fail-open] internal/envmanifest/schema.go:73 — The harness schema validates env.sandbox at the top level and under forge.<name>, but leaves overlays unconstrained, so a harness with reserved keys such as OPENAI_API_KEY or LD_PRELOAD in an overlay's env.sandbox passes validation. The runner's existing filtering still prevents export, so this is a schema-validation gap rather than a runtime injection bypass.
    Remediation: Apply the env_block definition to overlays[*].env, and add validation tests for reserved names and invalid variable names in overlays.
    See also: [api-contract] finding at this location.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:27 — ADR 0146 embeds raw GitHub code permalinks with commit SHAs and line ranges (line 27 in Context, line 77 in Decision). docs/contributing/adrs.md tells reviewers to flag such permalinks in Context or Decision; the ADR should describe the behavior in plain prose and link the introducing PR, issue, or ADR, with SHA evidence kept in the PR description.
    Remediation: Replace the permalinks at lines 27 and 77 with plain-language descriptions of reservedSandboxKeys and bootstrapEnv in internal/cli/run.go, and move the commit-SHA evidence to the PR description.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — The PR bundles a substantial implementation (new internal/envmanifest package, runtime interface extensions, collector and golden tests, generated normative schemas; 34 files) with ADR 0146. docs/contributing/adrs.md recommends that an ADR PR carry only the decision record and living-document updates, with non-trivial implementation landing in a separate PR. This is a process recommendation for the maintainers to weigh, not an automatically fixable defect.
    Remediation: Consider splitting into an ADR/living-docs PR and an implementation PR, or explain in the PR description why bundling is warranted.

Low

  • [fail-open] internal/envmanifest/schema.go:93 — The reserved-name rejection uses a case-sensitive enum: env.sandbox.http_proxy and env.sandbox.OpenAI_API_KEY pass validation although the runner's isReservedSandboxKey matches case-insensitively and drops them.
    Remediation: Generate case-insensitive reserved-name constraints while preserving the canonical uppercase inventory, and test lowercase and mixed-case variants at each supported env location.
    See also: [api-contract] finding at this location.
  • [logic-error] internal/envmanifest/schema.go:105 — Every runtime, including portable, admits the entire conditional category, so {"runtime":"opencode","variables":["TIRITH_REQUIRED"]} passes even though the inventory states that this variable, TIRITH_FAIL_ON, and FULLSEND_EGRESS_ALLOWLIST never reach opencode. Gate descriptions do not constrain JSON Schema validation.
    Remediation: Represent runtime applicability structurally and exclude these hook variables from opencode and portable reachability while keeping their gate descriptions in the inventory.
  • [logic-error] internal/envmanifest/schema.go:105 — harness_delivered is included unconditionally in every runtime's reachable set although these variables require optional harness configuration; portable code referencing GOOGLE_APPLICATION_CREDENTIALS validates even for a harness that delivers no credentials.
    Remediation: Keep harness_delivered as inventory metadata but require explicit harness-delivery evidence before admitting those names, or exclude them from default reachability and use the documented subtraction of harness-declared variables.
  • [sub-agent-failure] N/A — The challenger sub-agent did not return findings: invalid adjudication accounting (two challenged inputs share the identical identity logic-error + internal/envmanifest/schema.go + line 105, so the output cannot be matched one-to-one). Using pre-challenger finding set.

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
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJpbnRlcm5hbC9lbnZtYW5pZmVzdC9zY2hlbWEuZ28iLCJpZCI6ImZfMDRlMzE4MjNjMGM0MTBlYiIsImxpbmUiOjkzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJpbnRlcm5hbC9lbnZtYW5pZmVzdC9zY2hlbWEuZ28iLCJpZCI6ImZfZTk3OTM3NDVmYmI3MDIyYiIsImxpbmUiOjczLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImZhaWwtb3BlbiIsImZpbGUiOiJpbnRlcm5hbC9lbnZtYW5pZmVzdC9zY2hlbWEuZ28iLCJpZCI6ImZfZjNjMGYzOWM2ZWVjNzBiNSIsImxpbmUiOjczLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFyY2hpdGVjdHVyYWwtY29uZmxpY3QiLCJmaWxlIjoiZG9jcy9BRFJzLzAxNDYtc2FuZGJveC1lbnZpcm9ubWVudC1jb250cmFjdC1tYW5pZmVzdC5tZCIsImlkIjoiZl80ZDVjZGQ0Zjc5NjJkYjhhIiwibGluZSI6MSwiYWN0aW9uYWJsZSI6ZmF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NWYyNTU1ZDMzOGI5YjM2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzE4M2I4OTA0ZWU2YzQ3OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [api-contract] internal/envmanifest/schema.go:93 — The reserved-name check is case-sensitive, whereas the runner's isReservedSandboxKey uppercases names before checking them. {"env":{"sandbox":{"traceparent":"x"}}} passes the published schema even though the runner drops that key; lowercase proxy names such as https_proxy have the same mismatch.
    Remediation: Generate a case-insensitive reserved-name constraint for harness property names while preserving canonical uppercase inventory names, and add mixed-case validation tests.
  • [api-contract] internal/envmanifest/schema.go:73 — The harness schema constrains only top-level env and forge.<name>.env; overlays are unconstrained. OverlayEntry embeds ForgeConfig (including Env), so an overlay with env.sandbox.TRACEPARENT passes the schema although the runner drops that reserved setting. The stock Vertex scaffold delivers env.sandbox through an overlay, so this is an in-use path outside the advertised gate.
    Remediation: Apply the env_block constraint to overlays[*].env and add a validation test containing a reserved key in an overlay.
  • [fail-open] internal/envmanifest/schema.go:73 — Same root cause as the overlay finding above, viewed as a gate gap: {"overlays":[{"when":"true","env":{"sandbox":{"OPENAI_API_KEY":"x"}}}]} passes the published harness validation. The runner still drops reserved keys at runtime, so this bypasses the external contract check, not the runtime sandbox boundary. See also: [api-contract] finding at this location.
    Remediation: Apply the env_block definition to overlays[*].env and add negative validation cases for reserved keys in overlays.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — ADR 0146 is bundled with a 3,000+ line production and test implementation. docs/contributing/adrs.md ("Keep implementation out of ADR pull requests") recommends that implementation not accompany an ADR unless it is really short and trivial, which this is not.
    Remediation: Split into an ADR PR and a separate implementation PR, or obtain explicit maintainer agreement to keep them together.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:27 — Code permalinks (blob/487169a9da/...) remain in the Context section (line 27) and the Decision section (line 77). docs/contributing/adrs.md requires plain prose; code evidence at a commit SHA belongs in the PR description.
    Remediation: Replace the permalinks with prose references (e.g. reservedSandboxKeys and bootstrapEnv in internal/cli/run.go) and cite code evidence at a commit SHA in the PR description.

Low

  • [logic-error] internal/envmanifest/schema.go:105 — Every runtime, including portable and opencode, admits the whole conditional category. It includes TIRITH_REQUIRED, TIRITH_FAIL_ON and FULLSEND_EGRESS_ALLOWLIST, which the generated descriptions say are unreachable under opencode, yet {"runtime":"opencode","variables":["TIRITH_REQUIRED"]} validates.
    Remediation: Represent runtime eligibility structurally and exclude hook-only conditional names from opencode and portable reachability; add negative validation cases.
  • [logic-error] internal/envmanifest/schema.go:106 — The shared reachability union unconditionally includes harness_delivered, so GOOGLE_APPLICATION_CREDENTIALS and the other Vertex scaffold variables validate for every runtime even if the harness does not declare them, while the README describes that category as configuration rather than a guarantee. The design may be deliberate, so evidence is ambiguous.
    Remediation: Keep harness_delivered as inventory metadata but exclude it from unconditional reachability, or extend the instance format to carry explicit delivered names.
  • [fail-open] internal/envmanifest/schema.go:93 — Same root cause as the case-sensitivity finding above: lowercase and mixed-case reserved names (http_proxy, OpenAI_API_KEY) pass the schema while the runner case-folds before denying them. See also: [api-contract] finding at this location.
    Remediation: Generate a case-insensitive reserved-name matcher for harness property names and test upper, lower and mixed-case spellings at every supported env location.

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
Previous run (6)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJpbnRlcm5hbC9lbnZtYW5pZmVzdC9zY2hlbWEuZ28iLCJpZCI6ImZfMDRlMzE4MjNjMGM0MTBlYiIsImx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I6ImZfMWJiZDI3MmFiNTFiODRmMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzljZTE0ZmE2ZjE3NjI5ZDMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8xMDRiMjhjMmExODMzZjMzIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMGNlODQ3ZDA1ZDk2MTE5MiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzg5ODQyM2FhNWU4Y2U1ZGUiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8yZTgwYTdlN2U2MTRkZTYxIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfN2NmYzMzOTUyMjVkMjI0MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzhlMWEzYzdhOWQ5MjM1OWIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8xZmUyNTIxMDhiZmMxYWI5Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYjVmMjU1NWQzMzhiOWIzNiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzMxODNiODkwNGVlNmM0NzgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [api-contract] internal/envmanifest/schema.go:93 — Reserved-name validation is case-sensitive, but the runner uppercases names before checking, so https_proxy in env.sandbox passes the published schema and is silently dropped at runtime.
    Remediation: Generate a case-insensitive reserved-name matcher for harness property validation and test lowercase and mixed-case names.
  • [api-contract] internal/envmanifest/schema.go:73 — The harness schema leaves overlays unconstrained. OverlayEntry embeds ForgeConfig (including Env), so overlays[*].env.sandbox with a reserved key such as PATH validates but is dropped by the runner.
    Remediation: Apply the env_block definition to overlays[*].env and add validation cases for overlays.
  • [fail-open] internal/envmanifest/schema.go:73 — The reserved-key validation gate does not cover harness overlays (see also the api-contract finding at this location); the runner still drops the key, so this is a missed detection, not an injection.
    Remediation: Apply env_block to overlays[*].env in the generated harness schema and add negative tests.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:1 — The PR bundles ADR 0146 with a large implementation (34 files across internal/envmanifest, internal/cli, internal/runtime, docs/normative), contrary to docs/contributing/adrs.md ("Keep implementation out of ADR pull requests").
    Remediation: Split into an ADR PR (ADR plus living-document updates) and a separate implementation PR.
  • [architectural-conflict] docs/ADRs/0146-sandbox-environment-contract-manifest.md:27 — The ADR has raw code permalinks (blob/487169a9da/...) at line 27 (Context) and line 77 (Decision); adrs.md requires plain-prose description with commit-SHA evidence in the PR description.
    Remediation: Replace the permalinks with plain-language descriptions of reservedSandboxKeys and bootstrapEnv and move citations to the PR description.

Low

  • [logic-error] internal/envmanifest/schema.go:105 — Every runtime, including opencode, accepts every conditional variable, so {"runtime":"opencode","variables":["TIRITH_REQUIRED"]} validates even though the gate descriptions say it is unreachable under opencode; portable code is not guaranteed to work under every runtime.
    Remediation: Represent runtime applicability structurally, exclude the hook variables from opencode and portable reachability, and add negative tests.
  • [logic-error] internal/envmanifest/schema.go:106 — Carried forward from the prior review: same runtime-reachability block as the finding above; no fix is visible in the current code.
    Remediation: See the remediation for the finding at schema.go:105.

Earlier findings

  • internal/envmanifest/schema.go:33, fail-open, reclassified low to info — only validators with Python re.search semantics accept a trailing newline in the env-name pattern; ECMA-262 validators and the runner reject it.

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

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added component/sandbox OpenShell sandbox environment component/docs User-facing documentation type/adr labels Oct 21, 2026
@jflowers
jflowers force-pushed the opsx/sandbox-env-manifest branch from e38def5 to 8e22ebc Compare October 21, 2026 20:47
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 8:49 PM UTC · Ended 9:03 PM UTC

Commit: 8e22ebc · View workflow run →

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://a18291f8-site.fullsend-ai.workers.dev

Commit: 42237e7fb0f9db39062beedfe4a3692ef235d6d1

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:49 PM UTC · Completed 9:03 PM UTC

Commit: 8e22ebc · View workflow run →

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

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:39 PM UTC · Completed 10:54 PM UTC

Commit: 405ae6c · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:00 AM UTC · Completed 6:14 AM UTC

Commit: bc697d2 · View workflow run →

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

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:58 AM UTC · Completed 10:14 AM UTC

Commit: a251332 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 5:57 PM UTC · Completed 6:16 PM UTC

Commit: 1c73426 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:31 PM UTC · Completed 11:52 PM UTC

Commit: 44b8f2d · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:43 AM UTC · Completed 4:07 AM UTC

Commit: f7283f2 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:39 AM UTC · Completed 11:56 AM UTC

Commit: 7d463fe · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:09 PM UTC · Completed 12:40 PM UTC

Commit: 7a468d9 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@jflowers

jflowers commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review findings in fd6ca0d and 7a468d9:

  • [api-contract]/[fail-open] case-sensitive reserved names (schema.go:93): fixed. harness-env.schema.json now rejects reserved names in any letter case through a new reserved_any_case pattern (each letter as a two-case class, since JSON Schema patterns have no case-insensitive flag), matching isReservedSandboxKey's upper-casing. #/$defs/reserved keeps the canonical uppercase inventory. Tests cover traceparent, OpenAI_API_Key, and gh_workflow_token, plus a name that merely contains a reserved one.
  • [api-contract]/[fail-open] overlays unconstrained (schema.go:73): fixed. overlays[].env is validated with the same env_block. Tests cover a reserved key, a lowercase reserved key, and an invalid name in an overlay.
  • [logic-error] hook env reachable under opencode/portable (schema.go:105): fixed structurally. Exports.ConditionalRuntimes restricts a conditional name to the runtimes whose bootstrap emits it. The collector derives that set by walking internal/runtime's call graph from each runtime's Bootstrap to appendHookEnv (claude, codex, pi), and checks that each hook gate description names the runtimes it excludes. {"runtime":"opencode","variables":["TIRITH_REQUIRED"]} and the portable equivalent are now invalid.
  • [logic-error] harness_delivered unconditionally reachable (schema.go:106): kept as designed. Fleet harnesses deliver these names through env/gcp-vertex.env (a host file), not env.sandbox, so the "subtract what env.sandbox declares" rule would not cover them, and removing the category from reachability would fail valid fleet skills. The README already documents the category as configuration, not a guarantee.
  • [architectural-conflict] ADR permalinks (0146:27, 0146:77): fixed. Both are now plain prose naming reservedSandboxKeys and bootstrapEnv in internal/cli/run.go, and the SHA permalinks moved to a "Code evidence" section in the PR description.
  • [architectural-conflict] ADR bundled with implementation: explained in a new "Why the ADR and implementation ship together" section in the PR description: the decision is that the contract is generated from the emitters, and the collector is the evidence that this is feasible. This is the maintainers' call, and the PR splits cleanly if they prefer.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:04 PM UTC · Completed 7:28 PM UTC

Commit: e3d6ecf · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:22 AM UTC · Completed 12:44 AM UTC

Commit: 55024f6 · View workflow run →

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

fullsend-ai-review[bot]

This comment was marked as outdated.

jflowers and others added 4 commits November 6, 2026 02:14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jay Flowers <jay.flowers@gmail.com>
Replace the bespoke sandbox-env.json with two generated, self-contained
Draft 2020-12 schemas, per review: every other docs/normative contract is
JSON Schema, and consumers can validate with stock tooling.

- harness-env.schema.json rejects reserved keys in a harness's
  env.sandbox blocks (top level and forge.<name>.env).
- env-references.schema.json checks that code running under a runtime
  (or "portable") reads only reachable variables; its $defs carry the
  full inventory, with gates and provenance as const descriptions.

Make collection export-aware (review finding): a new
envmanifest.ExportedNames parser recognizes export statements, bare
re-exports, and prefix assignments, and ignores shell-local
assignments, quoted data, and command substitutions. The collector
replays the commands that write sandbox env files in a scratch
workspace instead of regex-matching their text. This surfaces
OPENCODE_CONFIG_CONTENT, which the regex missed.

Pin LaunchEnvExports to the launch commands (review finding):
TestLaunchEnvExportsMatchLaunchCommands builds each runtime's launch
command across hooks, gateway, auth-mode and provider variants and
requires the declared list to equal what they export. Claude now
implements LaunchEnvExporter, and the lists gain the names they were
missing (CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC and the gateway
variables, INFERENCE_GATEWAY_*, codex FULLSEND_TRUSTED_PATH, opencode
HOME).

Scope the ADR and README to the sandbox; host-side script env is out of
scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jay Flowers <jay.flowers@gmail.com>
… schemas

The runner upper-cases an env.sandbox key before the reserved lookup and
reads env from overlays as well as forge entries, but the harness schema
matched reserved names case-sensitively and left overlays[].env
unconstrained, so traceparent or an overlay's OPENAI_API_KEY validated
and was then silently dropped. Add a reserved_any_case pattern (each
letter as a two-case class, since JSON Schema patterns have no
case-insensitive flag) and validate overlays[].env with env_block.

Hook env (TIRITH_FAIL_ON, TIRITH_REQUIRED, FULLSEND_EGRESS_ALLOWLIST) is
appended only by runtimes whose Bootstrap reaches appendHookEnv, yet
every runtime admitted the whole conditional category, so opencode and
portable claims validated for names those sandboxes never see. Model the
restriction as Exports.ConditionalRuntimes; the collector derives the
runtime set from internal/runtime's call graph and checks each gate
description names the runtimes it excludes. Regenerated the schemas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jay Flowers <jay.flowers@gmail.com>
ADR 0146 cited internal/cli/run.go through commit-SHA permalinks in its
Context and Decision sections; docs/contributing/adrs.md asks for plain
prose there, with code evidence in the PR description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jay Flowers <jay.flowers@gmail.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:16 AM UTC · Completed 7:38 AM UTC

Commit: 42237e7 · View workflow run →

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

@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 internal/envmanifest/shellexports.go Resolved
Comment thread internal/runtime/runtime.go Resolved

This branch was successfully deployed

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

Labels

component/docs User-facing documentation component/sandbox OpenShell sandbox environment risk/moderate PR risk: moderate type/adr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Machine-checkable sandbox env-var contract (manifest of exported/reserved sandbox variables)

2 participants