Capstone - Automated processes
This is a reference for every part of Capstone that runs without someone pressing a button and waiting for it:
- the five batch jobs;
- the event handlers that hook into standard F&O;
- the two subscriptions that run when the server starts;
- the processes that run as a consequence of another one, such as automatic re-open, native settlement and write-off posting;
- the queue that captures their failures.
For each process it covers:
| Covers | Meaning |
|---|---|
| Purpose | What the process is for |
| Trigger | What starts it |
| Configuration and scheduling | What it needs set up, and how to schedule it |
| Logic | What it does |
| Dependencies | What it relies on |
| Inputs and outputs | What it reads and what it writes |
| Logging | What it records |
| Monitoring and error handling | How to see it is healthy, and how it behaves when something fails |
| Recovery and troubleshooting | How to recover |
| Impacts | What depends on it |
Who this is for.
- System administrators and implementers who schedule and monitor the jobs.
- Support staff working out why something did or did not happen.
- Technical readers who need the exact behavior.
Accountants who only need to know which job to run should start from Set Capstone up for a legal entity, step 13 and Handle exceptions and monitor Capstone. Those are the procedures, and this page explains what lies behind them.
Basis. Everything here was read from the model source (Capstone\AxClass, AxTable, AxForm,
AxMenuItemAction, AxSecurity*) on 2026-11-06, at commit 0b5028f. Two markers flag statements
that are not read directly from the code:
- Inferred - deduced from the code's structure rather than read directly. Treat it as very likely, not proven.
- Platform - standard F&O behavior that Capstone relies on but does not itself implement. It was not re-verified here.
Related references: Technical reference (every class, the native integration tables, the security matrix).
Contents
- At a glance
- Mechanics common to every process
- Batch jobs
- Event handlers and startup subscriptions
- Chained processes
- P15 The recovery hub: Execution exceptions
- On demand only: no job exists
- Not automated in this release
- Monitoring checklist
- Troubleshooting index
- Known mismatches between code text and behavior
1. At a glance
| # | Process | Kind | Started by | Schedule it? | Retry from Execution exceptions? |
|---|---|---|---|---|---|
| P1 | Refresh balance snapshots | Batch job | Menu, or a recurring batch | Yes, required | Yes, for rows that reference a snapshot |
| P2 | Generate reconciliation instances | Batch job | Menu, workspace, or a recurring batch | Optional (monthly) | Yes, for rows that reference a snapshot |
| P3 | Run matching, with residual disposition | Batch job | Menu, workspace, matching workbench, rule sets, or a recurring batch | Optional | No: re-run it |
| P4 | Aging snapshot run | Batch job | Menu, workspace, aging pages, or a recurring batch | Optional | No: re-run it |
| P5 | Generate close binder | Batch job | Menu, workspace, binder workbench | Usually not (each run issues a new version) | No: re-run it |
| P6 | Posting seam: mark snapshots Not refreshed | Event handler | Any ledger posting | - | - |
| P7 | Close gate enforcement | Event handler | A native close task being completed | - | - |
| P8 | Ledger period status monitor | Event handler | A ledger period created or its status changed | - | - |
| P9 | License registration | Startup subscription | Server start | - | - |
| P10 | Number sequence registration | Startup subscription | Number sequence framework load | - | - |
| P11 | Re-open monitor | Chained | P1's per-account refresh; P12 | - | No |
| P12 | Realization sweep | Chained | P1's per-account refresh; gate evaluation | - | No |
| P13 | Native settlement realization and reversal | Chained | A match committing; P14; unmatch | - | Yes |
| P14 | Write-off posting | Chained | A reviewer approving a write-off | - | Yes |
| P15 | Execution exceptions: Retry and Dismiss | Recovery hub | A preparer | - | (is the retry) |
How they connect:
2. Mechanics common to every process
These rules hold for every process below. They are stated once here, not repeated each time.
Every batch job runs in one company, the one it was scheduled from. Each job reads curExt()
and touches only that company's data. Schedule each job once in every legal entity you reconcile.
The setup status check for Refresh balance snapshots is per company too.
All five jobs are classic RunBaseBatch dialogs. None is a SysOperation service.
- Open the job from its menu item and fill in the dialog.
- To schedule it, expand Run in the background, turn on Batch processing and set a Recurrence.
- Every job overrides
canRunInNewSession()to return true, so a long run started interactively does not hold the user's session. - None overrides
canGoBatchorrunsImpersonated, so the RunBaseBatch defaults apply (Platform).
Who a batch job acts as. Capstone records curUserId() as the actor on everything a job
writes. In batch that is the user the batch job runs as. Platform: that is normally the user who
scheduled it. This matters in two places:
- the timeline names that user;
- write-off segregation of duties judges that user (see P3).
"Use latest ended period". Generate reconciliation instances, Aging snapshot run and Generate close binder all lead with Use latest ended period, which defaults to Yes.
- With Yes, the job works out the date again each time it starts: the end date of the latest Operating fiscal period that ended before today. A recurring job therefore moves on to the next month by itself.
- With No, the job uses the date typed in the dialog every time.
- Jobs saved before this option existed unpack as No and keep their typed date until they are opened and saved again.
The license never stops an automated process. Only three interactive acts can be refused for licensing: Mark prepared, Certify and a manual Re-open. They are refused only on production, only after the licensing module's block date, and only after a warning period (Technical reference). No batch job, handler or chained process is license-gated. The re-open monitor (P11) asks whether the license is honored. When it is not, the monitor flags the instance instead of re-opening it.
Fail-open. A Capstone failure must never break the standard F&O operation it rides on. In practice:
-
Chained services catch their own errors and turn them into execution exceptions.
-
A protective catch only works outside a transaction. So the realization sweep, settlement realization, write-off posting and both halves of the re-open monitor first check whether they have been called inside one. If they have, they defer and do nothing:
- settlement realization and write-off posting record why, as an execution exception that Retry can re-run;
- the realization sweep and the re-open monitor return silently.
Every caller in this release calls them outside a transaction, so the silent defer is a safeguard rather than a path that runs today (Inferred from the callers).
Execution exceptions survive the rollback that caused them. MGCCapstoneReconExceptionService::raise
works as follows:
- It never throws.
- It inserts on its own database connection, so the row persists even when the caller's transaction rolls back.
- It falls back to a plain insert, and as a last resort it issues a warning.
- Each row records an operation (the table in §6),
a source (
CAP001policies, board and certification ·CAP002matching and write-offs ·CAP003tie-outs ·CAP004aging and specification ·CAP005close and binder), the company it was raised in, and usually a reference to the record involved. - The table is shared across companies, so one Execution exceptions page shows every legal entity's failures.
Timeline events. Processes write to the Capstone timeline (MGCCapstoneReconEventLog). It is
shared across companies and append-only, and it refuses updates and deletes. Event codes are named
under each process, and §9 lists them together.
3. Batch jobs
P1 Refresh balance snapshots
| Purpose | Recompute every balance snapshot that a posting has marked Not refreshed, so the workbench shows current balances. A moved balance under a certified reconciliation is noticed (P11) and reversed native settlements are found (P12). |
| Class / menu item | MGCCapstoneReconSnapshotEngine · MGCCapstoneReconSnapshotRefreshBatch |
| Where | Balance-sheet reconciliation → Policies, board and certification → Refresh balance snapshots. The dialog caption is Refresh reconciliation balance snapshots. |
| Who | Reconciliation controller only (privilege MGCCapstoneReconInstanceGeneratePriv through the orchestration duty). |
| Configuration | None. The dialog has no fields and stores nothing. The staleness SLA (Capstone parameters → General, default 24 hours) does not change what the job does. It only decides when the workbench stamps a balance Stale, and a stale balance never blocks a signature. |
| Scheduling | Required. Run it once with Batch processing on and a recurrence at least as often as the staleness SLA: daily for the shipped 24 hours. Do this in every legal entity. |
| Dependencies | The ledger fiscal calendar (an Operating period has to cover each snapshot's period end). Calls P11 and P12. |
| Reads → writes | Reads GeneralJournalAccountEntry, GeneralJournalEntry and the fiscal calendar. Writes MGCCapstoneReconBalanceSnapshot. Through P11 and P12 it can also write instances, the signature chain, match groups and the timeline. |
Logic.
- Select every snapshot in the current company whose state is Not refreshed. P6 puts them in that state; nothing else does.
- For each one, run the per-account refresh (
refreshPair):- Find the operating fiscal period for the snapshot's period end. If there is none, raise a Snapshot refresh exception for the main account and move on.
- Compute the balance outside any transaction. It is the sum of the accounting-currency amount from the latest Opening period entry onwards, excluding Closing periods, across all posting layers.
- In a short transaction, store the balance and the capture time, and set the state to Refreshed.
- If the snapshot already had a balance and it has changed, call the re-open monitor (P11).
- Always call the realization sweep (P12) for that main account.
- Report how many snapshots were recomputed.
The job is idempotent: it recomputes from the ledger, so running it twice changes nothing the second time. The same per-account refresh also runs from three other places:
- Refresh snapshot on the workbench (preparer or reviewer);
- Retry of a Snapshot refresh exception;
- instance generation, when an instance's snapshot is missing or Not refreshed (P2).
Logging.
- Infolog: "Capstone snapshot refresh (company): n snapshot(s) recomputed from the ledger."
- The refresh itself writes no timeline rows. P11 and P12 write theirs.
- Exceptions use operation Snapshot refresh (
CAP001), raised in three cases:
| Case | References | Retry? |
|---|---|---|
| No operating period covers the snapshot | the main account | No: fix the calendar, then re-run the job |
| One account fails to recompute | the snapshot (or the main account if it was never created) | Yes, when it references a snapshot |
| The whole run fails | nothing | No: re-run the job |
Monitoring and error handling.
run()never throws. A batch task that recomputed nothing because every account failed still ends normally (Inferred). Watch Execution exceptions, not just the batch job status.- Capstone setup status → Snapshot refresh schedule reads Missing when no waiting, executing, ready or scheduled batch job for this class exists in the company. It does not check the recurrence.
- A row that fails during the run was already Not refreshed, so the next run picks it up again by itself.
Impacts.
- Workbench balances and the freshness stamp.
- Automatic re-open (P11) on a moved balance.
- The account-scoped realization sweep (P12).
- The snapshot half of the No transfer backlog gate condition, which is red while any snapshot in the period is Not refreshed. Its other half is tie-out runs older than the source matrix SLA, and this job does not touch that.
A gap to know about. A native settlement reversed on the Ledger settlements page posts nothing. P6 does not fire, and the batch drain has no reason to revisit the account. A reversal is therefore found by the account-scoped sweep only when something else touches that account: another posting, a workbench Refresh snapshot, or a Retry. The whole-company sweep runs each time a close gate is evaluated. If you rely on realized settlements, evaluate your gates before you trust a period. (Inferred from the sweep's hook points and the drain's filter.)
P2 Generate reconciliation instances
| Purpose | Create the period's reconciliation instances: one per account, legal entity and period that an Active policy scopes in and whose frequency falls due. |
| Class / menu item | MGCCapstoneReconInstanceGenerator · MGCCapstoneReconGenerateInstances |
| Where | Policies, board and certification → Generate reconciliation instances. Also a button on the Balance sheet reconciliation workspace. |
| Who | Reconciliation controller (orchestration duty). |
| Configuration | Dialog: Use latest ended period (default Yes) and Period date (any date inside the period). Needs at least one Active policy with scope rows, preparer and reviewer: see Set Capstone up for a legal entity, step 5. |
| Scheduling | Optional. A monthly recurrence early in each month with Use latest ended period = Yes generates the month that has just ended. Re-running is safe. |
| Dependencies | Policies and scope rows; the fiscal calendar; P1's per-account refresh. |
| Reads → writes | Reads policies, scope rows, main accounts, fiscal periods and snapshots. Writes MGCCapstoneReconInstance and snapshots, and adds Generated timeline rows. |
Logic.
- Resolve the date. With Use latest ended period it is worked out at run time.
- Find the operating fiscal period covering it. If there is none, the run fails with "No operating fiscal period … covers date".
- Resolve the targets in three passes: Main account scope rows, then Account category, then
All accounts. The passes run over Active policies in creation order, and Total and
Reporting accounts are excluded. The most specific row wins, and only then is its frequency
judged:
- Weekly and Monthly are due every period.
- Quarterly is due every third operating period of the year.
- Annual is due in the last period only.
- For each target that is due:
- Skip it if a live instance already exists. This is what makes the job idempotent; "live" means any status except Superseded.
- Refresh its snapshot if it is missing or Not refreshed.
- Set the due date to the period start plus the scope row's due-day offset.
- Insert the instance, stamped with the policy's risk, method and owners, and log
Generated. Inserts are serialized on a lock of the parameters row, so two concurrent runs cannot create duplicates.
- Each target is tried on its own. A failure is captured, and the run carries on.
Logging.
- Infolog: "Reconciliation instance generation for company in period: n created, n already live and skipped, n off-frequency, n failed."
- Timeline:
Generatedper instance. - Exceptions use operation Instance generation (
CAP001). A row failure references the snapshot, or the main account if no snapshot exists. A run failure references nothing and also shows a warning.
Recovery.
- Retry works for a row that references a snapshot. It generates the instance if it is still owed and none exists yet.
- Any other row asks you to re-run Generate instances. That is always safe.
- Fix the cause first: usually the fiscal calendar, or a policy with no owner.
Impacts. Instances drive certification, binder readiness and the gate conditions that count uncertified accounts. The snapshot refreshes during generation run P12 for each account they touch, and a revoked group there can trigger P11. They cannot trigger P11's balance-moved half: generation only refreshes an account and period that has no live instance yet, so no certified instance sits on that snapshot.
P3 Run matching, and residual disposition
| Purpose | Run one matching rule set over the open ledger items of the accounts it covers. In Commit mode it creates match groups, commits the ones confident enough, settles the residual of each committed group, and hands eligible groups to native settlement (P13). |
| Class / menu item | MGCCapstoneReconMatchRunController (engine MGCCapstoneReconMatchEngine, disposition MGCCapstoneReconDispositionProcessor) · MGCCapstoneReconMatchRun |
| Where | Matching and write-offs → Run matching. Also on the workspace, the matching workbench, and Matching rule sets (to simulate). |
| Who | Reconciliation preparer (preparation duty). The controller's role does not hold it. |
| Configuration | Dialog: Rule set (must exist and be enabled) and Mode: Simulate (the default) or Commit. Both are saved with a scheduled job. Needs rule sets, and for residuals, tolerance bands with dispositions: Set Capstone up for a legal entity, steps 6-8. |
| Scheduling | Optional. Schedule it in Commit only after the rule set has been tested in Simulate and you are content with its auto-accept threshold. |
| Dependencies | Rule sets, tolerance bands and residual dispositions. P13 and, through write-off proposals, P14. |
| Reads → writes | Reads open GeneralJournalAccountEntry items, rule sets and bands. Writes MGCCapstoneReconMatchRunLog, match groups and their lines, Draft write-off proposals and the timeline. |
Logic.
- Create the run log.
- Work out the accounts in scope. An All accounts rule set covers the accounts of Active policies, or the whole chart when there are none. An account claimed by a more specific rule set is skipped.
- For each account, in its own transaction:
- Build the open-item population as of today.
- Apply the rules in sequence order, stopping at the first match where the rule says so.
- In Simulate, count and report only.
- In Commit, create each group as Open. When its confidence reaches the rule set's auto-accept threshold, commit it and run residual disposition.
- After each account's transaction, in Commit mode, offer every group this run committed on that account to native settlement (P13).
- Finish the run log and write
MatchRunCompleted.
Residual disposition decides what happens to a committed group's residual:
- A zero residual needs nothing.
- Otherwise the residual's tolerance band decides:
- escalate: an exception plus a timeline code such as
ResidualAboveBand,DispositionGap,ResidualEscalatedorReclassPending; - carry it open:
ResidualCarried; - write it off: a Draft write-off proposal is created, the group becomes Disposed,
and
ProposalCreatedandWriteOffProposedare logged.
- escalate: an exception plus a timeline code such as
- Escalations are de-duplicated against exceptions already open for the same group.
Logging.
- Infolog summary per run. Timeline:
MatchRunCompleted, plus the disposition codes above. - Exceptions:
- Match engine run (
CAP002) references the run log, for an account that failed. A whole-run failure references nothing. - Residual disposition (
CAP002) references the match group.
- Match engine run (
Recovery.
- Neither exception re-dispatches.
- For Match engine run: "re-run Run matching for the account". An account that failed rolled back on its own, and the others are unaffected. Exceptions raised inside the failed account survive the rollback, because they are written on their own connection (Inferred).
- For Residual disposition: "resolve the residual on the matching workbench (Process residual, or Split/unmatch group)".
- Then Dismiss the exception with a reason.
Impacts. Match groups take items out of open-item aging and feed the write-off workflow and native settlement.
Segregation of duties and scheduled matching. A proposal's proposer is
curUserId(). When a scheduled Commit run creates a Draft write-off, the proposer is the user the batch runs as, and that user is then refused approval of it, like any other proposer. Schedule matching under a user who will not be approving write-offs. (Inferred from the proposer stamp and Platform batch identity.)
P4 Aging snapshot run
| Purpose | Age the open items of every enabled aging profile, or one chosen profile, as of a date. Store the result as a dated, immutable run. |
| Class / menu item | MGCCapstoneReconAgingRunBatch (engine MGCCapstoneReconAgingEngine) · MGCCapstoneReconAgingRunBatch |
| Where | Aging and balance sheet specification → Aging snapshot run. Also on the workspace, Aging profiles and Open-item aging. |
| Who | Reconciliation preparer (preparation duty). |
| Configuration | Dialog: Use latest ended period (default Yes), As of date, and Aging profile (blank means every enabled profile). Needs enabled profiles with buckets and scope rows: Set Capstone up for a legal entity, step 9. |
| Scheduling | Optional. A monthly recurrence with Use latest ended period = Yes ages each period-end. Every run creates a new snapshot. |
| Dependencies | Aging profiles; match state (matched items are not open). |
| Reads → writes | Reads open ledger items and match groups. Writes MGCCapstoneReconAgingRun and MGCCapstoneReconOpenItemAge, and logs AgingRunCompleted. |
Logic.
- For each enabled profile, build its population and age it outside any transaction.
- In one transaction, insert the run, its lines and the completion mark, and log
AgingRunCompleted. - After that commits, raise one Aging mapping gap exception for each item whose original date could not be traced across a year-end. They are capped at 50, plus one summary row.
A profile that fails is captured, and the others still run. The job is not idempotent. Each run is a new snapshot, and that is the point: a specification statement ages against a specific run.
Logging.
- Infolog summary.
- Timeline:
AgingRunCompleted. - Exceptions:
- Aging snapshot run (
CAP004) references the profile, or nothing for a whole-run failure. - Aging mapping gap (
CAP004) references the run.
- Aging snapshot run (
Recovery. Neither exception re-dispatches:
- For Aging snapshot run: "re-run Aging snapshot run for the as-of date".
- For Aging mapping gap: "fix the original-date linkage of the named voucher and re-run Aging snapshot run".
Impacts. Open-item aging. A balance sheet specification can only be generated over a completed aging run that covers its account.
P5 Generate close binder
| Purpose | Issue a versioned, hashed close binder for a period from a template. The binder is the evidence pack an auditor receives. |
| Class / menu item | MGCCapstoneCloseBinderGenerator · MGCCapstoneCloseBinderGenerate |
| Where | Close orchestration and binder → Generate close binder. Also on the Period close workspace and the Close binder workbench. |
| Who | Reconciliation controller (orchestration duty). |
| Configuration | Dialog: Binder template (default GROUP-AUDIT, created on first use), Use latest ended period (default Yes), Period date, and Generate with exceptions (default No). |
| Scheduling | Usually not. Each run issues version n + 1 and supersedes the previous version, so a short recurrence fills the binder history with versions nobody asked for. Run it when the period is certified. |
| Dependencies | Certified instances (readiness); the template. |
| Reads → writes | Reads instances, signatures and templates. Writes MGCCapstoneCloseBinderVersion and MGCCapstoneCloseBinderArtifact, and logs to the timeline. |
Logic.
- Resolve the template. If
GROUP-AUDITdoes not exist yet, seed it and logBinderTemplateSeeded. - Resolve the period.
- Check readiness, which counts uncertified instances. An unready period is refused unless Generate with exceptions is on.
- Render every section in memory. The Write-off register, Tie-outs and Balance sheet specifications sections have no renderer yet: when optional they are skipped with a note, and when Required they refuse. Variance commentary refuses when Required.
- Refuse if nothing rendered. Otherwise hash the artifacts.
- In one transaction, supersede the prior version, insert the new Issued version and its
artifacts, and log
BinderGeneratedorBinderGeneratedWithExceptions.
Logging. Infolog. Timeline as above. Exceptions use operation Binder generation (CAP005),
reference nothing, and also show a warning.
Recovery. It is all or nothing, so a failed run leaves no partial binder. Fix the cause (usually readiness or a Required section that has no renderer) and re-run Generate close binder for the period.
Impacts. The binder statement report reads the issued version. Rendering on a deployed environment is still unproven.
4. Event handlers and startup subscriptions
None of these has a menu item, a privilege or a schedule. They run inside standard F&O operations, in the session of whoever performs them.
P6 Posting seam: mark snapshots Not refreshed
| Purpose | Queue balance snapshots for recompute whenever the ledger changes, without computing anything inside the posting. |
| Trigger | [DataEventHandler] on GeneralJournalAccountEntry Inserted (MGCCapstoneReconSnapshotEngine::onGeneralJournalAccountEntryInserted). Every ledger posting fires it. |
| Configuration | None. |
| Reads → writes | Reads the entry and its GeneralJournalEntry. Writes MGCCapstoneReconBalanceSnapshot.State. |
Logic.
- Ignore entries with no main account.
- Ignore entries whose ledger is not the current company's ledger.
- Otherwise, one set-based
update_recordsetmarks every existing snapshot of that main account with a period end on or after the entry's accounting date as Not refreshed. Period-end balances are cumulative, so every later period is affected.
The handler never inserts a snapshot, and it is idempotent. It joins the posting's own transaction, so a posting that rolls back takes the mark with it.
Logging. None.
Errors. There is no catch. A failure here would fail the posting (Inferred). The statement is a single indexed update.
Impacts. Feeds P1. While the marked rows exist in a period, the No transfer backlog gate condition is red.
P7 Close gate enforcement
| Purpose | Make an Enforced close gate binding on the native close: its task cannot be completed unless the gate's latest evaluation is Green and fully judged. Stamp the verdict on the evaluation when a gate task completes. |
| Trigger | [DataEventHandler] on LedgerPeriodCloseProjectTask Updating (MGCCapstoneCloseGateEnforcement::onTaskUpdating). It fires on every native update and acts only on a change to Complete of a task that has a Capstone gate link. |
| Configuration | Whether the gate is Enforced or Advisory, stored on its task link. See Set Capstone up for a legal entity, step 11. |
| Reads → writes | Reads the task link and evaluations. Writes MGCCapstoneCloseGateEvaluation (the completion stamp) and the timeline. |
Logic.
- Find the evaluation to judge: the task's own latest, otherwise the latest for the gate and closing project.
- Enforced: throw a refusal, which rolls back the native update, if any of these holds:
- the gate was never evaluated;
- the evaluation is not Green (up to five blockers are listed);
- no condition was judged;
- any condition was skipped.
- If an evaluation exists, stamp it once with Completion stamped, the completing user and
time, and Completed while red. Log
CompletedOnGreenorCompletedWhileRed. An Advisory gate always completes. A red completion is simply recorded as such.
It applies the same way whether the task is completed natively in Financial period close or through Capstone's Complete gate task, which mirrors the refusal before it updates the task.
Recovery.
- Clear the blockers.
- Evaluate now until the gate is Green with every condition judged.
- Complete the task again.
There is no override action. The gate definition's Override role field is stored but nothing reads it.
Impacts. Holds the native close for that task, and anything that depends on it, by the customer's own choice of Enforced.
P8 Ledger period status monitor
| Purpose | Record the status history of ledger periods, which F&O does not keep, so the No closed-period postings gate condition can tell when a period was closed. |
| Trigger | [DataEventHandler] on LedgerFiscalCalendarPeriod Inserted, and Updating when the status changes (MGCCapstoneCloseLedgerPeriodMonitor). |
| Configuration | None. |
| Reads → writes | Writes one row to MGCCapstoneCloseLedgerPeriodStatusLog: ledger, period, new status, when and by whom. The table is shared across companies, and it refuses updates and deletes. |
Logic. One insert per change, inside the native transaction.
Logging. The status log row is itself the record.
Errors. There is no catch. A failure would fail the native period change (Inferred).
Impacts. Feeds the No closed-period postings detector. A period that was closed before Capstone was installed has no history, so the detector reports the condition skipped, neither passed nor failed. An Enforced gate refuses a skipped condition.
P9 License registration at startup
| Purpose | Register Capstone with the licensing module. This starts the licensing module's clock for an environment that has never reached the licensing service. |
| Trigger | [SubscribesTo(ApplicationStartupEventManager, onSystemStartup)] (MGCCapstoneLicenseStartup). |
| Logic | MGCCapstoneLicense::ensureRegistered() registers the product with the licensing module. This is idempotent. |
| Errors | Every error is swallowed and nothing is logged. If registration never runs, nothing is blocked. |
| Impacts | Feeds the license decisions behind Mark prepared, Certify and manual Re-open, the re-open monitor's choice to re-open or flag, and the administrator banner on Capstone parameters. See Technical reference. |
P10 Number sequence registration
| Purpose | Declare Capstone's number sequence references to the standard framework, so Generate under Organization administration → Number sequences creates them. |
| Trigger | [SubscribesTo(NumberSeqGlobal, buildModulesMapDelegate)] (MGCCapstoneNumberSeqModule). |
| Logic | Declares ten references. Eight are per company: policy, instance, match run, match group, write-off proposal, aging run, statement and binder. Two are shared: execution exception id and tie-out run id. All are non-continuous. |
| Impacts | A reference left unassigned falls back to a prefixed GUID (RI-3f7a…), except the policy code, which you then type yourself. Capstone setup status → Number sequences reads Incomplete until all ten are assigned. |
5. Chained processes
These have no menu item or schedule of their own. Each runs because another process or act called it, and it inherits that caller's company and user.
P11 Re-open monitor
| Purpose | When the evidence beneath a certified reconciliation changes, send it back for rework or flag it for review, by risk class. |
| Class | MGCCapstoneReconReopenMonitor (re-open itself is MGCCapstoneReconSignOffService.reopen) |
| Triggers | (a) Balance moved: onBalanceChanged, called by P1's per-account refresh when a snapshot that already had a balance gets a different one. That refresh runs from the P1 batch, the workbench Refresh snapshot and Retry of a Snapshot refresh exception. Instance generation also refreshes, but only for an account and period with no live instance, so it never re-opens this way; it can still reach (b) through the sweep. (b) Settlement revoked: onRealizationRevoked, called by P12 for the account of a revoked group. |
| Configuration | Capstone parameters → Re-open: one mode per risk class, Re-open automatically or Flag only. It ships as High → Re-open automatically, Medium and Low → Flag only. |
| Reads → writes | Reads instances and parameters. Writes the instance (status, review flag and note), the signature chain and the timeline. |
Logic.
- Select the affected instances that are Certified or Auto-certified:
- (a) instances whose balance snapshot is the one that moved;
- (b) instances on the account whose period ends on or after the earliest leg date of the revoked group.
- For each one, look up the mode for its risk class:
- Re-open automatically, and the license is honored: re-open. This means verifying the
signature chain, setting the status to Re-opened, clearing any review flag, appending a
Re-opened chain link, and logging
AutoReOpened. The instance then goes back through Mark prepared and Certify under the same segregation-of-duties rules. - Flag only, or Re-open automatically while the license is not honored: set Flagged for
review with a note and log
FlaggedForReview. In the license case the note says why it was not re-opened.
- Re-open automatically, and the license is honored: re-open. This means verifying the
signature chain, setting the status to Re-opened, clearing any review flag, appending a
Re-opened chain link, and logging
- Each instance is handled in its own transaction. One failure does not stop the others.
The balance-moved note reads "The certified balance moved from x to y after a later posting…". The settlement-revoked note names the reversal.
Logging. Timeline: AutoReOpened or FlaggedForReview. Exceptions use operation
ReopenMonitor (CAP001) and reference the instance.
Recovery. Not retryable: "review the instance and re-open it from the reconciliation
workbench if needed". A reviewer can also clear a flag deliberately with Clear review flag
and a reason. The instance stays certified, and ReviewFlagCleared keeps the reason.
Impacts. A re-opened instance counts as uncertified for binder readiness and for the gate conditions. The monitor only sees what P1 and P12 show it. If the refresh job is not scheduled, it reacts only when someone refreshes a snapshot or evaluates a gate.
P12 Realization sweep
| Purpose | Re-verify every native settlement Capstone created. Reversing a settlement on the native Ledger settlements page posts nothing and changes no balance, so a stored settlement reference is re-checked, never trusted. |
| Class | MGCCapstoneReconRealizationSweep |
| Triggers | Account-scoped: after every successful per-account refresh in P1. Whole company: at the start of every close gate evaluation (Evaluate now). |
| Configuration | None. |
| Reads → writes | Reads match groups and lines, and the native LedgerTransSettlement. Writes match groups (state; lines deleted on revocation), the timeline and, through P11, instances. |
Logic.
-
Find Realized groups whose native settlement has vanished, with two set-based reads:
- groups with no unreversed settlement record under their reference;
- groups with a leg that is no longer settled under that settlement.
-
For each one, revoke it in a single transaction:
- If the group carries a posted write-off, its legs stay held: the group stays matched, marked Revoked.
- Otherwise the group becomes Unmatched and its membership lines are deleted, so the legs return to open aging.
Either way it logs
RealizationRevoked, naming the legs. -
Call P11 (
onRealizationRevoked) for the account, from the earliest leg date.
A second sweep finds nothing, so it is idempotent. It never throws into the refresh or evaluation that called it.
Logging. Timeline: RealizationRevoked. Exceptions use operation Realization sweep
(CAP002): a read failure references nothing, and a revocation failure references the group.
Recovery. Not retryable: "refresh the account's balance snapshot or evaluate a close gate, which re-runs the realization sweep".
Impacts. The legs of revoked groups reappear in open-item aging. Certified instances are re-opened or flagged. See the gap noted under P1: only gate evaluation sweeps the whole company.
P13 Native settlement realization and reversal
| Purpose | Hand a committed match group whose legs net to zero to F&O's own ledger settlement, so the legs are settled natively, not just grouped inside Capstone. Reverse it natively when the group is unmatched. |
| Class | MGCCapstoneReconSettlementService (path probe MGCCapstoneReconLedgerSettleProbe) |
| Triggers | Realize after commit, outside the commit's own transaction: after Accept proposal and Match selected on the matching workbench, and after each account of a P3 Commit run. Realize after write-off: when P14 posts a write-off, or a Retry posts one. Retry of a Settlement realization exception. Reverse: Split/unmatch group on a Realized group, inside the unmatch transaction. |
| Configuration | No Capstone settings. It depends on native General ledger parameters: partial settlement must be off (otherwise realization refuses), and whether realized gain/loss is posted changes what "nets to zero" means. Whether F&O's enhanced settlement is enabled chooses the marking path. |
| Reads → writes | Reads groups, lines, ledger entries and proposals. Writes native settlement through the standard processors, LedgerTransSettlementWork marks (deleted again afterwards), the group's realization state and settlement reference, and the timeline. |
The eligibility fence. A group is offered to native settlement only when all of these hold:
- it is Committed, or Disposed by a posted write-off;
- its realization state is none or Pending;
- the account is in the chart of accounts;
- it has at least two legs, all on the same main account and the same ledger;
- the legs fall in one fiscal year and one posting layer;
- no leg is already settled;
- there is at least one debit and one credit;
- the legs sum to zero in accounting currency;
- where realized gain/loss posting is on, they also sum to zero in transaction currency (single currency) or reporting currency.
A posted write-off's own ledger line on the reconciled account counts as one of the legs.
Logic: realize.
- Ineligible: skip it silently. The group stays unrealized, with no exception and no Pending. Only an eligible group that then fails to settle becomes Pending.
- Refuse, and leave the group Pending, when any of these holds:
- partial settlement is on;
- the call came from inside another transaction;
- no settle date is available. The date is the latest leg date if its period is open, otherwise today if that is in the same fiscal year.
- Mark each leg under an automation rule named
CAPSTONE-<group RecId>. The enhanced path requires the acting user to have no marks of their own. - Run
LedgerSettleProcessor, then verify the settlement holds exactly the legs. If it does not, throw, which rolls it back. - Delete the marks, set the group Realized with its settlement reference, and log
GroupRealized.
Logic: reverse (on unmatch).
- A reason code is required. The settlement must still exist. If it has already vanished, the unmatch refuses and says the sweep (P12) will revoke the group.
- Mark the settled entries and run
LedgerSettleReverseProcessor. - Verify nothing is left unreversed, then log
RealizationReversed.
Reversal joins the unmatch transaction, so if it fails, the unmatch fails as a whole.
Logging.
- Timeline:
GroupRealized,RealizationPending,RealizationReversed. - Exceptions use operation Settlement realization (
CAP002) and reference the group: "…Fix the cause, then Retry realizes it." - A warning "…so it is Pending: reason" appears in the user's infolog.
Recovery.
- Fix the cause the refusal names. Typically you clear your own marks on Ledger settlements, turn partial settlement off, or open the period.
- Press Retry selected. Retry re-runs realization without raising a second exception row, and reports success if the group is already Realized.
Impacts. Settled legs are excluded from later realization. A batch Commit run marks under the batch user, so the enhanced path's "no marks of your own" check looks at that user (Inferred). Revocations of settlements reversed outside Capstone are P12's job.
P14 Write-off posting after approval
| Purpose | Post an approved write-off to the general ledger at once: one journal line on the reconciled account against the posting rule's offset. Then hand the cleared group to native settlement (P13). |
| Class | MGCCapstoneReconWriteOffPostingService, called from MGCCapstoneReconWriteOffProposal.approve |
| Trigger | A reviewer choosing Approve on Write-off proposals (interactive only), or Retry of a WriteOffPost exception. |
| Configuration | Capstone parameters → General → Write-off journal name: a daily journal name without workflow approval. Write-off posting rules: an enabled rule for the proposal's reason code. A rule for the account's own category beats a blank, all-categories rule. See Set Capstone up for a legal entity, steps 3 and 8. |
| Reads → writes | Reads the proposal, posting rules and the group's legs. Writes LedgerJournalTable and LedgerJournalTrans and posts them (native LedgerJournalCheckPost), updates the proposal, and logs to the timeline. |
Logic.
- Approve, in its own transaction:
- The approver must be neither the proposer nor the submitter. A refused attempt is logged
as
WriteOffSoDBlockedand is retention-exempt. - Set the proposal Approved with the approver, and log
ProposalApproved.
- The approver must be neither the proposer nor the submitter. A refused attempt is logged
as
- After that commits, post:
- Check the proposal is still Approved, and that no journal named Capstone write-off … has already posted for it. This check makes the step idempotent.
- Choose the posting date: the group's latest leg date if that period is open, otherwise today. The message and the timeline say which date was used, and why.
- In one transaction, delete any unposted journal left by an earlier failed attempt, then insert the journal and its line.
- Post it through
LedgerJournalCheckPost. If it did not post, throw. - Set the proposal Posted with the journal number and voucher, and log
WriteOffPosted.
- Offer the group to native settlement (P13).
Logging.
- Infolog: "Write-off proposal … posted on date (reason): journal …, voucher …".
- Timeline:
ProposalApproved,WriteOffPosted. - A posting failure raises WriteOffPost (
CAP002), which references the proposal, and the proposal stays Approved.
Recovery.
- Retry selected posts it, once the cause is fixed. Missing journal names and missing posting rules are the usual causes, and Capstone setup status names both.
- Instead, the reviewer can Reject an Approved proposal that never posted. This discards the unposted journal and returns the legs to open aging. A proposal whose journal posted cannot be rejected.
- Dismiss is refused while the proposal is still Approved, so a failed posting cannot be quietly closed.
Impacts. The posting is an ordinary ledger posting, so P6 marks the account's snapshots and the next P1 run recomputes them. That can re-open or flag a certified reconciliation (P11), which is intended.
6. P15 The recovery hub: Execution exceptions
Policies, board and certification → Execution exceptions is where every process above leaves its failures. The day-to-day procedure is Handle exceptions and monitor Capstone. This section is the mechanism behind it.
| Who | Retry selected (multi-select) and Dismiss belong to the Reconciliation preparer (exception-processing duty). The controller, reviewer and auditor can read the queue but not act on it. |
| Retry | Moves the row to Retrying and adds one to its retry count. It dispatches the stored operation in the company the row was raised in, then sets the row Resolved or back to Open and logs RetrySucceeded or RetryFailed. A row whose outcome could not be written stays Retrying and can be retried again. |
| Dismiss | Needs a Reason: a blank reason is refused. It sets Dismissed and logs Dismissed. It is refused for a WriteOffPost row while its proposal is still Approved. |
| Not retryable | Retry warns "operation '…' cannot be retried from this workbench. Fix the cause, <hint>, then Dismiss this exception with a reason". The hint for each operation is in the table below. |
| Operation | Source | Raised by | Retry re-dispatches? | Otherwise, the hint |
|---|---|---|---|---|
| Snapshot refresh | CAP001 | P1, workbench refresh, P2 | Yes, for a row that references a snapshot | Rows that reference a main account or nothing: run the snapshot refresh batch instead |
| Instance generation | CAP001 | P2 | Yes, for a row that references a snapshot | Re-run Generate instances |
| ReopenMonitor | CAP001 | P11 | No | Review the instance and re-open it from the reconciliation workbench if needed |
| Match engine run | CAP002 | P3 | No | Re-run Run matching for the account |
| Residual disposition | CAP002 | P3 | No | Resolve the residual on the matching workbench (Process residual, or Split/unmatch group) |
| WriteOffPost | CAP002 | P14 | Yes | - |
| Settlement realization | CAP002 | P13 | Yes | - |
| Realization sweep | CAP002 | P12 | No | Refresh the account's balance snapshot or evaluate a close gate |
| Tie-out run | CAP003 | Run tie-out (on demand) | No | Re-run Run tie-out on FA to GL tie-out |
| Aging snapshot run | CAP004 | P4 | No | Re-run Aging snapshot run for the as-of date |
| Aging mapping gap | CAP004 | P4 | No | Fix the original-date linkage of the named voucher and re-run Aging snapshot run |
| Specification tie | CAP004 | Generate statement (on demand) | No | Choose Generate or Regenerate |
| Specification generation | CAP004 | defined, never raised in this release | - | - |
| Gate evaluation | CAP005 | Evaluate now (on demand) | No | Choose Evaluate now on the Close gate evaluation page |
| Gate task insertion | CAP005 | Insert Capstone gates (on demand) | No | Re-run Insert Capstone gates, or create the task natively |
| Gate task completion | CAP005 | Complete gate task (on demand) | No | Choose Complete gate task again, or complete the task natively |
| Binder generation | CAP005 | P5 | No | Re-run Generate close binder for the period |
7. On demand only: no job exists
These are sometimes assumed to run on a schedule. None of them does. Each runs only when a person presses its button.
| Process | Button (where) | Who | Notes |
|---|---|---|---|
| Close gate evaluation | Evaluate now (Close gate evaluation, Close gate definitions) | Controller | Runs the whole-company realization sweep (P12) first, then judges every enabled condition in one transaction and logs GateGreen or GateRed. There is no scheduled or event-driven evaluation in this release. |
| Gate task insertion | Insert Capstone gates (Close gate definitions) | Setup administrator, controller | Adds the gate task to a native close template, makes the template's final task depend on it, and logs GateTasksInserted. |
| Gate task completion | Complete gate task (Close gate evaluation) | Controller | Requires Green and applies the same Enforced refusal as P7. Logs GateTaskCompleted and stamps the evaluation. |
| Fixed-asset tie-out | Run tie-out (FA to GL tie-out) | Preparer | Asks for As of date and Legal entity and logs TieOutRun. Only Fixed assets with source Built works today. A tie-out run goes Amber once it is older than the matrix row's staleness SLA, and nothing re-runs it automatically. |
| Specification statement | Generate / Regenerate (Balance sheet specifications) | Preparer | Needs a completed aging run (P4). A statement whose detail does not equal the trial balance does not issue (SpecTieFailed). |
8. Not automated in this release
The code mentions each of these as planned, but nothing implements it. Do not schedule anything expecting it to happen.
| Item | What the code shows |
|---|---|
| Retention purge | The retention windows on Capstone parameters are stored and validated, but no job reads them. No timeline row or exception has ever been purged. When it lands, segregation-of-duties evidence and open or retrying exceptions are exempt. |
| Overdue escalation | Escalation offset (days) is stored, but nothing reads it. No notification is sent. |
| Nightly snapshot self-verify | The snapshot states Verified and Drift detected exist, but nothing sets them. |
| Event-driven gate evaluation | Gates are evaluated on demand only (§7). |
ExceptionCreated business event | Not raised. Nothing outside Capstone is notified of a new exception. |
| Supersede on scope change | Editing a policy affects future instances only. Nothing supersedes existing ones, and the Superseded status is never set. |
| Module on/off switches | Two code comments mention them, but they do not exist. Every process runs whenever its trigger fires. |
9. Monitoring checklist
| How often | Check | Where | Healthy when |
|---|---|---|---|
| Daily | The snapshot refresh ran | System administration → Inquiries → Batch jobs, filtered to Refresh reconciliation balance snapshots | The last run Ended within the staleness SLA, in every legal entity |
| Daily | New failures | Execution exceptions, or the open-exceptions tile on the Balance sheet reconciliation workspace | No Open rows older than a day. Every Retrying row is being worked |
| Daily during close | Flagged certified instances | Reconciliation workbench, Flagged for review column | Every flag has been re-opened or cleared with a reason |
| Weekly | Setup has not drifted | Capstone setup status → Refresh | No Missing rows for the modules you use. Snapshot refresh schedule is Configured |
| Before closing a period | Gates are current and settlements verified | Close gate evaluation → Evaluate now, which also runs the whole-company sweep | Green, every condition judged, nothing skipped |
| When asked "what happened?" | The timeline | Capstone timeline events, filtered by record type or event code | - |
Timeline event codes written by these processes:
| Process | Event codes |
|---|---|
| P2 Generate instances | Generated |
| P3 Run matching | MatchRunCompleted, GroupCreated, GroupCommitted, ResidualCarried, ProposalCreated, WriteOffProposed, ResidualAboveBand, ResidualEscalated, DispositionGap, ReclassPending |
| P4 Aging | AgingRunCompleted |
| P5 Binder | BinderTemplateSeeded, BinderGenerated, BinderGeneratedWithExceptions, BinderSuperseded |
| P7 Gate enforcement | CompletedOnGreen, CompletedWhileRed |
| P11 Re-open monitor | AutoReOpened, FlaggedForReview |
| P12 Realization sweep | RealizationRevoked |
| P13 Settlement | GroupRealized, RealizationPending, RealizationReversed |
| P14 Write-off posting | ProposalApproved, WriteOffSoDBlocked, WriteOffPosted |
| P15 Exceptions | RetrySucceeded, RetryFailed, Dismissed |
P1, P6, P8, P9 and P10 write no timeline rows of their own. P8's status log is its own record.
10. Troubleshooting index
| Symptom | Likely cause | See |
|---|---|---|
| Workbench balances are Stale, and No transfer backlog is red | Refresh balance snapshots is not scheduled in this company, or its runs are failing | P1 |
| A posting into a certified period did not re-open anything | The refresh has not run since the posting; or the risk class is set to Flag only (look for Flagged for review); or the instance is not certified | P1, P11 |
| A High-risk instance was flagged, not re-opened | The license is not honored on this environment. The flag note says so | P11, P9 |
| A native settlement was reversed, and Capstone still shows the group Realized | Nothing has swept that account since. Evaluate now on a gate, or Refresh snapshot on an instance for the account | P12 |
| A matched group never became Realized, and there is no exception | It failed the eligibility fence (different years, posting layers or accounts, or not netting to zero), which is skipped silently | P13 |
| A group is Pending, with a Settlement realization exception | Partial settlement is on, the user has their own settlement marks, or no open period gives a settle date. Fix the cause, then Retry selected | P13 |
| An approved write-off did not post | No write-off journal name, the name is not daily or uses workflow, or no enabled posting rule covers the reason code. Fix it, then Retry selected | P14 |
| Dismiss is refused on a WriteOffPost row | The proposal is still Approved. Retry it, or have the reviewer reject it | P14, P15 |
| Retry says "cannot be retried from this workbench" | That operation has no retry dispatch. Follow the hint, then Dismiss | P15 |
| A native close task will not complete | Its gate is Enforced, and the latest evaluation is not Green, judged no condition, or skipped one | P7 |
| No closed-period postings is always skipped | The period closed before Capstone was installed, so there is no status history | P8 |
| The scheduled matching run's write-offs cannot be approved by a colleague | Check who the batch job runs as. That user is the proposer | P3 |
| The binder history has many versions | Generate close binder is on a recurrence. Each run supersedes the last | P5 |
| Generation ran for the wrong month | Use latest ended period is Yes, which ignores the typed date, or the period has not ended yet | P2, §2 |
11. Known mismatches between code text and behavior
The messages and code comments that described unbuilt behavior were corrected on 2026-11-06: tie-out failures no longer say retryable, the re-open monitor's failure names both triggers, the post-match settlement warning says what to do when there is no row to retry, and the module-switch and Completed = No comments are gone. One known mismatch remains:
| Where | What it says | What happens |
|---|---|---|
| Snapshot refresh failure message | The snapshot "stays marked Not refreshed" | True for the batch drain. When a single refresh from the workbench, Retry or generation fails on a snapshot that was Refreshed, the snapshot stays Refreshed, because the state is only written on success (Inferred). |