Skip to main content

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.js with data-capture) or call recordFieldUsage from 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-capture metadata) 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 read and the GitHub Action's fields: read do 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 stub does 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 test to 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 test runs 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 with command: 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-Capture header; 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 says queued, or not-recorded with 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 pact commands 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 an apiome pact command, 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_URL and PACT_BROKER_TOKEN into 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 through PACT_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 its apiome pact export-consumer-contract / export-postman command; the CLI gains --all-consumers, --state-setup and --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 --follow does 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, set and preview do 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-undeployment and record-support-ended do 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-deployment and record-release do 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-version and restore-version do 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-pacticipant and delete-pacticipant do 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 check command
  • 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 an apiome pact publish command, 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-webhook command, a pact-broker command, 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 every apiome pact command 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 contracts signal with the can-i-deploy verdict, a version publish can warn or be blocked on failing contracts (the Contracts card in Publish), apiome diff --consumers names 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 contracts signal: 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.yml runs a standalone broker (Postgres, the REST API and automatic HTTPS) answering the Pact CLI, the Pact libraries and can-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-run first 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-deploy answer 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 with auth.kind secret. 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 publish or pact-js publishPacts your 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 test and production with pact-broker create-environment, then run pact-broker record-deployment after 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 use record-release and record-support-ended. A provider verifier's deployed, released and environment selectors 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 production now 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-unknown waits for a result that has not arrived yet, --ignore leaves one application out, and an environment marked contractRequired refuses a version with no pact. The same answer is on GET …/pact-broker/can-i-deploy and the matrix on GET …/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: true in 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. Add includeWipPactsSince and 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-broker CLI, 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 on main (or develop, master) sets the main branch, results from the Ruby pact-provider-verifier are accepted, and the pact-js verifier can fetch its pacts. An endpoint Apiome does not serve answers 501 with a link to the page and the issue that tracks it, never a bare 404.
  • Pact Broker: contract webhooks — Apiome can now tell your CI when a pact needs verifying and when a verification finishes. pact-broker create-webhook and create-or-update-webhook work unchanged with the broker base URL and token you already use. Use the contract_requiring_verification_published event 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-deploy decides. It links the page for each step, and Help & docs finds it when you search for can-i-deploy or contract 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 with apiomeVersion: "ledger-api@1.4.0" to use an Apiome version's document; a provider bound to its project can say just latest. 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, fail or partial: partial means nothing contradicts the pact, but something (a date matcher, 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-deploy and 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's verificationResult.kind reads native or bidirectional. 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, inconclusive or missing. Without passing evidence the contract's comparisons read unverified, can-i-deploy warns (or, if your operator sets the fail policy, says no), and each matrix row says providerContractVerified. The new apiome 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 on GET …/pact-comparisons/<resultId>/fidelity, linked from each bi-directional result as apiome: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, and apiome 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 same sha256: 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 and can-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>/verify selects 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 contentType rule judges an image, a PDF or another binary response by its bytes, so any JPEG matches image/jpeg. Three results now agree with other Pact verifiers: a regex must match the whole value, a pact that records an empty body accepts only an empty response, and an Accept header 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 … (or POST …/pact-version/<sha>/external-verification-results) takes a pact_verifier_cli --json report 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 3 messages or 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 grpc or connect verification 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: a query is no longer held back as a mutating POST, and a reply with errors the 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 is incomplete on 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 pact commands — the Apiome CLI now has the pact-broker commands your pipeline already runs: apiome pact publish, can-i-deploy, record-deployment, record-release, create-environment, create-webhook, list-pacticipants and describe-version take the same flags, print the same lines and exit the same way (0 when it worked, 1 otherwise), and read PACT_BROKER_BASE_URL and PACT_BROKER_TOKEN. apiome pact verify runs hosted verification in one step, and --output markdown writes 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 migrate is 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-username can 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, for can-i-deploy), Pact: consumer + deploy (pact:read pact:publish, to publish pacts and record deployments) and Pact: CI verifier (pact:read pact: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 pact reads PACT_BROKER_PASSWORD as 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-action publishes the consumer's pacts, asks can-i-deploy and 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-deploy answer 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.list lists the latest pact of each consumer and provider, with how its last verification went. pact.matrix and pact.can_i_deploy answer yes, no or unknown with the reasons, like apiome pact can-i-deploy. pact.record_deployment records 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 with newman 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-broker moves to Apiome by changing the command to apiome pact: same flags, same log lines, same exit codes, and PACT_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 the pact.* 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 the apiome pact publish command 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-deploy command. 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-deploy and record-deployment commands 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/generate takes fields: 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's left_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 with 422 pact-generate-field-usage-unavailable (pointer /fields) and the reason. report.fields and report.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-plugin Synchronous/Messages interactions with the mocked version's descriptors in metadata.plugins, and event-channel messages Asynchronous/Messages interactions (metadata.channel, rules under matchingRules.content). interactions[].protocol says which. A streaming gRPC method, a version whose descriptors cannot be built, or a message that no longer fits its type is in report.excluded with the reason. report.spec_check compares a message pact with the AsyncAPI form of the mocked version; GraphQL and gRPC pacts are not compared (they are verified by replay) and reason says so.
    • GET …/pact-captures/sessions and …/sessions/{id}: each session's field_usage totals; the session detail lists the reported fields per operation (field_usage[]); each call's protocol (http, graphql, grpc, message).
    • apiome-db V465: mock_consumer_capture_call.protocol (a gRPC call stores its gRPC status, 0–16) and mock_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; needs fallback_mock {project, version}, whose spec mock answers a request no interaction matches) or not-implemented (a 501). Answers the stub with its url and created. pacts:create; audited pacts.stub.save. 422 pact-stub-name-invalid / pact-stub-source-invalid / pact-stub-fallback-mock-required.
    • GET /v1/tenants/{t}/pact-stubs (provider narrows) and GET …/pact-stubs/{provider}/{name} — the stub and its report: the pacts its sources choose now (with the sources that chose each), every interaction served (method, path, status, provider states to send as X-Mock-Scenario), and skipped — 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; audited pacts.stub.delete.
    • apiome-db V464: pact_stub, and pact_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 — what apiome pact record --publish calls after a test run: session (the capture session the pact came from; it names the mocked version, consumer and consumer version), pact, tests_passed, optional test_exit_code, branch, tags, build_url. The policy of that version and consumer decides the outcome: 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) or published (through the same path as POST …/contracts/publish; a looser pact under publish-notify also tells the provider's and the consumer's owner teams through PFX-6.4 routing, reported in notified). reason says why in one sentence; change is first, unchanged, changed or looser, with the diff in changes. pacts:create; a pact:publish API key may call it; audited pacts.recording.run; catalogued as an Apiome addition.
    • GET / PUT /v1/tenants/{t}/pact-recording/settings (project, version, consumer) — publish_when (tests-pass default / always) and if_looser (publish-notify default / hold), saved, and the last_run. pacts:view / pacts:edit; saving is audited pacts.recording.settings.
    • GET /v1/tenants/{t}/pact-recording/held (status held default / published / discarded / all, limit; held_count counts 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, audited pacts.held.approve) and POST …/held/{id}/discard (note; kept, marked discarded; pacts:edit, audited pacts.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/generate takes exactly one of session, traffic or scenarios (none, or more than one, is a 422). traffic — project, version, consumer, consumer_version, optional since / until (with a time zone) and caller (an API key id, or none for 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 plus pairs (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.kind says which (session, traffic, scenarios) and report.session is null for the other two. A traffic range holding more than one generation reads says so in report.source.truncated / reason. A pair the mock cannot serve as one fixed answer is in report.excluded with scenario and the reason; a sequence's note (its first answer is used) is in the interaction's notes. 404 capture-version-not-found for another workspace's version; 422 pact-generate-scenarios-spec-unavailable when 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, or none) most calls first, max_calls and retention_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, status and note, or the reason it 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 follow pattern, length and range bounds.
    • All three need pacts:view and versions:view and 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/generate takes leave_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 new report.left_out_interactions with its calls and the reason; a name the session has no interaction for is listed there too (calls: 0), never ignored. report.summary gains left_out (calls) and left_out_interactions. Leaving every interaction out answers pact: null with an empty_reason that says so.
    • report.spec_usage: operations_used of operations_total (the mocked spec's operations) and response_fields_used of response_fields_total (the fields the used operations' response schemas declare). null when 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_path of GET / PUT …/pact-setup takes mock (record it from the hosted mock) beside tests and spec; apiome-db V462 widens the check constraint. The first-pact section'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/generate turns 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.excluded with 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's params.
    • matching: exact (first call's values), type (default; type on $) or spec (also uuid / date-time / date formats, 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 sometimes null is 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 type match, or left out; both reported.
    • Per-field overrides (exact, type, integer, number, decimal, boolean, uuid, datetime, date, regex, omit), each reporting applied_to and not_applied with reasons.
    • report.spec_check compares the pact with the mocked spec revision; report.previous diffs it against the consumer's previous pact (added, removed, per-interaction fields_added / fields_removed, looser).
    • fields: read is refused with pact-generate-field-usage-unavailable until field-usage reports exist (PFX-9.8). A provider is taken from the pacticipant bound to the mocked project, else pact-generate-provider-unknown.
    • Requires pacts:view and versions:view; budgeted by pact_check_rate_limit_per_minute; permission-matrix row. app.pact_value_match.matcher_problem is 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 answered X-Mock-Capture: queued with X-Mock-Capture-Session; a tag that cannot be read, an unknown, revoked or foreign capture URL, or a full queue is answered not-recorded with X-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's proxyCapture.redaction); a record that still looks credential-bearing is refused.
    • GET /v1/tenants/{t}/pact-captures/sessions lists the live sessions (one per mock version, consumer and consumer version), newest activity first, filtered by project, version and consumer; 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 the X-Mock-Session token, request, response and what redaction removed. Calls a session could not take are counted by reason (session-full past 5,000 calls, credential-residual). Requires pacts:view. DELETE …/sessions/{id} deletes a session and its calls (audited pacts.capture.session.delete; pacts:delete).
    • POST /v1/tenants/{t}/pact-captures/links creates 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; audited pacts.capture.link.create; pacts:create). A capture URL tags calls only — a private draft mock still needs its API key. GET …/links lists them as live, revoked or expired (pacts:view); DELETE …/links/{id} revokes one (audited pacts.capture.link.revoke; pacts:edit).
    • GET / PUT /v1/tenants/{t}/pact-captures/settings: captures are kept retention_days (default 7, 1–30; the new value applies to calls recorded from then on; audited pacts.capture.settings; pacts:delete to change). A workspace may have 500 live sessions; calls that would open another are counted in refused_calls. Every read hides expired captures; the mock deletes them in batches.

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-setup answers the six sections of the set-up — pacticipants, environments, pipelines, first pact, provider's side, gates — each done, next or todo, 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 in candidates_omitted. Requires pacts:view.
    • PUT /v1/tenants/{t}/pact-setup saves 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). Audited pacts.setup.update. Requires pacts:delete.
    • POST /v1/tenants/{t}/pact-setup/github/secrets writes PACT_BROKER_BASE_URL and PACT_BROKER_TOKEN as 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. Audited pacts.setup.github.secrets. Requires pacts:delete.
    • POST /v1/tenants/{t}/pact-setup/github/pull-requests opens a pull request from apiome/contracts-setup adding .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 answers exists and its branch is brought up to date; the same file already on the default branch is skipped. preview: true calls nothing and answers with the file. Audited pacts.setup.github.pull_requests. Requires pacts:delete.
    • Both GitHub routes answer per repository and never fail as a whole: skipped carries 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 is 422 pact-setup-invalid-workflow before 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|python writes 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 from PACT_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).
    • states lists each state with its parameters, an example, registered (in the PFX-3.3 registry) and how many interactions name it; unregistered counts the rest. notices: provider-scaffold-state-unregistered, provider-scaffold-state-left-out (over 200 states or a name over 500 characters) and provider-scaffold-no-pacts. An unknown language is 422 provider-scaffold-language-unsupported; an unknown provider 404 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) answer operations: one entry per declared operation with the interactions it wrote (indexes into pact.interactions) and its placeholder_count / omitted_count. An operation with no interaction was left out; its omitted finding gives the reason. The pact document itself is unchanged.
    • POST …/pact-postman-collections takes stateSetup: each request that needs provider states gets a pre-request script that first POSTs {"state", "params", "action": "setup"} — the body pact_verifier_cli --state-change-url sends — per state, in order, to a {{stateChangeUrl}} collection variable (stateChangeUrl fills it in; empty otherwise). An unset variable or a failed setup stops the request with an error. stateChangeUrl without stateSetup, or a non-http(s) URL, is 422 pact-postman-export-invalid.
    • allConsumers with provider (and at most one of tag / branch) writes the latest pact of every consumer of the provider, one folder per consumer. A consumer without such a pact is a left-out notice (pact-postman-consumer-no-pact), never dropped; every notice names its consumer. consumer, consumerVersion, pactVersionSha or pact with it is a 422; a provider no consumer published a pact for is 404 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 query pact-broker can-i-deploy sends. facts.agreement holds asked, agree, not_asked and each difference with both answers and its cause: 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 reads checking meanwhile.
    • Who has moved. facts.moved lists each pacticipant's last publication — apiome, source or none — 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 cipher OPMS, 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 key 503 pact-migration-sync-unavailable. pacts:create and pacts:edit to switch, pacts:view to read; audited as pacts.migration.sync.update.
    • Settings: APIOME_PACT_MIGRATION_SYNC_ENABLED (kill switch), APIOME_PACT_MIGRATION_SYNC_INTERVAL (sweep tick, 60 s) and APIOME_PACT_MIGRATION_SYNC_BATCH_SIZE (passes per tick, 2).

Changed​

  • facts.source_error names the pact-migration-source-* code of a run the source broke.

1.884.0 — 2026-11-30​

Added​

  • Migration runs: apiome pact migrate on 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:create and pacts:edit; audited as pacts.migration.source.test.
    • POST …/pact-migration/runs (202) — start a run: mode: dry-run reads and checks everything and writes nothing; mode: copy imports, honouring options: 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 are 422 pact-migration-run-invalid. Audited as pacts.migration.run.start.
    • GET …/pact-migration/runs — the runs, newest first, and can_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 GET is 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 is pact-migration-source-refused.
    • A run whose worker goes away is closed as stopped after three minutes without a heartbeat and can be resumed.

Changed​

  • import_records takes replace_conflicts: with it, the source's pact or current deployment takes the place of a different one Apiome records (the run option conflicts: replace). POST …/pact-migration/import and apiome pact migrate are 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 / origin with 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), with configured and can_edit. pacts:view.
    • PUT …/pact-contract-settings/commit-statuses and PUT …/pact-contract-settings/agents — replace one group; an unknown field or a non-boolean is 422. Audited as pacts.settings.commit_statuses / pacts.settings.agents. pacts:delete.
    • Bi-directional verdicts set commit statuses and fire their webhooks when bidirectional is on: each new comparison stored by a pact or provider-contract publish runs the provider_verification_* webhooks and the commit statuses a published verification runs (#6941). Off (the default): nothing fires, as before.
    • pact-secrets records carry has_value and origin; a webhook in used_by carries enabled.

Changed​

  • Commit statuses follow the workspace's switches. A status on a commit whose switch is off is recorded as suppressed with reason pact-status-switched-off (listed in GET …/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} need read (on by default); …/record-deployment needs record (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 are 403 mcp-pact-agent-action-off / mcp-pact-agent-production with the reason, audited as pacts.agent.refused.
  • POST …/pact-migration/import no 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-invalid at /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_at and can_edit (pacts:delete). configured: false shows the defaults (clean-up off). pacts:view.
    • PUT /v1/tenants/{t}/pact-retention/policy — replace the rules. keep_deployed_or_released: false is 422 pact-retention-keeps-in-use (Deployed and released versions are always kept.); an unknown field, a repeated or padded tag and keep_other_branch_days without keep_other_branch_latest are 422 with the reason. Audited as pacts.retention.policy. pacts:delete.
    • POST /v1/tenants/{t}/pact-retention/policy/preview — what the saved rules, or the draft in rules, 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-up for the nightly run), what a restore brings back and purge_after. limit (≤ 100), cursor; 422 pact-retention-bad-cursor. can_restore. pacts:view.
    • The nightly clean-up: each workspace with nightly_enabled runs its rules once a day after 02:00 UTC on the retention tick (claimed FOR UPDATE SKIP LOCKED, audited as pacts.retention.nightly, deletions restorable); a refused run stores its reason in last_run.error and deletes nothing.
    • POST /v1/tenants/{t}/pact-retention keep selectors latest_per_main_branch, latest_per_other_branch, other_branch_days and tags; plans gain matched_by, pacts, results, and per-deletion pacts / results (dry runs).

Changed​

  • The purge, purge_after and the deletion impact's grace_days use the workspace's restore window (restore_window_days) instead of APIOME_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_label on deployed_version and released_version; ended_reason, replaced_id on deployed_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's verdict for 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, and idle rows for pacticipants with nothing anywhere (at most 50). At most 100 verdicts per read; the rest say checked: false with the reason (notChecked). pacts:view.
    • GET /v1/tenants/{t}/pact-environments/history — every deployed, undeployed, released and support-ended event, newest first, with actor, verdict (the answer when it was recorded; null when not known) and replaces (the version a deployment replaced; the replaced one has no event of its own). environment, pacticipant, cursor, limit (≤ 50). 400 pact-history-cursor-invalid; 404 for an unknown environment or pacticipant. pacts:view.

Changed​

  • Recording a deployment or a release (the broker routes and the MCP record_deployment tool) asks can-i-deploy first and stores the answer; recording never depends on it. PATCH …/deployed-versions/{uuid} and PATCH …/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} takes overrideCanIDeploy=true (default false): the Environments page's Record it anyway sends it when can-i-deploy answered no. It changes nothing about the deployment; the pacts.deployment.record audit row carries override_can_i_deploy in its params, so an override is never silent. A value that is not a boolean is a 422.

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 new name renames 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 by POST and PATCH (null clears it) and returned with aliases (the other names it has had, oldest first) on every pacticipant record; the Pact Broker document's displayName reads it, falling back to name. GET …/pacticipants/{ref}/deletion-impact (pacts:view) says what DELETE would 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 as pacts.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/runs takes the body of …/verify, refuses exactly what it refuses (same codes, before anything is sent), then replays the run in the background and answers 202 with 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 in log_dropped), and — once finished — result, exactly what …/verify would have answered. POST …/runs/{run_id}/stop ends the run before its next interaction: the pact cut short publishes nothing (run-stopped), pacts not reached are skipped with pact-verify-stopped, outcome stopped. POST …/runs/{run_id}/rerun replays 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-busy while the run is going). Runs are per API worker, scoped to the tenant (another tenant's run is a 404), kept 30 minutes after they end, at most 3 going per workspace (429 pact-verify-run-limit). Start and re-run need pacts:create and verification_evidence:create, stop pacts:create, read pacts:view; pact:verify / pact:read key scopes; audit actions pacts.verification.run and the new pacts.verification.stop; permission-matrix rows.
  • Schemathesis, Newman and Dredd reports for POST …/external-verification-results: format gains schemathesis (--report ndjson, one interaction per operation with each failed check as a mismatch, skipped scenarios noticed and not counted, a stream without EngineFinished recorded as failed; or --report junit), newman (-r json, one interaction per execution with each failed assertion; or -r junit) and dredd (--reporter xunit). auto recognises Schemathesis and Dredd JUnit by their suite names, Newman JSON by run.executions + collection, and Schemathesis NDJSON by its Initialize event. A format the body does not match is a located 422 naming the expected report; nothing is recorded. ingestion gains syntax (json, ndjson, xml).

Changed​

  • PactVerifyResponse.outcome may be stopped (live runs only); PactVerification.not_published_reason may be run-stopped. …/verify itself 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/preview takes the body of …/verify (target_ref and provider_version optional) 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 a refusals entry with the run's own code. pacts:view; pact:read key scope; permission-matrix reads row.
  • …/verify (and the Verification console's re-run and verify-all-stale, which share its session): verification.provider_states_setup_url POSTs 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; //host and other schemes are a 422); skip_already_verified lists pacts that already have a result for provider_version under skipped (pact-verify-already-verified) instead of replaying them — outcome already-verified when that is all of them, success then being whether those results passed. skipped moved from the console response to every verify response.

Changed​

  • Mutating requests are never sent to a production target. A run with verification.allow_mutating against a target whose environment is production is refused with 422 pact-verify-mutating-production before 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-connect with connection_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). New GET / PUT /v1/tenants/{t}/pacticipants/{p}/contract-sources says 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 as apiomeVersion renders it) and repository (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 as PUT …/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 is unchanged, a different one fails with the conflict); a redelivered webhook publishes nothing. Every attempt appends a pacts.contract.auto_publish access_audit row (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 / .json file); a repository without a push webhook is kept with a warnings entry. GET needs pacts:view; PUT needs pacts:edit (and imports:view with a repository) and is audited as pacts.contract_source.update (permission matrix row pacticipant.contract_sources). WebhookIngestResult.pushed_commit carries 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}/check takes the publish body (content, contractType, contentType, apiomeVersion, branch, verificationResults) — or contentUrl in place of content, read once through the SSRF-guarded client (public addresses only, at most APIOME_PACT_MAX_BYTES; the bytes come back in fetched.content to publish inline) — and reports what the publish would record, storing nothing: one results entry per pact the publish would compare with (the same selection and compare_with_target, evidence policy included) with verdict, success, the consumer version's environments and its first 10 failures; coverage (the contract's operations and the ones no compared pact uses, OpenAPI only); existing (a different earlier contract makes summary.publishable false — the publish would be 409); and selfVerification as the publish reads it. tags / buildUrl are accepted and named in ignored. An unknown provider has no pacts (provider.exists: false). A contentUrl that cannot be read is 422 provider-contract-url-unreadable. Requires pacts:view (versions:view with apiomeVersion, verification_evidence:view with a cited report); tenant-scoped; a restricted API key needs pact: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 now provider_contract_routes.prepare_request_contract, shared with the check; bidirectional_store.preview_provider_contract compares 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/check with {"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's verdict and success are what a publish would record (the same compare_with_target and evidence policy); each interaction is match, differs or not-in-spec, and a row that does not match carries expected (the pact's response) and declared (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 in unresolved with the reason; versions past 20 in skipped; summary.success is true only when every compared version passes and nothing is unresolved or skipped. 1 to 10 selectors; an unknown field or selector kind is 422 pact-check-invalid with pointer; a document that is not a pact is 422 pact-invalid under /pact. Requires pacts:view (a draft: selector also versions:view); tenant-scoped; a restricted API key needs pact:read; budgeted by APIOME_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._compare is now the public compare_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 (pact or bidirectional), verdict (failing, stale, no-provider-contract, unverified, verified), pending flag, the environments both sides are deployed in, and when it was last verified; plus counts and attention (up to three named pairs per status-strip category) over every pair, and the workspace's pacticipant and environment counts. Requires pacts: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 entry pact.integrations_pairs. A bad filter, search text or page is a 400 with a pact-integrations-* code; filter=mine with a credential that is not a user is pact-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-badges gains, per pacticipant, consumer_count (every consumer whose latest pact names it as provider) and consumers (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: every ConsumerVerdict gains broker (pacticipant, fromPact, consumerVersion, pactSha; null for a consumer with no bound pacticipant), the counts gain consumers_from_broker, and the markdown Consumer impact section adds a Pact Broker: line. The pacticipants are read in one tenant-scoped query. The apiome diff --consumers text report and the diff-action (new consumers input, default true) 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.publishPolicy in the deploy-gate policy body (off / warn / block, default warn; unknown values fall back to warn, never block). It is not part of the policy fingerprint, so check-suite evaluations stay current.
    • POST …/publish gains a contracts gate after the maturity gate: under block, a revision whose Pact can-i-deploy verdict (the deploy gate's contracts signal, app.pact_matrix.deployment_verdict) is "not deployable" is refused with 422 detail.contractsPublishGate; skipPublishChecks with a forcePublishReason goes past it. A missing verification result (pending), no bound pacticipant, a fault, or a caller without pacts:view (unavailable) never blocks.
    • GET /v1/versions/{tenant}/{project}/{revision}/contracts-publish-gate is the read-only preflight the publish dialog calls (versions:view; the verdict itself needs pacts:view).
    • Warned and forced publishes append version.contracts_gate to the workflow audit trail.

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}/gate gains a contracts signal (last in signals) judged by the same app.pact_matrix.deployment_verdict as GET …/pact-broker/can-i-deploy, so the two cannot disagree. It asks the pacticipant bound to the project about the revision's version label, against contracts.environment or, 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 without pacts:view gets unknown; a read that fails costs only this signal. Everything is read within the caller's tenant.
    • The policy body gains contracts.environment (default null). With several bound pacticipants the first by handle is judged and the others are listed in data.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} and POST …/pact-broker/contracts/publish resolve each new pact against the provider's project (the pacticipant's project) and store the consumer's next contract revision (CTG-4.1 rule 2) through app.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 matching notices. A provider not bound to a project, or a project without a renderable version, is skipped with provider-not-bound-to-project / project-specification-unavailable — never silently dropped. The same pact and specification revision is unchanged (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:create governs the publish.

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 migrate reads 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's created_at. Natural keys make a repeat unchanged; a label, tag, branch, repository or main branch a record adds is updated; a refused record carries code and message (pact-migration-invalid with 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; audited pacts.migration.import (permission-matrix row migration.import).
    • POST /v1/tenants/{t}/pact-migration/check: the dry run — exists / would-create / refused per 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_result with number, create_environment, record_deployment with replace_current, record_release, create_webhook); None keeps CURRENT_TIMESTAMP, so every existing caller is unchanged. New code pact-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 through pact_version_content_key and idx_pact_publication_pair), now the named statement pfx_matrix_integrations, instead of a DISTINCT over every publication (provider to environment p95 35.5 → 5.2 ms).
    • Rows: each named pacticipant's newest publications are read in order (a LATERAL branch 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_version rows 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) and idx_pact_publication_provider_recent (provider_id, created_at DESC, id).

Added​

  • GET /v1/tenants/{t}/pacticipants/{pacticipant}/labels is paged: limit (1–200, default 50) and cursor; the answer gains has_more and next_cursor. A bad cursor is a 400.

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 …/confirm and POST …/owners:assign accept a pacticipant (its id); reading needs pacts:view, changing pacts:edit; audited as owner.* 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_drift finding (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 carries pacticipant and ownerSource.

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 than unlinked.
  • 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 (name is 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 its reference (${user.<name>}), value_updated_at and used_by (the webhooks and verification targets that refer to it). PUT replaces the description and, with value, rotates the value. At most 200 per workspace. Reads pacts:view, create pacts:create, update pacts:edit, delete pacts:delete; writes audited pacts.secret.create, pacts.secret.update, pacts.secret.delete (never with the body). Refusals: 422 pact-secret-invalid (with pointer; 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, GitHub target.token and signingSecret (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-invalid pointing 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 read secretReferences.
    • Verification targets refer to secrets. auth.kind: secret with auth.ref: <name> (checked to exist in the target's workspace when stored, target-auth-invalid otherwise), presented with the target's scheme like an env value; 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, and secret in verification_target.auth_kind.

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, each ok / warn / fail / unknown with a pact-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; unknown signals never make a pair worse. Worst first, at most 500 pairs (truncated, omitted_pairs); counts cover every pair the provider/consumer filter matches; totals the 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 for 90d), 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 unknown window or state is 400 pact-health-window-invalid / pact-health-state-invalid; a pair with no pact is 404 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).

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 …/overrides and DELETE …/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, state incl. open, cursor, limit ≤ 50), GET …/{id}, POST …/{id}/acknowledge (note; a closed request is 409 pact-republish-request-closed). States: requested → acknowledged → republished (the consumer published again; also closed at once by the publish), cleared (verified meanwhile) or expired (escalated). One open request per pair; not reopened for the same pact version until it is verified again.
    • Sweep (app.pact_remediation_sweep, every APIOME_PACT_REMEDIATION_INTERVAL s, default 300; kill switch APIOME_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 as owner_verification_drift (unlinked when neither), and runs due scheduled verifications with the hosted verifier (trigger: scheduled; at most APIOME_PACT_SCHEDULE_BATCH_SIZE per 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-status entries gain overdue, stale_since, settings, republish_request and scheduled; counts gains overdue and republish_requests; the status gains settings.
    • Audit and RBAC. Reads need pacts:view; writes pacts:edit and write pacts.verification_settings.update, pacts.verification_override.save|delete and pacts.republish_request.acknowledge (docs/pacts-permission-matrix.json).

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_audit row. 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 new app.pact_audit.audited_write, which appends the row once the route succeeds (best-effort, like every other write_access_audit caller; 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 MCP record-deployment route writes pacts.deployment.record. The row's detail holds the route, its path parameters, the status of a Response and the created id — never a request body. A refused call (raised error or a 4xx/5xx Response) writes no row.
    • The pacts permission matrix. docs/pacts-permission-matrix.json tables every Pact write with its permission and audit action; tests/test_pacts_permission_matrix.py fails 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 from apiome.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_id and pact_commit_status.repository_id (push_webhook_delivery_events and tenant_repositories gain UNIQUE (id, tenant_id)). tests/test_pact_tenant_isolation_migration.py replays every PFX migration and fails on any single-column reference left between tenant-carrying rows; tests/test_pact_tenant_isolation_db.py proves the refusals on a migrated database.

Fixed​

  • An endpoint wrapped by audited_write keeps 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, tag pact-broker, off the catalogued Pact Broker surface) for the console's Environments pages; {environment} is the environment's name. All need pacts: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); truncated when either list passes 2000 entries.
    • GET …/pact-environments/{environment}/deployments — every deployment recorded to the environment, current or replaced, newest first, with currentlyDeployed, deployedAt, undeployedAt and recordedBy; pacticipant narrows (an unknown one is a 404 pacticipant-not-found), cursor pages (nextCursor; one it did not hand out is a 400 pact-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-deploy verdict, the version it replaces in that instance (alreadyDeployed when it is the same), and impacts — 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 verdict before and after and the effect (breaks, fixes, clears, blocks, changes, unchanged), plus a summary of the effects. At most 20 versions are checked; the rest are in notChecked with the reason (pact-simulation-over-limit). Both verdicts come from the one verdict function can-i-deploy uses (query_matrix gains an environment_override for the what-if). An unknown environment, pacticipant or version is a 404; a malformed applicationInstance a 400 pact-simulation-invalid.
  • apiome-db V446: idx_deployed_version_environment_history (environment_id, tenant_id, seq DESC) replaces idx_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, tag pact-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; webhook narrows to one webhook (a webhook of another workspace is a 404), status to one status, cursor pages (nextCursor; a cursor it did not hand out is a 400 pact-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 (triggerType user, same event and template parameters), retried as any other; the original is kept. 202. A firing still queued or retrying is a 409 pact-webhook-delivery-in-progress; one whose webhook is disabled a 409 pact-webhook-disabled. pacts:edit.
  • apiome-db V445: idx_pact_triggered_webhook_history (webhook_id, tenant_id, created_at DESC, id DESC) replaces idx_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, tag pact-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, and stale (the pact version has no result); counts for 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_id and interaction counts; consumer narrows, cursor pages (next_cursor; a cursor it did not hand out is a 400 pact-history-cursor-invalid), limit 1–50. pacts:view.
    • GET …/results/{result_id} — one result with its stored test_results (mismatches with expected / actual), a bi-directional comparison, and its evidence run (ECA-1.3) when the caller also holds verification_evidence:view; evidence_status is attached, not-recorded, not-found (pruned) or forbidden. pacts:view.
    • POST …/consumer/{consumer}/pact-version/{sha}/reverify — run one pact version again on a verification target with the hosted verifier; without provider_version it verifies as the provider version and branch of the pact version's newest result (none: 422 pact-verify-provider-version-required). trigger: manual.
    • POST …/verify-stale — verify every stale pact as provider_version (required); trigger: stale-recheck. At most 25 per run: the rest, and pairs already running, are listed in skipped (pact-verify-over-limit, pact-verify-in-progress) with a reason.
    • Both runs need pacts:create and verification_evidence:create (API-key scope pact:verify) and hold a per-pair session advisory lock: a re-run of a pair whose console run is still running is a 409 pact-verify-in-progress.
  • verification_result gains trigger (published, hosted, manual, stale-recheck, bidirectional; null before V444), duration_ms and evidence_run_id, and the index idx_verification_result_provider_history. Pact verifiers' results record published, the hosted verifier's hosted with the run's duration and evidence run, bi-directional comparisons bidirectional. The Pact Broker result document is unchanged.

Changed​

  • app.pact_verifier_service: the target, credentials and provider-state handler of a run are resolved by open_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, tag pact-broker, pacts:view, stateless) writes a Postman Collection v2.1 from a pact (app.pact_postman):
    • The pact is a stored one — provider + consumer and at most one of consumerVersion, tag, branch, pactVersionSha (none: the latest), read in the caller's tenant — or an inline pact document (shape and pact_max_bytes checked; 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 4 contentType becomes a Content-Type header when the request has none). Provider states go into the request description. A saved example carries the expected status, headers and body.
    • tests (default true): a test script per request checks the status, each expected header (a Content-Type by media type) and the body by Pact's default rules (extra object keys allowed, arrays of the same length, other values equal).
    • notices (code, outcome left-out | not-asserted | not-applied | info, pointer, message, description, paths): message pacts (v3 messages, v4 Asynchronous/Messages and Synchronous/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 bad baseUrl), 422 pact-invalid, 413 pact-too-large, 404 pact-not-found / pacticipant-not-found, and 422 pact-postman-no-http-interactions (with notices) when nothing can be exported. Unknown body fields are 422.
    • The schema side is unchanged: the postman export target already writes a collection from a version's specification.

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-mcp tools pact.list, pact.matrix, pact.can_i_deploy and pact.record_deployment (app.mcp_pact_routes, tag internal-mcp-pacts, fail-closed behind X-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); optional provider / consumer filters; keyset pages by provider then consumer handle (limit ≤ 100, opaque nextCursor). No pact content.
    • POST /v1/internal/mcp/pacts/matrix — the broker matrix query from structured selectors, latestby, a destination (toEnvironment, toTag, latest, mainBranch) and ignore. The request is turned into the q[][…] query string and read by parse_matrix_query, so validation and semantics are the broker route's.
    • POST /v1/internal/mcp/pacts/can-i-deploy — pacticipant + version to toEnvironment or toTag.
    • POST /v1/internal/mcp/pacts/record-deployment — by environment name (404 pact-environment-not-found for an unknown one), optional applicationInstance; created: false when the version already was the current deployment there.
    • Bounded answers: the verdict reads every row; at most maxRows compact rows (default 50, ≤ 100) and 50 notices are returned, with rowsTotal, rowsTruncated and noticesTruncated; retryAfterSeconds while 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:view for the reads and pacts:create to record a deployment are enforced through enforce_permission. A key without an owner is refused 403 mcp-pact-key-has-no-owner; an unknown one 403 mcp-pact-key-unknown. Unknown body fields are 422.
    • app.mcp_tool_registry: new pact toolset 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 stable reason_code. After a pact publish commits (POST …/contracts/publish, PUT a pact, the consumer-contract export publish) the consumer's commit gets pending, or the provider main branch's verdict for that exact content; after a verification result commits (broker POST …/verification-results, hosted …/verify) the provider's and the consumer's commits get pass / fail (app.pact_commit_status_store). The target is the live tenant_repositories row whose clone_url_normalized matches the pacticipant's repository_url, on github.com or gitlab.com; the version number must be a 7–64 hex commit SHA. Sent through app.provider_status_adapter with the registration's stored linked-account token (provider_check_store._repository_token, never stored or returned): new GitHubCommitStatusAdapter (POST /repos/{o}/{r}/statuses/{sha}, works with OAuth tokens, 140-char description) and GitLabCommitStatusAdapter (GitLab statuses, pending kept as pending). Every verdict that cannot go is recorded suppressed (pact-status-no-repository, pact-status-version-not-a-commit, pact-status-repository-not-registered, pact-status-provider-unsupported, check-provider-forbidden, check-publishing-disabled under APIOME_PROVIDER_CHECKS_ENABLED=false); a provider refusal is failed with its code and redacted message. A status problem never fails the publish or the verification. New endpoints (tag pacticipants, tenant from the credential): GET /v1/tenants/{tenant_slug}/pact-commit-statuses (pacts:view; pacticipant, version, outcome filters; keyset limit ≤ 200 / cursor, X-Next-Cursor) and POST …/pact-commit-statuses/{status_id}/retry (pacts:edit; re-resolves the target; 404 pact-status-not-found, 409 pact-status-not-retryable for 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_ck by pact:read, pact:publish and pact:verify (agent keys stay pinned to agent:invoke). Every route under /v1/tenants/{tenant}/pact-broker and /pact-verifier (app.pact_broker_auth) now also takes the workspace API key as the password of HTTP basic auth (username ignored), as the pact-broker CLI's --broker-username / --broker-password and the Pact libraries send it; basic auth with no password, a bare Authorization value and any other scheme are refused 401 with where the key goes (never echoing the value), with WWW-Authenticate: Bearer, Basic realm="apiome-pact-broker". The app.auth allowlist admits: pact:read — every GET of both mounts, the read-only POSTs (…/for-verification, …/provider-states/check) and GETs of /pacticipants and /pacticipant-labels; pact:publish — POST …/contracts/publish, PUT a pact or a provider contract, PUT a version's tag or branch, recording a deployment / release (POST …/deployed-versions / …/released-versions, PATCH either); pact:verify — POST verification results (with or without metadata) and external verification results, PUT a tag or branch, hosted …/verify, POST / PUT provider states. Deletes, webhooks, environments, labels and cleanup stay full-access only. The route's pacts RBAC check still applies to the key's user. A test guard fails when a new broker / verifier route is not classified. api_key_from_basic moved from app.schema_registry_confluent_routes to app.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, the PactVerifyRequest.target_ref description, and the ContractCase / ContractPactInteraction descriptions). No migration. The pact compiler (app.contract_suite_pact) now compiles a gRPC call recorded by the Pact protobuf plugin (Pact 4 Synchronous/Messages, transport: grpc) into a grpc-protocol case on the XPC-3.2 RPC model, read through the FileDescriptorSet the pact files under metadata.plugins[protobuf].configuration[descriptorKey] (new pure module app.pact_plugin_grpc): procedure /{package.Service}/{Method}, protobuf-JSON request and expected reply, expect_code from the recorded grpc-status, idempotency_level from the method options, response rule paths renamed to protobuf-JSON names, and integer / number rules on 64-bit integer fields applied as a digits regex. A suite of gRPC calls only is stamped protocol: grpc. A GraphQL-over-HTTP interaction (JSON POST, GET, application/graphql) keeps its HTTP request and carries the XPC-1.2 graphql block (new pure module app.pact_graphql), so is_mutating_case reads its operation type and the runner fails a reply with unrecorded errors (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) resolves http, grpc or connect targets (contract_protocols.PACT_VERIFICATION); plan_pact_run(target_protocol=…) holds back what the target cannot speak with pact-interaction-protocol-mismatch, so a mixed pact is incomplete on one target. New suite codes PACT_PLUGIN_PARTIAL, PACT_GRAPHQL_UNREADABLE and PACT_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 under unsupported.

1.852.0 — 2026-11-25​

Added​

  • Message (async) pacts (PFX-3.6, #6936). OpenAPI 1.676.0 (the provider-contract PUT / GET descriptions 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} takes contractType: asyncapi (also read from the document when contractType is omitted; inline only — asyncapi with apiomeVersion is 422 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_version holds the AsyncAPI version, operation_count the message count); the contract document reads contractType, asyncapiVersion and messageCount. The bi-directional store compares such a contract with the pact's messages through the new pure engine app.pact_asyncapi_compare.compare_pact_to_asyncapi: each Pact 3 messages entry and Pact 4 Asynchronous/Messages interaction is resolved onto a channel/message (app.pact_asyncapi_index: metadata channel / topic / destination / queue …, address templates, the description against key / name / messageId / title, only messages the provider sends — AsyncAPI 3 send, AsyncAPI 2 subscribe — and, when several remain, the first whose payload accepts the contents), then its content type, metadata against headers, contents against a JSON Schema payload (response view of app.pact_oas_schema, which now reads AsyncAPI documents) and its matching rules (Pact 4 content / 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 4 Synchronous/Messages (synchronous-message-not-compared, deferred) are reported, never dropped. The stored comparison reads contractType: asyncapi / asyncapiVersion and each interaction a message object; 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-results takes a report produced elsewhere — pact_verifier_cli --json output or JUnit XML — and stores it as an ordinary verification result (the matrix, can-i-deploy, pending pacts and webhooks see it). providerApplicationVersion is a query parameter, with buildUrl, branch, tag, format, verifier, verifierVersion and providerVerificationReportId. The response is the stored result plus an ingestion object (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 with 422 pact-verification-invalid. Requires pacts:create, tenant-scoped like every broker route. apiome pact publish-verification-results is 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 / body only). No migration, no new path. The hosted verifier's engine (app.pact_value_match) now applies every matcher of Pact specifications 2–4, published as VERIFIER_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 in tests/fixtures/pact_spec_vectors, MIT), plus supplementary vectors for the v3/v4 matchers and generators (tests/test_pact_spec_vectors.py).
    • contentType is applied instead of failing as "cannot be applied": the type is detected from the bytes (new app.pact_content_type: magic numbers for common image, document, archive, font, audio and video formats, then JSON / XML / text), never from the response's Content-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.
    • regex is 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 the regex rule named.
    • Accept is compared as a list of media types like Content-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 empty content now compiles to has_body: true, body: "" and accepts only an empty response body (previously any body). A pact with no body key still accepts any body. CONTRACT_SUITE_COMPILER_VERSION 4 → 5, so pact-suite digests change once.
    • PACT_BODY_UNREADABLE on an undecodable response body under a contentType rule on $ is info (the verifier judges it by its bytes) instead of degraded.
    • 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-states and GET|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) or fixture (recorded requests / teardown_requests sent to the target with ${param} substituted; empty requests means the target already holds the data). Per-target overrides replace the default on one verification target, resolved in the caller's tenant. Refusals carry a JSON Pointer (provider-state-invalid 422: a fixture path off the target, a placeholder naming no parameter, a credential header, two overrides of one target; provider-state-name-taken 409; provider-state-not-found 404). pacts:view / create / edit / delete on the provider.
    • POST …/provider-states/check selects 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 on target_ref, and each problem — provider-state-not-registered, provider-state-param-missing, provider-state-setup-blocked (blocking) and provider-state-param-undeclared (warning); ready when nothing blocks; unused lists 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}/verify holds back, before anything is sent, every interaction whose states the registry cannot set up (the codes above), unless verification.replay_without_state_setup is set; it then sets each state up before its interaction and tears it down after, in reverse. A failed setup skips the interaction with provider-state-setup-failed naming the state and the call; a failed teardown is listed in the pact's new state_teardown_failures and the result stands. Setup requests to the target honour its policy (no mutating request when allow_mutating_methods is 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}/verify verifies a provider against its pacts from Apiome: it selects the pacts with the for-verification selectors (PFX-1.3; selection is 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 against provider_version / provider_branch, queuing the contract webhooks. At most 25 pacts per run (pact-verify-too-many-pacts). Requires pacts:create and verification_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 a pact block 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_mutating is true; otherwise it is skipped with mutating-method-blocked. No fixture is required (the consumer recorded the request); a CTG-4.3 MutatingFixture naming the operation is applied when given.
    • Provider states are a seam. app.pact_verifier.ProviderStateHandler is what the provider-state registry (PFX-3.3, #6933) will implement. Until then an interaction that names a state is skipped with provider-state-not-set-up, unless verification.replay_without_state_setup is true; replayed interactions are marked states_set_up: false.
    • Only conclusive runs are published. A pact is passed (everything replayed and matched), failed (a replayed interaction did not match) or incomplete (nothing failed, but something was skipped, unreachable or uncompilable). incomplete publishes nothing (not_published_reason: run-incomplete); publish: false is 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 when selection.includePendingStatus is set. A Pact 4 pending interaction never decides.
    • Published testResults keep the Pact shape (interactionDescription, interactionId, success, mismatches[].attribute / identifier / description) with outcome, code, rule, expected and actual beside it; verifiedBy.implementation is apiome-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: one pact_interaction case 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 new pact block: 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 4 statusCode rule widens expect.status_codes to status classes (success → 2XX, error → 4XX, 5XX).
    • Byte-identical per (pact version, options): only what pact_content_sha covers, the pacticipant pair and the options are read — never metadata or the publishing consumer version — and the manifest carries a sha256: digest. New manifest.pact block (consumer, provider, pact_version_sha, specification_version, interaction_count, options); options interactions (description or Pact 4 key, normalized to a sorted set) and max_interactions (default 500, ceiling 2000).
    • Nothing skipped silently: message and plugin interactions, malformed interactions and undecodable request bodies are listed under unsupported and 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 are degraded findings; each provider state, response generator and an undeclared specification version is an info finding.
    • 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_version and compiler_version are now 4: every case gained pact, the manifest gained pact, manifest.options is null for a pact suite, and counts gained pact_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: one Synchronous/HTTP interaction per declared operation and response status, only the declared fields, sample values from the specification's examples (media-type example / examples, then the schema's example, examples, default, const, first enum, then an enclosing object's; parameters read their own first), the first server URL's base path, and a cascading type matcher at $ on every response body. Deterministic: the same revision gives the same pact (one pact_version however often it is published).
    • Nothing dropped: findings lists every placeholder (no-example, status-range, complex-parameter-value) and every omitted item (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 for consumer_version with branch, tags, build_url, exactly as contracts/publish does (webhooks, bi-directional comparisons, publish rate limit); the broker's publish result is returned in publish (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 is 409 consumer-pact-export-provider-ambiguous. A pact or agent revision is 422 consumer-pact-export-unsupported-source, one without a specification version 422 consumer-pact-export-no-version, one that yields no interaction 422 consumer-pact-export-empty with its findings. Every read is tenant-scoped.

Fixed​

  • Pact v4 bodies on consumer-contract import (CTG-4.1). POST …/consumer-pact-imports read a v4 body object ({"contentType", "encoded", "content"}) as the body, so its fields came back as unresolved content / 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, or not-run with 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, relaxed oneOf, message interactions, truncated findings). Every note carries the check it belongs to. The report's strength (full, partial, failed, none) and statement say how much the verdict is worth: full only 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 under couldNotCompare, 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 and fidelityPath. Read through the new idx_verification_result_tenant_bidirectional.
    • GET /v1/tenants/{tenant}/pact-comparisons/{resultId}/fidelity — one result's report. 404 pact-verification-not-found for 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:view and read only the caller's tenant. A bi-directional result document on the Pact Broker surface now links its report as apiome: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) reads verificationResults: 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 / EngineFinished events), or an Apiome provider-verification report (CTG-4.3) named by the new verificationResults.providerVerificationReportId and read in the caller's tenant (needs verification_evidence:view). The result — status (verified | failed | inconclusive | missing), kind, tool, toolVersion, digest (sha256: of the report as sent), summary counts, reasons, notes, and for an Apiome report reportId, target and coverage — is stored as verificationResults.evidence and returned as selfVerification (with providerContractVerified and unverifiedPolicy) by PUT and GET …/contracts/provider/{p}/version/{v}. A failure in the report wins over success: 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 are inconclusive.
    • verificationResults.success is now optional with providerVerificationReportId. 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 answers 200 to the same results.
    • Bi-directional comparisons weigh the contract's evidence (app.bidirectional_verification.apply_evidence_policy): without verified evidence the stored verdict is unverified (a fail stays fail), comparison adds providerContractEvidence, comparisonVerdict and unverifiedPolicy, and testResults gains a provider-contract-unverified entry. APIOME_PACT_UNVERIFIED_PROVIDER_CONTRACT = warn (default; success kept) or fail (success: false). Publications from before PFX-2.4 have their report read when compared. Run entries carry success; an unverified comparison's notice is a warning or an error.
    • The matrix reads comparison->>'verdict': a bi-directional row's verificationResult carries providerContractVerified, its reason text adds "provider contract unverified", and a deployable verdict leaning on one adds a provider-contract-unverified warning.

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_result gains kind (native | bidirectional, every existing row native), provider_contract_id (referenced by (id, provider_id), cascading) and comparison (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 as skipped.
    • Each comparison is stored as a verification result numbered with the native ones: success is false only for a fail verdict, testResults holds one Pact-shaped entry per interaction (failures as mismatches), verifiedBy.implementation is Apiome bi-directional comparison, and comparison holds the full payload with providerContractSha. Inputs the engine refuses are stored as a failure with comparison.error (comparison-not-possible); a pair that cannot be written is logged and reported with status error. 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 with status, verdict and verificationNumber); the bulk publish adds one notice per comparison (error notices map to error logs).
    • 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 reads verified 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 carries kind, and for a bi-directional one comparison and a pb:provider-contract link.
    • 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, one ComparisonResult out; 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, 2XX or default); response headers and body are validated with required lifted and undeclared properties refused (unevaluatedProperties: false), oneOf read as anyOf. Validation goes through the IXH-5.1 validator under JSON Schema 2020-12; an OpenAPI 3.0 document has nullable and the boolean exclusiveMinimum / exclusiveMaximum read 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 with pactPointer, an operation-anchored oasPointer in the CTG-1.1 vocabulary and the resolvedPointer behind 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, OR combinations) 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 fail on any failure, partial when nothing fails but the fidelity list is not empty, pass otherwise.
    • 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.
    • SpecIndex gains match_path, path_parameters, resolve_reference and node_at; pact_contract_import exports interaction_is_http and unwrap_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 the GET /v1/schema exporter as OpenAPI 3.1). A provider bound to its project may name just the version, and latest is the project's newest. branch, tags and buildUrl are recorded on the provider version; verificationResults (PFX-2.4) are stored as sent with the report's SHA-256. GET on the same URL reads it back with contentSha, oasVersion, operationCount, source and 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-invalid with 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 one 409 provider-contract-conflict. New codes provider-contract-request-invalid, -unsupported, -source-not-found, -too-large, -not-found. Publishing needs pacts:create (and versions:view with apiomeVersion), reading pacts: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_at locates 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} (PUT answers 201 when new, 200 after), and ?label= on GET …/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 links pb:label. Contract webhooks fill ${pactbroker.consumerLabels} and ${pactbroker.providerLabels}.
    • Soft delete with restore: DELETE …/pacticipants/{p}/versions/{v} (and the broker's DELETE …/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}/restore and POST …/versions/{v}/restore undo a delete during the grace period; ?state=deleted on the two lists shows what is waiting, with purge_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-use unless ?force=true.
    • Selector-based retention, dry run first: POST /v1/tenants/{t}/pact-retention keeps each pacticipant's latest version, keep.latest_per_branch, keep.deployed_or_released (default on) and keep.created_within_days, and deletes the rest. dry_run defaults to true and answers the plan with a plan_digest; applying needs that digest and is 409 pact-retention-plan-changed (with the fresh plan) when anything moved in between. At most 5,000 deletions per run, oldest first; remaining counts 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_audit row (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.

Changed​

  • DELETE /v1/tenants/{t}/pacticipants/{p} is now a soft delete — restorable for the grace period, refused while a version is deployed (unless force=true) — instead of an immediate cascade. Its status (204) is unchanged.
  • PacticipantRecord gains labels, deleted_at, deleted_by_label, delete_reason and purge_after; PacticipantVersionRecord gains the same plus delete_cause.
  • The Pact Broker compatibility catalog: labels and DELETE of 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 their 501 names 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.svg and …/shields.json, and …/pacts/provider/{p}/consumer/{c}/badge.svg and …/shields.json. Answers carry Cache-Control: public, max-age=300.
    • States: a pact is verified, failing or unknown by its newest verification result; a pacticipant is failing when any pact is, verified when it has pacts and all are verified, otherwise unknown. 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.

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 their 501 points 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} (PUT creates 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 links pb:webhooks and pb:webhook, so pact-broker create-webhook and create-or-update-webhook work unmodified. Refusals: 422 pact-webhook-invalid with 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's consumer_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), or target of type github_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 gains pact_webhook_id): the same worker, 4 attempts (10 s, 60 s, 5 min; Retry-After honoured), then dead-letter. app.pact_webhook_delivery sends the webhook's own request through the SSRF guard, without following redirects, with X-Apiome-Event, X-Apiome-Delivery and — when the webhook has a signingSecret — 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-webhooks and GET …/pact-version/{sha}/verification-results/{n}/triggered-webhooks. A pact links pb:pact-webhooks, pb:pact-webhooks-status and pb:triggered-webhooks; a verification result links pb:triggered-webhooks.
    • Test runs: POST …/webhooks/{uuid}/execute (pact-broker test-webhook) and POST …/webhooks/execute for 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 magic OPWH). 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_guard when 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.

Changed​

  • finalize_push_webhook_delivery_attempt takes an optional execution_log; a claimed delivery row carries pact_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 answers 501 Not Implemented with detail.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 a Link: <…/compatibility>; rel="help" header. Authentication is still required. Catalogued unsupported paths are claimed before the real routes, so …/latest/badge is not read as the tag badge. A wrong method on a served path is now 501, not 405.
    • 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 the POST does. 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.py writes the endpoint table on apiome-docs/docs/ship/pact-broker/compatibility.mdx; tests/test_pact_broker_compat_doc.py fails when it drifts.
    • The suite itself is scripts/pact_conformance/ (the pact-broker CLI, pact-js and pact-jvm against a fresh stack, with golden HAL transcripts) and the Pact Broker Conformance workflow.

Changed​

  • Main branch auto-detection. Recording a version on develop, main or master sets the pacticipant's main_branch when it has none, as the Pact Broker's auto_detect_main_branch does (app.pacticipant_store.MAIN_BRANCH_CANDIDATES). A main branch already set is never replaced.
  • Pact-Ruby verification results. testResults sent as an object with a tests array (the format of pact-provider-verifier) is accepted, and its tests are stored. It was a 422.

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-verification now 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 its providerVersionTags, or, with neither, at all. Failures never end it. pending and the pending notices (with includePendingStatus) now read the recorded results instead of always true, and the link metadata's p follows, 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 carries wip: true, pending: true (even without includePendingStatus), the broker's WIP notice and {"w": true} metadata; a result published through it is recorded as WIP and pending.
    • Matrix. GET …/pact-broker/matrix and …/can-i-deploy rows carry verificationResult.pending and verificationResult.wip when known. Pending still does not soften the verdict.
    • New pure modules app.pact_pending (the rule) and app.pact_wip (the selection), and app.pact_pending_store.load_pending_evidence (one grouped read of the provider's successful results per pact content, and the branch's creation time).

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, what pact-broker can-i-deploy calls, 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[] and limit (1–1000, default 100).
    • GET …/can-i-deploy — pacticipant, version and to (a tag) or toEnvironment (the broker's environment is accepted), with ignore. The index links it as pb:can-i-deploy-pacticipant-version-to-environment and …-to-tag.
    • Both answer 200 with the broker's document: summary (deployable true / false / null, reason, success / failed / unknown and, when ignoring, ignored), notices and matrix rows with each version's branches, tags and environments. Reasons use the broker's wording. Apiome adds code to each notice (verified, no-dependencies, verification-failed, pact-pending, no-verification-result, version-not-found, no-pact, and the warnings cannot-ignore, no-environment-specified, no-version-specified) and reason (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 says pact 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.
    • contractRequired is enforced: to such an environment, a version that published no pact and that no pact names as provider is refused with the notice no-pact.
    • 400 pact-matrix-invalid for a malformed query, an unknown pacticipant or an unknown environment, with the parameter in detail.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.py seeds 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_version and released_version. Under /v1/tenants/{tenant_slug}/pact-broker, what pact-broker create-environment, list-environments, describe-environment, update-environment, delete-environment, record-deployment, record-undeployment, record-release and record-support-ended call:
    • GET|POST …/environments (?name=; pacts:view / pacts:create) and GET|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's contractRequired (default false). 201 + Location on create; 409 pact-environment-name-taken; 422 pact-environment-invalid with a JSON Pointer.
    • POST …/pacticipants/{p}/versions/{v}/deployed-versions/environment/{uuid} (pacts:create, body applicationInstance or the deprecated target): 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 answers 200 with 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; true is 422 pact-deployment-invalid.
    • GET …/environments/{uuid}/deployed-versions/currently-deployed (?pacticipant=, ?applicationInstance=, ?target=) and …/released-versions/currently-supported (?pacticipant=, ?version=); GET on the two record URLs lists a version's history there.
    • Links: the index adds pb:environments and pb:environment; a broker-shaped version adds one pb:record-deployment and one pb:record-release link 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 is 404 pacticipant-version-not-found.
  • Environment selectors select. deployed, released, deployedOrReleased and environment consumer-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-results and the for-verification form …/pact-version/{sha}/metadata/{m}/verification-results (pacts:create): the broker's body — success and providerApplicationVersion required, buildUrl, testResults (stored as sent, at most 10,000), verifiedBy with clientLanguage. Answers 201, Location, and the broker's result shape (providerName, providerApplicationVersion, success, verificationDate, buildUrl, testResults, verifiedBy, _links.self, _links.pb:pact-version) plus providerVersionBranch. 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); success and 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-found otherwise); deleting the report clears the link. The answer carries pb:provider-verification-report.
    • GET …/pact-version/{sha}/verification-results/latest and …/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, else 200).
    • Links: every pact adds pb:publish-verification-results (carrying the for-verification metadata when fetched through it) and pb:latest-verification-results; the broker-shaped pacticipant adds pb:branch-version and pb:version-tag.
    • 422 pact-verification-invalid with 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, all pacts:view:
    • POST …/pacts/provider/{provider}/for-verification — the pacts a provider build must verify, chosen by consumerVersionSelectors: mainBranch, branch (with fallbackBranch or fallbackToMainBranch), matchingBranch (uses providerVersionBranch), tag (every tagged version, or with latest: true the latest, with fallbackTag), latest, and consumer to 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[] with shortDescription, verificationProperties (pending with includePendingStatus, and the notices a verifier prints, in the broker's wording) and a self link to …/pact-version/{sha}/metadata/{m}, where m is the broker's encoding of the selection.
    • Ambiguous or malformed selectors → 400 pact-selector-invalid with the broker's message and a JSON Pointer to the selector or field (for example tag with branch, mainBranch with latest: false, matchingBranch without providerVersionBranch, a branch field with an environment field).
    • Not yet: deployed, released, deployedOrReleased and environment are accepted and select nothing until environments exist (PFX-1.5). No verification results are recorded yet (PFX-1.4), so every pact is pending. includeWipPactsSince is checked; WIP pacts are not added (PFX-1.7).
    • GET …/consumer/{consumer}/latest/{tag} and GET …/consumer/{consumer}/branch/{branch}/latest — the latest pact of a pair from a tag or a branch ({branch} may contain /).
    • GET …/pacts/provider/{provider}/latest and …/latest/{tag} — one pb:pacts link per consumer to its latest (tagged) pact, with the deprecated provider / pacts relations.
    • GET …/pact-version/{sha}/metadata/{metadata} — the pact version, as for-verification links it.
    • The index adds pb:provider-pacts-for-verification (and beta:provider-pacts-for-verification), pb:latest-provider-pacts and pb:latest-provider-pacts-with-tag; every pact adds pb:latest-tagged-pact-version.
  • app.pact_selectors (parsing, selection, notices, metadata) and pact_publication_store.list_pact_candidates; get_latest_pact takes tag and branch.

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-broker tag 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 are application/hal+json in the Pact Broker's shape; the pact-broker CLI and pact-js publishPacts publish 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 its branch, tags and buildUrl, all or nothing. Answers notices (and the older logs), the embedded pacticipant and version, and a pb:contracts link per pact.
    • PUT / GET /pact-broker/pacts/provider/{provider}/consumer/{consumer}/version/{version} — publish (201 new, 200 unchanged) or read one pact; GET …/latest reads 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 the pb:consumer, pb:provider and pb:consumer-version links lead to.
    • Content-addressed pact versions. A pact version is the SHA-256 of the document's interactions, messages and declared specification version (sorted keys; metadata is 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 code and, where the problem has a place, a JSON Pointer in detail.pointer: pact-invalid, pact-publish-invalid, pact-publish-unsupported (422; merge conflict 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 with Retry-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-Key and 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 (default false; true replaces a consumer version's pact instead of answering 409) and APIOME_PACT_BROKER_HOST_SUFFIX (default empty; with pact.example.com, requests to https://<tenant>.pact.example.com/… are served as that tenant's /pact-broker/…).
  • Migration V433 adds pact_version (content JSONB + SHA-256, unique per consumer, provider and hash) and pact_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 pacticipants tag 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 / POST the 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) and consumer_id (its row in the consumer registry). {ref} is the handle, the id or the name. DELETE removes the pacticipant with its versions, branches and tags.
    • PUT /{ref}/versions/{number} records a version with an optional build_url, branch and tags. 201 when it creates the version, 200 when it already existed; the stored version is returned unchanged either way. GET /{ref}/versions (filters branch, tag; latest first) and GET /{ref}/versions/{number} read them.
    • PUT /{ref}/versions/{number}/tags/{tag} adds a tag; GET /{ref}/branches lists 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), and pacticipant-invalid-slug / -name / -url / -branch / -tag / -version (400).
  • Migration V432 adds pacticipant, pacticipant_version, pacticipant_branch, pacticipant_branch_version and pacticipant_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 any UPDATE of a version; deleting a project — hard, or the deleted_at stamp 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. projects and consumer gain a unique (id, tenant_id) key, and seed_builtin_roles is 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 V427 replaces the 35 row-level trg_content_stamp triggers (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 one UPDATE apiome.versions bumps them, instead of a to_jsonb(NEW) / to_jsonb(OLD) and a dynamic query per row. The rules are unchanged: one bump per revision per transaction, no bump for updated_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,000 classes rows 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,000 consumes edges). Idle state: nothing due.
    • Indexed due-selection. Migration V426 stores 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, and mcp_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; no max(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 on COALESCE(last_*, '-infinity').
    • Batches per tick. APIOME_MCP_DISCOVERY_MAX_PER_TICK (500), APIOME_MCP_DIGEST_MAX_PER_TICK (200) and APIOME_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 one OR sorted by COALESCE(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 refreshes last_seen_at on every current edge. The result of materialize_on_cursor gains a written count.
    • Whole-table prunes. prune_schema_suite_runs_by_age reads 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.py on the 5-minute retention tick: finished MCP discovery jobs older than APIOME_MCP_DISCOVERY_JOB_RETENTION_DAYS (30) are deleted, keeping each endpoint's APIOME_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 their retain_until are deleted in batches of APIOME_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).

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 V425 adds tool_count, resource_count, resource_template_count, prompt_count, has_destructive, read_only_only, max_tool_props and change_count to mcp_endpoint_versions. record_mcp_discovery_version computes them (app/mcp_version_facts.py) and stores them in the snapshot's own INSERT; the table stays write-once. A snapshot without facts yet (tool_count IS NULL) is recomputed in the same statement by five apiome.mcp_version_* functions, so a read is never wrong.
    • Backfill. apiome.backfill_mcp_version_facts(limit) derives a bounded batch and apiome-db migrate calls 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_endpoints joins 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 SETS over 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 (default 30, at most 300, 0 = off) by app/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_servers replaces get_mcp_similar_candidates: capability-name Jaccard computed in SQL and ORDER BY embedding <=> target LIMIT k over 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_hints returns 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 limit items after they are picked, not as an expression on the distance in the WHERE.
    • 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.

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/tenants is 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 (by search, sort, protocol, format, limit, offset) and each facet count for BROWSE_PUBLIC_CACHE_TTL_SECONDS (default 120, at most 300; 0 turns it off), in the new app/browse_public_cache.py. A publish, unpublish or delete shows up within one interval. Only successful reads are stored. BROWSE_PUBLIC_CACHE_MAX_ENTRIES (default 512) bounds the cache.
    • Cache headers. The response carries Cache-Control: public, max-age=<the interval>, or no-store when 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_changes and get_public_mcp_endpoint_changes choose the newest limit snapshots that recorded a change and join only their changes, instead of joining and sorting the whole change history for LIMIT 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_count and versions.schema_count are recorded by a trigger when a revision is published (covering this API's publish_version and 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 bump content_stamp. V424 also 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_entries tests versions.sunset_at instead of extracting metadata->>'sunsetDate' / 'sunset_date' from every revision of the tenant. Migration V422 adds that column (with versions.lint_error_count) as a stored generated column — the first non-empty of sunsetAt, sunsetDate and sunset_date, the order revision_deprecation reads them in. Writes mirror sunsetAt into sunsetDate, so the rows matched are the same. V422 also 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 bump content_stamp and mark its rendered documents stale (tests/test_content_stamp_db.py covers it). V423 adds version_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_id and list_prior_revisions_for_transitive_check walk the ancestor closure, filter, order and limit in one recursive query (no ancestor list sent back as an IN (…) of N placeholders; the transitive check's created-before fallback is in the same statement). resolve_successor_revision_chain reads 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_lineage is one recursive query with a depth guard that reads canonical_document once, for the snapshot it stops at.
    • Index-driven recursion. fetch_revision_closure and the three walks of compute_branch_divergence keep ids as uuid inside the recursion and follow each parent link as its own primary-key probe (CROSS JOIN LATERAL (VALUES …)), not a text join or an OR join filter.
    • list_source_edits returns 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}/provenance returned 500 for a revision without its own import snapshot (such as a draft created from an imported version): the parent hop filtered on a versions.tenant_id column 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 main with 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.py checks every read against the previous implementation on linear, diamond and criss-cross histories (tests/revision_graph_fixtures.py); tests/query_budgets.json records one statement for each on a 500-revision linear and a criss-cross history. Plan check: rest.revision_closure (its known entry removed), rest.prior_published_baseline, rest.transitive_check_candidates, rest.branch_divergence.

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 opaque cursor, and reports has_more / next_cursor (hasMore / nextCursor on camelCase responses). A page is found by reading limit + 1 rows, never by counting. See API reference → Pagination.

    • Totals are opt-in. total is null unless the request sends include_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 reads total must send include_total=true.

    • offset is 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 by offset, with a maximum limit.

    • 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 report X-Has-More and X-Next-Cursor. A client that needs the whole list must follow the cursor; the apiome CLI 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 limit nor a recorded reason it cannot grow.

    • Page 1,000 costs what page 1 does.

      list (rows for one tenant)OFFSET page 1,000COUNT(*) each pagekeyset page 1keyset page 1,000
      workflow audit (325,000)46.8 ms, 2,028 buffers13.2 ms0.03 ms, 7 buffers0.04 ms, 6 buffers
      notifications (200,000)6.8 ms, 1,096 buffers9.9 ms0.02 ms, 4 buffers0.03 ms, 6 buffers
      export history (101,000)114.6 ms, 2,845 buffers3.9 ms0.04 ms, 15 buffers0.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 frozen spec (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 one UPDATE every five seconds and at shutdown, so requestCount, lastActivityAt and 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 * outside database.py name their columns (a test keeps it so). The provider-verification list no longer selects each report body, the public Browse version list no longer selects change_model_json, and the workspace lint summary reads fingerprints and severities instead of whole findings. The version list still returns metadata, mock_settings and change_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 limit above 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-db V418–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_fkey drops 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-db fails CI when a foreign key has no usable index and is not in test/foreign-key-index-allowlist.json. The 222 references to users are listed there on purpose: users are hard-deleted only by apiome-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_at indexes that nothing scanned in the plan check plus the REST database suites run on the scale database, and the unused GIN index on consumer_contract.surface_pointers.
    • Repository quality sweep: claim_repository_files_for_quality_scoring filters on the new stored column tenant_repository_files.is_importable (the REPOSITORY_FILE_IMPORTABLE_SQL predicate), 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_hourly and usage_daily gain an identity id primary key; the grain constraints the ingest upsert targets are unchanged.
    • Insert throughput (20,000 rows, median of 5, tables vacuumed between runs): versions 2,926 → 2,675 / 2,632 ms (three fewer indexes), classes 3,784 → 3,726 / 3,807 ms (unchanged within noise), projects 532 → 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).

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-db V412–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 DESC for 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 on mcp_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 on slate_insight_logs.message).
    • Dropped after the plan check (not used, or no measurable gain): the projects list index, the access_audit partial index for the tenant-less chain (the widened tenant index serves it), lint_evidence_runs per-scanner indexes, the mcp_capability_items.name trigram index, classes / properties recent-activity indexes, the open-reviews index, users (name, id) and the agent_invocations per-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).

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_closure and the three recursive CTEs of compute_branch_divergence compare versions.id to 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 two tenant_id::text document lookups do likewise.
    • get_latest_revision_id_for_project and three other version lookups order by created_at DESC NULLS LAST, id DESC (ASC NULLS FIRST, id ASC) to match idx_versions_project_created, so there is no extra sort.
    • The access-audit chain head reads tenant_id = … or tenant_id IS NULL rather than IS NOT DISTINCT FROM, so an audit write no longer scans access_audit.
    • apiome-ui: the review, merge-request and comment-anchor queries compare tenant_id to the uuid-cast parameter.
    • New test tests/test_sargable_uuid_lint.py fails on a new id::text = predicate.
    • Not in this change: the primitives tenant/system OR, the jsonb_array_elements filters, NOT IN subqueries and the Python-built IN (…) 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. Needs apiome-db V411.
    • One statement per table: the Import specification wizard, the path designer's paths import and importProjectFromOpenAPI assign every row's id in the importer and write each table with one INSERT … 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 has deleted_at and the new import_pending_at set, 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 in versions.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, default 60). 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 carries import_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 on deleted_at IS NULL, so the partial (version_id, name) index applies and a $ref cannot resolve to a soft-deleted class; a new library property never takes the name of a soft-deleted one (properties_project_name_unique covers both), and a name collision is skipped by ON CONFLICT DO NOTHING instead of a per-row savepoint retry; the plan check for a new project or version is SELECT 1 … OFFSET $max - 1 LIMIT 1 instead 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 info is 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.

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/ingest answers exactly as before; only how a batch is written changes. Needs apiome-db V410.
    • One statement per table: usage_hourly, usage_unmatched_daily, usage_unattributed_client_daily, usage_sample, the binding and consumer stamps are each one INSERT … SELECT FROM unnest(…) ON CONFLICT DO UPDATE (or UPDATE … FROM unnest(…)), and usage_field_daily is 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 a day-finalized rejection, 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's last_received_at stamp are one statement, so the counter always equals the day's ledger; the cap check is a primary-key probe instead of sum(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_sample and usage_field_daily: not now. Measured on the same database with 1.2 M hourly and 1.2 M field rows for one tenant: one purge_usage pass 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).

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-db V409.
    • Helper: app.db_bulk.bulk_insert_arrays writes any number of rows with one INSERT … SELECT FROM unnest(…) (each column is one array parameter); new_ids assigns row ids on the client, so children are written without a RETURNING id round trip per parent.
    • Import persistence: canonical_persistence._insert_tree writes 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_set compares 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 generated md5(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_merge and copy_single_class_between_versions_for_merge copy classes with one INSERT … SELECT that 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_version and freeze_version_schema upsert every class's frozen JSON Schema into class_schema with 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.json records 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.

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_loader reads a version's paths, operations, descriptions, parameters, request bodies and responses with one statement per table (6 in all), assembled in Python. It replaces the 1 + P + 4·O loop 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). New Database.load_paths_for_version and Database.get_operations_with_details_for_path. Content types keep the order the per-operation reads returned (physical order, now asked for with ORDER BY ctid inside json_agg).
    • Source apply: _cursor_current_merged_document reads every class's properties in one statement instead of one per class, while the version's row lock is held.
    • Canonical model: load_canonical_api reads each child table (api_operations, api_messages, api_fields, api_agent_skills) once for the version, by version_id, and groups the rows by parent; every read names its columns instead of SELECT *. 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} without version_id uses new get_classes_for_tenant; xRegistry and agents.json / llms.txt use new list_browse_versions_for_projects; identity suggestions and the z/OS Connect binding use new get_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 new get_mcp_endpoint_versions_by_ids, get_mcp_capability_items_for_versions, get_newest_live_mcp_endpoint_sources and get_latest_mcp_source_sboms; the MCP category suggestion queue uses the first two; consumer feedback uses new list_comments_for_threads; list_operational_components aggregates 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.json records the same count at 10 and at 1,000 operations for Database.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-check adds rest.operations_for_version, rest.operation_responses_for_version and rest.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.

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) and Database.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 over lint_axis_evaluations.axes, and does not select metadata, mock_settings or change_log. The project lookup skips the creator join and the COUNT(*) / 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_version in comments, consumer contracts, deploy gates and SDK publishing) and the _assert_version_in_tenant, _require_project and _require_revision helpers. The detail endpoints and every caller that returns or hands on the row keep get_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 ANALYZE runs, 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 on projects_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_operation and delete_class_property are one UPDATE … FROM / DELETE … USING statement joined to versions and projects (was a guard read plus the write). update_project checks the tenant and the expected_updated_at precondition inside its UPDATE, and reads the project only when no row matched, to tell "not found" from a conflict (409).
    • RETURNING instead of a re-read: create_mcp_category / update_mcp_category, create_mcp_endpoint_note / update_mcp_endpoint_note and update_mcp_collection return their row from the write itself; create_mcp_collection knows its member count without a re-read; revoke_mcp_api_key writes first and reads only when the key was missing or already revoked.
    • Fix: create_mcp_collection failed on PostgreSQL (missing FROM-clause entry for table "c"): its INSERT returned c.* columns without the alias. The insert is now INSERT INTO apiome.mcp_collections AS c.
    • Guard lint and budgets: tests/test_core_lookups.py reads every module under src/app and 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 its FULL_ROW_CALLERS list. tests/query_budgets.json records 1 statement for update and delete of a class, path and operation (Database.* labels). apiome-db plan-check adds rest.project_core and rest.version_core.

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 def handlers: the 980 route handlers that never awaited are now plain def, 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_request and 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 through await run_in_threadpool(...): direct db.<method> calls, calls that take the db handle such as enforce_permission, and same-module helpers that reach db. Usage ingest (POST /v1/tenants/{tenant}/usage/ingest) is one of them.
    • Probes: /livez stays on the event loop. /readyz and /health run 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 (default 40) sets how many requests one instance works on at once. Each working thread holds one connection, so the size is capped at half of DB_POOL_MAX_IN_USE (default 80); 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.py reads every module under src/app and fails on an async def route handler that never awaits, or that touches db outside 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, /readyz and 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.

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_admin and get_effective_permissions all 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 in tests/query_budgets.json drop 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) for AUTH_CACHE_TTL_SECONDS (default 30, 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 (default 10000) bounds each cache.
    • API keys: a key that verified within API_KEY_CACHE_TTL_SECONDS (default 60, 0 = off) skips bcrypt. The process keeps sha256(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. The last_used_at write 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 1 probes _cursor_actor_can_edit_versions ran while holding a version row lock are one EXISTS expression.

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_query and _execute_write run in autocommit when the connection is idle, so PostgreSQL receives the statement alone, without psycopg2's implicit BEGIN before it and COMMIT after it. Multi-statement writers (_begin_tx, _guarded_tx, db_cursor, raw cursors) keep their transactions. Database.read_tx() runs several reads against one REPEATABLE READ, READ ONLY snapshot.
    • Statement timeout: DB_STATEMENT_TIMEOUT_MS now defaults to 30000 (was 0, off). A statement past it raises StatementTimeout (a psycopg2.errors.QueryCanceled), which a request answers as 503 with error type statement_timeout. Imports, exports, document migrations, the Compass catalog import and every background sweep run under long_statements(), which uses DB_LONG_STATEMENT_TIMEOUT_MS (default 1800000).
    • Bulk writes: Database.bulk_insert(table, columns, rows, returning=None, page_size=1000) sends one execute_values statement per page. Database.bulk_upsert(...) sends one INSERT … SELECT FROM unnest(…) ON CONFLICT statement. The repository file walk's per-row executemany now uses bulk_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 Database across 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 (default 80, 0 = none) caps the connections one instance has in use. Past it, connect() raises ConnectionPoolExhausted and a request answers 503 database_busy. Sizing rule: DB_POOL_MAX_IN_USE × REST replicas < max_connections (see Operating Apiome).

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). Each http_request access-log line now carries db_statements and db_time_ms. APIOME_DB_STATEMENT_SERVER_TIMING=true also sends Server-Timing: db;dur=…;desc="N statements" (off by default), and APIOME_DB_STATEMENT_WARN_THRESHOLD=<n> logs a request with more than n statements at WARNING (off by default).
    • Statement budgets: assert_max_queries(n) fails a test whose block runs more than n statements and lists them. tests/test_query_budgets_db.py holds six hot endpoints (project list and detail, version list and detail, the revision document cold and warm) to the counts recorded in tests/query_budgets.json, authentication included.
    • Scale database and nightly plan check: apiome-db seed --profile scale and apiome-db plan-check build the benchmark database and hold the hot queries to their plans every night (apiome-db-scale.yml).