Skip to content

feat(runtime): add worker identity types and future sandbox architecture#17

Merged
Abdulmuiz44 merged 2 commits into
mainfrom
feat/worker-identity-types
May 28, 2026
Merged

feat(runtime): add worker identity types and future sandbox architecture#17
Abdulmuiz44 merged 2 commits into
mainfrom
feat/worker-identity-types

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

@Abdulmuiz44 Abdulmuiz44 commented May 28, 2026

  • Adds shared remote worker identity, status, trust, pairing, capability, and health types to codra-runtime.
  • Adds tests for worker identity, trust levels, worker status, pairing status, stored peers, and worker health serialization.
  • Documents future Cua-inspired ComputerUseAgent and SandboxAgent runtime direction.
  • Adds architecture notes for GUI control, screenshots, replayable task traces, sandbox workers, browser control, and mobile device support.
  • No Noise XX, mDNS, pairing handshake, remote execution, sandbox runtime, or desktop UI implementation is included.
  • Validation passed:
    • cargo fmt
    • cargo check -p codra-runtime
    • cargo test -p codra-runtime
    • cargo check -p codra-core
    • cargo test -p codra-core

root and others added 2 commits May 27, 2026 18:06
Add foundational types for the Codra remote worker architecture to
crates/codra-runtime/src/types.rs:

- WorkerId, WorkerIdentity — unique worker identification
- WorkerStatus — offline/idle/busy/degraded
- TrustLevel — untrusted/limited/standard/elevated/full
- PairingStatus — pending/approved/rejected/expired/revoked
- StoredPeer — worker-side controller record
- StoredPairing — controller-side worker record
- WorkerCapabilities — feature flags advertised via health endpoint
- WorkerHealth — full health response payload matching the daemon
  endpoint shape

All types are Serialize+Deserialize with consistent #[serde(rename)]
snake_case wire format matching existing codra-runtime conventions.

Tests: 6 new tests covering serialization round-trips and wire values
for all worker types.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
- Adds future ComputerUseAgent and SandboxAgent runtime architecture notes.
- Documents Cua-inspired sandbox/computer-use direction for Codra.
- Adds capability flags for GUI control, screenshots, replay, sandboxing, browser control, and mobile device support.
- Defines future task trace and replay concepts.
- Explains how sandbox workers fit into Codra Desktop, CLI/TUI, daemon, Android/Telegram control layer, and runtime adapters.
- Documentation only. No runtime implementation.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Abdulmuiz44 Abdulmuiz44 merged commit 5c2a275 into main May 28, 2026
1 check passed
@Abdulmuiz44 Abdulmuiz44 changed the title docs: add future sandbox and computer-use runtime architecture feat(runtime): add worker identity types and future sandbox architecture May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant