Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
docs(formats): list the indexed fact identity and read expression index columns [A5]
Corey Olson6c78eac0d02f
diff --git a/docs/formats.md b/docs/formats.mdindex 02993696..bee4ee4a 100644--- a/docs/formats.md+++ b/docs/formats.md@@ -355,6 +355,9 @@ The following live SQLite declarations include nullability, defaults, primary an| Index | Table | Columns | Unique || --- | --- | --- | --- || `event_by_at` | `event` | `event_by`, `event_at` | no |+| `event_fact_identity_v2` | `event` | `(expression)`, `event_id` | no |+| `event_fact_malformed_v2` | `event` | `event_id` | no |+| `event_fact_unknown_v2` | `event` | `event_id` | no || `event_item_id_event_id` | `event` | `item_id`, `event_id` | no || `event_kind_id` | `event` | `event_kind`, `event_id` | no || `item_lane_status` | `item` | `item_lane`, `item_status` | no |@@ -366,6 +369,9 @@ The following live SQLite declarations include nullability, defaults, primary an| `verdict_item_id_verdict_id` | `verdict` | `item_id`, `verdict_id` | no |<!-- board-indexes:end -->+`(expression)` denotes an unnamed expression column in SQLite's `index_info`. For `event_fact_identity_v2`, it is `json_extract(event_detail, '$.id')`, followed by `event_id`; the partial index includes fact rows readable by `json_valid(event_detail, 10)`. The malformed index covers invalid TEXT fact rows and the unknown index covers invalid non-TEXT fact rows, both ordered by `event_id`. All three are nonunique additive indexes installed once by the owning writable opener; read opens do not install them. A missing-index append refuses with `FACT_INDEX_NOT_READY` and asks the owning checkout to open the board once.++`src/machine.js` declares the lifecycle and retained records. `src/board.js` installs these persistent triggers in the board file:<!-- board-triggers:start -->diff --git a/docs/formats.test.js b/docs/formats.test.jsindex 94fc24df..dcb6a7e0 100644--- a/docs/formats.test.js+++ b/docs/formats.test.js@@ -247,7 +247,7 @@ function liveIndexes(db) {function documentedIndexes() {return block('<!-- board-indexes:start -->', '<!-- board-indexes:end -->').split(/\r?\n/).flatMap((line) => {const row = /^\| `([^`]+)` \| `([^`]+)` \| (.+) \| (yes|no) \|$/.exec(line);- return row ? [{ name: row[1], table: row[2], columns: [...row[3].matchAll(/`([^`]+)`/g)].map((match) => match[1]), unique: row[4] }] : [];+ return row ? [{ name: row[1], table: row[2], columns: [...row[3].matchAll(/`([^`]+)`/g)].map((match) => match[1] === '(expression)' ? null : match[1]), unique: row[4] }] : [];});}