Repository navigation
Description
Import command, demo fixture import, parser regression pack
Purpose
Finish the import/demo/parser slice after the public ingest -> import rename. Polylogue should let a new user run a deterministic demo import without private data, and supported source files should fail truthfully when unsupported or malformed.
Current reality
The first slice landed: public command registration uses polylogue import, while internal daemon/process prose may still describe ingestion. Do not re-open that rename unless source inspection shows a public leak.
Remaining work is narrower than the old umbrella implied:
- demo mode and approved fixture worlds;
- parser regression coverage for supported origins;
- truthful import planning/status for unsupported and degraded inputs;
- docs/README examples after command surface stabilizes;
- residual schema-v1 vocabulary coordination with Schema-v1 terminology sweep: session/origin only #1810.
provider_meta parser-output removal is effectively handled elsewhere and should not be reimplemented here. If live source contradicts that, file a precise SPEC_MISMATCH.
Files and surfaces to inspect
polylogue/cli/commands/import.py
polylogue/cli/click_command_registration.py
polylogue/sources/
polylogue/sources/parsers/
polylogue/pipeline/
polylogue/daemon/
polylogue/api/
polylogue/mcp/
docs/getting-started.md
docs/configuration.md
README.md
tests/unit/sources/
tests/data/ or fixture-world directories
Target behavior
polylogue import PATH...
polylogue import --demo
POLYLOGUE_DEMO_MODE=1 polylogue import --demo
Import must be truthful:
- missing path fails;
- unsupported file fails before claiming success;
- supported file imports or stages with an explicit status;
- degraded parse returns explicit degraded/caveat status;
- demo import uses only approved synthetic fixtures and deterministic IDs/timestamps;
- real user archive/config/cache are not touched by demo tests.
Implementation slices
- Audit all public
ingestcommand-name references after refactor(cli): rename ingest command to import (#1815) #1875; leave internal daemon “ingestion” prose only when not public command vocabulary. - Define demo fixture world and import command behavior.
- Add parser fixture matrix for ChatGPT, Claude web, Claude Code, Codex, Gemini/AI Studio/Gemini CLI if advertised, Antigravity if advertised, and any degraded origins.
- Add import-planning/status tests for supported file, supported directory, unsupported file, malformed file, demo fixture, and daemon unavailable.
- Update README/getting-started only after Polylogue: final hard-pruned CLI surface #1842 command floor and Enforce single machine-output contract: JSON finite, NDJSON streaming/bulk #1818 output contract stop moving.
Required tests
- Isolated archive/config roots for every import/demo test.
- Parser-output invariant tests: normalized session/origin vocabulary and no provider_meta escape hatch.
- Unsupported input negative tests with typed errors.
- Demo import test with deterministic output.
- Docs/README command examples once final command surface lands.
Acceptance criteria
-
polylogue importis the only public import command. - Demo import runs without private data and produces deterministic fixture archive state.
- Parser regression pack covers every advertised supported origin.
- Unsupported and degraded inputs fail or report caveats truthfully.
- Public docs use import/session/origin vocabulary.
Non-goals
- Do not preserve
ingestas a public alias. - Do not import private local data as fixtures.
- Do not fold Polylogue: final hard-pruned CLI surface #1842 command pruning into this issue.
PR handoff checklist
Every implementing PR must include this exact information in the PR body:
Issue slice:
Files inspected:
Files changed:
Old surface removed or retained:
Contracts/tests added:
Generated artifacts updated:
Verification commands and results:
Known caveats / SPEC_MISMATCH:
Follow-up intentionally not included:
Use SPEC_MISMATCH when source reality contradicts this issue. Do not silently broaden the issue or delete capability to satisfy a prose target.
Coordinator reconciliation (2026-06-15)
- Demo-mode dedup: demo mode / approved fixture worlds are owned by Polylogue: demo mode and approved fixture worlds #1843.
This issue keeps only theingest → importrename and runnable dev snapshots; the
--demofixture-world surface is specified once, in Polylogue: demo mode and approved fixture worlds #1843. Do not implement demo
mode here.
Activity
Sinity commentedon Jun 13, 2026
Field evidence: import accepted work without enough progress/shape guarantees
During local dogfood on 2026-06-14, I staged a fresh Claude.ai export through the current
polylogue ingest PATHpath:Observed behavior:
polylogue ingestcorrectly staged the file into~/.local/share/polylogue/inbox/and returned an operation id.421,515,691,707in successive checks), all withparse_errors=0.database is locked; the user-visible state was ambiguous unless manually queryingsource.db.Suggested integration into this issue's AC for
polylogue import PATH...:conversations.jsonand expected conversation count.polylogue statusand the web home, not only journal/source-db inspection.unknown-exportretry/exclusion loops.Related ChatGPT finding: the active archive currently has the raw ChatGPT zips under
/realm/data/exports/chatlog/raw/chatgpt/, but staged copies in the Polylogue inbox are classified asunknown-exportand excluded after repeated failures. I am opening a narrow issue for that so this issue can keep the broader import-command contract.Sinity commentedon Jun 13, 2026
Follow-up created for the concrete ChatGPT data coverage gap: #1870 (
fix(import): ingest ChatGPT export ZIPs or reject unsupported shapes). This keeps #1815 focused on the public import command contract while #1870 owns parser/detection behavior for the failing ChatGPT exports.Sinity commentedon Jun 14, 2026
🔒 lane claim (polylogue-orchestrator): starting #1815 as a slice sequence. PR 1 = ingest→import command rename (the public command is already PATH-taking + truthful, so this is a clean rename: registration, help, completions, docs, baselines, contract test, no compat shim). Subsequent PRs: provider_meta elimination (#1858), parser regression pack, demo fixture builder +
import --demo. Worktree /tmp/plg-1815.refactor(cli): rename ingest command to import (#1815) (#1875)
Sinity commentedon Jun 14, 2026
Wave 3 execution overlay: remaining #1815 is parser/demo truth, not public rename
The public
ingest -> importrename has landed. Do not keep redoing that work. Remaining value in this issue is:First remaining PR
Build the parser regression matrix, not more command renaming. The matrix should name each supported origin, the fixture used, normalized
session/origininvariants, degraded flags, and raw artifact preservation.feat(cli): schedule approved demo fixture import (#1843) (#1935)
Sinity commentedon Jun 15, 2026
Progress update: PR #1951 landed parser/source dispatch regression coverage. The origin regression fixture table now carries dispatch expectations, exercises
detect_providerplusparse_payload, and covers the browser-capture snapshot shape as the closest committed synthetic dev-snapshot fixture. Demo fixture-world behavior remains coordinated under #1843; this slice pins the source/parser routing side of #1815.test(sources): cover parser origin dispatch matrix (#1815) (#1951)
fix(import): preflight unsupported sources truthfully (#1815) (#1969)
Sinity commentedon Jun 16, 2026
Landed another coherent phase in #1969: staged import preflight now classifies unsupported/malformed source paths before daemon scheduling, daemon import acks include preflight detail for accepted/degraded inputs, and the CLI renders structured daemon rejection detail. Verification recorded on the PR: focused import/preflight/daemon tests passed, quick gate passed. This advances the import-truthfulness part of the issue; the broader rename/demo/dev-snapshot scope remains open.
Sinity commentedon Jun 16, 2026
Close-out AC matrix
Closing this now that the coordinated demo/import/parser work has landed and the remaining sibling issues are closed.
polylogue importis the only public import command.ingestregistration. Current command docs and generated references useimport.tests/unit/sources/parsers/test_origin_regression_pack.py, covering ChatGPT, Claude.ai, Claude Code, Codex, Gemini CLI, AI Studio/Drive, Antigravity, and Hermes through parser and dispatch expectations.polylogue import --demo; the public-surface audit remains indevtools verify --quick.provider_metaparser-output escape hatch concern.No untracked remainder is being deferred from #1815: demo mode is owned and closed by #1843, ChatGPT ZIP import coverage is closed by #1870, public vocabulary is closed by #1810/#1858, and import preflight truthfulness landed in #1969.