Skip to content

Projections ​

The Projections view monitors all projections and event subscriptions registered in your Marten-, Polecat- or Fisher-based services. Each projection is tracked by its shard — a specific named partition of the projection's work.

CritterWatch Projections view — every projection shard across all services with health, lifecycle, progress vs. gap, and run mode

Where this lives now

The standalone Projections page was folded into the Event Store Explorer as its Operations tab; /projections redirects there. The tab has two grains. It opens on Shards, the exceptions-first grid of one row per (projection, database, tenant), described in The Operations tab. This page documents the Projections grain (the inventory grid, ?grain=projections), the operator actions, and high water detection.

Projections Grid ​

The grid shows all known projection shards across all monitored services, ordered worst health first within each service (after its pinned High Water Mark row), so the exceptions are at the top:

The grid is deliberately parsimonious with horizontal space — several lower-signal columns are folded into others as dots or muted subscripts rather than standing on their own.

ColumnDescription
AlertActive lag / staleness alert for this projection (critical or warning), if any
StateCritterWatch's interpreted projection state — Healthy / Catching-up / Stalled / Failing / Conflicted / Unassigned / Paused / Stopped / Idle / Inline / Unmeasurable / Unknown — fused from staleness, gap, apply errors, and dead-letter events. A small liveness dot to its left shows how recently the shard reported in (node alive); the tag shows whether the projection itself is healthy. While a command is in flight a pending pill sits beneath it.
ServiceWhich monitored service owns this projection (hidden when a single service is filtered)
NameProjection and shard identifier (e.g., TripSummary:All); the High Water Mark row is pinned first within each service. A muted subscript beneath it shows the implementing .NET type (for self-aggregating projections, the document type), with a link to what the projection writes where that is known.
StoreWhich event store this projection belongs to — an engine icon (Marten / Polecat / Fisher) plus the store name. Hover for Main DocumentStore registration or the ancillary store's interface name. On a multi-database store a subscript reads how many of its databases are reporting, tinted when that is fewer than the store declares. Essential in multi-store apps.
TypeTwo stacked neutral-grey pills (classifications, not statuses): the kind — Single Stream / Multi Stream / Subscription / Flat Table / Event Projection / Composite — and beneath it the lifecycle, Async / Inline / Live.
Progress / GapFor continuous projections, the gap (events behind the high water mark) with a lag-trend arrow; during a rebuild, a progress bar. Muted subscripts show the rate and the ETA when it is behind, and when the projection last advanced: the newest advance over its shards, so a quiet tenant with nothing to apply does not make a busy projection read hours old. During a rollout the rate and ETA are those of the version furthest from level, the same numbers the rollout panel shows for it.
ModeThe shard's run mode with a running / paused / stopped icon; the node executing the shard renders as a muted subscript beneath it.
ActionsThe per-row operator actions (below), plus a refresh that re-requests the service's projection statuses.

The Running State, Health State, Type, and Lifecycle filter dropdowns each show a per-option count of how many projections sit in each bucket, so you can see what's out there before filtering (the service scope comes from the page's service selector). A metrics header at the top of the Operations tab, above both grains, summarises the selected store: High-Water Mark, Projections (with a health-count pill), Max Lag, and Projection Dead Letters. Its numbers are computed on the server.

Rows lead with a selection checkbox; the Bulk Actions menu applies Pause Selected / Restart Selected / Rebuild Selected (and Rewind Selected when subscriptions are ticked) to every ticked shard at once, each showing the ticked count and confirming before acting. Rebuild Selected starts a tracked batch for each ticked projection on the Rebuilds page; the per-row Rebuild is the direct, untracked command. When any shard is paused or stale it also offers Restart All Paused / Restart All Stale. On a store that partitions its shards per tenant, a Flat / Per-tenant switch turns the grid into one card per (service, tenant) with per-tenant controls. Per row, Actions offers Pause, Restart, Rebuild, Rebuild later…, Rebuild all tenants… (on a per-tenant partitioned store) and, for a subscription, Rewind.

Fisher / SQLite services

Pause, Restart and Rewind are disabled, with the reason, on a store that runs its own projection daemon with no Wolverine agent family behind it, which today means every Fisher (SQLite) service (wolverine#5094). Rebuild still works there. A bulk action skips such rows and says how many it skipped.

From a projection to its documents ​

The Projections grid, a projection's detail page, the Subscriptions & Projections table on the Event Store Explorer's Configuration tab, and a read model card on the Event Model all link a projection to what it writes: the Document Store Explorer on that service, store and document type, ready to query, carrying the tenant when the page has one. An entity written through a DbContext opens the EF Core Explorer instead.

The rule is the same everywhere. An Inline or Async projection gets a link for each type it writes that is a document in its own store, or else an entity of exactly one DbContext. A type with no such match gets no link, so none of them is broken.

A projection can write several types. An event projection reports every document it creates or stores, and a composite reports what all its members write, so its row is where its members' links are. The grid prints the first three and says how many more, naming them when you hover; the projection's own page lists them all, under Writes when it has no read model of its own. A type named only for teardown counts as well, because the projection declares it.

A Live projection stores nothing and a subscription writes nothing of its own, so neither has a link. A flat table writes rows with no type, so there is nothing to link to. A service on a stack older than CritterWatch 1.2 does not report what its projections write: there an aggregate keeps its link, and an event projection or a composite has none.

Composite projections ​

A composite's members fold under the composite's row here; expand it for the Member shards tray, grouped by Stage N when the service reports stages. On the Shards grain each member is a row of its own, with its own sequence and lag, counted in Max Lag. A member has no agent, so it takes the composite's agent verdict (paused, stopped, failing, conflicted, unassigned, stalled), its reason prefixed Composite <name>:. It is never an orphan and raises no alerts of its own.

State Colors ​

  • Green (Healthy) — advancing, caught up, no errors
  • Yellow (Catching-up / Stalled) — behind the high water mark beyond the threshold, or behind it with no progress within the expected window
  • Red (Failing) — an apply error is latched, or the projection has dead-letter events
  • Red (Conflicted / Unassigned) — two processes both believe they own the shard (a ProgressionProgressOutOfOrderException; find the other owner, because Restart cannot work while it is still writing), or no agent is running the shard at all
  • Gray (Paused / Stopped / Idle / Unmeasurable) — paused by operator action, stopped (the console cannot tell whether that was a decision or a fault), registered but not currently advancing, or a shard whose lag cannot be measured. Unmeasurable is deliberately not green: an absent measurement is not evidence of health.

Stall Detection ​

A projection is considered stalled when a shard is behind a high water mark that is still moving and has not advanced for 5 minutes. A quiet projection that has caught up is not stalled, however long ago it last advanced: there is nothing for it to advance to. A shard with no measurable high water mark reads Unmeasurable instead, because "behind" is not known. Stalled projections receive a warning badge and can trigger alerts. On a projection with more than one shard the reason names the shard that stalled and how many have, for example No progress for 5297s (1 of 3 shards — 01010703): one tenant stuck behind its mark is a stall however fast the others move, and the row's rate is theirs.

The Last advanced column on the Operations tab is the age of the shard's last advance at the moment you read it. It is empty for a shard that has not reported an advance since its agent started.

CritterWatch can be configured to automatically attempt projection restart on stall detection. See Alert System for configuration.

High Water Detection ​

Every async daemon runs a high water detection loop: a poll that finds the highest event sequence it is safe for projections and subscriptions to read up to. If that loop stops cycling, every projection on that database stops seeing new events at once, while each of them still looks perfectly healthy on its own.

The loop is per node. A node runs a loop for a database only while it runs at least one projection or subscription agent for it, so under Wolverine-managed distribution several nodes can each run their own loop for the same database, and a wedged loop is a fault on one node.

Expand a store's High Water Mark row to see each node's loops:

ColumnDescription
NodeThe node running the loop. A restart is addressed to it.
DatabaseThe event database the loop polls.
LoopPolling (healthy), Stale (the loop has stopped completing poll cycles, by the daemon's own staleness threshold), or Not on this node (the node runs no agent for the database, which is normal).
Last pollWhen the loop last completed a cycle, as of the node's most recent report. Nodes report when something changes and every couple of minutes otherwise, so this can be that old on a healthy loop. Health is the Loop column, never the age of this one.
MarkThe high water mark the node's daemon holds.

Restarting a stale loop ​

A Restart detection button appears on a loop only when its node reports it stale. It restarts that node's poll loop for that database and never moves the high water mark, so it cannot skip an event. The node confirms the restart only once the loop has completed a poll cycle again; a restart that was issued but never confirmed is reported as a failure.

A restart can leave the loop stopped

The restarted loop has to read the database before it runs again. If the database cannot answer, the loop is left stopped on that node, and the outcome says so. That is worse than a stale loop, so fix the database first.

A healthy loop with a mark that will not move

If every loop reads Polling but the high water mark still does not advance, the daemon is held behind a gap in the event sequence, usually a transaction that reserved sequence numbers and has not committed. Restarting detection will not help. The daemon skips a gap on its own after its StaleSequenceThreshold.

Advancing the mark past a gap ​

When the daemon does not skip the gap on its own, Advance mark… moves the high water mark to the latest committed event sequence. It appears only on a loop that is Polling whose mark has stood still for at least five minutes (a stale loop gets Restart detection instead, which is safe).

Skipped for good

Every sequence number below the new mark that has no committed event is skipped permanently by every async projection and subscription on that database, including an append that is still in flight and commits afterwards. It cannot be undone.

The dialog reads the evidence from the service first: the stored mark, the committed ceiling, how many sequence numbers between them have no committed event (exactly what will be skipped), and how long the mark has been frozen. You type that skip count to confirm. The command carries the mark you saw and the skip count you confirmed, and the service refuses, writing nothing, if the mark has moved since, the gap no longer matches that count, or the mark is already at the ceiling. The outcome (the marks before and after, and how many sequences were skipped) is written to the audit log beside the request.

A database that keeps one mark per tenant (per-tenant event partitioning) is advanced one tenant at a time with the advance_high_water_mark MCP tool, naming the tenant; the dialog says so instead of guessing.

Advancing requires the projection.advance-high-water capability, separate from restarting detection. The same action is available to AI agents as preview_high_water_advance and advance_high_water_mark.

Restarting detection requires the projection.restart-high-water capability and is written to the audit log. The same action is available to AI agents as the restart_high_water_detection MCP tool, with list_high_water_loops to read the loops first.

Every store is covered, multi-database stores whose projections Wolverine distributes included. Until wolverine#5092 was fixed (Wolverine 6.51.2), reaching those daemons made each node build a daemon for every database, so CritterWatch left them unread and the panel said so.

Projection Detail ​

Click a projection row to open its detail page (/projections/:serviceId/:shardName). Refresh from service re-requests that service's projection statuses. The page carries:

  • Projection Info — type, lifecycle, version, event store, read model, shard names and the events it listens for.
  • Runtime State, per shard — current sequence, high water mark, the gap (or progress during a rebuild), mode, pause reason, assigned node, any latched exception, and a Sequence Over Time sparkline once there are two readings.
  • Event Timeline, per shard — rebuilds started and completed, pauses, restarts, rewinds, apply errors, dead letters recorded and operator actions, with who performed each, filterable by type.
  • Event Model — the slices that produce this read model and the slices that read it, when the service has an assembled model (see Event Modeling).
  • Error History and Apply Errors — the shard's latched exceptions, and how the projection handles an apply failure, with a link to the matching dead letters.

Controls ​

Pause — stop the projection shard. Messages continue to be written to the event store, but this shard will not advance. Use when you need to investigate shard state or before making schema changes. Requires confirmation.

Restart — resume a paused projection shard from where it stopped. Use after resolving the issue that caused you to pause. Restart reports success only once the agent is running on a node, so a green tick never stands for a projection that is running nowhere.

Eject — offered only on an orphaned shard (a renamed, versioned or removed projection whose row can never be paused, restarted or rebuilt): permanently deletes that shard's leftover progression row. Retired versions are ejected as a whole from the Event Store Explorer's Retired versions panel.

Rebuild — reset the projection to sequence 0 and rebuild the entire read model from scratch. This is destructive and can take a long time for large event stores. Requires explicit confirmation. A progress indicator shows estimated completion during the rebuild. A rebuild that runs longer than the acknowledgement timeout is not marked failed while it is still running, and a second rebuild of a projection that is already rebuilding is refused (shown as information, not an error).

For a rebuild that spans multiple stores or tenants — or one long enough that you'll want per-cell tracking, retry, and cancel — start it from the Rebuilds page instead, which runs through the batch-orchestration engine rather than the direct command.

Rebuild works for Inline projections too, not just async ones. An Inline projection has no async daemon agent, so the console addresses its rebuild by name; it runs through a transient rebuild agent that replays the events and then stops. Because an Inline projection updates synchronously as events are appended, its read model is briefly wiped and repopulated during the rebuild and concurrent live writes can race the replay — so the confirmation for an Inline rebuild carries an extra advanced-operation warning. Prefer a quiet window.

Scheduling a rebuild for later ​

Rebuild later… (per-row Actions menu) defers a one-shot rebuild to a time you pick — "rebuild this projection at 3AM tonight." The dialog defaults to 03:00 tomorrow, because the whole reason to schedule is to move the replay out of business hours. Targeting is identical to an immediate rebuild — the same shard (or name-addressed Inline projection), the same tenant scope — just deferred.

Three things about where that schedule lives, because they are what make it manageable:

  • The schedule is held in the monitored service's own message store, not in the console. The service receives the command immediately and schedules the deferred rebuild locally — which is precisely why it shows up on the Scheduled Messages page, where you can see it, cancel it, or reschedule it like any other scheduled message. If you are looking for a schedule you created, look there, filtered to the target service.
  • You get two acknowledgements, not one. The row's pending pill resolves immediately with "scheduled for …" — acceptance, not completion — and the real success/failure ack arrives when the rebuild actually runs, hours later. A scheduled rebuild that has not run yet is not stuck.
  • There is no duplicate guard, deliberately. The message store exposes no message bodies, so the service cannot distinguish "the same rebuild scheduled twice" from "two different projections scheduled for the same 03:00 window" — refusing on type + time would refuse legitimate schedules. A double-click creates two schedules; both are visible and cancellable on Scheduled Messages.

Durability is a precondition

The deferred rebuild is a local scheduled message on the target service. On a default in-memory local queue it would be lost by a redeploy — silently, and invisible to the Scheduled Messages page (which reads the message store). The service therefore refuses a schedule it cannot durably hold; give it a message store and durable scheduled messages (AlwaysMakeScheduledMessagesDurable() or a durable local queue) rather than working around the refusal.

For agents, the same surface is exposed over MCP: schedule_projection_rebuild, query_scheduled_messages, cancel_scheduled_message and reschedule_scheduled_message — see the MCP tool catalog.

Scheduling a rewind for later ​

The Rewind dialog — on the Projections page and on a projection's detail page — has a When choice. Now is the rewind it has always sent. Later defers it to a time you pick, defaulting to 03:00 tomorrow for the same reason as a scheduled rebuild: a rewind reprocesses every event from the target position, and the point of scheduling it is to move that replay out of business hours. The mode and target — to the beginning, to a sequence, to a timestamp — are exactly what an immediate rewind would use, just deferred.

Everything above about a scheduled rebuild holds for a scheduled rewind: it is held in the monitored service's own message store and appears on Scheduled Messages to cancel or move; you get two acknowledgements ("Rewind scheduled for …" now, the real outcome when it runs); there is no duplicate guard; and a service without durable scheduled messages refuses the schedule rather than accepting one a redeploy would lose. Two differences are worth knowing:

  • A malformed target is refused when you schedule it, not when it runs. A to sequence rewind with no sequence, or a to timestamp rewind with no timestamp, is rejected immediately — otherwise it would sit in the store until 03:00 and fail with nobody watching.
  • At run time the rewind needs a live subscription agent, exactly like an immediate one. If the subscription's agent is not running at 03:00 the rewind fails with a reason rather than being forwarded somewhere and reported as done.

Scheduling a rewind is not yet exposed over MCP — there is no MCP rewind tool at all, immediate or scheduled. A scheduled rewind is visible and manageable through query_scheduled_messages, cancel_scheduled_message and reschedule_scheduled_message, like any scheduled message.

Rewind — offered only for subscriptions (not projections); moves the subscription back to a specific point so it reprocesses events from there:

  • Rewind to beginning — reprocess every event from sequence 0
  • Rewind to sequence — enter a specific event sequence number
  • Rewind to timestamp — enter a date/time to find the nearest sequence and rewind to it. The time is in the display time zone, as is the time you pick for Later or Rebuild later…, whose 03:00 default is 03:00 on that clock

Rebuild vs. Rewind

Rebuild clears a projection's read model and rebuilds it from scratch — suitable when the read model is corrupted or the projection logic has changed.

Rewind applies to subscriptions only: it moves the subscription's position marker back and replays events through it, with nothing cleared — suitable when a subscriber needs to reprocess events after a bug fix.

Multi-Tenant Projections ​

For multi-tenant services, each tenant has independent projection shards. The grid shows all tenant-specific shards with the tenant ID displayed alongside the shard name. Rebuild and rewind operations target a specific tenant's event store.

On a store that partitions events per tenant, a store-global rebuild would leave every tenant partition untouched, so the row's Rebuild all tenants… rebuilds each tenant's shard instead. The confirmation names how many tenant partitions it will rebuild before it sends anything, because they all run at once; at fleet scale that is hundreds of simultaneous rebuilds, and Rebuild later… is usually the better choice.

Rewinding a subscription on a partitioned store ​

On a store that partitions events per tenant (Marten UseTenantPartitionedEvents), every tenant has its own agent and numbers its own events. Rewinds behave accordingly:

  • Rewind from a tenant's row in the grouped-by-tenant view to rewind that tenant only. All three modes are available, including To Sequence.
  • Rewind from the subscription's row to rewind every tenant. The service runs the rewind once for each tenant agent the cluster is running, on whichever node owns it, and the row reads Rewinding k of N tenants… until each has reported. If any tenant fails, the outcome names it and says why. Every tenant gets its own timeline entry.
  • To Sequence is disabled when rewinding every tenant, with the reason shown: one sequence number is a different position in each tenant's events. The service refuses it too, including when the rewind is scheduled, so a deferred rewind can't fail hours later at 03:00.

A per-tenant rewind needs JasperFx 2.91 and Marten 9.51 on the monitored service. On an older stack each tenant's rewind fails with a message saying so.