File tree Expand file tree Collapse file tree
launchpad/skills/review-queue-automation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,7 +300,8 @@ correctly.
300300``` sql
301301CREATE TABLE snapshots (
302302 hash TEXT PRIMARY KEY , -- sha256 hex digest over the entire canonical config
303- repo TEXT NOT NULL , -- the repo of first activation; informational, not a key
303+ repo TEXT NOT NULL , -- reserved compatibility field; activate() has no repo
304+ -- argument and writes the intentional empty sentinel ""
304305 policy_version TEXT NOT NULL ,
305306 protocol_hash TEXT NOT NULL ,
306307 activated_at TEXT NOT NULL , -- ISO-8601 UTC, first time this hash was ever seen
@@ -312,8 +313,9 @@ CREATE TABLE snapshots (
312313# store.py
313314@dataclass (frozen = True )
314315class StoredSnapshot :
315- snapshot: Snapshot # repo is a placeholder ("") here; snapshot_for() rebuilds it with
316- # the caller's own repo before returning
316+ snapshot: Snapshot # repo is the intentional empty sentinel ("") here;
317+ # snapshot_for() rebuilds it with the caller's own repo
318+ # before returning
317319 activated_at: datetime
318320
319321class SnapshotStore (Protocol ):
Original file line number Diff line number Diff line change 6262
6363@dataclass (frozen = True )
6464class StoredSnapshot :
65- snapshot : Snapshot # repo is a placeholder ("") here; snapshot_for() rebuilds it with
66- # the caller's own repo before returning
65+ snapshot : Snapshot # repo is the intentional empty sentinel ("") here;
66+ # snapshot_for() rebuilds it with the caller's own repo
67+ # before returning
6768 activated_at : datetime
6869
6970
@@ -81,8 +82,8 @@ class SqliteSnapshotStore:
8182 alone.
8283
8384 The `snapshots.repo` column is written as `""`. §5 fixes `activate(hash, raw, at)`
84- with no repository argument and documents the column as "informational, not a
85- key ", so the store genuinely never learns a repo; `snapshot_for` puts the
85+ with no repository argument and documents the column as a "reserved compatibility
86+ field ", so the store genuinely never learns a repo; `snapshot_for` puts the
8687 caller's own `repo` on the `Snapshot` it returns. Nothing reads the column.
8788 """
8889
You can’t perform that action at this time.
0 commit comments