Warden periodic and automated processes
One page per batch or automated process in MGCWarden. Each page explains why the process exists, how it is
triggered, what it does step by step, what it reads and writes, how to watch it, and how to recover when it
fails.
The list was built from the code on 2026-11-06. It covers every Warden class that extends
RunBaseBatch (25 of them). It also covers one router that runs inside a standard process, and the standard
batch processes that Warden extends. MGCWarden has no SysOperation controllers.
Before you read a page, know three things:
- Nothing in the product schedules any of these processes. Warden creates no batch jobs. A fresh deployment runs none of them until an administrator gives each one a recurrence, in each legal entity where it applies. GETTING_STARTED §5b is the scheduling checklist: it says which jobs are required, what breaks when one is missing, and the one timing promise, which is the delta route drain every five minutes.
- A Warden batch fails open. A run that hits a fault records it and ends, so a failed run can still show Ended in batch job history. Watch each process's own run records and setup-gap rows, not only batch history. See Warden batch framework.
- Fourteen schedules are watched. The setup-gaps page flags an unscheduled job for the four route drains, purge execution, the two deprovisioning jobs and the audit queue writer, guard event ingestion, role event capture, role event retention, the audit health monitor, erasure execution and break-glass grant expiry. Each row appears only while its area is in use. No setup-gap rule watches the schedule of the others (the sweeps, count consolidation, the aged-MISSING monitor, the retention jobs and the snapshot, among others), so for those a missing schedule shows only in its effects. The per-process At a glance tables say which rules apply.
Every page uses the same headings: At a glance, Purpose and business justification, How and when it is triggered, Configuration and scheduling options, What it does, Dependencies and prerequisites, Inputs and outputs, Logging and monitoring, Errors, recovery and troubleshooting, Impact on other functionality and Related documentation.
Shared material
| Page | What it covers |
|---|---|
| Warden batch framework | What every Warden batch shares: the fail-open rule, execution exceptions, company scope, feature toggles and standing down, run records, the overlap guard (MGCWardenBatchOverlapGuard), setup gaps that watch schedules, the batch API (MGCWardenBatchService) and security. It also has a summary table of every batch. |
| Standard batch and periodic processes with Warden installed | How standard Dynamics 365 periodic processes behave with Warden installed: journal posting and copy, trade agreement posting, planned order firming and others. It is a catalog, not the single-process template. |
Order Guard and governance
| Process | Class | What it does |
|---|---|---|
| Route drains (delta, firming, trade agreement, journal) | MGCWardenDeltaRouteDrainBatch, MGCWardenFirmingRouteDrainBatch, MGCWardenTARouteDrainBatch, MGCWardenJournalRouteDrainBatch | Raise the approval workflow that a hold placed inside a native transaction still owes. Without them a held document can wait with nobody asked to decide it. |
| Sales governance policy sweep | MGCWardenSalesGovSweep | Re-evaluates open sales orders and quotations whose verdict was given under an earlier sales governance policy, so a tightened threshold reaches them before confirmation. |
| Trade agreement approval sweep | MGCWardenTAGovSweep | Supersedes trade agreement journal approvals that were granted under a price guard policy that has since changed, so the next posting attempt measures the journal again. It routes no new approval. |
| Duplicate requisition sweep | MGCWardenDuplicateSweepBatch | Finds sales orders that reuse a customer requisition number (SalesTable.PurchOrderFormNum). |
| Break-glass grant expiry | MGCWardenBreakGlassExpiryBatch | Ends break-glass role assignments whose time box has passed. BreakGlassExpiryNotScheduled flags a missing schedule once a role carries the break-glass privilege. |
| Journal reversal router | MGCWardenJournalReversalRouter | Not a batch. Routes a reversing inventory journal for review when the standard journal Copy runs. |
| Count consolidation | MGCWardenCountConsolidationRun | Turns accepted count decisions and approved write-offs into native counting journals, carrying the quantity that was approved. The journals are left for native review unless the count policy elects auto-posting. |
| Aged-MISSING monitor | MGCWardenMissingQueueMonitor | Marks MISSING-queue entries that are past their SLA date as Aged and notifies someone. It is a signal, not a gate. |
| Count case retention | MGCWardenCountRetention | Deletes closed count cases and counter records past their retention window, keeping any that are still in use. |
| Retention cleanup | MGCWardenRetentionCleanup | Deletes operational records after a short window and evidence only after the company's evidence retention floor, and removes side records whose source record is gone. |
| Setup-gap snapshot | MGCWardenSetupGapSnapshotBatch | Stores the setup-gap rows behind the workspace tile, so the tile need not run every check each time it opens. |
Auditor: activity and read audit, evidence, purge, deprovisioning and erasure
| Process | Class | What it does |
|---|---|---|
| Audit queue writer | MGCWardenAuditWriter | Moves captured accesses from the capture queue into the hash-chained audit store. |
| Guard event ingestion | MGCWardenAuditGuardIngestion | Copies Order Guard governance events into the audit store. |
| Role event capture | MGCWardenAuditRoleCapture | Records role grants and revocations, and raises the sensitive-role alert. |
| Role event retention | MGCWardenAuditRoleEventRetention | Deletes role events that have been forwarded to the store and are past retention. |
| Audit chain integrity | MGCWardenAuditIntegrityBatch | Seals ranges of the hash chain into anchors, publishes them and verifies the chain. |
| Audit sensor health monitor | MGCWardenAuditHealthBatch | Measures writer lag, queue depth and dropped captures against the health alert rules. Each breach leaves an alert, an execution exception and a self-audit row in the store. |
| Evidence pack builder | MGCWardenAuditPackBuilder | Builds evidence packs (India MCA, SOX ITGC, 21 CFR Part 11 and the workflow configuration export) per type, period and legal entity. Past the license block date on production it leaves a Skipped run instead. |
| Audit purge proposals | MGCWardenAuditPurgeProposalGenerator | Raises audit store purge proposals, one per partition, under a named accountable proposer who can never approve them. Without proposals nothing is ever purged. |
| Audit purge execution | MGCWardenAuditPurgeExecutionBatch | Carries out approved, dual-controlled purges: export, certificate, then delete. |
| HR deprovisioning scan and leaver intake | MGCWardenAuditDeprovisioning | Proposes leavers who still have enabled accounts, and processes the leaver intake. |
| Deprovisioning overdue monitor | MGCWardenDeprovisioningOverdueMonitor | Escalates deprovisioning entries that are past their service-level date. |
| Erasure execution | MGCWardenErasureExecutionBatch | Carries out due erasures. It writes the erasure certificate and tombstones the identity. |
Related documentation
- GETTING_STARTED §5b: what to schedule, and in which legal entities.
- Configuration reference: every parameter these processes read, and every setup-gap rule.