Repository navigation
feat(ocm): support cross-user command and config transport - #125
Conversation
Route direct and nested OCM calls through structured argv with explicit candidate cwd and environment. Keep fixed state writers and bounded config reads behind the same transport while preserving native operation. Block configured scenario execution before provisioning until the dependent diagnostic collection unit is present. This foundation does not yet provide isolated benchmark execution. Punchcard-Session: coral-orchard-orchard-d4
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 3:29 PM ET / 19:29 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds configurable cross-user OCM command execution and bounded configuration reads, isolates candidate credentials and runtime imports, and blocks scenarios pending diagnostic collection integration. Merge readiness✅ Ready for maintainer review This remains useful work absent from main and v0.1.5. Both earlier security findings are addressed, and no remaining blocking defect was identified within the deliberately limited transport scope. Priority: P2 Review scores
Verification
How this fits togetherKova validates OpenClaw runtimes using OCM to manage environments and execute commands. This transport carries operator-selected commands into a candidate user's environment and returns bounded configuration data to Kova's Gateway clients. flowchart TD
A[Operator transport configuration] --> B[Kova command dispatcher]
B --> C[Identity switch and clean environment]
C --> D[Candidate OCM]
D --> E[Bounded configuration export]
E --> F[Gateway client with candidate credentials]
A --> G[Scenario admission gate]
G --> H[Reject until collection integration]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain the opt-in transport and early scenario guard, with full isolated execution enabled only by the separately validated collection and outer-runner layers. Do we have a high-confidence way to reproduce the issue? Not applicable as an existing-behavior bug: this adds an opt-in transport mode. The prior credential and import defects have focused production-entrypoint regression coverage. Is this the best way to solve the issue? Yes, for this foundation: centralized argv transport and bounded candidate-side reads avoid competing execution paths, while native credential precedence and the scenario admission guard preserve the stated scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1ec7a50e2bbf. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Punchcard-Session: coral-orchard-orchard-d4
What Problem This Solves
Cross-user OCM execution must not fall back to evaluator credentials or import
candidate code under evaluator authority.
Why This Change Was Made
The base provides structured
KOVA_OCM_TRANSPORT_JSONinvocation withprefix,binary,envand optionalcwd, applied after the identity switch.Credential discovery reads only bounded candidate-side configuration, with no
evaluator-side fallback. Transport mode rejects candidate imports before
execution while preserving native precedence.
Base-only cross-user scenarios still reject before planning or side effects
until collection integration is present.
User Impact
Unset transport preserves native behavior. Collection remains a separate unit:
#123, using bounded export from
openclaw/ocm#171.
The consumer is openclaw/openclaw#127240.
Evidence
22e692d7360fc301656be0d6c37cb750ebc1b92c.9 Linux-only skips.
passed Ubuntu/macOS checks and install smoke. Joint Linux cross-UID, sudo cleanup and
cloud proof remain unrun; no previous-head CI result is claimed.
Punchcard-Session: coral-orchard-orchard-d4