about summary refs log tree commit diff
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql7
1 files changed, 6 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 0f19c35..e624369 100644
--- a/schema.sql
+++ b/schema.sql
@@ -45,6 +45,11 @@ create table if not exists reasoning (
 	-- One line: the claim itself, written when the context is in hand.  Listings
 	-- show this by default; the body is the long form.
 	gist        text,
+	-- Whether that one-line claim was ASSESSED (written with --gist, or set by
+	-- a reader who knew what the entry claims) or DERIVED (the body's first
+	-- sentence, a fallback).  Only derived gists may ever be rewritten: an
+	-- assessed gist is a judgement and is frozen for the life of the entry.
+	gist_source text,
 	body        text not null,
 	unique (session_id, step, kind)
 );
@@ -75,4 +80,4 @@ create trigger if not exists reasoning_after_update after update on reasoning be
 	insert into reasoning_fts (rowid, body) values (new.id, new.body);
 end;
 
-pragma user_version = 4;
+pragma user_version = 5;