Files
hk-ipo/data/snapshots/ticker_sync_state.csv
T
geometrybase 08db218b6d Add archivist incremental sync state
Request:
Add archivist support for remembering which IPO archive stages have already been synced and which stages should be updated next.

Changes:
- Add sync_runs, ticker_sync_state, sync_tasks, and price_performance tables to the archive schema.
- Add scripts/update_sync_state.py to derive per-ticker stage status and rebuild the next-sync task queue.
- Export the new sync-state tables as Git-friendly CSV snapshots.
- Document the incremental archive flow in the archivist skill and README.

Verification:
- Ran scripts/bootstrap_historical_data.py.
- Ran scripts/update_sync_state.py with a deterministic as-of timestamp.
- Checked SQLite integrity and DB-to-snapshot row counts with Python sqlite3.
- Parsed Python scripts with ast.parse.
- Ran git diff --check and checked for temporary SQLite/cache files.

Next useful context:
- Current derived queue has 2 open tasks for 06658 and 15 waiting_until_due tasks for future stages.
2026-06-15 06:29:54 +00:00

3.8 KiB

1tickerstagestatusrequireddue_datecompleted_atlast_source_iddata_gap_idlast_sync_run_idupdated_atnotes
206106T0_prospectuscomplete12026-06-152026-06-1506106_prospectus_candidate_2026_06_15sync_state_seed_2026_06_152026-06-15T06:30:00ZProspectus source and offering terms are archived.
306106T1_allotmentpending_not_due12026-06-2306106_allotment_results_pending_2026_06_15sync_state_seed_2026_06_152026-06-15T06:30:00ZAllotment result facts are not archived yet.
406106T2_grey_marketpending_not_due12026-06-24sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
506106D1pending_not_due12026-06-24sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
606106D5pending_not_due12026-06-28sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
706106D20pending_not_due12026-07-13sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
806106D60pending_not_due12026-08-22sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
906658T0_prospectuscomplete12026-06-052026-06-0506658_prospectus_2026_06_05sync_state_seed_2026_06_152026-06-15T06:30:00ZProspectus source and offering terms are archived.
1006658T1_allotmentcomplete12026-06-122026-06-1206658_allotment_results_2026_06_12sync_state_seed_2026_06_152026-06-15T06:30:00ZAllotment result facts are archived.
1106658T2_grey_marketpending_due12026-06-15sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
1206658D1pending_due12026-06-15sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
1306658D5pending_not_due12026-06-19sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
1406658D20pending_not_due12026-07-04sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
1506658D60pending_not_due12026-08-13sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
1606675T0_prospectuscomplete12026-06-092026-06-0906675_prospectus_2026_06_09sync_state_seed_2026_06_152026-06-15T06:30:00ZProspectus source and offering terms are archived.
1706675T1_allotmentpending_not_due12026-06-1606675_allotment_results_pending_2026_06_15sync_state_seed_2026_06_152026-06-15T06:30:00ZAllotment result facts are not archived yet.
1806675T2_grey_marketpending_not_due12026-06-17sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
1906675D1pending_not_due12026-06-17sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet.
2006675D5pending_not_due12026-06-21sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
2106675D20pending_not_due12026-07-06sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.
2206675D60pending_not_due12026-08-15sync_state_seed_2026_06_152026-06-15T06:30:00ZPrice/performance source is not archived yet. Due date uses calendar days until trading-calendar support is added.