Repository navigation
fix(performance): collect diagnostics across the OCM transport - #123
Conversation
Route OCM commands through a configured candidate-principal transport while keeping evaluation, mock-provider ownership, and retained reports on the measurement principal. Bound diagnostic exports, snapshot active artifacts, and join owned export cleanup before returning. Preserve baseline and candidate instrumentation, support the selected release scenarios, and cover nested calls, mock auth, timeout cleanup, and teardown ordering. Native Linux cross-UID and sudo behavior remain draft proof gaps. 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 real behavior proof before merge. Reviewed September 11, 2026, 6:03 AM ET / 10:03 UTC (Revision 12). ClawSweeper reviewWhat this changesKova gains bounded diagnostic exports, active-file snapshots, and shutdown-aware profile retention for four OpenClaw performance scenarios run through OCM across users. Merge readiness⛔ Blocked before merge - 6 items remain This remains useful work beyond the merged transport foundation. The earlier shutdown defect is addressed, and no additional concrete correctness defect was established; the required cross-principal boundary evidence remains outstanding. Priority: P2 Review scores
Verification
How this fits togetherKova measures OpenClaw runtimes managed by OCM. This integration moves candidate-generated diagnostics into measurement-owned storage before existing collectors and evaluators consume them. flowchart LR
A[Performance scenario] --> B[OCM candidate runtime]
B --> C[Candidate diagnostic staging]
C --> D[Bounded export and validation]
D --> E[Measurement-owned artifacts]
E --> F[Collectors and evaluator]
B --> G[Observe shutdown]
G --> D
G --> H[Environment cleanup]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No concrete authorization bypass was established, but the introduced cross-principal storage boundary still requires final-effect proof. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the bounded transport design and qualify it with compatible OCM, demonstrated measurement-storage isolation, and confirmed candidate-UID cleanup while preserving native operation. Do we have a high-confidence way to reproduce the issue? Not applicable as an existing-behavior bug: main intentionally blocks this mode pending integration. Source and fixture coverage establish the proposed paths, but this review did not execute them. Is this the best way to solve the issue? Yes, provisionally: extending the landed transport with bounded exports and explicit shutdown observation is cohesive; operating-system boundary qualification is still needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f3bcd5354e59. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Race the combined exporter-exit and copy wait against an independently rejecting absolute deadline. Preserve stream cancellation, bounded launcher and file-pipeline settlement, and the previous complete destination. Cover a launcher that emits bytes, closes stdout, and remains alive with a failure-only outer watchdog and owned-process cleanup. Punchcard-Session: coral-orchard-orchard-d4
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
Merge the reviewed command and config transport foundation beneath the existing diagnostic collection unit. Preserve both branch histories and the complete ca0705a tree, including the closed-stdout deadline repair. The dependent unit enables the four supported performance scenarios with candidate-owned staging, bounded exports, and stop-export-destroy cleanup. Focused lifecycle and deadline tests passed. Native Linux cross-UID and sudo behavior remain explicit proof gaps. Punchcard-Session: coral-orchard-orchard-d4
Punchcard-Session: coral-orchard-orchard-d4
Propagate the reviewed command transport repair and preserve candidate artifacts when shutdown cannot be confirmed. Punchcard-Session: coral-orchard-orchard-d4
Merge captured main while preserving the reviewed diagnostic transport delta and current CPU accounting. Punchcard-Session: coral-orchard-orchard-d4
What Problem This Solves
Collectors need bounded diagnostics without mistaking accepted stop requests for shutdown.
Why This Change Was Made
Preserves bounded exports, closed active snapshots, exit-flushed profiles and
native/mock-provider lifecycles. One shared deadline checks exact-environment
shutdown; unknown shutdown withholds final export/destruction, preserving
original failure and unrelated cleanup.
Base:
main, including landed #125.Export dependency: openclaw/ocm#171, landed as
1fc114e4.
User Impact
Kova provides operator-configured argv/export transport, not UID, permissions,
sudo or immutable-input provisioning. Caller-selected measurement destinations
require noncandidate-writable ancestors. OCM shutdown confirmation orders
collection, not UID extinction.
Before openclaw/openclaw#127240 activates, its outer
harness must prove privileged-UID quiescence and candidate-write denials.
This integrated proof remains unpassed and is required before activation.
Evidence
d41d871ec325fc7707b34857c4b10fd756586359; 13 files, +850/-113,patch-identical restack.
86bbc79f5bd38f6121ddc6968d25d7f327f7c67aproof: six intended red,12 lifecycle/31 boundary passes; closed-stdout destination preserved,
zero temporary files; scoped review zero P0-P2.
and lifecycle proof qualifies transport, not OS confinement.
Ubuntu/macOS checks and install smoke passed; CodeQL passed.
Punchcard-Session: coral-orchard-orchard-d4