@yansirplus/cli 0.5.17 → 0.5.18
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 +12 -6
- package/agent-catalog/agentOS/SKILL.md +22 -0
- package/agent-catalog/agentOS/references/agent/decision-graph.json +530 -0
- package/agent-catalog/agentOS/references/agent/errors.json +497 -0
- package/agent-catalog/agentOS/references/agent/invariant-matrix.json +337 -0
- package/agent-catalog/agentOS/references/agent/primitives.json +989 -0
- package/agent-catalog/agentOS/references/agent/recipes.json +109 -0
- package/agent-catalog/agentOS/references/agent/start-here.md +25 -0
- package/agent-catalog/agentOS/references/package-map.md +72 -0
- package/agent-catalog/agentOS/references/provenance.json +251 -0
- package/agent-catalog/agentOS/references/public-api/cli.md +20 -0
- package/agent-catalog/agentOS/references/public-api/client.md +88 -0
- package/agent-catalog/agentOS/references/public-api/core.md +1817 -0
- package/agent-catalog/agentOS/references/public-api/runtime.md +794 -0
- package/dist/build/agent-authoring/config.d.ts +20 -5
- package/dist/build/agent-authoring/config.js +132 -32
- package/dist/build/agent-authoring/manifest-compiler.d.ts +131 -2
- package/dist/build/agent-authoring/manifest-compiler.js +630 -8
- package/dist/build/agent-authoring/shared.d.ts +2 -0
- package/dist/build/agent-authoring/shared.js +2 -0
- package/dist/build/agent-authoring/static-target.d.ts +6 -3
- package/dist/build/agent-authoring/static-target.js +1807 -286
- package/dist/build/agent-authoring.d.ts +3 -3
- package/dist/build/agent-authoring.js +1 -1
- package/dist/build/build-cli.d.ts +1 -1
- package/dist/build/build-cli.js +1614 -26
- package/dist/check/algorithmic/client-boundary-checks.mjs +3 -34
- package/dist/check/algorithmic/convergence-smoke-checks.mjs +652 -6
- package/dist/check/algorithmic/distribution-checks.mjs +8 -7
- package/dist/check/algorithmic/package-boundary-checks.mjs +3 -2
- package/dist/check/algorithmic/repo-surface-checks.mjs +55 -1
- package/dist/check/algorithmic/static-target-checks.mjs +83 -5
- package/dist/check/algorithmic-checks.mjs +10 -17
- package/dist/check/default-gate.mjs +3 -3
- package/dist/check/effect-scan-gate.mjs +121 -0
- package/dist/check/package-graph.mjs +2 -32
- package/dist/consumer-overlay.mjs +802 -0
- package/dist/lib/public-api-model.mjs +19 -0
- package/dist/lib/repo-source-files.mjs +26 -0
- package/dist/lib/ts-module-loader.mjs +44 -0
- package/dist/lib/workspace-manifest.mjs +77 -0
- package/dist/main.mjs +151 -21
- package/package.json +8 -4
- package/dist/check/check-coverage.mjs +0 -231
- package/dist/generate/generate-agent-docs.mjs +0 -435
- package/dist/generate/generate-carrier-reference.mjs +0 -514
- package/dist/generate/generate-docs.mjs +0 -345
- package/dist/generate/generate-effect-skill-manifests.mjs +0 -193
- package/dist/generate/project-docs-site.mjs +0 -190
- package/dist/lib/boundary-rules.mjs +0 -63
- package/dist/lib/capability-routes.mjs +0 -354
- package/dist/lib/projection-sink.mjs +0 -113
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedBy": "packages/cli/src/generate/generate-agent-docs.mjs",
|
|
3
|
+
"source": ["packages/**/*.ts agent_os.* tags", "docs/agent/error-metadata.source.json"],
|
|
4
|
+
"errors": [
|
|
5
|
+
{
|
|
6
|
+
"tag": "agent_os.aead_sealed_codec_failure",
|
|
7
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
8
|
+
"docs": "docs/concepts/carriers-and-material.md",
|
|
9
|
+
"fix": "Seal live material through the owner AEAD codec, keep key material live, and reject malformed or mismatched sealed envelopes before opening.",
|
|
10
|
+
"sourceFiles": ["packages/core/src/internal/aead-sealed.ts"]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"tag": "agent_os.backend_protocol_parse_failure",
|
|
14
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
15
|
+
"docs": "docs/packages/core.md",
|
|
16
|
+
"fix": "Decode backend protocol payloads at the protocol boundary and reject malformed external input before it reaches runtime logic.",
|
|
17
|
+
"sourceFiles": ["packages/core/src/backend-protocol/index.ts"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tag": "agent_os.boundary_commit_rejected",
|
|
21
|
+
"invariants": ["invariant.d10.namespace-integrity", "invariant.d10.truth-identity"],
|
|
22
|
+
"docs": "docs/boundary-contract.md",
|
|
23
|
+
"fix": "Commit through the owning BoundaryContract with matching event vocabulary, scopeRef, effectAuthorityRef, and claim identity.",
|
|
24
|
+
"sourceFiles": [
|
|
25
|
+
"packages/runtime/src/boundary-commit.ts",
|
|
26
|
+
"packages/runtime/test/cloudflare/do-rpc.test.ts",
|
|
27
|
+
"packages/runtime/test/cloudflare/extension-capability.runtime.test.ts"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"tag": "agent_os.capability_rejected",
|
|
32
|
+
"invariants": ["invariant.d10.namespace-integrity"],
|
|
33
|
+
"docs": "docs/boundary-contract.md",
|
|
34
|
+
"fix": "Register the extension capability that owns the event prefix before committing or dispatching the fact.",
|
|
35
|
+
"sourceFiles": [
|
|
36
|
+
"packages/core/src/errors.ts",
|
|
37
|
+
"packages/runtime/test/cloudflare/dispatch-contract.runtime.test.ts",
|
|
38
|
+
"packages/runtime/test/cloudflare/emit-event-contract.runtime.test.ts",
|
|
39
|
+
"packages/runtime/test/cloudflare/extension-capability.runtime.test.ts",
|
|
40
|
+
"packages/runtime/test/cloudflare/facade-submit.runtime.test.ts"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"tag": "agent_os.cloudflare_ledger_schema_error",
|
|
45
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
46
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
47
|
+
"fix": "Use the Cloudflare D10 ledger schema with structured scopeRef, effectAuthorityRef, factOwnerRef, and identity keys; old scope columns and malformed identity specs fail closed.",
|
|
48
|
+
"sourceFiles": ["packages/runtime/src/cloudflare/ledger/identity.ts"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tag": "agent_os.dispatch_binding_ref_malformed",
|
|
52
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
53
|
+
"docs": "docs/packages/runtime.md",
|
|
54
|
+
"fix": "Use a valid binding MaterialRef for dispatch targets and reject malformed target refs at the backend boundary.",
|
|
55
|
+
"sourceFiles": [
|
|
56
|
+
"packages/core/src/errors.ts",
|
|
57
|
+
"packages/runtime/test/cloudflare/dispatch-contract.runtime.test.ts"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"tag": "agent_os.dispatch_payload_parse_failure",
|
|
62
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
63
|
+
"docs": "docs/packages/core.md",
|
|
64
|
+
"fix": "Decode dispatch payloads through the backend protocol parser before committing inbound or outbound dispatch facts.",
|
|
65
|
+
"sourceFiles": [
|
|
66
|
+
"packages/core/src/backend-protocol/index.ts",
|
|
67
|
+
"packages/core/test/backend-protocol/dispatch-payload.test.ts"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tag": "agent_os.dispatch_scope_mismatch",
|
|
72
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
73
|
+
"docs": "docs/packages/runtime.md",
|
|
74
|
+
"fix": "Dispatch only to the exact target scopeRef and effectAuthorityRef; do not reuse a scope-wide derived key as truth.",
|
|
75
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"tag": "agent_os.dispatch_target_not_found",
|
|
79
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
80
|
+
"docs": "docs/packages/runtime.md",
|
|
81
|
+
"fix": "Register or resolve the dispatch target binding before enqueueing delivery.",
|
|
82
|
+
"sourceFiles": [
|
|
83
|
+
"packages/core/src/errors.ts",
|
|
84
|
+
"packages/runtime/src/in-memory/dispatch.ts",
|
|
85
|
+
"packages/runtime/src/node/index.ts",
|
|
86
|
+
"packages/runtime/test/cloudflare/dispatch-contract.runtime.test.ts"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"tag": "agent_os.driver_ledger_commit_shape_mismatch",
|
|
91
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
92
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
93
|
+
"fix": "Keep driver append actions backed by ledger commits that return exactly the requested events; treat mismatched commit shape as a backend ledger failure.",
|
|
94
|
+
"sourceFiles": ["packages/runtime/src/driver.ts"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"tag": "agent_os.durable_trigger_acquire_cancelled",
|
|
98
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
99
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
100
|
+
"fix": "Keep trigger acquisition and cancellation in the durable trigger lifecycle contract so a claimed row always has a recoverable terminal path.",
|
|
101
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tag": "agent_os.durable_trigger_commit_returned_thenable",
|
|
105
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
106
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
107
|
+
"fix": "Keep trigger commit callbacks synchronous inside the backend transaction and move asynchronous work after durable commit.",
|
|
108
|
+
"sourceFiles": [
|
|
109
|
+
"packages/core/src/errors.ts",
|
|
110
|
+
"packages/runtime/test/cloudflare/trigger-facade.runtime.test.ts"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"tag": "agent_os.durable_trigger_drain_limit_exceeded",
|
|
115
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
116
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
117
|
+
"fix": "Drain due work through the durable trigger scheduler with an explicit limit and retry the remaining due work later.",
|
|
118
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"tag": "agent_os.effect_ai_aborted",
|
|
122
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
123
|
+
"docs": "docs/packages/runtime.md",
|
|
124
|
+
"fix": "Propagate Effect AI aborts through LlmTransport and let submit own terminal runtime facts.",
|
|
125
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"tag": "agent_os.effect_ai_json_encode_failed",
|
|
129
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
130
|
+
"docs": "docs/packages/runtime.md",
|
|
131
|
+
"fix": "Encode structured provider payloads through the Effect AI transport adapter and fail before committing runtime evidence.",
|
|
132
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"tag": "agent_os.effect_ai_missing_usage",
|
|
136
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
137
|
+
"docs": "docs/packages/runtime.md",
|
|
138
|
+
"fix": "Keep provider usage accounting in the LlmTransport output schema and reject responses that cannot produce runtime usage evidence.",
|
|
139
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"tag": "agent_os.effect_ai_prompt_error",
|
|
143
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
144
|
+
"docs": "docs/packages/runtime.md",
|
|
145
|
+
"fix": "Build prompts at the provider adapter boundary and surface prompt construction failures before submit records terminal facts.",
|
|
146
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"tag": "agent_os.effect_ai_provider_executed_tool_rejected",
|
|
150
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
151
|
+
"docs": "docs/packages/runtime.md",
|
|
152
|
+
"fix": "Disable provider-executed tool paths for agentOS tools; tool execution must flow through runtime admission and ledger settlement.",
|
|
153
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"tag": "agent_os.effect_ai_tool_handler_called",
|
|
157
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
158
|
+
"docs": "docs/packages/runtime.md",
|
|
159
|
+
"fix": "Treat provider-side tool handler invocation as an adapter violation; runtime owns tool calls and settlements.",
|
|
160
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"tag": "agent_os.effect_ai_unsupported_output_part",
|
|
164
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
165
|
+
"docs": "docs/packages/runtime.md",
|
|
166
|
+
"fix": "Map provider output parts through the runtime output-item algebra and reject parts without a runtime representation.",
|
|
167
|
+
"sourceFiles": ["packages/runtime/src/llm-effect-ai/index.ts"]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"tag": "agent_os.effect_ai_unsupported_route",
|
|
171
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
172
|
+
"docs": "docs/packages/runtime.md",
|
|
173
|
+
"fix": "Choose a route supported by the Effect AI transport adapter or add an explicit adapter branch for the provider.",
|
|
174
|
+
"sourceFiles": [
|
|
175
|
+
"packages/runtime/src/llm-effect-ai/index.ts",
|
|
176
|
+
"packages/runtime/src/structured-output.ts"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"tag": "agent_os.extension_capability_conflict",
|
|
181
|
+
"invariants": ["invariant.d10.namespace-integrity"],
|
|
182
|
+
"docs": "docs/boundary-contract.md",
|
|
183
|
+
"fix": "Declare one owner for each extension capability and event namespace; remove duplicate capability declarations.",
|
|
184
|
+
"sourceFiles": [
|
|
185
|
+
"packages/core/src/extensions.ts",
|
|
186
|
+
"packages/runtime/test/cloudflare/extension-declarations.test.ts"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"tag": "agent_os.invalid_resource_amount",
|
|
191
|
+
"invariants": ["invariant.algebra.type-or-boot-proof"],
|
|
192
|
+
"docs": "docs/packages/runtime.md",
|
|
193
|
+
"fix": "Reject non-positive or non-finite resource amounts before committing resource or quota facts.",
|
|
194
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"tag": "agent_os.invalid_schedule_at",
|
|
198
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
199
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
200
|
+
"fix": "Schedule durable work with a valid future timestamp and keep scheduling inside the durable process contract.",
|
|
201
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"tag": "agent_os.invalid_trace_context",
|
|
205
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
206
|
+
"docs": "docs/packages/runtime.md",
|
|
207
|
+
"fix": "Decode trace context at the runtime boundary and reject malformed trace metadata before provider or ledger projection consumes it.",
|
|
208
|
+
"sourceFiles": [
|
|
209
|
+
"packages/core/src/telemetry-protocol/index.ts",
|
|
210
|
+
"packages/core/test/backend-protocol/contract/runtime-backend-contract.ts"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"tag": "agent_os.json_stringify_error",
|
|
215
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
216
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
217
|
+
"fix": "Encode final payloads before commit side effects consume them; reject unstringifiable payloads before projection application.",
|
|
218
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"tag": "agent_os.llm_call_timed_out",
|
|
222
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
223
|
+
"docs": "docs/packages/runtime.md",
|
|
224
|
+
"fix": "Propagate LLM call timeout through submit and commit a runtime-owned terminal abort fact.",
|
|
225
|
+
"sourceFiles": ["packages/runtime/src/submit-agent/llm-timeout.ts"]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"tag": "agent_os.llm_call_timeout",
|
|
229
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
230
|
+
"docs": "docs/packages/runtime.md",
|
|
231
|
+
"fix": "Use the timeout marker only as abort metadata and let runtime terminal events expose the durable failure.",
|
|
232
|
+
"sourceFiles": ["packages/runtime/src/submit-agent/llm-timeout.ts"]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"tag": "agent_os.missing_submit_run_binding",
|
|
236
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
237
|
+
"docs": "docs/packages/core.md",
|
|
238
|
+
"fix": "Provide the framework-owned LLM route binding before lowering app-authored SubmitRunInput; adapters must not synthesize route defaults.",
|
|
239
|
+
"sourceFiles": ["packages/core/src/runtime-protocol/submit.ts"]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"tag": "agent_os.postgres_harness_error",
|
|
243
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
244
|
+
"docs": "docs/packages/runtime.md",
|
|
245
|
+
"fix": "Start and clean up the runtime contract Postgres harness at the test boundary, mapping Docker, psql, and config failures into the harness error channel.",
|
|
246
|
+
"sourceFiles": ["packages/runtime/test/node/postgres-harness.ts"]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"tag": "agent_os.projection_application_error",
|
|
250
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
251
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
252
|
+
"fix": "Keep projection reducers pure and make malformed facts explicit failures rather than alternate truth.",
|
|
253
|
+
"sourceFiles": ["packages/runtime/src/projection.ts"]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"tag": "agent_os.projection_definition_error",
|
|
257
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
258
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
259
|
+
"fix": "Declare projection identity and source provenance at the owning spec before the projection engine derives any view.",
|
|
260
|
+
"sourceFiles": ["packages/core/src/projection.ts"]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"tag": "agent_os.projection_reducer_returned_thenable",
|
|
264
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
265
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
266
|
+
"fix": "Move asynchronous work to the ledger writer or backend transaction hook; projection reducers must be synchronous.",
|
|
267
|
+
"sourceFiles": [
|
|
268
|
+
"packages/runtime/src/projection.ts",
|
|
269
|
+
"packages/runtime/test/projection.test.ts"
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"tag": "agent_os.projection_registry_error",
|
|
274
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
275
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
276
|
+
"fix": "Build a projection registry with unique projection kinds and valid projection definitions.",
|
|
277
|
+
"sourceFiles": ["packages/runtime/src/projection.ts"]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"tag": "agent_os.projection_run_failed",
|
|
281
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
282
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
283
|
+
"fix": "Handle projection failures as fail-closed derivation failures instead of inventing fallback output.",
|
|
284
|
+
"sourceFiles": ["packages/core/src/projection.ts"]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"tag": "agent_os.projection_sink_failure",
|
|
288
|
+
"invariants": ["invariant.docs.agent-projection"],
|
|
289
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
290
|
+
"fix": "Keep sink read and write failures at the sink boundary; projection functions must stay pure source-to-view derivations.",
|
|
291
|
+
"sourceFiles": ["packages/core/src/projection.ts"]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"tag": "agent_os.projection_wait_timed_out",
|
|
295
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
296
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
297
|
+
"fix": "Wait on the ledger-derived projection with a bounded Effect retry policy, or commit the missing ledger fact before reading the projection.",
|
|
298
|
+
"sourceFiles": [
|
|
299
|
+
"packages/runtime/src/projection.ts",
|
|
300
|
+
"packages/runtime/test/projection.test.ts"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"tag": "agent_os.provider_http_failure",
|
|
305
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
306
|
+
"docs": "docs/concepts/agent-schema.md",
|
|
307
|
+
"fix": "Handle provider transport failures at the LLM transport boundary and let submit record the runtime terminal fact.",
|
|
308
|
+
"sourceFiles": [
|
|
309
|
+
"packages/core/src/errors.ts",
|
|
310
|
+
"packages/runtime/src/failure-classification.ts"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"tag": "agent_os.provider_output_decode_error",
|
|
315
|
+
"invariants": ["invariant.algebra.single-code-source"],
|
|
316
|
+
"docs": "docs/concepts/agent-schema.md",
|
|
317
|
+
"fix": "Decode provider output through the runtime output-item schema instead of product-side fallback parsing.",
|
|
318
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"tag": "agent_os.ref_resolution_failed",
|
|
322
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
323
|
+
"docs": "docs/concepts/carriers-and-material.md",
|
|
324
|
+
"fix": "Resolve symbolic material refs at the adapter boundary and fail closed when a required ref cannot be resolved.",
|
|
325
|
+
"sourceFiles": ["packages/core/src/ref-resolver.ts"]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"tag": "agent_os.resource_insufficient",
|
|
329
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
330
|
+
"docs": "docs/packages/runtime.md",
|
|
331
|
+
"fix": "Grant or release resources through the resource ledger before attempting a reservation that would exceed available capacity.",
|
|
332
|
+
"sourceFiles": [
|
|
333
|
+
"packages/core/src/errors.ts",
|
|
334
|
+
"packages/core/test/backend-protocol/contract/runtime-backend-contract.ts",
|
|
335
|
+
"packages/runtime/test/cloudflare/resource-contract.runtime.test.ts",
|
|
336
|
+
"packages/runtime/test/cloudflare/resources-in-memory-runtime.test.ts"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"tag": "agent_os.resource_reservation_closed",
|
|
341
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
342
|
+
"docs": "docs/packages/runtime.md",
|
|
343
|
+
"fix": "Do not consume or release a reservation after its terminal resource fact has already been committed.",
|
|
344
|
+
"sourceFiles": [
|
|
345
|
+
"packages/core/src/errors.ts",
|
|
346
|
+
"packages/core/test/backend-protocol/contract/runtime-backend-contract.ts",
|
|
347
|
+
"packages/runtime/test/cloudflare/resource-contract.runtime.test.ts"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"tag": "agent_os.resource_reservation_not_found",
|
|
352
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
353
|
+
"docs": "docs/packages/runtime.md",
|
|
354
|
+
"fix": "Commit or look up the resource reservation under the exact ledger identity before consuming or releasing it.",
|
|
355
|
+
"sourceFiles": ["packages/core/src/errors.ts"]
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"tag": "agent_os.rpc_method_missing",
|
|
359
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
360
|
+
"docs": "docs/packages/runtime.md",
|
|
361
|
+
"fix": "Invoke Durable Object methods through the supported agentOS RPC helper and keep generated client method names aligned with the Durable Object class.",
|
|
362
|
+
"sourceFiles": ["packages/runtime/src/cloudflare/do-rpc.ts"]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"tag": "agent_os.rpc_untyped_error",
|
|
366
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
367
|
+
"docs": "docs/packages/runtime.md",
|
|
368
|
+
"fix": "Throw tagged domain errors at supported Durable Object RPC boundaries; untyped failures are serialized as RPC boundary errors without fabricated domain fields.",
|
|
369
|
+
"sourceFiles": [
|
|
370
|
+
"packages/runtime/src/cloudflare/do-rpc.ts",
|
|
371
|
+
"packages/runtime/test/cloudflare/do-rpc.test.ts"
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"tag": "agent_os.runtime_ledger_transition_rejected",
|
|
376
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
377
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
378
|
+
"fix": "Commit runtime events in an order that satisfies runtime transition laws; referenced runtime source events must already exist and match the expected kind and turn.",
|
|
379
|
+
"sourceFiles": ["packages/core/src/runtime-protocol/runtime-events.ts"]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"tag": "agent_os.runtime_storage_error",
|
|
383
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
384
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
385
|
+
"fix": "Map backend storage failures into the runtime-owned storage error at the runtime service boundary; keep backend-specific storage errors inside backend adapters.",
|
|
386
|
+
"sourceFiles": [
|
|
387
|
+
"packages/core/test/backend-protocol/contract/runtime-backend-contract.ts",
|
|
388
|
+
"packages/runtime/src/ledger.ts",
|
|
389
|
+
"packages/runtime/test/cloudflare/admission/attempt-structured.runtime.test.ts",
|
|
390
|
+
"packages/runtime/test/cloudflare/materialized-projections.runtime.test.ts",
|
|
391
|
+
"packages/runtime/test/cloudflare/quota-contract.runtime.test.ts",
|
|
392
|
+
"packages/runtime/test/in-memory/runtime-tags.test.ts"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"tag": "agent_os.scope_missing",
|
|
397
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
398
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
399
|
+
"fix": "Resolve the structured scopeRef before runtime or backend operations; do not fall back to an implicit scope.",
|
|
400
|
+
"sourceFiles": [
|
|
401
|
+
"packages/core/src/errors.ts",
|
|
402
|
+
"packages/runtime/test/cloudflare/emit-event-contract.runtime.test.ts"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"tag": "agent_os.sql_error",
|
|
407
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
408
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
409
|
+
"fix": "Keep SQL writes inside the backend-owned ledger commit primitive and return typed SqlError at the backend boundary.",
|
|
410
|
+
"sourceFiles": [
|
|
411
|
+
"packages/core/src/errors.ts",
|
|
412
|
+
"packages/runtime/test/in-memory/runtime-tags.test.ts",
|
|
413
|
+
"packages/runtime/test/node/backend-protocol-contract.runtime.test.ts"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"tag": "agent_os.stream_identity_error",
|
|
418
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
419
|
+
"docs": "docs/packages/runtime.md",
|
|
420
|
+
"fix": "Stream only with an exact scopeRef and effectAuthorityRef identity and reject malformed stream identity input.",
|
|
421
|
+
"sourceFiles": ["packages/runtime/src/cloudflare/agent-do.ts"]
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"tag": "agent_os.trigger_factory_error",
|
|
425
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
426
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
427
|
+
"fix": "Keep durable trigger factory output synchronous, typed, and registered before scheduling or claiming trigger work.",
|
|
428
|
+
"sourceFiles": [
|
|
429
|
+
"packages/core/src/errors.ts",
|
|
430
|
+
"packages/runtime/test/cloudflare/trigger-facade.runtime.test.ts"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"tag": "agent_os.unregistered_durable_trigger_kind",
|
|
435
|
+
"invariants": ["invariant.ledger.single-commit-source"],
|
|
436
|
+
"docs": "docs/concepts/durable-process-algebra.md",
|
|
437
|
+
"fix": "Register the durable trigger kind before scheduling, claiming, or dispatching due work.",
|
|
438
|
+
"sourceFiles": [
|
|
439
|
+
"packages/core/src/errors.ts",
|
|
440
|
+
"packages/runtime/test/cloudflare/trigger-facade.runtime.test.ts"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"tag": "agent_os.unregistered_projection_kind",
|
|
445
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
446
|
+
"docs": "docs/concepts/materialized-projections.md",
|
|
447
|
+
"fix": "Register the projection definition before reading, status-checking, or rebuilding that projection kind.",
|
|
448
|
+
"sourceFiles": ["packages/runtime/src/projection.ts"]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"tag": "agent_os.unsupported_scope_ref",
|
|
452
|
+
"invariants": ["invariant.d10.truth-identity"],
|
|
453
|
+
"docs": "docs/concepts/durable-truth.md",
|
|
454
|
+
"fix": "Use a backend-supported scopeRef kind or add an explicit backend adapter branch for that scope kind.",
|
|
455
|
+
"sourceFiles": [
|
|
456
|
+
"packages/core/src/errors.ts",
|
|
457
|
+
"packages/runtime/src/cloudflare/agent-do.ts",
|
|
458
|
+
"packages/runtime/test/cloudflare/dispatch-contract.runtime.test.ts"
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"tag": "agent_os.witness_port_rejected",
|
|
463
|
+
"invariants": ["invariant.boundary.runtime-validation-external-only"],
|
|
464
|
+
"docs": "docs/boundary-contract.md",
|
|
465
|
+
"fix": "Resolve provider witness state into a symbolic IndeterminateRef only; settle and commit it through the owning SettlementContract and BoundaryEvents path.",
|
|
466
|
+
"sourceFiles": ["packages/runtime/src/witness-port.ts"]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"tag": "agent_os.workspace_job_candidate_missing",
|
|
470
|
+
"invariants": ["invariant.workspace-job.verified-terminal"],
|
|
471
|
+
"docs": "docs/packages/runtime.md",
|
|
472
|
+
"fix": "Treat a missing candidate as a workspace_job.failed terminal fact before finalization or verification can produce a deliverable.",
|
|
473
|
+
"sourceFiles": ["packages/runtime/src/workspace-job.ts"]
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"tag": "agent_os.workspace_job_data_plane_failed",
|
|
477
|
+
"invariants": ["invariant.workspace-job.verified-terminal"],
|
|
478
|
+
"docs": "docs/packages/runtime.md",
|
|
479
|
+
"fix": "Keep seed and terminal build/write/read failures inside the workspace job data-plane boundary; retryable witness gaps settle through workspace_job.reconcile_required while non-retryable finalization defects settle through workspace_job.failed.",
|
|
480
|
+
"sourceFiles": ["packages/runtime/src/workspace-job.ts"]
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"tag": "agent_os.workspace_job_run_id_mismatch",
|
|
484
|
+
"invariants": ["invariant.workspace-job.verified-terminal"],
|
|
485
|
+
"docs": "docs/packages/runtime.md",
|
|
486
|
+
"fix": "Reject terminal builder output whose run id does not match the requested workspace job before verifier checks can mark it deliverable.",
|
|
487
|
+
"sourceFiles": ["packages/runtime/src/workspace-job.ts"]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"tag": "agent_os.workspace_job_verifier_failed",
|
|
491
|
+
"invariants": ["invariant.workspace-job.verified-terminal"],
|
|
492
|
+
"docs": "docs/packages/runtime.md",
|
|
493
|
+
"fix": "Map verifier exceptions to workspace_job.reconcile_required; reserve verifier_rejected for successful product-domain verifier verdicts.",
|
|
494
|
+
"sourceFiles": ["packages/runtime/src/workspace-job.ts"]
|
|
495
|
+
}
|
|
496
|
+
]
|
|
497
|
+
}
|