MGCCapstoneReconSignature
Append-only signature hash chain (A12, C5): one row per sign-off, written only by MGCCapstoneReconHashChain. Each link hashes the instance state, the evidence hashes, the PRIOR link's chain hash and the native e-signature payload hash, so any mutation anywhere behind the tail is detectable by verify-on-read wherever the instance renders. Precedence per C5: the chain is the INTEGRITY authority, the native e-signature the IDENTITY authority; either failure flags the instance. Immutable evidence (Warden hash-anchor pattern, invariant 5): update() and delete() throw unconditionally; no retention window, no cleanup path, no bypass. Corrections happen only by re-open and a NEW signature; the refused old link is exactly what makes the correction audit itself. ESigPayloadHash and ESigRef stay empty until native e-signature is configured for the risk class (A11, P1 wiring): an empty payload hash is hashed as empty, deterministically, so chains built before e-sig was switched on verify forever. THE INSERT PATH IS GUARDED TOO: insert() refuses any insert the hash-chain engine's append() did not arm through MGCCapstoneReconHashChain's construction seam; the friend-flag pattern. X++ has no true friend access, so the seam is a transient session flag armed immediately before the one legitimate insert and consumed by it: it does not stop a determined below- application adversary (nothing at this layer can), but it makes "written only by MGCCapstoneReconHashChain" a refusal every ordinary X++ caller actually hits, not a comment. ChainSequence is the chain's own monotonic order (1, 2, 3... per instance), assigned by append() from the prior link: signing instant plus record id is NOT a deterministic order across AOS instances (1-second timestamp granularity, per-AOS record-id blocks), and a chain whose append order and verify order can disagree yields permanent false tamper verdicts. Both findLastForInstance and verify() order by ChainSequence.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
Instance | RefRecId | Yes | |
Role | MGCCapstoneReconSignatureRole | No | Which sign-off this link seals: Prepared or Certified (A9-A12). |
ChainSequence | int | No | The link's position in its instance's chain (1, 2, 3...), assigned by the hash-chain engine at append. The one deterministic chain order: the signing instant and the record id are not reliable orderings across AOS instances. |
StatePayload | Notes | No | The canonical state payload text this link's state hash was computed over, stored verbatim at append (A12). The durable pre-image: when a sealed input (snapshot balance, opening balance, exception note) later moves in place, this text is what the drift is diffed against, and verify-on-read asserts the state hash still reproduces from it. |
SignedBy | UserId | Yes | The user who signed. This; not the instance's owner field; is what the segregation-of-duties evaluator judges acting-user history against (A10, D-CAP-A5). |
SignedDateTime | TransDateTime | No | |
StateHash | MGCCapstoneReconHash | Yes | SHA-256 over the instance's canonical state at signing; status, balances, context stamp; in the fixed field order the hash-chain engine documents (A12, invariant 7). |
EvidenceHash | MGCCapstoneReconHash | No | SHA-256 over the content hashes of the evidence attached at signing (A9, A12). Verify-on-read reports evidence that has gone MISSING distinctly from evidence that was ALTERED (C2). Empty when the instance had no evidence checklist. |
PriorHash | MGCCapstoneReconHash | No | The chain hash of the previous link, binding this link to everything signed before it (A12). Empty on the first link of an instance's chain. |
ChainHash | MGCCapstoneReconHash | Yes | SHA-256 over state hash + evidence hash + prior hash + e-signature payload hash: this link's seal, and the prior-hash input of the next link (A12, C5). |
ESigPayloadHash | MGCCapstoneReconHash | No | SHA-256 of the native electronic signature payload, included in the chain input so the identity act and the integrity seal are bound together (A11, C5). Empty until e-signature is configured for the instance's risk class; verify-on-read then also asserts the native signature's presence and validity. |
ESigRef | RefRecId | No | Reference to the native electronic signature record for this sign-off (A11). Empty until e-signature invocation lands with the e-signature integration. |