@axiastudio/aioc 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/README.md +23 -3
  2. package/package.json +23 -19
package/README.md CHANGED
@@ -43,6 +43,11 @@ AIOC `0.2.6` adds descriptor-level conditional agent handoffs with boolean `wher
43
43
 
44
44
  ### Experimental Packages
45
45
 
46
+ `@axiastudio/aioc-regression-judge` implements the RFC-0012 companion judge
47
+ helpers outside the core runtime package. It builds bounded judge inputs for
48
+ run-regression suites and parses structured `RunJudgeResult` outputs while the
49
+ host application owns the model invocation.
50
+
46
51
  `@axiastudio/aioc-governance-events` implements the RFC-0009 governance-event
47
52
  mapper outside the core runtime package. It derives reduced, redacted,
48
53
  event-shaped records from `RunRecord` values.
@@ -266,8 +271,8 @@ This repository also contains `aioc-inspect`, a private reference example UI for
266
271
 
267
272
  Suggested reading path: start with `example:hello`, then policy, approval,
268
273
  tool-policy, and policy-composition. Use run-record and harness examples after
269
- the basics; `example:non-regression` and `example:run-regression` are advanced
270
- workflows.
274
+ the basics; `example:non-regression`, `example:run-regression`, and
275
+ `example:run-regression-judge` are advanced workflows.
271
276
 
272
277
  | Command | Purpose | Needs API key |
273
278
  |---|---|---|
@@ -285,15 +290,30 @@ workflows.
285
290
  | `npm run example:rru:04-replay-hybrid` | Minimal hybrid replay | No |
286
291
  | `npm run example:non-regression` | Advanced v1/v2 run-record diff | Yes (`AIOC_EXAMPLE_PROVIDER` + matching provider API key) |
287
292
  | `npm run example:run-regression` | Local `runRegressionSuite(...)` over a modified harness | Yes (`OPENAI_API_KEY`) |
293
+ | `npm run example:run-regression-judge` | Local `runRegressionSuite(...)` with an LLM judge | Yes (`OPENAI_API_KEY`) |
288
294
 
289
295
  Notes:
290
296
 
291
297
  - for live-provider examples, set `AIOC_EXAMPLE_PROVIDER` to `openai` or `mistral`; the matching API key must also be available
292
- - `example:harness-rerun` and `example:run-regression` configure OpenAI directly from `OPENAI_API_KEY`; the model is declared in the YAML descriptor
298
+ - `example:harness-rerun`, `example:run-regression`, and `example:run-regression-judge` configure OpenAI directly from `OPENAI_API_KEY`; harness models are declared in YAML descriptors
293
299
  - run-record utility examples are deterministic and do not need a provider
294
300
  - `example:non-regression` is educational and can be non-deterministic because it uses a live provider.
295
301
  - canonical examples guide: `docs/CANONICAL-EXAMPLES.md`.
296
302
 
303
+ ### Optional LangChain Examples
304
+
305
+ Optional LangChain interoperability examples live in `examples/langchain`.
306
+ They use their own `package.json` so LangChain dependencies do not become
307
+ dependencies of the core `@axiastudio/aioc` runtime package.
308
+
309
+ They demonstrate two composition patterns:
310
+
311
+ - **aioc-first, LangChain-extended**: aioc owns the governed agent run while
312
+ LangChain provides OSS components behind aioc tools, such as retrieval.
313
+ - **LangGraph-orchestrated, aioc-governed**: LangGraph owns workflow
314
+ orchestration while selected graph nodes call aioc for policy-gated execution
315
+ and portable audit evidence.
316
+
297
317
  ## Test Commands
298
318
 
299
319
  - `npm run test:unit`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiastudio/aioc",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -14,41 +14,45 @@
14
14
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
15
15
  "build": "tsc -p tsconfig.json",
16
16
  "build:package": "npm run clean && tsc -p tsconfig.build.json",
17
+ "examples:check": "tsc -p tsconfig.examples.json --noEmit",
17
18
  "lint": "eslint ./src --ext .ts",
18
19
  "test:unit": "npm run build && node dist/tests/unit/index.js",
19
20
  "test:integration": "npm run build && node dist/tests/integration/index.js",
20
21
  "test:regression": "npm run build && node dist/tests/regression/index.js",
21
22
  "test:ci": "npm run lint && npm run build && node dist/tests/unit/index.js && node dist/tests/integration/index.js && node dist/tests/regression/index.js",
22
23
  "test:ci:stability": "npm run test:ci && npm run test:ci",
23
- "example:hello": "tsx src/examples/basic/hello-world.ts",
24
- "example:policy": "tsx src/examples/basic/policy.ts",
25
- "example:approval-required": "tsx src/examples/basic/approval-required.ts",
26
- "example:approval-evidence": "tsx src/examples/basic/approval-evidence.ts",
27
- "example:tool-policy": "tsx src/examples/basic/tools.ts",
28
- "example:policy-composition": "tsx src/examples/basic/policy-composition.ts",
29
- "example:harness": "tsx src/examples/harness-descriptor/customer-support.ts",
30
- "example:harness-rerun": "tsx src/examples/harness-descriptor/rerun-modified-harness.ts",
31
- "example:run-record": "tsx src/examples/basic/run-record-sink.ts",
32
- "example:rru:01-extract": "tsx src/examples/run-record-utils-minimal/01-extract-tool-calls.ts",
33
- "example:rru:02-compare": "tsx src/examples/run-record-utils-minimal/02-compare-run-records.ts",
34
- "example:rru:03-replay-strict": "tsx src/examples/run-record-utils-minimal/03-replay-strict.ts",
35
- "example:rru:04-replay-hybrid": "tsx src/examples/run-record-utils-minimal/04-replay-hybrid.ts",
36
- "example:non-regression": "tsx src/examples/non-regression/v1-v2-runrecord-diff.ts",
37
- "example:run-regression": "tsx src/examples/run-regression/age-adapted-suite.ts",
24
+ "example:hello": "tsx examples/core/basic/hello-world.ts",
25
+ "example:policy": "tsx examples/core/basic/policy.ts",
26
+ "example:approval-required": "tsx examples/core/basic/approval-required.ts",
27
+ "example:approval-evidence": "tsx examples/core/basic/approval-evidence.ts",
28
+ "example:tool-policy": "tsx examples/core/basic/tools.ts",
29
+ "example:policy-composition": "tsx examples/core/basic/policy-composition.ts",
30
+ "example:harness": "tsx examples/core/harness-descriptor/customer-support.ts",
31
+ "example:harness-rerun": "tsx examples/core/harness-descriptor/rerun-modified-harness.ts",
32
+ "example:run-record": "tsx examples/core/basic/run-record-sink.ts",
33
+ "example:rru:01-extract": "tsx examples/core/run-record-utils-minimal/01-extract-tool-calls.ts",
34
+ "example:rru:02-compare": "tsx examples/core/run-record-utils-minimal/02-compare-run-records.ts",
35
+ "example:rru:03-replay-strict": "tsx examples/core/run-record-utils-minimal/03-replay-strict.ts",
36
+ "example:rru:04-replay-hybrid": "tsx examples/core/run-record-utils-minimal/04-replay-hybrid.ts",
37
+ "example:non-regression": "tsx examples/core/non-regression/v1-v2-runrecord-diff.ts",
38
+ "example:run-regression": "tsx examples/core/run-regression/age-adapted-suite.ts",
39
+ "example:run-regression-judge": "npm run regression-judge:build && tsx packages/aioc-regression-judge/examples/age-adapted-suite-with-judge.ts",
38
40
  "inspect:samples": "tsx scripts/generate-aioc-inspect-samples.ts",
39
41
  "docs:sync": "node scripts/sync-aioc-docs.mjs",
40
42
  "docs:dev": "npm run docs:sync && cd apps/aioc-docs && zsh -lc 'npm run dev'",
41
43
  "docs:build": "npm run docs:sync && cd apps/aioc-docs && zsh -lc 'npm run build'",
42
44
  "docs:preview": "cd apps/aioc-docs && zsh -lc 'npm run preview'",
43
- "packages:build": "npm run governance-events:build && npm run build -w @axiastudio/aioc-export-otel && npm run build -w @axiastudio/aioc-inspect-ui",
44
- "packages:test": "npm run governance-events:test && npm run export-otel:test",
45
+ "packages:build": "npm run governance-events:build && npm run regression-judge:build && npm run build -w @axiastudio/aioc-export-otel && npm run build -w @axiastudio/aioc-inspect-ui",
46
+ "packages:test": "npm run governance-events:test && npm run export-otel:test && npm run regression-judge:test",
45
47
  "governance-events:build": "npm run build && npm run build -w @axiastudio/aioc-governance-events",
46
48
  "governance-events:test": "npm run build && npm test -w @axiastudio/aioc-governance-events",
49
+ "regression-judge:build": "npm run build && npm run build -w @axiastudio/aioc-regression-judge",
50
+ "regression-judge:test": "npm run build && npm test -w @axiastudio/aioc-regression-judge",
47
51
  "export-otel:build": "npm run governance-events:build && npm run build -w @axiastudio/aioc-export-otel",
48
52
  "export-otel:test": "npm run governance-events:build && npm test -w @axiastudio/aioc-export-otel",
49
53
  "export-otel:console": "npm run governance-events:build && npm run console -w @axiastudio/aioc-export-otel",
50
54
  "export-otel:signoz": "npm run governance-events:build && npm run signoz -w @axiastudio/aioc-export-otel",
51
- "test:mistral": "tsx src/examples/mistral-smoke.ts",
55
+ "test:mistral": "tsx examples/core/mistral-smoke.ts",
52
56
  "prepack": "npm run build:package"
53
57
  },
54
58
  "keywords": [