Archived
Watch
2
1
Fork
You've already forked embodied-ai
0

Bump web and Flower Pi deps to fix npm audit, with #40 and #38 (CI on the pool) #39

Merged
turnercore merged 11 commits from deps/npm-audit-fixes into main 2026-10-29 17:45:05 +01:00
Contributor

This PR lands three changes together (merge commits, no rewrites):

  1. #40 flower/preflight-reject-compat: Flower treats a prompt that pi 1.x rejects without calling preflightResult as retryable. Works on pi 0.84.4 and 1.x.

  2. #39 (this branch): npm audit fixes for web/ and modules/flower/pi, including pi-coding-agent 0.84.4 to 1.4.0 (details below).

  3. #38 ci/move-to-pool: moves currency, rust-tests, supply-chain and container-build off bosbitch-release to the shared pool.

  4. containers/media-tools/Dockerfile: pin musl/musl-dev 1.2.6-r3. Alpine replaced musl-dev -r2, so the pinned apk add no longer resolves and every image built FROM media-tools failed in container-build (run 6161). This is pre-existing breakage on main, which CI there hasn't been able to show since runner 11 retired.

  5. scripts/smoke-module-images.sh: each module container is removed after its health check. The pool's Podman sidecars share one network namespace per job (netns="host", see elephant-hand-monorepo#230), so modules that use the same port collided (Port 8377 is in use, run 6166).

  6. .forgejo/workflows/ci.yml: when container-build fails, its trivy, effective-policy and reachability reports are uploaded as the container-scan-reports artifact, so a blocked VEX gate can be triaged.

Merged with container-build red, on purpose. Every other job is green. container-build stops in generate_container_vex.py on CVE-2026-16742 (HIGH, systemd-homed local privilege escalation). Trivy maps it to libsystemd0 and libudev1 257.13-1~deb13u1 in the python:3.12-slim@sha256:57cd7c3a base, which has no fix in trixie. Those libraries are hard dependencies of coreutils, util-linux, PAM and apt, so they can't be removed. main has the same finding, so this PR doesn't introduce it. A not-affected VEX statement was drafted but dropped without sign-off, because embodied-ai is shelved. Reopen that when the repo is unshelved or the base image gets a fixed systemd.

Why together: runner 11, the only runner with bosbitch-release, is retired, and every job needs: currency, so no PR based on main can run CI. #38 is the only branch that runs, but it is red until these audit fixes land. This bump needs #40 first, or pi 1.x breaks Flower's retry path. That is a cycle, so all three merge as one. Forgejo should mark #40 and #38 as merged, because their heads are in this branch. Python dependency scanning is still a gap, tracked separately in #41.


npm audit --package-lock-only --audit-level=high fails in web/ and modules/flower/pi. This bumps the affected packages; the audit level and the step are unchanged.

  • web: vite 8.3.5, vitest and @vitest/coverage-v8 5.0.5 (fixes vitest, vite and source-map-js). undici 7.29.0 to 7.30.1 comes in via the lockfile (jsdom 29 allows it).
  • modules/flower/pi: @earendil-works/pi-coding-agent 0.84.4 to 1.4.0. 0.84.4 shipped an npm-shrinkwrap.json that pinned undici 8.9.0 and brace-expansion 5.0.9 and ignored root overrides. 1.4.0 has no shrinkwrap, so the overrides (undici 8.12.2, brace-expansion 5.0.12) now apply. The Dockerfile's shrinkwrap workaround is removed, and modules/flower/AGENTS.md is updated to match.

Run in node:24 containers: npm audit reports 0 vulnerabilities in both directories. In web/, npm ci, typecheck, npm test -- --run (42 passed) and build pass. In modules/flower/pi, npm ci, npm test (8 passed) and node --check server.mjs pass.

Risk: pi-coding-agent is a major bump. The unit tests use a mocked SDK. I checked that the SDK exports used in runtime.mjs still exist, but the real Pi session path has not been exercised. The Flower image smoke runs in container-build.

pi-coding-agent 1.x breaking changes, checked against Flower's calls (modules/flower/pi/runtime.mjs, server.mjs):

  • One real break: PromptOptions.preflightResult. In 1.x it isn't called when pi rejects a prompt (0.84.4 passed false), and on acceptance it receives a "handled" | "queued" | "started" string. With this bump alone, an auth failure or a missing key would become a fail-closed "uncertain" turn that refuses retries. The mocked tests don't catch this. The fix is #40, which works on both versions and is merged into this branch.
  • thinkingLevel is now typed as off|minimal|low|medium|high|xhigh|max. resolveThinking returns only those values.
  • Unchanged, so they still work:
    • ModelRuntime.create, SessionManager.open/create, SettingsManager.inMemory;
    • the DefaultResourceLoader options and the createAgentSession options;
    • the session methods: setModel, setThinkingLevel, subscribe, dispose, getSessionFile;
    • the message_update/text_delta, tool_execution_start and message_end events;
    • defineTool;
    • registerProvider with api: "openai-completions". Only the legacy stream* aliases are deprecated.
  • Other changelog breaks that Flower doesn't use:
    • the before_agent_start union;
    • removal of shouldStopAfterTurn;
    • SessionManager now owns messages (Flower never assigns state.messages);
    • custom provider stream inputs;
    • the Azure provider rename;
    • removal of the shrinkwrap, which the Dockerfile change here already covers.

🤖 Generated with Claude Code

**This PR lands three changes together** (merge commits, no rewrites): 1. **#40** `flower/preflight-reject-compat`: Flower treats a prompt that pi 1.x rejects without calling `preflightResult` as retryable. Works on pi 0.84.4 and 1.x. 2. **#39** (this branch): npm audit fixes for `web/` and `modules/flower/pi`, including pi-coding-agent 0.84.4 to 1.4.0 (details below). 3. **#38** `ci/move-to-pool`: moves `currency`, `rust-tests`, `supply-chain` and `container-build` off `bosbitch-release` to the shared pool. 4. `containers/media-tools/Dockerfile`: pin `musl`/`musl-dev` 1.2.6-r3. Alpine replaced `musl-dev` -r2, so the pinned `apk add` no longer resolves and every image built `FROM media-tools` failed in `container-build` (run 6161). This is pre-existing breakage on main, which CI there hasn't been able to show since runner 11 retired. 5. `scripts/smoke-module-images.sh`: each module container is removed after its health check. The pool's Podman sidecars share one network namespace per job (`netns="host"`, see elephant-hand-monorepo#230), so modules that use the same port collided (`Port 8377 is in use`, run 6166). 6. `.forgejo/workflows/ci.yml`: when `container-build` fails, its trivy, effective-policy and reachability reports are uploaded as the `container-scan-reports` artifact, so a blocked VEX gate can be triaged. **Merged with `container-build` red, on purpose.** Every other job is green. `container-build` stops in `generate_container_vex.py` on CVE-2026-16742 (HIGH, systemd-homed local privilege escalation). Trivy maps it to `libsystemd0` and `libudev1` 257.13-1~deb13u1 in the `python:3.12-slim@sha256:57cd7c3a` base, which has no fix in trixie. Those libraries are hard dependencies of coreutils, util-linux, PAM and apt, so they can't be removed. main has the same finding, so this PR doesn't introduce it. A not-affected VEX statement was drafted but dropped without sign-off, because embodied-ai is shelved. Reopen that when the repo is unshelved or the base image gets a fixed systemd. **Why together:** runner 11, the only runner with `bosbitch-release`, is retired, and every job `needs: currency`, so no PR based on main can run CI. #38 is the only branch that runs, but it is red until these audit fixes land. This bump needs #40 first, or pi 1.x breaks Flower's retry path. That is a cycle, so all three merge as one. Forgejo should mark #40 and #38 as merged, because their heads are in this branch. Python dependency scanning is still a gap, tracked separately in #41. --- `npm audit --package-lock-only --audit-level=high` fails in `web/` and `modules/flower/pi`. This bumps the affected packages; the audit level and the step are unchanged. - **web**: `vite` 8.3.5, `vitest` and `@vitest/coverage-v8` 5.0.5 (fixes vitest, vite and source-map-js). `undici` 7.29.0 to 7.30.1 comes in via the lockfile (jsdom 29 allows it). - **modules/flower/pi**: `@earendil-works/pi-coding-agent` 0.84.4 to 1.4.0. 0.84.4 shipped an `npm-shrinkwrap.json` that pinned `undici` 8.9.0 and `brace-expansion` 5.0.9 and ignored root `overrides`. 1.4.0 has no shrinkwrap, so the `overrides` (`undici` 8.12.2, `brace-expansion` 5.0.12) now apply. The Dockerfile's shrinkwrap workaround is removed, and `modules/flower/AGENTS.md` is updated to match. Run in `node:24` containers: `npm audit` reports 0 vulnerabilities in both directories. In `web/`, `npm ci`, typecheck, `npm test -- --run` (42 passed) and build pass. In `modules/flower/pi`, `npm ci`, `npm test` (8 passed) and `node --check server.mjs` pass. **Risk:** pi-coding-agent is a major bump. The unit tests use a mocked SDK. I checked that the SDK exports used in `runtime.mjs` still exist, but the real Pi session path has not been exercised. The Flower image smoke runs in `container-build`. **pi-coding-agent 1.x breaking changes, checked against Flower's calls** (`modules/flower/pi/runtime.mjs`, `server.mjs`): - **One real break: `PromptOptions.preflightResult`.** In 1.x it isn't called when pi rejects a prompt (0.84.4 passed `false`), and on acceptance it receives a `"handled" | "queued" | "started"` string. With this bump alone, an auth failure or a missing key would become a fail-closed "uncertain" turn that refuses retries. The mocked tests don't catch this. The fix is #40, which works on both versions and is merged into this branch. - `thinkingLevel` is now typed as `off|minimal|low|medium|high|xhigh|max`. `resolveThinking` returns only those values. - Unchanged, so they still work: - `ModelRuntime.create`, `SessionManager.open/create`, `SettingsManager.inMemory`; - the `DefaultResourceLoader` options and the `createAgentSession` options; - the session methods: `setModel`, `setThinkingLevel`, `subscribe`, `dispose`, `getSessionFile`; - the `message_update`/`text_delta`, `tool_execution_start` and `message_end` events; - `defineTool`; - `registerProvider` with `api: "openai-completions"`. Only the legacy `stream*` aliases are deprecated. - Other changelog breaks that Flower doesn't use: - the `before_agent_start` union; - removal of `shouldStopAfterTurn`; - SessionManager now owns messages (Flower never assigns `state.messages`); - custom provider stream inputs; - the Azure provider rename; - removal of the shrinkwrap, which the Dockerfile change here already covers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Bump web and Flower Pi dependencies to patched versions for npm audit
Some checks failed
ci / currency (pull_request) Has been cancelled
ci / python-tests (pull_request) Has been cancelled
ci / dev-smoke (pull_request) Has been cancelled
ci / production-manifests (pull_request) Has been cancelled
ci / rust-tests (pull_request) Has been cancelled
ci / frontend-tests (pull_request) Has been cancelled
ci / supply-chain (pull_request) Has been cancelled
ci / container-build (pull_request) Has been cancelled
0c3187c706
web: vite 8.3.5, vitest and @vitest/coverage-v8 5.x, undici 7.30.1 via lockfile.
modules/flower/pi: pi-coding-agent 1.4.0 (drops the npm-shrinkwrap that
pinned undici 8.9.0 and brace-expansion 5.0.9), overrides pin undici
8.12.2 and brace-expansion 5.0.12. The Dockerfile no longer patches the
shrinkwrapped brace-expansion.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ci: move bosbitch-release jobs to the shared pool
Some checks failed
ci / currency (pull_request) Successful in 5s
ci / frontend-tests (pull_request) Failing after 27s
ci / supply-chain (pull_request) Failing after 5s
ci / production-manifests (pull_request) Successful in 1m4s
ci / dev-smoke (pull_request) Successful in 1m19s
ci / rust-tests (pull_request) Successful in 1m20s
ci / python-tests (pull_request) Failing after 21m18s
ci / container-build (pull_request) Has been skipped
37acd9740a
Retire the bosbitch host runner from the Forgejo CI. Four jobs move to
the shared Linux pool:

- currency, supply-chain, container-build: [studio, linux, x64]
- rust-tests: [rust, linux, x64]. The pool image has Rust 1.95.0 under a
  root-owned RUSTUP_HOME, so the job installs 1.88.0 into $RUNNER_TEMP
  and keeps its version check.

Workflow env sets CONTAINER_HOST to the slot's nested Podman sidecar.
The two `unset CONTAINER_HOST` lines are removed, since the jobs now use
the sidecar. Cargo and rustup caches move under $RUNNER_TEMP, because the
job's $HOME/.cache is not writable.

Known gap: container-build's Ears wake smoke reads
vars.EARS_WAKE_LIVEKIT_MODEL_HOST_PATH, a host path that pool containers
cannot see. scripts/smoke-ears-image.sh skips when the path is missing,
so that smoke no longer runs. The rest of container-build still runs.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: keep the reproducibility guard in line with the pool move
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / frontend-tests (pull_request) Failing after 18s
ci / supply-chain (pull_request) Failing after 6s
ci / dev-smoke (pull_request) Successful in 45s
ci / production-manifests (pull_request) Successful in 52s
ci / rust-tests (pull_request) Successful in 56s
ci / python-tests (pull_request) Successful in 16m45s
ci / container-build (pull_request) Has been skipped
56614f70bb
test_ci_workflow_contains_required_reproducibility_gates pinned the
bosbitch-release runner, the $HOME/.cargo/bin PATH line, and the ci.yml
text. Those no longer exist after the move. The test now asserts the pool
labels and the explicit rustup 1.88.0 install. The rust cargo home moves
inside the workspace (.cargo-home), so the cache path has no runner.temp
expression, which the same test forbids.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: stage supply-chain scan inputs and outputs through podman volumes
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / dev-smoke (pull_request) Successful in 47s
ci / production-manifests (pull_request) Successful in 44s
ci / supply-chain (pull_request) Failing after 5s
ci / frontend-tests (pull_request) Failing after 18s
ci / rust-tests (pull_request) Successful in 41s
ci / container-build (pull_request) Has been cancelled
ci / python-tests (pull_request) Has been cancelled
aa48ca79df
The pool's Podman service is remote, so a job's checkout cannot be bind
mounted. Dockerfile lint and the Trivy scans now import their inputs into
named volumes and export outputs back, removing the volumes on exit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ci: stage volumes through podman cp; the remote client has no volume import
Some checks failed
ci / currency (pull_request) Successful in 6s
ci / dev-smoke (pull_request) Successful in 49s
ci / production-manifests (pull_request) Successful in 35s
ci / rust-tests (pull_request) Successful in 18s
ci / frontend-tests (pull_request) Failing after 17s
ci / supply-chain (pull_request) Failing after 58s
ci / python-tests (pull_request) Failing after 16m30s
ci / container-build (pull_request) Has been skipped
95f5fb60ee
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
flower: treat a prompt rejected without preflightResult as retryable
Some checks failed
ci / currency (pull_request) Has been cancelled
ci / python-tests (pull_request) Has been cancelled
ci / dev-smoke (pull_request) Has been cancelled
ci / production-manifests (pull_request) Has been cancelled
ci / rust-tests (pull_request) Has been cancelled
ci / frontend-tests (pull_request) Has been cancelled
ci / supply-chain (pull_request) Has been cancelled
ci / container-build (pull_request) Has been cancelled
566e52bf0e
pi-coding-agent 1.x no longer calls preflightResult when it rejects a
prompt (0.84 called it with false), and passes a disposition string
instead of a boolean on acceptance. Flower read the missing callback as
an accepted turn and failed closed, refusing retries after an auth or
missing-key rejection. Count the turn as accepted only when the callback
ran with something other than false, which works on both versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge #38 (ci/move-to-pool) into #39
Some checks failed
ci / currency (pull_request) Successful in 21s
ci / rust-tests (pull_request) Successful in 24s
ci / frontend-tests (pull_request) Successful in 26s
ci / production-manifests (pull_request) Successful in 57s
ci / dev-smoke (pull_request) Successful in 1m1s
ci / supply-chain (pull_request) Successful in 52s
ci / python-tests (pull_request) Successful in 20m31s
ci / container-build (pull_request) Failing after 3m4s
602d23ede4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
turnercore changed title from Bump web and Flower Pi dependencies to fix npm audit to Bump web and Flower Pi deps to fix npm audit, with #40 and #38 (CI on the pool) 2026-10-29 14:17:12 +01:00
media-tools: pin musl and musl-dev 1.2.6-r3
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / production-manifests (pull_request) Successful in 43s
ci / dev-smoke (pull_request) Successful in 53s
ci / frontend-tests (pull_request) Successful in 35s
ci / supply-chain (pull_request) Successful in 29s
ci / rust-tests (pull_request) Successful in 58s
ci / python-tests (pull_request) Successful in 14m56s
ci / container-build (pull_request) Failing after 3m41s
6625f5d70b
Alpine replaced musl-dev 1.2.6-r2 with -r3, which needs musl -r3, so the
pinned apk add no longer resolves and every image FROM media-tools fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: module smoke removes each container after its check
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / production-manifests (pull_request) Successful in 43s
ci / dev-smoke (pull_request) Successful in 52s
ci / rust-tests (pull_request) Successful in 19s
ci / frontend-tests (pull_request) Successful in 22s
ci / supply-chain (pull_request) Successful in 32s
ci / python-tests (pull_request) Successful in 14m51s
ci / container-build (pull_request) Failing after 11m36s
0ee6f58fb1
The pool's podman sidecar defaults to netns=host, so HUD and Voice
(both 8377) collided when both were selected (run 6166).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
security: VEX not-affected for systemd-homed CVE-2026-16742 (libsystemd0, libudev1)
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / production-manifests (pull_request) Successful in 43s
ci / dev-smoke (pull_request) Successful in 49s
ci / rust-tests (pull_request) Successful in 19s
ci / frontend-tests (pull_request) Successful in 23s
ci / supply-chain (pull_request) Successful in 19s
ci / container-build (pull_request) Has been cancelled
ci / python-tests (pull_request) Has been cancelled
0a42f9601c
NEEDS HUMAN SIGN-OFF before merge (security/AGENTS.md VEX exception).

Trivy (pinned image, HIGH/CRITICAL) flags CVE-2026-16742 on libsystemd0 and
libudev1 257.13-1~deb13u1 from the python:3.12-slim@sha256:57cd7c3a base, no
fixed version in trixie (Debian: no-dsa, minor). Both are hard dependencies of
coreutils, util-linux, bsdutils, PAM and apt, so they cannot be removed. The
images contain no systemd-homed, homectl, pam_systemd_home or nss-systemd and
run no systemd daemon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: upload container scan reports when container-build fails
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / production-manifests (pull_request) Successful in 43s
ci / dev-smoke (pull_request) Successful in 50s
ci / rust-tests (pull_request) Successful in 19s
ci / frontend-tests (pull_request) Successful in 23s
ci / supply-chain (pull_request) Successful in 19s
ci / python-tests (pull_request) Successful in 14m46s
ci / container-build (pull_request) Has been cancelled
cd435e175f
A blocked VEX gate left no trivy reports to triage from; keep them as a
run artifact on failure only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
turnercore force-pushed deps/npm-audit-fixes from cd435e175f
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / production-manifests (pull_request) Successful in 43s
ci / dev-smoke (pull_request) Successful in 50s
ci / rust-tests (pull_request) Successful in 19s
ci / frontend-tests (pull_request) Successful in 23s
ci / supply-chain (pull_request) Successful in 19s
ci / python-tests (pull_request) Successful in 14m46s
ci / container-build (pull_request) Has been cancelled
to 75b5e8eded
Some checks failed
ci / currency (pull_request) Successful in 4s
ci / dev-smoke (pull_request) Successful in 48s
ci / rust-tests (pull_request) Successful in 34s
ci / production-manifests (pull_request) Successful in 35s
ci / frontend-tests (pull_request) Successful in 22s
ci / supply-chain (pull_request) Successful in 30s
ci / python-tests (pull_request) Successful in 14m39s
ci / container-build (pull_request) Failing after 8m33s
2026-10-29 17:19:38 +01:00
Compare
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
daisy/embodied-ai!39
No description provided.