Skip to content

quota-gatherer: opendesign-renewal fails on every tick — "Cannot find package 'yaml'" in the OPENCHAMBER_LIB_DIR checkout (no node_modules) #8759

Closed

Description

@dezren39

Defect

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)

Fix direction

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.

Activity

  1. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  3. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 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=[].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions