This commit is contained in:
James Brunton
2026-08-28 13:40:01 +01:00
parent 8b0ae08b0b
commit ff79a86e45
3 changed files with 4 additions and 3 deletions
@@ -211,7 +211,7 @@ describe("fileContextReducer — silent CONSUME_FILES (background enforcement)",
it("carries classificationConfidence forward with the labels", () => {
// The confidence is part of the verdict: without it the escalation decision
// (shouldDispatchToAi) dies at the version boundary and a chained
// (localVerdictNeedsEscalation) dies at the version boundary and a chained
// classification never runs.
const start = stateWith([
stub("a", {
@@ -390,8 +390,8 @@ export function fileContextReducer(
// tool that versions/derives a classified file keeps it in its label
// groups instead of dropping to "Other" and waiting on a PDF re-read.
// Inherited from the first input that has labels, together with that
// verdict's confidence - the escalation decision (shouldDispatchToAi) is
// about the document, not about which step produced the current bytes, so
// verdict's confidence - the escalation decision (localVerdictNeedsEscalation)
// is about the document, not about which step produced the current bytes, so
// it must survive the version boundary. An output that already carries its
// own verdict (e.g. a fresh classify result) keeps it.
const verdictDonor = inputFileIds
@@ -31,6 +31,7 @@ vi.mock("@app/hooks/usePolicies", () => ({
policies: {
security: {
configured: true,
runsOnEditor: true,
status: "active",
backendId: "backend-security",
runOn: "upload",