@inventarch/agent-system 0.0.0-stage → 1.1.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.
@@ -0,0 +1,251 @@
1
+ import type { Json, Limits, Session, SessionStore, Recovery, Effect, ReviewContract, Owner } from '@inventarch/session-system';
2
+ export declare const DEFAULT_MODEL_REQUEST_BYTES = 131072;
3
+ export declare const MAX_MODEL_REQUEST_BYTES = 262144;
4
+ export type OutcomeKind = 'answer' | 'deliverable' | 'clarification' | 'proposal' | 'follow-up' | 'handoff' | 'blocked' | 'refusal' | 'failure';
5
+ export type ResourceLimits = Partial<Omit<Limits, 'deadline'>> & {
6
+ durationMs?: number;
7
+ };
8
+ export interface IndependentReviewPolicy {
9
+ rule: 'independent-exact-candidate-v1';
10
+ reviewer: string;
11
+ mandate: string;
12
+ policyRevision: string;
13
+ }
14
+ /** Issued by trusted host authorization, never by model output or caller-supplied role labels. */
15
+ export interface ReviewGrant {
16
+ principal: string;
17
+ workspace: string;
18
+ mandate: string;
19
+ policyRevision: string;
20
+ expiresAt: number;
21
+ operations: string[];
22
+ effects: ('local-write' | 'external-write')[];
23
+ sources: string[];
24
+ destinations: Json[];
25
+ }
26
+ export interface ExecutionContract {
27
+ review?: IndependentReviewPolicy;
28
+ /** Pinned structural request ceiling; cumulative token accounting remains independent. */
29
+ requestBytes?: number;
30
+ id: string;
31
+ mandateContracts: string[];
32
+ inputContracts: {
33
+ id: string;
34
+ schema: Json;
35
+ }[];
36
+ effects: Grant['effects'];
37
+ limits: ResourceLimits;
38
+ delegation: {
39
+ profile: string;
40
+ limits: ResourceLimits;
41
+ }[];
42
+ checks: {
43
+ id: string;
44
+ phases: ('before-effect' | 'completion')[];
45
+ }[];
46
+ completionEvaluator: 'ia.completion.v1';
47
+ repairAttempts: number;
48
+ maxAttempts: number;
49
+ }
50
+ export interface ArtifactRequirement {
51
+ operation: string;
52
+ destination: Json;
53
+ }
54
+ export interface TaskContract {
55
+ version: 1;
56
+ objective: Json;
57
+ inputs: {
58
+ id: string;
59
+ schema: Json;
60
+ }[];
61
+ outcomes: OutcomeKind[];
62
+ completion: Profile['completion'];
63
+ evaluator: 'ia.completion.v1';
64
+ escalation: 'persist-required-wait';
65
+ artifact: ArtifactRequirement | null;
66
+ }
67
+ export interface Profile {
68
+ id: string;
69
+ agent: string;
70
+ role: string;
71
+ voice: string;
72
+ instructions: string[];
73
+ operations: string[];
74
+ capabilities: string[];
75
+ delegates: string[];
76
+ outcomes: OutcomeKind[];
77
+ completion: 'response' | 'proposal' | 'artifact';
78
+ checks: string[];
79
+ model: string;
80
+ contract?: ExecutionContract;
81
+ }
82
+ export interface OperationDefinition {
83
+ id: string;
84
+ handler: string;
85
+ digest: string;
86
+ effects: ('read' | 'local-write' | 'external-write')[];
87
+ recovery: Recovery;
88
+ timeoutMs: number;
89
+ input: Json;
90
+ output: Json;
91
+ maxOutputBytes?: number;
92
+ purpose?: 'candidate-validation';
93
+ }
94
+ export interface ReactionBinding {
95
+ id: string;
96
+ event: 'attempt.observed' | 'outcome.accepted' | 'question.answered';
97
+ operation: string;
98
+ required: boolean;
99
+ digest: string;
100
+ }
101
+ export interface Manifest {
102
+ version: 1;
103
+ id: string;
104
+ digest: string;
105
+ workspace: string;
106
+ sourceDigest: string;
107
+ profiles: Record<string, Profile>;
108
+ operations: Record<string, OperationDefinition>;
109
+ reactions: ReactionBinding[];
110
+ provenance: Json;
111
+ }
112
+ export interface Grant {
113
+ id: string;
114
+ principal: string;
115
+ workspace: string;
116
+ expiresAt: number;
117
+ profiles: string[];
118
+ operations: string[];
119
+ effects: ('read' | 'local-write' | 'external-write')[];
120
+ sources: string[];
121
+ models: string[];
122
+ limits: Limits;
123
+ destinations?: Json[];
124
+ }
125
+ export type ModelAction = {
126
+ type: 'continue';
127
+ message: string;
128
+ } | {
129
+ type: 'invoke';
130
+ operation: string;
131
+ input: Json;
132
+ review?: {
133
+ proposalId: string;
134
+ revision: number;
135
+ digest: string;
136
+ decisionId: string;
137
+ };
138
+ } | {
139
+ type: 'delegate';
140
+ profile: string;
141
+ task: Json;
142
+ } | {
143
+ type: 'outcome';
144
+ kind: OutcomeKind;
145
+ message: string;
146
+ continuation: 'finish' | 'continue' | 'await-input' | 'await-review' | 'await-dependency' | 'fail';
147
+ questions?: {
148
+ prompt: string;
149
+ choices: string[];
150
+ required: boolean;
151
+ }[];
152
+ proposal?: Json;
153
+ artifacts?: string[];
154
+ evidence?: string[];
155
+ followUps?: string[];
156
+ review?: {
157
+ operation: string;
158
+ input: Json;
159
+ validationReceipt: string;
160
+ };
161
+ };
162
+ export interface ModelRequest {
163
+ version: 1;
164
+ sessionId: string;
165
+ runId: string;
166
+ attemptId: string;
167
+ task: Json;
168
+ profile: Profile;
169
+ history: Json[];
170
+ context: Json;
171
+ operations: OperationDefinition[];
172
+ maxOutputTokens: number;
173
+ }
174
+ export interface ModelResponse {
175
+ action: unknown;
176
+ usage: number | null;
177
+ provider: string;
178
+ model: string;
179
+ }
180
+ export interface ModelAdapter {
181
+ id: string;
182
+ generate(request: ModelRequest, signal: AbortSignal): Promise<ModelResponse | {
183
+ deferred: true;
184
+ }>;
185
+ }
186
+ export interface OperationContext {
187
+ sessionId: string;
188
+ runId: string;
189
+ invocationId: string;
190
+ attemptId: string;
191
+ principal: string;
192
+ grant: Grant;
193
+ manifest: Manifest;
194
+ signal: AbortSignal;
195
+ agent?: string;
196
+ owner?: Owner;
197
+ review?: ReviewContract & {
198
+ proposalId: string;
199
+ revision: number;
200
+ digest: string;
201
+ decisionId: string;
202
+ };
203
+ assertCurrent?: () => Promise<void>;
204
+ }
205
+ export interface OperationResult {
206
+ output: Json;
207
+ effect: Effect;
208
+ }
209
+ export interface OperationAdapter {
210
+ id: string;
211
+ execute(input: Json, context: OperationContext): Promise<OperationResult>;
212
+ reconcile?(input: Json, context: OperationContext): Promise<{
213
+ status: 'absent' | 'applied' | 'partial' | 'unknown';
214
+ output: Json | null;
215
+ }>;
216
+ }
217
+ export interface Evaluation {
218
+ status: 'pass' | 'fail' | 'unavailable';
219
+ evidence: string[];
220
+ message: string;
221
+ }
222
+ /** Space for the complete context JSON value after the retained request wrapper and history. */
223
+ export interface ContextBudget {
224
+ readonly bytes: number;
225
+ }
226
+ export interface EngineHost {
227
+ store: SessionStore;
228
+ model: ModelAdapter;
229
+ operations: Readonly<Record<string, OperationAdapter>>;
230
+ authorize(principal: string, manifest: Manifest, session: Session | null): Promise<Grant>;
231
+ /** Current review authority for an identity authenticated by the host. Does not grant session ownership or write authority. */
232
+ authorizeReview?(principal: string, manifest: Manifest, session: Session, review: ReviewContract): Promise<ReviewGrant>;
233
+ /** Explicit fresh authority for a bounded human-wait renewal; ordinary grants never renew. */
234
+ authorizeRenewal?(principal: string, manifest: Manifest, session: Session): Promise<Grant>;
235
+ context(profile: Profile, task: Json, grant: Grant, budget?: ContextBudget): Promise<Json>;
236
+ verifyManifest(manifest: Manifest): Promise<boolean>;
237
+ evaluate(id: string, input: Json, grant: Grant): Promise<Evaluation>;
238
+ /** Current destination/binding check. Required for effects; does not perform the effect. */
239
+ preflight?(operation: OperationDefinition, input: Json, context: OperationContext): Promise<boolean>;
240
+ now?(): number;
241
+ }
242
+ export interface StartRequest {
243
+ commandId: string;
244
+ sessionId: string;
245
+ principal: string;
246
+ profile: string;
247
+ task: Json;
248
+ limits?: Partial<Limits>;
249
+ artifact?: ArtifactRequirement;
250
+ }
251
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,MAAM,EACN,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,cAAc,EACd,KAAK,EACN,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,2BAA2B,SAAU,CAAC;AACnD,eAAO,MAAM,uBAAuB,SAAU,CAAC;AAE/C,MAAM,MAAM,WAAW,GACnB,QAAQ,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AE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3F,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3F,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACrE,4FAA4F;IAC5F,SAAS,CAAC,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrG,GAAG,CAAC,IAAI,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC"}
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ export const DEFAULT_MODEL_REQUEST_BYTES = 131_072;
2
+ export const MAX_MODEL_REQUEST_BYTES = 262_144;
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC;AACnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,68 @@
1
1
  {
2
2
  "name": "@inventarch/agent-system",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./internal/action": {
13
+ "types": "./dist/action.d.ts",
14
+ "default": "./dist/action.js"
15
+ },
16
+ "./internal/contracts": {
17
+ "types": "./dist/contracts.d.ts",
18
+ "default": "./dist/contracts.js"
19
+ },
20
+ "./internal/engine": {
21
+ "types": "./dist/engine.d.ts",
22
+ "default": "./dist/engine.js"
23
+ },
24
+ "./internal/index": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
+ },
28
+ "./internal/types": {
29
+ "types": "./dist/types.d.ts",
30
+ "default": "./dist/types.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "README.md",
36
+ "SPEC.md",
37
+ "LICENSE",
38
+ "NOTICE",
39
+ "LANGUAGE.md"
40
+ ],
41
+ "dependencies": {
42
+ "@inventarch/session-system": "1.1.0",
43
+ "@inventarch/workspace-system": "1.1.0"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^22.19.0",
47
+ "typescript": "^5.9.3",
48
+ "vitest": "^4.1.4"
49
+ },
50
+ "license": "Apache-2.0",
51
+ "engines": {
52
+ "node": ">=22.22.0 <23"
53
+ },
54
+ "publishConfig": {
55
+ "access": "public",
56
+ "registry": "https://registry.npmjs.org"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/inventarch/ia.git",
61
+ "directory": ".ia/src/systems/agent-system"
62
+ },
63
+ "scripts": {
64
+ "build": "tsc -p tsconfig.json",
65
+ "typecheck": "tsc --noEmit -p tsconfig.json && tsc -p tsconfig.tests.json",
66
+ "test": "vitest run --config vitest.config.mts"
67
+ }
6
68
  }