Repository navigation
feat: add managed OpenTelemetry diagnostics - #7
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e5803121a0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| enabled: | ||
| diagnosticsAllowed && | ||
| diagnosticsEntry.enabled === true && | ||
| diagnostics.enabled === true && | ||
| diagnosticsOtel.enabled === true && |
There was a problem hiding this comment.
Reconcile drift that enables telemetry content capture
When a child has OTEL enabled but diagnostics.otel.captureContent is later changed on disk to capture prompts, responses, tool inputs, etc., this readback still returns the same managed state because it only checks the top-level OTEL gates/endpoints and never folds the captureContent flags into managedHash. In that scenario the parent reports the policy as converged and will not reapply the managed config that disables content capture, which breaks the metadata-only guarantee for managed diagnostics.
Useful? React with 👍 / 👎.
Summary
@openclaw/diagnostics-otelplugin and recursively verify its offline runtime dependency graphInspired by the OpenTelemetry integration in
redhat-et/claw-operator, adapted to Crabhelm's managed-spec and immutable-appliance model.Verification
pnpm check— 110 tests, TypeScript, Worker typecheck, Wrangler dry-runRollout prerequisite
Draft until a reviewed appliance is built and uploaded, then
APPLIANCE_ARCHIVE_SHA256andAPPLIANCE_MANIFEST_SHA256are updated to its verified digests. Existing default-policy claws remain compatible with the legacy readiness marker. OTel or non-default logging fails closed withpolicy-upgrade-requireduntil the policy-aware appliance is pinned.