Skip to content

gateway config.patch blocks diagnostics.cacheTrace.* even with content capture disabled #72883

Closed as not planned

Description

@jessewunderlich

Summary

gateway.config.patch (and the underlying protected-paths list) refuses to set diagnostics.cacheTrace.enabled even when the patch also explicitly disables all sensitive content capture (includeMessages: false, includePrompt: false, includeSystem: false).

The schema help text for diagnostics.cacheTrace says:

Enable this temporarily for debugging and disable afterward to reduce sensitive log footprint.

That guidance implies the protection rationale is the sensitive payload capture, not the trace itself. But protection is enforced uniformly across the entire subtree, so users have no way to enable cache-decision observability via the supported tool path even with a safe (decision/stage-only) configuration.

Reproduction

Tested on 2026.4.24:

gateway config.patch '{"diagnostics":{"cacheTrace":{"enabled":true,"includeMessages":false,"includePrompt":false,"includeSystem":false}}}'
→ "gateway config.patch cannot change protected config paths: diagnostics.cacheTrace.enabled, diagnostics.cacheTrace.includeMessages, diagnostics.cacheTrace.includePrompt, diagnostics.cacheTrace.includeSystem"

Suggested fix

Either:

  1. Allow diagnostics.cacheTrace.enabled via config.patch when the same patch sets all three include* flags to false, or
  2. Permit diagnostics.cacheTrace.enabled unconditionally and keep only the include* flags as protected (since those are the ones with sensitive-data implications), or
  3. Add a dedicated gateway diagnostics cache-trace enable --safe CLI/tool action that enables tracing with content capture forced off.

Why it matters

Without this, operators who want real cache hit/miss data to validate their agents.defaults.models.*.params.cacheRetention settings have no path that doesn't require a direct config-file edit + restart, which bypasses the gateway's safety surface entirely.

Environment

  • OpenClaw 2026.4.24 (cbcfdf6)
  • Darwin 25.3.0 / arm64 / node v25.9.0

Activity

  1. clawsweeper commented on Apr 30, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 30, 2026, 12:45 AM ET / 04:45 UTC.

    Summary
    Codex review failed: codex execution failed.

    Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Include the exact command, prompt, or workflow that triggered it.
    • Add expected vs actual behavior.

    Next step
    Review did not complete, so no work-lane recommendation was made.

    Review details

    Best possible solution:

    Retry the Codex review after fixing the execution failure.

    Do we have a high-confidence way to reproduce the issue?

    Unclear. The review failed before ClawSweeper could establish a reproduction path.

    Is this the best way to solve the issue?

    Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.

    AGENTS.md: unclear because the file could not be read completely.

    Remaining risk / open question:

    • No close action taken because the review did not complete.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against f848a6f7f74b.

    Label changes

    Label changes:

    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:needs-info: Current issue advisory state selects this label.
    Evidence reviewed

    What I checked:

    • failure reason: codex execution failed.
    • codex failure detail: Codex review failed for this issue with exit 1.
    • codex stdout: Per-item Codex failure; continuing with the rest of the shard.

    Likely related people:

    • unknown: Codex failed before it could trace repository history. (role: review did not complete; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. openclaw-barnacle commented on May 30, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  3. openclaw-barnacle commented on Jun 14, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  4. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions