Skip to content

Upgrade Notes ​

Version-to-version changes that affect a deployed console's database schema or stored data — plus compatibility notes for monitored hosts — what CritterWatch does about them automatically, and the manual path when it can't.

This page is deliberately narrow

It covers only what an operator must do to move a running console between versions. For what is new and what was fixed in each release, see the Release Notes. A change appears here only when it has an upgrade consequence; everything else lives there.

1.2.2 → 1.2.3 ​

1.2.3 is not yet released.

The timeline indexes are built at startup, not by the first request ​

1.2.2 let the store create the two timeline indexes the first time anything touched the timeline, which on a large table could leave every GET /api/critterwatch/timeline failing with an empty 500 indefinitely (see the warning under 1.2.1 → 1.2.2 below). 1.2.3 checks for them as the console starts, and builds whichever are missing itself, once, with no command timeout:

  • PostgreSQL builds them CREATE INDEX CONCURRENTLY in the background, so timeline writes carry on and the rest of the console serves normally. Until the build finishes, GET /api/critterwatch/timeline answers 503 at once with a problem body that names the missing indexes and a Retry-After header, rather than scanning the whole table. A table under 64 MB, or no table at all, is built before the console starts serving, so a new or small console never sees the 503.
  • SQL Server and SQLite build them during startup, before the console serves anything, because neither builds an index without blocking writes (SQL Server outside Enterprise edition). On a large SQL Server timeline, startup takes as long as the build, and the log says so before it starts. Give the orchestrator's startup probe enough time, or create the indexes beforehand as described below.

The console logs a warning when a build starts, an information line with its duration when it finishes, and an error with the DDL to run by hand if it fails, after which PostgreSQL retries every five minutes and the other stores on the next start. A failed build never stops the console: the timeline still works, scanning the table.

GET /api/critterwatch/system-health now reports where they stand: a timeline-indexes component that is degraded while a build runs or after one failed, and a timelineIndexes object listing the expected and missing indexes, how they are built, and when the last build started and finished. See GET /system-health.

Nothing to do on a console that already has the indexes, which every 1.2.2 console whose build succeeded does: the names are unchanged, and the startup check finds them.

To create them yourself on PostgreSQL before upgrading, with the default critterwatch schema:

sql
CREATE INDEX CONCURRENTLY mt_doc_timelineentry_idx_timestamp
    ON critterwatch.mt_doc_timelineentry USING btree ((critterwatch.mt_immutable_timestamptz(data ->> 'timestamp')));
CREATE INDEX CONCURRENTLY mt_doc_timelineentry_idx_service_nametimestamp
    ON critterwatch.mt_doc_timelineentry USING btree ((data ->> 'serviceName'), (critterwatch.mt_immutable_timestamptz(data ->> 'timestamp')));

Run each on its own, not in a transaction, and with no statement timeout. A concurrent build that is interrupted leaves an index marked invalid (indisvalid = false in pg_index); the console drops and rebuilds one like that by itself.

1.2.1 → 1.2.2 ​

1.2.2 was released on 4 November 2026.

Two new indexes on the timeline table ​

The console's timeline table gains an index on Timestamp and one on (ServiceName, Timestamp). They are created the first time the upgraded console reads or writes the timeline, like any other schema change. On a large timeline the build blocks timeline writes until it finishes, typically a few seconds, on every store. To avoid even that, create the two indexes yourself before upgrading (on PostgreSQL, CREATE INDEX CONCURRENTLY with the definitions the console's own migration would generate), or shorten CritterWatch:Timeline:RetentionPeriod first.

On a large timeline 1.2.2 may never finish building them (#1663)

"Typically a few seconds" held for the tables we measured, and not for the largest field consoles. The build runs inside whichever request or write first touches the timeline, under the database driver's 30-second command timeout, as one statement for both indexes. When it takes longer, it is cancelled and rolled back to nothing, and the next request starts it again, so every GET /api/critterwatch/timeline answers 500 with an empty body after waiting for its turn, and timeline writes fail with it. While each attempt runs, other console reads that are the first of their kind since the console started can fail too, waiting five seconds for the same in-process schema lock (/audit-log and /lifecycle were reported). Upgrade to 1.2.3, or create the indexes by hand as shown under 1.2.2 → 1.2.3 above: once they exist, the next attempt finds nothing to do. To see whether you are affected, look for the two indexes in pg_indexes (WHERE tablename = 'mt_doc_timelineentry').

Upgrade the services' package for two of the fixes ​

These need Wolverine.CritterWatch 1.2.2 on the monitored service, not only a 1.2.2 console:

  • Composite member rows stay current. The fix is in how the service batches its telemetry.
  • Rows left by a projection that moved from Async to Inline can be retired and ejected. A 1.2.2 console keeps them out of Max Lag and the health verdicts with any client, but only the 1.2.2 client reports them as orphans, which is what lets them collapse and be ejected.

1.1.1 → 1.2 ​

1.2 was released on 3 November 2026.

New capability checks on console actions ​

Only affects hosts that register an ICritterWatchAuthorizer. These console actions now check a capability, as their MCP twins already did, so a role that could do them before needs the grant:

  • alert.acknowledge, alert.snooze, alert.clear for the alert actions;
  • service.evict for evicting a service, and metrics.delete for deleting metrics samples;
  • service.license-slot (new) for pinning a service to a licensed slot, or releasing the pin;
  • projection-stepper.view for the Event Store Explorer's Step Through tab, and for run_projection_stepper and diagnose_projection over MCP on top of mcp.projection.step.

On every console: deleting metrics samples and AI alert triage now need a license.

Throughput alerts read executions ​

Affects consoles on Prometheus, VictoriaMetrics or Application Insights. MessagesPerHour now counts executions on every metrics source, the same count the throughput baseline is built from. Prometheus and VictoriaMetrics read the sent counter, and Application Insights counted received messages, which leaves out local queues. Expect MetricsThroughput to fire differently after upgrading, most of all for a service that fans out or one that only consumes, and recheck any threshold you tuned around the old figure. On Application Insights the failure rate and the Dashboard's 24-hour trend move too.

Upgrade the services' package for listener commands and dead letter ranges ​

These need Wolverine.CritterWatch 1.2 on the monitored service, not only a 1.2 console:

  • A listener pause or restart reaches every node. On a service still on 1.1, PauseListener and RestartListener act only on the node that handles the command, as before. During a rolling deploy, a node still on 1.1 does not apply the command, and the console records a failure naming it.
  • A dead letter time range means when it failed. A service on 1.1 can only range on the sent time. The Dead Letters page names such services in a warning while a range is set, and the MCP tools return rangedOn: SentAt.

Listener timeline entries read as requests ​

Timeline entries for listener actions now read "Listener pause requested" and so on, because they are written when the console sends the command. A failure the service reports appears beside them in a new Command category. The stored event types are unchanged, so a saved timeline filter keeps working.

A new MCP capability for sagas ​

Only affects hosts that register an ICritterWatchAuthorizer. mcp.sagas.read gates the new MCP tools list_sagas, list_saga_instances and get_saga_instance. Nobody holds it until you grant it, so an agent cannot read saga state until then.

get_saga_instance lists an instance's pending timeouts only for a service on Wolverine.CritterWatch 1.2, which can filter its scheduled messages by saga id. A service still on 1.1 is not asked, because it would ignore the filter and answer with its whole schedule; upgrade the service's package to see its sagas' timeouts.

One new console table, for Slack threads ​

The console stores where an alert notification sink posted each alert in a new document, AlertNotificationThread, in mt_doc_alertnotificationthread (in the console's schema; the names follow the store's own convention on SQL Server and SQLite). A console that owns its schema creates it on first use. If your console's database is scripted rather than created by the console, run db-patch before starting 1.2: until the table exists, the Slack package cannot record where it posted an alert, so its follow-ups and AI triage replies post as new messages instead of in the alert's thread. Alerts are unaffected. See Database.

Alerts posted to Slack before the upgrade were tracked in memory, so their next follow-up posts on its own once.

A new capability and a new console table for explaining dead letters with AI ​

Only affects consoles that call AddCritterWatchAlertTriage. Such a console can now explain a dead-letter failure group on an operator's request.

  • It is on with the console's AI. CritterWatch:Ai:DeadLetters:Enabled = false (or DeadLetters.Enabled = false in the configure delegate) keeps dead letters away from the model while alert triage carries on. Message bodies are never sent unless you set DeadLetters:IncludeMessageBodies.
  • On a host that registers an ICritterWatchAuthorizer, nobody can ask until you grant dlq.triage.
  • Explanations are stored in a new document, DeadLetterGroupTriage (mt_doc_deadlettergrouptriage on PostgreSQL; the store's own naming on SQL Server and SQLite). A scripted database needs db-patch before the first explanation is stored, as for AlertNotificationThread above.
  • ⚠️ A standalone 1.1 console with alert triage configured did not start (MissingPreBuiltTypesException naming LlmCallout). 1.2 does, on Wolverine 6.59. If you tried triage on 1.1 and took it out again, it can go back in. callouts.DeduplicateCallouts = true is still refused on a standalone console, now with a message that says why; leave it unset. See LLM alert triage › Cost and rate control.

1.1.0 → 1.1.1 ​

SQL Server: a metrics table from a 1.0.0 alpha is migrated at startup ​

A SQL Server console whose database was first created by CritterWatch.SqlServer 1.0.0-alpha.1 to alpha.4 has a pc_doc_metricssample table with no bucket_end column and no partitioning. Every version from 1.0.0-beta.1 on partitions that table, and none of them could migrate the old one, so every metrics flush failed with:

Weasel.Core.SchemaMigrationException: Cannot derive schema migrations for TableDelta for
critterwatch.pc_doc_metricssample (column 'bucket_end' cannot be added to an existing table)

The System Throughput chart, metrics baselines and metrics alerts were empty on such a console, on 1.0.x as on 1.1.0.

1.1.1 migrates the table at startup, with no action needed. It renames the old table aside, lets the console create the partitioned one, copies across every row inside the configured metrics retention, and drops the old table. The copy runs in the background, so the console starts at once; until it finishes, the console's System health reports the metrics store as degraded with a reason saying so. An interrupted copy resumes on the next start. A console whose table already has the current shape, which is every console first created by 1.0.0-beta.1 or later, is not touched.

If you renamed the old table aside by hand to get past the error, the console created a current table in its place and nothing further happens. Your renamed table still holds the old metrics, and you can drop it once you no longer want them.

MetricsSample schema migration ​

The manual path, for a console that reports the metrics store as degraded with "CritterWatch cannot reconcile … metricssample". The console refuses to touch a metrics table it does not recognise, so this message means the table is in some shape other than the current one or the old one described above. The rest of the console keeps working.

  1. Stop the console.
  2. Rename the table aside, together with its primary key constraint:
    • SQL Server: EXEC sp_rename 'critterwatch.pc_doc_metricssample', 'pc_doc_metricssample_old';, then sp_rename each constraint that SELECT name FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID('critterwatch.pc_doc_metricssample_old') lists.
    • PostgreSQL: ALTER TABLE critterwatch.mt_doc_metricssample RENAME TO mt_doc_metricssample_old;, then ALTER TABLE … RENAME CONSTRAINT each constraint.
  3. Start the console. It creates the current table on the first metrics write.
  4. Drop the renamed table once you no longer need the metrics it holds.

Use your configured schema name in place of critterwatch. Metrics history is not copied on this path; the automatic migration above is what copies it.

1.1.0-rc.3 → 1.1.0 ​

Three new capabilities, and two new console tables ​

Capabilities. Only affects hosts that register an ICritterWatchAuthorizer. None of these existed before, so nobody holds them until you grant them:

  • dlq.archive: archiving and restoring dead letters, a whole failure group included.
  • dlq.note: writing a note on a failure group.
  • mcp.conversations.read: the MCP tools list_conversations and get_conversation. An agent cannot read conversations until it is granted, because a failed hop's status description is exception text.

Cancelling a running dead-letter operation needs the capability that starting it needed.

Tables. The console stores two new documents, DlqOperationCancellation and DlqGroupNote, in mt_doc_dlqoperationcancellation and mt_doc_dlqgroupnote (in the console's schema; the names follow the store's own convention on SQL Server and SQLite). A console that owns its schema creates them on first use. If your console's database is scripted rather than created by the console, run db-patch before starting 1.1.0: until the tables exist, the Dead Letters page's Operations and Failure Groups tabs cannot read them, and cancelling an operation or saving a note fails. See Database.

The HTTP channel moves to /_wolverine/batch/{queue} ​

Only affects services whose critterWatchUri or systemControlUri is an http(s) URI. As documented through rc.3, with both URIs at /_wolverine/invoke, the channel did not work: the service failed to start, or every telemetry envelope was rejected. 1.1.0 makes it work and checks the configuration at startup. What to do, on each such service:

  1. Register Wolverine's HTTP transport before AddCritterWatchMonitoring: opts.UseHttpTransport(); (namespace Wolverine.Http.Transport)
  2. Point critterWatchUri at the console's …/_wolverine/batch/critterwatch.
  3. Point systemControlUri at this service's …/_wolverine/batch/{a queue name}, for example critterwatch-control. CritterWatch declares that queue on the service.

On the console, nothing changes: keep app.MapWolverineHttpTransportEndpoints(). A service still configured the old way stops at startup with a message saying which URI to change. See HTTP and gRPC Transport Channels. The gRPC channel is unchanged.

Failure groups need Wolverine.CritterWatch 1.1.0 on the monitored service ​

Grouping, archive, restore and cancel are implemented by Wolverine.CritterWatch 1.1.0. A client advertises them to the console when it connects, and the 1.1 release candidates, 1.1.0-rc.3 included, advertise nothing, so the console treats an rc.3 service exactly like a 1.0 one. What to do: upgrade each service's Wolverine.CritterWatch to 1.1.0 to use failure groups on it. A service on an older client keeps working: the console groups its dead letters by exception type, never sends it archive, restore or cancel, and never sends it a failure-group filter it would ignore.

AddCritterWatch(connectionString) caps the console's connection pool at 50 ​

What changed. The AddCritterWatch(string connectionString) overload now applies the console's pool ceiling: 50 connections, unless the connection string sets Maximum Pool Size or configuration sets CritterWatch:Postgres:MaxPoolSize. In rc.3 that overload applied nothing, so the pool got Npgsql's default of 100. A console that passes its own NpgsqlDataSource is unchanged.

What to do. Nothing, unless a console needs more than 50 connections per process. Then set Maximum Pool Size in its connection string, or CritterWatch:Postgres:MaxPoolSize. See Connection pool ceiling.

Datadog: Site must be a known site ​

What changed. The Datadog trace provider and metrics data source map Site to Datadog's API host from a fixed list: us1, us3, us5, eu1, ap1, ap2 and us1-fed, case-insensitive. Any other value now fails when the provider is built, naming the valid sites. rc.3 built api.{Site}.datadoghq.com for any value but us1, which was wrong for eu1 (api.datadoghq.eu) and us1-fed (api.ddog-gov.com), so an EU1 account could not be reached at all.

What to do. Check Datadog:Site, or whatever your code sets Site from, against that list.

The monitored side moves to Wolverine 6.56 ​

The 1.1.0 packages are built against WolverineFx 6.56.0, JasperFx 2.96.0 and Weasel 9.47.0, with the same Marten, Polecat and Fisher versions as rc.3. Wolverine 6.55 and 6.56 make no change to the durability tables, so a service whose database is scripted needs no migration for it.

1.1.0-rc.2 → 1.1.0-rc.3 ​

Five new console tables ​

What changed. The console stores three new documents for the dead-letter operation history (the operation, each service's announced databases, and each database's answer) and two for MCP confirmation tokens (the issued confirmation, and the record that makes it single-use). Their tables are mt_doc_dlqoperationrecord, mt_doc_dlqoperationfanoutrecord, mt_doc_dlqoperationoutcome, mt_doc_mcpconfirmation and mt_doc_mcpconfirmationredemption (in the console's schema; the names follow the store's own convention on SQL Server and SQLite).

Who is affected. Only a console whose database is created by a script rather than by the console itself, for example one that runs as a DML-only role. A console that owns its schema creates the tables on first use, as it always has.

What to do. Regenerate the script with db-dump, or apply the difference with db-patch, before starting rc.3. See Database. ⚠️ Until the tables exist, every replay, discard and edit-and-replay fails: the operation's history record is written in the same transaction as the command relayed to the service, so a failed write means nothing is relayed. An irreversible MCP tool fails at its preview for the same reason.

Edit & Replay needs dlq.edit as well as dlq.replay ​

Who is affected. A host that registers an ICritterWatchAuthorizer. An operator who could edit and replay a dead letter with dlq.replay alone is now refused, with a rejection naming dlq.edit. A plain replay still needs only dlq.replay. What to do: grant dlq.edit to whoever should keep the ability to rewrite a message.

A failed replay or discard is reported, not retried, on the monitored service ​

What changed. A Wolverine.CritterWatch rc.3 client reports a replay or discard that throws to the console, as a failed answer for that database. It no longer throws it into the service's own error handling, where it was retried or dead-lettered under the dlq-operation message type. What to do: nothing; run the operation again from the console to retry it. A service still on an older client behaves as before, and its operations show as Unconfirmed in the Dead Letters page's Operations tab, because it reports no outcome.

The monitored side moves to Wolverine 6.54 ​

The rc.3 packages are built against WolverineFx 6.54.0, with the same JasperFx, Marten, Polecat and Fisher versions as rc.2. Wolverine 6.54 adds replay-history columns to the dead-letter table, and a dead-letter history table, which its own migration creates. A service whose database is scripted needs that migration applied like any other Wolverine upgrade.

1.1.0-rc.1 → 1.1.0-rc.2 ​

An embedded console now enforces its own checks on every command ​

What changed. In rc.1, a command sent from the browser to an EMBEDDED console reached the application's handlers without passing through the console, so role-based access control, the audit log, the "command accepted" acknowledgement and the refusal for a service parked over its licensed limit were all skipped. In rc.2 every command goes through the console first. Standalone consoles are unchanged.

Who is affected. An embedded console with role-based access control turned on. An operator who could pause, replay or discard in rc.1 without the matching capability is now refused, as a standalone console would refuse them.

What to do. Check that the operators who need those actions hold the capabilities, and expect audit rows for embedded commands from now on.

Some operator actions need the newer Critter Stack on the monitored service ​

  • Per-tenant subscription rewind on a store that partitions its events by tenant needs JasperFx 2.91 and Marten 9.51 on the monitored service. An older service answers with a message saying so, instead of a raw exception.
  • Restart high water detection on a multi-database store under Wolverine-managed distribution needs Wolverine 6.51.2 on the monitored service.

Pause, restart and rewind are unavailable on Fisher / SQLite services ​

What changed. Wolverine.Fisher has no event-subscription agent family, so these actions could never succeed on a Fisher service. The console now disables them with the reason (wolverine#5094). Rebuild still works.

What to do. Nothing.

1.1.0-beta.8 → 1.1.0-rc.1 ​

The store floor is a recommendation again ​

What changed. The client now depends on JasperFx 2.79, which gives the document-store diagnostics members added in 2.77 default implementations (jasperfx#933). So a store built against an older JasperFx (Marten 9.42, say) starts again beside the client. The beta.7 entry below no longer applies as a startup requirement.

What still needs the newer store. On a store older than Marten 9.43, Polecat 5.34 or Fisher 1.15, the Document Explorer cannot read a document for a named tenant, and cannot use the store's own identity. Those reads answer with the store's upgrade message rather than data; default-tenant reads work. Upgrade the store when you want them.

CritterWatch's own endpoints never use a durable inbox ​

What changed. The console's telemetry listeners run with native broker acknowledgements, and its local queues in memory, whatever the host configures. That includes UseDurableInboxOnAllListeners(), UseDurableLocalQueues() and an explicit .UseDurableInbox() on its listener. A clustered console's sharded slots settle their own deliveries, with no companion local queue.

Who is affected. A console that ran its ingest Durable, which is the default for a clustered console's sharded slots. Telemetry that has arrived but not yet been applied is no longer kept across a console restart; unacked deliveries stay on the broker and are redelivered. Nothing is lost that matters: a service restates its state every cycle.

What to do. Nothing. If your host configuration deliberately made the console durable, the console now logs which endpoint it changed. An Error at startup means something configured later still won; read it.

An application's own Metrics.Mode is kept ​

What changed. AddCritterWatchMonitoring's metricsMode is now WolverineMetricsMode? with a default of null. A mode the application set on opts.Metrics.Mode is kept, including SystemDiagnosticsMeter, which used to be silently replaced with Hybrid. Hybrid applies only when nothing chose a mode.

Who is affected. A service that set SystemDiagnosticsMeter before calling AddCritterWatchMonitoring now stops publishing per-message-type metrics to the console, as it always intended. If you were relying on the old overwrite, pass metricsMode: WolverineMetricsMode.Hybrid explicitly. Code compiled against the old signature must be recompiled.

1.1.0-beta.5 → 1.1.0-beta.6: evict once more any service an earlier version evicted ​

Who is affected: a console on which you evicted a service (the Evict action on its detail page) while running any version before 1.1.0-beta.6, including 1.0.x, and where that service is still running or will run again.

What happened: eviction archived the service's event streams. Every store refuses to append to an archived stream, so each time that service reported again its update failed, and it never reappeared on the console, however often it restarted. Upgrading does not change streams that are already archived, so such a service stays missing after the upgrade too.

What to do: after upgrading, evict the service once more. Eviction now deletes the service's history rather than archiving it, including the streams an earlier eviction archived: the service's own stream, its listener history, and the streams of the alerts it had raised. So the service registers again the next time it reports, and those alerts can fire again. Without this step the service stays missing, and even once it is back, any alert it had before the old eviction would fail to raise. Nothing else is needed, and a service you never evicted is unaffected.

1.1.0-beta.6 → 1.1.0-beta.7: a console over its licensed service cap parks the surplus services ​

What changed. A license's Max monitored services limit is now enforced against the whole fleet. Before, it was checked only when a brand-new service first connected, so a fleet that was already over the limit (for example, one that ran unlicensed and then took a smaller key) stayed monitored in full.

Who is affected. Only a console whose license sets a service limit and that has more services registered than the limit allows. Everyone else sees no change.

What happens on upgrade. Within 30 seconds of starting, the console keeps monitoring the services that registered earliest, up to the limit, and parks the rest. A parked service keeps all of its data and stays listed, marked Not monitored — license limit, but its new telemetry is not applied and commands to it are refused. Nothing is deleted or evicted.

What to do. If the earliest-registered services are not the ones you want monitored, choose them with Keep monitored on each service's page, evict services you no longer need, or move to a license with a higher limit. The license is read once at startup, so a new key takes effect on the next restart. See Licensing.

1.1.0-beta.6 → 1.1.0-beta.7: the document explorer hides soft-deleted documents and asks for every tenant explicitly ​

What changed. The three stores now agree on what a document read returns (JasperFx 2.78's document diagnostics contract), and CritterWatch follows it:

  • Soft-deleted documents are hidden unless you turn on Include deleted, and then each one is marked. Before, Marten and Polecat returned them as though they were live, and Fisher hid them.
  • No tenant means the default tenant. The explorer's All tenants choice now sends an explicit "every tenant" request. Before, Marten and Polecat read every tenant for no tenant, and Fisher read the default tenant, which on a store whose documents are all tenanted is nothing.
  • Naming a sub-class returns only that sub-class, and a base type's page says which rows are sub-classes.
  • Reading one document by id takes its tenant directly, and returns a soft-deleted document marked rather than missing.

The query_documents MCP tool has matching allTenants and includeDeleted parameters and returns each document's tenant, type and deleted state in rows. Omitting tenantId reads the default tenant.

Who is affected. Anyone who reads documents on a Marten or Polecat store with soft deletes, or on a conjoined multi-tenant store. An agent or script that called query_documents without a tenant to see every tenant now sees the default tenant only: pass allTenants: true.

What to do. Nothing on the console for the behaviour change. But see the next note: the monitored services must move their store with the client.

1.1.0-beta.6 → 1.1.0-beta.7: a monitored service must run Marten 9.43, Polecat 5.34 or Fisher 1.15 or later ​

Relaxed in 1.1.0-rc.1: an older store starts again. See the rc.1 entry above.

What changed. The 1.1 client package (Wolverine.CritterWatch) depends on JasperFx 2.78. JasperFx 2.77 added members to the document-store diagnostics interface that every store implements, so a store built against an older JasperFx cannot load beside it.

Who is affected. A monitored service that upgrades the client and keeps an older store. Restore and build succeed, because NuGet lifts JasperFx under the old store without complaint, and then the service fails at startup:

System.TypeLoadException: Method 'LoadDocumentAsync' in type 'Marten.DocumentStore' from assembly
'Marten, Version=9.42.0.0' does not have an implementation.

(Measured with Marten 9.42.0 and JasperFx 2.78.0; Polecat below 5.34 and Fisher below 1.15 are built the same way. Tracked upstream as jasperfx#933.)

What to do. Upgrade the store in the same change as the client: Marten 9.43.0, Polecat 5.34.0 or Fisher 1.15.0, or later.

1.1.0-beta.6 → 1.1.0-beta.7: reading documents needs documents.read when permissions are wired ​

What changed. Reading stored documents in the Document Explorer (a page of a type, or one document by id) now requires the new documents.read capability, scoped to the store the request names or else the service, and every such read writes an audit entry. The query_documents and get_document MCP tools require mcp.documents.read the same way. Type lists and mapping DDL are schema and stay ungated. On the monitored service, a new EnableDocumentExplorer switch governs document reads. It follows EnableEventStoreExplorer when unset, so nothing changes there unless you set it.

Who is affected. Only consoles with permissions wired, using an authorizer that denies what it is not told to allow, which is the documented recipe. On those consoles, document reads stop working after the upgrade until you grant documents.read (and mcp.documents.read for agents) to the roles that should have it. The refusal says which capability is missing. Consoles without permissions wired, the default, are unaffected. This lands inside the 1.1 beta window on purpose: after 1.1.0 it would be a break inside a stable release.

What to do. Add documents.read wherever your authorizer grants event-store-explorer.view to people who should also see stored documents. documents.write and documents.delete gate editing and deleting a stored document; grant them only to people who may change business data by hand. Editing is also off outside Development on the monitored service until it sets CritterWatchOptions.EnableDocumentEditing.

1.0.x → 1.1: if you wired real permissions, check your capability assignments ​

Only affects hosts that register an ICritterWatchAuthorizer. If you have not, nothing changes: the default allows everything, and it always did.

The console now enforces capabilities on every operator command it relays or handles. Several were previously checked for an AI agent over MCP and not for a person clicking the same button:

commandcapability
Dead-letter replaydlq.replay
Dead-letter edit-and-replaydlq.replay and dlq.edit (it rewrites the message body, which dlq.edit exists to gate)
Dead-letter discarddlq.discard
Pause / restart / drain one listenerlistener.pause / .restart / .drain

⚠️ An operator who could run one of these before may now be denied. The refusal is explicit — the console answers with a rejection naming the missing capability rather than failing silently — but it will be a surprise if the capability was never assigned.

What to do: review the capabilities your authorizer grants against the table above before upgrading, and grant what your operators actually need. Read-only monitoring is unaffected; queries were never gated and still are not.

1.0.x → 1.1: the SQL view refuses a bare table name that resolves outside the store's schema ​

Only affects the Event Explorer's SQL view and the query_sql MCP tool. The allow-list used to match bare table names and ignore the schema, so select … from mt_events resolved through PostgreSQL's search_path. A bare reference is now qualified against the store's own schema and matched qualified-only.

⚠️ A statement that relied on search_path resolution now fails. On the fleet that found this, select count(*) from mt_events on one service had been answering from an unrelated public.mt_events table; it now reads the store's own table, and a reference that would resolve anywhere else is refused with the list of what the store declares. Qualified references (myschema.mt_events) are unchanged.

1.0.x → 1.1: a shard stopped by a progression conflict reports Conflicted, which is a new wire field ​

Affects the projection-health verdicts the console shows; no action is required to upgrade. A shard stopped by ProgressionProgressOutOfOrderException — two processes both believe they own it — used to render as Paused. It now renders as Conflicted, ranked above Failing, because the remedy is to find the other owner rather than to press Restart.

The classification rides a new field on the shard-state message. A monitored service on an older Wolverine.CritterWatch sends nothing there and the console falls back to the exception type, which reaches the same verdict — so a mixed fleet is fine. Bump the monitored service's package when convenient to move it onto the classified path.

1.0.x → 1.1: two capability families now name a different resource ​

Only affects hosts that register an ICritterWatchAuthorizer and decide using the resource argument. An authorizer that grants on the capability alone and ignores the resource is unaffected.

CritterWatch asks an authorizer two things: which capability, and which resource it applies to. Two gates run for an operator command — the MCP tool, for an AI agent, and the relay, for every command whoever sent it — and for two command families those gates named different resources for the same action. An authorizer written against one was asked a question by the other that it had no basis to answer, and answered no.

They agree now, so the resource you are asked about has changed:

capability familythe MCP tool used to ask aboutthe relay used to ask aboutboth ask about now
tenant.add · .enable · .disable · .remove · .hard-deletethe service namethe tenant idthe tenant id
projection.pause · .restart · .rebuild{service} or {service}:{tenant}the agent URIthe agent URI, plus @{tenant} when the command names one

The direction was chosen by the rule the relay's table already stated and enforced with a test: a capability names the most specific identifier available, so a grant can say "may disable THIS tenant" or "may rebuild THIS projection". For projections neither side could express what the other could — the relay distinguished projections but not tenants, the tool tenants but not projections — so the resource now carries both rather than one winning.

projection.eject, the listener family, and every other capability are unchanged.

⚠️ The agent URI's host is lower-cased — event-subscription://tripservice/Trip:All — because Uri.ToString() normalizes it. This is long-standing relay behaviour rather than a 1.1 change, but it is now visible to an MCP-originated grant too. An authorizer that compares a service name case-sensitively must account for it.

What to do: if your authorizer matches on resource, update the patterns for these two families before upgrading. A grant that no longer matches fails closed — the operator is refused with the capability and resource named in the refusal, rather than silently succeeding — so the failure is visible, but it is still a refusal.

1.0.x → 1.1: the legacy critterwatch queue's leader pin is yours to write ​

Only affects multi-node consoles that listen on the unsharded critterwatch queue.

That queue has no per-service hashing, so its only protection against competing consumers is .ListenOnlyAtLeader() — and that call lives in your own host's Wolverine configuration, beside your ListenToRabbitQueue("critterwatch"). CritterWatch does not own your listener configuration and cannot add it for you.

csharp
opts.ListenToRabbitQueue("critterwatch").ListenOnlyAtLeader();

Without it, every node appends to the same ServiceSummary streams — which corrupts them rather than merely contending, and surfaces as intermittent stream-version collisions long before anyone connects it to the listener configuration.

What to do: nothing, if the pin is already there — it has been in the recommended configuration for some time. This release adds a runtime check that logs at Critical and names the offending endpoints when it finds more than one node and an unprotected listener, so if you are missing it you will now be told rather than left to diagnose the symptom.

1.0.x → 1.1: an embedded console has its own wolverine_* tables ​

Only affects the new embedded mode. Nothing about a standalone console changed.

⚠️ This corrects guidance that was wrong before 1.1 shipped. The embedded documentation previously said the console's messages ride your application's existing envelope tables and that "you do not get a second set of wolverine_* tables to reason about or clean up." That is not what happens. Sharing occurs only when the host has set opts.Durability.MessageStorageSchemaName — which is not the same property as the MessageStorageSchemaName you set inside IntegrateWithWolverine(o => ...), and setting the latter looks like it worked because it does take effect for your own tables.

What to do: if you run any maintenance that resets or rebuilds the message store, iterate every store rather than the main one:

csharp
foreach (var store in await host.GetRuntime().Stores.FindAllAsync())
{
    await store.Admin.RebuildAsync();
}

A second set of envelope tables that nothing sweeps is how a previous defect went unnoticed for weeks — stale envelopes in an unswept schema replaying a previous run's telemetry on every boot.

1.0.1 / 1.0.2 → 1.1: extended progression tracking is turned on for every store ​

What changes. The Wolverine.CritterWatch client package now switches on extended progression tracking for every event store registered in a monitored service's container, through each store's own supported setting, rather than inferring it from the DI descriptors. The console does the same for its own stores. On first startup after the upgrade, each of those stores' progression tables gains the extra columns wherever schema management is left to the store.

Why you have to know. The upstream default for this flag is off, deliberately and permanently — defaulting it on is breaking for stores that never asked to be monitored, and upstream now has a guard test saying not to flip it again outside a major version (marten#5318 reversed an earlier restoration). CritterWatch therefore sets it rather than inheriting it, and that is load-bearing rather than belt-and-braces. Before this release, an ancillary store that kept a bare progression table made the console error on every progression read and write against it.

What to do.

  • Schema management on (the default): nothing. The columns are added on first startup.
  • AutoCreate.None or externally managed schemas: apply each store's schema migration before starting the upgraded service, as you would for any other schema change — whatever route you already use to emit and review store DDL.
  • Read-only database users: the account CritterWatch connects with needs ALTER TABLE on the progression table for the one startup that applies it, or the migration must be applied out of band.

TIP

The added columns are small and always-populated; there is no backfill and no rebuild. If you see the console log that a store still reports extended progression as off, that is the switch failing to take rather than a read failure, and it will name the store.

1.0.0 / 1.0.1 → 1.1: the console no longer forces its transport schema ​

(Carried from the unreleased 1.0.2, which is folded into this release.)

The console's queue tables move from critterwatch_wolverine to whatever the transport is configured with — Wolverine's wolverine_queues default unless you pass something.

  • If your fleet worked by setting critterwatch_wolverine on every service, it keeps working: that value is still honoured, it is simply no longer forced.
  • Otherwise drop the argument on both halves.
  • Leftover critterwatch_wolverine.wolverine_queue_* tables hold at most a few seconds of already-expired telemetry and can be dropped.

See Transport channels — the transport schema is a fleet-wide rendezvous, and every service and the console must agree on it. This is the change that, while the schema was forced, silently stranded all telemetry on database-queue fleets: services wrote, the console drained a different same-named table, and neither side logged anything.

1.0.x → 1.1: scheduling a rebuild needs a current client package and a durable queue ​

Scheduled rebuilds are a new command, not a new field on an existing one. That is deliberate: an optional property on the existing rebuild contract would be silently ignored by a service running an older Wolverine.CritterWatch, which would then rebuild immediately — an operator schedules for 03:00 and gets a rebuild in business hours, with nothing reporting a problem. A new command instead gets a no-handler report, which the console surfaces.

So: a monitored service must be on the 1.1 client package for "Rebuild later…" to work against it. Services on older packages are unaffected in every other respect — this is additive.

The service also needs somewhere durable to keep the schedule. The scheduled message lands in the monitored service's own message store, which is what makes it visible and cancellable on the Scheduled Messages page. On a default in-memory local queue it lives only in process, so a redeploy before 03:00 drops it with no error and it never appears on that page either. Enable AlwaysMakeScheduledMessagesDurable() or give the queue a durable inbox. A service with no message store at all cannot honour a schedule under any configuration, and CritterWatch refuses the schedule rather than accepting one it will drop.

1.0.x → 1.1: the new event-store query filters need a current client package ​

The Event Store Explorer's by-metadata search and the query_events tool gained multi-type unions, timestamp windows and sequence windows this release. A monitored service must be on the 1.1 client package to honour them.

A service on an older Wolverine.CritterWatch does not merely lack the feature — it drops an unknown filter while deserializing the request, so the filter never reaches the event store to be refused. The store's own guard against silently-ignored filters is one layer too low to see this, and unfiltered results would come back looking exactly like filtered ones.

So the service echoes back the filters it actually applied, and the console and the tool compare that against what was sent. Against an older service you get the dropped filters named and no rows at all, rather than a page that reads as an answer. This is additive: existing unfiltered and single-type queries behave exactly as before against any version, and never raise the warning.

1.0.x → 1.1: the Event Store Explorer opt-in now covers every event read ​

What changed. CritterWatchOptions.EnableEventStoreExplorer — set on each monitored service, on by default in Development and off everywhere else — used to gate only some of the reads that return event data: the stream, tag, document and projection-stepper views. The by-metadata event query, which returns full event bodies and backs both the Explorer's filter view and the query_events MCP tool, never checked it. As of 1.1 every read of event data respects it.

Who is affected. A monitored service that is not running in Development and has not opted in. On 1.0.x the Explorer's By Metadata view and query_events returned its events anyway; on 1.1 they answer "Event store explorer is disabled on this service" (ExplorerDisabled from the MCP tool) — the same answer the other Explorer views already gave that service.

What to do. Nothing, if you did not mean those reads to work. To keep them, opt the service in:

cs
builder.Host.UseWolverine(opts =>
{
    opts.ServiceName = "my-service";

    var critterWatch = opts.AddCritterWatchMonitoring(
        critterWatchUri: new Uri("rabbitmq://queue/critterwatch"),
        systemControlUri: new Uri("rabbitmq://queue/my-service-control"));

    // On by default in Development, OFF everywhere else. Event payloads are business data:
    // turning this on lets anyone with console access (and MCP callers holding
    // mcp.events.query) read this service's events.
    critterWatch.EnableEventStoreExplorer = true;
});

Opting in exposes that service's event payloads to anyone with console access, and to MCP callers holding mcp.events.query. That trade-off is the reason the default is off outside Development, and the reason one setting now governs all of it rather than some of it.

Needs both halves on 1.1. The check runs on the monitored service, so a service still on a 1.0.x Wolverine.CritterWatch keeps its old behaviour until it upgrades.

1.0.x → 1.1: SQL over the event store is a new read, and it follows the explorer opt-in ​

What changed. The Event Store Explorer's new SQL view and the query_sql MCP tool run a read-only SELECT on the monitored service, against the tables its event store declares. It is gated by a new switch on the monitored service, CritterWatchOptions.EnableSqlQuery, which when left unset follows EnableEventStoreExplorer — so a service that has opted into the explorer has, on upgrading its Wolverine.CritterWatch package, also opted into SQL.

Who is affected. A service that opted into the explorer outside Development and would rather not expose SQL. SQL reads by the table — projection documents included — which is more than the structured views return. Set EnableSqlQuery = false to keep the explorer's structured views and refuse SQL; the refusal is answered by name (Disabled), never silently.

cs
builder.Host.UseWolverine(opts =>
{
    opts.ServiceName = "my-service";

    var critterWatch = opts.AddCritterWatchMonitoring(
        critterWatchUri: new Uri("rabbitmq://queue/critterwatch"),
        systemControlUri: new Uri("rabbitmq://queue/my-service-control"));

    // The structured explorer views stay on; a SELECT over this service's tables is refused
    // by name. Left unset, EnableSqlQuery follows EnableEventStoreExplorer.
    critterWatch.EnableEventStoreExplorer = true;
    critterWatch.EnableSqlQuery = false;
});

Permissions and audit. On a console with permissions wired, the SQL view requires the new sql.query capability scoped to the store, and the MCP tool mcp.sql.query scoped to the service — neither is implied by the event-query grants. Every run is written to the audit log with the statement.

Needs both halves on 1.1. The handler lives in the monitored service, so a service on a 1.0.x Wolverine.CritterWatch has no SQL view: the console reports that it did not answer, and the MCP tool NoResponse.

1.0.x → 1.1: some stores answer to a new identity, so their shard rows are keyed anew (marten#5409, fisher#279, polecat 5.26) ​

The console keys every persisted shard-progression row on the store's subject URI and the database identifier the store reports. Three of those identities changed upstream in the 1.1 pin, each because the old one was unusable as a key:

StoreWasNowWho is affected
Marten, a named primary storemarten://main regardless of StoreNamemarten://{storename}only hosts that set StoreOptions.StoreName on the primary store; an unnamed one is still marten://main, and ancillary stores were already per-store
Fisherthe database uri, sqlite://localhost/{path}fisher://{storename}every Fisher store
Polecat, multi-databasesqlserver://host/dbsqlserver://host/db/dbo (a schema segment)Polecat reports the change renames rows keyed on that URI; treat it as affected until you have checked yours

Once a monitored service upgrades its client package it reports under the new identity, and the console creates fresh rows for it. Rows under the old identity are not reconciled away — the reconciliation marker a service sends is scoped to the store it now names, so the old store's rows are never claimed by anyone. They sit as stale cards until you evict the service from the console (the Evict action on the service's detail page) after its upgrade, which drops everything the console holds for it and lets the next heartbeat rebuild it clean. Nothing in the console's own schema changes.

1.0.x → 1.1: no action, but worth knowing ​

  • Per-tenant metric roll-ups are no longer scraped and broadcast by default. The per-tenant answer is requested on demand instead. If you built anything on the 30-second broadcast, it now needs to ask.

  • The Operations screen is shard-grained. Saved links or bookmarks into the old projection-grained inventory still resolve, but the screen opens on exceptions rather than on the full list.

  • A recurring schedule's live state needs a current client package. A monitored service on this release of Wolverine.CritterWatch reports its schedules' runtime state — paused, next occurrence, last handled — on its own telemetry cadence. A service on an older package reports none, and its Schedule Explorer rows read announced <age> rather than as of <age>: the values are its capability announcement's copy, frozen when it registered its schedules. That is rendered as a distinct claim rather than as a stale-looking live reading, so nothing is silently wrong — but the age on those rows says nothing about the schedule until the service is upgraded.

  • A leftover database-less high-water row on a single-database store (1.1.0-beta.5). Earlier 1.1 betas seeded a single-database store's high-water mark under a row with no database, beside the live mark the store reports under its database's name. The seed never moved again. From beta.5 the seed lands on the live row itself, but a console upgraded from an earlier beta keeps the old row until its progression data is reset. Nothing reads it as the store's mark (the higher of two marks wins), so it is safe to leave; delete it only if you query the table yourself and select the mark by the row's shape.

1.0.0-rc.9 → 1.0.0-rc.10: a third console package, CritterWatch.Sqlite, and a new shared core id ​

Nothing breaks, and existing consumers do not have to move. CritterWatch is still the Marten / PostgreSQL console package and still exposes AddCritterWatch(). Two things are new:

  • CritterWatch.Sqlite joins CritterWatch and CritterWatch.SqlServer as a third store flavour, backed by Fisher / SQLite. It needs no database service at all — it writes a file — which makes it the cheapest way to stand a console up. All three expose the same AddCritterWatch(WebApplicationBuilder) / UseCritterWatch(WebApplication) pair with an identical signature, so moving between stores is a package swap and no code change.
  • CritterWatch.Services is now a published package id of its own: the store-agnostic core all three flavours share. You never install it directly — each flavour depends on it — but it will appear in your dependency graph where it previously did not.

Who is affected: nobody upgrading in place. The only thing to know is that CritterWatch.Services is the core, not the Postgres console — if you had scripts or docs pointing dotnet pack or a package reference at src/CritterWatch.Services expecting the console, that is now src/CritterWatch.

1.0.0-rc.8 → 1.0.0-rc.9: the standalone MessageHandlingMetrics publish route is gone ​

AddCritterWatchMonitoring no longer declares a publish route for Wolverine's MessageHandlingMetrics type. The route was dead wiring: the CritterWatch observer folds every exported metrics batch into ServiceUpdates (and deliberately never publishes the batches individually), so the route carried zero traffic on every deployment — but it declared a contract that repeatedly misled analysis about what the console's leader-pinned legacy queue carries.

Who is affected: nobody, behaviorally. Metrics keep arriving inside ServiceUpdates exactly as before, in every metrics mode. If you had custom Wolverine routing that keyed off the MessageHandlingMetrics message type on the monitored side, that type no longer has a CritterWatch-declared route — but nothing publishes it standalone, so such routing was already inert.

1.0.0-rc.6 → 1.0.0-rc.7: external-source services default to live-only metrics persistence ​

A service that reports WolverineMetricsMode.SystemDiagnosticsMeter and is bound to a non-Postgres metrics data source (Prometheus, VictoriaMetrics, Datadog, Application Insights) now defaults to ExternalMetricsPersistence.LiveOnly: the console stops writing MetricsSample / MessagingMetricsBucket rows for it. Previously live-only was a per-service opt-in buried in the alert overrides, so this posture silently kept paying the console-side storage cost (~1 GB/hour measured in the field) for data nothing read — the metrics views and alert evaluators for such a service read the external store.

Who is affected: only deployments that already run services in SystemDiagnosticsMeter mode with an external source binding and did NOT set the live-only override. After upgrading, those services' new samples stop accumulating; existing rows age out through normal retention.

To keep the old behaviour for a specific service, set its External metrics persistence override to PersistSameAsInternal (Settings → the service's alert overrides, or the alert-config API) — an explicit override always wins over the default, in either direction.

1.0.0-rc.6 → 1.0.0-rc.7: SampleRetentionPeriod now actually drives the metrics partition window ​

Before this fix, both store registrations built the MetricsSample rolling partition window from the hardcoded 45-day default, ignoring a configured CritterWatch:Metrics:SampleRetentionPeriod. Consequences on earlier versions:

  • Shortening retention below 45 days reclaimed space by row deletes only (dead tuples + vacuum churn) — the O(1) monthly partition drops still waited for the 45-day floor.
  • Lengthening retention past ~56 days was destructive: the drop pass retired month-partitions that still held rows inside the configured window.

After upgrading, the window follows the configured value on both PostgreSQL and SQL Server, and the startup partition pass is additive only — provisioning happens at boot, while partition drops run solely from the hourly prune, which skips them when retention is 00:00:00 (keep forever) or when any per-service retention override outlives the global window. Existing partitions are adopted in place; no data migration runs. If you overrode SampleRetentionPeriod on an earlier version expecting partition-level reclaim, the first prune after upgrade will retire every partition past your configured window — verify that window is what you intend before deploying the upgrade.

1.0.0-beta.3 and earlier: monitored hosts using AddOpenApi() need Wolverine 6.17.2+ ​

The problem ​

On WolverineFx / WolverineFx.Http 6.17.1 and earlier, any read of ASP.NET Core's ApiExplorer that lands before the web server starts permanently freezes every OpenAPI document as empty ("paths": {}) for the lifetime of the host — ASP.NET's version-keyed description cache serves the first (empty) answer forever (wolverine#3371).

CritterWatch's monitoring satellite is an in-box early reader: the capability snapshot (ServiceCapabilities.ReadFrom) consults ApiExplorer from the observer's boot-time batching loop, which can win the race against web-server startup — reported at roughly 40% incidence on 2-core CI runners, rarer but possible anywhere. The result is that a plain Wolverine + CritterWatch + AddOpenApi() host can break its own OpenAPI documents just by being monitored, with no user code involved. HTTP routing keeps working; only the OpenAPI documents (Microsoft.AspNetCore.OpenApi, Swashbuckle, versioned documents) are affected, and only until the process restarts and wins the race.

Why the read happens at all ​

CritterWatch describes the monitored host's non-Wolverine endpoints — minimal API, MVC, Razor Pages, SignalR — by matching each RouteEndpoint against ASP.NET's ApiExplorer (IApiDescriptionGroupCollectionProvider), which is what populates the ASP.NET Endpoints page. That lookup is what touches ApiExplorer, and the capability snapshot runs it during the observer's boot handshake. This matters for what the fix below does and does not cover.

The fix ​

Upgrade the monitored service to Wolverine 6.17.2 or later. Wolverine's ApiDescription provider now enumerates its own HttpGraph — complete as soon as MapWolverineEndpoints() returns — instead of the DI EndpointDataSource that ASP.NET only populates at server start, so a pre-start read returns the same complete answer as a post-start one (wolverine#3373).

No CritterWatch configuration change is needed, and no CritterWatch version change is involved — the fix is entirely on the monitored host's Wolverine version. Wolverine.CritterWatch 1.0.0-beta.4 and later depend on Wolverine 6.18 or later, so a monitored service on any current client already has it. The hybrid-host caveat below applies whatever the version.

Hybrid hosts: 6.17.2 does not close this completely ​

If your OpenAPI document also contains minimal-API, MVC, or Razor Pages endpoints, upgrading is not the whole answer. 6.17.2 makes only Wolverine's descriptions start-independent. ASP.NET's own providers still compose their descriptions at server start, and the ApiExplorer read is still happening pre-start, and ASP.NET still caches the whole collection for the lifetime of the host.

So on a hybrid host the pre-start read now freezes a document that has the Wolverine endpoints but none of the minimal-API / MVC ones — where before 6.17.2 it froze fully empty. That is a better failure, and a more deceptive one: the document is populated, so it looks fine until someone notices their minimal-API routes are missing. This is called out in the fix's own behavior notes.

A pure Wolverine.Http host (every described endpoint comes from MapWolverineEndpoints()) is fully covered by 6.17.2 and needs nothing further. A hybrid host should defer its boot-time ApiExplorer reads as well — see below.

How to tell you've been bitten ​

Hit the OpenAPI document on a running host (/openapi/v1.json, or your configured route):

  • "paths": {} — the fully-empty freeze. Monitored host on Wolverine ≤ 6.17.1.
  • Paths present, but every minimal-API / MVC route missing while Wolverine routes are there — the hybrid-host freeze described above.

In both cases HTTP routing itself keeps working — only the documents are wrong — and both clear on a process restart that wins the race, which is exactly what makes this easy to dismiss as a flake. It reproduced at roughly 40% on 2-core CI runners and far more rarely on developer machines, so a document that is fine locally and empty in CI is the signature.

Interim mitigation ​

For a host pinned to Wolverine ≤ 6.17.1, or a hybrid host on any version that wants to be certain:

  • Preferred — make sure nothing reads ApiExplorer before ApplicationStarted. Wrap the registered IApiDescriptionGroupCollectionProvider so that pre-start reads are served from a throwaway provider instance (a fresh instance has a fresh cache, so ASP.NET's lifetime cache is never poisoned) and post-start reads delegate to the real one.
  • Simplest — don't attach CritterWatch monitoring to an OpenAPI-exposing host until it is on 6.17.2+ (and, if hybrid, until its boot-time ApiExplorer reads are deferred).

Either way this is a property of the monitored host, not of the console: no CritterWatch setting changes it, because the read is intrinsic to describing non-Wolverine endpoints at snapshot time.

1.0.0-beta.1 → 1.0.0-beta.2: mt_doc_metricssample becomes a partitioned table ​

What changed ​

beta.1 created the metrics history table (<schema>.mt_doc_metricssample, PostgreSQL/Marten consoles) as a plain heap table. beta.2 redesigned it for retention at scale: the table is now a range-partitioned parent (monthly child partitions plus a DEFAULT catch-all) with duplicated, indexed service_name / bucket_end columns that the metrics reads filter on.

PostgreSQL cannot ALTER a plain table into a partitioned one, so a console database first provisioned on beta.1 and then upgraded is stuck in the old shape. On beta.2 the symptoms were:

  • GET /api/critterwatch/throughput-series returns HTTP 500 for every parameter combination, so the dashboard's System Throughput chart is permanently empty (the generated SQL references the bucket_end column, which the old shape doesn't have).
  • Retention leaks: partition-based pruning has no partitions to drop and the row-level prune fails on the same missing column, so mt_doc_metricssample grows without bound (a single low-volume service accumulated 1.9M rows in the original report).
  • Both failures were silent: writes kept working, the host booted cleanly, and the only trace was a startup warning.

What happens automatically now ​

On startup (and again on every retention prune cycle), the metrics partitioner inspects the table shape:

  • Current partitioned shape — nothing to do.

  • beta.1 heap shape (an ordinary table with Marten's id + data columns) — it is auto-migrated, with row counts logged at each step:

    1. The legacy table (and its constraints/indexes) is renamed aside to mt_doc_metricssample_pre_partition.
    2. The partitioned parent — and the matching upsert functions and indexes — are rebuilt from Marten's configured DDL. This works under any AutoCreate policy, including None.
    3. The monthly + DEFAULT child partitions are created.
    4. Rows are backfilled from the renamed table, bounded by the retention horizon (CritterWatch:Metrics:SampleRetentionPeriod, default 45 days). Rows already past retention — including the leaked backlog the drift itself caused — are deliberately left behind: they would be pruned immediately anyway, and the bound keeps the migration a one-time bounded cost.
    5. The renamed table is dropped.

    Startup waits only for the schema phase (steps 1–3 — fast catalog work). The backfill and drop (steps 4–5) run in the background after the console is up and serving, with the metrics-store component on GET /api/critterwatch/system-health reporting degraded until they complete. This matters on a large legacy heap: earlier builds ran the whole copy inside host startup, so on a multi-GB table orchestrator liveness probes killed the "hung" console before the copy finished and every restart began it again. Don't restart the console while metrics-store reports degraded unless you have to — the migration resumes where it left off, but each interruption re-scans.

    The migration is idempotent and resumable: each step keys off catalog state and the backfill uses ON CONFLICT DO NOTHING, so an interruption (crash, deploy, connection loss) between any two steps resumes cleanly on the next startup.

  • Anything else — a shape that is neither the beta.1 heap nor the current partitioned parent — CritterWatch refuses to touch the table and fails loudly instead of warn-and-continue: an error log, plus a degraded metrics-store component on GET /api/critterwatch/system-health and on the critterwatch-system ASP.NET Core health check. The rest of the console keeps working.

During the (one-time) migration window, an in-flight metrics flush can log a transient write error between the rename and the function rebuild; it retries on the next flush interval and succeeds.

Manual migration path ​

If you'd rather migrate by hand — or your table is in a shape the auto-migration refuses — run the following against the console database (adjust critterwatch to your configured schema name). Metrics history is statistical/ephemeral data, so the simplest safe path is drop-and-recreate:

sql
-- 1. Move the old table aside (or DROP TABLE it if you don't care about recent history)
ALTER TABLE critterwatch.mt_doc_metricssample RENAME TO mt_doc_metricssample_old;
ALTER TABLE critterwatch.mt_doc_metricssample_old
    RENAME CONSTRAINT pkey_mt_doc_metricssample TO pkey_mt_doc_metricssample_old;

Then restart the console. On boot it recreates mt_doc_metricssample in the correct partitioned shape (this is the same "resume from the renamed table" path the auto-migration uses when the leftover table is named mt_doc_metricssample_pre_partition; with any other name the fresh table is simply created empty). Optionally backfill recent history:

sql
-- 2. (Optional) copy recent rows into the new partitioned table
INSERT INTO critterwatch.mt_doc_metricssample
    (id, data, mt_last_modified, mt_version, mt_dotnet_type, service_name, bucket_end)
SELECT id, data, mt_last_modified, mt_version, mt_dotnet_type,
       data ->> 'serviceName',
       (data ->> 'bucketEnd')::timestamptz
FROM critterwatch.mt_doc_metricssample_old
WHERE (data ->> 'bucketEnd')::timestamptz >= now() - interval '45 days'
ON CONFLICT DO NOTHING;

-- 3. Clean up
DROP TABLE critterwatch.mt_doc_metricssample_old;

How to tell it worked ​

  • GET /api/critterwatch/throughput-series?hours=24&bucketMinutes=60 returns 200 with a bucket array, and the dashboard's System Throughput chart renders.
  • GET /api/critterwatch/system-health reports "status": "healthy".
  • SELECT relkind FROM pg_class WHERE relname = 'mt_doc_metricssample' returns p (partitioned), and \d+ critterwatch.mt_doc_metricssample shows monthly partitions plus mt_doc_metricssample_default.
  • The leaked backlog is gone after the migration (out-of-retention rows are not carried over), and from then on normal retention keeps the table bounded by dropping aged monthly partitions.