@agenticprimitives/fulfillment 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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @agenticprimitives/fulfillment
2
2
 
3
+ > Part of **[Agentic Primitives](https://agenticprimitives.dev)** — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. [Developer kit](https://github.com/agentictrustlabs/agentic-primitives) · [All packages](https://agenticprimitives.dev/developers)
4
+
3
5
  > **Status: STUB** (Wave 0.5 of the W1 implementation wave). State machines, types, and invariant guards ship today; the full fulfillment runtime lands in Wave 7b per the [w1 implementation wave plan](../../docs/architecture/w1-implementation-wave-plan.md).
4
6
 
5
7
  An agreement between two agents is worthless if no one can say, afterward, what actually happened. Who did the work, who was it handed to, what did they produce, and does the outcome match what was promised? Agent frameworks orchestrate tasks; almost none of them produce *evidence*. This package is the designed answer: a `FulfillmentCase` container where every task, message, artifact, and handoff is bound to canonical Smart Agent identities, gated by typed policy, and promoted into credentials — an `OutcomeCredential` that cannot exist without citing the `EvidenceCredential` backing it. The claim "we delivered" is structurally forced to point at proof.
@@ -25,6 +27,7 @@ The operational runtime: `buildFulfillmentCase`, `transitionLifecycle` with acto
25
27
  ## Where this is heading / market context
26
28
 
27
29
  - **Google A2A** defines the Task/Message/Artifact wire model; we adopt it (via `mcp-runtime`, spec 245) rather than invent a rival — this package adds the case container, handoff policy, and evidence promotion A2A leaves out.
30
+ - **Upstream gate ([spec 336](../../specs/336-intent-engagement-profile.md)):** a fulfillment Task is created only after the intent is understood, an acceptable signed `FulfillmentOffer` exists, and the mandate is present and unexpired — never straight from a discovery match. The execution transition arrives as an explicit typed command (offer digest + acceptance digest + mandate presentation + idempotency key), and the closing `FulfillmentReceipt` binds intent, offer, mandate, task, and outcome by digest — a redirect is not a receipt, and neither is a successful poll.
28
31
  - **Google AP2 and x402** give agents payment mandates; a `FulfillmentCase` binds those mandates to the tasks they pay for (`ContextBinding.taskId`, FLF-INV-11), so a machine payment is never unmoored from the work it settled.
29
32
  - The differentiated combination: task execution, handoff authority, payment binding, and outcome evidence under **one** delegation + custody + audit substrate — the seam where stitched stacks lose the thread is exactly what Layers 10–12 are designed to hold.
30
33
 
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@
6
6
  * Authoritative spec: specs/244-fulfillment.md
7
7
  */
8
8
  import type { Address } from '@agenticprimitives/types';
9
+ import type { VisibilityTier } from '@agenticprimitives/verifiable-credentials';
9
10
  export declare const PACKAGE_NAME = "@agenticprimitives/fulfillment";
10
11
  export declare const PACKAGE_STATUS: "w1-foundational";
11
12
  export declare const SPEC_REF = "specs/244-fulfillment.md";
@@ -51,8 +52,35 @@ export interface HandoffPolicy {
51
52
  allowedScopes: string[];
52
53
  maxHopCount: number;
53
54
  }
54
- /** FLF-INV-09: enforce handoff policy at runtime. */
55
- export declare function isHandoffAllowed(policy: HandoffPolicy, target: Address, targetClass?: string): boolean;
55
+ /**
56
+ * Evidence threaded into a handoff decision (FLF-INV-09 / FLF-INV-10). All fields are optional so a
57
+ * caller that has no information about a policy dimension defaults to the fail-closed answer for that
58
+ * dimension (absent approval, no requested scopes, hop 0, no destination tier).
59
+ */
60
+ export interface HandoffContext {
61
+ /** The target's agent class — checked against `HandoffPolicy.allowedAgentClasses`. */
62
+ targetClass?: string;
63
+ /** The scope(s) the handoff would carry — MUST be a subset of `allowedScopes` when that set is non-empty. */
64
+ requestedScopes?: string[];
65
+ /** The number of handoffs already performed for this task BEFORE this one (current hop, 0-based). */
66
+ hopCount?: number;
67
+ /** Explicit evidence that the user approved this handoff. Required when `requiresUserApproval` is set. */
68
+ userApproved?: boolean;
69
+ /** The source (current assignee) privacy tier — the floor the destination must not drop below. */
70
+ sourceTier?: VisibilityTier;
71
+ /** The destination (target) privacy tier — checked against `sourceTier` when `preservePrivacyTier` is set. */
72
+ destinationTier?: VisibilityTier;
73
+ }
74
+ /**
75
+ * FLF-INV-09 + FLF-INV-10: enforce the FULL handoff policy at runtime, fail-closed (ADR-0013).
76
+ *
77
+ * NEW-FLF-1: the prior implementation only checked `allowedTargetAgents` / `allowedAgentClasses` and
78
+ * silently IGNORED `requiresUserApproval`, `preservePrivacyTier`, `allowedScopes`, and `maxHopCount`,
79
+ * so handoffs those fields should have blocked or constrained were allowed. Every field is now
80
+ * enforced, and each enforcement denies (returns `false`) when its precondition is unmet — empty is an
81
+ * answer, never an escalation to a weaker path.
82
+ */
83
+ export declare function isHandoffAllowed(policy: HandoffPolicy, target: Address, ctx?: HandoffContext): boolean;
56
84
  export interface Artifact {
57
85
  artifactId: Hex32;
58
86
  caseId: Hex32;
@@ -63,6 +91,9 @@ export interface Artifact {
63
91
  bodyContentType: string;
64
92
  disclosurePolicy: string;
65
93
  createdAt: number;
94
+ /** Optional URI-keyed A2A extension metadata (e.g. the skill-provenance manifest).
95
+ * Additive and ignorable by non-participating readers. */
96
+ metadata?: Record<string, unknown>;
66
97
  }
67
98
  export interface OutcomeCredentialSubject {
68
99
  intentId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,cAAc,EAAG,iBAA0B,CAAC;AACzD,eAAO,MAAM,QAAQ,6BAA6B,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG,KAAK,MAAM,EAAE,CAAC;AAIlC,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,WAAW,GACX,WAAW,GACX,cAAc,GACd,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAkBf,wBAAgB,aAAa,CAAC,IAAI,EAAE,oBAAoB,EA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OAAO,GACP,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,WAAW,GACX,mBAAmB,GACnB,eAAe,GACf,WAAW,GACX,YAAY,GACZ,mBAAmB,GACnB,sBAAsB,CAAC;AAE3B,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,KAAK,CAAC;IACd,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/dist/index.js CHANGED
@@ -42,13 +42,57 @@ const TASK_TRANSITIONS = {
42
42
  export function canTaskTransition(from, to) {
43
43
  return (TASK_TRANSITIONS[from] ?? []).includes(to);
44
44
  }
45
- /** FLF-INV-09: enforce handoff policy at runtime. */
46
- export function isHandoffAllowed(policy, target, targetClass) {
47
- if (policy.allowedTargetAgents.includes(target))
48
- return true;
49
- if (targetClass && policy.allowedAgentClasses.includes(targetClass))
50
- return true;
51
- return false;
45
+ /**
46
+ * Privacy-tier ordering, strongest → weakest. A handoff under `preservePrivacyTier` MUST NOT move to a
47
+ * tier with a HIGHER index (weaker confidentiality) than the source. Mirrors the `VisibilityTier`
48
+ * ladder in `@agenticprimitives/verifiable-credentials`.
49
+ */
50
+ const PRIVACY_TIER_RANK = {
51
+ OffchainOnly: 0,
52
+ PrivateZK: 1,
53
+ PrivateCommitment: 2,
54
+ PublicCoarse: 3,
55
+ Public: 4,
56
+ };
57
+ /**
58
+ * FLF-INV-09 + FLF-INV-10: enforce the FULL handoff policy at runtime, fail-closed (ADR-0013).
59
+ *
60
+ * NEW-FLF-1: the prior implementation only checked `allowedTargetAgents` / `allowedAgentClasses` and
61
+ * silently IGNORED `requiresUserApproval`, `preservePrivacyTier`, `allowedScopes`, and `maxHopCount`,
62
+ * so handoffs those fields should have blocked or constrained were allowed. Every field is now
63
+ * enforced, and each enforcement denies (returns `false`) when its precondition is unmet — empty is an
64
+ * answer, never an escalation to a weaker path.
65
+ */
66
+ export function isHandoffAllowed(policy, target, ctx = {}) {
67
+ // 1. Target must be an allowed agent or an allowed agent class.
68
+ const targetAllowed = policy.allowedTargetAgents.includes(target) ||
69
+ (ctx.targetClass !== undefined && policy.allowedAgentClasses.includes(ctx.targetClass));
70
+ if (!targetAllowed)
71
+ return false;
72
+ // 2. requiresUserApproval — absent explicit approval evidence → deny (fail-closed).
73
+ if (policy.requiresUserApproval && ctx.userApproved !== true)
74
+ return false;
75
+ // 3. allowedScopes — when the set is non-empty, every requested scope MUST be inside it.
76
+ if (policy.allowedScopes.length > 0) {
77
+ const requested = ctx.requestedScopes ?? [];
78
+ for (const scope of requested) {
79
+ if (!policy.allowedScopes.includes(scope))
80
+ return false;
81
+ }
82
+ }
83
+ // 4. maxHopCount — the current hop count must be strictly below the cap (this handoff is hop+1).
84
+ const hopCount = ctx.hopCount ?? 0;
85
+ if (hopCount >= policy.maxHopCount)
86
+ return false;
87
+ // 5. preservePrivacyTier — the destination tier must not be weaker than the source tier.
88
+ if (policy.preservePrivacyTier) {
89
+ // Fail-closed: if we can't compare tiers (source or destination unknown), deny.
90
+ if (ctx.sourceTier === undefined || ctx.destinationTier === undefined)
91
+ return false;
92
+ if (PRIVACY_TIER_RANK[ctx.destinationTier] > PRIVACY_TIER_RANK[ctx.sourceTier])
93
+ return false;
94
+ }
95
+ return true;
52
96
  }
53
97
  /** FLF-OUT-1: OutcomeCredential MUST cite at least one EvidenceCredential UID. */
54
98
  export function assertOutcomeCitations(subject) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,YAAY,GAA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C,eAAe,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;YAAE,OAAO,KAAK,CAAC;IAC/F,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AA0BD,kFAAkF;AAClF,MAAM,UAAU,sBAAsB,CAAC,OAAiC;IACtE,IAAI,OAAO,CAAC,qBAAqB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CACb,oHAAoH,CACrH,CAAC;IACJ,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@agenticprimitives/fulfillment",
3
- "version": "0.0.0-alpha.3",
3
+ "version": "0.0.0-alpha.30",
4
4
  "description": "FulfillmentCase lifecycle + Task/Message/Artifact (re-exported from mcp-runtime/a2a) + HandoffPolicy + EvidenceCredential + OutcomeCredential issuance.",
5
+ "homepage": "https://agenticprimitives.dev",
6
+ "bugs": {
7
+ "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
8
+ },
9
+ "author": {
10
+ "name": "Agentic Trust Labs",
11
+ "url": "https://agenticprimitives.dev"
12
+ },
5
13
  "license": "MIT",
6
14
  "repository": {
7
15
  "type": "git",
8
16
  "url": "git+https://github.com/agentictrustlabs/agenticprimitives.git",
9
17
  "directory": "packages/fulfillment"
10
18
  },
11
- "homepage": "https://github.com/agentictrustlabs/agenticprimitives/tree/master/packages/fulfillment",
12
- "bugs": {
13
- "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
14
- },
15
19
  "type": "module",
16
20
  "main": "./dist/index.js",
17
21
  "types": "./dist/index.d.ts",
@@ -34,21 +38,26 @@
34
38
  "viem": "^2.52.2"
35
39
  },
36
40
  "devDependencies": {
37
- "vitest": "^4.1.8",
41
+ "vitest": "^4.1.11",
38
42
  "viem": "^2.52.2"
39
43
  },
40
44
  "keywords": [
41
45
  "agentic",
42
46
  "primitives",
43
- "fulfillment"
47
+ "fulfillment",
48
+ "agentic-primitives",
49
+ "agenticprimitives",
50
+ "ai-agents",
51
+ "agent-authority",
52
+ "agentic-trust"
44
53
  ],
45
54
  "dependencies": {
46
55
  "@noble/hashes": "^2.2.0",
47
- "@agenticprimitives/agreements": "0.0.0-alpha.3",
48
- "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.3",
49
- "@agenticprimitives/types": "1.0.0-alpha.7",
50
- "@agenticprimitives/delegation": "1.0.0-alpha.7",
51
- "@agenticprimitives/attestations": "0.0.0-alpha.3"
56
+ "@agenticprimitives/agreements": "0.0.0-alpha.30",
57
+ "@agenticprimitives/attestations": "0.0.0-alpha.29",
58
+ "@agenticprimitives/delegation": "1.0.0-alpha.33",
59
+ "@agenticprimitives/types": "1.0.0-alpha.33",
60
+ "@agenticprimitives/verifiable-credentials": "0.0.0-alpha.30"
52
61
  },
53
62
  "scripts": {
54
63
  "build": "tsc -p tsconfig.build.json",