Skip to content

fix(pi): isolate writable configuration in jailed runs - #104

Merged
drewstone merged 5 commits into
mainfrom
fix/pi-writable-config-20260802
Aug 3, 2026
Merged

fix(pi): isolate writable configuration in jailed runs#104
drewstone merged 5 commits into
mainfrom
fix/pi-writable-config-20260802

Conversation

@drewstone

@drewstone drewstone commented Aug 3, 2026

Copy link
Copy Markdown
Owner

What changed

  • copy Pi's active agent directory to a request-unique writable directory only when filesystem confinement is active
  • point the confined child at that copy while preserving the normal environment on an unconfined fallback
  • load Pi extensions from the same copied directory and remove copies after completion or failed setup
  • clean dead-process copies without age limits, and preserve concurrent stable auth directories

Why

Pi locks and updates its settings. A read-only bind made real confined Pi runs fail before inference, while sharing one writable directory would let concurrent runs alter each other.

Checks

  • pnpm typecheck
  • pnpm test — 595 passed, 6 skipped
  • pnpm verify — 6 configured backends ready
  • pnpm verify:fs-jail — 8/8 checks passed
  • focused follow-up — 51 jail tests passed
  • DeepSeek V4 Flash through Pi/Tangle Router: APPROVE; no medium-or-higher findings

@drewstone
drewstone merged commit 7c05fa1 into main Aug 3, 2026
1 check passed
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.

1 participant