Skip to content

Keep check environment values out of launcher arguments - #1427

Merged
mergify[bot] merged 3 commits into
mainfrom
lean178/1029-descriptor-integration
Nov 26, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
lean178/1029-descriptor-integration

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Keep check environment values out of launcher arguments

Context and goal

  • Goal: Checks receive their configured environment and private HOME without exposing variables as launcher arguments.
  • Problem: Forwarded values passed to Bubblewrap as arguments can appear in process listings.
  • Context: The namespace probe, Git alternate probe, and check launcher share the same Bubblewrap setup.

Closes #1029

Acceptance

  • Forwarded synthetic values reach the check without appearing in process arguments or launch diagnostics.
  • Unlisted variables stay absent and HOME stays private.
  • Both probes use the same environment channel.

Notes

Pass the filtered environment through Bubblewrap's file-descriptor option stream. Keep environment clearing inside Bubblewrap so config variables cannot affect the host launcher. Use a private file per launch to avoid shared offsets across probes and checks.

This replaces #1355. It retains the reviewed descriptor transport and preserves the newline handling added in #1353.

Validation

Recorded for a78cdbb27ba1

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

The conflict resolution passed all 11 process tests and 83 sandbox tests.

Base

Base: b8abab8

Review

  • primary, claude, fb7e54e, approve

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero primary review by claude on fb7e54e424310df10dafc8fc8d366ff40ac911d6, 52.5s: approve (0 critical, 0 important, 2 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread src/loopzero/sandbox.py Resolved
Comment thread src/loopzero/sandbox.py Resolved
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Parked at approved head fb7e54e4. The full local heavy-slot check completed successfully with a valid exact-head receipt. The clean integration with current main projects 13,889 test lines against the 13,850 cap. Merge is also held behind #1408 in the requested order.

eowca and others added 2 commits November 26, 2026 12:09
Keep the approved private descriptor transport and guard the launcher separator. Adapt existing tests to exercise child values and the bounded launch path.

Architecture-Review: unchanged; the PR keeps the documented descriptor boundary and current output limits.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero delta review by claude on a78cdbb27ba1101f222ff04e4552719ade31fd7d, 30.2s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread tests/test_sandbox.py Resolved
@eowca
eowca marked this pull request as ready for review November 26, 2026 11:18
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as e3ab32e at 11:27 UTC

7 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 11:20 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1835
  • ✅ Merged 11:27 · e3ab32e · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit e3ab32e into main Nov 26, 2026
23 checks passed
@eowca
eowca deleted the lean178/1029-descriptor-integration branch November 26, 2026 11:27
@mergify mergify Bot removed the queued label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security: Keep forwarded check environment values out of process arguments

1 participant