Repository navigation
Commit 9f142dc
committed
fix(safety, task): cover the directory-failure paths and release the observation registry on dispose
Two pre-merge warnings on Zoo-Code-Org#1912:
- Regression Evidence: safeWriteText's parent-directory creation and access failures are now covered - each propagates its original error and nothing is staged or renamed (no publish).
- Lifecycle Resource Cleanup: the task-owned ObservationRegistry is cleared in Task#disposeOnce so its per-path Map cannot outlive the task; a disposal test asserts the entry is gone after dispose.
The Security Boundaries error (handle-relative/no-follow publication) is the series' registered residual window: the Zoo-Code-Org#1914 pinning port in this branch narrows it, and the descriptor-relative primitive is tracked in Zoo-Code-Org#2148 / Zoo-Code-Org#1414 / Zoo-Code-Org#1991.
Local evidence: safeWriteText suite 86 passed (including the two new directory-failure tests). Task.spec cannot load in this borrowed-node_modules worktree (missing @ai-sdk/openai-compatible) - CI is the authority for that suite.1 parent b41213f commit 9f142dc
3 files changed
Lines changed: 47 additions & 0 deletions
File tree
- src
- core/task
- __tests__
- services/file-safety/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3615 | 3615 | | |
3616 | 3616 | | |
3617 | 3617 | | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
3618 | 3626 | | |
3619 | 3627 | | |
3620 | 3628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1810 | 1810 | | |
1811 | 1811 | | |
1812 | 1812 | | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
1813 | 1829 | | |
1814 | 1830 | | |
1815 | 1831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
180 | 203 | | |
181 | 204 | | |
182 | 205 | | |
| |||
0 commit comments