<?xml version="1.0" encoding="UTF-8"?><database name="clirhythm" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="generated_clis_id_seq" startValue="1"/>
      <sequence increment="1" name="read_metrics_id_seq" startValue="1"/>
      <sequence increment="1" name="route_decisions_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="_sqlx_migrations" remarks="{&quot;what&quot;:&quot;Table recording each applied migration for the sqlx migration tool.&quot;,&quot;why&quot;:&quot;Without it, the migration tool cannot know which migrations have run, causing re-runs or skips.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.507414486+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric version of a migration, used as the primary key.&quot;,&quot;why&quot;:&quot;Without it, migrations cannot be ordered or uniquely identified, leading to conflicts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.550538837+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="description" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable text describing the migration's purpose.&quot;,&quot;why&quot;:&quot;Without it, the migration log is cryptic, making debugging and auditing difficult.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.564760590+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="installed_on" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the migration was applied.&quot;,&quot;why&quot;:&quot;Without it, you cannot know when schema changes occurred, complicating rollback and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.634984729+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="success" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag indicating whether the migration completed successfully.&quot;,&quot;why&quot;:&quot;Without it, failed migrations would be indistinguishable from successful ones, risking partial schema states.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.705782988+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="checksum" nullable="false" remarks="{&quot;what&quot;:&quot;Binary checksum of the migration file to detect modifications.&quot;,&quot;why&quot;:&quot;Without it, edited migration files would go unnoticed, causing inconsistent schema across environments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.746989906+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="execution_time" nullable="false" remarks="{&quot;what&quot;:&quot;Elapsed time for the migration run, in the tool's time unit.&quot;,&quot;why&quot;:&quot;Without it, migration performance cannot be monitored, and slow migrations might go unnoticed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:19.789294137+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="version" sequenceNumberInPK="1"/>
         <index name="_sqlx_migrations_pkey" unique="true">
            <column ascending="true" name="version"/>
         </index>
      </table>
      <table name="generated_clis" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('generated_clis_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;自增主键，唯一标识每个生成记录。&quot;,&quot;why&quot;:&quot;没有它无法唯一区分记录，关联外键失效。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.267078135+00:00&quot;}" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;生成的CLI名称，如'my-cli'，用于标识产物。&quot;,&quot;why&quot;:&quot;没有它无法知道生成的目标名称，影响文件命名和调用。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.295051387+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="source_ref" nullable="false" remarks="{&quot;what&quot;:&quot;源引用，如Git提交哈希或分支名，指定生成来源。&quot;,&quot;why&quot;:&quot;没有它无法追溯生成所用的代码版本，导致不可复现。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.319479637+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="kind" nullable="false" remarks="{&quot;what&quot;:&quot;生成类型，如'python'或'go'，决定模板和打包方式。&quot;,&quot;why&quot;:&quot;没有它无法选择正确的生成流程，产物可能错误。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.375673724+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="skill_md_path" nullable="true" remarks="{&quot;what&quot;:&quot;技能Markdown文件路径，相对于仓库根目录。&quot;,&quot;why&quot;:&quot;没有它无法定位技能定义，影响CLI功能生成。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.396888435+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="package_path" nullable="true" remarks="{&quot;what&quot;:&quot;生成的包输出路径，如'dist/my-cli'。&quot;,&quot;why&quot;:&quot;没有它无法知道产物位置，部署脚本无法引用。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.409019850+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="6" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;生成状态，如'pending'、'running'、'succeeded'、'failed'。&quot;,&quot;why&quot;:&quot;没有它无法判断生成是否完成，阻塞后续步骤。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.432471060+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="detail" nullable="true" remarks="{&quot;what&quot;:&quot;状态附加信息，如错误消息或日志摘要。&quot;,&quot;why&quot;:&quot;没有它无法诊断失败原因，排障困难。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.447714443+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;记录创建时间，ISO 8601带时区。&quot;,&quot;why&quot;:&quot;没有它无法追踪生成时间，审计和排序缺失。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.460025160+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;记录最后更新时间，ISO 8601带时区。&quot;,&quot;why&quot;:&quot;没有它无法知道状态变更时间，并发控制失效。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:13:43.473370002+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="generated_clis_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="generated_clis_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="page_cache" remarks="{&quot;what&quot;:&quot;Cache of fetched web pages keyed by URL hash.&quot;,&quot;why&quot;:&quot;Without it, repeated fetches of same URL are redundant and slow.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.597086054+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="url_hash" nullable="false" remarks="{&quot;what&quot;:&quot;Hash of the original URL, e.g. SHA-256 hex; primary key.&quot;,&quot;why&quot;:&quot;Without it, duplicate entries for same URL are possible and lookups ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.656801568+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="url" nullable="false" remarks="{&quot;what&quot;:&quot;Original URL as requested, before redirects.&quot;,&quot;why&quot;:&quot;Without it, the hash cannot be verified or original request reconstructed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.736224438+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="final_url" nullable="false" remarks="{&quot;what&quot;:&quot;Final URL after following redirects, if any.&quot;,&quot;why&quot;:&quot;Without it, actual fetched page location is unknown, breaking canonical link resolution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.786032343+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="true" remarks="{&quot;what&quot;:&quot;Page title extracted from HTML, if present.&quot;,&quot;why&quot;:&quot;Without it, search results and display lack a human-readable label.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.801109921+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;HTTP status code or fetch outcome, e.g. '200' or 'error'.&quot;,&quot;why&quot;:&quot;Without it, cache entries cannot be filtered by success or failure, and stale errors may be served.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.818361005+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="rendered_markdown" nullable="false" remarks="{&quot;what&quot;:&quot;Page content converted to Markdown format.&quot;,&quot;why&quot;:&quot;Without it, the cached content is unavailable for display or further processing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.839624539+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="index_map" nullable="false" remarks="{&quot;what&quot;:&quot;JSON mapping of headings or anchors to positions in the markdown.&quot;,&quot;why&quot;:&quot;Without it, in-page navigation and section lookup are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.897805270+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="raw_bytes_len" nullable="false" remarks="{&quot;what&quot;:&quot;Size of the original fetched response in bytes.&quot;,&quot;why&quot;:&quot;Without it, cache size and bandwidth usage cannot be monitored or limited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.937019567+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="rendered_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Token count of the rendered markdown, e.g. for LLM context.&quot;,&quot;why&quot;:&quot;Without it, token-based pricing or context window limits cannot be enforced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:24.996025669+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="raw_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Token count of the raw fetched content before conversion.&quot;,&quot;why&quot;:&quot;Without it, the cost of processing the original page is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:25.036740287+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="fetched_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the page was fetched, in UTC.&quot;,&quot;why&quot;:&quot;Without it, cache freshness cannot be determined, and TTL enforcement fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:25.118315687+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="900" digits="0" id="11" name="ttl_secs" nullable="false" remarks="{&quot;what&quot;:&quot;Time-to-live in seconds for this cache entry, default 900.&quot;,&quot;why&quot;:&quot;Without it, entries would never expire, serving stale content indefinitely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:25.141406721+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="url_hash" sequenceNumberInPK="1"/>
         <index name="page_cache_pkey" unique="true">
            <column ascending="true" name="url_hash"/>
         </index>
      </table>
      <table name="read_metrics" remarks="{&quot;what&quot;:&quot;One row per read event, with token usage and cache status.&quot;,&quot;why&quot;:&quot;Without it, no record of read performance or cache effectiveness exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.251615060+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('read_metrics_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each read event; auto-incremented.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.267495094+00:00&quot;}" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="url" nullable="false" remarks="{&quot;what&quot;:&quot;The URL that was read; the resource identifier.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute metrics to specific content or group by URL.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.281206541+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Outcome of the read, e.g., 'success' or 'error'.&quot;,&quot;why&quot;:&quot;Without it, failed reads are indistinguishable from successful ones.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.304971158+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="rendered_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Number of tokens in the rendered output.&quot;,&quot;why&quot;:&quot;Without it, cannot measure rendering efficiency or compare to raw.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.323181756+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="raw_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Number of tokens in the raw source content.&quot;,&quot;why&quot;:&quot;Without it, cannot compute token savings or compression ratio.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.347830382+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="tokens_saved" nullable="false" remarks="{&quot;what&quot;:&quot;Difference between raw and rendered token counts (raw - rendered).&quot;,&quot;why&quot;:&quot;Without it, the savings from rendering is not directly available for aggregation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.359531950+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="cache_hit" nullable="false" remarks="{&quot;what&quot;:&quot;True if the read was served from cache, false otherwise.&quot;,&quot;why&quot;:&quot;Without it, cache hit rate and its effect on token savings cannot be measured.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.375744555+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of when the read event occurred, in UTC.&quot;,&quot;why&quot;:&quot;Without it, cannot analyze metrics over time or detect trends.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:00.394831890+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="read_metrics_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="read_sessions" remarks="{&quot;what&quot;:&quot;A reading session for a URL, with status, progress, and token counts.&quot;,&quot;why&quot;:&quot;Without it, there is no record of which URLs have been read, their status, or token consumption.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.339510317+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique session identifier, a UUID string.&quot;,&quot;why&quot;:&quot;Without it, sessions cannot be referenced or updated individually.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.358560345+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="url" nullable="false" remarks="{&quot;what&quot;:&quot;Original URL requested for reading.&quot;,&quot;why&quot;:&quot;Without it, the requested page cannot be identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.382203862+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="final_url" nullable="false" remarks="{&quot;what&quot;:&quot;URL after redirects, the actual page read.&quot;,&quot;why&quot;:&quot;Without it, the effective content source is unknown, especially after redirects.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.403504486+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="true" remarks="{&quot;what&quot;:&quot;Page title extracted from the HTML.&quot;,&quot;why&quot;:&quot;Without it, the session lacks a human-readable label for display.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.473465880+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Current state of the session, e.g., 'active' or 'completed'.&quot;,&quot;why&quot;:&quot;Without it, it is unknown whether the session is still valid or needs retry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.502810476+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="view" nullable="false" remarks="{&quot;what&quot;:&quot;Rendering mode for the session, e.g., 'article' or 'reader'.&quot;,&quot;why&quot;:&quot;Without it, the presentation format is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.533543318+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="index_map" nullable="false" remarks="{&quot;what&quot;:&quot;JSON mapping of content block indices to their positions.&quot;,&quot;why&quot;:&quot;Without it, the order and structure of content blocks cannot be reconstructed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.556875966+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="block_count" nullable="false" remarks="{&quot;what&quot;:&quot;Number of content blocks in the session.&quot;,&quot;why&quot;:&quot;Without it, the total content size is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.642178954+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="next_offset" nullable="false" remarks="{&quot;what&quot;:&quot;Byte or character offset for the next chunk to process.&quot;,&quot;why&quot;:&quot;Without it, resuming a paused session is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.772490578+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="rendered_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Number of tokens in the rendered output.&quot;,&quot;why&quot;:&quot;Without it, token usage for the rendered view is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.913385228+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="raw_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Number of tokens in the raw content.&quot;,&quot;why&quot;:&quot;Without it, token usage for the original content is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:32.997866971+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the session was created.&quot;,&quot;why&quot;:&quot;Without it, session age and ordering are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:33.025077163+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="(now() + '01:00:00'::interval)" digits="6" id="12" name="expires_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the session expires, one hour after creation by default.&quot;,&quot;why&quot;:&quot;Without it, stale sessions cannot be cleaned up.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:33.049949244+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="read_sessions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="read_sessions_expires" unique="false">
            <column ascending="true" name="expires_at"/>
         </index>
      </table>
      <table name="route_decisions" remarks="{&quot;what&quot;:&quot;Historical log of routing decisions, each with rule version and reason.&quot;,&quot;why&quot;:&quot;Without it, past routing decisions and their rationale are lost, making debugging and compliance impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.269824194+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('route_decisions_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Auto-incrementing integer that uniquely identifies each decision row.&quot;,&quot;why&quot;:&quot;Without it, there is no stable key to reference a specific decision, so audit trails and updates become ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.305074780+00:00&quot;}" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="target" nullable="false" remarks="{&quot;what&quot;:&quot;The routing target (e.g., URL, service name) that the decision applies to.&quot;,&quot;why&quot;:&quot;Without it, it is unknown which target the decision was made for, so the log cannot be filtered by target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.327106540+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="intent" nullable="true" remarks="{&quot;what&quot;:&quot;Optional description of the request's intent, e.g., 'read' or 'write'.&quot;,&quot;why&quot;:&quot;Without it, the reason for the decision may be unclear when multiple intents share the same target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.436252606+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="decision" nullable="false" remarks="{&quot;what&quot;:&quot;The outcome of the routing decision, e.g., 'allow', 'deny', or a route name.&quot;,&quot;why&quot;:&quot;Without it, the actual action taken is unknown, so the log cannot be used to verify policy enforcement.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.447399023+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="rule" nullable="false" remarks="{&quot;what&quot;:&quot;Version or ID of the routing rule that produced this decision.&quot;,&quot;why&quot;:&quot;Without it, it is impossible to know which rule version was applied, so changes in behavior cannot be traced to rule updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.458915014+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="reason" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable explanation of why the decision was made, e.g., 'target matches rule 5'.&quot;,&quot;why&quot;:&quot;Without it, the rationale behind a decision is lost, making debugging and compliance audits impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.479539003+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="deterministic" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the decision is deterministic (same inputs always yield same output).&quot;,&quot;why&quot;:&quot;Without it, non-deterministic decisions cannot be identified, so replaying the log may not reproduce the same outcomes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.501142819+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when the decision was recorded.&quot;,&quot;why&quot;:&quot;Without it, the order and timing of decisions are unknown, so time-based analysis and correlation with other events are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:22:52.514037552+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="route_decisions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="site_configs" remarks="{&quot;what&quot;:&quot;One row per host with its site-specific configuration.&quot;,&quot;why&quot;:&quot;Without it, there is no single place to look up host-specific settings for shortcuts, headers, and rewriting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.627451758+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="host" nullable="false" remarks="{&quot;what&quot;:&quot;Hostname (e.g., example.com) that uniquely identifies this config row.&quot;,&quot;why&quot;:&quot;Without it, multiple configs for the same host would be ambiguous and updates would target the wrong row.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.663382911+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="1" name="shortcuts" nullable="false" remarks="{&quot;what&quot;:&quot;JSON object mapping shortcut keys to target URLs or actions.&quot;,&quot;why&quot;:&quot;Without it, there is no definition of which shortcuts exist or what they expand to, so shortcut links break.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.718371739+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="2" name="header_overrides" nullable="false" remarks="{&quot;what&quot;:&quot;JSON object of HTTP header names to values to set on responses.&quot;,&quot;why&quot;:&quot;Without it, there is no way to inject or modify HTTP headers per host.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.763661082+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="emulation" nullable="true" remarks="{&quot;what&quot;:&quot;Optional text defining an emulation profile (e.g., 'mobile' or a user-agent).&quot;,&quot;why&quot;:&quot;Without it, the site cannot be served with the specified emulation, so behavior may differ from the intended target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.803598886+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="url_rewrite" nullable="true" remarks="{&quot;what&quot;:&quot;Text pattern or rule for rewriting incoming URLs (e.g., regex or template).&quot;,&quot;why&quot;:&quot;Without it, URL rewriting cannot be applied, so requests to old paths would 404 or hit wrong resources.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.860157049+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="notes" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form human-readable notes about this site configuration.&quot;,&quot;why&quot;:&quot;Without it, there is no place to record context or rationale, so future maintainers lose operational knowledge.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.900220180+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) of the most recent change to this row.&quot;,&quot;why&quot;:&quot;Without it, there is no way to know how stale a config is, so caching or auditing becomes unreliable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:14:06.922604341+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="host" sequenceNumberInPK="1"/>
         <index name="site_configs_pkey" unique="true">
            <column ascending="true" name="host"/>
         </index>
      </table>
   </tables>
</database>
