Skip to main content

MGCCapstoneReconMatchGroup

Match-group header (B3, B6, B17): the record that a set of same-account ledger legs belong together; proposed (Status Open, the workbench proposal queue), committed, split back to open aging (Unmatched, reason-coded), or disposed of with its residual (Disposed). PERMANENT: groups are never deleted, by anybody, including cleanup; delete() throws. An unwanted group is UNMATCHED, which returns its legs to the open population and leaves the header standing as the record that the pairing was tried and undone. RULE-HIT PROVENANCE for the deterministic covenant: MatchRunId, RuleSetId, RuleSequence and Confidence say exactly which run of which rule produced this group and how sure it was; an auditor re-derives why the group exists without trusting anyone's memory. Manual workbench groups carry a blank rule provenance and full confidence: their provenance is the acting user on the timeline. ResidualAmount is computed AT COMMIT from the ledger amounts of the group's legs (D-CAP-B8: legs are references, the ledger is the single source of amounts) and stored as the figure the disposition judged; it is never re-derived afterwards, so the group still shows the residual it was disposed against even as the ledger moves on. In transaction currency when the legs share one; in accounting currency (stamped as such in CurrencyCode) when they do not. Stored, displayed, and NEVER trusted: MGCCapstoneReconRealizationSweep re-checks it against native settlement state, because native settlement reversal posts nothing (B17, C1). No table relation binds it: the native row is deleted by a native reversal, and a dangling reference is exactly what the sweep exists to find. All status and realization transitions go through MGCCapstoneReconMatchGroupService, where the guards live in one place; every transition writes the group's timeline (B14).

Fields​

NameTypeMandatoryDescription
MatchGroupIdMGCCapstoneReconMatchGroupIdYesMatch group identifier (number sequence). Carried in write-off journal description patterns and the write-off register so postings trace back to the group.
GroupTypeMGCCapstoneReconMatchGroupTypeNoThe cardinality of the group's legs (B3): one-to-one through many-to-many, or intercompany for visibility-only mirror groups (B11).
StatusMGCCapstoneReconMatchGroupStatusNoThe group lifecycle: Open is a proposal awaiting workbench acceptance, Committed is a match, Unmatched is a reason-coded split whose legs returned to open aging, Disposed means the residual was carried, written off or reclassed (B3, B5, B7). Changed only by the match-group service; every transition writes the timeline.
RealizationStateMGCCapstoneReconRealizationStateNoWhether this group was realized as a native ledger settlement (B6): Realized stores the settlement reference below; Pending means the handoff failed and is retryable (B13); Revoked means the verification sweep found the settlement vanished and the legs returned to open aging (B17, C1).
MainAccountIdMainAccountNumNoThe one main account every leg of this group belongs to; the same-account fence lives here (B3, B6).
ResidualAmountAmountCurNoWhat the group's legs net to, computed at commit from the ledger amounts and stored as the figure the disposition judged (B7, D-CAP-B8). In the legs' shared transaction currency, or in accounting currency when the legs' currencies differ (the currency field says which).
CurrencyCodeCurrencyCodeNoThe currency of the stored residual: the legs' shared transaction currency, or the accounting currency when the legs' currencies differ.
SettlementRefRefRecIdNoThe native ledger settlement record a realized group was handed to (B6); stored and re-verified by the realization sweep, never trusted, because native settlement reversal posts nothing (B17, C1). Blank until the settlement service realizes the group.
MatchRunIdMGCCapstoneReconMatchRunIdNoThe engine run that produced this group (B4). Blank on manual workbench groups; their provenance is the acting user on the timeline.
RuleSetIdMGCCapstoneReconRuleSetIdNoRule-hit provenance: the rule set whose rule produced this group (B1, deterministic covenant). A rule set stamped here can no longer be deleted, only disabled.
RuleSequenceintNoRule-hit provenance: the sequence of the rule within the set (B1). Zero on manual groups.
ConfidenceMGCCapstoneReconConfidenceNoThe producing rule's confidence, 0..100, judged against the set's auto-accept threshold (B4). The workbench ranks Open proposals by this score. Manual groups carry 100; a human decided.
UnmatchReasonReasonCodeNoThe reason code given when this group was split/unmatched and its legs returned to open aging (B5, B16). Blank on every group that was never unmatched.