Operational Remediation Reports
Promise Join Remediation Report
Compare joined tasks against the needed quorum and turn the pending count into a release, wait, or escalate remediation action.
Promise Join Remediation Report
promise_join.ts
const tasks: number = ;
const needed: number = 3;
let joined: number = tasks;
if (joined > needed) {
joined = needed;
}
const pending: number = needed - joined;
let action: string = "release";
if (pending === 1) {
action = "wait";
}
if (pending >= 2) {
action = "escalate";
}
console.log(`tasks=${tasks} joined=${joined} pending=${pending} ${action}`);
const tasks: number = ;
const needed: number = 3;
let joined: number = tasks;
if (joined > needed) {
joined = needed;
}
const pending: number = needed - joined;
let action: string = "release";
if (pending === 1) {
action = "wait";
}
if (pending >= 2) {
action = "escalate";
}
console.log(`tasks=${tasks} joined=${joined} pending=${pending} ${action}`);
const tasks: number = ;
const needed: number = 3;
let joined: number = tasks;
if (joined > needed) {
joined = needed;
}
const pending: number = needed - joined;
let action: string = "release";
if (pending === 1) {
action = "wait";
}
if (pending >= 2) {
action = "escalate";
}
console.log(`tasks=${tasks} joined=${joined} pending=${pending} ${action}`);
join quorum
The needed quorum and joined count are scalars, so the pending work that drives the remediation action stays deterministic without awaiting live promises.