Basically my USER.md became untrusted somehow and nothing seems to change it back to trusted. Including editing it and saving in webUI. Here is a more detailed description from my agent:
Running OpenClaw 2026.11.10, Ubuntu, Node 26.13.1.
openclaw doctor reports:
- Agent "******": USER.md is excluded from automatic context: its memory provenance is untrusted.
Last recorded tracked write: 2026-11-26T09:32:21.050Z, session agent:sova:telegram:direct:6087208015.
Location: ~/.openclaw/workspace/USER.md
The file itself is fine — valid content, correct permissions, I can read and edit it by hand.
I've read docs/concepts/memory-provenance, and I understand the documented behaviour: one bad write (non-owner turn, network-tainted turn, or a hash mismatch after a shell edit) records untrusted, and "once a file is untrusted, later tracked writes keep it untrusted and only refresh the time, session, and hash." So my repeated rewrites through the agent's write tool behaving exactly that way is expected, and I've stopped doing that.
What the docs don't seem to cover is the way out. The doctor check explicitly says "This check reports the exclusion only; it does not change provenance", and I couldn't find a CLI command that resets or clears a provenance record. In the bundled code there is an exported clearMemoryArtifactProvenance, but no obvious entry point from openclaw.
Three questions:
1. What is the supported way to restore trusted for a file that is already untrusted?
Is it delete-and-recreate, a config toggle, a specific command, or is the file intended to stay excluded permanently? If it's permanent by design, it would help to say so in that doc section — right now the page reads as if quarantine is recoverable.
2. Why does the write from a DM turn land as untrusted in the first place?
commands.ownerAllowFrom contains telegram:<my numeric id>, and that ID is also in channels.telegram.allowFrom (dmPolicy: "pairing"). The doc says an untrusted record happens when "the turn is not an owner turn". From code in agent-tools.async-*.mjs:
resolveOriginClass: () => (senderIsOwner === false || isTurnTainted?.() === true) ? 'untrusted' : 'agent'
So either senderIsOwner resolves false for DM turns from an owner-allowlisted ID, or the turn is being flagged as tainted. Related signal: doctor also reports that several cron jobs created from this same DM have "the creator is not currently an owner", and that they keep legacy sender-policy resolution. That makes me suspect the two are the same root cause. Is there a config that makes senderIsOwner resolve true for DM turns, so that writes from chat count as owner turns?
3. Does the Control UI file editor write provenance?
When I saved USER.md from the Control UI while signed in as the owner, the file changed on disk but the provenance record timestamp did not move — it stayed at the last agent-tool write. If the dashboard save is supposed to go through the provenance observer (and so be able to record agent), that's a separate gap worth knowing about. If it's intentionally outside the observer, then option 1 becomes more important.
Context that may matter: two Telegram bot accounts are configured (channels.telegram.accounts.default and channels.telegram.accounts.invoice-wizard), and two agents (sova, invoice-wizard). If senderIsOwner resolves per-account and the DM arrives on one account while the owner list is matched against another, that would explain it.
Happy to run diagnostics or share doctor --json output. Thanks.