Commit 7369563
authored
Sandbox (the last open critical from the Codex review):
- createCommandRunner({ env }) — when set, replaces the child env so
spawned commands don't inherit the parent environment.
- scrubbedEnv() strips secret-shaped vars (ANTHROPIC_API_KEY,
OPENAI_API_KEY, GH/GITHUB tokens, *_KEY/_TOKEN/_SECRET/_PASSWORD, AWS_*
etc.) while keeping PATH/HOME/npm_config_* so pnpm/tsc/vitest still run.
- run-a builds the loop's runner with scrubbedEnv(); GitOps keeps its own
full-env runner so `git push` / `gh pr create` still authenticate.
That's credential separation: secrets are in scope ONLY for the git/gh
steps that need them, never for untrusted target-repo install/build/test.
- pnpm install runs with --ignore-scripts by default; opt back in via
ASIL_ALLOW_INSTALL_SCRIPTS=1. Kills lifecycle-script RCE on install.
- README gains a "Running against untrusted repos" section stating plainly
what Level 1 does and does not protect (no fs/network isolation yet;
containerized exec is the planned opt-in for adversarial input).
Internal docs removed from the public repo and moved to the private KB
(ASIL/private-kb/, outside the repo): CODEX_REVIEW.md and the design doc.
.gitignore now excludes CODEX_REVIEW.md and docs/design/ so they can't be
re-committed by accident.
Tests: 384 → 387. New: scrubbedEnv strips secrets / keeps build vars;
CommandRunner { env } isolates a secret from the spawned process while the
inherited runner still sees it; loop installs with --ignore-scripts by
default. No skips.
Refs Codex review #1 (private KB).
1 parent 6eef546 commit 7369563
9 files changed
Lines changed: 186 additions & 164 deletions
File tree
- docs/design
- packages
- asil-improvement-loop/src
- __tests__
- asil-runners/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| |||
This file was deleted.
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
152 | 188 | | |
153 | 189 | | |
154 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
229 | 236 | | |
230 | 237 | | |
231 | 238 | | |
| |||
0 commit comments