@agenticprimitives/orchestration 0.0.0-alpha.3 → 0.0.0-alpha.30
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 +7 -0
- package/dist/admission.d.ts +75 -10
- package/dist/admission.d.ts.map +1 -1
- package/dist/admission.js +203 -8
- package/dist/admission.js.map +1 -1
- package/dist/answer-quality.d.ts +129 -0
- package/dist/answer-quality.d.ts.map +1 -0
- package/dist/answer-quality.js +197 -0
- package/dist/answer-quality.js.map +1 -0
- package/dist/approval.d.ts +20 -0
- package/dist/approval.d.ts.map +1 -0
- package/dist/approval.js +79 -0
- package/dist/approval.js.map +1 -0
- package/dist/artifacts.d.ts +9 -1
- package/dist/artifacts.d.ts.map +1 -1
- package/dist/artifacts.js +119 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/authority.d.ts +176 -2
- package/dist/authority.d.ts.map +1 -1
- package/dist/conformance.d.ts +80 -0
- package/dist/conformance.d.ts.map +1 -0
- package/dist/conformance.js +264 -0
- package/dist/conformance.js.map +1 -0
- package/dist/derivation.d.ts +40 -0
- package/dist/derivation.d.ts.map +1 -0
- package/dist/derivation.js +158 -0
- package/dist/derivation.js.map +1 -0
- package/dist/digest.d.ts +10 -0
- package/dist/digest.d.ts.map +1 -0
- package/dist/digest.js +45 -0
- package/dist/digest.js.map +1 -0
- package/dist/evidence.d.ts +77 -0
- package/dist/evidence.d.ts.map +1 -0
- package/dist/evidence.js +101 -0
- package/dist/evidence.js.map +1 -0
- package/dist/export-port.d.ts +13 -0
- package/dist/export-port.d.ts.map +1 -0
- package/dist/export-port.js +2 -0
- package/dist/export-port.js.map +1 -0
- package/dist/index.d.ts +33 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -6
- package/dist/index.js.map +1 -1
- package/dist/input.d.ts +52 -0
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +15 -0
- package/dist/input.js.map +1 -1
- package/dist/intent.d.ts +37 -0
- package/dist/intent.d.ts.map +1 -0
- package/dist/intent.js +46 -0
- package/dist/intent.js.map +1 -0
- package/dist/judgment.d.ts +131 -0
- package/dist/judgment.d.ts.map +1 -0
- package/dist/judgment.js +249 -0
- package/dist/judgment.js.map +1 -0
- package/dist/loop.d.ts +74 -9
- package/dist/loop.d.ts.map +1 -1
- package/dist/loop.js +1057 -178
- package/dist/loop.js.map +1 -1
- package/dist/metrics.js +8 -8
- package/dist/metrics.js.map +1 -1
- package/dist/outcome.d.ts +223 -0
- package/dist/outcome.d.ts.map +1 -0
- package/dist/outcome.js +326 -0
- package/dist/outcome.js.map +1 -0
- package/dist/plan-digest.d.ts +16 -0
- package/dist/plan-digest.d.ts.map +1 -0
- package/dist/plan-digest.js +45 -0
- package/dist/plan-digest.js.map +1 -0
- package/dist/planner.d.ts +43 -0
- package/dist/planner.d.ts.map +1 -1
- package/dist/planner.js +132 -0
- package/dist/planner.js.map +1 -1
- package/dist/provenance.d.ts +37 -0
- package/dist/provenance.d.ts.map +1 -0
- package/dist/provenance.js +127 -0
- package/dist/provenance.js.map +1 -0
- package/dist/reconcile.d.ts +48 -0
- package/dist/reconcile.d.ts.map +1 -0
- package/dist/reconcile.js +20 -0
- package/dist/reconcile.js.map +1 -0
- package/dist/record.d.ts +129 -22
- package/dist/record.d.ts.map +1 -1
- package/dist/record.js +53 -1
- package/dist/record.js.map +1 -1
- package/dist/regression.d.ts +130 -0
- package/dist/regression.d.ts.map +1 -0
- package/dist/regression.js +113 -0
- package/dist/regression.js.map +1 -0
- package/dist/rollup.d.ts +72 -0
- package/dist/rollup.d.ts.map +1 -0
- package/dist/rollup.js +117 -0
- package/dist/rollup.js.map +1 -0
- package/dist/selection.d.ts +334 -0
- package/dist/selection.d.ts.map +1 -0
- package/dist/selection.js +481 -0
- package/dist/selection.js.map +1 -0
- package/dist/spans.d.ts +77 -2
- package/dist/spans.d.ts.map +1 -1
- package/dist/spans.js +98 -25
- package/dist/spans.js.map +1 -1
- package/dist/step-lifecycle.d.ts +303 -0
- package/dist/step-lifecycle.d.ts.map +1 -0
- package/dist/step-lifecycle.js +304 -0
- package/dist/step-lifecycle.js.map +1 -0
- package/dist/tool-invoker.d.ts +58 -3
- package/dist/tool-invoker.d.ts.map +1 -1
- package/dist/tool-invoker.js +26 -1
- package/dist/tool-invoker.js.map +1 -1
- package/dist/trace-facts.d.ts +93 -0
- package/dist/trace-facts.d.ts.map +1 -0
- package/dist/trace-facts.js +82 -0
- package/dist/trace-facts.js.map +1 -0
- package/dist/types.d.ts +210 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -1
- package/package.json +17 -8
package/dist/authority.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ToolObservationV1 } from './tool-invoker.js';
|
|
1
2
|
import type { Intent, PlanStep, ToolSpec } from './types.js';
|
|
2
3
|
import type { StepRiskClass } from '@agenticprimitives/tool-policy';
|
|
3
4
|
/** What the caller presented as its authority. OPAQUE to the loop — it is handed to the verifier and
|
|
@@ -7,6 +8,18 @@ export interface MandatePresentation {
|
|
|
7
8
|
ref: string;
|
|
8
9
|
/** The wire itself. The loop passes it through untouched. */
|
|
9
10
|
wire: unknown;
|
|
11
|
+
/** Spec 448 rule 4 (hand-off under a plan-bound parent) — the step this run executes is ONE STEP OF A PLAN its parent
|
|
12
|
+
* mandate was signed over, handed to this agent: the parent's plan as written and the step's index in it
|
|
13
|
+
* (`planMembershipOf`). The verifier recomputes the digest, requires the executed step to be that member exactly, judges
|
|
14
|
+
* every plan binding against the parent plan's digest, and counts the use under the parent's step. Evidence, never
|
|
15
|
+
* authority: a membership the verifier cannot reproduce is refused. */
|
|
16
|
+
planMember?: PlanMembershipV1;
|
|
17
|
+
}
|
|
18
|
+
/** A step's membership of a signed plan: the plan as written, its digest, and which step. */
|
|
19
|
+
export interface PlanMembershipV1 {
|
|
20
|
+
planDigest: string;
|
|
21
|
+
steps: import('./types.js').PlanStep[];
|
|
22
|
+
index: number;
|
|
10
23
|
}
|
|
11
24
|
/** A step as the authority layer sees it: the plan's step joined to its tool's DECLARATION. Capability and
|
|
12
25
|
* risk come from the tool, not the plan — a planner cannot lower a risk by describing a step differently. */
|
|
@@ -38,6 +51,12 @@ export interface StepAuthorityRequest {
|
|
|
38
51
|
step: ResolvedStep;
|
|
39
52
|
/** Whether this check follows an approval. A verifier may not need to know; a receipt does. */
|
|
40
53
|
afterApproval: boolean;
|
|
54
|
+
/** Spec 408 §2.3 — the digest of the plan this run is executing (`planDigest`), computed by the loop
|
|
55
|
+
* once per admitted plan. A mandate that binds a plan is judged against it on every step. */
|
|
56
|
+
planDigest?: string;
|
|
57
|
+
/** Spec 448 rule 6 — on the re-check after an approval: the approvals the loop VERIFIED (by `ApprovalVerifier`) and
|
|
58
|
+
* counted against each obligation. Absent on the first check. */
|
|
59
|
+
approvals?: VerifiedApprovalV1[];
|
|
41
60
|
}
|
|
42
61
|
/** An UNSATISFIED condition attached to the authority. Not a UI prompt. */
|
|
43
62
|
export interface Obligation {
|
|
@@ -65,6 +84,16 @@ export interface DecisionEvidence {
|
|
|
65
84
|
allowed: boolean;
|
|
66
85
|
reason?: string;
|
|
67
86
|
}>;
|
|
87
|
+
/** Spec 448 rule 4 — what bound the act: the plan digest, an on-chain redemption, a per-request challenge, or
|
|
88
|
+
* (only under a verifier's named opt-out) the intent alone. Absent on evidence a verifier did not classify. */
|
|
89
|
+
binding?: 'plan' | 'intent-only' | 'on-chain' | 'per-challenge';
|
|
90
|
+
/** Spec 448 rule 8 (audit H-8) — for a self-acting step, WHO ASKED: the caller's standing as the host admitted it
|
|
91
|
+
* (`self`, `party`, `pairwise`, `anonymous`) and its reference. The session the receipt names as authority is this
|
|
92
|
+
* caller's, never only the agent's. */
|
|
93
|
+
caller?: {
|
|
94
|
+
kind: string;
|
|
95
|
+
ref?: string;
|
|
96
|
+
};
|
|
68
97
|
/** Spec 383 — the authority chain the leaf descends from, verified whole by the verifier (structural mirror
|
|
69
98
|
* of `delegation.AuthorityChainV1`): every grant by reference, leaf first; the accountability root; the
|
|
70
99
|
* acting agent. A receipt three hops away names each actor and grant from this, never from the last link. */
|
|
@@ -95,8 +124,53 @@ export type MandateDecision = {
|
|
|
95
124
|
reasons: DecisionReason[];
|
|
96
125
|
evidence: DecisionEvidence;
|
|
97
126
|
};
|
|
127
|
+
/** What `MandateVerifier.begin` answers — the use ledger's word for this step (spec 448 rule 4). */
|
|
128
|
+
export type AttemptBeginV1 =
|
|
129
|
+
/** `slot: 'none'` — this step's use is counted elsewhere (on chain, by the venue's challenge); the verifier stored no
|
|
130
|
+
* slot. The loop then never parks it as effect-uncertain and never re-invokes it on an answer. */
|
|
131
|
+
{
|
|
132
|
+
status: 'begun';
|
|
133
|
+
slot?: 'none';
|
|
134
|
+
}
|
|
135
|
+
/** `operationId` / `holder`: the key the held attempt gave the downstream and the run that began it, when the ledger
|
|
136
|
+
* records them. A ledger that does not is never handed an automatic retry (`step-lifecycle.ts`). */
|
|
137
|
+
| {
|
|
138
|
+
status: 'held';
|
|
139
|
+
attempt: string;
|
|
140
|
+
retried: boolean;
|
|
141
|
+
operationId?: string;
|
|
142
|
+
holder?: string;
|
|
143
|
+
} | {
|
|
144
|
+
status: 'done';
|
|
145
|
+
};
|
|
98
146
|
export interface MandateVerifier {
|
|
99
147
|
verify(req: StepAuthorityRequest): Promise<MandateDecision>;
|
|
148
|
+
/**
|
|
149
|
+
* Spec 448 rule 4 (audit H-4 fix-ups 1–3) — VERIFYING AGAIN IS NOT PERFORMING AGAIN, AND NOTHING IS PERFORMED TWICE. The
|
|
150
|
+
* loop calls this once per attempt to perform an allowed step, immediately before the effect, with a token naming the
|
|
151
|
+
* attempt. `begun`: this attempt holds the step and may act. `held`: an earlier attempt began and recorded no completion
|
|
152
|
+
* (it may have acted, may still be acting) — never taken over on a timer. `done`: the effect is recorded. `retryOf` names
|
|
153
|
+
* a held attempt to hand the step over from; the loop passes it only when the effect is known absent and the tool dedups
|
|
154
|
+
* by operation id (once), or when the principal said the effect does not exist. A verifier that counts uses must
|
|
155
|
+
* implement `begin`, `complete` and `release`; one that does not count (a test double) may leave them out.
|
|
156
|
+
*/
|
|
157
|
+
begin?(req: StepAuthorityRequest & {
|
|
158
|
+
decision: MandateDecision;
|
|
159
|
+
attempt: string;
|
|
160
|
+
retryOf?: string;
|
|
161
|
+
operationId?: string;
|
|
162
|
+
}): Promise<AttemptBeginV1>;
|
|
163
|
+
/** The effect of this step exists (the tool returned, or reconcile found it): no later attempt begins. */
|
|
164
|
+
complete?(req: StepAuthorityRequest & {
|
|
165
|
+
decision: MandateDecision;
|
|
166
|
+
attempt: string;
|
|
167
|
+
}): Promise<void>;
|
|
168
|
+
/** The attempt named by `attempt` performed nothing (a question asked first, or `NotPerformed`); the next may begin.
|
|
169
|
+
* Called only by the runner that began that attempt. */
|
|
170
|
+
release?(req: StepAuthorityRequest & {
|
|
171
|
+
decision: MandateDecision;
|
|
172
|
+
attempt: string;
|
|
173
|
+
}): Promise<void>;
|
|
100
174
|
}
|
|
101
175
|
/** Policy: WHAT RULES govern exercising authority the mandate grants. Distinct from the mandate (what was
|
|
102
176
|
* granted) and from approval (what remains unsatisfied). Returns obligations to ADD; it never removes one
|
|
@@ -116,10 +190,69 @@ export interface ApprovalRequest {
|
|
|
116
190
|
obligations: Obligation[];
|
|
117
191
|
/** The evidence the verifier produced — so the approver sees the EFFECTIVE authority, never a summary. */
|
|
118
192
|
evidence: DecisionEvidence;
|
|
193
|
+
/** Spec 448 rule 6 — the digest of the plan the step was checked under (`planDigest`), which every approval's
|
|
194
|
+
* `ApprovalBindingV1.planDigest` must equal. An approver signs this, never a digest it recomputed from a plan it
|
|
195
|
+
* guessed. */
|
|
196
|
+
planDigest: string;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Spec 448 rule 6 (audit H-9) — ONE APPROVAL, as the approval port returns it. The loop does not believe it: it hands
|
|
200
|
+
* each record to the `ApprovalVerifier` with the binding below and counts only what the verifier confirms, against the
|
|
201
|
+
* obligation's declared approvers (`agents`), role and threshold.
|
|
202
|
+
*/
|
|
203
|
+
export interface ApprovalRecordV1 {
|
|
204
|
+
/** A stable reference for the receipt (the signed record's id or hash). */
|
|
205
|
+
ref: string;
|
|
206
|
+
/** The party the record says approved. The verifier's answer, not this, is what is counted. */
|
|
207
|
+
approver: string;
|
|
208
|
+
/** Which obligation of the request (its index in `ApprovalRequest.obligations`) this record discharges. */
|
|
209
|
+
obligationIndex: number;
|
|
210
|
+
/** What the verifier judges — a signature over `approvalDigest(binding)`, a decision record's reference… Opaque here. */
|
|
211
|
+
evidence: unknown;
|
|
212
|
+
}
|
|
213
|
+
/** What an approval must be bound to: THIS run, THIS step, THESE arguments, THIS plan, THIS obligation. */
|
|
214
|
+
export interface ApprovalBindingV1 {
|
|
215
|
+
runRef: string;
|
|
216
|
+
stepRef: string;
|
|
217
|
+
toolId: string;
|
|
218
|
+
capabilityId: string;
|
|
219
|
+
/** `valueDigest(step.args)` — the arguments the step will run with. */
|
|
220
|
+
argsDigest: string;
|
|
221
|
+
/** The plan the run is executing (`planDigest`), or '' when the loop has none yet. */
|
|
222
|
+
planDigest: string;
|
|
223
|
+
obligationKind: string;
|
|
224
|
+
obligationIndex: number;
|
|
225
|
+
approver: string;
|
|
226
|
+
}
|
|
227
|
+
/** The verifier's verdict on one record. `roles` are the roles the approver HOLDS, read by the verifier (a chain read,
|
|
228
|
+
* a governance record) — never taken from the record. */
|
|
229
|
+
export type ApprovalVerdict = {
|
|
230
|
+
valid: true;
|
|
231
|
+
approver: string;
|
|
232
|
+
roles: string[];
|
|
233
|
+
} | {
|
|
234
|
+
valid: false;
|
|
235
|
+
reason: string;
|
|
236
|
+
};
|
|
237
|
+
/** Judges one approval record against its binding. REQUIRED whenever a step carries an obligation: a loop with an
|
|
238
|
+
* approval port and no approval verifier refuses the step (`no_approval_verifier`). */
|
|
239
|
+
export interface ApprovalVerifier {
|
|
240
|
+
verify(input: {
|
|
241
|
+
record: ApprovalRecordV1;
|
|
242
|
+
obligation: Obligation;
|
|
243
|
+
binding: ApprovalBindingV1;
|
|
244
|
+
}): Promise<ApprovalVerdict>;
|
|
245
|
+
}
|
|
246
|
+
/** An approval the loop verified and counted — what the re-check receives and the receipt names. */
|
|
247
|
+
export interface VerifiedApprovalV1 {
|
|
248
|
+
ref: string;
|
|
249
|
+
approver: string;
|
|
250
|
+
obligationKind: string;
|
|
251
|
+
obligationIndex: number;
|
|
119
252
|
}
|
|
120
253
|
export type ApprovalOutcome = {
|
|
121
254
|
status: 'discharged';
|
|
122
|
-
records:
|
|
255
|
+
records: ApprovalRecordV1[];
|
|
123
256
|
} | {
|
|
124
257
|
status: 'refused';
|
|
125
258
|
by?: string;
|
|
@@ -195,11 +328,20 @@ export interface ExecutionBindingV1 {
|
|
|
195
328
|
rootPrincipal?: string;
|
|
196
329
|
originatingAgent?: string;
|
|
197
330
|
actingAgent: string;
|
|
331
|
+
/** Spec 397 — the hop came THROUGH A HOST as the person: the registered client and the template whose wire
|
|
332
|
+
* admitted it (`ask-as-me`), or whose standing wire the step's mandate was derived from (`act-as-me`). Ids only. */
|
|
333
|
+
via?: {
|
|
334
|
+
client: string;
|
|
335
|
+
template: string;
|
|
336
|
+
};
|
|
198
337
|
};
|
|
199
338
|
}
|
|
200
339
|
export interface StepReceipt {
|
|
201
340
|
/** Spec 367 §5 — the admitted binding this step ran under. */
|
|
202
341
|
binding?: ExecutionBindingV1;
|
|
342
|
+
/** Spec 421 W2 — per argument of an ACT, whether its value was in her words or only in what the run read (and whether
|
|
343
|
+
* that was untrusted). Evidence for audit and the signing card; no verifier reads it. */
|
|
344
|
+
derivation?: Record<string, import('./derivation.js').ArgDerivationV1>;
|
|
203
345
|
/** Spec 360 — what followed the act, per declared effect. `ok:false` is a disclosure that failed while
|
|
204
346
|
* the act stood: visible evidence, never a reason to unwind the step (the loop isolates the throw). */
|
|
205
347
|
effects?: Array<{
|
|
@@ -248,14 +390,27 @@ export interface StepReceipt {
|
|
|
248
390
|
because: string;
|
|
249
391
|
}>;
|
|
250
392
|
approvalRecords?: string[];
|
|
393
|
+
/** Spec 448 rule 6 — who discharged each obligation, as the ApprovalVerifier confirmed it. */
|
|
394
|
+
approvedBy?: VerifiedApprovalV1[];
|
|
251
395
|
idempotencyKey?: string;
|
|
252
396
|
inputDigest?: string;
|
|
397
|
+
/** The step's arguments AS PLANNED (resolved against earlier results only, before names became addresses). A resume
|
|
398
|
+
* compares a replayed step against this: a replay never re-resolves names, so it cannot reproduce `inputDigest` for a
|
|
399
|
+
* step whose argument was a name ("missio nexus") — and refusing it broke every resume past such a step. */
|
|
400
|
+
planArgsDigest?: string;
|
|
253
401
|
outputDigest?: string;
|
|
402
|
+
/** Spec 410 §2 — WHAT THE ADAPTER SAW, beside the output digest: which end committed this and what it can
|
|
403
|
+
* show. `attests` is the one word a stranger reads first; only `confirmed` may be called "verified at commit". */
|
|
404
|
+
observation?: ToolObservationV1;
|
|
405
|
+
attests?: ToolObservationV1['outcome'];
|
|
406
|
+
/** Spec 410 §3 — this attempt found the operation already done and DID NOT ACT; the observation is the
|
|
407
|
+
* reconcile's. A retry after a lost response leaves this, never a second effect. */
|
|
408
|
+
reconciled?: true;
|
|
254
409
|
error?: string;
|
|
255
410
|
/** Spec 350 §3.4 — set when `status === 'suspended'` because the tool asked the person for something: the
|
|
256
411
|
* kind of prompt and, for a signature, what must be signed by whom. Never the answers. */
|
|
257
412
|
pendingInput?: {
|
|
258
|
-
kind: 'data' | 'signature' | 'confirmation' | 'commitment' | 'authority';
|
|
413
|
+
kind: 'data' | 'signature' | 'confirmation' | 'commitment' | 'authority' | 'effect-uncertain';
|
|
259
414
|
digest?: string;
|
|
260
415
|
signer?: string;
|
|
261
416
|
fields?: string[];
|
|
@@ -269,6 +424,13 @@ export interface StepReceipt {
|
|
|
269
424
|
version: string;
|
|
270
425
|
commitment: string;
|
|
271
426
|
};
|
|
427
|
+
/** Spec 414 A1 — the SKILL.md contract that governed THIS step (finer than the playbook): canonical id, version
|
|
428
|
+
* and the contract's content digest, as the compiled definition says its tool came from. Grants nothing. */
|
|
429
|
+
skill?: {
|
|
430
|
+
id: string;
|
|
431
|
+
version: string;
|
|
432
|
+
contractDigest: string;
|
|
433
|
+
};
|
|
272
434
|
startedAt: number;
|
|
273
435
|
completedAt: number;
|
|
274
436
|
}
|
|
@@ -287,6 +449,11 @@ export type RunEvent = RunEventStamp & ({
|
|
|
287
449
|
runRef: string;
|
|
288
450
|
intent: Intent;
|
|
289
451
|
presentedRef: string | null;
|
|
452
|
+
work?: {
|
|
453
|
+
endeavorId: string;
|
|
454
|
+
commitmentId?: string;
|
|
455
|
+
planStepId?: string;
|
|
456
|
+
};
|
|
290
457
|
} | {
|
|
291
458
|
type: 'PlanCreated';
|
|
292
459
|
runRef: string;
|
|
@@ -416,8 +583,12 @@ export interface EffectSink {
|
|
|
416
583
|
export interface OrchestrationPorts {
|
|
417
584
|
/** REQUIRED once any tool declares a capability. A run that reaches such a step without one fails closed. */
|
|
418
585
|
mandateVerifier?: MandateVerifier;
|
|
586
|
+
/** REQUIRED for a step whose risk class carries obligations (`tool-policy.MINIMUM_AUTHORITY`: high, critical):
|
|
587
|
+
* absent ⇒ the loop refuses such a step (`no_policy_port`) rather than run it on the mandate alone (spec 448 rule 6). */
|
|
419
588
|
policyEvaluator?: PolicyEvaluator;
|
|
420
589
|
approvalPort?: ApprovalPort;
|
|
590
|
+
/** Spec 448 rule 6 — judges every record an `ApprovalPort` returns. REQUIRED whenever a step carries obligations. */
|
|
591
|
+
approvalVerifier?: ApprovalVerifier;
|
|
421
592
|
/** Every step emits a receipt; absent ⇒ receipts are kept on the RunResult only. */
|
|
422
593
|
receiptSink?: ReceiptSink;
|
|
423
594
|
/** Spec 360 — discharges a playbook's declared consequences after a step succeeds. Absent ⇒ declared
|
|
@@ -426,6 +597,9 @@ export interface OrchestrationPorts {
|
|
|
426
597
|
/** Spec 367 W1 — judges the plan's SHAPE before any step runs (the verifier judges authority). Absent ⇒
|
|
427
598
|
* every well-formed plan is executed, which is the behaviour every run had before the port existed. */
|
|
428
599
|
planAdmission?: import('./admission.js').PlanAdmission;
|
|
600
|
+
/** Spec 410 §3 — asked before every non-read step whether THIS operation already happened (reconcile → verify →
|
|
601
|
+
* act). Absent ⇒ no reconcile, the behaviour every run had before the port existed. */
|
|
602
|
+
reconcile?: import('./reconcile.js').ReconcilePort;
|
|
429
603
|
events?: RunEventSink;
|
|
430
604
|
}
|
|
431
605
|
//# sourceMappingURL=authority.d.ts.map
|
package/dist/authority.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../src/authority.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE;oGACoG;AACpG,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,IAAI,EAAE,OAAO,CAAC;CACf;AAED;8GAC8G;AAC9G,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B;;sCAEkC;IAClC,UAAU,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClF,wFAAwF;IACxF,IAAI,EAAE,aAAa,CAAC;IACpB,6FAA6F;IAC7F,cAAc,CAAC,EAA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YAAY,CAAC;IAC5B,qHAAqH;IACrH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oFAAoF;IACpF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;wGACoG;IACpG,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;4GACwG;IACxG,aAAa,CAAC,EAAE,OAAO,gBAAgB,EAAE,aAAa,CAAC;IACvD;4FACwF;IACxF,SAAS,CAAC,EAAE,OAAO,gBAAgB,EAAE,aAAa,CAAC;IACnD,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { AdmissionRule, AdmissionViolation } from './admission.js';
|
|
2
|
+
import type { ToolSpec } from './types.js';
|
|
3
|
+
/** What the ontology says an outcome class entails — the shape `@agenticprimitives/ontology` exports. */
|
|
4
|
+
export interface OutcomeClassView {
|
|
5
|
+
class: string;
|
|
6
|
+
label: string;
|
|
7
|
+
entails: ReadonlyArray<{
|
|
8
|
+
capability: string;
|
|
9
|
+
carries?: readonly string[];
|
|
10
|
+
bound?: string;
|
|
11
|
+
}>;
|
|
12
|
+
bounds: Readonly<Record<string, {
|
|
13
|
+
arg: string;
|
|
14
|
+
kind: 'amount' | 'named';
|
|
15
|
+
}>>;
|
|
16
|
+
/** The words that name this outcome (the ontology's), for `classifyOpenIntent`. */
|
|
17
|
+
words?: readonly string[];
|
|
18
|
+
/** How each bound is read off a sentence (the ontology's). */
|
|
19
|
+
reads?: Readonly<Record<string, {
|
|
20
|
+
kind: 'money';
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'after';
|
|
23
|
+
prepositions: readonly string[];
|
|
24
|
+
}>>;
|
|
25
|
+
}
|
|
26
|
+
export type MoneyBoundReading = {
|
|
27
|
+
kind: 'none';
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'amount';
|
|
30
|
+
value: number;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'unread';
|
|
33
|
+
why: string;
|
|
34
|
+
};
|
|
35
|
+
/** Read the money BOUND a sentence states — see the block above. Bounded: a goal past 4,000 characters is read to there. */
|
|
36
|
+
export declare function readMoneyBound(input: string): MoneyBoundReading;
|
|
37
|
+
/**
|
|
38
|
+
* Spec 410 §6 — THE ASK'S CLASSIFIER, rendered from the ontology: does this sentence name an OPEN intent of a published
|
|
39
|
+
* outcome class? Matched on the class's own words, whole and case-insensitive; the bounds read the way the class says
|
|
40
|
+
* they are read. Deterministic — the same sentence classifies the same way on every run, so the stated outcome the
|
|
41
|
+
* mandate digests is stable across a resume. Null for every closed intent ("pay alice 10"), which is judged by nothing
|
|
42
|
+
* here. A sentence that names two classes is not classified: one outcome per ask.
|
|
43
|
+
*/
|
|
44
|
+
export declare function classifyOpenIntent(goal: string, classes: ReadonlyArray<OutcomeClassView>): StatedOutcomeV1 | null;
|
|
45
|
+
/** What an open intent states: `intent.constraints.outcome`. */
|
|
46
|
+
export interface StatedOutcomeV1 {
|
|
47
|
+
/** The outcome class IRI or CURIE (`apint:OrganizedGathering`). */
|
|
48
|
+
class: string;
|
|
49
|
+
/** The bounds the sentence stated, by the class's bound keys (`{ budget: 2000, venue: 'the hall' }`). */
|
|
50
|
+
bounds?: Record<string, string | number>;
|
|
51
|
+
/** RUNC-4 — bound keys the sentence STATED but the reader could not pin to one value ("under two thousand", "$20
|
|
52
|
+
* each", two figures). An effect held to an unread bound is not conformant: unread is never "no bound". */
|
|
53
|
+
unread?: string[];
|
|
54
|
+
}
|
|
55
|
+
export declare function statedOutcomeOf(intent: {
|
|
56
|
+
constraints?: Record<string, unknown>;
|
|
57
|
+
}): StatedOutcomeV1 | null;
|
|
58
|
+
/**
|
|
59
|
+
* The rule. `lookup` resolves an outcome class IRI to what it entails (the ontology's `outcomeClassOf`); a class
|
|
60
|
+
* the ontology does not publish entails NOTHING, so every consequential step under it is refused — a refusal
|
|
61
|
+
* that names the unknown class, never a silent pass.
|
|
62
|
+
*/
|
|
63
|
+
export declare function outcomeConformance(lookup: (classIri: string) => OutcomeClassView | null): AdmissionRule;
|
|
64
|
+
/** For a caller that wants the split the spec names: what stays offered and what was refused. */
|
|
65
|
+
export declare function conformEffects(input: {
|
|
66
|
+
intent: {
|
|
67
|
+
constraints?: Record<string, unknown>;
|
|
68
|
+
};
|
|
69
|
+
plan: {
|
|
70
|
+
steps: Array<{
|
|
71
|
+
toolId: string;
|
|
72
|
+
args: Record<string, unknown>;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
tools: ToolSpec[];
|
|
76
|
+
}, lookup: (classIri: string) => OutcomeClassView | null): {
|
|
77
|
+
offered: number[];
|
|
78
|
+
refused: AdmissionViolation[];
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=conformance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,yGAAyG;AACzG,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5F,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC5E,mFAAmF;IACnF,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAA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