The as-of view (0010-grc-as-of): the state of every control at an instant, computed only from the results, exceptions, risks and ledger entries recorded up to that instant. Events after the instant are ignored and expirations are evaluated at the instant, so the same events give the same view in any order and whatever came later. Pure: the instant is a parameter.
typeControlState= {
readonlycontrol:string;
readonlystatus:Status;
readonlycoverage:CoverageState;
readonlyfreshness:ControlFreshness;
/** The instant of the newest observation that shows the control. */readonlynewestAt:string|undefined;
/** The ids of the exceptions in force that excuse the control, its checks or a policy that names it. */readonlyexceptions:readonlystring[];
/** The highest level of the risks that name the control. */readonlyrisk:Level|undefined;
/** The ids of those risks whose review has come. */readonlyrisksDue:readonlystring[];
};
typeAsOfView= {
readonlyat:string;
readonlycontrols:readonlyControlState[];
/** The ledger up to the instant. */readonlyledger: { readonlylength:number; readonlyhead:string };
readonlyrollup:Rollup;
};
The view at at from what was recorded up to it: results observed, risks and entries created and exceptions granted at or before it; an exception is in force until its expiry. An at that is not an instant is an error.
// const view = asOf(input, "2026-03-01T00:00:00Z"); // events after the instant are ignored
typeControlState= {
readonlycontrol:string;
readonlystatus:Status;
readonlycoverage:CoverageState;
readonlyfreshness:ControlFreshness;
/** The instant of the newest observation that shows the control. */readonlynewestAt:string|undefined;
/** The ids of the exceptions in force that excuse the control, its checks or a policy that names it. */readonlyexceptions:readonlystring[];
/** The highest level of the risks that name the control. */readonlyrisk:Level|undefined;
/** The ids of those risks whose review has come. */readonlyrisksDue:readonlystring[];
};
typeAsOfView= {
readonlyat:string;
readonlycontrols:readonlyControlState[];
/** The ledger up to the instant. */readonlyledger: { readonlylength:number; readonlyhead:string };
readonlyrollup:Rollup;
};
The view at at from what was recorded up to it: results observed, risks and entries created and exceptions granted at or before it; an exception is in force until its expiry. An at that is not an instant is an error.
// const view = asOf(input, "2026-03-01T00:00:00Z"); // events after the instant are ignored