ownership: player keeps own status and records; housekeeping rings-only

This commit is contained in:
2026-11-11 18:44:58 +00:00
parent b77a0de527
commit f5aa09c686
9 changed files with 229 additions and 59 deletions
+7
View File
@@ -0,0 +1,7 @@
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
<!-- The player's own current state, maintained via ((status key: value)) in OOC. -->
<!-- Stances are feelings; facts live in the rings. GM overrides are rare and journaled. -->
# Status
(nothing set — fresh start)
+11 -2
View File
@@ -29,12 +29,21 @@ CREATE TABLE IF NOT EXISTS records (
created TEXT NOT NULL
);
-- the player's own current state: mood, outfit, stances toward people.
-- state, not memory — no history, no decay, updated in place.
-- written by the player (((status key: value))); GM overrides are rare and journaled.
CREATE TABLE IF NOT EXISTS status (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
updated TEXT NOT NULL
);
-- append-only audit journal; nothing here is ever updated or deleted.
-- target is 'e<id>' for entries, 'r<id>' for records.
-- target is 'e<id>' for entries, 'r<id>' for records, 's:<key>' for status.
CREATE TABLE IF NOT EXISTS events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
window TEXT NOT NULL,
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive')),
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'status')),
target TEXT NOT NULL,
reason TEXT NOT NULL DEFAULT ''
);