How oxdeai/oxdeai works
OxDeAI is an execution-authorization protocol: an agent proposes an action, the core evaluates intent, state and policy, and an enforcement boundary verifies authorization before allowing execution. The map includes the SDK, framework adapters, replay and audit, independent artifact verification, delegation, Sift receipt handling, and conformance. Edges use README statements or shown imports/calls; unsampled subsystems are represented where the tree or README establishes them, without guessing their internal wiring.
Main entry points: PolicyEngine.ts Policy Engine · guard.ts Guard · verifyAuthorization.ts Signature Verification · client.ts SDK Client
Components 21
Decision Core
- Policy Engine
packages/core/src/policy/PolicyEngine.ts - Intent Model
packages/core/src/types/intent.ts - Canonical Hashes
packages/core/src/crypto/hashes.ts - Audit Log
packages/core/src/audit/AuditLog.ts - Replay Engine
packages/core/src/replay/ReplayEngine.ts
Enforcement Boundary
- Guard
packages/guard/src/guard.ts - PEP Gateway
packages/guard/src/gateway.ts - Replay Store
packages/guard/src/replayStore.ts - Boundary Events
packages/guard/src/boundaryEvent.ts
Artifacts and Verification
- Authorization Artifact
packages/core/src/types/authorization.ts - Signature Verification
packages/core/src/verification/verifyAuthorization.ts - Snapshots and Envelopes
packages/core/src/snapshot/CanonicalState.ts - Delegation
packages/core/src/delegation/createDelegation.ts
SDK and Integrations
- SDK Client
packages/sdk/src/client.ts - CLI
packages/cli/src/main.ts - Agent Adapters
packages/openclaw/src/adapter.ts - Sift Receipt Flow
packages/sift/src/receiptToAuthorization.ts
Conformance
- Conformance Suite
packages/conformance/src/validate.ts - Trusted-Time Checks
packages/conformance/src/trustedTimeConformance.ts
Other components
- AI Agent
- Protected Executor
Connections 26
- AI Agent → Policy Engine: proposes action
README.md - Policy Engine → Intent Model: evaluates intent
packages/core/src/policy/PolicyEngine.ts - Policy Engine → Canonical Hashes: hashes inputs
packages/core/src/policy/PolicyEngine.ts - Policy Engine → Audit Log: records decisions
packages/core/src/policy/PolicyEngine.ts - Policy Engine → Authorization Artifact: issues on allow
README.md - SDK Client → Policy Engine: evaluates action
packages/sdk/src/client.ts - SDK Client → Audit Log: appends events
packages/sdk/src/client.ts - SDK Client → Snapshots and Envelopes: verifies artifacts
packages/sdk/src/client.ts - Policy Engine → Replay Engine: replays decisions
packages/core/src/replay/ReplayEngine.ts - Replay Engine → Policy Engine: evaluates intents
packages/core/src/replay/ReplayEngine.ts - Replay Engine → Audit Log: verifies events
packages/core/src/replay/ReplayEngine.ts - Guard → PEP Gateway: enforces calls
README.md - PEP Gateway → Guard: checks authorization
README.md - Guard → Signature Verification: verifies authorization
packages/guard/src/guard.ts - Guard → Replay Store: checks replay
packages/guard/src/guard.ts - Guard → Boundary Events: emits events
packages/guard/src/guard.ts - PEP Gateway → Protected Executor: executes allowed call
README.md - Signature Verification → Canonical Hashes: canonicalizes payload
packages/core/src/verification/verifyAuthorization.ts - Signature Verification → Authorization Artifact: verifies artifact
packages/core/src/verification/verifyAuthorization.ts - CLI → Snapshots and Envelopes: inspects envelope
packages/cli/src/main.ts - CLI → Signature Verification: verifies envelope
packages/cli/src/main.ts - Agent Adapters → Guard: adapts framework
packages/openclaw/src/adapter.ts - Sift Receipt Flow → Canonical Hashes: canonicalizes bindings
packages/sift/src/receiptToAuthorization.ts - Conformance Suite → Trusted-Time Checks: runs checks
packages/conformance/src/validate.ts - Conformance Suite → Policy Engine: validates protocol
packages/conformance/src/validate.ts - Delegation → Authorization Artifact: binds authority