Skip to main content

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:

CoversMeaning
PurposeWhat the process is for
TriggerWhat starts it
Configuration and schedulingWhat it needs set up, and how to schedule it
LogicWhat it does
DependenciesWhat it relies on
Inputs and outputsWhat it reads and what it writes
LoggingWhat it records
Monitoring and error handlingHow to see it is healthy, and how it behaves when something fails
Recovery and troubleshootingHow to recover
ImpactsWhat 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​

  1. At a glance
  2. Mechanics common to every process
  3. Batch jobs
  4. Event handlers and startup subscriptions
  5. Chained processes
  6. P15 The recovery hub: Execution exceptions
  7. On demand only: no job exists
  8. Not automated in this release
  9. Monitoring checklist
  10. Troubleshooting index
  11. Known mismatches between code text and behavior

1. At a glance​

#ProcessKindStarted bySchedule it?Retry from Execution exceptions?
P1Refresh balance snapshotsBatch jobMenu, or a recurring batchYes, requiredYes, for rows that reference a snapshot
P2Generate reconciliation instancesBatch jobMenu, workspace, or a recurring batchOptional (monthly)Yes, for rows that reference a snapshot
P3Run matching, with residual dispositionBatch jobMenu, workspace, matching workbench, rule sets, or a recurring batchOptionalNo: re-run it
P4Aging snapshot runBatch jobMenu, workspace, aging pages, or a recurring batchOptionalNo: re-run it
P5Generate close binderBatch jobMenu, workspace, binder workbenchUsually not (each run issues a new version)No: re-run it
P6Posting seam: mark snapshots Not refreshedEvent handlerAny ledger posting--
P7Close gate enforcementEvent handlerA native close task being completed--
P8Ledger period status monitorEvent handlerA ledger period created or its status changed--
P9License registrationStartup subscriptionServer start--
P10Number sequence registrationStartup subscriptionNumber sequence framework load--
P11Re-open monitorChainedP1's per-account refresh; P12-No
P12Realization sweepChainedP1's per-account refresh; gate evaluation-No
P13Native settlement realization and reversalChainedA match committing; P14; unmatch-Yes
P14Write-off postingChainedA reviewer approving a write-off-Yes
P15Execution exceptions: Retry and DismissRecovery hubA 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 canGoBatch or runsImpersonated, 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 (CAP001 policies, board and certification · CAP002 matching and write-offs · CAP003 tie-outs · CAP004 aging and specification · CAP005 close 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​

PurposeRecompute 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 itemMGCCapstoneReconSnapshotEngine · MGCCapstoneReconSnapshotRefreshBatch
WhereBalance-sheet reconciliation → Policies, board and certification → Refresh balance snapshots. The dialog caption is Refresh reconciliation balance snapshots.
WhoReconciliation controller only (privilege MGCCapstoneReconInstanceGeneratePriv through the orchestration duty).
ConfigurationNone. 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.
SchedulingRequired. 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.
DependenciesThe ledger fiscal calendar (an Operating period has to cover each snapshot's period end). Calls P11 and P12.
Reads → writesReads 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.

  1. Select every snapshot in the current company whose state is Not refreshed. P6 puts them in that state; nothing else does.
  2. For each one, run the per-account refresh (refreshPair):
    1. 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.
    2. 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.
    3. In a short transaction, store the balance and the capture time, and set the state to Refreshed.
    4. If the snapshot already had a balance and it has changed, call the re-open monitor (P11).
    5. Always call the realization sweep (P12) for that main account.
  3. 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:
CaseReferencesRetry?
No operating period covers the snapshotthe main accountNo: fix the calendar, then re-run the job
One account fails to recomputethe snapshot (or the main account if it was never created)Yes, when it references a snapshot
The whole run failsnothingNo: 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​

PurposeCreate 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 itemMGCCapstoneReconInstanceGenerator · MGCCapstoneReconGenerateInstances
WherePolicies, board and certification → Generate reconciliation instances. Also a button on the Balance sheet reconciliation workspace.
WhoReconciliation controller (orchestration duty).
ConfigurationDialog: 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.
SchedulingOptional. A monthly recurrence early in each month with Use latest ended period = Yes generates the month that has just ended. Re-running is safe.
DependenciesPolicies and scope rows; the fiscal calendar; P1's per-account refresh.
Reads → writesReads policies, scope rows, main accounts, fiscal periods and snapshots. Writes MGCCapstoneReconInstance and snapshots, and adds Generated timeline rows.

Logic.

  1. Resolve the date. With Use latest ended period it is worked out at run time.
  2. Find the operating fiscal period covering it. If there is none, the run fails with "No operating fiscal period … covers date".
  3. 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.
  4. For each target that is due:
    1. Skip it if a live instance already exists. This is what makes the job idempotent; "live" means any status except Superseded.
    2. Refresh its snapshot if it is missing or Not refreshed.
    3. Set the due date to the period start plus the scope row's due-day offset.
    4. 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.
  5. 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: Generated per 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​

PurposeRun 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 itemMGCCapstoneReconMatchRunController (engine MGCCapstoneReconMatchEngine, disposition MGCCapstoneReconDispositionProcessor) · MGCCapstoneReconMatchRun
WhereMatching and write-offs → Run matching. Also on the workspace, the matching workbench, and Matching rule sets (to simulate).
WhoReconciliation preparer (preparation duty). The controller's role does not hold it.
ConfigurationDialog: 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.
SchedulingOptional. Schedule it in Commit only after the rule set has been tested in Simulate and you are content with its auto-accept threshold.
DependenciesRule sets, tolerance bands and residual dispositions. P13 and, through write-off proposals, P14.
Reads → writesReads open GeneralJournalAccountEntry items, rule sets and bands. Writes MGCCapstoneReconMatchRunLog, match groups and their lines, Draft write-off proposals and the timeline.

Logic.

  1. Create the run log.
  2. 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.
  3. For each account, in its own transaction:
    1. Build the open-item population as of today.
    2. Apply the rules in sequence order, stopping at the first match where the rule says so.
    3. In Simulate, count and report only.
    4. In Commit, create each group as Open. When its confidence reaches the rule set's auto-accept threshold, commit it and run residual disposition.
  4. After each account's transaction, in Commit mode, offer every group this run committed on that account to native settlement (P13).
  5. 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, ResidualEscalated or ReclassPending;
    • carry it open: ResidualCarried;
    • write it off: a Draft write-off proposal is created, the group becomes Disposed, and ProposalCreated and WriteOffProposed are logged.
  • 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.

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​

PurposeAge 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 itemMGCCapstoneReconAgingRunBatch (engine MGCCapstoneReconAgingEngine) · MGCCapstoneReconAgingRunBatch
WhereAging and balance sheet specification → Aging snapshot run. Also on the workspace, Aging profiles and Open-item aging.
WhoReconciliation preparer (preparation duty).
ConfigurationDialog: 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.
SchedulingOptional. A monthly recurrence with Use latest ended period = Yes ages each period-end. Every run creates a new snapshot.
DependenciesAging profiles; match state (matched items are not open).
Reads → writesReads open ledger items and match groups. Writes MGCCapstoneReconAgingRun and MGCCapstoneReconOpenItemAge, and logs AgingRunCompleted.

Logic.

  1. For each enabled profile, build its population and age it outside any transaction.
  2. In one transaction, insert the run, its lines and the completion mark, and log AgingRunCompleted.
  3. 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.

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​

PurposeIssue a versioned, hashed close binder for a period from a template. The binder is the evidence pack an auditor receives.
Class / menu itemMGCCapstoneCloseBinderGenerator · MGCCapstoneCloseBinderGenerate
WhereClose orchestration and binder → Generate close binder. Also on the Period close workspace and the Close binder workbench.
WhoReconciliation controller (orchestration duty).
ConfigurationDialog: Binder template (default GROUP-AUDIT, created on first use), Use latest ended period (default Yes), Period date, and Generate with exceptions (default No).
SchedulingUsually 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.
DependenciesCertified instances (readiness); the template.
Reads → writesReads instances, signatures and templates. Writes MGCCapstoneCloseBinderVersion and MGCCapstoneCloseBinderArtifact, and logs to the timeline.

Logic.

  1. Resolve the template. If GROUP-AUDIT does not exist yet, seed it and log BinderTemplateSeeded.
  2. Resolve the period.
  3. Check readiness, which counts uncertified instances. An unready period is refused unless Generate with exceptions is on.
  4. 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.
  5. Refuse if nothing rendered. Otherwise hash the artifacts.
  6. In one transaction, supersede the prior version, insert the new Issued version and its artifacts, and log BinderGenerated or BinderGeneratedWithExceptions.

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​

PurposeQueue 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.
ConfigurationNone.
Reads → writesReads the entry and its GeneralJournalEntry. Writes MGCCapstoneReconBalanceSnapshot.State.

Logic.

  1. Ignore entries with no main account.
  2. Ignore entries whose ledger is not the current company's ledger.
  3. Otherwise, one set-based update_recordset marks 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​

PurposeMake 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.
ConfigurationWhether the gate is Enforced or Advisory, stored on its task link. See Set Capstone up for a legal entity, step 11.
Reads → writesReads the task link and evaluations. Writes MGCCapstoneCloseGateEvaluation (the completion stamp) and the timeline.

Logic.

  1. Find the evaluation to judge: the task's own latest, otherwise the latest for the gate and closing project.
  2. 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.
  3. If an evaluation exists, stamp it once with Completion stamped, the completing user and time, and Completed while red. Log CompletedOnGreen or CompletedWhileRed. 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.

  1. Clear the blockers.
  2. Evaluate now until the gate is Green with every condition judged.
  3. 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​

PurposeRecord 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).
ConfigurationNone.
Reads → writesWrites 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​

PurposeRegister 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).
LogicMGCCapstoneLicense::ensureRegistered() registers the product with the licensing module. This is idempotent.
ErrorsEvery error is swallowed and nothing is logged. If registration never runs, nothing is blocked.
ImpactsFeeds 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​

PurposeDeclare Capstone's number sequence references to the standard framework, so Generate under Organization administration → Number sequences creates them.
Trigger[SubscribesTo(NumberSeqGlobal, buildModulesMapDelegate)] (MGCCapstoneNumberSeqModule).
LogicDeclares 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.
ImpactsA 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​

PurposeWhen the evidence beneath a certified reconciliation changes, send it back for rework or flag it for review, by risk class.
ClassMGCCapstoneReconReopenMonitor (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.
ConfigurationCapstone 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 → writesReads instances and parameters. Writes the instance (status, review flag and note), the signature chain and the timeline.

Logic.

  1. 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.
  2. 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.
  3. 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​

PurposeRe-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.
ClassMGCCapstoneReconRealizationSweep
TriggersAccount-scoped: after every successful per-account refresh in P1. Whole company: at the start of every close gate evaluation (Evaluate now).
ConfigurationNone.
Reads → writesReads match groups and lines, and the native LedgerTransSettlement. Writes match groups (state; lines deleted on revocation), the timeline and, through P11, instances.

Logic.

  1. 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.
  2. 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.

  3. 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​

PurposeHand 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.
ClassMGCCapstoneReconSettlementService (path probe MGCCapstoneReconLedgerSettleProbe)
TriggersRealize 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.
ConfigurationNo 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 → writesReads 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.

  1. 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.
  2. 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.
  3. 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.
  4. Run LedgerSettleProcessor, then verify the settlement holds exactly the legs. If it does not, throw, which rolls it back.
  5. Delete the marks, set the group Realized with its settlement reference, and log GroupRealized.

Logic: reverse (on unmatch).

  1. 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.
  2. Mark the settled entries and run LedgerSettleReverseProcessor.
  3. 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.

  1. Fix the cause the refusal names. Typically you clear your own marks on Ledger settlements, turn partial settlement off, or open the period.
  2. 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​

PurposePost 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).
ClassMGCCapstoneReconWriteOffPostingService, called from MGCCapstoneReconWriteOffProposal.approve
TriggerA reviewer choosing Approve on Write-off proposals (interactive only), or Retry of a WriteOffPost exception.
ConfigurationCapstone 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 → writesReads 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.

  1. Approve, in its own transaction:
    • The approver must be neither the proposer nor the submitter. A refused attempt is logged as WriteOffSoDBlocked and is retention-exempt.
    • Set the proposal Approved with the approver, and log ProposalApproved.
  2. After that commits, post:
    1. 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.
    2. 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.
    3. In one transaction, delete any unposted journal left by an earlier failed attempt, then insert the journal and its line.
    4. Post it through LedgerJournalCheckPost. If it did not post, throw.
    5. Set the proposal Posted with the journal number and voucher, and log WriteOffPosted.
  3. 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.

WhoRetry 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.
RetryMoves 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.
DismissNeeds 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 retryableRetry 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.
OperationSourceRaised byRetry re-dispatches?Otherwise, the hint
Snapshot refreshCAP001P1, workbench refresh, P2Yes, for a row that references a snapshotRows that reference a main account or nothing: run the snapshot refresh batch instead
Instance generationCAP001P2Yes, for a row that references a snapshotRe-run Generate instances
ReopenMonitorCAP001P11NoReview the instance and re-open it from the reconciliation workbench if needed
Match engine runCAP002P3NoRe-run Run matching for the account
Residual dispositionCAP002P3NoResolve the residual on the matching workbench (Process residual, or Split/unmatch group)
WriteOffPostCAP002P14Yes-
Settlement realizationCAP002P13Yes-
Realization sweepCAP002P12NoRefresh the account's balance snapshot or evaluate a close gate
Tie-out runCAP003Run tie-out (on demand)NoRe-run Run tie-out on FA to GL tie-out
Aging snapshot runCAP004P4NoRe-run Aging snapshot run for the as-of date
Aging mapping gapCAP004P4NoFix the original-date linkage of the named voucher and re-run Aging snapshot run
Specification tieCAP004Generate statement (on demand)NoChoose Generate or Regenerate
Specification generationCAP004defined, never raised in this release--
Gate evaluationCAP005Evaluate now (on demand)NoChoose Evaluate now on the Close gate evaluation page
Gate task insertionCAP005Insert Capstone gates (on demand)NoRe-run Insert Capstone gates, or create the task natively
Gate task completionCAP005Complete gate task (on demand)NoChoose Complete gate task again, or complete the task natively
Binder generationCAP005P5NoRe-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.

ProcessButton (where)WhoNotes
Close gate evaluationEvaluate now (Close gate evaluation, Close gate definitions)ControllerRuns 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 insertionInsert Capstone gates (Close gate definitions)Setup administrator, controllerAdds the gate task to a native close template, makes the template's final task depend on it, and logs GateTasksInserted.
Gate task completionComplete gate task (Close gate evaluation)ControllerRequires Green and applies the same Enforced refusal as P7. Logs GateTaskCompleted and stamps the evaluation.
Fixed-asset tie-outRun tie-out (FA to GL tie-out)PreparerAsks 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 statementGenerate / Regenerate (Balance sheet specifications)PreparerNeeds 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.

ItemWhat the code shows
Retention purgeThe 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 escalationEscalation offset (days) is stored, but nothing reads it. No notification is sent.
Nightly snapshot self-verifyThe snapshot states Verified and Drift detected exist, but nothing sets them.
Event-driven gate evaluationGates are evaluated on demand only (§7).
ExceptionCreated business eventNot raised. Nothing outside Capstone is notified of a new exception.
Supersede on scope changeEditing a policy affects future instances only. Nothing supersedes existing ones, and the Superseded status is never set.
Module on/off switchesTwo code comments mention them, but they do not exist. Every process runs whenever its trigger fires.

9. Monitoring checklist​

How oftenCheckWhereHealthy when
DailyThe snapshot refresh ranSystem administration → Inquiries → Batch jobs, filtered to Refresh reconciliation balance snapshotsThe last run Ended within the staleness SLA, in every legal entity
DailyNew failuresExecution exceptions, or the open-exceptions tile on the Balance sheet reconciliation workspaceNo Open rows older than a day. Every Retrying row is being worked
Daily during closeFlagged certified instancesReconciliation workbench, Flagged for review columnEvery flag has been re-opened or cleared with a reason
WeeklySetup has not driftedCapstone setup status → RefreshNo Missing rows for the modules you use. Snapshot refresh schedule is Configured
Before closing a periodGates are current and settlements verifiedClose gate evaluation → Evaluate now, which also runs the whole-company sweepGreen, every condition judged, nothing skipped
When asked "what happened?"The timelineCapstone timeline events, filtered by record type or event code-

Timeline event codes written by these processes:

ProcessEvent codes
P2 Generate instancesGenerated
P3 Run matchingMatchRunCompleted, GroupCreated, GroupCommitted, ResidualCarried, ProposalCreated, WriteOffProposed, ResidualAboveBand, ResidualEscalated, DispositionGap, ReclassPending
P4 AgingAgingRunCompleted
P5 BinderBinderTemplateSeeded, BinderGenerated, BinderGeneratedWithExceptions, BinderSuperseded
P7 Gate enforcementCompletedOnGreen, CompletedWhileRed
P11 Re-open monitorAutoReOpened, FlaggedForReview
P12 Realization sweepRealizationRevoked
P13 SettlementGroupRealized, RealizationPending, RealizationReversed
P14 Write-off postingProposalApproved, WriteOffSoDBlocked, WriteOffPosted
P15 ExceptionsRetrySucceeded, 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​

SymptomLikely causeSee
Workbench balances are Stale, and No transfer backlog is redRefresh balance snapshots is not scheduled in this company, or its runs are failingP1
A posting into a certified period did not re-open anythingThe 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 certifiedP1, P11
A High-risk instance was flagged, not re-openedThe license is not honored on this environment. The flag note says soP11, P9
A native settlement was reversed, and Capstone still shows the group RealizedNothing has swept that account since. Evaluate now on a gate, or Refresh snapshot on an instance for the accountP12
A matched group never became Realized, and there is no exceptionIt failed the eligibility fence (different years, posting layers or accounts, or not netting to zero), which is skipped silentlyP13
A group is Pending, with a Settlement realization exceptionPartial settlement is on, the user has their own settlement marks, or no open period gives a settle date. Fix the cause, then Retry selectedP13
An approved write-off did not postNo 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 selectedP14
Dismiss is refused on a WriteOffPost rowThe proposal is still Approved. Retry it, or have the reviewer reject itP14, P15
Retry says "cannot be retried from this workbench"That operation has no retry dispatch. Follow the hint, then DismissP15
A native close task will not completeIts gate is Enforced, and the latest evaluation is not Green, judged no condition, or skipped oneP7
No closed-period postings is always skippedThe period closed before Capstone was installed, so there is no status historyP8
The scheduled matching run's write-offs cannot be approved by a colleagueCheck who the batch job runs as. That user is the proposerP3
The binder history has many versionsGenerate close binder is on a recurrence. Each run supersedes the lastP5
Generation ran for the wrong monthUse latest ended period is Yes, which ignores the typed date, or the period has not ended yetP2, §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:

WhereWhat it saysWhat happens
Snapshot refresh failure messageThe 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).