Unreleased
What has landed on main since RC9, regenerated on every build of the site: the in-progress app notes and REST API 1.811.0 to 1.895.0 (86 versions).
What's new in the app
From the in-app What's new for Apiome 11-2026 RC10.
Features/Improvements
- Only what was read, and GraphQL, gRPC and event pacts from the mock — on Generate a pact from a mock, Loose and Only what was read switch on once the consumer reports which response fields it reads: load the mock's browser recorder (
…/__capture__/recorder.jswithdata-capture) or callrecordFieldUsagefrom the SDK's npm package, and the pact expects only those fields, with every field left out listed and every operation without a report saying so. Until a report arrives both stay off and say why. The mock also records GraphQL operations, gRPC calls (x-mock-capturemetadata) and the messages of WebSocket and SSE subscriptions into the same session, and they become GraphQL-over-HTTP, protobuf-plugin and message interactions of the pact.apiome pact record --fields readand the GitHub Action'sfields: readdo the same from a pipeline - Serve pacts as a mock — Generate a pact from a mock → Serve pacts as a mock (or Serve as a mock in a Contracts row's menu) gives consumer teams a hosted stub that answers with what the published pacts promise, not everything the spec allows. Choose the provider and the pacts to serve (every consumer's latest on main, one consumer version, or whatever is deployed to an environment); each provider state becomes a scenario, chosen with
X-Mock-Scenario. A request no pact covers is answered by the spec mock, or with a 501. The dialog lists what the stub serves and everything it cannot, with the reason;apiome pact stubdoes the same from a pipeline - Keep a pact current from CI — Generate a pact from a mock has a fourth source, Keep it current from CI: add
apiome pact record --mock <project>/<version> --consumer … --publish -- npm testto the consumer's pipeline and every run publishes that build's pact. Per mock and consumer, choose Publish when (the tests pass, or always) and If the pact got looser — when a new pact no longer expects something the last one did: Publish and tell me publishes it and tells the provider's and the consumer's owner teams, Hold for review keeps it unpublished until someone reviews it. A held pact is never lost: Review shows what it no longer expects and its JSON, Publish pact publishes exactly that document, Discard keeps it marked discarded. The Contracts landing's status strip says when pacts wait for review - A pact from past traffic, or from mock scenarios — Generate a pact from a mock has two more sources beside recording. Use past traffic builds the pact from calls the consumer already made to the hosted mock: pick a window and a caller (an API key, or calls made with none), and the page says how many calls the range holds. Build from scenarios needs no traffic at all: tick operations × the mock's scenarios, and each tick becomes an interaction whose provider state is the scenario. A pair the mock cannot serve is a dash that says why. Both give the same table, strictness choices and review as a recording
- Record a pact in CI —
apiome pact record --mock <project>/<version> --consumer … -- npm testruns a consumer's tests against the hosted mock, writes the pact from the calls they made and, with--publish, publishes it when the tests pass; the GitHub Action does the same withcommand: record(mock,pacticipant,run). The tests' own exit code is kept, and every call left out of the pact is reported with its reason. Generate a pact from a mock now shows the command in The same, from anywhere - Generate a pact from a mock — Contracts → Start something → Generate a pact from a mock creates a consumer's pact with no Pact library and no test rewrite. Choose a hosted mock and the consumer, Start recording, and copy two lines into your consumer (the mock's address and the
X-Mock-Captureheader; a private capture URL when it cannot send a header). The calls appear grouped as the pact will hold them, with a reason on every row — chaos-injected and off-spec calls are listed and left out, and you can untick any interaction. Pick Balanced or Strict, override single fields, and see how much of the spec the consumer really uses. Review pact shows what changed since the last pact first (and says when it got looser), then Publish pact publishes it and links to the matrix. Set up contracts offers it as the first way to a first pact, and Publish a pact has a Record from a mock tab. - Generate a pact from a consumer's mock calls — a capture session becomes a Pact v4 document through
POST …/pact-broker/pacts/generate: calls are grouped into one interaction per operation, status and provider state; provider states come from the scenario or stateful session behind each answer; values are matched exactly, by type, or by the spec's formats and patterns; redacted fields are restored from the spec's examples; and per-field overrides set or drop a matcher. The report lists every call left out with its reason, checks the pact against the mocked spec, and shows what changed since the consumer's previous pact. See Pact from a mock in the docs - Record a consumer's calls to the mock — calls to a hosted mock tagged
X-Mock-Capture: <consumer>@<version>, or made through a private capture URL, are now recorded for that consumer and version, redacted with the mock's rules, and kept for 7 days (1–30, a workspace setting). Untagged callers are served exactly as before. Each tagged response saysqueued, ornot-recordedwith the reason. Sessions are read back through the API with each call's path template, status and where the answer came from (spec, scenario, session, chaos), ready for generating a pact. See Capture for a consumer in the docs - Contracts: every command has a screen — each of the 28
apiome pactcommands can now be done from Contracts: publishing consumer pacts and provider contracts, running a verification, managing pacticipants, versions and environments, settings, migrating, exporting and guided set-up, each screen showing the same action as anapiome pactcommand, a Pact CLI command, a GitHub Action step and a REST request. The landing's Publish provider contract, Run a verification and Derive a pact from a project now open their screens instead of a command dialog. Pact Broker overview in the docs lists every screen under The Contracts workspace - Guided set-up for contracts — Contracts → ⋯ → Set up contracts takes a workspace from nothing to a yes or no before every deploy on one page you can leave and come back to. Six sections, each Done, Next or To do: Apiome proposes pacticipants from your projects and repositories; you tick environments; it creates a CI key scoped to publishing pacts, reading verdicts and recording deployments, writes
PACT_BROKER_BASE_URLandPACT_BROKER_TOKENinto your GitHub repositories as Actions secrets, and opens a pull request adding can-i-deploy and record-deployment; you choose how the first pact comes to be (publish your Pact tests' files, or derive one from the spec) and turn on the spec as the provider contract. Without a linked GitHub account the secrets and the workflow are given to copy instead. A workspace migrated from a broker arrives with the first two sections done. From a script:apiome pact setup --from-projects --environments production,staging --ci github. - Provider test scaffolding — a fourth card on the Export page, and
apiome pact scaffold-provider-tests, writes a ready provider verification test from a provider's pacts in TypeScript (pact-js), Java (pact-jvm), Go (pact-go) or Python (pact-python): wired to this broker throughPACT_BROKER_BASE_URL/PACT_BROKER_TOKEN(no secret in the file), the recommended selectors with pending pacts on, and a handler stub for every provider state with the parameters it is sent with. States with no handler in Apiome are flagged in the states table and in the file; Download or Copy it - Export a contract — the new Export page takes a contract out of Apiome three ways. A pact from a project derives a consumer's declared surface as a Pact v4 file, with an operation checklist saying where each example came from (the spec's own, or generated from the schema — review it) and why an operation was left out; untick operations before you Download pact, or Review and publish it on the Publish page. A Postman collection replays a stored pact (latest, on a branch, with a tag, a version or a SHA), every consumer of a provider at once (one folder each) or an uploaded pact file, with a
{{baseUrl}}variable, provider-state setup as pre-request scripts and a bar of how many interactions the collection keeps — what it leaves out is listed with the reason. A pact file downloads any published pact exactly as stored, or every pact for a provider as a zip. A pact's page, a pacticipant and Export studio link here, and each kind shows itsapiome pact export-consumer-contract/export-postmancommand; the CLI gains--all-consumers,--state-setupand--state-change-url - Migration switch-over — the Migration wizard's Switch over step now proves the move: Apiome asks your old broker and itself the same can-i-deploy questions and reads Copied. Apiome and acme.pactflow.io give the same answers. — or 38 of 40 agree. with each difference and why (a result that was not copied, a selector the old broker does not support). Watch who has moved lists where each service last published, Apiome or the old broker. Switch on Keep copying until everyone has moved and every 15 minutes what is new at the old broker is brought over — the token is kept encrypted only while it is on — until you switch it off, or it stops itself after the old broker has been unreachable for 24 hours.
apiome pact migrate --followdoes the same from a terminal - Migration wizard — Contracts → Migrate from a broker moves a Pact Broker or PactFlow into your workspace in four steps. Connect with the broker's URL and a token (used for this migration only, never stored) and Test connection. Choose what to copy from a dry run's counts — by kind, how much history, and whether Apiome's or the source's record wins a conflict — with everything not portable in one Before you copy strip. Copy runs on Apiome's servers with a progress bar, a row per kind, every failure with its reason and a live log; you can leave the page, Stop it, and Resume without copying anything twice. Switch over shows the two variables that point your pipelines at Apiome and downloads the report. Past migrations reopens any earlier run
- Contracts settings: secrets, commit statuses, CI recipes and agents — Contracts → Settings gains four tabs. Secrets lists every workspace secret with what uses it (write-only: a value is never shown again), with New secret, Replace value and Delete, which is blocked while anything uses the secret; a secret a migration could not copy reads No value, and its webhook stays off until you Set value. CI and commit statuses switches statuses on the consumer's and the provider's commit, and bi-directional verdicts can now set statuses and fire webhooks too; below, a working pipeline for GitHub Actions, GitLab CI, Jenkins and Azure Pipelines and the broker address. Verification schedule lists what Apiome verifies on its own. Agents says what MCP-connected agents may do with contracts: reading is on, recording deployments is off until you allow it, and never to production
- Contracts clean-up rules, preview and restore — Contracts → Settings opens on Clean-up: say what to keep as sentences — every deployed or released version (always), the latest versions of each main branch, the latest of every other branch for so many days, anything with a tag — each with how many versions it keeps. If it ran now shows how many versions, pacts and results the rules would remove, redrawn as you edit, with See the list. Turn on Run clean-up nightly, choose how long deleted items stay restorable, and Restore anything from Recently deleted until it is purged. Without the Contracts admin permission the tab is read-only.
apiome pact retention show,setandpreviewdo the same from a pipeline - What is running where — Contracts → Environments opens on a Board: each service down the side, each environment across (production last) and Released to users, every running version with a dot for whether it is verified with everything beside it, and — where the environment to its left runs a newer version — whether that version can go or is blocked (the deploy simulator's answer). History lists every deployment, undeployment, release and end of support with who recorded it and whether it was verified at the time. An environment's menu has Record an undeployment, a release has End support, and unticking a release in Record a release ends its support.
apiome pact record-undeploymentandrecord-support-endeddo the same from a pipeline - Environments: create, record a deployment, record a release — Contracts → Environments now has Record a deployment, New environment and Record a release, and each environment a menu to edit or delete it. Recording a deployment asks can-i-deploy first and shows the reasons for a “no”; recording anyway needs an explicit tick, which is written to the audit trail. Recording a release lists the versions that stay supported, and an environment cannot be deleted while versions run there.
apiome pact create-environment,record-deploymentandrecord-releasedo the same from a pipeline - Version management and badges — a pacticipant's page has a Versions tab: search its versions, narrow them to the main branch, Deployed, Unverified or Deleted, add a tag inline with + tag, delete a version (with an optional reason) and Restore it from Deleted with its pacts, results and deployments until it is purged; select several to tag, delete or restore them together. A version that is deployed or released cannot be deleted — record its undeployment first. Its Settings tab has Badges: preview the README badge exactly as it is served and copy its Markdown (Apiome SVG or shields.io).
apiome pact create-version-tag,delete-versionandrestore-versiondo the same from a pipeline - Create, edit and delete a pacticipant — a pacticipant's page has a Settings tab for its name, display name, main branch, repository, owner, linked project and labels, and the Pacticipants page has New pacticipant. Renaming keeps the handle and the history, and the old name keeps working (a pact published under it still lands on the same pacticipant). Delete says how many versions, pacts and results go and which providers lose a consumer, asks you to type the handle, and can be undone for 30 days — from the dialog or Show → Deleted on the list; a pacticipant with a version deployed cannot be deleted.
apiome pact create-or-update-pacticipantanddelete-pacticipantdo the same from a pipeline - Live verification runs and results upload — Run verification now opens a run drawer that follows the run: each consumer's progress, the failing interaction with expected beside actual, and the log. Re-run this interaction checks one fix without publishing, Reproduce on the mock opens the provider's project, and Stop run ends the run before its next interaction; closing the drawer keeps it going and a toast says when it ends. Upload results attaches a report from a verifier you ran yourself — Pact verifier JSON, JUnit, Schemathesis, Newman or Dredd, detected from the file — and a report Apiome cannot read is refused with the reason
- Run a verification — Contracts → Verification is the screen for
apiome pact verify: choose the provider and the version under test, then let Apiome run it against a target (or Add a target…) or copy the Pact verifier command for a pipeline Apiome cannot reach. Choose the pacts as sentences with a count each (Recommended, Everything or Custom), with pending and work-in-progress pacts, and set provider states up with Apiome's handlers, the provider's own setup endpoint or not at all. A preview lists what will run and what is skipped as already verified for this version (Run anyway). Requests that change data are never sent to a production target, a target that never answers ends the run as Could not connect rather than a failure, and Save as a schedule keeps the provider verified on a cadence - Publish a provider contract automatically — on Contracts → Publish a provider contract, tick Do this on every publish on A project version and each later published version of the project becomes the provider's contract (drafts never do), or use the new Repository tab to follow an OpenAPI or AsyncAPI file of a GitHub repository: every push to its branch publishes it, with the commit as the provider version. Published automatically under the provider says where its contract already comes from, with any warning (no push webhook, no project bound), and stops a source for new publishes. Every automatic publish is compared with each consumer's pact like any other — the verdicts the If you publish now preview shows — and recorded in the access audit with its outcome
- Publish a provider contract — Contracts → Publish a provider contract is the screen for
apiome pact publish-provider-contract: take the contract from a project version, an uploaded OpenAPI or AsyncAPI document or a URL, say whose version it is, and choose the evidence that the provider behaves that way — run Apiome's hosted verifier now, attach a verifier's report, reuse a recorded contract-test run, the pipeline's exit code, or none yet — each labelled with its strength. Before anything is saved, If you publish now shows each consumer's verdict (with the first difference and where that consumer is deployed) and Nobody uses lists the operations no pact touches; Compare only publishes nothing. A failed run publishes nothing and lists the failing operations, an unverified contract is marked and never unblocks a deploy, and the result dialog links to can-i-deploy - Write a pact by hand — Publish a pact has a new Write interactions tab for teams with no Pact tests yet: list your interactions on the left and fill each one in on the right — description, provider state with parameters (suggested from the provider's state catalogue and its mock's scenarios), the request and the response, with the body fields the consumer relies on as matcher chips. HTTP, message, GraphQL and gRPC interactions sit in one list. Each path is checked against the provider's spec and flagged, not blocked, when it is missing; Fill from the spec takes the response's status, example and matchers. The editor writes a Pact v4 document that is checked and published like any other, and Edit in Write interactions opens a pasted pact in it.
- Check a pact against several provider versions before publishing — on Publish a pact, Check it before it counts compares each pact with the provider's main branch, what is deployed to production, any other environment, the latest draft of the provider's project or any version you type, all at once and without saving anything. The aside shows one pill per provider version with how many interactions match, and marks each interaction Match, Differs or Not in spec; See the difference opens what the pact needs beside what the spec declares, with a link to the spec's versions. Provider versions that could not be found are listed with the reason, and the same check is shown as an
apiome pact checkcommand - Publish a consumer pact — Contracts → Publish a pact now opens a full page: drop several pact files or a whole
pacts/folder (each row shows its consumer → provider, Pact specification and interaction count), paste one, or derive one from a project's declared consumer. Give the consumer version, branch, tags and build URL, fill the branch from the linked repository, tag with the branch name, and Check only to see whether each pact is new, unchanged or a conflicting pact for that version before anything is written. A file that is not a pact is marked with the reason and never blocks the others; the result says which pacts are new and pending, which were unchanged and what was not sent. The page shows the same action as anapiome pact publishcommand, and the Import Pact file dialog links to it pre-filled - The same, from anywhere — the Pact webhook editor now shows the webhook you are building as an
apiome pact create-webhookcommand, apact-brokercommand, a GitHub Action step and the REST request, updated as you type and ready to copy. Passwords, credential headers, tokens and signing secrets appear only as$WEBHOOK_…variables, and anything the command cannot carry is listed with the reason. Behind it, a CI check keeps everyapiome pactcommand and every Contracts screen that changes something in step - A landing page for Contracts — Contracts in the rail now opens on an overview instead of the Pacticipants list: one status strip for failing, stale, provider-less and pending integrations, a facts line whose Show stats reveals the contract-health rollup, and every consumer → provider integration in one table with its kind (Pact or bi-directional), latest verdict, the environments both sides run in and when it was last verified — searchable, filterable by Failing, Stale, Bi-directional or Mine, and drawable as a network. Start something groups the ways in by consumer, provider and pipeline, with a first-run checklist until one integration is verified. Every Contracts page now has the same tab row (Overview, Pacticipants, Matrix, Can I deploy, Environments, Webhooks, Health, Settings) in place of the buttons on the Pacticipants header
- Pacts in your specs, gates and registry — the Pact Broker now feeds the rest of Apiome: a published pact becomes the consumer's next contract revision, the deploy gate has a
contractssignal with the can-i-deploy verdict, a version publish can warn or be blocked on failing contracts (the Contracts card in Publish),apiome diff --consumersnames the pacticipant behind each consumer, and public project pages in Browse and the portal show pact badges and consumers. Pact Broker overview in the docs ties it together under Inside the registry - Publishing a pact updates the consumer's contract — a new pact published to the Pact Broker API is now declared as the consumer's next contract revision in the provider's project, so breaking-change analysis sees consumers that publish pacts; interactions that cannot be placed are kept with a reason, and a provider not yet bound to a project is reported in the publish response
- Block a publish on failing contracts — the publish dialog gains a Contracts card, and a policy of off, warn or block decides what a failing Pact verdict does to a publish. A blocked publish can be forced with a reason, which is recorded; a verification that is still missing shows as pending and never blocks.
- can-i-deploy in the deploy gate — the project deploy gate now includes a
contractssignal: the same can-i-deploy verdict the Pact Broker API gives, for the pacticipant bound to the project. A failing verdict fails the gate; a verification result that is still missing is reported as unknown and left out of the verdict. - Self-host Apiome as your Pact Broker —
docker-compose.pact-broker.ymlruns a standalone broker (Postgres, the REST API and automatic HTTPS) answering the Pact CLI, the Pact libraries andcan-i-deploy, with sizing guidance, encrypted scheduled backups and a step-by-step upgrade with rollback - Move from Pact Broker or PactFlow —
apiome pact migrate --from <your broker>imports a Pact Broker or PactFlow workspace: pacticipants and labels, versions with branches and tags, pacts, verification results, environments, current deployments and releases, and webhooks, each with its original date. Run it with--dry-runfirst to see what would be imported and what cannot be carried over (PactFlow secrets are listed for re-entry); running it again changes nothing and resumes where it stopped - A faster Pact Verification page and matrix — with 100,000 versions in a workspace the Verification page now loads its status in about 11 ms instead of over half a second, and every matrix and
can-i-deployanswer stays under 30 ms - Pacticipant owners — a pacticipant's page has a new Owner section: choose a team and click Assign owner. The team is told when a verification of one of the pacticipant's pacts fails and when a stale-pact re-publish request opens or expires. Without an owner, notices go to the owner of the consumer or project it is bound to, else to the Unowned findings report
- Secrets for webhooks and verification targets — keep a CI token, API key or signing secret once as a workspace secret (REST
/v1/tenants/{tenant}/pact-secrets) and refer to it from contract webhooks as${user.<name>}— in a header, the URL, the body, the password, a GitHub token or the signing secret — and from verification targets withauth.kindsecret. The value is sealed, never shown or logged, and put in only when a webhook is sent or a run starts; rotating the secret updates everything that uses it, and a secret in use cannot be deleted - Contract health and verification analytics — on Pacticipants, Contract health rolls every consumer ↔ provider pair into one state — Healthy, Degraded, Failing or Unknown — from its latest verdict, pass rate, flakiness (how often the verdict flips), whether it is overdue, an open re-publish request and failed webhook deliveries, worst first, over the Last 7, 30 or 90 days. Open a pair to read each signal and why, and to see its pass rate, flakiness and mean duration charted per day. The Verification page shows each consumer's health next to its name
- Stale pacts and verification scheduling — on Pacticipants, Verification settings sets when Apiome verifies pacts on its own (On publish, Hourly, Nightly or Manual only), how long a pact may go unverified before it is stale, and per-provider or per-pair overrides with the verification target scheduled runs use. A stale pact is marked Overdue on the Verification page and its consumer is asked to re-publish it: Re-publish requests tracks each request through Acknowledged, Re-published, Cleared or Expired, notifies the consumer's owners and escalates what expires
- Pact Broker: permissions, audit and isolation — every Pact Broker change, from the Pact CLI, a Pact library, the console or an MCP tool, is now checked against the Pacts permission and recorded in Access audit as a
pacts.*event with who acted and what changed (never the request body). The database also refuses any Pact row that points at another workspace's data - Publish pacts from the import dialog — on a project's Consumers screen, Import Pact file now has Also publish to the Pact Broker: name the Provider and Consumer version (and optionally a Branch, Tags and Build URL) and the pact is stored as a consumer contract and published, so the provider can verify it and can-i-deploy sees it. A refused publish is shown beside the stored revision
- RC10 begins — RC9 is complete, and its notes are kept in the Apiome RC9 release notes. The version on the launcher, in the user menu and on Help & docs now names the new release candidate (
RC10). RC10 is about contracts: Pact Broker and PactFlow compatibility, bi-directional contract testing, and contract agreements - The MCP Catalog opens faster on large catalogs — the Servers grid, its filters and Analytics now read each server's tool counts, safety flags and complexity from what was stored at discovery instead of working them out on every load. In a workspace with 2,000 servers of 50 tools each, the grid went from about 8 seconds to under 50 ms, and a filtered view from about 7.5 seconds to under 10 ms. Analytics numbers refresh every 30 seconds.
- Faster search suggestions on the browse site — the search palette (⌘K or /) on the public browse site now answers each keystroke in under 50 ms; on a large catalog it took up to a second. It suggests by name — organizations, API products, projects, operations, schemas and properties — and shows
40+when a kind has more matches than it read. Press ↵ on the first row to run the full search. The counts in the browse site's top bar and the lists on its home page now refresh every 2 minutes, so a newly published version can take that long to be counted there; its own page and search show it at once. - Long lists load a page at a time — Export history, the MCP capability directory, Published versions, a connector's Items and Refresh runs, and the admin Users, Tenants, Licenses and Templates lists now read one page and offer previous and next page arrows or Load more, so a workspace with thousands of rows opens as quickly as a small one. A count that would mean reading every row shows as
10,000+ - Pact Broker: pacticipants, versions, branches and tags — the REST API now keeps the registry Pact tooling names applications by: register a pacticipant, record each build as a version with its branch and tags, and read every branch's head. A version never changes once recorded, a branch head only moves forward, and deleting a project keeps its pacticipant. Roles has a new Pacts row for it: Editor can view, create and edit; only Owner and Admin can delete. Verification results and can-i-deploy build on this and are not yet available
- Pact Broker: publish and fetch pacts — the Pact CLI and Pact libraries now publish to Apiome. Give
pact-broker publishor pact-jspublishPactsyour workspace's broker base URL (…/v1/tenants/<workspace>/pact-broker) and an API key as the token. Consumers and providers are registered the first time a pact names them, a build's pacts are stored all together or not at all, and identical pacts are stored once, so ten builds of an unchanged pact give the provider one pact to verify. A different pact for a version that already has one is refused; an invalid pact is refused with the place in the file. Verification results and can-i-deploy are not yet available - Pact Broker: choose pacts to verify with selectors — a provider's Pact verifier now fetches the pacts it must verify from Apiome. Send consumer-version selectors such as
{ mainBranch: true },{ matchingBranch: true }or{ tag: "prod", latest: true }with the same broker base URL and token you publish with. Each pact comes back once, with the reasons it was chosen in the words the Pact Broker uses, and an ambiguous selector is refused with the place in the request. You can also read the latest pact of a consumer from a tag or a branch. Environment selectors select nothing until deployments can be recorded - Pact Broker: publish verification results — a provider's Pact verifier now reports back to Apiome. Run it with
publishVerificationResult: true, a provider version and a branch, and each pact it verified gets a result: passed or failed, with the outcome of every interaction kept as the verifier sent it, the build URL and the provider branch. Results never change once published and are numbered per pact, and a provider version is registered on first use. A result can link an Apiome provider verification report instead of copying it. Can-i-deploy will read these results; it is not yet available - Pact Broker: environments and deployments — your deploy jobs can now tell Apiome what runs where. Create environments such as
testandproductionwithpact-broker create-environment, then runpact-broker record-deploymentafter each deployment: it replaces the version deployed there before and keeps the old one in the history. Several copies of an application in one environment are recorded per application instance, and apps with several live versions userecord-releaseandrecord-support-ended. A provider verifier'sdeployed,releasedandenvironmentselectors now return the pacts of what is recorded there. - Pact Broker: can I deploy? —
pact-broker can-i-deploy --pacticipant "Billing Service" --version "$GIT_COMMIT" --to-environment productionnow asks Apiome whether a version is compatible with what runs in an environment, and stops your deploy job when it is not. The answer is yes, no or unknown, with the reason for each integration in the Pact Broker's words: a consumer needs its providers to be there, a provider does not need its consumers, and every version live in the environment is checked.--retry-while-unknownwaits for a result that has not arrived yet,--ignoreleaves one application out, and an environment markedcontractRequiredrefuses a version with no pact. The same answer is onGET …/pact-broker/can-i-deployand the matrix onGET …/pact-broker/matrix - Pact Broker: pending and work-in-progress pacts — a consumer's new expectation no longer breaks the provider's build the moment it is published. With
enablePending: truein the provider's verifier, a pact the provider branch has not verified yet comes back pending: its failure is reported but does not fail the build, and the first successful result from that branch ends the pending state. A branch you create later inherits what was already verified, so a new feature branch does not start with every pact pending. AddincludeWipPactsSinceand the verifier also gets work-in-progress pacts: the latest pact of each consumer branch that your selectors did not choose and the provider has not verified, always as pending. The matrix shows whether each result was for a pending or work-in-progress pact - Pact Broker: compatibility tested in CI — the official
pact-brokerCLI, pact-js and pact-jvm now run against Apiome on every Pact Broker change, and Pact Broker compatibility in the docs lists every Pact Broker endpoint as supported, partial, planned or not planned. Three differences the tests found now match the Pact Broker: the first version published onmain(ordevelop,master) sets the main branch, results from the Rubypact-provider-verifierare accepted, and the pact-js verifier can fetch its pacts. An endpoint Apiome does not serve answers501with a link to the page and the issue that tracks it, never a bare404. - Pact Broker: contract webhooks — Apiome can now tell your CI when a pact needs verifying and when a verification finishes.
pact-broker create-webhookandcreate-or-update-webhookwork unchanged with the broker base URL and token you already use. Use thecontract_requiring_verification_publishedevent to start a provider build: it fires once for each provider version that has not verified the pact yet — the head of the main branch and what is deployed or released — and carries that version and its branch.${pactbroker.pactUrl}and the other Pact Broker parameters are filled into the URL, headers and body. A webhook can start a GitHub Actions workflow directly, sign each request with a secret of yours, and is retried three times before it is marked failed; the log of every attempt can be read back. Tokens and passwords are sealed and never shown again. There is no screen for webhooks yet - Pact Broker: labels, deletes and retention — group pacticipants with labels (
team-billing,tier-1) and list the ones carrying a label. Deleting a version or a pacticipant now hides it, with its pacts, results and deployments, and you can restore it for 30 days; a deployed version is only deleted when you force it. A retention run keeps the newest versions of each branch, anything deployed and anything recent, and deletes the rest — it always shows you the plan first, and applies only that plan. Every delete and cleanup is in the audit log - Pact Broker: one overview page — the Pact Broker core is complete, and Pact Broker overview in the docs walks through it end to end: the consumer publishes, a webhook starts the provider, the verifier reports back, deploy jobs record what runs where, and
can-i-deploydecides. It links the page for each step, and Help & docs finds it when you search forcan-i-deployorcontract testing. There is no screen for pacts yet - Pact Broker: publish a provider contract — a provider build can now register its OpenAPI document against its version, the first step of bi-directional contract testing.
PUT …/pact-broker/contracts/provider/<provider>/version/<version>with the document (OpenAPI 3.0, 3.1 or 3.2, in JSON or YAML), or withapiomeVersion: "ledger-api@1.4.0"to use an Apiome version's document; a provider bound to its project can say justlatest. The branch, tags, build URL and self-verification results are recorded with it, the same document is stored once however it was sent, and a different contract for a version that already has one is refused. Swagger 2.0 and anything else that is not OpenAPI 3.x is refused with the place in the document. Comparing the contract with consumers' pacts is not yet available - Pact Broker: comparison rules — how a consumer's pact is compared with a provider's OpenAPI document is now fixed and published. Comparison rules in the docs lists every check, every failure with its code, and how each Pact matching rule is read. A result is
pass,failorpartial:partialmeans nothing contradicts the pact, but something (adatematcher, a non-JSON body) could not be compared in full. The comparison is not run for you yet; the verdict will appear in the matrix and can-i-deploy in a later release - Pact Broker: bi-directional verdicts in can-i-deploy — once a provider publishes its OpenAPI document as a provider contract, Apiome compares every consumer pact that needs it with that document, as soon as either side publishes, and stores the outcome as a verification result.
pact-broker can-i-deployand the matrix read it exactly like a result from a Pact verifier: a failing comparison stops the deploy and says so, and each matrix row'sverificationResult.kindreadsnativeorbidirectional. A new contract on a branch is compared again with the pacts the branch's previous contract was compared with, each pair is compared once, and the publish answer lists every comparison it ran - Pact Broker: self-verification evidence for provider contracts — a provider contract is now trusted only when evidence says the provider matches it. Publish it with the report of the tool that tested the provider against its own document — Schemathesis (JUnit or NDJSON), Dredd, Newman (JSON or JUnit) or any JUnit writer — or cite an Apiome provider-verification report, and Apiome reads it and records the kind, tool, SHA-256 digest and counts in
selfVerification:verified,failed,inconclusiveormissing. Without passing evidence the contract's comparisons readunverified, can-i-deploy warns (or, if your operator sets thefailpolicy, says no), and each matrix row saysproviderContractVerified. The newapiome pact publish-provider-contract --evidence <report>command sends the contract and its report in one step - Pact Broker: comparison fidelity report — a green bi-directional verdict now says how much it is worth. The new Pact comparisons page (
/ade/dashboard/pacts/comparisons) lists the workspace's recent comparisons, each with its verdict and its strength — only Compared in full is green — and opens each one's report: every check of every interaction marked Compared, Partly compared, Failed or Not run (with the reason), the matching rules the comparison could not prove, and what it could not compare, each with its place in the pact. The same report is onGET …/pact-comparisons/<resultId>/fidelity, linked from each bi-directional result asapiome:comparison-fidelity - Pact Broker: export a declared consumer surface as a pact — a consumer you registered on Consumers by picking operations and fields can now get a Pact v4 file without writing contract tests.
apiome pact export-consumer-contract --project <project> --consumer <consumer>writes one interaction per declared operation and response status, with only the declared fields and the specification's own examples as sample values, andapiome pact publish-consumer-contract … --consumer-app-version <version>publishes it to the Pact Broker so the consumer appears in the matrix, can-i-deploy and bi-directional comparisons. Every value it had to invent and everything it had to leave out is listed with a reason. Importing a Pact v4 file now also reads each body correctly - Pact Broker: compile a pact into a contract suite — the REST API can now turn a published pact into replayable verification cases, the first step of hosted provider verification.
POST …/v1/tenants/<workspace>/pact-suites/provider/<provider>/consumer/<consumer>/pact-version/<sha>gives one case per HTTP interaction with the request the consumer recorded, the response it expects, its provider states and its matching rules. The same pact version always gives the same suite and the samesha256:digest, whichever build published it. Message and plugin interactions, and anything else that cannot be replayed, are listed with a reason. - Pact Broker: bi-directional contract testing is complete — a provider can now be checked against its consumers without running their pacts: publish its OpenAPI document with
apiome pact publish-provider-contract --evidence <report>, and Apiome compares every consumer pact with it, trusts the result only when the provider's own test report passed, and feeds the verdict to the matrix andcan-i-deploy. A new Bi-directional contract testing post in the release notes ties the pieces together, and Pact Broker overview in the docs now shows where it fits next to Pact verification - Pact Broker: verify a provider from Apiome — a provider no longer needs a Pact library to be verified.
POST …/v1/tenants/<workspace>/pact-verifier/pacts/provider/<provider>/verifyselects the pacts the provider must honour with the same consumer-version selectors a Pact verifier sends, replays every interaction against a registered verification target, and publishes a verification result per pact, so the matrix and can-i-deploy answer from it. Responses are compared under the pact's matching rules, and each mismatch names the interaction, the field, the rule that failed and both values. Mutating interactions are sent only when the target's policy allows them and the run opts in; a run can never widen the target's policy. Interactions that assume a provider state are skipped unless you say the target already holds the data, and a run that skipped anything publishes nothing rather than a pass it did not earn. See Verify a provider from Apiome in the docs - Pact Broker: provider states — a provider can now register the states its pacts name ("an invoice 1042 exists") and how the hosted verifier sets each one up: a call to a state-change URL, or a recorded fixture of requests sent to the verification target, with a different setup per target when needed. Each interaction's states are set up before it is replayed and torn down after. Provider states (
/ade/dashboard/pacts/provider-states) lists a provider's registered states and checks its pacts against them before a run: a state that is not registered, a required parameter an interaction leaves out, or a setup the target's policy forbids is flagged, and that interaction is held back rather than guessed at. See Provider states in the docs - Pact Broker: every Pact matching rule in hosted verification — the hosted verifier now applies every matching rule of Pact specifications 2, 3 and 4, and is tested against the whole Pact specification test suite. A
contentTyperule judges an image, a PDF or another binary response by its bytes, so any JPEG matchesimage/jpeg. Three results now agree with other Pact verifiers: aregexmust match the whole value, a pact that records an empty body accepts only an empty response, and anAcceptheader ignores the case of its parameters. Generators are ignored, as every verifier ignores them, and a rule that cannot be applied still fails with its name rather than passing. Supported matching rules in the docs lists each one - Pact Broker: send a verifier report from your own CI — a verification that already ran in your pipeline now counts.
apiome pact publish-verification-results report.json …(orPOST …/pact-version/<sha>/external-verification-results) takes apact_verifier_cli --jsonreport or a JUnit file and stores it as a verification result, so the matrix and can-i-deploy see it. Nothing is dropped silently: every field Apiome could not use comes back as a note with its location, a skipped test case is never counted as verified, and a report that proves nothing is refused instead of published as a pass. See Send a report from your own CI in the docs - Pact Broker: message pacts against AsyncAPI — a provider that sends messages can now be checked against its consumers without running either. Publish its AsyncAPI 2.x or 3.x document as its provider contract (
contractType: asyncapi, or leave it out), and every consumer's message pact — Pact 3messagesor Pact 4 asynchronous messages — is compared with it as soon as either side publishes, with the verdict in the matrix and can-i-deploy. Each message is matched to a message the provider sends, by the topic in its metadata and its name, then its contents, headers and content type are checked. An Avro payload, a synchronous message or an HTTP interaction is listed as not compared, never passed silently. See Message pacts in the docs - Pact Broker: gRPC and GraphQL pacts in hosted verification — a gRPC call recorded by the Pact protobuf plugin is now replayed against a
grpcorconnectverification target, and its reply's status and message are checked under the pact's matching rules, naming the field that drifted. GraphQL operations recorded as HTTP interactions are replayed as GraphQL: aqueryis no longer held back as a mutatingPOST, and a reply witherrorsthe consumer did not record fails. A streaming method, a subscription or another plugin is listed as unsupported with the reason, and a pact that mixes HTTP and gRPC isincompleteon one target, never green. See gRPC and GraphQL pacts in the docs - Pact Broker: the provider verification engine is complete — Apiome can now verify a provider against its consumers' pacts by itself, with no Pact library in the provider. It compiles each pact, sets up the provider states the pact names, replays every interaction against a registered target, judges the replies by every Pact matching rule, and publishes a result for each pact to the matrix and
can-i-deploy. Message pacts are checked against the provider's AsyncAPI document, and results from your own CI can be sent in. A new Provider verification engine post in the release notes ties the pieces together, and Pact Broker overview in the docs now shows where hosted verification fits - Pact Broker: the
apiome pactcommands — the Apiome CLI now has thepact-brokercommands your pipeline already runs:apiome pact publish,can-i-deploy,record-deployment,record-release,create-environment,create-webhook,list-pacticipantsanddescribe-versiontake the same flags, print the same lines and exit the same way (0when it worked,1otherwise), and readPACT_BROKER_BASE_URLandPACT_BROKER_TOKEN.apiome pact verifyruns hosted verification in one step, and--output markdownwrites a table ready for a job summary. A file that is not a pact or a flag Apiome cannot honour stops the command with the reason before anything is sent.apiome pact migrateis listed but not available yet. See The apiome pact commands and Run Pact in CI in the docs - Pact Broker: basic auth and Pact key scopes — Pact tooling set up for basic auth now works unchanged: send your workspace API key as the password (
--broker-usernamecan be anything), or as the token as before. API keys has three new presets so a pipeline never needs full access: Pact: read-only (pact:read, forcan-i-deploy), Pact: consumer + deploy (pact:readpact:publish, to publish pacts and record deployments) and Pact: CI verifier (pact:readpact:verify, to publish verification results — it cannot publish a pact). Each reaches the Pact Broker and nothing else, and the key's member still needs the Pacts permission.apiome pactreadsPACT_BROKER_PASSWORDas the key when no token is set. See Pact keys and scopes in the docs - Pact in CI: a GitHub Action and GitLab and Bitbucket pipelines — the three Pact steps of a pipeline are now ready-made. On GitHub,
apiome/pact-actionpublishes the consumer's pacts, askscan-i-deployand keeps its answer in one pull-request comment that updates on every push, and records the deployment after a merge; it refuses to record a deployment from a pull request. GitLab CI and Bitbucket Pipelines get the same three jobs as copy-and-paste pipelines. A missing broker URL, token, pacticipant or environment stops the step with the reason. See Run Pact in CI in the docs - Pact in CI: Jenkins and Azure Pipelines — copy-and-paste pipelines for the three Pact steps. The Jenkinsfile reads the broker key from a Jenkins credential; the Azure pipeline maps its secret variable into each step and stops with the reason when it is missing. Both record a deployment on the main branch only, never from a pull request, and keep the
can-i-deployanswer with the build. See Run Pact in CI in the docs - Pact verdicts on GitHub and GitLab commits — when a consumer publishes a pact, its commit now shows pending until the provider verifies it. Then both the consumer's and the provider's commits show success or failure, as the status
apiome-pact/<consumer>/<provider>that a branch protection rule can require. Register the repositories under Repositories with a linked account and set each pacticipant's repository URL; publish with the commit SHA as the version. A status that can't be sent is kept with the reason and can be retried. See Commit statuses in the docs - Pact Broker: pact tools for AI agents — an agent connected to Apiome's MCP server can now work with your pacts.
pact.listlists the latest pact of each consumer and provider, with how its last verification went.pact.matrixandpact.can_i_deployanswer yes, no or unknown with the reasons, likeapiome pact can-i-deploy.pact.record_deploymentrecords what was deployed where. The tools use an MCP key and the Pacts permissions of the person who created it. Answers are kept short: lists come a page at a time, and the tool says how many rows it left out. An unknown argument is refused with the reason. They form a new pact toolset in MCP settings - Pact Broker: export a pact as a Postman collection —
apiome pact export-postman --provider "Ledger API" --consumer "Billing Service"writes a consumer's pact as a Postman Collection v2.1, to open in Postman or run in CI withnewman run. Each interaction becomes one request to{{baseUrl}}, with its provider states in the description, a saved example of the expected response and a test script that checks the status, headers and body. Pick a pact by consumer version, tag, branch or pact version, or export a local file with--pact-file. Message and gRPC interactions, values under a matching rule and generators are listed with the reason, never dropped silently - Pact Broker: CLI, CI and client compatibility is complete — a pipeline that runs
pact-brokermoves to Apiome by changing the command toapiome pact: same flags, same log lines, same exit codes, andPACT_BROKER_BASE_URL/PACT_BROKER_TOKEN(or basic auth with the key as the password) work as they are. Give each job a key with a Pact preset, drop in the GitHub Action or the GitLab, Bitbucket, Jenkins or Azure Pipelines recipe, and see each pact's verdict on the commit. AI agents get thepact.*MCP tools, and any pact exports as a Postman collection. A new CLI, CI and client compatibility post in the release notes ties the pieces together, and Pact Broker overview in the docs now lists CI pipelines and AI agents as places to work from - Contracts: the Pacticipants list and a pacticipant's page — the rail has a new Contracts entry under Ship. It opens Pacticipants (
/ade/dashboard/pacts/pacticipants): every application in your workspace's pacts, with its handle, main branch, labels, repository and last update, narrowed by Label and read 50 at a time with Load more. Click a name to open its page: an Overview of the handle, main branch, repository, labels and bindings; its Branches with their head versions, the main branch marked Main; what each Environment runs of it now (versions Deployed now, with their application instance, and releases Released and supported); and its Versions, latest first, with their branches, tags, builds and who recorded them. Click a branch or a tag to list only its versions, and Clear to list them all again. An empty workspace shows theapiome pact publishcommand that registers its first pacticipants. Needs Pacts → View. See Pacticipants in the docs - Contracts: read a pact — a pacticipant's page has a new Pacts section: every pact it is in, as the consumer or the provider, with the latest consumer version and how its last verification went. Click one to open the pact: its Overview (consumer and provider, consumer version, pact version, specification, interactions), its Verification status (Verified, Failed, Failed (pending) or Not verified yet, and every provider version that verified it), the Changes since the previous pact (interactions added, changed — with each changed value, old and new — and removed), every Interaction with its provider states, request and response or message, and the History of consumer versions with their verdicts. Click a version to open its pact; the address keeps
?version=so you can share it. An interaction type Apiome does not draw is shown as its JSON, never left out. Needs Pacts → View. See Pact detail in the docs - Contracts: integration network — a pacticipant's Pacts section links to its new Network diagram: every pacticipant connected to it through pacts, consumers on the left and providers to the right. Each arrow is an integration, coloured and marked by the verdict of its newest pact (Verified ✓, Failed ✕, Failed (pending) !, Not verified yet ?), with a key that counts them. Click an arrow to open the pact, or a pacticipant to see its own network; the Integrations table under the diagram lists every integration. The page reads at most 25 pacticipants and says what it left out. Needs Pacts → View. See Integration network in the docs
- Contracts: matrix and can-i-deploy console — the Pacticipants page opens two new pages. Matrix asks the Pact Broker's matrix from a query builder: choose one or more pacticipants and which of their versions (latest, a version, a branch, the main branch, a tag, an environment or all), then Show matrix. A grid puts consumer versions against provider versions, each cell marked by its newest result (✓ ✕ ! ?) and opening the pact, and every row is listed below. Can I deploy? checks one version against an environment or a tag, with pacticipants to ignore. Both explain the verdict — Yes — deployable, No — not deployable or Not known yet — with each blocking notice and what to do about it, and Check again while a result is missing; Can I deploy? also shows the matching
apiome pact can-i-deploycommand. The address carries the query, so a check can be shared. Needs Pacts → View. See Matrix and Can I deploy? in the docs - Contracts: verification results and re-runs — a provider's page has a new Verification link in its Pacts section, and a pact's Verification status links to Results and logs. The page counts the provider's pacts — verified, failing, stale (a pact version with no result yet) — and the share of interactions passing, lists each consumer's newest pact with its newest result, and keeps the History of every result with its trigger (Pact verifier, Hosted verifier, Re-run, Stale re-check, Bi-directional), duration, build and interaction counts. Click Re-run to replay one pact against a verification target and publish a new result, or Verify all stale to verify every stale pact as one build; every pact a run did not verify is listed with the reason. Open a result to see each failed interaction's Expected and Actual values side by side, the requests the run sent, and the raw log with Copy and Download. Reading needs Pacts → View; running needs Pacts → Create and Verification evidence → Create. See Verification results and re-runs in the docs
- Contracts: webhooks and delivery log — the Pacticipants page opens a new Webhooks page: every contract webhook with what it is for, the events it fires on, where it sends (an HTTP endpoint or a GitHub Actions workflow), whether it is enabled and signed, and its last delivery, and the workspace's Recent deliveries, narrowed by Status (Failed, Retrying, Queued, Delivered). Click New webhook to write one — events, request or GitHub repository, headers, body with
${pactbroker.…}parameters, signing secret — and Test it before you create it. A webhook's page shows its request (secrets read**********), Test, Edit, Disable / Enable, Delete and its Delivery log. Open a delivery to read what each attempt sent and what came back, Copy the log, and Redeliver a delivered or failed one as a new delivery. Reading needs Pacts → View; creating Create, editing, testing and redelivering Edit, deleting Delete. See Webhooks and delivery log in the docs - Contracts: environments and the deploy simulator — the Pacticipants page opens a new Environments page: a grid of every pacticipant across every environment with the version deployed there now (and its application instance) and each supported release. Click an environment to see what runs there, its Deployment history (every deployment, current or Replaced, newest first, narrowed by Pacticipant) and Simulate a deployment: name a version and click Simulate to see whether it can go there, what it would replace, and what else changes — each version of a pacticipant it has a pact with, running there or waiting in another environment, marked Clears, Breaks, Fixes, Blocks or No change — with the
can-i-deployandrecord-deploymentcommands for your pipeline. Nothing is recorded by a simulation. - Contracts: the Contracts workspace is complete — every Pact Broker screen now lives under Contracts in the rail: Pacticipants, Pact detail, the Network diagram, Verification, Matrix, Can I deploy?, Webhooks and Environments, plus publishing a pact straight from the Import Pact file dialog. A new The Contracts workspace post in the release notes ties them together, and Pact Broker overview in the docs now has a map of every screen and how to reach it
REST API
1.895.0 — 2026-11-30
Added
- Field usage and other protocols (PFX-9.8, #7326). OpenAPI 1.719.0.
POST /v1/tenants/{t}/pact-broker/pacts/generatetakesfields: read(it was refused): only the response fields the consumer reported reading are expected; reading an object or array keeps everything under it. Each removed field is in the interaction'sleft_out(Not read by the consumer); an interaction no report covers keeps every field and says so (interactions[].fields: all). Without any report for the source the request is still refused with422 pact-generate-field-usage-unavailable(pointer/fields) and the reason.report.fieldsandreport.field_usage(available,operations,reports,sources,unmatched) say what was used. For past traffic, the reports of every session the range read are merged.- Captured GraphQL operations become GraphQL-over-HTTP interactions grouped by operation
(
graphql query GetInvoice returns 200), gRPC calls protobuf-pluginSynchronous/Messagesinteractions with the mocked version's descriptors inmetadata.plugins, and event-channel messagesAsynchronous/Messagesinteractions (metadata.channel, rules undermatchingRules.content).interactions[].protocolsays which. A streaming gRPC method, a version whose descriptors cannot be built, or a message that no longer fits its type is inreport.excludedwith the reason.report.spec_checkcompares a message pact with the AsyncAPI form of the mocked version; GraphQL and gRPC pacts are not compared (they are verified by replay) andreasonsays so. GET …/pact-captures/sessionsand…/sessions/{id}: each session'sfield_usagetotals; the session detail lists the reported fields per operation (field_usage[]); each call'sprotocol(http,graphql,grpc,message).- apiome-db V465:
mock_consumer_capture_call.protocol(a gRPC call stores its gRPC status, 0–16) andmock_consumer_capture_field_usage(one row per session and operation, at most 500 paths, expires with the session's retention). - The protobuf descriptor builder moved from the mock to
app.canonical_proto_descriptors(shared). - The SDK's npm package (SDK-4.1) ships the opt-in field-usage hook
fieldUsage.js/fieldUsage.d.ts(import { recordFieldUsage } from '<package>/fieldUsage'), the same script the mock serves as its browser recorder (app.pact_field_usage_recorder).
1.894.0 — 2026-11-30
Added
- Serve pacts as a mock (PFX-9.7, #7325). OpenAPI 1.718.0.
PUT /v1/tenants/{t}/pact-stubs/{provider}/{name}— create or replace a pact stub: a hosted mock at{mock}/{tenant}/~pacts/{provider}/{name}/…that answers each request with the example of the interaction it matches in the selected pacts.sources(1–10):{"kind": "main"}(each consumer's latest pact from its main branch),{"kind": "deployed", "environment"?}(every consumer version deployed there, or anywhere),{"kind": "version", "consumer", "version"}.fallback:spec(default; needsfallback_mock{project, version}, whose spec mock answers a request no interaction matches) ornot-implemented(a 501). Answers the stub with itsurlandcreated.pacts:create; auditedpacts.stub.save.422pact-stub-name-invalid/pact-stub-source-invalid/pact-stub-fallback-mock-required.GET /v1/tenants/{t}/pact-stubs(providernarrows) andGET …/pact-stubs/{provider}/{name}— the stub and itsreport: the pacts its sources choose now (with the sources that chose each), every interaction served (method, path, status, providerstatesto send asX-Mock-Scenario), andskipped— every source that chose nothing and every interaction not served (a message, a plugin or non-HTTP interaction, an unreadable body or status, a duplicate), each with its reason.pacts:view.404 pact-stub-not-found.DELETE …/pact-stubs/{provider}/{name}— stop serving it.pacts:delete; auditedpacts.stub.delete.- apiome-db V464:
pact_stub, andpact_stub_notify()triggers on the stub, pact publication, branch, version, pacticipant, deployment and release tables (NOTIFY apiome_pact_stub_changed, tenant id), so the mock rebuilds a stub when its pacts change and serving reads nothing from the database. - The provider-publication SQL the selectors read moved to
app.pact_candidate_sql(shared with the mock).
1.893.0 — 2026-11-30
Added
- Standing CI recording and the "pact got looser" policy (PFX-9.6, #7324). OpenAPI 1.717.0.
POST /v1/tenants/{t}/pact-broker/pacts/record— whatapiome pact record --publishcalls after a test run:session(the capture session the pact came from; it names the mocked version, consumer and consumer version),pact,tests_passed, optionaltest_exit_code,branch,tags,build_url. The policy of that version and consumer decides theoutcome:skipped(the tests failed and it publishes only when they pass),held(the pact no longer expects an interaction or response field the consumer's latest pact did, and the policy holds looser pacts) orpublished(through the same path asPOST …/contracts/publish; a looser pact underpublish-notifyalso tells the provider's and the consumer's owner teams through PFX-6.4 routing, reported innotified).reasonsays why in one sentence;changeisfirst,unchanged,changedorlooser, with the diff inchanges.pacts:create; apact:publishAPI key may call it; auditedpacts.recording.run; catalogued as an Apiome addition.GET/PUT /v1/tenants/{t}/pact-recording/settings(project,version,consumer) —publish_when(tests-passdefault /always) andif_looser(publish-notifydefault /hold),saved, and thelast_run.pacts:view/pacts:edit; saving is auditedpacts.recording.settings.GET /v1/tenants/{t}/pact-recording/held(statushelddefault /published/discarded/all,limit;held_countcounts those waiting),GET …/held/{id}(with the document),POST …/held/{id}/approve(publishes exactly the held document for its consumer version, branch, tags and build; a refused publish leaves it held;pacts:create, auditedpacts.held.approve) andPOST …/held/{id}/discard(note; kept, marked discarded;pacts:edit, auditedpacts.held.discard).404 pact-held-not-found,409 pact-held-already-decided.- apiome-db V463:
pact_recording_setting,pact_held_pact(the document stored as text; kept when the mocked version is deleted).
1.892.0 — 2026-11-30
Added
- More sources for a pact from a mock: past traffic and operations × scenarios (PFX-9.5, #7323). OpenAPI 1.716.0.
POST /v1/tenants/{t}/pact-broker/pacts/generatetakes exactly one ofsession,trafficorscenarios(none, or more than one, is a 422).traffic—project,version,consumer,consumer_version, optionalsince/until(with a time zone) andcaller(an API key id, ornonefor calls made without one) — reads the capture history of that mock version for the consumer (any of its versions), newest 5,000 calls at most.scenarios— the same four names pluspairs(1–500{operation, scenario}) — builds one interaction per pair, its provider state the scenario, with no traffic at all.- The report is the same for every source;
report.source.kindsays which (session,traffic,scenarios) andreport.sessionisnullfor the other two. A traffic range holding more than one generation reads says so inreport.source.truncated/reason. A pair the mock cannot serve as one fixed answer is inreport.excludedwithscenarioand the reason; a sequence's note (its first answer is used) is in the interaction'snotes.404 capture-version-not-foundfor another workspace's version;422 pact-generate-scenarios-spec-unavailablewhen the spec cannot be read to answer scenarios. GET …/pact-broker/pacts/generate/traffic— calls, sessions and the first / last call of a traffic filter, the window's callers (API key, ornone) most calls first,max_callsandretention_days.GET …/pact-broker/pacts/generate/scenarios— every operation of the mocked spec × every scenario the version resolves (the four built-ins, then the stored ones):servable,statusandnote, or thereasonit cannot be served — the scenario does not change the operation (or only adds latency), answers by rules over the request, renders a template, is marked off-spec, answers a status the spec does not declare, answers a body that does not fit the spec's schema for it, or needs a request (or a default body) the spec gives no example for and none built from its schema fits. Built examples followpattern, length and range bounds.- All three need
pacts:viewandversions:viewand read inside the credential's tenant only. Both GETs are Apiome additions in the Pact Broker compatibility catalog.
1.891.0 — 2026-11-30
Added
- Generate a pact from a mock: what the page needs (PFX-9.3, #7321). OpenAPI 1.715.0.
POST /v1/tenants/{t}/pact-broker/pacts/generatetakesleave_out: interactions to keep out of the pact, each by its description (GET /invoices/{id} returns 404 given not-found). Each is listed in the newreport.left_out_interactionswith its calls and the reason; a name the session has no interaction for is listed there too (calls: 0), never ignored.report.summarygainsleft_out(calls) andleft_out_interactions. Leaving every interaction out answerspact: nullwith anempty_reasonthat says so.report.spec_usage:operations_usedofoperations_total(the mocked spec's operations) andresponse_fields_usedofresponse_fields_total(the fields the used operations' response schemas declare).nullwhen the spec could not be read or there is no pact.
Changed
- Guided set-up: a third first-pact path (PFX-9.3, #7321).
first_pact_pathofGET/PUT …/pact-setuptakesmock(record it from the hosted mock) besidetestsandspec; apiome-db V462 widens the check constraint. Thefirst-pactsection's summary reads Record one from the mock, publish one or derive one.
1.890.0 — 2026-11-30
Added
- Pact generation engine (PFX-9.2, #7320). OpenAPI 1.714.0.
POST /v1/tenants/{t}/pact-broker/pacts/generateturns a mock capture session (PFX-9.1) into a Pact v4 document and a report, and stores nothing. Not a Pact Broker endpoint: catalogued as an Apiome addition.- Calls are grouped by operation (method + spec path), status and provider state. Chaos-injected, off-spec and
rejected calls are left out, each listed in
report.excludedwith its reason. A forced status is kept, noted. - Provider states come from the scenario (named after it) or the stateful session (
a resource exists at <path>,no resource exists at <path>for a 404,resources created earlier exist at <collection>) behind each answer; path parameter values are the state'sparams. matching:exact(first call's values),type(default;typeon$) orspec(alsouuid/date-time/dateformats,patterns and integers). A matcher is written only when every captured value satisfies it. A field is expected only when every response of the group has it; a field that is sometimesnullis matched as type-or-null; anything left out is listed with the reason. The request path is matched by the spec's parameter shapes; undeclared request headers are left out and named.- Redacted response fields are restored from the spec's example with a
typematch, or left out; both reported. - Per-field
overrides(exact,type,integer,number,decimal,boolean,uuid,datetime,date,regex,omit), each reportingapplied_toandnot_appliedwith reasons. report.spec_checkcompares the pact with the mocked spec revision;report.previousdiffs it against the consumer's previous pact (added,removed, per-interactionfields_added/fields_removed,looser).fields: readis refused withpact-generate-field-usage-unavailableuntil field-usage reports exist (PFX-9.8). A provider is taken from the pacticipant bound to the mocked project, elsepact-generate-provider-unknown.- Requires
pacts:viewandversions:view; budgeted bypact_check_rate_limit_per_minute; permission-matrix row.app.pact_value_match.matcher_problemis the verifier's value check, now public. - Tests: golden corpus (
tests/golden/pact_generate, three sessions × three modes), seeded property tests (a generated pact is always compatible with the mocked spec, and satisfied by every response it came from), unit, store and route tests (tenant isolation, RBAC, every failure path).
1.889.0 — 2026-11-30
Added
- Consumer-tagged mock capture (PFX-9.1, #7319). OpenAPI 1.713.0, apiome-db V461 (
mock_consumer_capture_*), apiome-mock 0.24.0.- The hosted mock records a call for a consumer when it carries
X-Mock-Capture: <consumer>@<version>, or arrives through a private capture URL (/{tenant}/{project}/{version}/~capture/{token}/…). The call is served exactly as an untagged one and answeredX-Mock-Capture: queuedwithX-Mock-Capture-Session; a tag that cannot be read, an unknown, revoked or foreign capture URL, or a full queue is answerednot-recordedwithX-Mock-Capture-Reason. The proxy-capture opt-in values (on,record, …) keep their meaning. Untagged calls are unaffected; no database work runs on the request path — calls are queued and written in batches, one transaction per flush. Request and response are stored after the mock's redaction rules (always-on credential rules plus the version'sproxyCapture.redaction); a record that still looks credential-bearing is refused. GET /v1/tenants/{t}/pact-captures/sessionslists the live sessions (one per mock version, consumer and consumer version), newest activity first, filtered byproject,versionandconsumer;GET …/sessions/{id}reads a session and a page of its calls — method, path, the spec's path template, status,origin(spec,scenario,session,chaos,forced,off-spec,rejected), scenario, a digest of theX-Mock-Sessiontoken, request, response and what redaction removed. Calls a session could not take are counted by reason (session-fullpast 5,000 calls,credential-residual). Requirespacts:view.DELETE …/sessions/{id}deletes a session and its calls (auditedpacts.capture.session.delete;pacts:delete).POST /v1/tenants/{t}/pact-captures/linkscreates a private capture URL for a consumer and version (the token is shown once; only its SHA-256 digest is stored; default 7 days, at most 30; auditedpacts.capture.link.create;pacts:create). A capture URL tags calls only — a private draft mock still needs its API key.GET …/linkslists them aslive,revokedorexpired(pacts:view);DELETE …/links/{id}revokes one (auditedpacts.capture.link.revoke;pacts:edit).GET/PUT /v1/tenants/{t}/pact-captures/settings: captures are keptretention_days(default 7, 1–30; the new value applies to calls recorded from then on; auditedpacts.capture.settings;pacts:deleteto change). A workspace may have 500 live sessions; calls that would open another are counted inrefused_calls. Every read hides expired captures; the mock deletes them in batches.
- The hosted mock records a call for a consumer when it carries
1.888.0 — 2026-11-30
Added
- Guided set-up for contracts (PFX-8.20, #7317). OpenAPI 1.712.0, apiome-db V460 (
pact_setup_progress).GET /v1/tenants/{t}/pact-setupanswers the six sections of the set-up — pacticipants, environments, pipelines, first pact, provider's side, gates — eachdone,nextortodo, derived from what the workspace has (pacticipants, environments, published pacts, spec-as-contract sources, verification results) and, for the three sections nothing proves, from a Contracts admin's mark. A workspace with a completed broker migration has the first two done. It also proposes pacticipants from projects (providers, with the repository they are read from and their owner team) and from registered repositories no project is read from (consumers), each naming the pacticipant that already exists for it, and lists the registered GitHub repositories with whether a linked account can write to them. Unbounded counts stop at 100; the proposal reads the first 200 projects and repositories and reports the rest incandidates_omitted. Requirespacts:view.PUT /v1/tenants/{t}/pact-setupsaves only what is sent: a section's by-hand mark, the first-pact path (tests|spec), and the id and prefix of the API key created for CI (never its secret; a key that is deleted, disabled or expired reads back as none). Auditedpacts.setup.update. Requirespacts:delete.POST /v1/tenants/{t}/pact-setup/github/secretswritesPACT_BROKER_BASE_URLandPACT_BROKER_TOKENas GitHub Actions secrets into registered repositories, sealed to each repository's key, with the GitHub account the repository was registered with. The key is never stored, logged or audited. Auditedpacts.setup.github.secrets. Requirespacts:delete.POST /v1/tenants/{t}/pact-setup/github/pull-requestsopens a pull request fromapiome/contracts-setupadding.github/workflows/apiome-contracts.yml(can-i-deploy on every pull request and push; record-deployment after a push to the default branch). An open pull request from the set-up answersexistsand its branch is brought up to date; the same file already on the default branch is skipped.preview: truecalls nothing and answers with the file. Auditedpacts.setup.github.pull_requests. Requirespacts:delete.- Both GitHub routes answer per repository and never fail as a whole:
skippedcarries a reason a person can act on (not this workspace's repository, not github.com, no linked account, the account may not manage secrets or push), and a skipped pull request still carries the workflow's text. A pacticipant or environment name with a line break is422 pact-setup-invalid-workflowbefore GitHub is called. - New dependency:
pynacl(the sealed box GitHub requires for Actions secrets).
1.887.0 — 2026-11-30
Added
- Provider test scaffolding (PFX-8.19, #7316). OpenAPI 1.711.0.
GET /v1/tenants/{t}/pact-provider-tests/{provider}?language=typescript|java|go|pythonwrites a ready provider verification test — pact-js, pact-jvm (JUnit 5), pact-go v2 or pact-python 2 — from the pacts the recommended selectors choose ({"mainBranch": true},{"deployedOrReleased": true}, pending on). The file reads the broker fromPACT_BROKER_BASE_URL/PACT_BROKER_TOKEN(no secret is written), publishes results only in CI, and carries one state handler stub per provider state with the parameters the pacts send (EXAMPLE_PARAMETERS).stateslists each state with its parameters, an example,registered(in the PFX-3.3 registry) and how many interactions name it;unregisteredcounts the rest.notices:provider-scaffold-state-unregistered,provider-scaffold-state-left-out(over 200 states or a name over 500 characters) andprovider-scaffold-no-pacts. An unknown language is422 provider-scaffold-language-unsupported; an unknown provider404 pacticipant-not-found. State names are only ever written as escaped string literals.- The nightly suite compiles or type-checks each language with its toolchain when installed
(
APIOME_PACT_JS_DIR,APIOME_PACT_GO_DIR,APIOME_PACT_JVM_CLASSPATH,APIOME_PACT_PYTHON_DIR). - Requires
pacts:view.
1.886.0 — 2026-11-30
Added
- Export page support: operation map, provider-state setup scripts, every consumer (PFX-8.18, #7315). OpenAPI
1.710.0.
GET …/projects/{project}/consumers/{consumer}/pact(and…/pact/publish) answeroperations: one entry per declared operation with theinteractionsit wrote (indexes intopact.interactions) and itsplaceholder_count/omitted_count. An operation with no interaction was left out; itsomittedfinding gives the reason. The pact document itself is unchanged.POST …/pact-postman-collectionstakesstateSetup: each request that needs provider states gets a pre-request script that first POSTs{"state", "params", "action": "setup"}— the bodypact_verifier_cli --state-change-urlsends — per state, in order, to a{{stateChangeUrl}}collection variable (stateChangeUrlfills it in; empty otherwise). An unset variable or a failed setup stops the request with an error.stateChangeUrlwithoutstateSetup, or a non-http(s) URL, is422 pact-postman-export-invalid.allConsumerswithprovider(and at most one oftag/branch) writes the latest pact of every consumer of the provider, one folder per consumer. A consumer without such a pact is aleft-outnotice (pact-postman-consumer-no-pact), never dropped; every notice names itsconsumer.consumer,consumerVersion,pactVersionShaorpactwith it is a 422; a provider no consumer published a pact for is404 pact-not-found.
1.885.0 — 2026-11-30
Added
- Migration switch-over: agreement check, who has moved, keep-in-sync (PFX-8.17, #7314). OpenAPI 1.709.0;
apiome-db V459 (
pact_migration_sync).- Agreement check. After a copy, the run asks the old broker and Apiome the same can-i-deploy questions — up
to
options.agreement_questions(default 40, 0–200; 0 skips it): every version the source has deployed or released, then the latest version of each pacticipant, against each environment — as the matrix querypact-broker can-i-deploysends.facts.agreementholdsasked,agree,not_askedand each difference with both answers and itscause: the version, pact or verification result that was not copied (with the reason the run left it behind), a result only Apiome has, a question the old broker could not answer, or a different environment. A question either side cannot answer is a difference, never dropped. The run's phase readscheckingmeanwhile. - Who has moved.
facts.movedlists each pacticipant'slastpublication —apiome,sourceornone— from its newest pact (as consumer) or verification result (as provider) on each side; copied records keep the source's time, so only a publication to Apiome after the source's newest counts as moved. - Keep-in-sync.
GET/PUT /v1/tenants/{t}/pact-migration/runs/{id}/sync—{"enabled": true, "token": …, "interval_minutes": 15}tries the credentials on the source, then keeps them sealed (envelope cipherOPMS,APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS) while it is on; every interval a sweep reopens the run, which skips every record it already imported — their documents are not fetched — so only what is new is copied, and its agreement check and who-has-moved list are refreshed.{"enabled": false}deletes the credentials. After 24 hours of the source not answering, the sync stops itself and says why (stopped_reason). One migration per workspace is kept in sync (409 pact-migration-sync-active); a dry run cannot be (422 pact-migration-sync-invalid); without a master key503 pact-migration-sync-unavailable.pacts:createandpacts:editto switch,pacts:viewto read; audited aspacts.migration.sync.update. - Settings:
APIOME_PACT_MIGRATION_SYNC_ENABLED(kill switch),APIOME_PACT_MIGRATION_SYNC_INTERVAL(sweep tick, 60 s) andAPIOME_PACT_MIGRATION_SYNC_BATCH_SIZE(passes per tick, 2).
- Agreement check. After a copy, the run asks the old broker and Apiome the same can-i-deploy questions — up
to
Changed
facts.source_errornames thepact-migration-source-*code of a run the source broke.
1.884.0 — 2026-11-30
Added
- Migration runs:
apiome pact migrateon the server (PFX-8.16, #7313). OpenAPI 1.708.0; apiome-db V458 (pact_migration_run,pact_migration_run_done). The Migration wizard's server side: apiome-rest reads the source broker itself and runs the PFX-6.7 import as a job whose state any worker answers for.POST /v1/tenants/{t}/pact-migration/test— sign in to a Pact Broker or PactFlow and count its pacticipants. Nothing is stored.pacts:createandpacts:edit; audited aspacts.migration.source.test.POST …/pact-migration/runs(202) — start a run:mode: dry-runreads and checks everything and writes nothing;mode: copyimports, honouringoptions:kinds,labels_and_tags,results(all/latest/none),versions(all/kept— only what the workspace's clean-up rules would keep, with the pacts and results of a version left behind),conflicts(keep/replace),restart,matrix_limit,batch_bytes. A workspace runs one migration at a time (409 pact-migration-run-active); choices that cannot be honoured are422 pact-migration-run-invalid. Audited aspacts.migration.run.start.GET …/pact-migration/runs— the runs, newest first, andcan_migrate.GET …/runs/{id}?after=— one run: per-kind counts (copied, unchanged, skipped, failed; exists / would-create for a dry run),findings(everything not portable),failures(every refused record with its code and reason), the log after the cursor, and what a dry run learned (cleanup_would_skip,results_not_latest,labels_and_tags).pacts:view.POST …/runs/{id}/stop— stop before the next batch (pacts:edit).POST …/runs/{id}/resume(202) — set a stopped or failed copy running again, or retry what a finished one could not copy; the run skips every record it (or an earlier copy from the same source) imported, so nothing is copied twice.- The source is only read, and its credentials are never stored. Only
GETis sent; a link the source returns is followed on the source's own host; the token or password lives in the request and the job's memory — there is no column for it, and a resume is given it again. The source URL must be a public http(s) address (422 pact-migration-source-invalid); a refused sign-in ispact-migration-source-refused. - A run whose worker goes away is closed as
stoppedafter three minutes without a heartbeat and can be resumed.
Changed
import_recordstakesreplace_conflicts: with it, the source's pact or current deployment takes the place of a different one Apiome records (the run optionconflicts: replace).POST …/pact-migration/importandapiome pact migrateare unchanged — a conflict is still refused there — and a verification result is never replaced.
1.883.0 — 2026-11-30
Added
- Contracts settings: commit statuses, agents and secrets waiting for a value (PFX-8.15, #7312).
OpenAPI 1.707.0; apiome-db V457 (
pact_contract_settings;pact_secret.awaiting_value/originwith the value optional while waiting;pact_webhook.awaiting_secrets).GET /v1/tenants/{t}/pact-contract-settings— the commit-status switches (consumer_commit,provider_commit,bidirectional) and the agent switches (read,draft,publish,record), withconfiguredandcan_edit.pacts:view.PUT …/pact-contract-settings/commit-statusesandPUT …/pact-contract-settings/agents— replace one group; an unknown field or a non-boolean is 422. Audited aspacts.settings.commit_statuses/pacts.settings.agents.pacts:delete.- Bi-directional verdicts set commit statuses and fire their webhooks when
bidirectionalis on: each new comparison stored by a pact or provider-contract publish runs theprovider_verification_*webhooks and the commit statuses a published verification runs (#6941). Off (the default): nothing fires, as before. pact-secretsrecords carryhas_valueandorigin; a webhook inused_bycarriesenabled.
Changed
- Commit statuses follow the workspace's switches. A status on a commit whose switch is off is recorded as
suppressedwith reasonpact-status-switched-off(listed inGET …/pact-commit-statuses) and not sent. Both commit switches default to on, so nothing changes until a workspace turns one off. - MCP pact tools follow the workspace's Agents switches.
POST /v1/internal/mcp/pacts/{list,matrix,can-i-deploy}needread(on by default);…/record-deploymentneedsrecord(off by default: an agent that recorded deployments before is now refused until a Contracts admin turns it on) and is always refused for an environment marked production. Refusals are403 mcp-pact-agent-action-off/mcp-pact-agent-productionwith the reason, audited aspacts.agent.refused. POST …/pact-migration/importno longer refuses a webhook whose secret the source redacted. Each redacted value becomes a${user.migrated_<id>_<field>}reference to a placeholder secret created without a value (origin: migration), and the webhook is imported turned off, waiting; the record's note says what to set. Setting the secret's value (PUT …/pact-secrets/{id}) turns on every webhook with nothing left waiting. Resolving a secret with no value is refused (pact-secret-no-value), and a webhook referring to one cannot be turned on (pact-webhook-invalidat/enabled).
1.882.0 — 2026-11-30
Added
- Contracts clean-up rules, their preview, the nightly run and Recently deleted (PFX-8.14, #7311).
OpenAPI 1.706.0; apiome-db V456 (
pact_retention_policy, two partial indexes for the deleted rows).GET /v1/tenants/{t}/pact-retention/policy— the workspace's rules: every deployed or released version always kept;keep_main_branch_latest,keep_other_branch_latest(+keep_other_branch_days),keep_tags;nightly_enabled;restore_window_days;last_run,next_run_atandcan_edit(pacts:delete).configured: falseshows the defaults (clean-up off).pacts:view.PUT /v1/tenants/{t}/pact-retention/policy— replace the rules.keep_deployed_or_released: falseis422 pact-retention-keeps-in-use(Deployed and released versions are always kept.); an unknown field, a repeated or padded tag andkeep_other_branch_dayswithoutkeep_other_branch_latestare 422 with the reason. Audited aspacts.retention.policy.pacts:delete.POST /v1/tenants/{t}/pact-retention/policy/preview— what the saved rules, or the draft inrules, would remove if the clean-up ran now, with the pacts and verification results that go with each version. Planned by the same code as the nightly run. Changes nothing.pacts:view.GET /v1/tenants/{t}/pact-retention/deleted— deleted pacticipants and versions deleted on their own, newest first, with who deleted them (Clean-upfor the nightly run), what a restore brings back andpurge_after.limit(≤ 100),cursor;422 pact-retention-bad-cursor.can_restore.pacts:view.- The nightly clean-up: each workspace with
nightly_enabledruns its rules once a day after 02:00 UTC on the retention tick (claimedFOR UPDATE SKIP LOCKED, audited aspacts.retention.nightly, deletions restorable); a refused run stores its reason inlast_run.errorand deletes nothing. POST /v1/tenants/{t}/pact-retentionkeep selectorslatest_per_main_branch,latest_per_other_branch,other_branch_daysandtags; plans gainmatched_by,pacts,results, and per-deletionpacts/results(dry runs).
Changed
- The purge,
purge_afterand the deletion impact'sgrace_daysuse the workspace's restore window (restore_window_days) instead ofAPIOME_PACT_DELETION_GRACE_DAYS, which stays the default for a workspace that never saved rules.
1.881.0 — 2026-11-29
Added
- What is running where, the environments' history, and who ended a deployment or release (PFX-8.13, #7310).
OpenAPI 1.705.0; apiome-db V455 (
recorded_verdict,ended_actor_labelondeployed_versionandreleased_version;ended_reason,replaced_idondeployed_version; four history indexes).GET /v1/tenants/{t}/pact-environments/board— the Environments board: one row per pacticipant, one cell per environment (non-production first, production last), each running version with can-i-deploy'sverdictfor that environment,next(the newest version in the nearest environment to the left that runs the pacticipant, when it is newer than anything here, with its verdict — the deploy simulator's answer to the same question), every supported release, andidlerows for pacticipants with nothing anywhere (at most 50). At most 100 verdicts per read; the rest saychecked: falsewith the reason (notChecked).pacts:view.GET /v1/tenants/{t}/pact-environments/history— everydeployed,undeployed,releasedandsupport-endedevent, newest first, withactor,verdict(the answer when it was recorded; null when not known) andreplaces(the version a deployment replaced; the replaced one has no event of its own).environment,pacticipant,cursor,limit(≤ 50).400 pact-history-cursor-invalid;404for an unknown environment or pacticipant.pacts:view.
Changed
- Recording a deployment or a release (the broker routes and the MCP
record_deploymenttool) asks can-i-deploy first and stores the answer; recording never depends on it.PATCH …/deployed-versions/{uuid}andPATCH …/released-versions/{uuid}(record-undeployment/record-support-ended) store who ended it; a replaced deployment records who replaced it. Response bodies are unchanged.
1.880.0 — 2026-11-29
Added
- Record a deployment over a "no" from can-i-deploy, audited (PFX-8.12, #7309). OpenAPI 1.704.0.
POST /v1/tenants/{t}/pact-broker/pacticipants/{p}/versions/{v}/deployed-versions/environment/{uuid}takesoverrideCanIDeploy=true(defaultfalse): the Environments page's Record it anyway sends it when can-i-deploy answered no. It changes nothing about the deployment; thepacts.deployment.recordaudit row carriesoverride_can_i_deployin itsparams, so an override is never silent. A value that is not a boolean is a422.
1.879.0 — 2026-11-29
Added
- Rename a pacticipant, display names, and what a delete removes (PFX-8.10, #7307). OpenAPI 1.703.0;
apiome-db V454 (
pacticipant.display_name,pacticipant_alias).PATCH /v1/tenants/{t}/pacticipants/{ref}with a newnamerenames the pacticipant: the handle and the whole history stay, and the old and the new name are kept as aliases, so both keep resolving — as{ref}on every route and when a pact is published under either name (nothing new is registered).409 pacticipant-slug-taken("A pacticipant named … already exists.") when another live pacticipant has, or had, that name; registering a new pacticipant under a name a renamed one still answers to is refused the same way.display_name(optional, never what pacts use) is accepted byPOSTandPATCH(nullclears it) and returned withaliases(the other names it has had, oldest first) on every pacticipant record; the Pact Broker document'sdisplayNamereads it, falling back toname.GET …/pacticipants/{ref}/deletion-impact(pacts:view) says whatDELETEwould take with it: live versions, pacts naming it on either side and their verification results, the providers that lose it as a consumer and the consumers that lose it as a provider (at most 20 names each, with totals), the versions deployed or released now (blocked), and the grace period in days. A rename is audited aspacts.pacticipant.update.
1.878.0 — 2026-11-29
Added
- Live verification runs (PFX-8.9, #7306). OpenAPI 1.702.0; no migration.
POST /v1/tenants/{t}/pact-verifier/pacts/provider/{p}/verify/runstakes the body of…/verify, refuses exactly what it refuses (same codes, before anything is sent), then replays the run in the background and answers202with the run as it starts.GET …/pact-verifier/runs/{run_id}?log_after=is what the run drawer polls: one row per pact (queued,running,passed,failed,incomplete,stopped) with interactions done of the total, the newest interaction that did not pass with its mismatches (expected beside actual), the log since the cursor (the newest 2000 lines, older ones counted inlog_dropped), and — once finished —result, exactly what…/verifywould have answered.POST …/runs/{run_id}/stopends the run before its next interaction: the pact cut short publishes nothing (run-stopped), pacts not reached are skipped withpact-verify-stopped, outcomestopped.POST …/runs/{run_id}/rerunreplays one interaction of a finished run against the same target with the same options and publishes nothing and records no evidence (409 pact-verify-run-busywhile the run is going). Runs are per API worker, scoped to the tenant (another tenant's run is a404), kept 30 minutes after they end, at most 3 going per workspace (429 pact-verify-run-limit). Start and re-run needpacts:createandverification_evidence:create, stoppacts:create, readpacts:view;pact:verify/pact:readkey scopes; audit actionspacts.verification.runand the newpacts.verification.stop; permission-matrix rows. - Schemathesis, Newman and Dredd reports for
POST …/external-verification-results:formatgainsschemathesis(--report ndjson, one interaction per operation with each failed check as a mismatch, skipped scenarios noticed and not counted, a stream withoutEngineFinishedrecorded as failed; or--report junit),newman(-r json, one interaction per execution with each failed assertion; or-r junit) anddredd(--reporter xunit).autorecognises Schemathesis and Dredd JUnit by their suite names, Newman JSON byrun.executions+collection, and Schemathesis NDJSON by itsInitializeevent. Aformatthe body does not match is a located422naming the expected report; nothing is recorded.ingestiongainssyntax(json,ndjson,xml).
Changed
PactVerifyResponse.outcomemay bestopped(live runs only);PactVerification.not_published_reasonmay berun-stopped.…/verifyitself is unchanged.
1.877.0 — 2026-11-29
Added
- Run a verification: preview and the run's new options (PFX-8.8, #7305). OpenAPI 1.701.0; no migration.
New
POST /v1/tenants/{t}/pact-verifier/pacts/provider/{p}/verify/previewtakes the body of…/verify(target_refandprovider_versionoptional) and says what the run would do, sending nothing to any target and storing nothing: each consumer-version selector's own pact count (rules), every pact the selection chooses (pending and work-in-progress included, the run's own selection) with its interactions, how many change data, how many would be held back, its newest result and whether it already has a result for this provider version, the provider states named and how many the chosen strategy sets up, and the target's environment class. Every reason the run would not start is arefusalsentry with the run's own code.pacts:view;pact:readkey scope; permission-matrixreadsrow. …/verify(and the Verification console's re-run and verify-all-stale, which share its session):verification.provider_states_setup_urlPOSTs every provider state to the provider's own setup endpoint ({"state", "params", "action": "setup" | "teardown"}; a path on the target carries its credential and needs its mutating policy, an absolute http(s) URL is SSRF-guarded with none;//hostand other schemes are a 422);skip_already_verifiedlists pacts that already have a result forprovider_versionunderskipped(pact-verify-already-verified) instead of replaying them — outcomealready-verifiedwhen that is all of them,successthen being whether those results passed.skippedmoved from the console response to every verify response.
Changed
- Mutating requests are never sent to a production target. A run with
verification.allow_mutatingagainst a target whose environment isproductionis refused with422 pact-verify-mutating-productionbefore anything is sent — on every path that opens a verification session (…/verify, re-run, verify-all-stale, scheduled runs), whatever the target's own policy allows. - An unreachable target is not a failed verification. When every request a run sent ended in a transport error
or a timeout, the run's outcome is
could-not-connectwithconnection_error(Could not connect to billing.staging.example (timeout)); nothing is published, as before.
1.876.0 — 2026-11-29
Added
- Standing sources of a provider contract (PFX-8.7, #7304). OpenAPI 1.700.0; migration apiome-db V453
(
provider_contract_source). NewGET/PUT /v1/tenants/{t}/pacticipants/{p}/contract-sourcessays where a provider's contract is published from automatically:onProjectPublish(each published version of the project the pacticipant is bound to becomes the contract of provider version<version label>on the pacticipant's main branch, rendered asapiomeVersionrenders it) andrepository(repositoryId,path,branch: on every push to that branch the file at the pushed commit is published, the commit being the provider version). The version publish route (POST /v1/versions/{t}/{project}/{version}/publish) and the push webhook (POST /v1/repositories/webhook/{provider}) run the publish as a background task after answering (app.provider_contract_auto_publish); each publish is compared with the pacts that need it, exactly asPUT …/contracts/provider/…is, so the verdicts recorded are the ones the PFX-8.6 check previews. A draft is never published (the revision is re-read). Idempotent per version (the same contract again isunchanged, a different one fails with the conflict); a redelivered webhook publishes nothing. Every attempt appends apacts.contract.auto_publishaccess_auditrow (source: system) with the trigger, the outcome (published/unchanged/failed/skipped) and its reason; nothing fails the publish or the push that triggered it. Turning a source off stops new publishes only. Refused with a reason, never ignored:409 contract-source-no-project,404 contract-source-repository-not-found(another workspace's repository),422 contract-source-repository-unsupported(only GitHub repositories can be read on a push),400 contract-source-invalid-path(not a repository-relative.yaml/.yml/.jsonfile); a repository without a push webhook is kept with awarningsentry.GETneedspacts:view;PUTneedspacts:edit(andimports:viewwith a repository) and is audited aspacts.contract_source.update(permission matrix rowpacticipant.contract_sources).WebhookIngestResult.pushed_commitcarries a first-seen push's head commit.
1.875.0 — 2026-11-29
Added
- Check a provider contract before publishing it (PFX-8.6, #7303). OpenAPI 1.699.0; no migration. New
POST /v1/tenants/{t}/pact-broker/contracts/provider/{provider}/version/{providerVersion}/checktakes the publish body (content,contractType,contentType,apiomeVersion,branch,verificationResults) — orcontentUrlin place ofcontent, read once through the SSRF-guarded client (public addresses only, at mostAPIOME_PACT_MAX_BYTES; the bytes come back infetched.contentto publish inline) — and reports what the publish would record, storing nothing: oneresultsentry per pact the publish would compare with (the same selection andcompare_with_target, evidence policy included) withverdict,success, the consumer version'senvironmentsand its first 10failures;coverage(the contract's operations and the ones no compared pact uses, OpenAPI only);existing(a different earlier contract makessummary.publishablefalse — the publish would be409); andselfVerificationas the publish reads it.tags/buildUrlare accepted and named inignored. An unknown provider has no pacts (provider.exists: false). AcontentUrlthat cannot be read is422 provider-contract-url-unreadable. Requirespacts:view(versions:viewwithapiomeVersion,verification_evidence:viewwith a cited report); tenant-scoped; a restricted API key needspact:read; shares the pre-publish check budget (429 pact-check-rate-limited). Catalogued under Apiome additions. The publish route's parse-and-read step is nowprovider_contract_routes.prepare_request_contract, shared with the check;bidirectional_store.preview_provider_contractcompares an unstored contract.
1.874.0 — 2026-11-29
Added
- Check a pact against several provider versions before publishing (PFX-8.4, #7301). OpenAPI 1.698.0;
no migration. New
POST /v1/tenants/{t}/pact-broker/pacts/checkwith{"pact": {…}, "against": […]}: compares an unpublished pact with the provider contract of every version the selectors name —main(the newest version on the provider's main branch with a contract),deployed:<environment>(every version deployed to or released in it),version:<number>,draft:<revision>(a revision of the provider's bound Apiome project, rendered as it stands) — and stores nothing. Each version'sverdictandsuccessare what a publish would record (the samecompare_with_targetand evidence policy); each interaction ismatch,differsornot-in-spec, and a row that does not match carriesexpected(the pact's response) anddeclared(the contract's response, local$refs inlined), each at most 8 KB. A version two selectors name is compared once. Selectors that name nothing are listed inunresolvedwith the reason; versions past 20 inskipped;summary.successis true only when every compared version passes and nothing is unresolved or skipped. 1 to 10 selectors; an unknown field or selector kind is422 pact-check-invalidwithpointer; a document that is not a pact is422 pact-invalidunder/pact. Requirespacts:view(adraft:selector alsoversions:view); tenant-scoped; a restricted API key needspact:read; budgeted byAPIOME_PACT_CHECK_RATE_LIMIT_PER_MINUTE(default 60,429 pact-check-rate-limited). Catalogued under Apiome additions on the Pact Broker compatibility page — not a Pact Broker endpoint.app.bidirectional_store._compareis now the publiccompare_with_target.
1.873.0 — 2026-11-29
Added
- Contracts landing integrations list (PFX-8.1, #7298). OpenAPI 1.697.0; no migration. New
GET /v1/tenants/{t}/pact-integrations(q,filter=all|failing|stale|bidirectional|mine,limit≤ 100,offset): every consumer ↔ provider pair with a pact, worst verdict first, with its kind (pactorbidirectional), verdict (failing,stale,no-provider-contract,unverified,verified), pending flag, the environments both sides are deployed in, and when it was last verified; pluscountsandattention(up to three named pairs per status-strip category) over every pair, and the workspace's pacticipant and environment counts. Requirespacts:view; tenant-scoped. At most 1,000 pairs are classified (truncated,omitted_integrations); the pairs query uses loose index scans (about 10 ms at 100k versions, down from 1.1 s) and has the plan-check entrypact.integrations_pairs. A bad filter, search text or page is a400with apact-integrations-*code;filter=minewith a credential that is not a user ispact-integrations-mine-needs-user.
1.872.0 — 2026-11-29
Added
- Contracts on browse and portal pages (PFX-7.5, #6965). OpenAPI 1.696.0; no migration. The public
GET /v1/browse/tenants/{t}/projects/{p}/pact-badgesgains, per pacticipant,consumer_count(every consumer whose latest pact names it as provider) andconsumers(at most 20:slug,name,status). Only names and a state word are exposed; private projects and unbound pacticipants stay the uniform 404. Browse (0.68.0) draws them on the project page and on the portal product page.
1.871.0 — 2026-11-28
Added
- Broker-backed consumer impact (PFX-7.4, #6964). OpenAPI 1.695.0; no migration. The consumer
analysis behind
POST /v1/diff/{tenant}/classified(consumers: true) names the Pact Broker behind each consumer: everyConsumerVerdictgainsbroker(pacticipant,fromPact,consumerVersion,pactSha;nullfor a consumer with no bound pacticipant), the counts gainconsumers_from_broker, and the markdown Consumer impact section adds aPact Broker:line. The pacticipants are read in one tenant-scoped query. Theapiome diff --consumerstext report and thediff-action(newconsumersinput, defaulttrue) show it.
1.870.0 — 2026-11-27
Added
- Quality gate for publishing (PFX-7.3, #6963). OpenAPI 1.694.0; no migration. Publishing a
version can now be blocked by failing contracts, reusing the CTG-3.4 guardrail pattern.
- New policy
contracts.publishPolicyin the deploy-gate policy body (off/warn/block, defaultwarn; unknown values fall back towarn, neverblock). It is not part of the policy fingerprint, so check-suite evaluations stay current. POST …/publishgains a contracts gate after the maturity gate: underblock, a revision whose Pact can-i-deploy verdict (the deploy gate'scontractssignal,app.pact_matrix.deployment_verdict) is "not deployable" is refused with 422detail.contractsPublishGate;skipPublishCheckswith aforcePublishReasongoes past it. A missing verification result (pending), no bound pacticipant, a fault, or a caller withoutpacts:view(unavailable) never blocks.GET /v1/versions/{tenant}/{project}/{revision}/contracts-publish-gateis the read-only preflight the publish dialog calls (versions:view; the verdict itself needspacts:view).- Warned and forced publishes append
version.contracts_gateto the workflow audit trail.
- New policy
1.869.0 — 2026-11-26
Added
- can-i-deploy as a deploy-gate signal (PFX-7.2, #6962). OpenAPI 1.693.0; no migration.
GET /v1/projects/{tenant}/{project}/gategains acontractssignal (last insignals) judged by the sameapp.pact_matrix.deployment_verdictasGET …/pact-broker/can-i-deploy, so the two cannot disagree. It asks the pacticipant bound to the project about the revision's version label, againstcontracts.environmentor, without one, the latest version of each counterpart.pass(deployable),warn(deployable but leaning on an unverified provider contract),fail(not deployable),unknown(a verification result is missing: excluded and counted).not_configured(excluded) when no pacticipant is bound to the project, the version was never published to it, or it has no pacts. A caller withoutpacts:viewgetsunknown; a read that fails costs only this signal. Everything is read within the caller's tenant.- The policy body gains
contracts.environment(defaultnull). With several bound pacticipants the first by handle is judged and the others are listed indata.otherPacticipants.
1.868.0 — 2026-11-26
Added
- One consumer model (PFX-7.1, #6961). OpenAPI 1.692.0; no migration. Publishing a pact now
refreshes the consumer's declared surface (
app.pact_consumer_sync):PUT …/pact-broker/pacts/provider/{p}/consumer/{c}/version/{v}andPOST …/pact-broker/contracts/publishresolve each new pact against the provider's project (the pacticipant'sproject) and store the consumer's next contract revision (CTG-4.1 rule 2) throughapp.pact_contract_import; interactions that cannot be placed stay on the revision with their reason codes. The consumer is registered in the project under the pacticipant's handle on first publish and the pacticipant is bound to it (consumer_id).- The bulk response gains
consumerContracts(per pact:refreshed/unchanged/skipped/error,revision,resolvedCount,unresolvedCount,reasonCode,reason) and matchingnotices. A provider not bound to a project, or a project without a renderable version, isskippedwithprovider-not-bound-to-project/project-specification-unavailable— never silently dropped. The same pact and specification revision isunchanged(no new revision). - The refresh runs after the publish commits and never fails it: a fault is
error(refresh-failed) and the next publish retries. Tenant isolation: provider and consumer are resolved in the caller's tenant;pacts:creategoverns the publish.
- The bulk response gains
1.867.0 — 2026-11-26
Added
- Import from a Pact Broker or PactFlow (PFX-6.7, #6959). OpenAPI 1.691.0; no migration.
apiome pact migratereads a source broker and sends what it read here.POST /v1/tenants/{t}/pact-migration/import(app.pact_migration_routes): up to 100 records —pacticipant,environment,version,pact,verification,deployment,release,webhook— each written in its own transaction (app.pact_migration_store) with the source'screated_at. Natural keys make a repeatunchanged; a label, tag, branch, repository or main branch a record adds isupdated; a refused record carriescodeandmessage(pact-migration-invalidwith a/records/{i}/…pointer,pact-migration-reference-missing,pact-migration-conflict, or the Pact rule it breaks) and never stops the batch. Verification results keep the source's number; a colliding number with a different verdict is refused. A deployment never replaces what Apiome already records as deployed. Fires no webhooks, commit statuses or notifications.pacts:create+pacts:edit; auditedpacts.migration.import(permission-matrix rowmigration.import).POST /v1/tenants/{t}/pact-migration/check: the dry run —exists/would-create/refusedper record, nothing written;pacts:view(matrix read row).- Store writes take an optional
created_at(record_version_tx, tags and branches,_store_pact,publish_verification_resultwithnumber,create_environment,record_deploymentwithreplace_current,record_release,create_webhook);NonekeepsCURRENT_TIMESTAMP, so every existing caller is unchanged. New codepact-deployment-conflict.
1.866.0 — 2026-11-26
Changed
- Pact matrix at 100,000 versions (PFX-6.6, #6958). OpenAPI 1.690.0, apiome-db V452. Measured
with
scripts/bench_pact_matrix.py --versions 10000(100,000 pacticipant versions, 250,000 pact versions, 500,000 results): worst p95 565 ms → 26 ms; every matrix / can-i-deploy query < 30 ms.- Integrations (
app.pact_matrix_store): found by a loose index scan (row-comparison steps throughpact_version_content_keyandidx_pact_publication_pair), now the named statementpfx_matrix_integrations, instead of aDISTINCTover every publication (provider to environment p95 35.5 → 5.2 ms). - Rows: each named pacticipant's newest publications are read in order (a
LATERALbranch per pacticipant over the new indexes) instead of sorted from the whole history (one pacticipant's rows 44.9 → 26.4 ms). - Environment selectors: read from
deployed_version/released_versionrows instead of testing every version. - Verification status, the stale-pact sweep and verify-all-stale: each consumer's newest pact
(
list_latest_pact_candidates) and each pact's newest result (latest_results_by_pact) are found by key, not from every publication and result of the provider (564.9 → 11.2 ms). - Results are identical to the previous statements (checked against them in
tests/test_pact_scale_db.py). - apiome-db V452:
idx_pact_publication_consumer_recent (consumer_id, created_at DESC, id)andidx_pact_publication_provider_recent (provider_id, created_at DESC, id).
- Integrations (
Added
GET /v1/tenants/{t}/pacticipants/{pacticipant}/labelsis paged:limit(1–200, default 50) andcursor; the answer gainshas_moreandnext_cursor. A bad cursor is a400.
1.865.0 — 2026-11-26
Added
- Pacticipant owners and notifications to owners (PFX-6.4, #6956). OpenAPI 1.689.0, apiome-db
V451.
- Owner kind
pacticipant.GET/PUT/DELETE /v1/tenants/{t}/owners/pacticipant/{id},POST …/confirmandPOST …/owners:assignaccept a pacticipant (its id); reading needspacts:view, changingpacts:edit; audited asowner.*like every owner change. Team activity lists owned pacticipants; Unowned findings can name one. - Failed verifications notify owners. A failed verification result — published to the broker
or run by the hosted verifier — routes an
owner_verification_driftfinding (kind: pact-verification-failed, role, result id, versions, pact version SHA, pending) to the provider's and the consumer's owner teams, once per team, after the result commits; it never changes or fails the publish. A passing result notifies nobody. - Owner resolution (
app.pact_owner_routing): the pacticipant's own confirmed owner, else its consumer-registry entry's, else its project's; with none, the finding is recorded as unowned under the pacticipant (Unowned findings / catch-all team). Every finding carriespacticipantandownerSource.
- Owner kind
Changed
- The PFX-6.2 remediation sweep routes re-publish requests and escalations through the same
resolution: a consumer with no owner anywhere is now
unowned(recorded under the pacticipant) rather thanunlinked. - The retention purge removes a purged pacticipant's owner rows and unowned findings in the same transaction; a soft-deleted pacticipant keeps its owner.
1.864.0 — 2026-11-26
Added
- Secrets for webhooks and verification targets (PFX-6.5, #6957). OpenAPI 1.688.0, apiome-db V450.
- Workspace secrets.
GET/POST /v1/tenants/{t}/pact-secrets,GET/PUT/DELETE …/{id}: a named value (nameis a letter, then up to 63 letters, digits and underscores; never renamed), sealed with the credential vault's keys (APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS) and never returned. Each secret reads itsreference(${user.<name>}),value_updated_atandused_by(the webhooks and verification targets that refer to it).PUTreplaces the description and, withvalue, rotates the value. At most 200 per workspace. Readspacts:view, createpacts:create, updatepacts:edit, deletepacts:delete; writes auditedpacts.secret.create,pacts.secret.update,pacts.secret.delete(never with the body). Refusals:422 pact-secret-invalid(withpointer; never repeats the value),404 pact-secret-not-found,409 pact-secret-name-taken/pact-secret-limit-reached/pact-secret-in-use(names the webhooks and targets),503 pact-secret-vault-unavailable. - Webhooks refer to secrets.
${user.<name>}may appear in a contract webhook's URL path or query (never the host), headers, body, basic-auth credentials, GitHubtarget.tokenandsigningSecret(a referred signing secret must be 16 characters or more when sent). A reference must name a secret of the webhook's own workspace when the webhook is saved or tested (422 pact-webhook-invalidpointing at it); a malformed${user.…}is refused, not sent as written. Secrets are resolved only when the request is sent, in one pass with${pactbroker.*}(a parameter value cannot smuggle in a reference), and every resolved value is scrubbed from the execution log. A firing whose secret is gone or cannot be opened fails with the reason, unsent. Webhooks that refer to secrets readsecretReferences. - Verification targets refer to secrets.
auth.kind: secretwithauth.ref: <name>(checked to exist in the target's workspace when stored,target-auth-invalidotherwise), presented with the target'sschemelike anenvvalue; the contract runner, provider verification, the Pact verifier and Arazzo runs open it when a run starts. - apiome-db V450:
pact_secret(ciphertext only,UNIQUE (tenant_id, name)),pact_webhook.secret_refs, andsecretinverification_target.auth_kind.
- Workspace secrets.
1.863.0 — 2026-11-26
Added
- Contract health rollup and verification analytics (PFX-6.3, #6955). OpenAPI 1.687.0,
apiome-db V449.
- Health.
GET /v1/tenants/{t}/pact-health(window=7d/30d(default) /90d,provider,consumer,state): every consumer ↔ provider pair with a pact, rolled up into one state (healthy,degraded,failing,unknown) fused from six signals, eachok/warn/fail/unknownwith apact-health-…reason code: the newest pact's latest verdict (never verified is a warning), the window's pass rate (≥ 95 % ok, ≥ 80 % warn), flakiness (verdict flips between consecutive results; ≤ 10 % ok, ≤ 30 % warn; judged from three results), overdue (the PFX-6.2 sweep's record for the newest pact), an open re-publish request, and the newest firing of each contract webhook for the pair (dead-lettered = warn). The worst signal wins;unknownsignals never make a pair worse. Worst first, at most 500 pairs (truncated,omitted_pairs);countscover every pair the provider/consumer filter matches;totalsthe listed pairs' analytics. - One pair.
GET …/pact-health/providers/{provider}/consumers/{consumer}(window): the pair's health and its trend — one bucket per day (per week for90d), oldest first, empty ones included — with runs, pass rate, flips, flakiness and mean duration (timed_runs: results from verifiers outside Apiome carry no duration). - Both need
pacts:view; an unknownwindoworstateis400 pact-health-window-invalid/pact-health-state-invalid; a pair with no pact is404 pact-health-pair-not-found. Computed on every read; nothing stored. SLA, consent and dispute signals are CAG-10.4 (#7025). - apiome-db V449 adds
idx_verification_result_tenant_window (tenant_id, created_at).
- Health.
1.862.0 — 2026-11-26
Added
- Stale-pact remediation and Pact verification scheduling (PFX-6.2, #6954). OpenAPI 1.686.0,
apiome-db V448.
- Stale threshold. A pair's newest pact is overdue when it has not been verified for longer
than its stale threshold (counted from its newest result, or its publication when never
verified). The Verification console's
stale(no result at all, PFX-5.5) is unchanged. - Verification settings.
GET/PUT /v1/tenants/{t}/pact-verification-settings: cadence (on-publish,hourly,nightly,manual-only— the default), stale threshold (1–2160 h, default 72), concurrent scheduled runs (1–10, default 2), re-publish request window (1–720 h, default 72) and whether stale pacts open requests.GET/PUT …/overridesandDELETE …/overrides/{id}: a cadence, threshold or verification target for one provider or one consumer ↔ provider pair (pair over provider over workspace; at most 500 per workspace). - Re-publish requests.
GET /v1/tenants/{t}/pact-republish-requests(provider,consumer,stateincl.open,cursor,limit≤ 50),GET …/{id},POST …/{id}/acknowledge(note; a closed request is409 pact-republish-request-closed). States:requested→acknowledged→republished(the consumer published again; also closed at once by the publish),cleared(verified meanwhile) orexpired(escalated). One open request per pair; not reopened for the same pact version until it is verified again. - Sweep (
app.pact_remediation_sweep, everyAPIOME_PACT_REMEDIATION_INTERVALs, default 300; kill switchAPIOME_PACT_REMEDIATION_ENABLED;APIOME_PACT_REMEDIATION_MAX_PROVIDERS): records each pair's stale state, opens / closes / escalates requests, notifies the owners of what the consumer pacticipant is linked to (consumer-registry entry, else project) through owner routing asowner_verification_drift(unlinkedwhen neither), and runs due scheduled verifications with the hosted verifier (trigger: scheduled; at mostAPIOME_PACT_SCHEDULE_BATCH_SIZEper tick, default 5; each in one of the workspace's concurrency slots and under the pair's lock). A due pair with no target or no known provider version is recorded with the reason. - Webhook events.
contract_became_stale,contract_no_longer_stale,contract_republish_requested,contract_republish_request_expired, with the pair's${pactbroker.*}parameters. - Verification status.
GET …/pact-verifier/pacts/provider/{p}/verification-statusentries gainoverdue,stale_since,settings,republish_requestandscheduled;countsgainsoverdueandrepublish_requests; the status gainssettings. - Audit and RBAC. Reads need
pacts:view; writespacts:editand writepacts.verification_settings.update,pacts.verification_override.save|deleteandpacts.republish_request.acknowledge(docs/pacts-permission-matrix.json).
- Stale threshold. A pair's newest pact is overdue when it has not been verified for longer
than its stale threshold (counted from its newest result, or its publication when never
verified). The Verification console's
1.861.0 — 2026-11-26
Added
- Pact Broker RBAC, audit and tenant isolation (PFX-6.1, #6953). OpenAPI 1.685.0 (no route,
parameter or schema changes), apiome-db V447.
- Audit on every write. Every Pact write route appends a hash-chained
access_auditrow. Deletes, restores, labels and retention already wrote theirs inside the change's transaction (app.pact_cleanup_store.audit_tx); the other 36 write routes are wrapped in the newapp.pact_audit.audited_write, which appends the row once the route succeeds (best-effort, like every otherwrite_access_auditcaller; a failed insert is logged and never fails the change). Actions:pacts.pacticipant.create|update,pacts.version.record,pacts.tag.add,pacts.publication.create,pacts.verification.publish|run,pacts.environment.create|update|delete,pacts.deployment.record|update,pacts.release.record|update,pacts.webhook.create|update|delete|execute|redeliver,pacts.provider_state.create|update|delete,pacts.commit_status.retry. The MCPrecord-deploymentroute writespacts.deployment.record. The row'sdetailholds the route, its path parameters, the status of aResponseand the created id — never a request body. A refused call (raised error or a 4xx/5xxResponse) writes no row. - The
pactspermission matrix.docs/pacts-permission-matrix.jsontables every Pact write with its permission and audit action;tests/test_pacts_permission_matrix.pyfails when a mounted write route has no row, a row names no route, a row's audit is not wired, a role is answered differently from the table, or the table drifts fromapiome.seed_builtin_roles. - Tenant isolation (apiome-db V447). Three single-column references between tenant-carrying
rows become composite
(…, tenant_id)keys:push_webhook_delivery_events.pact_webhook_id,pact_triggered_webhook.delivery_event_idandpact_commit_status.repository_id(push_webhook_delivery_eventsandtenant_repositoriesgainUNIQUE (id, tenant_id)).tests/test_pact_tenant_isolation_migration.pyreplays every PFX migration and fails on any single-column reference left between tenant-carrying rows;tests/test_pact_tenant_isolation_db.pyproves the refusals on a migrated database.
- Audit on every write. Every Pact write route appends a hash-chained
Fixed
- An endpoint wrapped by
audited_writekeeps its parameters in OpenAPI and request parsing: the wrapper pins the endpoint's evaluated signature, so a body model is still read from the body.
1.860.0 — 2026-11-26
Added
- Environments, deployment history and the deploy simulator (PFX-5.7, #6951). OpenAPI 1.684.0,
apiome-db V446. Three read routes under
/v1/tenants/{tenant}/pact-environments(app.pact_deployment_routes, tagpact-broker, off the catalogued Pact Broker surface) for the console's Environments pages;{environment}is the environment's name. All needpacts:view.GET …/pact-environments— every environment with each version currently deployed to it (pacticipant, version, application instance,deployedAt) and each release it currently supports (releasedAt);truncatedwhen either list passes 2000 entries.GET …/pact-environments/{environment}/deployments— every deployment recorded to the environment, current or replaced, newest first, withcurrentlyDeployed,deployedAt,undeployedAtandrecordedBy;pacticipantnarrows (an unknown one is a 404pacticipant-not-found),cursorpages (nextCursor; one it did not hand out is a 400pact-deployment-cursor-invalid),limit≤ 50.GET …/pact-environments/{environment}/simulate?pacticipant=&version=[&applicationInstance=]— what deploying that version would do, recording nothing: the candidate's can-i-deployverdict, the version itreplacesin that instance (alreadyDeployedwhen it is the same), andimpacts— for each version of a pacticipant it has a pact with that is running in the environment or pending (deployed or released elsewhere, not here), the verdictbeforeandafterand theeffect(breaks,fixes,clears,blocks,changes,unchanged), plus asummaryof the effects. At most 20 versions are checked; the rest are innotCheckedwith the reason (pact-simulation-over-limit). Both verdicts come from the one verdict functioncan-i-deployuses (query_matrixgains anenvironment_overridefor the what-if). An unknown environment, pacticipant or version is a 404; a malformedapplicationInstancea 400pact-simulation-invalid.
- apiome-db V446:
idx_deployed_version_environment_history (environment_id, tenant_id, seq DESC)replacesidx_deployed_version_environment.
1.859.0 — 2026-11-26
Added
- Webhook delivery log and redelivery (PFX-5.6, #6950). OpenAPI 1.683.0, apiome-db V445. Four
routes under
/v1/tenants/{tenant}/pact-webhook-deliveries(app.pact_webhook_delivery_routes, tagpact-broker, off the catalogued Pact Broker surface) for the console's Webhooks page:GET …/pact-webhook-deliveries— the firings of the workspace's contract webhooks, newest first, with status (success,failure,retrying,not_run), attempts, event, pact and trigger;webhooknarrows to one webhook (a webhook of another workspace is a 404),statusto one status,cursorpages (nextCursor; a cursor it did not hand out is a 400pact-webhook-delivery-cursor-invalid),limit≤ 50.pacts:view.GET …/pact-webhook-deliveries/latest— the newest firing of each webhook.pacts:view.GET …/pact-webhook-deliveries/{id}— one firing and the log of each attempt, secrets removed.pacts:view.POST …/pact-webhook-deliveries/{id}/redeliver— queue a finished firing again as a new firing (triggerTypeuser, same event and template parameters), retried as any other; the original is kept.202. A firing still queued or retrying is a 409pact-webhook-delivery-in-progress; one whose webhook is disabled a 409pact-webhook-disabled.pacts:edit.
- apiome-db V445:
idx_pact_triggered_webhook_history (webhook_id, tenant_id, created_at DESC, id DESC)replacesidx_pact_triggered_webhook_webhook;idx_pact_triggered_webhook_recent (tenant_id, created_at DESC, id DESC)serves the workspace's log.
1.858.0 — 2026-11-26
Added
- Verification results and operations (PFX-5.5, #6949). OpenAPI 1.682.0, apiome-db V444. Five
routes under
/v1/tenants/{tenant}/pact-verifier/pacts/provider/{provider}(app.pact_verification_ops_routes, tagpact-broker, off the catalogued Pact Broker surface) for the console's Verification page:GET …/verification-status— each consumer's newest pact, the newest result of its pact version, andstale(the pact version has no result);countsfor the KPI strip; at most 500 consumers (truncated).pacts:view.GET …/results— every result of the provider, newest first, with provider version and branch, build URL, verifier,trigger,duration_ms,evidence_run_idand interaction counts;consumernarrows,cursorpages (next_cursor; a cursor it did not hand out is a 400pact-history-cursor-invalid),limit1–50.pacts:view.GET …/results/{result_id}— one result with its storedtest_results(mismatches withexpected/actual), a bi-directionalcomparison, and its evidence run (ECA-1.3) when the caller also holdsverification_evidence:view;evidence_statusisattached,not-recorded,not-found(pruned) orforbidden.pacts:view.POST …/consumer/{consumer}/pact-version/{sha}/reverify— run one pact version again on a verification target with the hosted verifier; withoutprovider_versionit verifies as the provider version and branch of the pact version's newest result (none: 422pact-verify-provider-version-required).trigger: manual.POST …/verify-stale— verify every stale pact asprovider_version(required);trigger: stale-recheck. At most 25 per run: the rest, and pairs already running, are listed inskipped(pact-verify-over-limit,pact-verify-in-progress) with a reason.- Both runs need
pacts:createandverification_evidence:create(API-key scopepact:verify) and hold a per-pair session advisory lock: a re-run of a pair whose console run is still running is a 409pact-verify-in-progress.
verification_resultgainstrigger(published,hosted,manual,stale-recheck,bidirectional; null before V444),duration_msandevidence_run_id, and the indexidx_verification_result_provider_history. Pact verifiers' results recordpublished, the hosted verifier'shostedwith the run's duration and evidence run, bi-directional comparisonsbidirectional. The Pact Broker result document is unchanged.
Changed
app.pact_verifier_service: the target, credentials and provider-state handler of a run are resolved byopen_verification_session(VerificationSession), shared by the hosted verifier and the console runs. No change to…/verify.
1.857.0 — 2026-11-26
Added
- Postman collection export of a pact (PFX-4.7, #6944). OpenAPI 1.681.0.
POST /v1/tenants/{tenant}/pact-postman-collections(app.pact_postman_routes, tagpact-broker,pacts:view, stateless) writes a Postman Collection v2.1 from a pact (app.pact_postman):- The pact is a stored one —
provider+consumerand at most one ofconsumerVersion,tag,branch,pactVersionSha(none: the latest), read in the caller's tenant — or an inlinepactdocument (shape andpact_max_byteschecked; the names default to the document's own). - One request per HTTP interaction, in document order, against a
{{baseUrl}}collection variable (baseUrl, an http(s) URL, or empty to fill in): method, path, query, headers and the example body as recorded (a Pact 4contentTypebecomes aContent-Typeheader when the request has none). Provider states go into the request description. A saved example carries the expected status, headers and body. tests(defaulttrue): a test script per request checks the status, each expected header (aContent-Typeby media type) and the body by Pact's default rules (extra object keys allowed, arrays of the same length, other values equal).notices(code,outcomeleft-out|not-asserted|not-applied|info,pointer,message,description,paths): message pacts (v3messages, v4Asynchronous/MessagesandSynchronous/Messages), plugin gRPC calls, interactions without a method and non-text request bodies are left out; values governed by response matching rules and non-text response bodies are not asserted; request generators are not applied; the provider states to set up are listed once.- Refusals:
422 pact-postman-export-invalid(no pact named, two selections, an inline pact with a selection, a badbaseUrl),422 pact-invalid,413 pact-too-large,404 pact-not-found/pacticipant-not-found, and422 pact-postman-no-http-interactions(withnotices) when nothing can be exported. Unknown body fields are422. - The schema side is unchanged: the
postmanexport target already writes a collection from a version's specification.
- The pact is a stored one —
1.856.0 — 2026-11-26
Added
- MCP tools for pacts (PFX-4.5, #6942). OpenAPI 1.680.0. Four internal routes back the new
apiome-mcptoolspact.list,pact.matrix,pact.can_i_deployandpact.record_deployment(app.mcp_pact_routes, taginternal-mcp-pacts, fail-closed behindX-Internal-Service-Token):POST /v1/internal/mcp/pacts/list— the latest pact of every consumer → provider integration of the tenant (newest consumer version per pair) with its latest verification result (success,verifiedAt,providerVersion,kind); optionalprovider/consumerfilters; keyset pages by provider then consumer handle (limit≤ 100, opaquenextCursor). No pact content.POST /v1/internal/mcp/pacts/matrix— the broker matrix query from structuredselectors,latestby, a destination (toEnvironment,toTag,latest,mainBranch) andignore. The request is turned into theq[][…]query string and read byparse_matrix_query, so validation and semantics are the broker route's.POST /v1/internal/mcp/pacts/can-i-deploy—pacticipant+versiontotoEnvironmentortoTag.POST /v1/internal/mcp/pacts/record-deployment— by environment name (404pact-environment-not-foundfor an unknown one), optionalapplicationInstance;created: falsewhen the version already was the current deployment there.- Bounded answers: the verdict reads every row; at most
maxRowscompact rows (default 50, ≤ 100) and 50 notices are returned, withrowsTotal,rowsTruncatedandnoticesTruncated;retryAfterSecondswhile the verdict is unknown. - RBAC as the key's owner: the MCP key is re-read (same tenant, not revoked, not expired) and acts as
mcp_api_keys.created_by;pacts:viewfor the reads andpacts:createto record a deployment are enforced throughenforce_permission. A key without an owner is refused403 mcp-pact-key-has-no-owner; an unknown one403 mcp-pact-key-unknown. Unknown body fields are422. app.mcp_tool_registry: newpacttoolset with the four tools (no capability preset includes it).
1.855.0 — 2026-11-25
Added
- Pact commit statuses and PR checks (PFX-4.4, #6941). OpenAPI 1.679.0. Migration V443 adds
pact_commit_status: one row per pacticipant version and context (apiome-pact/<consumer>/<provider>) with the verdict (pending/pass/fail), where it was sent and the outcome (queued,dispatched,suppressed,failed) with a stablereason_code. After a pact publish commits (POST …/contracts/publish,PUTa pact, the consumer-contract export publish) the consumer's commit getspending, or the provider main branch's verdict for that exact content; after a verification result commits (brokerPOST …/verification-results, hosted…/verify) the provider's and the consumer's commits getpass/fail(app.pact_commit_status_store). The target is the livetenant_repositoriesrow whoseclone_url_normalizedmatches the pacticipant'srepository_url, ongithub.comorgitlab.com; the version number must be a 7–64 hex commit SHA. Sent throughapp.provider_status_adapterwith the registration's stored linked-account token (provider_check_store._repository_token, never stored or returned): newGitHubCommitStatusAdapter(POST /repos/{o}/{r}/statuses/{sha}, works with OAuth tokens, 140-char description) andGitLabCommitStatusAdapter(GitLab statuses,pendingkept aspending). Every verdict that cannot go is recordedsuppressed(pact-status-no-repository,pact-status-version-not-a-commit,pact-status-repository-not-registered,pact-status-provider-unsupported,check-provider-forbidden,check-publishing-disabledunderAPIOME_PROVIDER_CHECKS_ENABLED=false); a provider refusal isfailedwith its code and redacted message. A status problem never fails the publish or the verification. New endpoints (tagpacticipants, tenant from the credential):GET /v1/tenants/{tenant_slug}/pact-commit-statuses(pacts:view;pacticipant,version,outcomefilters; keysetlimit≤ 200 /cursor,X-Next-Cursor) andPOST …/pact-commit-statuses/{status_id}/retry(pacts:edit; re-resolves the target;404 pact-status-not-found,409 pact-status-not-retryablefor a dispatched or queued status). Bi-directional verdicts (PFX-2.3) do not post statuses yet.
1.854.0 — 2026-11-25
Added
- Broker-compatible auth and Pact API key scopes (PFX-4.2, #6939). OpenAPI 1.678.0 (the Pact
Broker index description). Migration V442 widens
api_keys_scopes_vocab_ckbypact:read,pact:publishandpact:verify(agent keys stay pinned toagent:invoke). Every route under/v1/tenants/{tenant}/pact-brokerand/pact-verifier(app.pact_broker_auth) now also takes the workspace API key as the password of HTTP basic auth (username ignored), as thepact-brokerCLI's--broker-username/--broker-passwordand the Pact libraries send it; basic auth with no password, a bareAuthorizationvalue and any other scheme are refused401with where the key goes (never echoing the value), withWWW-Authenticate: Bearer, Basic realm="apiome-pact-broker". Theapp.authallowlist admits:pact:read— every GET of both mounts, the read-only POSTs (…/for-verification,…/provider-states/check) and GETs of/pacticipantsand/pacticipant-labels;pact:publish—POST …/contracts/publish,PUTa pact or a provider contract,PUTa version's tag or branch, recording a deployment / release (POST …/deployed-versions/…/released-versions,PATCHeither);pact:verify—POSTverification results (with or without metadata) and external verification results,PUTa tag or branch, hosted…/verify,POST/PUTprovider states. Deletes, webhooks, environments, labels and cleanup stay full-access only. The route'spactsRBAC check still applies to the key's user. A test guard fails when a new broker / verifier route is not classified.api_key_from_basicmoved fromapp.schema_registry_confluent_routestoapp.auth(shared, re-imported there).
1.853.0 — 2026-11-25
Added
- Plugin pacts: gRPC and GraphQL (PFX-3.7, #6937). OpenAPI 1.677.0 (
VerifiedTarget.protocol, thePactVerifyRequest.target_refdescription, and theContractCase/ContractPactInteractiondescriptions). No migration. The pact compiler (app.contract_suite_pact) now compiles a gRPC call recorded by the Pact protobuf plugin (Pact 4Synchronous/Messages,transport: grpc) into agrpc-protocol case on the XPC-3.2 RPC model, read through theFileDescriptorSetthe pact files undermetadata.plugins[protobuf].configuration[descriptorKey](new pure moduleapp.pact_plugin_grpc): procedure/{package.Service}/{Method}, protobuf-JSON request and expected reply,expect_codefrom the recordedgrpc-status,idempotency_levelfrom the method options, response rule paths renamed to protobuf-JSON names, andinteger/numberrules on 64-bit integer fields applied as a digits regex. A suite of gRPC calls only is stampedprotocol: grpc. A GraphQL-over-HTTP interaction (JSONPOST,GET,application/graphql) keeps its HTTP request and carries the XPC-1.2graphqlblock (new pure moduleapp.pact_graphql), sois_mutating_casereads its operation type and the runner fails a reply with unrecordederrors(graphql-errors-present). The RPC runner judges a pact case against the recorded status and message with the verifier's matching engine (contract_runner.pact_mismatch_assertions, shared with HTTP). Hosted verification (POST …/pact-verifier/pacts/provider/{p}/verify) resolveshttp,grpcorconnecttargets (contract_protocols.PACT_VERIFICATION);plan_pact_run(target_protocol=…)holds back what the target cannot speak withpact-interaction-protocol-mismatch, so a mixed pact isincompleteon one target. New suite codesPACT_PLUGIN_PARTIAL,PACT_GRAPHQL_UNREADABLEandPACT_GRAPHQL_SELECTIONS_NOT_MAPPED(mapping GraphQL selections onto consumer contracts awaits XPC-1.6, #5733); other plugins, streaming methods (UNSUPPORTED_STREAMING), unreadable descriptors / methods / content and GraphQL subscriptions are listed underunsupported.
1.852.0 — 2026-11-25
Added
- Message (async) pacts (PFX-3.6, #6936). OpenAPI 1.676.0 (the provider-contract
PUT/GETdescriptions and request body). No migration. A provider contract may now be an AsyncAPI 2.x or 3.x document:PUT …/pact-broker/contracts/provider/{p}/version/{v}takescontractType: asyncapi(also read from the document whencontractTypeis omitted; inline only —asyncapiwithapiomeVersionis422 provider-contract-unsupported). It is checked structurally (app.provider_contract.validate_asyncapi_contract: version,info, channels, operations and every local$ref, each refusal located) and stored in the existing columns (oas_versionholds the AsyncAPI version,operation_countthe message count); the contract document readscontractType,asyncapiVersionandmessageCount. The bi-directional store compares such a contract with the pact's messages through the new pure engineapp.pact_asyncapi_compare.compare_pact_to_asyncapi: each Pact 3messagesentry and Pact 4Asynchronous/Messagesinteraction is resolved onto a channel/message (app.pact_asyncapi_index: metadatachannel/topic/destination/queue…, address templates, the description against key /name/messageId/title, only messages the provider sends — AsyncAPI 3send, AsyncAPI 2subscribe— and, when several remain, the first whose payload accepts the contents), then its content type, metadata againstheaders, contents against a JSON Schemapayload(response view ofapp.pact_oas_schema, which now reads AsyncAPI documents) and its matching rules (Pact 4content/metadata) are checked as PFX-2.2 does. New codes (MESSAGE_FAILURE_CLASSES,MESSAGE_WARNING_CLASSES,MESSAGE_FIDELITY_CLASSES) are published on the comparison-rules page; HTTP interactions (interaction-not-message) and Pact 4Synchronous/Messages(synchronous-message-not-compared, deferred) are reported, never dropped. The stored comparison readscontractType: asyncapi/asyncapiVersionand each interaction amessageobject; an OpenAPI comparison serializes exactly as before. The PFX-2.5 fidelity report lists the five message checks for such a comparison. Golden corpus:tests/golden/pact_asyncapi_compare(28 cases, AsyncAPI 3.0 and 2.6).
1.851.0 — 2026-11-25
Added
- External-verifier result ingestion (PFX-3.5, #6935). OpenAPI 1.675.0.
POST /v1/tenants/{t}/pact-broker/pacts/provider/{p}/consumer/{c}/pact-version/{sha}/external-verification-resultstakes a report produced elsewhere —pact_verifier_cli --jsonoutput or JUnit XML — and stores it as an ordinary verification result (the matrix, can-i-deploy, pending pacts and webhooks see it).providerApplicationVersionis a query parameter, withbuildUrl,branch,tag,format,verifier,verifierVersionandproviderVerificationReportId. The response is the stored result plus aningestionobject (format,interactions,success,notices): every field the reader could not use and every judgement it made is a notice with a JSON Pointer or//testcase[n]location, never dropped. A skipped JUnit case is not verified and fails the result; a report with no interactions, an empty body, a DTD or an unknown format is refused with422 pact-verification-invalid. Requirespacts:create, tenant-scoped like every broker route.apiome pact publish-verification-resultsis the CLI (apiome-cli 0.160.0).
1.850.0 — 2026-11-25
Changed
- Matching-rules engine (PFX-3.4, #6934). OpenAPI 1.674.0 (descriptions of
PactResponseExpectation.has_body/bodyonly). No migration, no new path. The hosted verifier's engine (app.pact_value_match) now applies every matcher of Pact specifications 2–4, published asVERIFIER_MATCHERS(the supported-rules table on the hosted-verification docs page), and is run against every response case of the Pact specification test suite, v1–v4 (357 vectors vendored intests/fixtures/pact_spec_vectors, MIT), plus supplementary vectors for the v3/v4 matchers and generators (tests/test_pact_spec_vectors.py).contentTypeis applied instead of failing as "cannot be applied": the type is detected from the bytes (newapp.pact_content_type: magic numbers for common image, document, archive, font, audio and video formats, then JSON / XML / text), never from the response'sContent-Type. On$of a non-JSON body it judges the whole body (the recorded binary example is not compared); on$of a JSON body it checks the bytes and the fields are still compared; on a JSON string it inspects the string.regexis a full match, as the reference implementations apply it (spec vector "plain text regex matching that does not match"). A pact expression that relied on matching a prefix now fails with theregexrule named.Acceptis compared as a list of media types likeContent-Type(parameter values ignore case; the media type keeps it).- Explicitly empty response body. A pact recording
"body": null,""or a Pact 4 body with emptycontentnow compiles tohas_body: true, body: ""and accepts only an empty response body (previously any body). A pact with nobodykey still accepts any body.CONTRACT_SUITE_COMPILER_VERSION4 → 5, so pact-suite digests change once. PACT_BODY_UNREADABLEon an undecodable response body under acontentTyperule on$isinfo(the verifier judges it by its bytes) instead ofdegraded.- XML bodies are still compared as text, and rules on XML elements still fail as "not JSON": stricter than the suite's XML match cases, never looser.
1.849.0 — 2026-11-25
Added
- Provider-state registry (PFX-3.3, #6933). OpenAPI 1.673.0 (three new paths, twelve new
schemas). Migration apiome-db V441 (
pact_provider_state,pact_provider_state_override).GET|POST /v1/tenants/{tenant}/pact-verifier/providers/{provider}/provider-statesandGET|PUT|DELETE …/provider-states/{stateId}register the states a provider's pacts name: the name (as consumers write it, unique per provider), declared parameters (required,default), and the setup —state_change(POST the Pact state-change body{state, params, action}to a path on the verification target, with the target's credential, or to an absolute http(s) URL through the SSRF guard with none; teardown optional) orfixture(recordedrequests/teardown_requestssent to the target with${param}substituted; emptyrequestsmeans the target already holds the data). Per-targetoverridesreplace the default on one verification target, resolved in the caller's tenant. Refusals carry a JSON Pointer (provider-state-invalid422: a fixture path off the target, a placeholder naming no parameter, a credential header, two overrides of one target;provider-state-name-taken409;provider-state-not-found404).pacts:view/create/edit/deleteon the provider.POST …/provider-states/checkselects the pacts a run would (selection, as on…/verify) and reports every provider state their interactions name, before anything is sent: registered or not, the setup used ontarget_ref, and each problem —provider-state-not-registered,provider-state-param-missing,provider-state-setup-blocked(blocking) andprovider-state-param-undeclared(warning);readywhen nothing blocks;unusedlists registered states no pact names.pacts:view.
Changed
- Hosted verifier sets provider states up (PFX-3.2 → 3.3). When the provider has registered
states,
POST …/pact-verifier/pacts/provider/{provider}/verifyholds back, before anything is sent, every interaction whose states the registry cannot set up (the codes above), unlessverification.replay_without_state_setupis set; it then sets each state up before its interaction and tears it down after, in reverse. A failed setup skips the interaction withprovider-state-setup-failednaming the state and the call; a failed teardown is listed in the pact's newstate_teardown_failuresand the result stands. Setup requests to the target honour its policy (no mutating request whenallow_mutating_methodsis false). A provider with no registered state behaves as before (provider-state-not-set-up).
1.848.0 — 2026-11-25
Added
- Hosted provider verifier (PFX-3.2, #6932). OpenAPI 1.672.0 (one new path, nine new schemas).
No migration.
POST /v1/tenants/{tenant}/pact-verifier/pacts/provider/{provider}/verifyverifies a provider against its pacts from Apiome: it selects the pacts with thefor-verificationselectors (PFX-1.3;selectionis that body unchanged, pending and WIP pacts included), resolves a registered verification target (ECA-1.2), compiles each pact into its contract suite (PFX-3.1, same digest), replays it on the ECA-2.1 runner, records the run as ECA-1.3 evidence, and publishes a verification result (PFX-1.4) per pact againstprovider_version/provider_branch, queuing the contract webhooks. At most 25 pacts per run (pact-verify-too-many-pacts). Requirespacts:createandverification_evidence:create. It sits beside the Pact Broker surface (no Pact Broker client knows it), so the compatibility catalog is unchanged.- Matching engine (
app.pact_value_match, pure): headers and bodies are compared under the pact's matching rules with Pact's path-weight resolution and cascading type matchers —equality,type(min/max),regex,include,integer,decimal,number,boolean,null,notEmpty,semver,date/time/timestamp/datetime(shape of the format),values,eachKey,eachValue,arrayContains,AND/OR. A rule that cannot be applied (contentType, an unknown matcher, an unreadable date format, a regex that does not compile or exceeds 1 s, a field rule on a non-JSON body) is a mismatch naming the rule. The Pact specification test-suite vectors and the supported-rules table are PFX-3.4 (#6934). - Runner (
app.contract_runner): a case with apactblock is judged by the pact after its status matches — one failed assertion per mismatch (pact-header-mismatch,pact-body-mismatch) whose subject is the header or the JSON Pointer into the body and whose message names the rule.run_suite(..., hooks=CaseHooks(before, after))surrounds each case that is sent; a run with hooks sends one case at a time, and a hook cannot lift the target policy's mutating-method gate. - A run cannot widen the target policy. A mutating interaction is sent only when the target
allows mutating methods and
verification.allow_mutatingis true; otherwise it is skipped withmutating-method-blocked. No fixture is required (the consumer recorded the request); a CTG-4.3MutatingFixturenaming the operation is applied when given. - Provider states are a seam.
app.pact_verifier.ProviderStateHandleris what the provider-state registry (PFX-3.3, #6933) will implement. Until then an interaction that names a state is skipped withprovider-state-not-set-up, unlessverification.replay_without_state_setupis true; replayed interactions are markedstates_set_up: false. - Only conclusive runs are published. A pact is
passed(everything replayed and matched),failed(a replayed interaction did not match) orincomplete(nothing failed, but something was skipped, unreachable or uncompilable).incompletepublishes nothing (not_published_reason: run-incomplete);publish: falseis a dry run. A pending or WIP pact that fails is published as failed but does not fail the run, and is treated as pending only whenselection.includePendingStatusis set. A Pact 4pendinginteraction never decides. - Published
testResultskeep the Pact shape (interactionDescription,interactionId,success,mismatches[].attribute / identifier / description) withoutcome,code,rule,expectedandactualbeside it;verifiedBy.implementationisapiome-pact-verifier.
1.847.1 — 2026-11-24
Fixed
- The scoped Pact Broker webhook routes (
…/webhooks/provider/{provider}[/consumer/{consumer}],…/webhooks/consumer/{consumer},…/pacts/provider/{p}/consumer/{c}/webhooks) now declare their path parameters in the OpenAPI document, so the catalog import no longer fails with "Path parameter 'consumer' … was not resolved". OpenAPI 1.671.0 → 1.671.1.
1.847.0 — 2026-11-24
Added
- Pact → contract-suite compiler (PFX-3.1, #6931). OpenAPI 1.671.0 (one new path). No
migration.
app.contract_suite_pact(pure) compiles a pact version into the ECA-1.1 contract-suite manifest: onepact_interactioncase per HTTP interaction (synthetic: false) carrying the request exactly as recorded (Pact 2 query strings and Pact 3/4 query objects alike, Pact 4 body objects unwrapped, header value lists joined) and a newpactblock: interaction index,key, pointer,pending, provider states with params (providerStates,providerState,provider_state), the expected response (status, headers, body, media type) and every matching rule and generator of both sides in one shape. A Pact 4statusCoderule widensexpect.status_codesto status classes (success→2XX,error→4XX,5XX).- Byte-identical per (pact version, options): only what
pact_content_shacovers, the pacticipant pair and the options are read — nevermetadataor the publishing consumer version — and the manifest carries asha256:digest. Newmanifest.pactblock (consumer,provider,pact_version_sha,specification_version,interaction_count,options); optionsinteractions(description or Pact 4 key, normalized to a sorted set) andmax_interactions(default 500, ceiling 2000). - Nothing skipped silently: message and plugin interactions, malformed interactions and
undecodable request bodies are listed under
unsupportedand reported (UNSUPPORTED_OPERATION_KIND,PACT_PLUGIN_INTERACTION,PACT_INTERACTION_MALFORMED,PACT_BODY_UNREADABLE); embedded Pact 1 matchers, unknown matchers / paths / locations, request generators, unreadable response bodies and nameless provider states aredegradedfindings; each provider state, response generator and an undeclared specification version is aninfofinding. POST /v1/tenants/{tenant}/pact-suites/provider/{provider}/consumer/{consumer}/pact-version/{sha}— compile one pact version of the caller's workspace (pacts:view; 404 for an unknown or foreign pacticipant or pact version, 422 for a malformed SHA or option). Pure read.- Contract-suite manifest
schema_versionandcompiler_versionare now 4: every case gainedpact, the manifest gainedpact,manifest.optionsisnullfor a pact suite, andcountsgainedpact_interaction— so existing version suites get a new digest. - The Pact request/response readers shared by the bi-directional comparison moved to
app.pact_interaction_reader.
1.846.0 — 2026-11-24
Added
- Pact export from a declared consumer surface (PFX-2.6, #6930). OpenAPI 1.670.0 (two new
paths). No migration.
app.consumer_pact_export(pure) turns a picker-declared (manual) consumer contract revision into a Pact v4 document: oneSynchronous/HTTPinteraction per declared operation and response status, only the declared fields, sample values from the specification's examples (media-typeexample/examples, then the schema'sexample,examples,default,const, firstenum, then an enclosing object's; parameters read their own first), the first server URL's base path, and a cascadingtypematcher at$on every response body. Deterministic: the same revision gives the same pact (onepact_versionhowever often it is published).- Nothing dropped:
findingslists everyplaceholder(no-example,status-range,complex-parameter-value) and everyomitteditem (contract-unresolved,operation-not-found,field-not-found,parameter-not-declared,status-default,status-not-numeric,no-response-declared,media-type-not-json,media-type-conflict). GET /v1/tenants/{tenant}/projects/{project}/consumers/{consumer}/pact?revision=&provider=— the pact with its findings (consumer_contracts:view+pacts:view).POST …/consumers/{consumer}/pact/publish— generate and publish forconsumer_versionwithbranch,tags,build_url, exactly ascontracts/publishdoes (webhooks, bi-directional comparisons, publish rate limit); the broker's publish result is returned inpublish(consumer_contracts:view+pacts:create).- The pact names the pacticipant bound to the consumer (else the consumer's handle) and the one
bound to the project (else the project's handle, or
provider); several bound providers is409 consumer-pact-export-provider-ambiguous. Apactoragentrevision is422 consumer-pact-export-unsupported-source, one without a specification version422 consumer-pact-export-no-version, one that yields no interaction422 consumer-pact-export-emptywith its findings. Every read is tenant-scoped.
Fixed
- Pact v4 bodies on consumer-contract import (CTG-4.1).
POST …/consumer-pact-importsread a v4 body object ({"contentType", "encoded", "content"}) as the body, so its fields came back as unresolvedcontent/contentType. The body is now read out of the wrapper (JSON text and base64 content are decoded); v1–v3 bodies are read as before.
1.845.0 — 2026-11-24
Added
- Comparison fidelity report for bi-directional results (PFX-2.5, #6929). OpenAPI 1.669.0
(two new paths). Migration apiome-db V440 (one partial index).
app.pact_comparison_fidelity(pure) reads a stored bi-directional comparison payload and reports, per interaction, every check the engine knows with its status —compared,partial(fidelity notes say part of it was not compared in full),failed, ornot-runwith the reason (an earlier check failed, or the interaction has no HTTP exchange) — the matching rules, embedded matchers and generators it could not prove (unsupportedMatchingRules), and everything else it could not compare (couldNotCompare: bodies, parameters, unusable schemas, relaxedoneOf, message interactions, truncated findings). Every note carries the check it belongs to. The report'sstrength(full,partial,failed,none) andstatementsay how much the verdict is worth:fullonly when every core check ran with nothing to report. Every fidelity code is in exactly one group and every failure/warning code belongs to one check (tests hold the tables together); an unknown code is still listed undercouldNotCompare, never dropped.GET /v1/tenants/{tenant}/pact-comparisons?limit=— the workspace's most recent bi-directional results (1 … 100, default 50), each with verdict, strength, statement, counts andfidelityPath. Read through the newidx_verification_result_tenant_bidirectional.GET /v1/tenants/{tenant}/pact-comparisons/{resultId}/fidelity— one result's report.404 pact-verification-not-foundfor an unknown or foreign id, and for a native result (it was published by a Pact verifier and has no comparison), with the reason.- Both require
pacts:viewand read only the caller's tenant. A bi-directional result document on the Pact Broker surface now links its report asapiome:comparison-fidelity.
1.844.0 — 2026-11-24
Added
- Self-verification evidence for provider contracts (PFX-2.4, #6928). OpenAPI 1.668.0 (the
provider-contract route's request body, responses and description). No migration: the evidence
is stored in
provider_contract_publication.verification_results(V438).app.provider_contract_evidence(pure) readsverificationResults: JUnit XML (Schemathesis--report junit, Dredd--reporter xunit, Newman-r junit, any JUnit writer; counted from<testcase>elements, DTDs refused via defusedxml), Newman JSON (run.stats), Schemathesis NDJSON (ScenarioFinished/EngineFinishedevents), or an Apiome provider-verification report (CTG-4.3) named by the newverificationResults.providerVerificationReportIdand read in the caller's tenant (needsverification_evidence:view). The result —status(verified|failed|inconclusive|missing),kind,tool,toolVersion,digest(sha256:of the report as sent),summarycounts,reasons,notes, and for an Apiome reportreportId,targetandcoverage— is stored asverificationResults.evidenceand returned asselfVerification(withproviderContractVerifiedandunverifiedPolicy) byPUTandGET …/contracts/provider/{p}/version/{v}. A failure in the report wins oversuccess: true;text/plain, unknown JSON, a run with nothing executed, a flag without a report, and an Apiome report of another version than the contract areinconclusive.verificationResults.successis now optional withproviderVerificationReportId. New refusals:422 provider-contract-evidence-unsupported(media type),422 provider-contract-evidence-invalid(content not what its type says),422 provider-contract-evidence-report-not-found,413 provider-contract-evidence-too-large(APIOME_PACT_EVIDENCE_MAX_BYTES, default 5 MiB). Nothing is stored on a refusal.- Republishing compares only what was sent, so a PFX-2.1 publication (without
evidence) still answers200to the same results. - Bi-directional comparisons weigh the contract's evidence
(
app.bidirectional_verification.apply_evidence_policy): withoutverifiedevidence the stored verdict isunverified(afailstaysfail),comparisonaddsproviderContractEvidence,comparisonVerdictandunverifiedPolicy, andtestResultsgains aprovider-contract-unverifiedentry.APIOME_PACT_UNVERIFIED_PROVIDER_CONTRACT=warn(default;successkept) orfail(success: false). Publications from before PFX-2.4 have their report read when compared. Run entries carrysuccess; an unverified comparison's notice is awarningor anerror. - The matrix reads
comparison->>'verdict': a bi-directional row'sverificationResultcarriesproviderContractVerified, its reason text adds "provider contract unverified", and a deployable verdict leaning on one adds aprovider-contract-unverifiedwarning.
1.843.0 — 2026-11-24
Added
- Bi-directional verdicts in the matrix (PFX-2.3, #6927). OpenAPI 1.667.0 (descriptions and
the matrix example only; no new route). Migration
V439.verification_resultgainskind(native|bidirectional, every existing rownative),provider_contract_id(referenced by(id, provider_id), cascading) andcomparison(JSONB). A CHECK keeps a kind's columns together; a partial unique index compares each pact version with each provider version once.- The PFX-2.2 engine now runs when either side publishes (
app.bidirectional_store). A pact (POST …/contracts/publish,PUT …/pacts/provider/{p}/consumer/{c}/version/{v}) is compared with the contracts of the provider's latest version, each branch head and every version deployed or released. A provider contract (PUT …/contracts/provider/{p}/version/{v}) is compared with the broker's default selectors' pacts, the latest pact of each consumer on the provider version's branch, and every pact compared before with a contract of that branch (the re-run when a new contract arrives for the branch). Limits: 20 provider versions per pact, 50 pacts per contract; what is left out is reported asskipped. - Each comparison is stored as a verification result numbered with the native ones:
successisfalseonly for afailverdict,testResultsholds one Pact-shaped entry per interaction (failures asmismatches),verifiedBy.implementationisApiome bi-directional comparison, andcomparisonholds the full payload withproviderContractSha. Inputs the engine refuses are stored as a failure withcomparison.error(comparison-not-possible); a pair that cannot be written is logged and reported with statuserror. A comparison never fails the publish. - The provider-contract publish answer and the bulk pact publish answer carry
comparisons(compared,alreadyCompared,errors,skipped, and one entry per pair withstatus,verdictandverificationNumber); the bulk publish adds one notice per comparison (errornotices map toerrorlogs). - The matrix and can-i-deploy read bi-directional results exactly as native ones and mark each
row's
verificationResult.kind. Codes are unchanged; the row reason readsverified by bi-directional comparison/bi-directional comparison failed, and a failed comparison's notice reads "The bi-directional comparison of the pact between … with its provider contract failed". A verification result read back carrieskind, and for a bi-directional onecomparisonand apb:provider-contractlink. - Only native successes take a pact out of pending (
pact_pending_store).
1.842.0 — 2026-11-24
Added
- Cross-contract comparison engine (PFX-2.2, #6926). OpenAPI 1.666.0 (version only; no route
changes). No migration.
app.pact_oas_compare.compare_pact_to_oas(pact, oas)decides whether a provider's OpenAPI 3.0, 3.1 or 3.2 document satisfies every interaction of a Pact 1 to 4 pact, without running the provider. Pure: two parsed documents in, oneComparisonResultout; equal inputs serialize to equal JSON. Nothing calls it yet: PFX-2.3 stores its result as a verification result and PFX-2.5 surfaces the fidelity list.- Per interaction: the operation is resolved with
SpecIndex.match_operation(the CTG-4.1 path templating); path, query and header parameters and the request body are validated against the schemas as written; the status must be declared (exact,2XXordefault); response headers and body are validated withrequiredlifted and undeclared properties refused (unevaluatedProperties: false),oneOfread asanyOf. Validation goes through the IXH-5.1 validator under JSON Schema 2020-12; an OpenAPI 3.0 document hasnullableand the booleanexclusiveMinimum/exclusiveMaximumread into it first (app.pact_oas_schema). - 24 named failure classes (
request.operation.unknown,response.status.undeclared,request.body.required-mismatch,response.body.nullable-mismatch,response.body.unknown-property…), each withpactPointer, an operation-anchoredoasPointerin the CTG-1.1 vocabulary and theresolvedPointerbehind any$ref. Three warning classes never change the verdict. - Matching rules of Pact 2, 3 and 4 are mapped to JSON Schema constraints where that is lossless
(
type,equality,regex,include,integer,number,boolean,null,notEmpty) and checked against the provider's schema at the rule's path: not narrower than the rule in a request, not broader in a response (app.pact_matching_rules). Rules that do not map (decimal,date,time,timestamp,datetime,semver,values,eachKey,eachValue,arrayContains,contentType,statusCode,ORcombinations) and mapped rules the schema does not prove are recorded in the fidelity list with a reason, never dropped. So are generators, non-JSON bodies, unparsed parameter styles, unusable schemas and message interactions. - Verdict
failon any failure,partialwhen nothing fails but the fidelity list is not empty,passotherwise. - Corpus
tests/golden/pact_oas_compare: 102 pact / OpenAPI pairs with intended verdicts (every failure, warning and fidelity class; Pact 1 to 4; OpenAPI 3.0 and 3.1) and four pacts written by pact-js 17.1.4, pact-jvm 4.6.17 and pact-go v2. A 1 MB pact compares in about 0.3 s. SpecIndexgainsmatch_path,path_parameters,resolve_referenceandnode_at;pact_contract_importexportsinteraction_is_httpandunwrap_matcher.
1.841.0 — 2026-11-24
Added
- Provider contract publication (PFX-2.1, #6925). OpenAPI 1.665.0. Migration
V438.PUT /v1/tenants/{t}/pact-broker/contracts/provider/{p}/version/{v}publishes a provider version's OpenAPI document for bi-directional contract testing: inline (content, base64 JSON or YAML, PactFlow's shape) or by reference (apiomeVersion: "<project>@<version>", rendered with theGET /v1/schemaexporter as OpenAPI 3.1). A provider bound to its project may name just the version, andlatestis the project's newest.branch,tagsandbuildUrlare recorded on the provider version;verificationResults(PFX-2.4) are stored as sent with the report's SHA-256.GETon the same URL reads it back withcontentSha,oasVersion,operationCount,sourceand the document.- Only OpenAPI 3.0, 3.1 and 3.2 that validate against their meta-schema are accepted; Swagger 2.0,
AsyncAPI and other input are
422 provider-contract-invalidwith a JSON Pointer (/swagger,/asyncapi,/openapi, or the first meta-schema error). YAML keys and dates are read as the JSON they stand for; binary and non-finite values are refused with their location. - Stored write-once with a hash: the SHA-256 of the canonical JSON dedupes across provider
versions and formats; the same contract again is
200, a different one409 provider-contract-conflict. New codesprovider-contract-request-invalid,-unsupported,-source-not-found,-too-large,-not-found. Publishing needspacts:create(andversions:viewwithapiomeVersion), readingpacts:view; shares the pact publish budget. - The Pact Broker compatibility catalog lists the route under a new Provider contracts
(PactFlow) group.
app.openapi_validator.openapi_document_errors_atlocates meta-schema errors by escaped JSON Pointer.
1.840.0 — 2026-11-24
Added
- Pacticipant labels, version delete and cleanup (PFX-1.11, #6924). OpenAPI 1.664.0. Migration
V437.- Labels:
GET /v1/tenants/{t}/pacticipant-labels,GET …/pacticipants/{p}/labels,GET|PUT|DELETE …/pacticipants/{p}/labels/{label}(PUTanswers201when new,200after), and?label=onGET …/pacticipants. The Pact Broker shape:GET …/pact-broker/labels,GET …/pact-broker/pacticipants/label/{label},GET|PUT|DELETE …/pact-broker/pacticipants/{p}/labels/{label}; a pacticipant's broker document embeds its labels and linkspb:label. Contract webhooks fill${pactbroker.consumerLabels}and${pactbroker.providerLabels}. - Soft delete with restore:
DELETE …/pacticipants/{p}/versions/{v}(and the broker'sDELETE …/pact-broker/pacticipants/{p}and…/versions/{v}) stamp the row instead of removing it; every read — pacts, verification results, the matrix, can-i-deploy, environments, webhooks, badges — ignores it at once.?reason=is stored.POST …/pacticipants/{p}/restoreandPOST …/versions/{v}/restoreundo a delete during the grace period;?state=deletedon the two lists shows what is waiting, withpurge_after. A deleted handle or version number can be used again immediately. - Deployed versions are protected: deleting a version that is currently deployed or released,
or a pacticipant with one, is
409 pacticipant-version-in-useunless?force=true. - Selector-based retention, dry run first:
POST /v1/tenants/{t}/pact-retentionkeeps each pacticipant's latest version,keep.latest_per_branch,keep.deployed_or_released(default on) andkeep.created_within_days, and deletes the rest.dry_rundefaults totrueand answers the plan with aplan_digest; applying needs that digest and is409 pact-retention-plan-changed(with the fresh plan) when anything moved in between. At most 5,000 deletions per run, oldest first;remainingcounts the rest. - Purge: rows deleted longer ago than
APIOME_PACT_DELETION_GRACE_DAYS(default 30) are removed for good on the async-job retention tick, in bounded batches. - Audit: every delete, restore, label change, applied run and purge appends an
access_auditrow (pacts.*) in the same transaction. - New refusal codes:
pacticipant-invalid-label,pacticipant-label-not-found,pacticipant-invalid-reason,pacticipant-not-deleted,pacticipant-restore-conflict,pacticipant-version-in-use,pact-retention-no-selector,pact-retention-plan-digest-required,pact-retention-plan-changed,pact-retention-too-many-pacticipants,pact-retention-too-many-versions.
- Labels:
Changed
DELETE /v1/tenants/{t}/pacticipants/{p}is now a soft delete — restorable for the grace period, refused while a version is deployed (unlessforce=true) — instead of an immediate cascade. Its status (204) is unchanged.PacticipantRecordgainslabels,deleted_at,deleted_by_label,delete_reasonandpurge_after;PacticipantVersionRecordgains the same plusdelete_cause.- The Pact Broker compatibility catalog: labels and
DELETEof a pacticipant and a version are served; the other endpoints that were "planned #6924" (pact, branch, tag, verification-result and integration deletes, pact-history delete) are not planned, and their501names the version delete or a retention run instead. No endpoint is "planned" any more.
1.839.0 — 2026-11-24
Added
- Pact badges and public status endpoints (PFX-1.10, #6923). OpenAPI 1.663.0. No migration.
- Public, anonymous routes under
/v1/browse/tenants/{t}/projects/{p}/pact-badges, served only for a project with a published public version:GET …/pact-badges(every pacticipant bound to the project, its state and badge URLs),…/pacticipants/{slug}/badge.svgand…/shields.json, and…/pacts/provider/{p}/consumer/{c}/badge.svgand…/shields.json. Answers carryCache-Control: public, max-age=300. - States: a pact is
verified,failingorunknownby its newest verification result; a pacticipant isfailingwhen any pact is,verifiedwhen it has pacts and all are verified, otherwiseunknown. The shields document follows the shields.io endpoint schema. - Nothing leaks: a private project, an unbound or unknown pacticipant and an unbound pair are
one
404.
- Public, anonymous routes under
Changed
- The Pact Broker's tag-aware badge endpoints (
…/latest/badge, can-i-deploy and can-i-merge badges) are now catalogued as not planned and their501points to the public badge routes, instead of "planned #6923".
1.838.0 — 2026-11-24
Added
- Contract webhooks (PFX-1.9, #6922). OpenAPI 1.662.0. Migration
V436.- Webhooks in the Pact Broker's shape, under
/v1/tenants/{t}/pact-broker:GET|POST …/webhooks,GET|PUT|DELETE …/webhooks/{uuid}(PUTcreates when the workspace has none with that uuid), and the scoped collections…/webhooks/provider/{p}/consumer/{c},…/webhooks/provider/{p},…/webhooks/consumer/{c}and…/pacts/provider/{p}/consumer/{c}/webhooks. The index linkspb:webhooksandpb:webhook, sopact-broker create-webhookandcreate-or-update-webhookwork unmodified. Refusals:422 pact-webhook-invalidwith a pointer,404 pact-webhook-not-found,503 pact-webhook-secrets-unavailable. - Events (
app.pact_webhook_events), queued after the write that caused them committed:contract_published;contract_content_changed(against the previous pact on the same branch or tag);contract_requiring_verification_published, once per provider version that has not verified the pact content — the main-branch head and every deployed or released version — with that version, its branch and the reason;provider_verification_published,…_succeeded,…_failed; and Apiome'sconsumer_version_branch_created. A publish that changes nothing fires nothing. Queueing never fails the publish. - Templates (
app.pact_webhook): every${pactbroker.*}parameter of the Pact Broker, in the URL's path and query (URL-encoded), headers, basic-auth credentials and body (inside JSON strings, so a value cannot break the document). A parameter may not appear in the host. - Targets: a generic
request(POST,PUT,PATCH), ortargetof typegithub_repository_dispatch(repository, token, optional event type, client payload and GitHub Enterprise API root). - Delivery reuses the push-webhook queue (
push_webhook_delivery_events, which gainspact_webhook_id): the same worker, 4 attempts (10 s, 60 s, 5 min;Retry-Afterhonoured), then dead-letter.app.pact_webhook_deliverysends the webhook's own request through the SSRF guard, without following redirects, withX-Apiome-Event,X-Apiome-Deliveryand — when the webhook has asigningSecret—X-Apiome-Signature: sha256=<hmac>. - Execution log per attempt (
push_webhook_delivery_attempts.execution_log):GET …/triggered-webhooks/{uuid}/logs(text or HAL),GET …/pacts/provider/{p}/consumer/{c}/webhooks/status,GET …/version/{v}/triggered-webhooksandGET …/pact-version/{sha}/verification-results/{n}/triggered-webhooks. A pact linkspb:pact-webhooks,pb:pact-webhooks-statusandpb:triggered-webhooks; a verification result linkspb:triggered-webhooks. - Test runs:
POST …/webhooks/{uuid}/execute(pact-broker test-webhook) andPOST …/webhooks/executefor an unsaved webhook. - Secrets (
app.pact_webhook_secrets): password, GitHub token, secret headers and signing secret are envelope-sealed with the credential vault's keys (APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS, own magicOPWH). Reads show**********/signed: true; sending**********back keeps the stored value. Secret header values are redacted in every log, and every secret value is scrubbed from the log, the error and the response preview, even when the receiver echoes it. - SSRF: the URL passes
app.ssrf_guardwhen saved (scheme, no credentials, host resolves to public addresses) and on every send. - Limits: 200 webhooks per workspace (
409 pact-webhook-limit-reached) and 30 test runs per rate-limit window (429 pact-webhook-test-rate-limited). - Recording a pacticipant version reports
branch_created. - Pact Broker compatibility: 12 webhook endpoints move from planned to supported. The conformance suite creates, updates, reads and deletes webhooks with the real CLI.
- Webhooks in the Pact Broker's shape, under
Changed
finalize_push_webhook_delivery_attempttakes an optionalexecution_log; a claimed delivery row carriespact_webhook_id.
1.837.0 — 2026-11-24
Added
- Pact Broker API conformance suite (PFX-1.8, #6921). OpenAPI 1.661.0. No migration.
- Compatibility catalog. New
app.pact_broker_compat: every endpoint of the Pact Broker 2.124.0 API (102), the methods the broker allows and the methods Apiome serves, with a status (supported, partial, planned, not planned), tracking issue, note and Apiome alternative. Tests hold it to the app's route table in both directions, so a Pact Broker route cannot ship without an entry. - Documented 501, never a silent 404. New
app.pact_broker_compat_routes. Under…/pact-broker, a method or path no real route serves answers501 Not Implementedwithdetail.code: pact-broker-not-implemented, the endpoint template, its status, the supported methods, the tracking issue, the Apiome alternative, the compatibility page and the broker version, plus aLink: <…/compatibility>; rel="help"header. Authentication is still required. Catalogued unsupported paths are claimed before the real routes, so…/latest/badgeis not read as the tagbadge. A wrong method on a served path is now501, not405. GET …/pact-broker/pacts/provider/{provider}/for-verification. The broker's deprecated query-string form (provider_version_branch,provider_version_tags[],include_pending_status,include_wip_pacts_since,consumer_version_selectors[][<field>]or[<n>][<field>]), answering as thePOSTdoes. The Rust verifier (pact-js, pact-python, pact-go) fetches it before posting its selectors, so it failed before.scripts/generate_pact_broker_compat_doc.pywrites the endpoint table onapiome-docs/docs/ship/pact-broker/compatibility.mdx;tests/test_pact_broker_compat_doc.pyfails when it drifts.- The suite itself is
scripts/pact_conformance/(thepact-brokerCLI, pact-js and pact-jvm against a fresh stack, with golden HAL transcripts) and the Pact Broker Conformance workflow.
- Compatibility catalog. New
Changed
- Main branch auto-detection. Recording a version on
develop,mainormastersets the pacticipant'smain_branchwhen it has none, as the Pact Broker'sauto_detect_main_branchdoes (app.pacticipant_store.MAIN_BRANCH_CANDIDATES). A main branch already set is never replaced. - Pact-Ruby verification results.
testResultssent as an object with atestsarray (the format ofpact-provider-verifier) is accepted, and itstestsare stored. It was a422.
1.836.0 — 2026-11-24
Added
- Pending and work-in-progress pacts (PFX-1.7, #6920). OpenAPI 1.660.0. No migration.
POST …/pact-broker/pacts/provider/{provider}/for-verificationnow applies the Pact Broker's definitions:- Pending. A pact is pending until the provider has verified its content successfully:
from the request's
providerVersionBranch— or on any branch before that branch was first recorded, so a new branch inherits earlier successes and an older one does not — with each of itsproviderVersionTags, or, with neither, at all. Failures never end it.pendingand the pending notices (withincludePendingStatus) now read the recorded results instead of alwaystrue, and the link metadata'spfollows, so a published result records the real state. - Work in progress.
includeWipPactsSince(with a provider branch or tags) adds, after the selected pacts, the head pact of each consumer branch and tag published on or after the date that no selector chose and that is still pending. Each carrieswip: true,pending: true(even withoutincludePendingStatus), the broker's WIP notice and{"w": true}metadata; a result published through it is recorded as WIP and pending. - Matrix.
GET …/pact-broker/matrixand…/can-i-deployrows carryverificationResult.pendingandverificationResult.wipwhen known. Pending still does not soften the verdict. - New pure modules
app.pact_pending(the rule) andapp.pact_wip(the selection), andapp.pact_pending_store.load_pending_evidence(one grouped read of the provider's successful results per pact content, and the branch's creation time).
- Pending. A pact is pending until the provider has verified its content successfully:
from the request's
1.835.0 — 2026-11-24
Added
- The matrix and can-i-deploy, Pact Broker–compatible (PFX-1.6, #6919). OpenAPI 1.659.0. No
migration. Under
/v1/tenants/{tenant_slug}/pact-broker, whatpact-broker can-i-deploycalls, unmodified (pacts:view):GET …/matrix— the broker's query:q[][pacticipant]selectors (version,latest,tag,branch,environment,mainBranch), a destination (environment,tag+latest,latest,mainBranch),latestby(cvp,cvpv,cp),ignore[][pacticipant]/ignore[][version],success[]andlimit(1–1000, default 100).GET …/can-i-deploy—pacticipant,versionandto(a tag) ortoEnvironment(the broker'senvironmentis accepted), withignore. The index links it aspb:can-i-deploy-pacticipant-version-to-environmentand…-to-tag.- Both answer
200with the broker's document:summary(deployabletrue/false/null,reason,success/failed/unknownand, when ignoring,ignored),noticesandmatrixrows with each version's branches, tags and environments. Reasons use the broker's wording. Apiome addscodeto each notice (verified,no-dependencies,verification-failed,pact-pending,no-verification-result,version-not-found,no-pact, and the warningscannot-ignore,no-environment-specified,no-version-specified) andreason(code,text) to each row. - The verdict follows the broker: a named version that does not exist is no; a missing
result is unknown (
null); otherwise yes when every considered row succeeded. A consumer requires its providers; a provider does not require its consumers. A failed result of a pending pact is still a no; the row sayspact is pending. - Retry while unknown: an unknown verdict carries
Retry-After: 10. - Every version in the environment is checked. To an environment where several versions of a provider are live, a version without a result gets its own row and makes the verdict unknown.
contractRequiredis enforced: to such an environment, a version that published no pact and that no pact names as provider is refused with the noticeno-pact.400 pact-matrix-invalidfor a malformed query, an unknown pacticipant or an unknown environment, with the parameter indetail.pointer.- The verdict is one pure function,
app.pact_matrix.deployment_verdict, for the deploy gate's contract signal (PFX-7.2) to share. The row and version-detail statements are named (prepared once per connection).scripts/bench_pact_matrix.pyseeds 10,000 pact versions into a scratch database and fails over a 200 ms p95; the worst query measured about 16 ms.
1.834.0 — 2026-11-24
Added
- Environments and deployment recording, Pact Broker–compatible (PFX-1.5, #6918). OpenAPI
1.658.0. apiome-db V435 adds
pact_environment,deployed_versionandreleased_version. Under/v1/tenants/{tenant_slug}/pact-broker, whatpact-broker create-environment,list-environments,describe-environment,update-environment,delete-environment,record-deployment,record-undeployment,record-releaseandrecord-support-endedcall:GET|POST …/environments(?name=;pacts:view/pacts:create) andGET|PUT|DELETE …/environments/{uuid}(pacts:view/pacts:edit/pacts:delete). The broker's body —name(one word, unique per workspace),displayName,production,contacts— plus Apiome'scontractRequired(defaultfalse).201+Locationon create;409 pact-environment-name-taken;422 pact-environment-invalidwith a JSON Pointer.POST …/pacticipants/{p}/versions/{v}/deployed-versions/environment/{uuid}(pacts:create, bodyapplicationInstanceor the deprecatedtarget): marks the pacticipant's previous deployment to the same environment and application instance undeployed, in one transaction, and keeps it as history. Recording the current version again answers200with it.POST …/versions/{v}/released-versions/environment/{uuid}(pacts:create): releases stay supported side by side; releasing again supports again (200).GET|PATCH …/deployed-versions/{uuid}and…/released-versions/{uuid}: a merge patch{"currentlyDeployed": false}/{"currentlySupported": false}(pacts:edit) ends the deployment or support;trueis422 pact-deployment-invalid.GET …/environments/{uuid}/deployed-versions/currently-deployed(?pacticipant=,?applicationInstance=,?target=) and…/released-versions/currently-supported(?pacticipant=,?version=);GETon the two record URLs lists a version's history there.- Links: the index adds
pb:environmentsandpb:environment; a broker-shaped version adds onepb:record-deploymentand onepb:record-releaselink per environment, named after it. 404 pact-environment-not-found,pact-deployed-version-not-found,pact-released-version-not-found; recording for an unrecorded version is404 pacticipant-version-not-found.
- Environment selectors select.
deployed,released,deployedOrReleasedandenvironmentconsumer-version selectors (PFX-1.3) now return the versions currently deployed or supported, every one of them (not only the latest), and the notices name the environment. app.pact_environment,app.pact_environment_store,app.pact_broker_environment_routes.
1.833.0 — 2026-11-24
Added
- Verification-result publication, Pact Broker–compatible (PFX-1.4, #6917). OpenAPI 1.657.0.
apiome-db V434 adds
verification_result. Under/v1/tenants/{tenant_slug}/pact-broker:POST …/pacts/provider/{p}/consumer/{c}/pact-version/{sha}/verification-resultsand the for-verification form…/pact-version/{sha}/metadata/{m}/verification-results(pacts:create): the broker's body —successandproviderApplicationVersionrequired,buildUrl,testResults(stored as sent, at most 10,000),verifiedBywithclientLanguage. Answers201,Location, and the broker's result shape (providerName,providerApplicationVersion,success,verificationDate,buildUrl,testResults,verifiedBy,_links.self,_links.pb:pact-version) plusproviderVersionBranch. The provider version is registered on first use; the stored branch is the one it was recorded on last. The metadata form records the pending / WIP flags of the for-verification link.- Results are immutable (trigger), numbered 1, 2, 3 … per pact version, unique per (pact
version, provider version, number);
successand the ids are columns for the matrix. providerVerificationReportId(Apiome only) links a CTG-4.3 provider verification report of the same workspace (422 pact-verification-report-not-foundotherwise); deleting the report clears the link. The answer carriespb:provider-verification-report.GET …/pact-version/{sha}/verification-results/latestand…/verification-results/{number}(pacts:view);404 pact-verification-not-found.PUT …/pacticipants/{p}/branches/{branch}/versions/{v}and…/versions/{v}/tags/{tag}(pacts:create): record the provider's branch and tags as Pact verifiers do before publishing; the pacticipant and version are created when missing (201, else200).- Links: every pact adds
pb:publish-verification-results(carrying the for-verification metadata when fetched through it) andpb:latest-verification-results; the broker-shaped pacticipant addspb:branch-versionandpb:version-tag. 422 pact-verification-invalidwith a JSON Pointer for a malformed body.
app.verification_result,app.verification_result_store,app.pact_broker_verification_routes;pact_selectors.decode_metadata.
1.832.0 — 2026-11-24
Added
- Consumer-version selectors and latest queries, Pact Broker–compatible (PFX-1.3, #6916).
OpenAPI 1.656.0. Under
/v1/tenants/{tenant_slug}/pact-broker, allpacts:view:POST …/pacts/provider/{provider}/for-verification— the pacts a provider build must verify, chosen byconsumerVersionSelectors:mainBranch,branch(withfallbackBranchorfallbackToMainBranch),matchingBranch(usesproviderVersionBranch),tag(every tagged version, or withlatest: truethe latest, withfallbackTag),latest, andconsumerto narrow any of them. No selectors means the Pact Broker's defaults. Fallbacks apply per consumer. Pacts chosen by several selectors are merged per consumer and content, named after the latest consumer version. The answer is the broker's:_embedded.pacts[]withshortDescription,verificationProperties(pendingwithincludePendingStatus, and thenoticesa verifier prints, in the broker's wording) and aselflink to…/pact-version/{sha}/metadata/{m}, wheremis the broker's encoding of the selection.- Ambiguous or malformed selectors →
400 pact-selector-invalidwith the broker's message and a JSON Pointer to the selector or field (for exampletagwithbranch,mainBranchwithlatest: false,matchingBranchwithoutproviderVersionBranch, a branch field with an environment field). - Not yet:
deployed,released,deployedOrReleasedandenvironmentare accepted and select nothing until environments exist (PFX-1.5). No verification results are recorded yet (PFX-1.4), so every pact is pending.includeWipPactsSinceis checked; WIP pacts are not added (PFX-1.7). GET …/consumer/{consumer}/latest/{tag}andGET …/consumer/{consumer}/branch/{branch}/latest— the latest pact of a pair from a tag or a branch ({branch}may contain/).GET …/pacts/provider/{provider}/latestand…/latest/{tag}— onepb:pactslink per consumer to its latest (tagged) pact, with the deprecatedprovider/pactsrelations.GET …/pact-version/{sha}/metadata/{metadata}— the pact version, as for-verification links it.- The index adds
pb:provider-pacts-for-verification(andbeta:provider-pacts-for-verification),pb:latest-provider-pactsandpb:latest-provider-pacts-with-tag; every pact addspb:latest-tagged-pact-version.
app.pact_selectors(parsing, selection, notices, metadata) andpact_publication_store.list_pact_candidates;get_latest_pacttakestagandbranch.
1.831.0 — 2026-11-23
Added
- Pact publication and retrieval, Pact Broker–compatible (PFX-1.2, #6915). OpenAPI 1.655.0. A
new
pact-brokertag under/v1/tenants/{tenant_slug}/pact-broker— the URL a Pact client is given as its broker base URL, with a workspace API key as its token. Responses areapplication/hal+jsonin the Pact Broker's shape; thepact-brokerCLI and pact-jspublishPactspublish against it unchanged.GET /pact-broker— the index (pb:publish-contracts,pb:publish-pact,pb:latest-pact-version,pb:pact-version,pb:pacticipant,pb:pacticipant-version).POST /pact-broker/contracts/publish— publish every pact of one consumer version with itsbranch,tagsandbuildUrl, all or nothing. Answersnotices(and the olderlogs), the embedded pacticipant and version, and apb:contractslink per pact.PUT/GET /pact-broker/pacts/provider/{provider}/consumer/{consumer}/version/{version}— publish (201new,200unchanged) or read one pact;GET …/latestreads the pact of the latest-recorded consumer version;GET …/pact-version/{sha}reads a pact by content address.GET /pact-broker/pacticipants/{pacticipant}and…/versions/{number}— a pacticipant and a version in the Pact Broker's shape, which thepb:consumer,pb:providerandpb:consumer-versionlinks lead to.- Content-addressed pact versions. A pact version is the SHA-256 of the document's
interactions,messagesand declared specification version (sorted keys;metadatais not part of it), unique per consumer and provider. The same pact published for many consumer versions is one pact version. - Pact specification 1.x to 4.x is stored as published, including message pacts. Consumers and providers are registered as pacticipants on first publication.
- Refusals carry a stable
codeand, where the problem has a place, a JSON Pointer indetail.pointer:pact-invalid,pact-publish-invalid,pact-publish-unsupported(422;mergeconflict handling and non-Pact specifications),pact-content-conflict(409: a different pact for a consumer version that already has one),pact-too-large(413),pact-publish-rate-limited(429 withRetry-After),pact-not-found(404). - On these routes a workspace API key may be sent as
Authorization: Bearer <key>, because that is the credential Pact tooling sends.X-API-Keyand session tokens work as everywhere else.
- Settings:
APIOME_PACT_MAX_BYTES(default 10 MiB per pact),APIOME_PACT_PUBLISH_RATE_LIMIT_PER_MINUTE(default 120 publishes per workspace),APIOME_PACT_ALLOW_CONTRACT_MODIFICATION(defaultfalse;truereplaces a consumer version's pact instead of answering 409) andAPIOME_PACT_BROKER_HOST_SUFFIX(default empty; withpact.example.com, requests tohttps://<tenant>.pact.example.com/…are served as that tenant's/pact-broker/…). - Migration
V433addspact_version(content JSONB + SHA-256, unique per consumer, provider and hash) andpact_publication(one pact per consumer version and provider, with a revision counter). Both pacticipants are referenced by(id, tenant_id), so a pact cannot cross a tenant, and every reference cascades, so a pact goes with its pacticipants.
1.830.0 — 2026-11-23
Added
- Pact Broker registry: pacticipants, versions, branches and tags (PFX-1.1, #6914). OpenAPI
1.654.0. The model the rest of the Pact Broker surface is built on, under a new
pacticipantstag and a new RBAC resource,pacts(Owner and Admin: all; Editor: view, create, edit; Viewer: view). All routes are under/v1/tenants/{tenant_slug}/pacticipants:GET/POSTthe collection,GET/PATCH/DELETE/{ref}— a pacticipant has a handle (derived from its name when omitted, unique per tenant, never renamed), a display name, a repository URL, a main branch, and two optional bindings:project(the project that describes a provider) andconsumer_id(its row in the consumer registry).{ref}is the handle, the id or the name.DELETEremoves the pacticipant with its versions, branches and tags.PUT /{ref}/versions/{number}records a version with an optionalbuild_url,branchandtags.201when it creates the version,200when it already existed; the stored version is returned unchanged either way.GET /{ref}/versions(filtersbranch,tag; latest first) andGET /{ref}/versions/{number}read them.PUT /{ref}/versions/{number}/tags/{tag}adds a tag;GET /{ref}/brancheslists each branch with its head.- Refusals carry a stable
code:pacticipant-not-found,pacticipant-version-not-found,pacticipant-project-not-found,pacticipant-consumer-not-found(404),pacticipant-slug-taken(409), andpacticipant-invalid-slug/-name/-url/-branch/-tag/-version(400).
- Migration
V432addspacticipant,pacticipant_version,pacticipant_branch,pacticipant_branch_versionandpacticipant_version_tag, and keeps the rules in the schema: handles unique per tenant; bindings by composite(id, tenant_id)keys, so nothing crosses a tenant; a branch and a tag can only name a version of the same pacticipant; a trigger refuses anyUPDATEof a version; deleting a project — hard, or thedeleted_atstamp the app writes — clears the binding and keeps the pacticipant, and retiring or deleting a consumer does the same. A branch head moves only to a version recorded later than the current head.projectsandconsumergain a unique(id, tenant_id)key, andseed_builtin_rolesis replaced and every tenant reseeded.
1.829.0 — 2026-11-23
Performance
- Content-stamp trigger: statement-level with transition tables (DBP-1.19, #7202). OpenAPI
1.653.0 (version only; no route or schema change). Migration
V427replaces the 35 row-leveltrg_content_stamptriggers (the revision's classes, paths, operations, servers, security schemes, component pins, canonical model and their children) with statement-level triggers over transition tables: one query resolves every affected revision and oneUPDATE apiome.versionsbumps them, instead of ato_jsonb(NEW)/to_jsonb(OLD)and a dynamic query per row. The rules are unchanged: one bump per revision per transaction, no bump forupdated_at/canvas_metadata-only updates, both revisions bumped when a row moves, the publish counts cleared on a class, path or operation write. Measured inserting 50,000classesrows in one statement (local PostgreSQL 16, median of 7 interleaved runs, trigger on vs. disabled): one revision 1,026 ms → 1,062 ms with the trigger (+3.5 %; was +32 %), spread over 500 revisions 1,154 ms → 1,150 ms (within noise; was 3.1×). The statement trigger itself ran for about 29 ms. The migration is reversible (see its header).
1.828.0 — 2026-11-23
Performance
- Sweeps and queues: indexed due-selection, delivery throughput, scoped graph materialization
(DBP-1.18, #7201). OpenAPI 1.652.0 (version only; no route or schema change). Measured with
EXPLAIN ANALYZE(best of 5,jit = off) on the scale database plus a hand-added sweep fixture — the scale seed fills none of these tables: 52,000 MCP endpoints with 1,000,000 health checks and 1,000,000 finished discovery jobs, 50,000 repositories with 10,000 branch rules, 500,000 delivered export webhook runs and 500,000 delivered push events, one tenant with 40,000 scored snapshots, and one tenant with 5,000 consumers (20,000consumesedges). Idle state: nothing due.- Indexed due-selection. Migration
V426stores when each row next falls due —mcp_endpoints.discovery_due_at,tenant_repositories.refresh_due_at(with the shortest enabled branch rule folded in),mcp_catalog_digest_configs.digest_due_at— kept by triggers, andmcp_endpoints.last_health_checked_at, written with each probe. Each due query is now a range scan of a partial index that stops after one batch: discovery 10.1 → 0.20 ms (2,558 → 18 buffers), health 120 → 0.04 ms (143,521 → 8 buffers; nomax(checked_at)per endpoint), repositories 58.5 → 0.006 ms (111,821 → 2 buffers). Endpoints and digests on the global default cadence are a second ordered branch onCOALESCE(last_*, '-infinity'). - Batches per tick.
APIOME_MCP_DISCOVERY_MAX_PER_TICK(500),APIOME_MCP_DIGEST_MAX_PER_TICK(200) andAPIOME_REFRESH_MAX_PER_TICK(200) bound each selection; what is still due runs on the next tick, most overdue first. - Webhook delivery. Both queues are claimed in batches
(
claim_due_push_webhook_deliveries,claim_due_export_webhook_deliveries) and delivered on a bounded worker pool (app/sweep_worker_pool.py) that drains the queue before the loop sleeps:APIOME_WEBHOOK_DELIVERY_WORKERS(8),APIOME_WEBHOOK_DELIVERY_PER_TENANT(2),APIOME_WEBHOOK_DELIVERY_BATCH_SIZE(50),APIOME_WEBHOOK_DELIVERY_TICK_SECONDS(60). Against a local stub receiver: 400 deliveries in 5.2 s, about 4,600 a minute (was at most 40 a minute: 10 per 15-second tick, one POST at a time). A receiver that takes 1.5 s holds only its own tenant's two workers; every other tenant's events were delivered before it answered once. The export claim is two ordered statements (stale attempts, then due runs) on their own partial indexes instead of oneORsorted byCOALESCE(next_attempt_at, updated_at). - Repository refresh. Up to
APIOME_REFRESH_SWEEP_CONCURRENCY(4) repositories refresh at once on worker threads, one tenant's repositories one after another so its polling quota stays exact. - Scoped graph materialization. An in-transaction re-derivation (consumer contract, consumer
delete, conversion, repository delete, draft binding, API product) covers only the node it changed
(
catalog_graph.GraphScope), and the upsert skips edges whose evidence is unchanged (IS DISTINCT FROM). One consumer-contract write in the 5,000-consumer tenant: 479 → 1.4 ms, and 20,001 → 4 edge rows written. Stale edges are found by comparing with the derived set; the nightly sweep still re-derives every family and refresheslast_seen_aton every current edge. The result ofmaterialize_on_cursorgains awrittencount. - Whole-table prunes.
prune_schema_suite_runs_by_agereads only runs older than the cutoff and checks each suite's newest with a bounded probe instead of ranking every run. Digest grade movements rank only the window's snapshots (a backwards probe for each one's previous score) — 72.7 → 10.0 ms, 163,566 → 10,558 buffers — with a new(endpoint_id, COALESCE(discovered_at, created_at))index. - Retention. New
app/operational_retention_sweep.pyon the 5-minute retention tick: finished MCP discovery jobs older thanAPIOME_MCP_DISCOVERY_JOB_RETENTION_DAYS(30) are deleted, keeping each endpoint'sAPIOME_MCP_DISCOVERY_JOB_KEEP_PER_ENDPOINT(20) newest, in bounded windows that resume across ticks (one window: 1.5 ms with every expired job kept; the unbounded form took 7.8 s); Slate logs, traces, live-tail sessions, synthetic results, security events and function invocations past theirretain_untilare deleted in batches ofAPIOME_SLATE_RETENTION_BATCH_SIZE(5,000). - Not measured: the quality-scoring claim (already index-driven since DBP-1.12,
V420) and the repository file-scan sweep (unchanged, one job per 5-second tick).
- Indexed due-selection. Migration
1.827.0 — 2026-11-23
Performance
- MCP catalog: persist per-version derived facts; facets and insight in one query (DBP-1.17,
#7200). OpenAPI 1.651.0 (version and two operation descriptions; no schema change). Measured on
the scale database with one tenant of 2,000 endpoints, 3 snapshots each, 50 tools per snapshot.
- Facts stored on the snapshot. Migration
V425addstool_count,resource_count,resource_template_count,prompt_count,has_destructive,read_only_only,max_tool_propsandchange_counttomcp_endpoint_versions.record_mcp_discovery_versioncomputes them (app/mcp_version_facts.py) and stores them in the snapshot's ownINSERT; the table stays write-once. A snapshot without facts yet (tool_count IS NULL) is recomputed in the same statement by fiveapiome.mcp_version_*functions, so a read is never wrong. - Backfill.
apiome.backfill_mcp_version_facts(limit)derives a bounded batch andapiome-db migratecalls it until nothing is pending, one transaction per batch (resumable; 15,880 snapshots in 5.5 s).apiome.verify_mcp_version_facts()compares stored facts with the recomputed ones (apiome-db backfill mcp-version-facts --verify). The table's write-once guard allows exactly this update: facts for a row that has none, nothing else changed. - Catalog grid.
browse_mcp_endpointsjoins no capability item and groups nothing: 7.9 s → 45 ms for the whole catalog, 10 ms for a page of 100. - Faceted search: 2 statements, was 10. One for the page, one that counts every facet with
GROUPING SETSover a materialized filtered CTE: 873 ms → 12 ms unfiltered, 7.5 s → 8 ms with safety, complexity and grade filters. - Insight: 2 statements, was 9, and kept per tenant for
MCP_CATALOG_INSIGHT_CACHE_TTL_SECONDS(default30, at most300,0= off) byapp/mcp_catalog_insight_cache.py: 177 ms → 137 ms cold, no statement when cached. - Evolution series. Per-kind counts from the stored facts and one pass over the change rows, in place of seven correlated sub-selects per snapshot.
- Similar servers in SQL.
get_mcp_similar_serversreplacesget_mcp_similar_candidates: capability-name Jaccard computed in SQL andORDER BY embedding <=> target LIMIT kover the tenant's current snapshots; the floor, rounding and tie-breaks stay in Python (overlap_neighbors_from_rows,embedding_neighbors_from_rows). 1.4 s → 0.19 s; no embedding is read as text any more. - Duplicate hints.
list_published_mcp_duplicate_hintsreturns only the published endpoints of other tenants that share a surface fingerprint or a URL key with one of the caller's, through two new indexes, instead of every published endpoint: 46 ms → 23 ms. - Semantic capability search. The similarity floor is applied to the nearest
limititems after they are picked, not as an expression on the distance in theWHERE. - Every read returns the same values as before: checked against the previous statements on the
scale database, and by
tests/test_mcp_version_facts_db.py, which runs each read on snapshots without facts and again after the backfill.
- Facts stored on the snapshot. Migration
1.826.0 — 2026-11-23
Performance
- Public Browse: cached directory statistics, supporting indexes and an indexed search (DBP-1.16,
#7199). OpenAPI 1.650.0 (version and the description of
GET /v1/browse/tenants; no schema change).GET /v1/browse/tenantsis cached. The route is anonymous and counted the whole public catalog on every call. Each API instance now reuses the directory statistics, each tenant-list window (bysearch,sort,protocol,format,limit,offset) and each facet count forBROWSE_PUBLIC_CACHE_TTL_SECONDS(default120, at most300;0turns it off), in the newapp/browse_public_cache.py. A publish, unpublish or delete shows up within one interval. Only successful reads are stored.BROWSE_PUBLIC_CACHE_MAX_ENTRIES(default512) bounds the cache.- Cache headers. The response carries
Cache-Control: public, max-age=<the interval>, orno-storewhen the cache is off, so a proxy in front of the API may reuse it for as long as the instance would. The member-aware project and version lists are not cached. - MCP change feeds pick the newest snapshots first.
get_public_catalog_changesandget_public_mcp_endpoint_changeschoose the newestlimitsnapshots that recorded a change and join only their changes, instead of joining and sorting the whole change history forLIMIT 50. The rows are the same (checked against the old statements on the scale database). Catalog feed of a tenant with 3,050 snapshots and 91,500 changes: 51 ms → 5.5 ms. The single-endpoint feed was already index-driven there (0.5 ms → 0.7 ms); its plan no longer depends on the planner's choice. - Migration
V424.versions.operation_countandversions.schema_countare recorded by a trigger when a revision is published (covering this API'spublish_versionand the web app's) and cleared when it is unpublished or a class, path or operation row of it is written; Browse cards read them and fall back to counting when they are NULL. The V403 / V422 content-stamp trigger function is re-created with both columns in its non-content list, so recording them does not bumpcontent_stamp.V424also adds five trigram indexes on name columns (projects, classes, class properties, paths, operation summaries and ids) for the Browse search palette: +15 % on an import-shaped insert of 116,000 rows, measured on the scale database.
1.825.0 — 2026-11-23
Performance
- The sunset timeline reads the stored sunset column (DBP-1.15, #7198). OpenAPI 1.649.0 (version
only; no schema change).
list_sunset_timeline_entriestestsversions.sunset_atinstead of extractingmetadata->>'sunsetDate'/'sunset_date'from every revision of the tenant. MigrationV422adds that column (withversions.lint_error_count) as a stored generated column — the first non-empty ofsunsetAt,sunsetDateandsunset_date, the orderrevision_deprecationreads them in. Writes mirrorsunsetAtintosunsetDate, so the rows matched are the same.V422also re-creates the V403 content-stamp trigger with the two generated columns in its non-content list: in a BEFORE trigger NEW does not carry recomputed generated values, so without it every bookkeeping UPDATE of such a revision would bumpcontent_stampand mark its rendered documents stale (tests/test_content_stamp_db.pycovers it).V423addsversion_content_counts, the web app's Home count rollup; it is exempt from the content stamp (derived, keyed by the stamp).
1.824.0 — 2026-11-22
Performance
- Revision graph queries: closure, divergence, lineage and baselines in SQL (DBP-1.14, #7197). OpenAPI
1.648.0 (version only; no schema change). No migration. The queries live in the new
app/revision_graph_sql.py.- One statement each.
get_prior_published_baseline_revision_idandlist_prior_revisions_for_transitive_checkwalk the ancestor closure, filter, order and limit in one recursive query (no ancestor list sent back as anIN (…)of N placeholders; the transitive check's created-before fallback is in the same statement).resolve_successor_revision_chainreads the whole chain (successor pointer, project, protected-ref flag) in one recursive query and applies the per-hop checks in memory: 129 statements → 1 for 32 hops.get_import_snapshot_lineageis one recursive query with a depth guard that readscanonical_documentonce, for the snapshot it stops at. - Index-driven recursion.
fetch_revision_closureand the three walks ofcompute_branch_divergencekeep ids asuuidinside the recursion and follow each parent link as its own primary-key probe (CROSS JOIN LATERAL (VALUES …)), not a text join or anORjoin filter. list_source_editsreturns one row per pointer (DISTINCT ON (pointer), the newest edit), newest first — what the provenance endpoint reads; the response is unchanged.- Fixed:
GET /v1/versions/{tenant}/{project}/{version}/provenancereturned 500 for a revision without its own import snapshot (such as a draft created from an imported version): the parent hop filtered on aversions.tenant_idcolumn that does not exist. The walk is now tenant-scoped through the owning project. - Measured on the DBP-1.1 scale database (200k versions, plus a 500-revision linear history and a
400-revision criss-cross history; median of 15 calls, Python included): branch divergence 10.8 → 3.1 ms,
previous published baseline 5.7 → 1.7 ms (2 → 1 statements), transitive-check candidates 5.3 → 1.7 ms,
successor chain (32 hops) 33.2 → 0.7 ms, snapshot lineage (50 levels) failed → 0.6 ms (99 statements → 1
against
mainwith the tenant filter patched), source edits (5,000 edits of 40 pointers) 6.9 → 4.7 ms and 5,000 → 40 rows. Closure and merge base are unchanged (about 3 ms; the uuid fix was DBP-1.10). - Tests:
tests/test_revision_graph_queries_db.pychecks every read against the previous implementation on linear, diamond and criss-cross histories (tests/revision_graph_fixtures.py);tests/query_budgets.jsonrecords one statement for each on a 500-revision linear and a criss-cross history. Plan check:rest.revision_closure(itsknownentry removed),rest.prior_published_baseline,rest.transitive_check_candidates,rest.branch_divergence.
- One statement each.
1.823.0 — 2026-11-22
Performance
- Keyset pagination, bounded lists and narrow list projections (DBP-1.13, #7196). OpenAPI 1.647.0. No
migration. Measured on the DBP-1.1 scale database.
-
One paging convention. Every growing list takes
limit(a documented maximum, 200 for most) and an opaquecursor, and reportshas_more/next_cursor(hasMore/nextCursoron camelCase responses). A page is found by readinglimit + 1rows, never by counting. See API reference → Pagination. -
Totals are opt-in.
totalisnullunless the request sendsinclude_total=true, and the count stops at 10,000. This applies to notifications, export history, export and import jobs, SDK publish / Git delivery / regeneration runs, comment threads, reviews, merge requests, draft bindings, audit and refresh history, the repository file lists, the MCP capability directory, unowned findings, graph edges and connector items / runs. A client that readstotalmust sendinclude_total=true. -
offsetis deprecated where it existed and capped at 10,000 (the repository file lists allowed 500,000). Lists whose order is a computed rank (MCP search, graph entity search, model search, the lint queue) still page byoffset, with a maximumlimit. -
Array responses page in headers.
GET /v1/projects/{tenant},/v1/versions/{tenant}/{project},/v1/catalog/{tenant},/v1/mocks/{tenant}(200 a page),/v1/classes/{tenant}and/v1/paths/{tenant}/{version}(1,000 a page) keep their JSON array body and reportX-Has-MoreandX-Next-Cursor. A client that needs the whole list must follow the cursor; theapiomeCLI and the app do. -
78 more lists gain a maximum (teams, products, repositories, connectors, MCP endpoints and their jobs, versions and notes, agent toolsets and keys, consumers, schema-registry subjects, SSO providers, and others): their default page is their maximum (1,000 for configuration-like collections, 200 for histories), so a response changes only for a list longer than one page. A test walks the OpenAPI document and fails on any list operation with neither a bounded
limitnor a recorded reason it cannot grow. -
Page 1,000 costs what page 1 does.
list (rows for one tenant) OFFSETpage 1,000COUNT(*)each pagekeyset page 1 keyset page 1,000 workflow audit (325,000) 46.8 ms, 2,028 buffers 13.2 ms 0.03 ms, 7 buffers 0.04 ms, 6 buffers notifications (200,000) 6.8 ms, 1,096 buffers 9.9 ms 0.02 ms, 4 buffers 0.03 ms, 6 buffers export history (101,000) 114.6 ms, 2,845 buffers 3.9 ms 0.04 ms, 15 buffers 0.24 ms, 17 buffers -
Project list: a 5,000-project tenant's list went from 33 ms for every project to 1.9 ms a page.
-
Mock data plane: a request to
/v1/mock/{id}/…runs one statement that does not read the frozenspec(0.5 ms with a 343 KiB document → 0.1 ms) and writes nothing. The spec is cached per instance for five minutes; request counts are buffered and added in oneUPDATEevery five seconds and at shutdown, sorequestCount,lastActivityAtand the monthly quota sum can lag by that long, and a process killed without a shutdown loses at most that interval's counts. -
Mock list:
GET /v1/mocks/{tenant}no longer returns each instance's spec to count its operations (the count is computed in SQL): 500 instances went from 323 ms and 168 MiB to 53 ms and 99 KiB a page. The export test drive reads only its own instances. -
Narrow projections: 129
SELECT */RETURNING *outsidedatabase.pyname their columns (a test keeps it so). The provider-verification list no longer selects each report body, the public Browse version list no longer selectschange_model_json, and the workspace lint summary reads fingerprints and severities instead of whole findings. The version list still returnsmetadata,mock_settingsandchange_log: its response exposes them. -
Aggregates in SQL: MCP discovery and invocation reliability, the category cohort's latency axis and the quality-rank trend are aggregated by PostgreSQL (
count … FILTER,percentile_cont) instead of fetching every row; results are identical. -
Mentions: writing a comment or review looks up only the handles it mentions instead of loading every member of the tenant.
-
Changed limits: audit search 500 → 200, repository file lists 500 → 200, MCP facets 500 → 200, mock captures 500 → 200; a style-guide revision
limitabove 500 is now refused instead of clamped.
-
1.822.0 — 2026-11-22
Performance
- Foreign-key index coverage and redundant-index cleanup (DBP-1.12, #7195). OpenAPI 1.646.0 (version only; no
schema change). Needs
apiome-dbV418–V421. Measured on the DBP-1.1 scale database (1.0M classes):- Deleting a version or project: 166 foreign keys gain an index the referential check can use (47 of them
partial on
<column> IS NOT NULL, which costs nothing for rows that leave the column empty), replacing 31 partial indexes the check could not use. In the REST hard-delete sequence,classes_version_id_fkeydrops from 26.9 to 0.07 ms for one version and from 224 to 2.2 ms for a ten-version project (the final project DELETE 354 → 121 ms). With sequential scans disabled, no constraint trigger of either delete falls back to one. - Schema test:
apiome-dbfails CI when a foreign key has no usable index and is not intest/foreign-key-index-allowlist.json. The 222 references tousersare listed there on purpose: users are hard-deleted only byapiome-db users delete, which accepts the scan. - Cleanup: 30 indexes dropped: 5 that a wider index with the same predicate already covers, 24 single-column
boolean /
deleted_atindexes that nothing scanned in the plan check plus the REST database suites run on the scale database, and the unused GIN index onconsumer_contract.surface_pointers. - Repository quality sweep:
claim_repository_files_for_quality_scoringfilters on the new stored columntenant_repository_files.is_importable(theREPOSITORY_FILE_IMPORTABLE_SQLpredicate), so its partial index no longer holds every never-scored non-spec file. With 200,000 files of which every spec is scored, a sweep tick went from 193 ms and 42,093 buffers to 0.01 ms and 1 buffer. - Usage tables:
usage_hourlyandusage_dailygain an identityidprimary key; the grain constraints the ingest upsert targets are unchanged. - Insert throughput (20,000 rows, median of 5, tables vacuumed between runs):
versions2,926 → 2,675 / 2,632 ms (three fewer indexes),classes3,784 → 3,726 / 3,807 ms (unchanged within noise),projects532 → 506 / 435 ms (before, then the after set measured either side of it). - Upgrading a large database: V420 and V421 rewrite their tables (see Operating Apiome → Upgrade a large database without blocking writes).
- Deleting a version or project: 166 foreign keys gain an index the referential check can use (47 of them
partial on
1.821.0 — 2026-11-22
Performance
- Missing indexes for verified query shapes (DBP-1.11, #7194). OpenAPI 1.645.0 (version only; no schema
change). Needs
apiome-dbV412–V417: 25 indexes, 7 of which replace an index they cover, so the schema gains 18. No query text changes. Each index is used by the query named in its migration on the DBP-1.1 scale database (side tables filled to 200k–1M rows):- Browse: "Recently published" 13.6 → 0.01 ms; each project's latest public version 13.0 → 4.9 ms for the
large tenant (
versions, two partial indexes). Inserting versions costs about 6% more (317.8 → 338.3 ms for 20,000 rows). - Audit: project timeline 8.2 → 0.02 ms; refresh history by repository 7.2 → 0.01 ms (page) and
13.7 → 0.02 ms (count). The workflow, registry and access-audit tenant indexes gain
id DESCfor the keyset searches. - Jobs and runs: repository polling quota 10.3 → 0.004 ms; last refresh per import spec 2.2 → 0.09 ms; MCP discovery dedupe reads only active jobs; provider checks by project in order; Export history actors read an index-only scan.
- Document store: integrity sample 20.5 → 0.44 ms; unreferenced purge 29.0 → 0.09 ms; tenant store move 11.9 → 1.1 ms a page; stale render cleanup 11.6 → 0.42 ms.
- Catalog and MCP: consumer-contract graph re-derive 4.5 → 0.24 ms; graph-export neighbourhood hops by
from_id/to_id; registry dedupe by server name; joins onmcp_endpoints.current_version_id. - Sign-in and logs: two-factor reset 8.3 → 0.01 ms (
verification."value"); admin Users list 21.4 → 5.5 ms (session ("userId", "updatedAt" DESC)); lane log search 19.8 → 0.02 ms (trigram index onslate_insight_logs.message). - Dropped after the plan check (not used, or no measurable gain): the projects list index, the
access_auditpartial index for the tenant-less chain (the widened tenant index serves it),lint_evidence_runsper-scanner indexes, themcp_capability_items.nametrigram index,classes/propertiesrecent-activity indexes, the open-reviews index,users (name, id)and theagent_invocationsper-key count index. - Upgrading a large database: build the indexes first with
CREATE INDEX CONCURRENTLY(see Operating Apiome → Upgrade a large database without blocking writes).
- Browse: "Recently published" 13.6 → 0.01 ms; each project's latest public version 13.0 → 4.9 ms for the
large tenant (
1.820.0 — 2026-11-22
Performance
- Sargable predicates: casts on uuid keys, sort order, audit chain (DBP-1.10, #7193). OpenAPI 1.644.0
(version only; no schema change). Query text only; results are unchanged.
fetch_revision_closureand the three recursive CTEs ofcompute_branch_divergencecompareversions.idto the uuid-cast parameter instead of casting every row to text, so the primary key is used (0.44 ms against 21.4 ms on 200k versions); the lint-gate endpoint-version lookup and twotenant_id::textdocument lookups do likewise.get_latest_revision_id_for_projectand three other version lookups order bycreated_at DESC NULLS LAST, id DESC(ASC NULLS FIRST, id ASC) to matchidx_versions_project_created, so there is no extra sort.- The access-audit chain head reads
tenant_id = …ortenant_id IS NULLrather thanIS NOT DISTINCT FROM, so an audit write no longer scansaccess_audit. apiome-ui: the review, merge-request and comment-anchor queries comparetenant_idto the uuid-cast parameter.- New test
tests/test_sargable_uuid_lint.pyfails on a newid::text =predicate. - Not in this change: the
primitivestenant/systemOR, thejsonb_array_elementsfilters,NOT INsubqueries and the Python-builtIN (…)lists stay open under #7193's remaining scope.
1.819.0 — 2026-11-22
Performance
- UI import pipeline: bulk statements and no transaction held for user approval (DBP-1.9, #7192). OpenAPI
1.643.0 (version only; no schema change). The work is in
apiome-ui; the REST API changes one predicate so a staged import never reads as a deleted project. Needsapiome-dbV411.- One statement per table: the Import specification wizard, the path designer's paths import and
importProjectFromOpenAPIassign every row's id in the importer and write each table with oneINSERT … SELECT FROM jsonb_populate_recordset(…)per 5,000 rows. An import of 1,000 operations and 2,000 classes is staged in about 30 statements and accepted in 7 to 9 (was about 19,500); the paths-and-security step alone is 15 (was 10 to 20 per operation). The classes are written in one statement; if PostgreSQL rejects it (a duplicate class name, a duplicate nested property name) the importer writes class by class as before, so one bad class is skipped and reported. - No connection held during review: an import awaiting “Accept & commit” used to keep its transaction
open on one of the web app's ten pooled connections, and PostgreSQL ended a review longer than
idle_in_transaction_session_timeout(60 s). The import now commits staged: the version hasdeleted_atand the newimport_pending_atset, and so does the project when the import created it, so no reader shows it. Accept clears both in one short transaction; Reject deletes the staged rows, the library properties the import added and the repository source rows it added or moved (listed inversions.import_pending). The paths are staged with the classes, on the same connection. One connection per import job. - Abandoned imports are swept: a staged import nobody decided on — the browser was closed, or the web app
restarted and lost the job — is deleted once it is older than
IMPORT_PENDING_TTL_MINUTES(web app, default60). Each web app instance checks at startup and then every quarter of the limit; a version an Accept or Reject holds is skipped. Accepting an import that was swept answers This import is no longer awaiting approval and changes nothing. - Reads that include deleted projects skip staged ones:
GET /v1/projects/{tenant}?include_deleted=true, the catalog list, counts and item reads, and the project lookups behind restore and permanent delete leave out a project whose version carriesimport_pending_at. The default reads are unchanged. - Verification in the database: instead of reading back every class, property and tag it wrote, the import sends its expected property count per class and gets back only the classes that differ. The rows are read only to explain a difference.
- Smaller fixes on the same path: the class lookup for
$refs filters ondeleted_at IS NULL, so the partial(version_id, name)index applies and a$refcannot resolve to a soft-deleted class; a new library property never takes the name of a soft-deleted one (properties_project_name_uniquecovers both), and a name collision is skipped byON CONFLICT DO NOTHINGinstead of a per-row savepoint retry; the plan check for a new project or version isSELECT 1 … OFFSET $max - 1 LIMIT 1instead of a count of every row. - Measured on a local PostgreSQL 18,
main→ this change, the same rows written in both (compared table by table for the 46 importable OpenAPI files of the import corpus): 1,000 operations and 2,000 classes, 19,519 → 41 statements and 1.56 s → 0.66 s; the corpus's largest file (24-advanced-combined-composition.yaml), 153 → 37 statements and 120 → 90 ms. Connections held while an import awaits approval: 1 → 0. - Behaviour to know: the spec's
infois merged into an existing project when the import is accepted, not while it waits. A staged project or version does not count toward the plan until accepted, and the plan is checked again at Accept. During a rolling deploy, a web app still on the old code keeps its transaction open as before; apply V411 before starting the new one.
- One statement per table: the Import specification wizard, the path designer's paths import and
1.818.0 — 2026-11-22
Performance
- Usage ingest: batched upserts and a shorter tenant lock (DBP-1.8, #7191). OpenAPI 1.642.0 (version only; no
schema change).
POST /v1/tenants/{tenant}/usage/ingestanswers exactly as before; only how a batch is written changes. Needsapiome-dbV410.- One statement per table:
usage_hourly,usage_unmatched_daily,usage_unattributed_client_daily,usage_sample, the binding and consumer stamps are each oneINSERT … SELECT FROM unnest(…) ON CONFLICT DO UPDATE(orUPDATE … FROM unnest(…)), andusage_field_dailyis two (the denominator update for every group, then the upsert for every pointer). Rows are sent sorted by key, so writers lock them in a stable order. A 5,000-grain batch runs 12 statements, the same as a 10-grain one (was about 5,000 plus one per field pointer). - Planning outside the lock:
plan_batch(parsing, sampling, scrubbing, template matching) now runs before the per-tenant advisory lock is taken, from the finalized days and live consumer bindings read when the batch arrives. Under the lock one statement reads the cap, today's count and whether any day the plan writes to was finalized meanwhile; the live bindings are read again. If a day was finalized or the bindings changed, the batch is planned again under the lock, so a binding deleted before the write phase still attributes nothing (RDG-1.8) and a newly finalized day is aday-finalizedrejection, never an error. - A day counter instead of a ledger sum: V410 adds
apiome.usage_tenant_day (tenant_id, day, events_used). The ledger insert, the counter upsert and the source'slast_received_atstamp are one statement, so the counter always equals the day's ledger; the cap check is a primary-key probe instead ofsum(received - rejected)over every batch of the day. The same statement prunes the tenant's rows older than yesterday. V410 backfills today and yesterday from the ledger. - Measured on the DBP-1.1 scale database (local PostgreSQL 18, one tenant, 1,001-event batches over 50
operations with field capture, 20,000 ledger rows already that day),
main→ this change: the tenant lock is held 432 → 38 ms per batch (planning, 28 ms, no longer inside it); serial ingest 2,248 → 14,357 events/s; four concurrent writers for the tenant 1,446 → 20,772 events/s (median batch 3.1 s → 0.18 s). - Partitioning
usage_hourly,usage_sampleandusage_field_daily: not now. Measured on the same database with 1.2 M hourly and 1.2 M field rows for one tenant: onepurge_usagepass of 10,000 rows per table takes 85–140 ms, and 100,000 per table (one day of hourly rows) 1.46 s; dropping a 100,000-row table takes 11 ms. Retention is per tenant (the license tier and the workspace's own retention setting), so a dropped day partition could only remove days past the longest retention of any tenant; the per-tenant deletes stay either way. The purge runs in the usage sweep, in bounded batches, off the request path, and ingest no longer waits on anything it holds. Revisit when a day's hourly volume passes about 10 M rows (about a minute of deletes a day at the measured rate). - Behaviour to know: deleting a usage source no longer gives the day's quota back (its ledger rows still cascade away; the day counter does not). During a rolling deploy, batches written by replicas still on the old code are not counted against the day until those replicas are replaced.
- Tests:
tests/test_usage_ingest_batching_db.py(the same statement count at 10 and 5,000 grains, upserts into existing rows, the counter, replanning after a finalization or a binding deletion, and two concurrent batches for one tenant: the second plans while the first holds the lock, and the totals equal serial ingestion);tests/test_usage_ingest_store.py(the statements' shape, no database).
- One statement per table:
1.817.0 — 2026-11-22
Performance
- Set-based writes: import persistence, source apply, fork and merge copy, publish (DBP-1.7, #7190). OpenAPI
1.641.0 (version only; no schema change). No endpoint's request, response or permissions change. Writes that
grew with the size of a specification now send a fixed number of statements. Needs
apiome-dbV409.- Helper:
app.db_bulk.bulk_insert_arrayswrites any number of rows with oneINSERT … SELECT FROM unnest(…)(each column is one array parameter);new_idsassigns row ids on the client, so children are written without aRETURNING idround trip per parent. - Import persistence:
canonical_persistence._insert_treewrites the artifact and then one statement per child table (services, operations, messages, channels, types, fields, agents, skills). 7 statements for an OpenAPI import, whatever its size (was one per row: about 8,000 for 2,000 types of 3 fields). - Source apply writes only the difference: new
app.source_apply_writer.apply_source_change_setcompares what the revision's rows render to now with what the candidate's rows will render to, per class and per path. A class or path that does not change keeps its rows and ids (and so its canvas position, comments and links); a changed class is updated in place and its properties replaced; a changed path is deleted and recreated; security schemes and servers are rewritten only when they differ. Before, every apply soft-deleted and reinserted every class and recreated every path. Claims and the source-edit log are one insert each. - Project properties by digest: a class property is linked to the project property with the same definition
through
properties.data_digest(V409: a stored generatedmd5(data::text)and an index on(project_id, data_digest)) instead of loading the project's whole property library into the process. - Fork and merge copy:
create_forked_version,copy_classes_from_version,copy_classes_from_version_for_mergeandcopy_single_class_between_versions_for_mergecopy classes with oneINSERT … SELECTthat assigns the new ids, and properties with one statement per nesting level (an old-id → new-id map carries each child to its copied parent). - Publish:
publish_versionandfreeze_version_schemaupsert every class's frozen JSON Schema intoclass_schemawith one statement. - Smaller loops, one statement each: verification evidence (cases, assertions, artifacts), MCP discovery capability and change rows, repository file code owners, preservation claims, path canvases on a version copy, SDK beacons, schema test suite payloads and results, style guide built-in and custom rules, tag moves on unpublish, role permissions, catalog categories, merge session conflicts, branch refresh rules, webhook provider IP ranges, MCP endpoint tags, MCP collection members, tenant MCP policy tools, expired async jobs, original document parts, agent toolset tools and enrichments, released draft bindings, draft sync conflicts and the component bulk upgrade (which now locks its versions in id order with one statement, before any write).
- Budgets:
tests/query_budgets.jsonrecords the same count at 10 and at 2,000 classes: import persist 7, source apply (every row) 18, source apply (one-line edit, reads included) 24, fork 7, merge copy 3, publish 6. - Measured on a local PostgreSQL 18 (unix socket, so a networked database saves more per statement), 20,000 classes of 3 properties, before → after: import persist 4.9 → 2.8 s; source apply of every row 4.6 → 2.2 s; a one-line source edit 6.0 → 1.2 s, writing 1 class and 3 class properties instead of 20,000 and 60,000 (the revision holds 20,000 class rows afterwards, not 40,000); fork 12.3 → 2.1 s; merge copy 5.8 → 2.3 s; publish 1.6 → 1.7 s (2,000 statements fewer; the time is schema generation). At 2,000 classes: 0.47 → 0.28 s, 0.45 → 0.21 s, 0.57 → 0.11 s, 0.46 → 0.18 s, 0.67 → 0.20 s, 0.21 → 0.11 s.
- Behaviour to know: a source apply no longer gives unchanged classes new ids, and a changed class keeps its id, canvas position and folder. A dropped class is still soft-deleted.
- Helper:
1.816.0 — 2026-11-22
Performance
- Batch loaders for paths, operations and the canonical model (DBP-1.6, #7189). OpenAPI 1.640.0 (version only;
no schema change). No endpoint's request, response or permissions change. A corpus test reads every valid import
corpus document with the old and the new loaders and requires identical output.
- One path loader: new
app.path_operation_loaderreads a version's paths, operations, descriptions, parameters, request bodies and responses with one statement per table (6 in all), assembled in Python. It replaces the1 + P + 4·Oloop in the four places that had it: the OpenAPI generator's path load (document render,versions_routes, the compatibility engine, the URL-import refresh sweep),GET /v1/paths/{tenant}/{version}/{path}/full(Studio canvas), and the source-apply read on the transaction's cursor (_cursor_paths_data,_cursor_current_merged_document). NewDatabase.load_paths_for_versionandDatabase.get_operations_with_details_for_path. Content types keep the order the per-operation reads returned (physical order, now asked for withORDER BY ctidinsidejson_agg). - Source apply:
_cursor_current_merged_documentreads every class's properties in one statement instead of one per class, while the version's row lock is held. - Canonical model:
load_canonical_apireads each child table (api_operations,api_messages,api_fields,api_agent_skills) once for the version, byversion_id, and groups the rows by parent; every read names its columns instead ofSELECT *. 8 statements, whatever the size (was one per service, operation, type and agent). - Per-item loops batched: the public JSON Schema endpoint and the component materialization preview use
get_properties_for_classes;GET /v1/classes/{tenant}withoutversion_iduses newget_classes_for_tenant; xRegistry andagents.json/llms.txtuse newlist_browse_versions_for_projects; identity suggestions and the z/OS Connect binding use newget_operation_keys_for_projects; the MCP Registry listing reads every server's snapshot, capability items, newest source and SBOM in four statements (was about four per server) through newget_mcp_endpoint_versions_by_ids,get_mcp_capability_items_for_versions,get_newest_live_mcp_endpoint_sourcesandget_latest_mcp_source_sboms; the MCP category suggestion queue uses the first two; consumer feedback uses newlist_comments_for_threads;list_operational_componentsaggregates the published revisions in its summary query. - Measured on the DBP-1.1 scale database: a 1,000-operation spec's path load 4,251 → 6 statements (529 → 27 ms); its canonical load 1,007 → 8 statements (90 → 62 ms); the 20,000-class version's properties 19,000 → 1 statement (4.6 s → 0.39 s); the source-apply read of the 20,000-class version 19,033 → 12 statements (2.5 s → 0.54 s), of the 1,000-operation spec 4,257 → 12 (389 → 81 ms).
- Budgets:
tests/query_budgets.jsonrecords the same count at 10 and at 1,000 operations forDatabase.load_paths_for_version(6),GET /v1/paths/{tenant}/{version}/{path}/full(6),Database._cursor_current_merged_document(11),load_canonical_api(8) and the cold document render (19).apiome-db plan-checkaddsrest.operations_for_version,rest.operation_responses_for_versionandrest.canonical_operations_for_version. - UI: the paths export loader (
loadPathsForOpenAPIExport, used by repository merges) reads with the same six statements and runs on the caller's transaction client instead of checking out another pool connection; referenced classes read their properties in one statement; the relationship graph uses the batched property read; feature entitlements resolve every flag in one statement.
- One path loader: new
1.815.0 — 2026-11-22
Performance
- Lean version and project lookups for guards and re-reads (DBP-1.5, #7188). OpenAPI 1.639.0 (version only; no
schema change). No endpoint's request, response or permissions change; the project detail response is pinned by a
contract test.
- Core lookups: new
Database.get_version_core(id, tenant)andDatabase.get_project_core(id, tenant, *, include_deleted=False)read one row by primary key, joined to the tenant only. The version lookup skips the fork-source, upstream and creator joins and the security-axis LATERAL overlint_axis_evaluations.axes, and does not selectmetadata,mock_settingsorchange_log. The project lookup skips the creator join and theCOUNT(*)/AVG(quality_score)over every live version of the project. A value that is not a UUID is "not found", not a 500. - Guards moved: 120 existence and tenancy checks (44 version, 76 project) now use the core lookups, including the
shared resolvers (
resolve_project/resolve_versionin comments, consumer contracts, deploy gates and SDK publishing) and the_assert_version_in_tenant,_require_projectand_require_revisionhelpers. The detail endpoints and every caller that returns or hands on the row keepget_version_by_id/get_project_by_id; the versions rollup is still computed there, and only there. - Measured on the DBP-1.1 scale database (median of 20
EXPLAIN ANALYZEruns, planning included): the version lookup 0.243 ms → 0.055 ms (12 → 7 buffers), the project lookup 0.064 ms → 0.017 ms (10 → 3 buffers, one index scan onprojects_pkey). The project aggregate grows with the project's version count; the core lookup does not. - Tenant guard folded into the write:
update_class,delete_class,update_path,delete_path,update_operation,delete_operationanddelete_class_propertyare oneUPDATE … FROM/DELETE … USINGstatement joined toversionsandprojects(was a guard read plus the write).update_projectchecks the tenant and theexpected_updated_atprecondition inside itsUPDATE, and reads the project only when no row matched, to tell "not found" from a conflict (409). RETURNINGinstead of a re-read:create_mcp_category/update_mcp_category,create_mcp_endpoint_note/update_mcp_endpoint_noteandupdate_mcp_collectionreturn their row from the write itself;create_mcp_collectionknows its member count without a re-read;revoke_mcp_api_keywrites first and reads only when the key was missing or already revoked.- Fix:
create_mcp_collectionfailed on PostgreSQL (missing FROM-clause entry for table "c"): itsINSERTreturnedc.*columns without the alias. The insert is nowINSERT INTO apiome.mcp_collections AS c. - Guard lint and budgets:
tests/test_core_lookups.pyreads every module undersrc/appand fails on a full lookup whose result is only tested for truthiness or read for core columns, and on a full-row caller missing from itsFULL_ROW_CALLERSlist.tests/query_budgets.jsonrecords 1 statement for update and delete of a class, path and operation (Database.*labels).apiome-db plan-checkaddsrest.project_coreandrest.version_core.
- Core lookups: new
1.814.0 — 2026-11-22
Performance
- Blocking database work moved off the event loop (DBP-1.4, #7187). OpenAPI 1.638.0 (version only; no schema
change). The database layer is synchronous, and almost every route was
async def, so each query ran on the event loop and one slow query or lock wait stalled every other request in the process, health checks included. No endpoint's request, response or permissions change.- Plain
defhandlers: the 980 route handlers that never awaited are now plaindef, so FastAPI runs them on the request thread pool. That covers usage reads, document render, the list endpoints, import and export reads and the MCP catalog.merge_request_store.check_merge_request/merge_merge_requestand the merge routes they call are synchronous too. - Thread hops in the rest: the 122 handlers that must stay
async(they read an upload, call a subprocess or the network, or stream) now make each blocking call throughawait run_in_threadpool(...): directdb.<method>calls, calls that take thedbhandle such asenforce_permission, and same-module helpers that reachdb. Usage ingest (POST /v1/tenants/{tenant}/usage/ingest) is one of them. - Probes:
/livezstays on the event loop./readyzand/healthrun their database round-trip on the event loop's own executor, not the request thread pool, so they answer even when every request thread is busy. - Thread pool size: new
REQUEST_THREAD_POOL_SIZE(default40) sets how many requests one instance works on at once. Each working thread holds one connection, so the size is capped at half ofDB_POOL_MAX_IN_USE(default80); the other half stays free for background sweeps, imports and exports. Startup logs the size in use, and a warning when the configured size was lowered (app.request_threads). - Lint in the test suite:
tests/test_event_loop_db_lint.pyreads every module undersrc/appand fails on anasync defroute handler that never awaits, or that touchesdboutside a thread hop. Its allowlist holds four entries, each with its reason. The same file holds the acceptance test: with one request held inside a 5-second query,/livez,/readyzand a project list answer in under 2 seconds. - Thread safety: handlers now run side by side on worker threads. Per-request state (statement counts, the authorization memo, the statement-timeout override) already travels with the request's context, and each thread has its own connection.
- Plain
1.813.0 — 2026-11-22
Performance
- Authentication and permission resolution in one cached query (DBP-1.3, #7186). OpenAPI 1.637.0 (version only;
no schema change). Which requests are allowed or denied does not change.
- One statement:
Database.get_authorization_context(user_id, tenant_slug=… | tenant_id=…)returns the tenant row, the membership status, the administrator flag and the effective permission set together. JWT authentication,enforce_permission/has_permission,is_user_tenant_adminandget_effective_permissionsall read it. A JWT request with a permission check now runs 1 authorization statement on a cold cache (was 5–8) and 0 on a warm one. The hot-endpoint budgets intests/query_budgets.jsondrop by 2–3 statements each (project list 4 → 2, document warm 8 → 5). - Caches: a per-request memo (
request.state.authz_memo, started by the observability middleware), plus a process cache keyed by (user, tenant) forAUTH_CACHE_TTL_SECONDS(default30,0= off). Member, role, role-grid and SSO-provisioning writes made through the API invalidate it at once. Changes made in the web app or on another instance apply within the TTL.AUTH_CACHE_MAX_ENTRIES(default10000) bounds each cache. - API keys: a key that verified within
API_KEY_CACHE_TTL_SECONDS(default60,0= off) skips bcrypt. The process keepssha256(key)→ the matched row and re-reads only that row by primary key, with the stored hash it verified against. A key deleted, disabled, expired or regenerated anywhere, or whose tenant is disabled, is refused on its next request. Thelast_used_atwrite is skipped while this process wrote it under a minute ago. The MCP registry's MCP-key check (resolve_mcp_api_key_tenant_id) is cached the same way. - Edit-permission probe: the five sequential
SELECT 1probes_cursor_actor_can_edit_versionsran while holding a version row lock are oneEXISTSexpression.
- One statement:
1.812.0 — 2026-11-22
Performance
- Connection layer: autocommit reads, statement timeout, bulk-write helper, long-lived sweep connections (DBP-1.2,
#7185). OpenAPI 1.636.0 (version only; no schema change).
- One statement per read:
execute_queryand_execute_writerun in autocommit when the connection is idle, so PostgreSQL receives the statement alone, without psycopg2's implicitBEGINbefore it andCOMMITafter it. Multi-statement writers (_begin_tx,_guarded_tx,db_cursor, raw cursors) keep their transactions.Database.read_tx()runs several reads against oneREPEATABLE READ, READ ONLYsnapshot. - Statement timeout:
DB_STATEMENT_TIMEOUT_MSnow defaults to30000(was0, off). A statement past it raisesStatementTimeout(apsycopg2.errors.QueryCanceled), which a request answers as503with error typestatement_timeout. Imports, exports, document migrations, the Compass catalog import and every background sweep run underlong_statements(), which usesDB_LONG_STATEMENT_TIMEOUT_MS(default1800000). - Bulk writes:
Database.bulk_insert(table, columns, rows, returning=None, page_size=1000)sends oneexecute_valuesstatement per page.Database.bulk_upsert(...)sends oneINSERT … SELECT FROM unnest(…) ON CONFLICTstatement. The repository file walk's per-rowexecutemanynow usesbulk_insert. - pgvector: the adapter is registered once per connection (
Database.vector_ready), not before every semantic query. - Sweeps: each of the 18 lifespan sweeps and the push-webhook instant refresh keeps one
Databaseacross ticks. Its connection goes back to the pool between ticks (and forgotten session advisory locks are dropped), so a tick no longer reconnects. The catalog-refresh and URL-import-refresh sweeps take and release their advisory lock on one dedicated connection (SessionAdvisoryLock): before, the release could run on another pooled connection and leave the lock held. - Connection cap:
DB_POOL_MAX_IN_USE(default80,0= none) caps the connections one instance has in use. Past it,connect()raisesConnectionPoolExhaustedand a request answers503 database_busy. Sizing rule:DB_POOL_MAX_IN_USE× REST replicas <max_connections(see Operating Apiome).
- One statement per read:
1.811.0 — 2026-11-22
Performance
- Scale benchmark database, query-count budgets and slow-query visibility (DBP-1.1, #7184): the groundwork every
other PostgreSQL performance ticket measures against. OpenAPI 1.635.0 (version only; no schema change).
- Statement counter: every connection the API opens counts its SQL statements and their time per request
(
app.statement_stats). Eachhttp_requestaccess-log line now carriesdb_statementsanddb_time_ms.APIOME_DB_STATEMENT_SERVER_TIMING=truealso sendsServer-Timing: db;dur=…;desc="N statements"(off by default), andAPIOME_DB_STATEMENT_WARN_THRESHOLD=<n>logs a request with more thannstatements at WARNING (off by default). - Statement budgets:
assert_max_queries(n)fails a test whose block runs more thannstatements and lists them.tests/test_query_budgets_db.pyholds six hot endpoints (project list and detail, version list and detail, the revision document cold and warm) to the counts recorded intests/query_budgets.json, authentication included. - Scale database and nightly plan check:
apiome-db seed --profile scaleandapiome-db plan-checkbuild the benchmark database and hold the hot queries to their plans every night (apiome-db-scale.yml).
- Statement counter: every connection the API opens counts its SQL statements and their time per request
(
