@irisrun/auth 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/audit.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @irisrun/auth
|
|
2
|
+
|
|
3
|
+
**A journaled, replayable approval audit you own.** Identity, a declarative
|
|
4
|
+
who-may-approve policy on the existing human-in-the-loop gate, and every approval
|
|
5
|
+
decision recorded in the *same* event log as model calls and tool effects — not a
|
|
6
|
+
side log — so the approval trail replays and verifies straight from the journal.
|
|
7
|
+
|
|
8
|
+
## What it is
|
|
9
|
+
|
|
10
|
+
Pure governance over the existing approval gate (**zero kernel change**): it
|
|
11
|
+
enriches the journaled `signal_recv` approval value. `authorize` evaluates the
|
|
12
|
+
who-may-approve policy; `createApprovalInbox` + `makeGovernedApprovalPerformer`
|
|
13
|
+
answer a gated tool call from that decision; `approvalAudit` / `auditApprovals` /
|
|
14
|
+
`renderApprovalAudit` derive the queryable, replay-verified trail. Depends on
|
|
15
|
+
`@irisrun/core` + `@irisrun/inspect` only.
|
|
16
|
+
|
|
17
|
+
## Use it
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
iris serve ./image --policy ./policy.json # turn on governed approvals
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`iris chat` resolves the same gate inline. See **[docs/Governance &
|
|
24
|
+
audit](../../docs/governance.md)**.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
Part of [Iris](../../README.md) — own, portable, verifiable state.
|
package/dist/audit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The journaled approval audit trail
|
|
1
|
+
// The journaled approval audit trail. Pure read over a
|
|
2
2
|
// recorded session: every governed (or legacy) approval is already a journaled
|
|
3
3
|
// `signal_recv` effect result, so the audit is a projection of the journal — nothing
|
|
4
4
|
// new is stored.
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// @irisrun/auth — the governance layer
|
|
1
|
+
// @irisrun/auth — the governance layer. Identity + a declarative
|
|
2
2
|
// who-may-approve authorization policy on the existing HITL approval gate, plus a
|
|
3
3
|
// journaled, queryable approval audit trail. Pure: the governed decision rides the
|
|
4
4
|
// existing journaled `signal_recv` effect result (the kernel's `foldApproval` reads
|
|
5
5
|
// only `approved===true`), so governance enriches that value with ZERO kernel change.
|
|
6
6
|
export const PACKAGE = "@irisrun/auth";
|
|
7
|
-
// policy.ts — who-may-approve authorization
|
|
7
|
+
// policy.ts — who-may-approve authorization
|
|
8
8
|
export { authorize } from "./policy.js";
|
|
9
9
|
// approval.ts — combine human intent + policy into the journaled value
|
|
10
10
|
export { decideApproval } from "./approval.js";
|
|
11
11
|
// performer.ts — the first real governed signal_recv performer + the approval inbox
|
|
12
12
|
export { createApprovalInbox, makeGovernedApprovalPerformer } from "./performer.js";
|
|
13
|
-
// audit.ts — the journaled, queryable approval trail
|
|
13
|
+
// audit.ts — the journaled, queryable approval trail
|
|
14
14
|
export { approvalAudit, auditApprovals, renderApprovalAudit } from "./audit.js";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@irisrun/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Journaled, replayable approval audit you own — identity + a declarative who-may-approve policy on the existing HITL gate, where every approval decision is recorded in the same event log as model calls and tool effects (not a side log), so the approval trail replays and verifies from the journal. Pure: enriches the journaled signal_recv approval value (zero kernel change). Deps @irisrun/core + @irisrun/inspect only.",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"iris-src": "./src/index.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@irisrun/core": "^0.
|
|
15
|
-
"@irisrun/inspect": "^0.
|
|
14
|
+
"@irisrun/core": "^0.2.0",
|
|
15
|
+
"@irisrun/inspect": "^0.2.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"engines": {
|