Journal-Entry Period Lock Gate
Evaluates caller-declared journal entries against a caller-declared, time-varying period-lock policy: each period carries dated lock events (open, soft_locked with exempt roles, hard_closed), the lock state is judged at the entry's entered_on date for the period containing its effective date, and reversals resolve under one of three declared ERP conventions. Per entry you get a decision, the lock state, the exempt role used (if any), the resolved reversal date, a refusal code and a self-approval flag. A structurally bad policy refuses the whole run: never a silent allow.
Scope, stated plainly: this gate does not prevent or block any posting anywhere: it evaluates declared facts against a declared policy. The lock history and the entered_on timestamps are caller-declared and are not verified here; the receipt proves recomputation only. A refused or exempt entry is not, by itself, evidence of fraud, and nothing here says whether any control is effective under SOX or ISA. None of the three reversal policies is required by an accounting standard; all three are common ERP conventions.