Skip to content

core, ui-server: choose how SQLite rows are validated at read time #1367

Open

Description

@schlessera

Part of #1344.

Context

124 (core) and 191 (ui-server) .get()/.all() ... as T casts. See the epic for examples.

Scope

  • Measure zod parsing cost per row on the search and indexing hot paths against the fixture corpus.
  • Write a short decision record: zod schemas, typed mappers, or a hybrid with a documented hot-path exemption.

Out of scope

  • Migrating call sites.

Acceptance criteria

  • A decision record under docs/decisions/ with the measurement method and numbers.
  • A convention the migration tasks can follow mechanically.

Verification

Decision record passes bun run lint and the citation check.

Contract impact

None.

Activity

  1. added
    type: spike
    area: core
    area: ui-server
    priority: p3
    agent-ready
    on Oct 9, 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

    agent-readyarea: corearea: ui-serverpriority: p3type: spike

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions