Архитектура: централизовать organization carryover precedence в continuity policy и transition glue
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
applyOrganizationCarryoverFilters,
|
||||
applyTemporalCarryoverFilters,
|
||||
buildRootScopedCarryoverFilters,
|
||||
hydrateInventoryRootFrameState,
|
||||
@@ -248,4 +249,36 @@ describe("assistantContinuityPolicy organization authority", () => {
|
||||
organization: "Org Alt"
|
||||
});
|
||||
});
|
||||
|
||||
it("applies organization carryover precedence from historical to shared authority to navigation and clarification", () => {
|
||||
const filters = applyOrganizationCarryoverFilters(
|
||||
{},
|
||||
null,
|
||||
"Org Authority",
|
||||
"Org Continuity",
|
||||
"Org Navigation",
|
||||
"Org Clarification"
|
||||
);
|
||||
|
||||
expect(filters).toEqual({
|
||||
organization: "Org Authority"
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps existing organization and does not overwrite it during organization carryover backfill", () => {
|
||||
const filters = applyOrganizationCarryoverFilters(
|
||||
{
|
||||
organization: "Org Existing"
|
||||
},
|
||||
"Org Historical",
|
||||
"Org Authority",
|
||||
"Org Continuity",
|
||||
"Org Navigation",
|
||||
"Org Clarification"
|
||||
);
|
||||
|
||||
expect(filters).toEqual({
|
||||
organization: "Org Existing"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user