MGCCapstoneReconEventLog
Series timeline (A17, D-CAP-A3): who did what, when, against any Capstone record; generated, prepared, certified, re-opened, superseded, delegated, violation-attempted. Polymorphic by RefTableId + RefRecId; cross-company (SaveDataPerCompany No) with the originating company as a column, because controller and auditor read timelines across the estate (D-CAP-A9). Siblings write through the static log() API; one call, no service class. Append-only: validateWrite refuses the update path, update() throws for callers that skip validation, and delete() throws for everything EXCEPT the retention cleanup, which is the only permitted deleter and purges past-window rows via doDelete/skipDeleteMethod; the same bypass discipline as MGCWardenEventLog. Timeline rows are the one per-record history with a retention window at all; everything they describe (instances, signatures, evidence) is permanent. SEGREGATION-OF-DUTIES EVIDENCE IS EXEMPT FROM RETENTION (A10, A14): the record that an SoD exception was applied, or that a violation attempt was refused, must outlive the retention window; the certified record it explains lives for years, and evidence that lawfully disappears while its subject stands is not evidence. log() stamps RetentionExempt = Yes on every event code isSoDEvidence() names, and the P1 retention cleanup MUST exclude RetentionExempt rows from its purge window; that exclusion is part of this table's contract, not a courtesy. ACTOR IS THE ACTING USER; SESSIONUSER IS WHO WAS SIGNED IN (A10, work item 1860). The services that accept an on-behalf acting user; sign-off, write-off approval, matching; pass it to log(), so Actor names the person the act is ATTRIBUTED to and the timeline reads the way a controller expects, instead of naming the session operator while the acting user survives only in free text. SessionUser records the account the act was performed from, always, so an on-behalf act shows both halves and neither identity can be laundered by claiming the other. Callers with no on-behalf concept pass nothing and Actor is the session user, exactly as before. The segregation-of-duties evaluator consults BOTH columns for the same reason: history counts against the person named on it AND the person who typed it. A timeline row commits or rolls back with the transaction that writes it: log() does not swallow failures, because a Capstone service whose own timeline cannot be written should not pretend the action was recorded. The fail-open rule belongs to the seams with NATIVE actions and lives in the exception service, not here. ONE exception, logDurable(): the record of a REFUSED act must survive the rollback of the act it refuses, so it rides its own connection; see that method.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
RefTableId | RefTableId | No | |
RefRecId | RefRecId | No | |
Actor | UserId | No | Who the event is attributed to (A10): the acting user a service was given, which on an ordinary act is the person who performed it. On an on-behalf act this is the person acted FOR, and the session user column names the account it was performed from. The segregation-of-duties evaluator judges both. |
SessionUser | UserId | No | The signed-in account the event was performed from (A10). Equal to the actor on an ordinary act; different on an on-behalf act, where both halves belong on the record; a claimed identity must never be able to launder the real operator's history. |
EventCode | str | Yes | What happened, in the fixed vocabulary the timeline renders: Generated, Prepared, Certified, ReOpened, Superseded, Delegated, and the codes sibling packages add. |
Detail | Notes | No | |
EventDateTime | TransDateTime | No | |
Company | DataAreaId | No | The legal entity the event occurred in. The table itself is cross-company so controller and auditor timelines cover the estate (D-CAP-A9). |
RetentionExempt | NoYes | No | Yes on segregation-of-duties evidence rows (A10, A14): exceptions applied and attempts refused outlive the retention window, because the certified records they explain do. The retention cleanup must exclude these rows from its purge. |