Repository navigation
Open
1 / 41 of 4 issues completedOpen
1 / 41 of 4 issues completed
Copy link
Labels
Description
Destination
A decision-complete implementation specification and executable issue breakdown for a local SQLite mirror of Partiful entities, ready for a later implementation effort. This map plans the mirror; it does not implement it.
Notes
- The remote Partiful API remains authoritative. The local database is a read mirror and must never silently become a remote source of truth.
- Mirror candidates include remote entities, normalized metadata, raw payloads, and sync checkpoints. The initial entities, exact schema, and sync policy remain open until the frontier resolves them.
- Follow the Printing Press local-store guidance for a configurable database path, WAL-aware write design, a missing-mirror guard, drain-first reads, transaction boundaries, nullable scans, sync/staleness signaling, and test coverage. Adapt it to this Node/TypeScript CLI rather than assuming the generated Go store is directly reusable.
- Preserve JSON-first, agent-native output. Local query UX and stale-data signaling are desired concerns, not a pre-decided command architecture.
- Adjacent but separate work: Smart contacts database for invite suggestions, Event analytics and insights, and Add
guests mutualsto find known people on an event attendee list. Do not absorb their scopes here. - Every session should consult
AGENTS.md, the Partiful skill, the Printing Press local-store guidance, and the Wayfinder workflow. - Native tracker relationships: Map the Partiful remote mirror contract, Map the SQLite local-store adaptation, Choose the first Partiful mirror user contract, and Draft the Partiful SQLite mirror implementation spec are sub-issues of this map. The draft-spec ticket is blocked by the first three; do not claim it until all three are closed.
Decisions so far
- The SQLite layer exists to make repeated reads, search, and historical joins local. It should prevent the CLI from calling Partiful again every time a user asks another question about data already fetched.
- Partiful remains authoritative. SQLite is a read mirror, not a write queue or competing source of truth.
- Sync is explicit.
partiful syncmay call Partiful and update the mirror. Local search and query commands must not silently refresh or fall back to live API reads. - A user can explicitly request network activity with a command or flag such as
--refreshor--data-source live. The final command spelling belongs in the implementation spec. - Local reads report their source and freshness. Human output warns when data is stale; JSON includes machine-readable sync metadata. A missing mirror returns an empty machine result plus a clear
partiful syncinstruction rather than creating an empty database that looks current. - The first user contract is offline-first search and repeated querying over synced Partiful entities. Exact initial resource coverage remains with the remote-contract and schema frontiers.
- No background daemon or surprise auto-refresh in the first version.
Not yet specified
- Initial entity inventory, schema and raw-payload retention boundary, stable IDs, sync cursors/checkpoints, and reconciliation behavior.
- Database location/default and override policy, driver/library choice, lifecycle, migration strategy, corruption/recovery policy, and the test seam needed for the existing CLI.
- The first concrete search/query command set,
stale_afterthresholds by resource, and final spellings for explicit refresh or live reads. - Minimum supported Node version and whether the implementation can use built-in
node:sqliteor needs an external driver. A local Node 25 spike confirmed built-in SQLite 3.53.3 and FTS5 work, but the published runtime floor still needs an explicit decision. - Privacy/security boundaries, retention/deletion, sensitive-field handling, and offline-query scope.
Out of scope
- Implementing the database or shipping any SQLite-backed command in this map.
- A background daemon, automatic pre-read refresh, cloud sync, cross-device sync, UI, or a remote mutation queue. These require a later, separate decision if ever needed.
- Re-scoping the adjacent contacts, analytics, or attendee-mutuals work linked above.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Activity
KalebCole commentedon Nov 14, 2026
Triage bot: held for Kaleb. The offline read-only SQLite copy of events is wanted, but it always needs his review and never auto-merges (draft VISION (#256)). Keep the scope to a read-only events copy; the remote API stays authoritative.