Skip to main content

MGCCapstoneReconInstance

The substantiation record (A2, C4): one reconciliation instance per in-frequency scope row, legal entity and fiscal period. Account x legal entity x period is the uniqueness authority; InstanceId is a human-readable reference only; and at no point may two LIVE instances of one account-period exist, where live means every status except Superseded. WHY THERE IS NO UNIQUE NATURAL-KEY INDEX. Supersession (A24) closes an instance as Superseded and generates a successor for the SAME account and period, so MainAccount + FiscalPeriodEnd is legitimately duplicated in history and cannot be an alternate key. Live-uniqueness is enforced in code instead, on two levels: insert() refuses a live insert whenever a live row already holds the key (the backstop no caller can skip), and insertLive(); the path the generator and the P1 supersession flow use; first takes a pessimistic update lock on the company's MGCCapstoneParameters singleton as a serialization anchor, so two concurrent generation runs cannot both pass the existence check and both insert (the plan's phantom-insert risk note). THE POLICY-CONTEXT STAMP (D-CAP-A4): risk, method, owners and due date are copied from the resolving scope row at generation and belong to this record from then on. A policy edit never reaches an existing instance; a mid-period scope change supersedes and regenerates (C4). PERMANENT: instances are never deleted, by anybody, including retention cleanup; delete() throws unconditionally. A superseded instance is frozen history: update() refuses any write to a row already stored as Superseded, so the chain, the stamps and the supersession link stay exactly as they were sealed. A CERTIFIED instance is frozen too, field-scoped: while the stored status stays Certified, the sealed payload inputs (identity, context stamps, balances, the SoD-exception note) refuse every write; only the owner fields and due date (A8 reassignment, deliberately outside the sealed payload) and the chain-anchor fields (written by the hash-chain engine inside the sign-off transaction) stay writable. Leaving Certified happens only through a status transition (re-open, supersession), which is the services' job. THE CHAIN ANCHOR (A12, C5): ChainHeadHash and ChainLinkCount are the instance-side copy of the chain's tail hash and link count, written by MGCCapstoneReconHashChain::append() in the same transaction as every link. verify() asserts the walked chain ends at the anchored head with the anchored count, which is what makes TRUNCATION; deleting the tail link, or the whole chain; detectable; without an anchor, a chain walk that finds fewer rows than were signed has nothing to disagree with. Both fields are EXCLUDED from the canonical payload, like the owner fields: they change lawfully with every append.

Fields​

NameTypeMandatoryDescription
InstanceIdMGCCapstoneReconInstanceIdYesReconciliation instance identifier (number sequence). Human-readable reference only; account, legal entity, and period remain the uniqueness authority (C4).
PolicyRefRecIdYesThe policy this instance was generated under. Informational alongside the context stamp: the stamped risk, method and owners on this record are what governs it, not the policy's current values (D-CAP-A4).
ScopeLineRefRecIdYesThe scope row that resolved to this instance at generation. Informational alongside the context stamp (D-CAP-A4).
MainAccountRefRecIdYes
FiscalPeriodEndTransDateYesThe last day of the fiscal period this instance substantiates. With the main account and the legal entity it is the instance identity (C4).
FiscalPeriodNamestrNoThe fiscal period's display name, carried for the board and the binder.
StatusMGCCapstoneReconInstanceStatusNoThe lifecycle status (A2, A9-A13). Changed only by the generation, sign-off, auto-certify and re-open services; every transition appends to the timeline, and prepared and certified transitions seal the hash chain (A12).
RiskRatingMGCCapstoneReconRiskRatingNoThe risk class stamped at generation (D-CAP-A4). Drives this instance's re-open mode, e-signature requirement and auto-certify eligibility for its whole life, whatever the policy says later.
MethodMGCCapstoneReconMethodNoThe reconciliation method stamped at generation (D-CAP-A4).
PreparerOwnerUserIdNoThe user responsible for preparing this instance, stamped at generation and reassignable by a controller (A8). Whoever actually signs Prepared is recorded on the signature chain regardless.
ReviewerOwnerUserIdNoThe user responsible for certifying this instance, stamped at generation and reassignable by a controller (A8). Certification is judged against acting-user history: a user who prepared this instance cannot certify it whatever this field says (A10, D-CAP-A5).
DueDateTransDateNoWhen this reconciliation is due: the period open plus the scope row's due-day offset, stamped at generation (A8).
OpeningBalanceAmountMSTNoThe account balance captured when this instance was generated, in accounting currency (A2). The workbench shows it beside the current snapshot balance so a signer always sees what has moved since.
BalanceSnapshotRefRecIdNoThe balance snapshot row this instance reads its current balance and staleness stamp from (A15).
SoDExceptionNotestrNoStamped by the sign-off service when a certification proceeded under the configuration exception permitting preparer = reviewer (A14, D-CAP-A5). Surfaced in the binder exception annex; blank on every ordinary certification.
SupersededByRefRecIdNoThe successor instance generated when a mid-period scope edit superseded this one (A24, C4). Set in the same transaction that closes this instance as Superseded; blank on every live instance.
ChainHeadHashMGCCapstoneReconHashNoThe chain hash of the instance's latest signature link, anchored here by the hash-chain engine in the same transaction as every append (A12, C5). Verify-on-read asserts the walked chain ends exactly here, which is what exposes a truncated or deleted chain. Blank on an unsigned instance. Excluded from the sealed payload.
ChainLinkCountintNoHow many signature links the instance's chain carried when the head was anchored (A12). Verify-on-read asserts the walked chain has exactly this many links. Excluded from the sealed payload.
AutoCertifyRuleVersionstrNoThe approved rule version that auto-certified this instance, stamped by the evaluator with the evaluated values (A5, C3). Blank on every human-certified instance. An unapproved rule version never evaluates.
ReviewFlaggedNoYesNoSet by the re-open monitor when a certified balance moved and the risk class's re-open mode is Flag (A13, D-CAP-A8): the instance stays certified and asks for a reviewer's look. Re-opening it clears the flag.
ReviewFlagNoteDescription255NoWhy the instance was flagged: how far the certified balance moved, and when.