Skip to content

feat(providers): report provider/importer package completeness by origin and capture mode #2180

Closed

Description

@Sinity

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:

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 --check

Product/operator surface can follow if useful:

polylogue ops provider completeness --format json

Generated 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_applicable with 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.
  • --check fails 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

  1. added
    type:feat
    theme:verifiability
    area:devtools
    on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devtoolsarea:docsarea:parserarea:pipelinetheme:verifiabilitytype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions