sandbox: leak-free placement for the .<tool>.cliguard exec symlink #185

Closed
opened 2026-07-03 20:00:47 +00:00 by coilyco-ops · 2 comments
Member

Follow-up to 8886aee (closes ward#546). installToolShim now drops a .<tool>.cliguard symlink beside the canonical entry (e.g. next to brew) and execs that, so a $0-sensitive tool resolves the correct install prefix. It works, but the symlink is written to the real canonical dir inside the jail namespace and persists on the host - it is idempotently reused, so not a correctness issue, but it is a small on-host artifact leak.

Worth a leak-free placement: an overlay/tmpfs mount over the canonical dir, or another mechanism that keeps the exec symlink inside the sandbox and off the host filesystem. Noted in the commit body as a known follow-up.

Follow-up to 8886aee (closes ward#546). installToolShim now drops a `.<tool>.cliguard` symlink beside the canonical entry (e.g. next to brew) and execs that, so a $0-sensitive tool resolves the correct install prefix. It works, but the symlink is written to the real canonical dir inside the jail namespace and **persists on the host** - it is idempotently reused, so not a correctness issue, but it is a small on-host artifact leak. Worth a leak-free placement: an overlay/tmpfs mount over the canonical dir, or another mechanism that keeps the exec symlink inside the sandbox and off the host filesystem. Noted in the commit body as a known follow-up.
Author
Member

WARDED_WORKFLOW: reservation-held

reservation details

Holder: launch intent for container engineer-codex-cli-guard-185 on host kais-macbook-pro-2.local.

Accepted by ward agent --harness codex (reserved 2026-07-14T08:53:02Z). Concurrent ward agent runs are blocked until this intent becomes visible or the intent is released. The stale-intent fallback is still TTL-bounded (3h TTL). --override-reservation overrides.

Do not comment on or edit this issue to steer the run while it is reserved. The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a new issue, dispatched fresh. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494).

run seed context — what this run is carrying (ward#609)
  • Resolved: coilyco-flight-deck/cli-guard#185 · branch issue-185 · harness codex · workflow pull-request-and-merge
  • Run: engineer-codex-cli-guard-185 · ward v0.672.0 · dispatched 2026-07-14T08:53:00Z
  • Comment thread: 0 included in the pre-flight read, 0 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.672.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARDED_WORKFLOW: reservation-held <details><summary>reservation details</summary> Holder: launch intent for container `engineer-codex-cli-guard-185` on host `kais-macbook-pro-2.local`. Accepted by `ward agent --harness codex` (reserved 2026-07-14T08:53:02Z). Concurrent `ward agent` runs are blocked until this intent becomes visible or the intent is released. The stale-intent fallback is still TTL-bounded (3h TTL). `--override-reservation` overrides. **Do not comment on or edit this issue to steer the run while it is reserved.** The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a **new issue, dispatched fresh**. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/cli-guard#185` · branch `issue-185` · harness `codex` · workflow `pull-request-and-merge` - **Run:** `engineer-codex-cli-guard-185` · ward `v0.672.0` · dispatched `2026-07-14T08:53:00Z` - **Comment thread:** 0 included in the pre-flight read, 0 stripped (ward's own automated comments). Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.672.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARDED_WORKFLOW: #227

details

workflow: pull-request-and-merge; review summary: skipped because review gate skipped by ~/.ward/config.yaml default

Implementation felt like a narrow refactor after the lint feedback. Confidence: high. Surprise: CI failure was gocognit/unparam, not the sandbox leak work. Follow-ups: none.

WARDED_WORKFLOW: https://forgejo.coilysiren.me/coilyco-flight-deck/cli-guard/pulls/227 <details><summary>details</summary> workflow: pull-request-and-merge; review summary: skipped because review gate skipped by ~/.ward/config.yaml default Implementation felt like a narrow refactor after the lint feedback. Confidence: high. Surprise: CI failure was gocognit/unparam, not the sandbox leak work. Follow-ups: none. </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/cli-guard#185
No description provided.