Skip to content

test(ai): disposition tables + one fidelity corpus for the three tool-schema translators (design #1684, phase 1) #1685

Closed

Description

@dezren39

Phase 1 of design #1684 — disposition tables + one fidelity corpus for the three schema translators

Design #1684 (doc: files/designs/opencode-schema-projection-fidelity.md in the keep-the-four-repos-healthy goal workspace) states one fidelity contract for the provider tool-schema projections in packages/ai: every keyword, in every translator, has exactly one named disposition — preserved, approximated (named, with direction: widening or narrowing), or refused — and never silent, never inverted, never contradicted. This phase builds the contract's enforcement artifact: the tables and the corpus that asserts them. No production behaviour changes.

Scope

Out of scope

Acceptance

  • A disposition table exists for each of the three named translators, covering the keyword set above, with every row one of preserved / approximated-named-with-direction / refused / known-lossy-with-issue-link.
  • The shared corpus runs every table row through its translator and passes on current main, with known-lossy rows asserted as their current (lossy) projections and clearly marked.
  • The corpus fails if a translator's projection for a table keyword changes without the table changing (spot-provable by flipping one row in review).
  • No production files under packages/ai/src/ change.
  • Existing ai suites still pass: bun test for packages/ai/test/tool-schema-projection.test.ts, gemini-json-schema.test.ts, and provider/antigravity.test.ts (via CI per fleet policy).

🤖 Agent note · state: filed

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    priority/normalOrdinary priority (the default)
    app/aiPackage: ai (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  2. added
    queue/queuedHas a queued task in the Supabase agent queue
    work/assignedAn agent holds this item via the queue (claimed task)
    queue/claimedA queue worker has claimed the task for this item
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    Author

    🤖 Agent note · picked up

  4. removed
    queue/claimedA queue worker has claimed the task for this item
    work/assignedAn agent holds this item via the queue (claimed task)
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    Author

    🤖 Agent note · done

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

    app/aiPackage: ai (pkgs/ or apps/ in this repo)kind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect job

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions