You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
quota-gatherer: opendesign-renewal fails on every tick — "Cannot find package 'yaml'" in the OPENCHAMBER_LIB_DIR checkout (no node_modules) #8759
Every quota-gatherer tick logs opendesign-renewal failed-soft because the openchamber lib checkout the gatherer imports from has no node_modules, so import yaml from 'yaml' cannot resolve. The renewal door never runs, so OpenDesign session renewal is silently dead while the tick itself reports ok (the failure is soft).
Evidence (laptop, checked 2026-11-11 ~19:02Z)
Error, verbatim, on every tick: quota-gatherer: opendesign-renewal failed-soft: Cannot find package 'yaml' imported from /home/user/git/openchamber-quota-lib/packages/web/server/lib/opencode/shared.js
journalctl --user -u quota-gatherer.service --since -3h contains 28 occurrences; earliest in the last 2 days is Nov 09 13:15Z, so it has failed since at least then.
/home/user/git/openchamber-quota-lib/node_modules/yaml does not exist. shared.js:4 has import yaml from 'yaml', and yaml ^2.8.1 is declared in the checkout's package.json:161 and packages/web/package.json:55. The dependency is declared but not installed.
The unit pins OPENCHAMBER_LIB_DIR=/home/user/git/openchamber-quota-lib/packages/web/server/lib, with ExecStart bun run /home/user/git/code/pm-stack/aggregator/scripts/gather-quota.ts.
Seen by 3 separate quota-gatherer-guardian sessions on 2026-11-11 (ses_e5e3417142affeVv2jXFe4kxS3, ses_e5e3404c729ffeGJ53TVRa3Bjg, ses_e5e343bb26cffeRT8srs2P65pJ). The first called it "code-side and out of my scope; I have not filed it".
Install the lib checkout's dependencies (bun install in openchamber-quota-lib) and keep that step in whatever provisions or refreshes the checkout. Alternatively, make the gatherer fail loudly (heartbeat ok:false, or a counter) when a soft door fails N ticks in a row, so a dead door cannot hide behind a healthy tick.
Acceptance
After the next gatherer tick, journalctl --user -u quota-gatherer.service --since -30m | grep "Cannot find package 'yaml'" returns nothing and the opendesign-renewal door logs a real outcome instead of failed-soft.
🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-a — task 15013 (small_fix) for issue #8759: quota-gatherer opendesign-renewal fails every tick, Cannot find package 'yaml' in the OPENCHAMBER_LIB_DIR checkout (no node_modules). Fresh check: issue #8759 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels; lane assignment direct. Reproduced live: 13:24 CST tick logged the same failed-soft error. Next: worktree fix in developing-today/code making the gatherer recover from uninstalled lib dependencies (install + retry import, explicit log) with a regression test, plus a live bun install in the lib checkout and a tick verification.
🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-a — task 15013 (small_fix) for issue #8759 is fixed_merged: PR #8764 merged as 4580d33.
What was done: (1) Code fix in developing-today/code — new preflight pm-stack/aggregator/src/lib-deps.ts runs in runOpenDesignRenewal before the gatherer's first OpenChamber lib import: it walks the manifests from the lib dir to the checkout root, checks every mandatory (dependencies + devDependencies) declared package resolves, installs the checkout's declared dependencies once at the root when any are missing, and re-checks; still-missing throws an explicit error naming the packages. Preflight rather than import-retry because Bun caches failed package resolution for the process (verified on bun 1.4.4). OPENCHAMBER_LIB_INSTALL_CMD overrides the install step; default is bun install at the root. (2) Live remediation — bun install --frozen-lockfile in ~/git/openchamber-quota-lib (1525 packages, checkout git status clean).
Tests: bun test src/lib-deps.test.ts src/opendesign-renewal.test.ts test/gather-quota.test.ts — 21/21 pass (incl. the #8759 e2e and the optional/peer regression). tsc: no errors in touched files, total identical to main. Codex: P2 (optional deps must not be mandatory) fixed + replied on the thread; re-review at 27818b5 completed with no findings.
Acceptance, verified live: ticks at 19:37Z (pre-merge, after install), 19:45Z and 19:48Z (merged code, primary fast-forwarded to 4580d33) all log opendesign-renewal: status=valid horizonHours=150.6 capture=not-attempted, with no Cannot find package 'yaml' in the journal and 16/16 providers ok. Preflight check against the real checkout returns missing=[].
Activity
developing-today commentedon Nov 11, 2026
CODE-2616
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-a — task 15013 (small_fix) for issue #8759: quota-gatherer opendesign-renewal fails every tick, Cannot find package 'yaml' in the OPENCHAMBER_LIB_DIR checkout (no node_modules). Fresh check: issue #8759 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels; lane assignment direct. Reproduced live: 13:24 CST tick logged the same failed-soft error. Next: worktree fix in developing-today/code making the gatherer recover from uninstalled lib dependencies (install + retry import, explicit log) with a regression test, plus a live bun install in the lib checkout and a tick verification.
fix(quota-gatherer): optional/peer lib deps are not mandatory install…
fix(quota-gatherer): install the OpenChamber lib checkout's declared …
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-a — task 15013 (small_fix) for issue #8759 is fixed_merged: PR #8764 merged as 4580d33.
What was done: (1) Code fix in developing-today/code — new preflight pm-stack/aggregator/src/lib-deps.ts runs in runOpenDesignRenewal before the gatherer's first OpenChamber lib import: it walks the manifests from the lib dir to the checkout root, checks every mandatory (dependencies + devDependencies) declared package resolves, installs the checkout's declared dependencies once at the root when any are missing, and re-checks; still-missing throws an explicit error naming the packages. Preflight rather than import-retry because Bun caches failed package resolution for the process (verified on bun 1.4.4). OPENCHAMBER_LIB_INSTALL_CMD overrides the install step; default is bun install at the root. (2) Live remediation — bun install --frozen-lockfile in ~/git/openchamber-quota-lib (1525 packages, checkout git status clean).
Tests: bun test src/lib-deps.test.ts src/opendesign-renewal.test.ts test/gather-quota.test.ts — 21/21 pass (incl. the #8759 e2e and the optional/peer regression). tsc: no errors in touched files, total identical to main. Codex: P2 (optional deps must not be mandatory) fixed + replied on the thread; re-review at 27818b5 completed with no findings.
Acceptance, verified live: ticks at 19:37Z (pre-merge, after install), 19:45Z and 19:48Z (merged code, primary fast-forwarded to 4580d33) all log opendesign-renewal: status=valid horizonHours=150.6 capture=not-attempted, with no Cannot find package 'yaml' in the journal and 16/16 providers ok. Preflight check against the real checkout returns missing=[].
fix(aggregator): reject unsafe OpenChamber quota lib checkouts (#5721)