Written to: 1 requirement: 0 proved, 0 partly, 0 failing, 1 with no test recorded. 0002-planning-core FR-002
An item and what is folded from its events (0037-planningFR-001, FR-004): a sum of the kinds of item over one shared core, a state that is never stored as a fact, the links, the comments, the decisions and the changes that wait. A kind MAY add fields of its own and none removes a field of the core; today every kind is the core.
typeCore= {
readonlyid:ItemId;
readonlytitle:string;
readonlybody:string;
readonlylabels:readonlystring[];
readonlyassignees:readonlystring[];
readonlyseverity?:Severity;
readonlyorigin:Origin;
readonlystate:State;
readonlyexternal:readonlyExternalId[];
readonlylinks:readonlyLink[];
readonlycomments:readonlyComment[];
readonlydecisions:readonlyDecision[];
readonlywaiting:readonlyWaiting[];
readonlyopenedBy:Actor;
readonlyopenedAt:Instant;
readonlyupdatedAt:Instant;
/** Its events, in the order they are folded. */readonlyevents:readonlyItemEvent[];
} &Carried;
What every item has, whatever its kind: the shared core, with what its source carried.
typePolicy= {
readonlyauthority: { readonly [FinAuthorityField]?:FieldAuthority };
/** `any-person`: any person confirms a proposal; `principal`: only the principal of the event that proposed it. */readonlyconfirmers:"any-person"|"principal";
};
The authority over each field that a configuration sets, and who may confirm a proposal (0037-planningFR-006, FR-012). A field with no authority is latest-wins.
typeCore= {
readonlyid:ItemId;
readonlytitle:string;
readonlybody:string;
readonlylabels:readonlystring[];
readonlyassignees:readonlystring[];
readonlyseverity?:Severity;
readonlyorigin:Origin;
readonlystate:State;
readonlyexternal:readonlyExternalId[];
readonlylinks:readonlyLink[];
readonlycomments:readonlyComment[];
readonlydecisions:readonlyDecision[];
readonlywaiting:readonlyWaiting[];
readonlyopenedBy:Actor;
readonlyopenedAt:Instant;
readonlyupdatedAt:Instant;
/** Its events, in the order they are folded. */readonlyevents:readonlyItemEvent[];
} &Carried;
What every item has, whatever its kind: the shared core, with what its source carried.
typePolicy= {
readonlyauthority: { readonly [FinAuthorityField]?:FieldAuthority };
/** `any-person`: any person confirms a proposal; `principal`: only the principal of the event that proposed it. */readonlyconfirmers:"any-person"|"principal";
};
The authority over each field that a configuration sets, and who may confirm a proposal (0037-planningFR-006, FR-012). A field with no authority is latest-wins.