Skip to content

feat(api): typed response structs, batch 10 — assertions (#1200) - #1212

Merged
athvin merged 2 commits into
mainfrom
issue/1200-typed-assertions
Nov 24, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/1200-typed-assertions

Conversation

@athvin

@athvin athvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #1200

Batch 10 of #864: steward actions and assertions. #864 stays open for #1213.

🚧 Claimed by an agent session — 2026-11-24T17:28:46Z, session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Batch 10 of #864 converts the assertion contradictions endpoint to typed structs (ContradictionList/ContradictionItem). 80 of 119 operations now publish a $ref success schema. The rest of this family was already typed through the shared staged helpers, so this is the last named batch.

Why

OpenAPI is the customer integration contract (#857).

Proof

  • make check: 1,158 passed, 0 failed.
  • er-server --tests against Postgres: 392 passed.
  • Frontend tsc --noEmit is clean against the regenerated schema.d.ts.
  • envelopes.json is unchanged.

Risk & rollback

The body is value-equal to the old one; component is still an ascending array. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-24T18:00:10Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

rust/crates/er-server/src/{lib.rs,openapi.rs}, frontend/src/lib/api/{openapi.json,openapi.public.json,schema.d.ts}

#1200)

The contradictions endpoint returns ContradictionList/ContradictionItem
(From er_reconcile's Contradiction; the BTreeSet component serializes as
the same ascending array). 80 of 119 operations now publish a $ref
success schema.

The rest of this family was typed by earlier batches through the shared
staged helpers (Staged, StagedApplied, StagedBatch, StagedRecords). The
assertion ledger list keeps its recorded page envelope: it goes through
page_envelope, which the ledger records as 'page', and typing it would
reclassify a page as a record with no wire change.

#864 stays open: 17 operations still publish an empty {} schema (#1213).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

@athvin
athvin merged commit 1282661 into main Nov 24, 2026
46 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 24, 2026 17:45 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 8e8b6a93 Deployed Nov 24, 2026 by athvin via remove closed PR previews #31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#864 batch 10: typed responses for steward actions+assertions

2 participants