Skip to content

feat(schemas): add representative provider corpora #411

Closed

Description

@Sinity

Parent

Part of #401. Feeds #410 and the README/media rebuild.

Problem

The current synthetic corpus machinery can generate schema-shaped provider exports, and there are a few curated showcase themes. That is useful, but demos and docs need something stronger: a reviewed representative corpus that is transparent, reproducible enough to verify, realistic enough to demonstrate Polylogue, and adjacent to provider schema packages.

Static fixtures are not inherently bad. The bad version is opaque arbitrary dumps. The desired version is committed representative corpus artifacts generated by a documented command, reviewed by a maintainer, and tied to schema/package versions and generation metadata.

Target model

Representative corpora should live adjacent to provider schemas, for example:

polylogue/schemas/providers/<provider>/
  catalog.json
  versions/<version>/package.json
  representatives/
    corpus-manifest.json
    sample-001.json
    sample-002.json

The manifest should record at least:

  • provider and schema package version;
  • generator command and version;
  • seed or deterministic configuration;
  • source mode: schema-only, curated-theme, LLM-authored, imported-live-redacted;
  • optional model/prompt metadata for LLM-generated samples;
  • privacy/review status;
  • expected parser/provider capabilities covered.

Generation modes

Support a layered generation story:

  • deterministic schema distribution only;
  • schema distribution plus curated semantic themes;
  • optional LLM-authored realistic text;
  • later: Agents SDK or codex exec backed generation.

CI should verify committed representative corpora and manifests. CI should not call live LLM APIs. LLM generation is a maintainer command: generate intentionally, inspect the diff, then commit.

Ambitious expansion

  • Add devtools lab-corpus representative generate and devtools lab-corpus representative verify or an equivalent command shape.
  • Reuse provider schema annotations and synthetic generation infrastructure rather than inventing a parallel fixture builder.
  • Let scenarios seed from representative corpora when docs/media need realistic data.
  • Make representative corpora useful as proof subjects: provider capability coverage, parser support, semantic value generation, and privacy review can all become obligations.
  • Avoid embedding private archive content unless explicitly minimized/redacted and marked as such.

Acceptance criteria

  • At least ChatGPT and Claude.ai have representative corpus manifests and reviewed samples.
  • The representative corpus generator records enough metadata for a maintainer to understand how each sample was produced.
  • A verification command checks manifests, schema package alignment, parseability, and provider identity.
  • Scenario seeding can consume representative corpora or fall back to deterministic schema generation.
  • README/demo media can use representative data without relying on private archives.
  • Tests cover manifest parsing, generation/verification command behavior, and one parse roundtrip through the normal pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:schematheme:verifiabilitytype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions