A purely numeric #N is a record reference everywhere now. The tag
patterns (frontend utils/tags.ts, the editor decoration, the first-line
tag strip, tag autocomplete, backend utils/tags.py) leave digits alone,
so #3127 is no longer drawn as a tag chip linking to /notes?tag=3127.
- utils/recordRefs.ts links #N, milestone N and rule N in rendered
markdown, with the same patterns and other-numbering word list as
services/record_refs.py. A drift test reads the TS source and fails
when the two differ.
- v-record-refs (directives/recordRefs.ts) asks POST
/api/notes/resolve-refs once per body for what each id is. A link
gets the route for its kind (task, lesson, snippet, note, milestone,
rule) and its kind and title on hover. One the reader cannot open is
drawn as a dead reference, and missing vs not shared read the same.
Applied on every surface that renders markdown.
- /milestones/:id finds the project and opens its board at that
milestone (?milestone= expands it, scrolls to it and focuses it).
- Backlinks include records that cite #N in a body or a work log,
through readable_notes_clause instead of an owner-only filter, and
route by kind. The graph draws #N citations as dashed reference edges.
- create_note, create_task and add_task_log say which forms link.
There were no numeric tags to clean up: tags are stored only from the
explicit field, and none of the 200 most used is numeric.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>