pi-crew 0.11.27 → 0.11.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/index.mjs +520 -520
- package/package.json +1 -1
- package/src/runtime/child-pi/child-pi-rpc.ts +137 -29
- package/src/runtime/classifier/classifier-service.ts +26 -4
- package/src/runtime/dwf-state-store.ts +7 -0
- package/src/runtime/goal-workflow/dynamic-workflow-runner.ts +41 -1
- package/src/runtime/pi-spawn.ts +9 -1
- package/src/runtime/scheduling/scheduler.ts +12 -1
- package/src/state/contracts.ts +3 -0
- package/src/state/stores/artifact-store.ts +10 -0
- package/src/state/stores/state-store.ts +21 -2
- package/src/ui/theme-adapter.ts +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,37 @@
|
|
|
6
6
|
|
|
7
7
|
- **fix(gate): RT24-F1 root-gate config/autonomy read over-block** — `rootGateBlockReason` counted the `args` subcommand carrier as a config patch key, so worker-origin `config {args:"show"}` READS were rejected as "writes user-scope config" (live-caught in the v0.11.24 real-test battery; docblock promised reads open). `args` added to the carrier-key sets for `config` and `autonomy`; unknown junk keys stay write-classified (fail-closed). Pinned: reads with carrier keys open, writes hidden behind the same key still gated (`unset`/patch keys), user config byte-untouched. Live-verified end-to-end (fresh `pi -p`, worker env): read allowed + dumps config; `unset` write gate-blocked verbatim "root-session required".
|
|
8
8
|
|
|
9
|
+
## [0.11.29] — 8 deferred-LOW audit: A7 env-splice canary REAL fix (+ dead-window bug), B8 choke-point redaction (2nd leak site), mutation-pins
|
|
10
|
+
|
|
11
|
+
### Security
|
|
12
|
+
- **R2-L-B8, second leak site (choke-point fix)**: the wave-2b redaction covered only the ambient-noise gate; `child-executor` retry-triage still sent the UNREDACTED failure summary (≤2000 chars — may carry provider keys echoed in stderr) to the classifier endpoint when `classifierEnabled`. Redaction now happens in `classifier-service` itself (`redactClassifyPayload` on every `registry.classify` payload), covering ALL current and future classify consumers (retry triage, pre-gate verdict state, noise gate). Pinned + mutation-checked.
|
|
13
|
+
- **R2-L-A7, real fix**: the RPC env-splice canary (guards "SDK spawn drift → worker inherits the FULL parent env / provider keys") had a DEAD WINDOW — the canary marker was deleted from the parent env synchronously after `start()` returned, BEFORE `await startPromise`, so the exact drifted spawn it exists to catch inherited a canary-free env and could never be detected, even on Linux. The marker window is now refcounted (safe under concurrent RPC spawns) and stays open until post-spawn verification completes; a drifted child is killed with a loud `env allowlist splice failed` error. macOS gains a real observer (`ps -Eww`); win32 (no cross-process environ API) now emits an explicit one-time diagnostic instead of a silent PASS. Wiring pin drives a mock client whose spawn lands after `start()`'s first await — mutation-proven against the old ordering.
|
|
14
|
+
|
|
15
|
+
### Fixed (pins for already-shipped fixes — the LOW record was stale; 7/8 items were already fixed in wave-2b/4/6)
|
|
16
|
+
- **R2-L-A6**: `escalate`'s sender-chosen `to` is restricted to the connection's run/own task (wave-2b) — now pinned (foreign `to` → `bad-params`; own task/runId accepted) and mutation-checked.
|
|
17
|
+
- **R2-L-B1**: a throwing `onYield` in `submit_result` returns an error tool-result instead of the success text (wave-2b) — now pinned and mutation-checked.
|
|
18
|
+
- **R2-L-A4 / B5 / B7 / M3-15**: audited as already fixed + pinned (requestId dedup; cron-scan hoist; generic head/tail pruned-output digest; real-API resilient edit) — record corrected, no code change.
|
|
19
|
+
|
|
20
|
+
### Tests
|
|
21
|
+
- `env-splice-canary.test.ts` (9: refcount window, /proc + ps formats, exact-key match, win32 signal, LIVE linux drift, runRpcSession wiring drift), `crew-broker-escalate-to-pin.test.ts` (3), `submit-result-error-result.test.ts` (2), classifier-service choke-point pins (+2). 4/4 mutation checks (A6, B1, B8-choke, A7-wiring) — each reverts red, restores green.
|
|
22
|
+
|
|
23
|
+
## [0.11.28] — Residual quality wave: prune-anchor silence, 6 flake classes hardened, LOW-tail fixes
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- **Session-start prune noise (C2, live-proven)**: every stale run whose artifacts dir was already age-cleaned printed one `artifact-store.prune-anchor ENOENT … skipping N descriptor(s)` warn per boot. A missing anchor dir means nothing under it can exist to delete — that is success-shaped silence now; every other anchor failure (symlink anchor, non-directory, permissions) keeps the visible warn. Fail-closed behavior unchanged (nothing deleted).
|
|
27
|
+
- **6 load-flake classes hardened** (each previously caused a real red on publish/CI/pre-push): R6-9 embedded-tier usage (poll turn-1 `message_end` instead of a fixed 1.5s sleep — also fixes the blast racing guard arming), stale-ctx-publish (condition polls instead of fixed flushes), round24 in-lock perf bounds + event-log append-lock/inline-guard bounds (adaptive control-fs-op scaling, capped below the deadlock/lock-timeout signatures that fail on their own), recordWaitPolicyRejection (poll the durable append landing), rpc parent-abort (abort after the fixture traces `run-start`, not a fixed 150ms).
|
|
28
|
+
- **R14-C3**: DWF checkpoints now stamp a `dispatchContext {modelOverride, team}` fingerprint; resuming with a different model/team emits `dwf.resume_context_mismatch` instead of silently replaying old-model results (fail-open with visibility).
|
|
29
|
+
- **R14-C4**: scheduler `add()` emits the `added` event with the post-`arm()` job state — a past-dated `once` job no longer announces itself as enabled after being disabled.
|
|
30
|
+
- **R2-L-A1**: `loadRunManifestById` (sync + async) maps a vanished manifest (ENOENT mid-sweep) to `undefined` instead of aborting the caller's whole best-effort recovery sweep.
|
|
31
|
+
- **R2-L-A2**: an unexpected realpath failure while validating `PI_TEAMS_PI_BIN` now says explicitly that the explicit pin was IGNORED and default resolution takes over.
|
|
32
|
+
- **R2-L-B9**: the theme-adapter polling fallback holds only a `WeakRef` to the theme and self-terminates after collection — abandoned subscriptions no longer pin the theme with a permanent 1s poll.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
- **R2-L-B10 (documented)**: interval-scheduled jobs re-arm after run completion, so the effective period is `intervalMs + run duration` — deliberate no-overlap design, now recorded at the arm site.
|
|
36
|
+
|
|
37
|
+
### Closed (no bug)
|
|
38
|
+
- **`manifest.usage = null` (battery 2026-10-19 observation #3)**: false premise — the field does not exist and nothing reads it; `task.usage` is populated on real runs and every token surface (run summary, powerbar, agents pane) is fed correctly. Battery report corrected.
|
|
39
|
+
|
|
9
40
|
## [0.11.27] — Residual backlog: chain DSL constructs now have real consumers (`:N` loops, `--with-context`, positional args) + `--timeout` wired
|
|
10
41
|
|
|
11
42
|
### Fixed
|