Repository navigation
feat(api): typed response structs, batch 10 — assertions (#1200) - #1212
Merged
Merged
Conversation
This was referenced Nov 24, 2026
#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]>
athvin
marked this pull request as ready for review
November 24, 2026 17:36
Contributor
|
The marketing preview was removed because this PR is closed or merged. |
athvin
temporarily deployed
to
marketing-preview
November 24, 2026 17:45 — with
GitHub Actions
Inactive
10 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1200
Batch 10 of #864: steward actions and assertions. #864 stays open for #1213.
What
Batch 10 of #864 converts the assertion contradictions endpoint to typed structs (
ContradictionList/ContradictionItem). 80 of 119 operations now publish a$refsuccess 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 --testsagainst Postgres: 392 passed.tsc --noEmitis clean against the regeneratedschema.d.ts.envelopes.jsonis unchanged.Risk & rollback
The body is value-equal to the old one;
componentis still an ascending array. Rollback:git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306onMac· 2026-11-24T18:00:10Zmainis green with this change on it: merge12826610. The push runsrust45452005974 andfrontend45452005949, plusinfra,devcontainerandmarketing preview, all succeeded.imagesbuilt: run 45452005966, success.deployconverged: run 45452577534 succeeded withDEPLOY_SHA: 12826610…. Process proof, read 2026-11-25 after SSO was renewed: the live colour in dev (ci/web-api-blue) and prod (app/web-api-green) runser-api@sha256:e935e7e5…. ECR tags that digest8bd3c294(feat(api): self-service API keys — admin minting with a role ceiling, list, show-once UI (#866) #1216's merge), which contains this merge (12826610) as an ancestor, and both pods logged"er-server listening","addr":"0.0.0.0:8000"at 08:11Z.driftandkindwere already red on schedule before feat(api): typed response structs, batch 3 — reviews+merges (#1193) #1202. The nightly golden-50k flake is scale golden (50k) fails deterministically on main since 03792063..ad38be23 (likely the DuckDB 2.0.1 bump) #1206.{}operations, claimed as feat(api): type the 17 operations still publishing {} (#1213) #1214).typed-responses-864(the 17-{}finding, which is why Typed response structs across er-server handlers, by resource family (10 batches) #864 stays open).Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
{}. Typed response structs across er-server handlers, by resource family (10 batches) #864's done-criterion is not met, so this PR does not close it. The 17 are filed as #864 batch 11: type the 17 operations still publishing an empty {} success schema #1213, with the customer-workflow ones (resolve,models/*,profile,match-preview) first.page_envelope, which the ledger records aspage, and typing it would reclassify a page as a record with no wire change.Measurements
Files
rust/crates/er-server/src/{lib.rs,openapi.rs},frontend/src/lib/api/{openapi.json,openapi.public.json,schema.d.ts}