Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/loopover-engine/src/governor/chokepoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function denyResult(input: {
eventType: input.eventType,
repoFullName: input.repoFullName,
actionClass: input.actionClass,
decision: input.stage === "kill_switch" ? "paused" : input.eventType === "throttled" ? "throttle" : "deny",
decision: input.eventType === "kill_switch" ? "paused" : input.eventType === "throttled" ? "throttle" : "deny",
reason: input.reason,
payload: { stage: input.stage, ...input.extraPayload },
},
Expand Down
1 change: 1 addition & 0 deletions packages/loopover-engine/test/chokepoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ test("budget cap: the termination ceiling denies with a kill_switch eventType (h
);
assert.equal(decision.stage, "budget_cap");
assert.equal(decision.ledgerEvent.eventType, "kill_switch");
assert.equal(decision.ledgerEvent.decision, "paused", "a kill_switch eventType must record decision=paused regardless of which stage triggered it");
});

test("non-convergence: a stuck item denies before reputation/self-plagiarism run", () => {
Expand Down