The configuration of Planning (0037-planningFR-037, FR-045): a typed value a repository writes in planning.config.ts with definePlanning (the identity, as defineConfig of repoctl is), and parsePlanning, the one reader, which returns a Result that names the field of a bad value and refuses a field that is not in the type. This is the pure part: the file is imported by the physical layer, and JSON or YAML is never read. With it, who runs the work: contextOf takes the person a session, an argument or the configuration names, in that order, and says which, so that an agent's principal is established and never guessed.
type PlanningConfig = {
/** Who runs the work: an argument of the run overrides it. */
readonly principal?: { readon…(1045 characters)
typePlanningConfig= {
/** Who runs the work: an argument of the run overrides it. */readonlyprincipal?: { readonlyid:string; readonlyname?:string };
/** `any-person` (the default) or `principal`: who confirms a proposal. */readonlyconfirmers?:"any-person"|"principal";
/** Where the store of events is: a folder of the repository. */readonlystore: { readonlyplace:string };
readonlysources:readonlySourceConfig[];
/** The authority over each field. */readonlyauthority?: { readonly [FinAuthorityField]?:FieldAuthority };
readonlyduplicates?: { readonlythreshold:number };
readonlyclock?: { readonlymaxDriftMs:number };
/** The ids that are agents acting for a person (0037-planning FR-044). */readonlyagents?: { readonly [id:string]: { readonlyactsFor:string } };
/** Whether the author of a commit with a `Co-Authored-By` trailer is the principal of an agent's event (0037-planning FR-045). */readonlycommitAuthorRule?:boolean;
readonlyrender?:readonlyRenderFormat[];
};
The context of a run: the person of the session where there is one (a tool server's), else the person an argument names, else the configuration's; none where nothing names one. An argument overrides the configuration, and a tool server takes only its session.
type PlanningConfig = {
/** Who runs the work: an argument of the run overrides it. */
readonly principal?: { readon…(1045 characters)
typePlanningConfig= {
/** Who runs the work: an argument of the run overrides it. */readonlyprincipal?: { readonlyid:string; readonlyname?:string };
/** `any-person` (the default) or `principal`: who confirms a proposal. */readonlyconfirmers?:"any-person"|"principal";
/** Where the store of events is: a folder of the repository. */readonlystore: { readonlyplace:string };
readonlysources:readonlySourceConfig[];
/** The authority over each field. */readonlyauthority?: { readonly [FinAuthorityField]?:FieldAuthority };
readonlyduplicates?: { readonlythreshold:number };
readonlyclock?: { readonlymaxDriftMs:number };
/** The ids that are agents acting for a person (0037-planning FR-044). */readonlyagents?: { readonly [id:string]: { readonlyactsFor:string } };
/** Whether the author of a commit with a `Co-Authored-By` trailer is the principal of an agent's event (0037-planning FR-045). */readonlycommitAuthorRule?:boolean;
readonlyrender?:readonlyRenderFormat[];
};
The context of a run: the person of the session where there is one (a tool server's), else the person an argument names, else the configuration's; none where nothing names one. An argument overrides the configuration, and a tool server takes only its session.