Skip to content

API v2 Phase 3: client contract harnesses and pilot slice #883

Closed

Description

@Quick104

Part of the API v2 program epic #135. Durable architecture: docs/architecture/api-contract.md (PR #880).

Scope (program Phase 3 — client contract harnesses and pilot slice):

  • Web: pin openapi-typescript; one committed generated type artifact; a typed request boundary inferring params/body/success/errors; ban unchecked v2 response assertions; freshness + typecheck CI.
  • Apple: fixture sync script vendoring only consumed fixtures + one-line SOURCE commit pin; production-decoder conformance tests incl. unknown fields/enums; v2 contract probe + update-server state; no v1 transport path.
  • Android: mirror of the Apple flow using existing common-test resource and SOURCE conventions; production SiloJson config; same probe/update-server/no-v1 assertions.
  • Pilot slice (chosen from the Phase 1 inventory): one public discovery op, one authenticated account op, one profile-scoped read with params, one validated JSON mutation, one admin/policy-protected op, representative optional/null/time/enum/error fields. Not playback, not uploads.
  • Compatibility rule: updated clients require a syntactically valid v2 info response; v1-only servers produce an update-server state; no failed mutation is replayed across API majors.

Gate: server tests/spec/fixtures, web integration, Apple + Android conformance, update-server behavior, docs, and ledger state all agree for the pilot; template adjusted from pilot findings before route waves open.

Companion work in silo-apple / silo-android gets linked issues per the program's cross-repo rules (recorded on #135).

AI disclosure: drafted by Claude Code (claude-fable-5) orchestrating the #135 program.

Activity

  1. added
    api-v2
    on Sep 1, 2026
  2. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
  3. blurbery commented on Nov 19, 2026

    @blurbery
    Contributor

    Phase 3 landed on 5 September in #941, Silo-Server/silo-apple#253 and Silo-Server/silo-android#294. None of them linked this issue, so it stayed open.

    On main today: openapi-typescript is pinned, the generated web/src/api/v2/schema.ts is committed, requests go through the typed v2() boundary, unchecked v2 response assertions are banned by ESLint, verify-apiv2-web-types checks the types are fresh in CI, and the shared fixtures live in contracts/api/v2/fixtures. Closing as 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

    api-v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions