feat(admin): authz-pilot — server-renderad advance-resolution + ActionGate (ADR-0001) #128

Merged
admin merged 6 commits from feat/authz-pilot-20260929 into main 2026-09-29 11:48:56 +00:00
Showing only changes of commit e24f8e8af4 - Show all commits
@@ -59,6 +59,7 @@ function baseRequest(overrides: Partial<ExternalWriteRequest> = {}): ExternalWri
/** Stubs global fetch to answer CL0UD policy evaluation (always "allow" unless `denyOrApproval`
* is set) and swallow AUD0 event/lineage POSTs, recording them for assertions. */
function stubCl0udAllowAndAud0(opts: { decision?: "allow" | "deny" | "approval_required" } = {}) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- AUD0-ingest-body är fri nyttolast
const aud0Calls: { url: string; body: any }[] = [];
const fetchMock = vi.fn(async (url: string, init?: RequestInit) => {
// REAL CL0UD wire contract (cl0ud main): POST /api/policy/evaluate with a