Repository navigation
Description
Metadata
Parent: #1807
Related cleanup umbrella: #2177
Depends on / complements: #2178 for ImportExplain, #2179 for archive debt rows.
Cross-pollination source: Sinex SourcePackage completeness doctrine from /tmp/ideas.md.
Status: proposed feature; implementation should consume the landed identity map (#2184) and the first ImportExplain vertical (#2186) where those provide concrete evidence.
Purpose
Add a ProviderPackage completeness report for Polylogue importers/capture modes.
Polylogue supports several provider/origin/capture shapes: Claude Code JSONL, Codex session records, ChatGPT exports, Claude.ai exports, Gemini/Drive-like records, browser capture payloads, Antigravity language-server exports, and local-agent formats. The codebase has detectors, parsers, schema packages, fixtures, query units, read views, caveats, and docs, but there is no single report that says which origin/capture mode is complete enough for product use and which capabilities are missing.
Borrow the useful Sinex idea: package modes should be complete for their mode. Do not call incomplete support a pilot; either a mode has its required detector/parser/fixtures/query/read/explain/privacy/docs surfaces or the report names the missing pieces.
Current baseline
Relevant upstream pieces now exist and should be treated as inputs, not future hopes:
- docs(core): map provider, origin, parser, capture, and runtime identity boundaries #2184 added
docs/provider-origin-identity.md, which separates provider-wire family, public origin, material source, parser binding, capture mode, archive refs, provider-native ids, run/context/event refs, and repo/workspace context. Completeness rows should use that vocabulary. - feat(import): explain parser decisions for local imports (#2178) #2186 added
ImportExplainPayloadandpolylogue import PATH --explain --format json|ndjsonfor local path preflight. A provider-completeness report can cite that payload/surface as evidence for import explanation coverage where it applies. - feat(ops): expose unified archive debt views across import, index, embedding, and transforms #2179 is still the owner for archive/product debt rows. This issue may report whether a mode has debt visibility, but it should not implement the full debt-row system.
Current code reality
Likely input owners:
polylogue/sources/dispatch.py
provider/origin shape detection and LoweredPayloadSpec modes
polylogue/sources/parsers/
parser implementations and `looks_like` predicates
polylogue/schemas/providers/
provider schema package artifacts
polylogue/archive/artifact_taxonomy/
artifact classification and parse-as-session decisions
tests/unit/sources/ and tests/infra/strategies/
parser fixtures and property coverage
polylogue/archive/query/metadata.py and query-unit payloads
terminal-query coverage by unit
polylogue/rendering/, read-view profiles, recovery/context compiler
read-view and report coverage
devtools/generated_surfaces.py and docs generators
generated docs/schemas/OpenAPI coverage
This issue should not invent a second provider registry unless it mechanically consumes or drives those existing owners.
Proposed report
Add a finite ProviderPackageCompletenessPayload with rows keyed by origin/capture mode:
ProviderPackageCompletenessPayload:
mode: Literal["provider-package-completeness"]
generated_at: str
rows: tuple[ProviderPackageCompletenessRowPayload, ...]
totals: ProviderPackageCompletenessTotalsPayload
caveats: tuple[str, ...]
ProviderPackageCompletenessRowPayload:
package_ref: str # e.g. provider-package:claude-code-session/export-jsonl@v1
origin: str # public origin/capture format
capture_mode: str # export, live-receiver, file-drop, language-server, takeout, etc.
provider_wire: str | None # only when the contract is truly provider-wire
detector: CompletenessItem
raw_model: CompletenessItem
parser: CompletenessItem
normalizer: CompletenessItem
fixtures: CompletenessItem
schema_package: CompletenessItem
query_units: CompletenessItem
read_views: CompletenessItem
import_explain: CompletenessItem
privacy_caveats: CompletenessItem
generated_docs: CompletenessItem
debt_rows: CompletenessItem
status: Literal["complete", "partial", "missing", "proposed"]
blockers: tuple[str, ...]
evidence_refs: tuple[str, ...]CompletenessItem should carry:
status: complete | partial | missing | not_applicable
owner_path: str | None
evidence: tuple[str, ...]
caveats: tuple[str, ...]
Initial package-mode rows
At minimum, report these current modes if present in code/tests:
claude-code-session / export-jsonl
codex-session / session-jsonl
chatgpt-export / takeout-json
claude-ai-export / export-json
gemini / drive-like-export
drive / takeout-or-oauth
browser-capture / live-receiver
antigravity / language-server-export
antigravity / brain-artifact-fallback
gemini-cli / local-agent-document
hermes / local-agent-document
The exact names should come from current Origin, Provider, source config, and parser modules rather than from this list if the code says otherwise.
Surfaces
Devtools is the likely first home because this is a repo/product-readiness report:
devtools provider completeness --json
devtools provider completeness --origin codex-session --json
devtools provider completeness --checkProduct/operator surface can follow if useful:
polylogue ops provider completeness --format jsonGenerated docs should include the table so provider support status is externally visible.
Design constraints
- This is a report/gate, not a new parser framework.
- Do not count a mode complete just because it has a parser. Completeness includes fixtures, schema/docs, query/read coverage, ImportExplain, caveats/privacy, and debt visibility where applicable.
- Do not require every provider to support every feature. Mark
not_applicablewith rationale when a mode legitimately lacks browser-capture, embeddings, work packets, etc. - Do not use provider-wire vocabulary as public origin identity except where the contract is truly provider-wire.
Acceptance criteria
- A generated or runtime report lists provider/importer package modes and their completeness items.
- The report is grounded in source files/registries/tests/docs rather than hand-written prose only.
- At least three representative modes have accurate rows: one code-agent session mode, one export bundle mode, and browser capture or Antigravity.
--checkfails only for accepted/claimed-complete modes with missing required items; proposed modes may be incomplete if explicitly marked proposed.- Docs explain how to use the report when adding a provider/importer.
- Generated-surface dependencies include the files/registries that affect the report.
Tests
- Unit tests for row construction from known registries/files.
- Snapshot or schema test for JSON payload shape.
- A negative check test where an accepted mode missing a required fixture/import-explain item fails.
- Docs/generated-surface check.
Non-goals
- Do not block normal imports at runtime because the report says a mode is partial.
- Do not create a decorative completeness checklist disconnected from code/tests.
- Do not rename provider/origin/source fields in this issue unless required to make the report unambiguous.
Identity-map dependency
Provider/importer completeness rows should be keyed by public origin plus capture mode/package mode where applicable. Provider-wire family and parser binding are report fields, not the whole grouping authority. See #2184 for the vocabulary map.
Activity
feat(providers): report importer package completeness (#2180) (#2189)