Skip to content

Add opt-in OpenShell sandbox execution for Herdr Codex workers - #6487

Open
Cadododoom wants to merge 21 commits into
kunchenguid:mainfrom
Cadododoom:fm/firstmate-openshell-codex-20260928
Open

Cadododoom wants to merge 21 commits into
kunchenguid:mainfrom
Cadododoom:fm/firstmate-openshell-codex-20260928

Conversation

@Cadododoom

@Cadododoom Cadododoom commented Oct 3, 2026 •

Copy link
Copy Markdown

Herdr Codex ship workers can opt into an OpenShell process boundary through private home configuration.
Herdr retains pane/session ownership; the runner transfers only tracked task files, binds operations to the recorded OpenShell workspace identity, mediates fixed task channels, and fails closed without launching host Codex.
The change includes workspace synchronization, rollback, recovery, teardown guards, and a scoped host validation handoff.
Default launches remain unchanged.

Setup requires a reviewed workload image, configured providers/network policy, a reachable gateway, and Linux Landlock enforcement.
The sandbox integration currently supports no-mistakes ship tasks only; Direct PR inside the sandbox is refused because the worker has no host forge credentials or push capability.
This PR itself is published through the explicitly selected Direct PR delivery path.

Validation on merge commit 5bc8c25:

  • bash bin/fm-test-run.sh tests/fm-openshell-codex.test.sh: passed.
  • bash bin/fm-doc-audience-check.sh: passed (118 surfaces, 723 links).
  • bash bin/fm-lint.sh: passed with pinned ShellCheck 0.11.0 and actionlint 1.7.12.
  • Both the preserved local head and terminal pipeline head remain ancestors of the publication commit.

Acceptance limits: the previous no-mistakes run failed during Test and did not complete Document/Lint/Push/PR/CI.
Its preserved review/test fixes were recovered through supported custody operations and merged without dropping either history.
Preserved live evidence covers real OpenShell transfer/synchronization, rollback, workspace/global-policy refusals, and filesystem/network/ambient-credential denial in a disposable graphical guest.
That evidence is bound to pipeline head 2622b3b and is not a fresh end-to-end acceptance result for this merge commit.
Authenticated interactive Codex, complete public run/recover/relaunch lifecycle, and live host validation invocation remain unverified.
No additional login, credential grant, live cloud upload, shared daemon restart, merge, or deployment was performed.
This Direct PR carries no completed no-mistakes attestation; the required compliance check may reject it pending follow-up validation.

@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Critical risk] Adds sandbox execution for Codex tasks with process isolation and file transfer.

No outstanding code finding from this review blocks merging; the PR does not claim completed live sandbox acceptance.

Reviews (3) · Last reviewed commit: "Preserve OpenShell validation fixes for ..."

Comment thread bin/fm-openshell-codex.py Resolved
Comment thread bin/fm-openshell-codex.py Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: triage for this PR.

Outcome: waiting-author (Greptile P1s including a security finding; incomplete no-mistakes pipeline; no attestation — not merged; fork CI left unapproved).

Contract-class (own judgment): opt-in — gated by home-local config/herdr-codex-openshell; unconfigured Herdr Codex path unchanged. Inspected tip: spawn only enables OpenShell when that file exists (or relaunch meta already bound). Not restore. Not new-default.

Attestation: MISSING — no no-mistakes-pipeline-attestation:v1 for HEAD 03bdfa0e. Author body states Test was cancelled incomplete and this is a direct-publication path without completed validation/CI approval.

CI / NM: both action_required (37127961049 CI, 37127961225 Require no-mistakes) — not approved this pass (security tip + incomplete validation).

Greptile: P1×2 — (1) failed preparation can strand the task directory with no recoverable journal; (2) security — synchronized new files lose restrictive permissions (0644 instead of preserving). Confidence 2/5.

Security FYI (not otherwise-ready → stamp only, no waiting-captain card): permission widening on sandbox→worktree sync. Blocked on author; no merge gate card.

VISION (7):

  • One captain — aligns (opt-in; no default captain noise).
  • Authority explicit — aligns (presence-flag; refuse host fallback when configured).
  • Scripts vs agents — aligns (deterministic runner + capability helper).
  • Restart non-event — does not align yet (P1 stranded prep directory).
  • Delegation — aligns (explicit sandbox boundary for enrolled tasks).
  • Fleet outlives vendor — weak/aligns cautiously (OpenShell/NVIDIA-specific adapter; named quarantine in docs).
  • Scope — aligns (execution boundary, not forge).

No Fixes/Closes. Fork workflows withheld. Please address Greptile P1s, finish no-mistakes attestation for HEAD, and re-request review.

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.

2 participants