Resolve CultLib via VOIDBOT_CULTLIB_ROOT in tests; test formerly indexed stores #47

Merged
heimdall merged 1 commit from heimdall/test-cultlib-path into main 2026-11-11 05:01:34 +00:00
Member

Fixes the 4 failing Node test files and closes the store-open gap left by #46.

  • tests/cultlib-root.mjs: one resolver, $VOIDBOT_CULTLIB_ROOT else sibling ../CultLib. persona-feedback-cli, persona-feedback-idunn-health, persona-matrix-mouth-runtime and watchdog-notice use it. The mouth test hands the resolved root to the mouth tool as CULTLIB_ROOT, which the tool still reads.
  • tools/agent-transport.mjs and tools/governance-threads.mjs hardcoded ../CultLib too; they now honour $VOIDBOT_CULTLIB_ROOT.
  • tests/shared-value-stores.test.mjs writes and reopens the six formerly indexed stores (agent-transport, crossing receipts, release authority, governance topics and comments, provider advertisement) with rows sharing the old index values.

Node, CultLib dist 43abf976 via VOIDBOT_CULTLIB_ROOT: before 140 tests, 136 pass, 4 fail files; after 207 tests, 207 pass, 0 fail. Without the variable and without ../CultLib dist the files still fail loudly (module not found); no skip.

The new store tests cannot fail against the CultLib that is built today, where indexes: is still many-row; they guard the coming unique cut.

🤖 Generated with Claude Code

Fixes the 4 failing Node test files and closes the store-open gap left by #46. - tests/cultlib-root.mjs: one resolver, `$VOIDBOT_CULTLIB_ROOT` else sibling `../CultLib`. persona-feedback-cli, persona-feedback-idunn-health, persona-matrix-mouth-runtime and watchdog-notice use it. The mouth test hands the resolved root to the mouth tool as `CULTLIB_ROOT`, which the tool still reads. - tools/agent-transport.mjs and tools/governance-threads.mjs hardcoded `../CultLib` too; they now honour `$VOIDBOT_CULTLIB_ROOT`. - tests/shared-value-stores.test.mjs writes and reopens the six formerly indexed stores (agent-transport, crossing receipts, release authority, governance topics and comments, provider advertisement) with rows sharing the old index values. Node, CultLib dist 43abf976 via VOIDBOT_CULTLIB_ROOT: before 140 tests, 136 pass, 4 fail files; after 207 tests, 207 pass, 0 fail. Without the variable and without ../CultLib dist the files still fail loudly (module not found); no skip. The new store tests cannot fail against the CultLib that is built today, where `indexes:` is still many-row; they guard the coming unique cut. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Four Node test files and agent-transport/governance-threads hardcoded ../CultLib.
They now take $VOIDBOT_CULTLIB_ROOT, else the sibling, like the other tools
(tests share tests/cultlib-root.mjs). The mouth test passes the resolved root on
to the mouth tool as CULTLIB_ROOT, which the tool still reads.

shared-value-stores.test.mjs writes and reopens each store that once declared
indexes: with rows sharing the former index values.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
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
GameCult/Bifrost!47
No description provided.