@tangle-network/agent-runtime 0.5.2 → 0.5.3
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/docs/product-runtime-kernel.md +49 -17
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Product Runtime Kernel
|
|
2
2
|
|
|
3
|
-
Status:
|
|
4
|
-
documented, and hardened
|
|
3
|
+
Status: complete. Implemented in `@tangle-network/agent-runtime@0.5.0`;
|
|
4
|
+
validated, documented, and hardened through `0.5.2`.
|
|
5
5
|
|
|
6
|
-
This document
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
This document is the completion record for the production runtime kernel: what
|
|
7
|
+
it is for, what is done, how it was validated, what is intentionally outside the
|
|
8
|
+
public package, and how product repos should adopt it.
|
|
9
9
|
|
|
10
10
|
## Purpose
|
|
11
11
|
|
|
@@ -55,6 +55,8 @@ The kernel is complete when these are true:
|
|
|
55
55
|
All kernel-side criteria are satisfied in `0.5.2`. Durable storage and UI
|
|
56
56
|
rollout are product adoption tasks, not core package blockers.
|
|
57
57
|
|
|
58
|
+
Completion verdict: passed. There are no open kernel blockers in this document.
|
|
59
|
+
|
|
58
60
|
## Completed API Surface
|
|
59
61
|
|
|
60
62
|
### Execution
|
|
@@ -193,6 +195,35 @@ Release verification:
|
|
|
193
195
|
| Durable persistence | Contract complete, product-owned | `RuntimeSessionStore` interface exists; product repos must provide D1/Postgres/Redis implementations. |
|
|
194
196
|
| UI rollout | Product-owned | Runtime emits stable events; product UIs decide rendering. |
|
|
195
197
|
|
|
198
|
+
## Completion Boundaries
|
|
199
|
+
|
|
200
|
+
The package is done when the reusable contract is complete. The package is not
|
|
201
|
+
responsible for product-specific state, credentials, databases, or UX. Those are
|
|
202
|
+
adoption responsibilities.
|
|
203
|
+
|
|
204
|
+
### Complete in `agent-runtime`
|
|
205
|
+
|
|
206
|
+
- Public task and stream contracts.
|
|
207
|
+
- Readiness-gated streamed execution.
|
|
208
|
+
- Session create/resume contract.
|
|
209
|
+
- Backend abstraction and adapter factories.
|
|
210
|
+
- Safe stream sanitization.
|
|
211
|
+
- SSE encoding.
|
|
212
|
+
- Failure normalization and backend stop hook.
|
|
213
|
+
- Unit tests for the contract and shipped adapters.
|
|
214
|
+
- NPM package publication.
|
|
215
|
+
|
|
216
|
+
### Not Part of the Public Kernel
|
|
217
|
+
|
|
218
|
+
- Product database migrations.
|
|
219
|
+
- Product-specific session persistence.
|
|
220
|
+
- Product-specific auth, secrets, billing, and rate limits.
|
|
221
|
+
- UI components for resume/readiness.
|
|
222
|
+
- Domain-specific knowledge requirements and tool policies.
|
|
223
|
+
- Concrete private SDK client construction.
|
|
224
|
+
|
|
225
|
+
These are not deferred kernel tasks. They are downstream integration tasks.
|
|
226
|
+
|
|
196
227
|
## Critique
|
|
197
228
|
|
|
198
229
|
The runtime kernel is now materially useful, but it is not magic. The most
|
|
@@ -275,18 +306,19 @@ Validation found and fixed two issues before marking this complete:
|
|
|
275
306
|
|
|
276
307
|
The doc now matches shipped behavior.
|
|
277
308
|
|
|
278
|
-
##
|
|
309
|
+
## Downstream Rollout Plan
|
|
279
310
|
|
|
280
|
-
This is downstream work, not missing kernel work:
|
|
311
|
+
This is downstream adoption work, not missing kernel work:
|
|
281
312
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
313
|
+
1. Add durable `RuntimeSessionStore` implementations in product repos.
|
|
314
|
+
2. Convert CLI bridge routes/harnesses to `createCliBridgeBackend`.
|
|
315
|
+
3. Convert simple TCloud chat routes to `createOpenAICompatibleBackend` where
|
|
316
|
+
useful.
|
|
317
|
+
4. Store runtime stream events in product trace/run-record tables.
|
|
318
|
+
5. Add UI affordances for session resume/continuation and readiness blockers.
|
|
319
|
+
6. Extend failure classifiers to consume `RuntimeStreamEvent` evidence directly.
|
|
289
320
|
|
|
290
|
-
The kernel is complete
|
|
291
|
-
removing bespoke product stream loops and using the same runtime contract
|
|
292
|
-
|
|
321
|
+
The kernel is complete and ready for broad adoption. The next value comes from
|
|
322
|
+
removing bespoke product stream loops and using the same runtime contract across
|
|
323
|
+
product routes, coding harnesses, CLI bridge runs, evals, and optimization
|
|
324
|
+
reports.
|
package/package.json
CHANGED