rename(547): the server is grimoire — package, image, DB defaults, backups
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
Step 2 of the Scribe -> Grimoire rename. - src/scribe -> src/grimoire, and every import, patch target, module path, hypercorn entry point and `python -m grimoire.restore` with it; pyproject, uv.lock and the frontend package are named grimoire. - Image git.fabledsword.com/bvandeusen/fabledgrimoire; CI's Postgres service runs as grimoire / grimoire_test. - Compose files default the DB user, database and (prod) volume to grimoire, each overridable from .env, so an install created as Scribe keeps its data by setting POSTGRES_USER, POSTGRES_DB and PGDATA_VOLUME. - Backups are written as grimoire-<ts>.tar with format grimoire-backup-tar. Archives named scribe-* with the scribe-backup-tar manifest still restore and are still counted at the destination (folder and S3), with tests. - Exports, the MCP auth realm, the ASGI scope key and the persistent logger carry the new name. Kept on purpose: the secret-sealing key label stays "scribe.secrets.v1", because every stored secret was derived under it. Plugin identity (plugin name, hooks, env vars, .scribe marker, skills) is step 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+14
-14
@@ -13,8 +13,8 @@ import pytest
|
||||
pytestmark = pytest.mark.usefixtures("_no_supersession")
|
||||
|
||||
|
||||
from scribe.services import note_usage
|
||||
from scribe.services.note_usage import (
|
||||
from grimoire.services import note_usage
|
||||
from grimoire.services.note_usage import (
|
||||
empty_usage,
|
||||
record_pulled,
|
||||
record_surfaced,
|
||||
@@ -179,7 +179,7 @@ async def test_unscored_location_arms_are_recorded(lookups, expected_source):
|
||||
"""The location arms carry no score, so they have no home in retrieval_logs
|
||||
— without a usage row they would surface snippets while leaving no trace
|
||||
anywhere. Asserted per class."""
|
||||
from scribe.services import plugin_context
|
||||
from grimoire.services import plugin_context
|
||||
|
||||
here = [{"id": 42, "title": "helper", "user_id": 1, "note_type": "snippet"}]
|
||||
responses = [(here, 1) if kind == "hit" else ([], 0) for _n, kind in lookups]
|
||||
@@ -213,7 +213,7 @@ async def test_unscored_location_arms_are_recorded(lookups, expected_source):
|
||||
async def test_auto_inject_records_what_survived_the_margin_gate():
|
||||
"""Not what the ranker returned — retrieval_logs already holds that. These
|
||||
two numbers must not silently mean different things per surface."""
|
||||
from scribe.services import plugin_context
|
||||
from grimoire.services import plugin_context
|
||||
|
||||
hits = [(0.90, fake_note(id=1, title="kept", user_id=1, note_type="snippet")), (0.40, fake_note(id=2, title="cut by the margin gate", user_id=1, note_type="snippet"))]
|
||||
with (
|
||||
@@ -250,9 +250,9 @@ def test_every_getter_that_can_be_surfaced_also_records_a_pull():
|
||||
"""
|
||||
import inspect
|
||||
|
||||
from scribe.mcp.tools import notes as notes_tools
|
||||
from scribe.mcp.tools import snippets as snippet_tools
|
||||
from scribe.mcp.tools import tasks as task_tools
|
||||
from grimoire.mcp.tools import notes as notes_tools
|
||||
from grimoire.mcp.tools import snippets as snippet_tools
|
||||
from grimoire.mcp.tools import tasks as task_tools
|
||||
|
||||
getters = (
|
||||
(notes_tools, "get_note"),
|
||||
@@ -279,8 +279,8 @@ def test_every_getter_that_can_be_surfaced_also_records_a_pull():
|
||||
async def _purge(note_id: int) -> None:
|
||||
from sqlalchemy import delete
|
||||
|
||||
from scribe.models import async_session
|
||||
from scribe.models.note_usage import NoteUsageEvent
|
||||
from grimoire.models import async_session
|
||||
from grimoire.models.note_usage import NoteUsageEvent
|
||||
|
||||
async with async_session() as s:
|
||||
await s.execute(
|
||||
@@ -292,7 +292,7 @@ async def _purge(note_id: int) -> None:
|
||||
@pytest.mark.integration
|
||||
async def test_insert_and_readout_roundtrip_on_real_postgres(_dispose_engine):
|
||||
"""WRITE half + READ half against the real table, one assertion per counter."""
|
||||
from scribe.services.note_usage import _insert_events
|
||||
from grimoire.services.note_usage import _insert_events
|
||||
|
||||
nid = 990101
|
||||
try:
|
||||
@@ -341,10 +341,10 @@ async def test_away_counts_compare_the_readers_project_with_the_records(_dispose
|
||||
events are all left out — each would otherwise read as transfer."""
|
||||
from sqlalchemy import delete
|
||||
|
||||
from scribe.models import async_session
|
||||
from scribe.models.note import Note
|
||||
from scribe.models.project import Project
|
||||
from scribe.services.note_usage import _insert_events
|
||||
from grimoire.models import async_session
|
||||
from grimoire.models.note import Note
|
||||
from grimoire.models.project import Project
|
||||
from grimoire.services.note_usage import _insert_events
|
||||
from tests.helpers import ensure_user
|
||||
|
||||
async with async_session() as s:
|
||||
|
||||
Reference in New Issue
Block a user