ReadonlycreateOptional ReadonlydefaultHost default rules for scopes no stored decision covers, consulted before
the prompt budget and the prompt, and again wherever access is rechecked.
allow admits the request without writing a grant: the rule itself is the
answer, so changing it takes effect on the next check (kehto/web#513).
deny refuses without a grant; ask or a thrown error prompts. Stored
denials, ACL restrictions, domain availability, and operation budgets
still apply. It runs on every check, so keep it cheap and side-effect free.
Optional ReadonlyextensionsOptional ReadonlymaxMost grants the policy may hold. Default MAX_PERMISSION_GRANTS (2048), at
most MAX_PERMISSION_GRANTS_CEILING.
Optional ReadonlymaxMost grants one napplet (by permissionRuleSubject, across its artifact
versions) may hold. Default MAX_PERMISSION_GRANTS_PER_PRINCIPAL (512),
clamped to maxGrants, at most MAX_PERMISSION_GRANTS_CEILING.
Optional ReadonlymaxRequests awaiting a decision (queue wait and prompt), default 64.
Optional ReadonlymaxMost requirements one request may carry, counting implicit interface
requirements. Default MAX_PERMISSION_REQUIREMENTS (128), at most
MAX_PERMISSION_REQUIREMENTS_CEILING.
ReadonlynowOptional ReadonlyonBudget diagnostics omit payloads, URLs, and stored permission records.
Optional ReadonlyonOptional ReadonlypersistenceDurable storage. Without it, persistent decisions fail explicitly.
Optional ReadonlypromptOptional ReadonlypromptBlocking UI-spam budgets, separate from operation budgets.
Optional ReadonlyrateIndependent temporal policy; approvals cannot override it.
ReadonlyscheduleSchedule a deadline and return its cancellation function.
Optional ReadonlytimeoutBound on the approval phase only, default 60000 ms: queue wait behind an
equivalent prompt, the prompt, and grant commit. Execution is not bounded
here; the domain owns its operation deadline (for NAP-CVM, timeoutMs).
Host UI, time, cancellation, and storage adapters for scoped approvals.