feat(runtime): scope live validation by supervised node - #1250
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Cloud reliability owner: user explicitly requested resolving and merging the outstanding Runtime PRs. I am taking conflict integration of this existing PR, preserving its validation-node contract and current main continuity/auth/tracing. #1251 is being integrated separately by my lane; I will not touch your original worktree or force-push. Please flag an active competing merge or source change. Final release keeps the newest behavior and coherent version metadata. |
|
Conflict integration pushed as b52095f, preserving current main690c5158 and public preflight7b2df3aa. Runtime0.231.1/Bench0.13.2/Sandbox0.40.2/Knowledge17.0.2 remain coherent. Local combined proof passed180 tests across provider-validator-context, provider-executor-composition, retained owner recovery, coordination HTTP, and environment provider; source/examples typecheck, build, API record, lint, docs freshness, version check passed. Generated documentation then regenerated and normal hooks passed. During review I removed an accidental restoration of the old abort listener so #1255 cleanup remains. Logs: /tmp/runtime-cloud-owner-0435-combined-*.log. Existing PR only; no source changes to prior owner worktree. Final cloud/release proof remains pending. |
Recursive provider managers share the same backend, so a live validator could not distinguish the root product contract from a nested director or worker contract. Pass an immutable execution-node snapshot into
ValidationCtx.node, including Runtime-owned depth (0for the root), while the environment is still available.Populate depth for scope owners and spawned executors without changing recovery records. Standalone calls may omit node context. Add recursive HTTP-MCP coverage proving root → director → leaf depths, root-only file checks, distinct node/attempt identities, and validation before teardown. Prepare Runtime 0.230.0 with generated API documentation and fixtures.
Validation:
--maxWorkers=2, 634.88 seconds; tree69719261adae9a489374ea021704066e170b80be).The first unrestricted local suite ran beside another full suite and hit three timing limits. All 52 tests in those three suites passed with bounded concurrency before the complete combined run passed. No production behavior was changed to accommodate those failures.