Skip to content

fix(usmc-backend): accept usmc_* views of the shared memory schema - #3

Merged
lukisch merged 1 commit into
mainfrom
fix/T-20260920-823767362-usmc-views
Sep 26, 2026
Merged

lukisch merged 1 commit into
mainfrom
fix/T-20260920-823767362-usmc-views

Conversation

@lukisch

@lukisch lukisch commented Sep 26, 2026

Copy link
Copy Markdown
Member

Prerequisite for the USMC live switch (S2b of T-20260920-823767362). After the switch, usmc_facts/_lessons/working are read views over memory*. UsmcBackend.available() queried sqlite_master with type='table' only, so USMC context injection would silently stop. Now type IN ('table','view'). New test builds a view-shaped DB and checks available() and search(); it fails without the fix. Full suite 196 passed, ruff clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PTbvD41MCVmnQWaobvHfCk

USMC's union schema (usmc >= S1, contract v2 since S2a) keeps usmc_facts/_lessons/_working as read views over memory_*. available() only counted type='table', so the backend would silently turn off once a database is switched. Views count now. Verified: 196 passed (new union-view test fails without the fix).

Refs T-20260920-823767362

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PTbvD41MCVmnQWaobvHfCk
@lukisch
lukisch merged commit 1711cbb into main Sep 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant