@agenticprimitives/provenance 0.0.0-alpha.0 → 0.0.0-alpha.1

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.
@@ -0,0 +1,96 @@
1
+ import type { AgentClass, ProvenanceRecordV1 } from './types.js';
2
+ export interface EndeavorRequestInput {
3
+ requestId: string;
4
+ requester: string;
5
+ requesterClass?: AgentClass;
6
+ submittedAt: string;
7
+ /** home-request | discussion-ask | inbox-ask | a2a-intent — provenance of the door, never a model switch. */
8
+ entryPoint?: string;
9
+ /** Vault ref / hash of the intake body — never inline plaintext. */
10
+ ref?: string;
11
+ }
12
+ export interface EndeavorPlanRevisionInput {
13
+ planId: string;
14
+ revision: number;
15
+ contentHash: string;
16
+ proposedBy: string;
17
+ proposedByClass?: AgentClass;
18
+ proposedAt: string;
19
+ status: 'proposed' | 'adopted' | 'superseded' | 'rejected';
20
+ adoptedBy?: string;
21
+ adoptedAt?: string;
22
+ /** apcoord:PlanStep ids + kinds, projected as p-plan:Steps of this revision. */
23
+ steps: Array<{
24
+ stepId: string;
25
+ kind: string;
26
+ }>;
27
+ }
28
+ export interface EndeavorStepExecutionInput {
29
+ activityId: string;
30
+ /** The DURABLE apcoord:PlanStep id (`p-plan:correspondsToStep`). */
31
+ stepId: string;
32
+ /** The EXACT adopted plan revision the execution ran under (`prov:hadPlan`). */
33
+ planId: string;
34
+ planRevision: number;
35
+ actor: string;
36
+ actorClass?: AgentClass;
37
+ /** The capacity the actor functioned in (`prov:hadRole`) — never a permission. */
38
+ role?: string;
39
+ startedAt: string;
40
+ endedAt?: string;
41
+ /** BY-HASH refs (delegation, entitlement, the CoordinationContextSnapshot) — `prov:used`. */
42
+ usedRefs?: string[];
43
+ /** PRIVATE — `prov:actedOnBehalfOf`. S1 firewall rejects it from any public row. */
44
+ onBehalfOf?: string;
45
+ /** Generated artifact refs (vault refs / hashes). The object form additionally carries
46
+ * `prov:wasDerivedFrom` entity ids — e.g. a spec-329 synthesis artifact derived from each
47
+ * member answer (spec 334 §4 door 2 re-expression of the consultation fan-out). */
48
+ artifactRefs?: Array<string | {
49
+ ref: string;
50
+ derivedFrom?: string[];
51
+ }>;
52
+ /** The RUN-SPECIFIC `apexec:ExecutionPlan` this step compiled into (ADR-0054 §3): emitted as an
53
+ * ExecutionPlan entity `prov:wasDerivedFrom` the adopted revision, and the step gains
54
+ * `ep-plan:isDecomposedAsPlan` → it. `ref` is the run plan's hash / vault ref. */
55
+ runPlan?: {
56
+ id: string;
57
+ ref?: string;
58
+ };
59
+ /** `ep-plan:FailedActivity` — the execution was interrupted; recorded, never dropped. */
60
+ failed?: boolean;
61
+ }
62
+ export interface EndeavorAttestationInput {
63
+ id: string;
64
+ /** apatt: outcome / validation / evidence — projected as Attestation entities. */
65
+ kind: 'outcome' | 'validation' | 'evidence';
66
+ ref?: string;
67
+ /** Contributing artifact ENTITY ids (`prov:wasDerivedFrom`). */
68
+ derivedFrom?: string[];
69
+ }
70
+ /** Structural projection input for one Endeavor (never the coordination package's types — leaf boundary). */
71
+ export interface EndeavorProvenanceInput {
72
+ endeavorId: string;
73
+ managingPrincipal: string;
74
+ managingPrincipalClass?: AgentClass;
75
+ request?: EndeavorRequestInput;
76
+ adoption?: {
77
+ actor: string;
78
+ actorClass?: AgentClass;
79
+ at: string;
80
+ };
81
+ outcome?: {
82
+ specId: string;
83
+ ref?: string;
84
+ };
85
+ planRevisions: EndeavorPlanRevisionInput[];
86
+ executions: EndeavorStepExecutionInput[];
87
+ attestations?: EndeavorAttestationInput[];
88
+ }
89
+ /**
90
+ * Project one Endeavor's whole coordination process into the private PROV-O / P-Plan A-box:
91
+ * who (agents), did what (activities), on what (`prov:used`, by hash), producing what
92
+ * (`prov:generated`), under WHICH plan step and revision (`p-plan:correspondsToStep` +
93
+ * `prov:hadPlan`) — the reconstructable trace ADR-0054 requires.
94
+ */
95
+ export declare function projectEndeavorProvenance(input: EndeavorProvenanceInput): ProvenanceRecordV1;
96
+ //# sourceMapping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E,CAAC;CAC3C;AAKD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,uBAAuB,GAAG,kBAAkB,CA2J5F"}
@@ -0,0 +1,159 @@
1
+ const planEntityId = (endeavorId, planId, revision) => `ent:${endeavorId}:plan:${planId}:rev:${revision}`;
2
+ /**
3
+ * Project one Endeavor's whole coordination process into the private PROV-O / P-Plan A-box:
4
+ * who (agents), did what (activities), on what (`prov:used`, by hash), producing what
5
+ * (`prov:generated`), under WHICH plan step and revision (`p-plan:correspondsToStep` +
6
+ * `prov:hadPlan`) — the reconstructable trace ADR-0054 requires.
7
+ */
8
+ export function projectEndeavorProvenance(input) {
9
+ const agents = new Map();
10
+ const addAgent = (id, agentClass) => {
11
+ if (!agents.has(id.toLowerCase()))
12
+ agents.set(id.toLowerCase(), { id, agentClass: agentClass ?? 'service' });
13
+ };
14
+ addAgent(input.managingPrincipal, input.managingPrincipalClass);
15
+ const activities = [];
16
+ const entities = [];
17
+ const plans = [];
18
+ // Intake: the request entity, attributed to the requester.
19
+ const requestEntityId = input.request ? `ent:${input.endeavorId}:request:${input.request.requestId}` : undefined;
20
+ if (input.request && requestEntityId) {
21
+ addAgent(input.request.requester, input.request.requesterClass);
22
+ entities.push({ id: requestEntityId, type: 'EndeavorRequest', ref: input.request.ref });
23
+ }
24
+ // Adoption: the activity that used the request and generated the outcome specification.
25
+ const outcomeEntityId = input.outcome ? `ent:${input.endeavorId}:outcome:${input.outcome.specId}` : undefined;
26
+ if (input.adoption) {
27
+ addAgent(input.adoption.actor, input.adoption.actorClass);
28
+ activities.push({
29
+ id: `act:${input.endeavorId}:adoption`,
30
+ type: 'EndeavorAdoption',
31
+ tier: 'execution-orchestrated',
32
+ startedAt: input.adoption.at,
33
+ endedAt: input.adoption.at,
34
+ wasAssociatedWith: input.adoption.actor,
35
+ used: requestEntityId ? [requestEntityId] : [],
36
+ generated: outcomeEntityId ? [outcomeEntityId] : [],
37
+ });
38
+ }
39
+ if (input.outcome && outcomeEntityId) {
40
+ entities.push({
41
+ id: outcomeEntityId,
42
+ type: 'OutcomeSpecification',
43
+ wasGeneratedBy: input.adoption ? `act:${input.endeavorId}:adoption` : undefined,
44
+ ref: input.outcome.ref,
45
+ });
46
+ }
47
+ // Plan revisions: entities chained by prov:wasRevisionOf, each with its proposal (and adoption) activity,
48
+ // plus the P-Plan projection of the ADOPTED revision's steps.
49
+ const sorted = [...input.planRevisions].sort((a, b) => a.revision - b.revision);
50
+ let priorRevisionEntity;
51
+ for (const rev of sorted) {
52
+ const entityId = planEntityId(input.endeavorId, rev.planId, rev.revision);
53
+ const proposalActivityId = `act:${input.endeavorId}:plan:${rev.planId}:rev:${rev.revision}:proposed`;
54
+ addAgent(rev.proposedBy, rev.proposedByClass);
55
+ activities.push({
56
+ id: proposalActivityId,
57
+ type: 'PlanProposal',
58
+ tier: 'execution-orchestrated',
59
+ startedAt: rev.proposedAt,
60
+ endedAt: rev.proposedAt,
61
+ wasAssociatedWith: rev.proposedBy,
62
+ used: priorRevisionEntity ? [priorRevisionEntity] : [],
63
+ generated: [entityId],
64
+ });
65
+ entities.push({
66
+ id: entityId,
67
+ type: 'PlanRevision',
68
+ wasGeneratedBy: proposalActivityId,
69
+ ref: rev.contentHash,
70
+ wasRevisionOf: priorRevisionEntity,
71
+ });
72
+ if (rev.status === 'adopted' || rev.status === 'superseded') {
73
+ const adopter = rev.adoptedBy ?? input.managingPrincipal;
74
+ addAgent(adopter);
75
+ activities.push({
76
+ id: `act:${input.endeavorId}:plan:${rev.planId}:rev:${rev.revision}:adopted`,
77
+ type: 'PlanAdoption',
78
+ tier: 'execution-orchestrated',
79
+ startedAt: rev.adoptedAt ?? rev.proposedAt,
80
+ endedAt: rev.adoptedAt ?? rev.proposedAt,
81
+ wasAssociatedWith: adopter,
82
+ used: [entityId],
83
+ generated: [],
84
+ });
85
+ plans.push({
86
+ id: entityId,
87
+ steps: rev.steps.map((s) => ({ id: s.stepId, toolId: s.kind, isStepOfPlan: entityId })),
88
+ });
89
+ }
90
+ priorRevisionEntity = entityId;
91
+ }
92
+ // Per-step executions: correspondsToStep + qualified association (hadPlan = the exact revision entity).
93
+ for (const exec of input.executions) {
94
+ addAgent(exec.actor, exec.actorClass);
95
+ const revisionEntityId = planEntityId(input.endeavorId, exec.planId, exec.planRevision);
96
+ const artifactEntityIds = (exec.artifactRefs ?? []).map((raw, i) => {
97
+ const artifact = typeof raw === 'string' ? { ref: raw } : raw;
98
+ const id = `ent:${input.endeavorId}:artifact:${exec.activityId}:${i}`;
99
+ entities.push({
100
+ id,
101
+ type: 'Artifact',
102
+ wasGeneratedBy: `act:${exec.activityId}`,
103
+ ref: artifact.ref,
104
+ ...(artifact.derivedFrom?.length ? { wasDerivedFrom: artifact.derivedFrom } : {}),
105
+ });
106
+ return id;
107
+ });
108
+ // The compile bridge, both names (ADR-0054 §3): the run ExecutionPlan entity is
109
+ // prov:wasDerivedFrom the adopted revision, and the durable step gains
110
+ // ep-plan:isDecomposedAsPlan → it.
111
+ if (exec.runPlan) {
112
+ const runPlanEntityId = `ent:${input.endeavorId}:runplan:${exec.runPlan.id}`;
113
+ entities.push({
114
+ id: runPlanEntityId,
115
+ type: 'ExecutionPlan',
116
+ ref: exec.runPlan.ref,
117
+ wasDerivedFrom: [revisionEntityId],
118
+ });
119
+ const adoptedPlan = plans.find((p) => p.id === revisionEntityId);
120
+ const step = adoptedPlan?.steps.find((s) => s.id === exec.stepId);
121
+ if (step)
122
+ step.isDecomposedAsPlan = runPlanEntityId;
123
+ }
124
+ activities.push({
125
+ id: `act:${exec.activityId}`,
126
+ type: 'StepExecution',
127
+ tier: 'execution-orchestrated',
128
+ startedAt: exec.startedAt,
129
+ endedAt: exec.endedAt,
130
+ wasAssociatedWith: exec.actor,
131
+ used: exec.usedRefs ?? [],
132
+ onBehalfOf: exec.onBehalfOf,
133
+ generated: artifactEntityIds,
134
+ correspondsToStep: exec.stepId,
135
+ hadPlan: revisionEntityId,
136
+ hadRole: exec.role,
137
+ ...(exec.failed ? { failed: true } : {}),
138
+ });
139
+ }
140
+ // Outcome / validation attestations derive from the contributing artifacts.
141
+ for (const att of input.attestations ?? []) {
142
+ entities.push({
143
+ id: `ent:${input.endeavorId}:attestation:${att.id}`,
144
+ type: 'Attestation',
145
+ ref: att.ref,
146
+ wasDerivedFrom: att.derivedFrom,
147
+ });
148
+ }
149
+ return {
150
+ version: 'ap.provenance.v1',
151
+ agents: [...agents.values()],
152
+ activities,
153
+ entities,
154
+ plans,
155
+ // One Endeavor = one ep-plan:ExecutionTraceBundle; everything above is a hasTraceElement member.
156
+ bundle: { id: `bundle:${input.endeavorId}` },
157
+ };
158
+ }
159
+ //# sourceMappingURL=endeavor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endeavor.js","sourceRoot":"","sources":["../src/endeavor.ts"],"names":[],"mappings":"AA+FA,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,MAAc,EAAE,QAAgB,EAAU,EAAE,CACpF,OAAO,UAAU,SAAS,MAAM,QAAQ,QAAQ,EAAE,CAAC;AAErD;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAA8B;IACtE,MAAM,MAAM,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC/C,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,UAAuB,EAAQ,EAAE;QAC7D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC,CAAC;IAC/G,CAAC,CAAC;IACF,QAAQ,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEhE,MAAM,UAAU,GAAmB,EAAE,CAAC;IACtC,MAAM,QAAQ,GAAiB,EAAE,CAAC;IAClC,MAAM,KAAK,GAAgB,EAAE,CAAC;IAE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AAC,EAAE,EAAE;YACnD,IAAI,EAAE,aAAa;YACnB,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,cAAc,EAAE,GAAG,CAAC,WAAW;SAChC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5B,UAAU;QACV,QAAQ;QACR,KAAK;QACL,iGAAiG;QACjG,MAAM,EAAE,EAAE,EAAE,EAAE,UAAU,KAAK,CAAC,UAAU,EAAE,EAAE;KAC7C,CAAC;AACJ,CAAC"}
@@ -7,7 +7,7 @@ export interface PublicProvenanceRow {
7
7
  anchoredBy?: string;
8
8
  /** REQUIRED: the assurance floor — must be `OnchainConfirmed`. */
9
9
  assurance?: string;
10
- /** `prov:actedOnBehalfOf` / `apfab:onBehalfOf` edges — MUST be empty for a public row. */
10
+ /** `prov:actedOnBehalfOf` / `apvr:onBehalfOf` edges — MUST be empty for a public row. */
11
11
  actedOnBehalfOf?: string[];
12
12
  /** `prov:wasAttributedTo` agent classes — MUST NOT include `person`. */
13
13
  attributedToClasses?: AgentClass[];
@@ -1 +1 @@
1
- {"version":3,"file":"firewall.d.ts","sourceRoot":"","sources":["../src/firewall.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,+GAA+G;IAC/G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC;IACnC,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAgC1E,2FAA2F;AAC3F,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,mBAAmB,GAAG,cAAc,CAY/E;AAED,gHAAgH;AAChH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAGzE"}
1
+ {"version":3,"file":"firewall.d.ts","sourceRoot":"","sources":["../src/firewall.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,+GAA+G;IAC/G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yFAAyF;IACzF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC;IACnC,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAgC1E,2FAA2F;AAC3F,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,mBAAmB,GAAG,cAAc,CAY/E;AAED,gHAAgH;AAChH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAGzE"}
package/dist/index.d.ts CHANGED
@@ -3,5 +3,6 @@ export declare const PACKAGE_STATUS: "w5-projector";
3
3
  export declare const SPEC_REF = "specs/316-agentic-interaction-fabric.md";
4
4
  export type { Tier, AgentClass, ProvAgentRef, ProvActivityType, ProvActivity, ProvEntityType, ProvEntity, PPlanStep, PPlanPlan, ProvenanceRecordV1, } from './types.js';
5
5
  export { projectExchangeProvenance, projectRunProvenance, type ProvenanceExchangeInput, type ProvenanceRunInput, } from './project.js';
6
+ export { projectEndeavorProvenance, type EndeavorProvenanceInput, type EndeavorRequestInput, type EndeavorPlanRevisionInput, type EndeavorStepExecutionInput, type EndeavorAttestationInput, } from './endeavor.js';
6
7
  export { isPublicProjectionSafe, assertPublicProjectionSafe, type PublicProvenanceRow, type FirewallResult, } from './firewall.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAAkC,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAG,cAAuB,CAAC;AACtD,eAAO,MAAM,QAAQ,4CAA4C,CAAC;AAElE,YAAY,EACV,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,SAAS,EACT,SAAS,EACT,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,kCAAkC,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAG,cAAuB,CAAC;AACtD,eAAO,MAAM,QAAQ,4CAA4C,CAAC;AAElE,YAAY,EACV,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,SAAS,EACT,SAAS,EACT,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -5,5 +5,6 @@ export const PACKAGE_NAME = '@agenticprimitives/provenance';
5
5
  export const PACKAGE_STATUS = 'w5-projector';
6
6
  export const SPEC_REF = 'specs/316-agentic-interaction-fabric.md';
7
7
  export { projectExchangeProvenance, projectRunProvenance, } from './project.js';
8
+ export { projectEndeavorProvenance, } from './endeavor.js';
8
9
  export { isPublicProjectionSafe, assertPublicProjectionSafe, } from './firewall.js';
9
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,8GAA8G;AAC9G,mEAAmE;AACnE,MAAM,CAAC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,cAAuB,CAAC;AACtD,MAAM,CAAC,MAAM,QAAQ,GAAG,yCAAyC,CAAC;AAelE,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GAGrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,GAG3B,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,8GAA8G;AAC9G,mEAAmE;AACnE,MAAM,CAAC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,cAAuB,CAAC;AACtD,MAAM,CAAC,MAAM,QAAQ,GAAG,yCAAyC,CAAC;AAelE,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GAGrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,GAM1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,GAG3B,MAAM,eAAe,CAAC"}
package/dist/types.d.ts CHANGED
@@ -5,9 +5,11 @@ export interface ProvAgentRef {
5
5
  id: string;
6
6
  agentClass: AgentClass;
7
7
  }
8
- /** `apfab:CommunicationDelivery` (T0) / `apfab:IntentInvocation` (T1) / `apfab:OrchestratedTask ≡ apful:Task`
9
- * (T2) — all `⊑ prov:Activity` (§6). */
10
- export type ProvActivityType = 'CommunicationDelivery' | 'IntentInvocation' | 'OrchestratedTask';
8
+ /** `apix:CommunicationDelivery` (T0) / `apix:IntentInvocation` (T1) / `apix:OrchestratedTask ≡ apful:Task`
9
+ * (T2) — all `⊑ prov:Activity` (§6). Spec 332 §7 adds the coordination activities: `EndeavorAdoption`,
10
+ * `PlanProposal`, `PlanAdoption`, and the per-step `StepExecution` (an `apexec:ServiceExecution` /
11
+ * `apful:Task` activity carrying `p-plan:correspondsToStep`). */
12
+ export type ProvActivityType = 'CommunicationDelivery' | 'IntentInvocation' | 'OrchestratedTask' | 'EndeavorAdoption' | 'PlanProposal' | 'PlanAdoption' | 'StepExecution';
11
13
  export interface ProvActivity {
12
14
  id: string;
13
15
  type: ProvActivityType;
@@ -16,15 +18,26 @@ export interface ProvActivity {
16
18
  endedAt?: string;
17
19
  /** `prov:wasAssociatedWith` — the acting agent id. */
18
20
  wasAssociatedWith: string;
19
- /** `apfab:usedDelegation`/`usedStatusEvidence ⊑ prov:used` — BY-HASH refs, never inline authority. */
21
+ /** `apvr:usedDelegation`/`usedStatusEvidence ⊑ prov:used` — BY-HASH refs, never inline authority. */
20
22
  used: string[];
21
- /** `apfab:onBehalfOf ⊑ prov:actedOnBehalfOf` — **PRIVATE DETAIL ONLY** (the S1 firewall rejects it from any
23
+ /** `apvr:onBehalfOf ⊑ prov:actedOnBehalfOf` — **PRIVATE DETAIL ONLY** (the S1 firewall rejects it from any
22
24
  * public row). */
23
25
  onBehalfOf?: string;
24
26
  /** `prov:generated` — entity ids this activity produced. */
25
27
  generated: string[];
28
+ /** `p-plan:correspondsToStep` — the DURABLE `apcoord:PlanStep` this execution enacted (spec 332 §7). */
29
+ correspondsToStep?: string;
30
+ /** `prov:qualifiedAssociation[prov:hadPlan]` — the EXACT adopted plan revision entity id (spec 330 §9). */
31
+ hadPlan?: string;
32
+ /** `prov:qualifiedAssociation[prov:hadRole]` — the capacity the agent functioned in. Never a permission. */
33
+ hadRole?: string;
34
+ /** `ep-plan:FailedActivity` — the execution was interrupted / not completed. A first-class trace
35
+ * fact (tbox/plan.ttl), never silently dropped. */
36
+ failed?: boolean;
26
37
  }
27
- export type ProvEntityType = 'Message' | 'Artifact' | 'DecisionArtifact';
38
+ export type ProvEntityType = 'Message' | 'Artifact' | 'DecisionArtifact' | 'EndeavorRequest' | 'OutcomeSpecification' | 'PlanRevision'
39
+ /** The RUN-SPECIFIC `apexec:ExecutionPlan` a PlanStep compiled into (ADR-0054 §3 trichotomy). */
40
+ | 'ExecutionPlan' | 'Attestation';
28
41
  export interface ProvEntity {
29
42
  id: string;
30
43
  type: ProvEntityType;
@@ -32,6 +45,10 @@ export interface ProvEntity {
32
45
  wasGeneratedBy?: string;
33
46
  /** Vault-resident ref (hash / VaultRef) — NEVER inline plaintext. */
34
47
  ref?: string;
48
+ /** `prov:wasRevisionOf` — the prior revision entity id (plan revision chains, spec 332 §7). */
49
+ wasRevisionOf?: string;
50
+ /** `prov:wasDerivedFrom` — contributing entity ids (outcome attestations derive from artifacts). */
51
+ wasDerivedFrom?: string[];
35
52
  }
36
53
  /** P-Plan (`tbox/plan.ttl`) — grounds an orchestration `Plan` (and a service-agent `PrimitivePlan`) as
37
54
  * `p-plan:Plan`; steps are `p-plan:Step` via `isStepOfPlan` (§6). */
@@ -39,6 +56,10 @@ export interface PPlanStep {
39
56
  id: string;
40
57
  toolId: string;
41
58
  isStepOfPlan: string;
59
+ /** `ep-plan:isDecomposedAsPlan` — the run-specific ExecutionPlan ENTITY id this step compiled
60
+ * into (the CoordinationPlan→ExecutionPlan bridge, named; emitted alongside the run plan's
61
+ * `prov:wasDerivedFrom` back to the adopted revision). */
62
+ isDecomposedAsPlan?: string;
42
63
  }
43
64
  export interface PPlanPlan {
44
65
  id: string;
@@ -52,5 +73,11 @@ export interface ProvenanceRecordV1 {
52
73
  activities: ProvActivity[];
53
74
  entities: ProvEntity[];
54
75
  plans: PPlanPlan[];
76
+ /** `ep-plan:ExecutionTraceBundle` (⊑ prov:Bundle) — names THIS record as one bundle; every
77
+ * agent/activity/entity above is an `ep-plan:hasTraceElement` member. Set by per-execution
78
+ * projections (one Endeavor = one bundle); absent on partial/merged records. */
79
+ bundle?: {
80
+ id: string;
81
+ };
55
82
  }
56
83
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,IAAI,GAAG,eAAe,GAAG,gBAAgB,GAAG,wBAAwB,CAAC;AACjF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtD,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;yCACyC;AACzC,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,GAAG,kBAA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rE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;sEACsE;AACtE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB;;+DAE2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED;0GAC0G;AAC1G,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB;;qFAEiF;IACjF,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticprimitives/provenance",
3
- "version": "0.0.0-alpha.0",
3
+ "version": "0.0.0-alpha.1",
4
4
  "description": "The Ring-0 provenance projector (spec 316 §6): maps fabric exchanges + orchestration runs to a PRIVATE PROV-O / P-Plan A-box, and enforces the ADR-0040 public-projection firewall (S1). Sole writer of the private vault A-box; NEVER writes the public KB.",
5
5
  "license": "MIT",
6
6
  "repository": {