MGCCapstoneCloseGateEvaluation
Close gate evaluation history (E10, D-CAP-E8): one PERMANENT row per evaluator run, carrying the binary verdict, the per-condition input snapshot the verdict was judged on, and; once the linked native task completes; the one-shot verdict-at-completion stamp (E15, C1). This is the gate's audit trail: it never updates and never deletes, with exactly ONE sanctioned carve-out. THE CARVE-OUT (E15, C1). When a linked gate task is completed; on the native surface or by the bridge; the completion handler (MGCCapstoneCloseGateEnforcement) and the bridge's complete action stamp CompletionStamped/CompletedDateTime/CompletedBy/ CompletedWhileRed on the LATEST evaluation, once, through stampCompletion(). update() and validateWrite() permit precisely that transition and nothing else: the stamp may only be applied to an unstamped row, may only set the four stamp fields, and may never alter the verdict, the inputs, or the identity of what was evaluated. A completion over a red verdict becomes a completed-while-red record feeding the board tile and the binder's exception annex; advisory mode is a defensible detective control, not an honor system (CH-CAP-E1). Verdict is ALWAYS set explicitly by the evaluator: the enum's value 0 is Green, and a defaulted field must never be mistakable for a judged verdict (wave-1 value-0 ruling).
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
GateDefinition | RefRecId | Yes | |
CloseProjectRecId | RefRecId | No | The native closing schedule the evaluation targeted; 0 for an evaluation run outside any schedule (E10). |
ProjectTaskRecId | RefRecId | No | The native gate task the evaluation targeted; 0 when evaluated outside any schedule. The verdict-at-completion stamp resolves by it (E15). |
EvaluatedDateTime | TransDateTime | Yes | |
EvaluatedBy | UserId | No | |
Verdict | MGCCapstoneCloseVerdict | No | The binary gate verdict (E3): Green; every judged condition passed; Red; blockers present, each stored as a named, drillable blocker row under this evaluation. Always set explicitly by the evaluator. |
TriggerSource | str | No | What ran this evaluation: OnDemand tonight; event names (certification, write-off, tie-out, journal posted) when the P1 event wiring lands (E10). Designed now so event wiring adds no schema change. |
InputValues | Notes | No | The per-condition input snapshot this verdict was judged on; one line per condition with what was read and how it resolved (D-CAP-E8). The permanent record of what the gate saw; editing conditions later never rewrites it. |
CompletionStamped | NoYes | No | Yes once the linked gate task's completion has been stamped onto this evaluation; one-shot, applied when the task completes on any surface (E15, C1). |
CompletedDateTime | TransDateTime | No | |
CompletedBy | UserId | No | Who completed the linked gate task, as stamped at completion (E15, C1). |
CompletedWhileRed | NoYes | No | Yes when the gate task was completed over a red verdict (C1): the record feeding the board's completed-while-red tile and the binder's exception annex. Derived from the stored verdict at stamping; never entered. |
JudgedConditions | int | No | How many enabled conditions this evaluation actually judged. An Enforced gate does not let its task complete over an evaluation that judged none. |
SkippedConditions | int | No | How many enabled conditions could not be judged. Under an Enforced gate an unjudged condition is not a pass, so any skipped condition blocks completion. |