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:
@@ -22,11 +22,11 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
||||
import pytest
|
||||
from quart import Quart, g
|
||||
|
||||
from scribe.services import moment_delivery as md
|
||||
from scribe.services import plugin_context as pc
|
||||
from scribe.services import retrieval_pipeline as rp
|
||||
from scribe.services import retrieval_surfaces as surfaces
|
||||
from scribe.services import rule_usage, rulebooks
|
||||
from grimoire.services import moment_delivery as md
|
||||
from grimoire.services import plugin_context as pc
|
||||
from grimoire.services import retrieval_pipeline as rp
|
||||
from grimoire.services import retrieval_surfaces as surfaces
|
||||
from grimoire.services import rule_usage, rulebooks
|
||||
from tests.helpers import fake_rule, http_sink, need_tools
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -170,7 +170,7 @@ async def test_the_stop_only_arm_records_only_the_rule_that_holds():
|
||||
|
||||
|
||||
def test_the_reply_arm_is_a_registered_ranked_surface():
|
||||
from scribe.services.retrieval_registry import POINTS
|
||||
from grimoire.services.retrieval_registry import POINTS
|
||||
|
||||
assert rp.REPLY_RULE in rp.RULE_ARMS
|
||||
assert "reply_rule" in surfaces.SURFACES and "reply_rule" in POINTS
|
||||
@@ -183,7 +183,7 @@ def test_the_reply_arm_is_a_registered_ranked_surface():
|
||||
|
||||
|
||||
async def test_the_route_passes_the_reply_and_all_three_ledgers():
|
||||
from scribe.routes import plugin as routes
|
||||
from grimoire.routes import plugin as routes
|
||||
|
||||
hold = AsyncMock(return_value={"reason": "Held.", "rule_ids": [11], "moments": ["reply.report"]})
|
||||
app = Quart(__name__)
|
||||
@@ -206,7 +206,7 @@ async def test_the_route_passes_the_reply_and_all_three_ledgers():
|
||||
|
||||
|
||||
async def _reply_route(body, *, hold_reason="", checked=None):
|
||||
from scribe.routes import plugin as routes
|
||||
from grimoire.routes import plugin as routes
|
||||
|
||||
hold = AsyncMock(return_value={"reason": hold_reason, "rule_ids": [11] if hold_reason else [],
|
||||
"moments": ["reply.report"]})
|
||||
|
||||
Reference in New Issue
Block a user