Add managed worlds control plane: telemetry, import, scenarios, captures - #7
Merged
Merged
Conversation
…, scenarios, captures Extends the runtime-owned worlds control plane (ddlog-worlds) so an operator view can be its front end: - Activity telemetry: worlds run the native child with full observer detail and log rotation; a per-generation tailer thread ingests schedule, message, progress and differential events into a shared telemetry state; inspection reports an `activity` object with lag and rotation counts, and `available` means topology-complete. - Instance operations: `relations`, typed bounded `query_rows`, `program_source`; `instance_info` and `apply_changes` carry the committed revision; status carries a cheap top-level `revision`. - Registry import preserving processor ids and versions from another registry directory (plain JSON reads, dependency closure, validate-all-then-write, dry run); libraries carry their registered definitions with names; the `definitions` listing covers every version and reports compositions. - World purpose (instance/test), summary inventories, build log tail, `started_at_unix_ms`, truthful `persistence: not_configured`, `runtime_info` from build.rs. - Scenarios per definition version and an asynchronous `test` verb that runs them on the world's start thread and records results in status. - Retained compiled topology per definition version (`capture_get`). - Authored groups resolved at snapshot time by `member_match` (scope name or debug pattern) instead of unstable native operator ids. - Star phase instrumentation (large-star, small-star, minimum-label named regions) installed by scripts/install-observer.py at build time, keeping registered content hashes unchanged; build-ddlog.sh fails closed when an explicit Cargo lock cannot build a star program. Tests: fake-driver world tests, a stdio protocol test for ddlog-worlds, a fixture hash stability test, native acceptance covering activity, relations, paged reads, captures, the test verb and phase scopes. Docs in docs/worlds.md and docs/inspection.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Managed worlds control plane extensions so the Turbo observer can act as the operator view over this runtime. Contract and rationale:
observer/CONTROL_PLANE.mdin VangelisTech/turbo-repo.Runtime additions
activityobject in inspection (available= topology-complete, lag reported separately).relations, typed boundedquery_rows,program_source; revisions oninstance_info,apply_changesand status.importpreserving ids/versions; named definitions and library associations;definitionslists every version with correct kinds.runtime_info.testverb; retained compiled topology (capture_get).member_matchat snapshot time.Verification
cargo fmt --check,cargo clippy --features mcp -D warnings,cargo test --locked --workspace: green.--all-featuresclippy needs rustc 1.95 (iceberg crates), passes withcargo +1.95.0.tests/worlds_native.rs, ignored by default) run with the pinned DDlog toolchain: activity totals, relations, paged reads, capture, test verb, phase scopes and member_match resolution.🤖 Generated with Claude Code