Skip to content

feat(setup): rename Crestodian to OpenClaw system agent - #107320

Merged
steipete merged 10 commits into
mainfrom
feat/openclaw-system-agent-rename-107237
Jul 14, 2026
Merged

steipete merged 10 commits into
mainfrom
feat/openclaw-system-agent-rename-107237

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Phase 0 of #107237. "Crestodian" doesn't communicate what it is — users don't get that it's the system itself they're talking to. Before building agent→system-agent delegation (later phases of #107237), the name and entry points move to OpenClaw: users talk to openclaw, because openclaw is the system.

Why This Change Was Made

  • User-facing: persona/display "OpenClaw"; agent tool openclaw; gateway methods openclaw.chat / openclaw.setup.detect|activate|verify|auth.start; reserved agent ids openclaw + retired crestodian; MCP stdio tool mcp__openclaw__openclaw; docs at docs/cli/openclaw.md (old page is a redirect: stub).
  • Internal: src/crestodian/ → src/system-agent/, Crestodian* identifiers → SystemAgent* — bare openclaw identifiers would be ungreppable in this repo, so the internal concept name is "system agent". No third name introduced.
  • CLI: openclaw setup is now the canonical entry. Routing: any onboarding flag → onboarding exactly as before (all documented snippets keep working); -m/--yes → system-agent one-shot; bare on a configured system (interactive TTY, or --json for the overview) → OpenClaw chat, including invalid-config systems (repair assistant); unconfigured → onboarding as today. openclaw crestodian stays as a hidden deprecated alias; TUI keeps hidden /crestodian → /openclaw.
  • Gateway method rename is not aliased: the only protocol consumers (macOS app, remote-onboard CLI) are in-repo and updated in lockstep.
  • Behavior of the approval flow, chat engine, operations, and onboarding is unchanged beyond the CLI routing above.

User Impact

openclaw setup on a configured system now opens the OpenClaw system-agent chat instead of re-running onboarding (onboarding remains reachable via flags or openclaw onboard). Everything else is a rename: docs redirect covers old links; hidden aliases cover old habits.

Evidence

  • CLI routing unit tests (setup route matrix incl. non-TTY→onboarding, invalid-config→chat, alias) and full focused suites listed below.
  • Residual crestodian references are only: hidden CLI/TUI aliases, retired-id reservation, doctor migration, docs redirect stub, and generated non-English locale files (retranslation sync in follow-up commit on this PR).

Validation:

  • Focused suites (local, node scripts/run-vitest.mjs): src/system-agent (all), setup CLI routing (13), agents add (incl. reserved-id gates), gateway system-agent methods, harness selection, system-agent tool, operations (incl. new bare-/openclaw regression test) — green.
  • Remote (Blacksmith Testbox): rename-commit tests + pnpm build green; check:changed LOC ratchet fixed in follow-up commits and re-verified locally.
  • Autoreview (Codex gpt-5.6-sol xhigh): full behavioral-bundle chunked review — 2 findings (retired UserDefaults key migration, bare /openclaw exit) — both fixed; fix-delta re-review clean. Two mechanically-moved files excluded from the bundle were verified by symmetric blob-diff (80/80, 73/73 rename-only lines).
  • Non-English locale prune via android-app-i18n sync; check green.

@steipete
steipete requested a review from a team as a code owner July 14, 2026 09:03
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling extensions: anthropic channel: qqbot extensions: qa-lab extensions: codex extensions: copilot size: XL maintainer Maintainer-authored PR labels Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 367ea839ce

ℹ️ 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".

textAlias: "/crestodian",
key: "openclaw",
description: "Run the OpenClaw setup and repair helper.",
textAlias: "/openclaw",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the retired /crestodian chat alias

When existing users send the previously shipped /crestodian ... rescue command over text channels, the dispatcher only recognizes aliases declared in the command registry before handleSystemAgentCommand runs. This entry now registers only /openclaw, so /crestodian status or /crestodian yes is no longer treated as the setup/repair command and can fall through instead of reaching the compatibility path; keep /crestodian as a secondary textAliases entry while canonicalizing to /openclaw.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/openclaw-system-agent-rename-107237 branch from 367ea83 to 6373fdd Compare July 14, 2026 09:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6373fdd0d5

ℹ️ 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".

@@ -92,7 +92,7 @@ const legacyStorePatterns = [
/\b(?:credentials\/oauth|github-copilot\.token|openrouter-models|auth-profiles|auth-state|exec-approvals|workspace-state)\.json\b/u,
/\bcron\/(?:runs\/[^"'`]+\.jsonl|jobs\.json|jobs-state\.json)\b/u,
/\b(?:process-leases|session-toggles|known-users|msteams-conversations|msteams-polls|msteams-sso-tokens|bot-storage|sync-store|thread-bindings|inbound-dedupe|startup-verification|storage-meta|crypto-idb-snapshot|command-deploy-cache|plugin-binding-approvals|plugins\/installs|config-health|port-guard|restart-sentinel|gateway-restart-intent|gateway-supervisor-restart-handoff)\.json\b/u,
/\b(?:calls|ref-index|audit\/file-transfer|audit\/crestodian)\.jsonl\b/u,
/\b(?:calls|ref-index|audit\/file-transfer|audit\/openclaw)\.jsonl\b/u,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the legacy-store guard matched to the audit path

When the database-first legacy-store guard runs, this pattern now looks for audit/openclaw.jsonl, but the renamed runtime audit helper writes audit/system-agent.jsonl (src/system-agent/audit.ts). That means current or future system-agent JSONL audit writes bypass this guard instead of being reported, so the database-first check no longer enforces the renamed store; update the pattern to match the actual system-agent path or rename the runtime path consistently.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/openclaw-system-agent-rename-107237 branch from 6373fdd to c9865ee Compare July 14, 2026 09:19

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c9865eee18

ℹ️ 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".

Comment on lines +516 to +520
"openclaw.chat",
"openclaw.setup.detect",
"openclaw.setup.verify",
"openclaw.setup.activate",
"openclaw.setup.auth.start",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep retired gateway methods registered

When a native client or SDK still sends the shipped crestodian.chat / crestodian.setup.* RPC names, only the new openclaw.* keys are registered here, so the gateway dispatcher falls through to unknown method. macOS/Android apps and remote gateways can be upgraded independently, so a gateway-only upgrade breaks existing onboarding clients; keep the retired method names as aliases to these same handlers until a versioned removal.

Useful? React with 👍 / 👎.

Comment on lines +19 to +20
const reservedAgent = runtimeConfig.agents?.list?.find((entry) =>
isReservedSystemAgentId(entry.id),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Migrate existing openclaw agent ids before reserving them

For an upgraded install that already has a user-created agent with id openclaw (valid before this rename; only crestodian was previously reserved), this new check makes system-agent setup fail and tells the user to rename it manually. The added doctor migration only moves the top-level crestodian config block, while the agent creation checks only block future ids, so existing configs hit a setup blocker without doctor --fix; add an automatic migration/rename or use a non-colliding internal id before failing here.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f8dc6bcd64

ℹ️ 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".

guard self.isCurrentAttempt(context), !Task.isCancelled else { return }
let data = try await gateway.request(
method: "crestodian.setup.detect",
method: "openclaw.setup.detect",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fall back to legacy setup methods for older gateways

When a newer macOS app connects to a gateway that has not been upgraded with this rename, the protocol version is still 4 so the handshake succeeds, but the older gateway only advertises/handles the shipped crestodian.setup.*/crestodian.chat RPCs. Hard-coding openclaw.setup.detect here (and the sibling verify/activate/auth/chat calls) makes onboarding fail with unknown method instead of using the server's advertised method set or falling back to the retired names, which breaks app-before-gateway upgrades.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/openclaw-system-agent-rename-107237 branch from f11854a to 17d3000 Compare July 14, 2026 10:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17d3000bc3

ℹ️ 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".

const result = await request<CrestodianSetupDetectResult>({
method: "crestodian.setup.detect",
const result = await request<SystemAgentSetupDetectResult>({
method: "openclaw.setup.detect",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add legacy fallback for remote setup RPCs

When a newer CLI runs remote onboarding against a gateway that is still protocol-compatible (version 4) but predates this rename, this first request now sends only openclaw.setup.detect; that older gateway only handles crestodian.setup.detect, so remote AI setup fails with unknown method before detection. The macOS client path has the same upgrade-order issue already noted, but this separate CLI path also needs to use the advertised method set or retry the retired crestodian.setup.*/crestodian.chat names.

Useful? React with 👍 / 👎.

capabilities: [
GATEWAY_SERVER_CAPS.CHAT_SEND_ROUTING_CONTRACT,
GATEWAY_SERVER_CAPS.CRESTODIAN_SETUP_MODEL_REF,
GATEWAY_SERVER_CAPS.SYSTEM_AGENT_SETUP_MODEL_REF,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Advertise the retired setup-model capability too

When an older macOS app connects to an upgraded gateway, the protocol version still matches, but that app checks for the shipped crestodian-setup-model-ref capability before including modelRef in activation. This hello now advertises only openclaw-setup-model-ref, so older clients silently omit the exact model guard and can activate the route default instead of the candidate they detected; keep the retired capability string in the list until old native clients are no longer accepted.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 332ed32699

ℹ️ 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".

Comment on lines +63 to +64
if (!snapshot.valid) {
return true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route invalid configs to onboarding

When openclaw setup is run against an existing but invalid config, this classifies the install as configured and routes bare interactive/--json setup into the system-agent path. That path cannot actually repair this state: verifySetupInference returns a format failure for invalid snapshots and the guided fallback's detectSetupInference throws the same invalid-config error before probing, so the old setup/onboarding recovery path is skipped and users get a failed OpenClaw start instead of the documented onboarding/doctor guidance. Treat invalid snapshots as not configured here, or add an explicit invalid-config repair route before selecting the system agent.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 14, 2026, 10:06 AM ET / 14:06 UTC.

Summary
Renames Crestodian to the OpenClaw system agent across the CLI, Gateway protocol, apps, configuration, docs, tests, scripts, and internal modules, while changing configured-system openclaw setup routing.

Reproducibility: yes. for the patch defects: the exact head provides clear source paths for mixed-version RPC failure, the existing-agent-id blocker, lost owner-DM alias, and invalid-config routing failure. No live run was performed or supplied, so this is source reproduction rather than observed runtime reproduction.

Review metrics: 3 noteworthy metrics.

  • Protocol identifiers: 5 RPC methods and 1 capability renamed. These identifiers cross independently upgraded gateway, native-app, and remote-CLI boundaries.
  • Configuration compatibility: 1 top-level config namespace renamed and 1 newly reserved agent id. Both changes require an explicit upgrade migration rather than runtime rejection or silent fallback.
  • CLI default behavior: 1 canonical setup command rerouted. Configured users now enter system-agent chat instead of onboarding, so invalid and mixed-version states need direct recovery proof.

Stored data model
Persistent data-model change detected: migration/backfill/repair: apps/.i18n/native-source.json, migration/backfill/repair: apps/.i18n/native/ar.json, migration/backfill/repair: apps/.i18n/native/de.json, migration/backfill/repair: apps/.i18n/native/es.json, migration/backfill/repair: apps/.i18n/native/fa.json, migration/backfill/repair: apps/.i18n/native/fr.json, and 18 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #107237
Summary: This PR is the phase-0 implementation candidate for the canonical two-tier system-agent proposal; the stacked session-self-service PR is adjacent phase-1 work rather than a duplicate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🧂 unranked krab
Result: blocked until real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Resolve all four compatibility and recovery findings on a refreshed, mergeable head.
  • [P1] Add redacted real fresh-install and upgrade or mixed-version proof.
  • Obtain the explicit protocol-v4 compatibility decision from the likely owner.

Proof guidance:

  • [P1] Needs real behavior proof before merge: Tests, CI, build output, Testbox results, and autoreview are supplemental only; add redacted after-fix terminal output, logs, or a recording showing fresh configured setup plus an upgrade or mixed-version path, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.

Mantis proof suggestion
A Telegram transcript would materially prove that both the canonical and retired owner-DM commands still reach the system agent and return visible replies after the rename. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis telegram live: verify with a redacted transcript that `/openclaw status` and the hidden `/crestodian status` compatibility alias both reach the system agent and return their replies.

Risk before merge

  • [P1] Protocol-v4 gateways, native apps, and remote setup clients can be upgraded in either order; removing the retired RPC names and capability makes one side report unknown methods or omit the verified model guard.
  • [P1] Existing installations may contain a user-created openclaw agent id or invalid configuration and currently have no automatic migration or working in-product recovery path under the proposed routing.
  • [P1] The rename changes owner-DM command dispatch, provider/model setup, configuration, and setup defaults across independently deployed surfaces without real fresh-install and upgrade evidence.
  • [P1] The PR is currently not cleanly mergeable, so compatibility review and proof must be refreshed after resolving base drift.

Maintainer options:

  1. Restore upgrade compatibility (recommended)
    Add protocol-v4 RPC and capability aliases, the owner-DM command alias, agent-id/config migrations, invalid-config recovery, mixed-version tests, and real upgrade proof before merge.
  2. Own a versioned break
    Land only after an owner approves a protocol-version transition and release plan that coordinates gateway, native-app, and remote-CLI upgrades.
  3. Pause phase 0
    Defer this branch if the compatibility and migration surface is too broad to validate independently from the later system-agent phases.

Next step before merge

  • [P1] An owner must decide the protocol-v4 compatibility contract; after that, the contributor must update the branch, resolve its merge conflict, and add real setup and upgrade proof.

Maintainer decision needed

  • Question: Should protocol v4 preserve the shipped crestodian.* methods and capability as compatibility aliases, or should this rename become a versioned breaking protocol transition with a coordinated client-upgrade policy?
  • Rationale: The code can implement either direction, but only an owner can decide whether independently upgraded gateways and native/CLI clients must remain interoperable under protocol v4.
  • Likely owner: steipete — The available history and parent proposal connect this owner most directly to the system-agent direction and current setup/inference behavior.
  • Options:
    • Preserve v4 aliases (recommended): Keep the retired methods and capability mapped to the new handlers through a documented compatibility window, with mixed-version tests.
    • Version the transition: Bump or negotiate the protocol and publish a coordinated upgrade contract that prevents mismatched clients from completing a compatible handshake.
    • Pause the rename: Keep Crestodian identifiers until the system-agent phases and upgrade strategy can land as one coordinated product transition.

Security
Cleared: The reviewed change does not add dependencies, workflow execution, secret access, or broader authorization; its concrete blockers are compatibility and recovery defects rather than a new security or supply-chain regression.

Review findings

  • [P1] Preserve protocol-v4 setup and chat compatibility — apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayProtocol.kt:138-142
  • [P1] Migrate existing agents before reserving openclaw — src/system-agent/setup-config-snapshot.ts:18-24
  • [P1] Keep the shipped /crestodian rescue alias — src/auto-reply/reply/commands-system-agent.ts:1
Review details

Best possible solution:

Keep the OpenClaw/system-agent naming, but preserve shipped crestodian RPC, capability, CLI, TUI, and text-command compatibility for protocol v4; add doctor migrations for renamed config and conflicting agent ids, route invalid configs to onboarding or doctor recovery, and prove both fresh setup and mixed-version upgrade behavior before merge.

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

Yes for the patch defects: the exact head provides clear source paths for mixed-version RPC failure, the existing-agent-id blocker, lost owner-DM alias, and invalid-config routing failure. No live run was performed or supplied, so this is source reproduction rather than observed runtime reproduction.

Is this the best way to solve the issue?

No. The rename is directionally coherent, but replacing shipped identifiers under protocol v4 without aliases, migrations, recovery routing, and upgrade proof is not the safest maintainable solution.

Full review comments:

  • [P1] Preserve protocol-v4 setup and chat compatibility — apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayProtocol.kt:138-142
    The protocol version remains 4, but clients now send only openclaw.chat and openclaw.setup.*. Older gateways only handle the shipped crestodian.* names, while older clients also rely on the retired setup-model capability, so either upgrade order breaks setup or loses the verified model guard. Re-raising the prior blocker because this is the same reviewed head; retain aliases and mixed-version tests or make this a versioned transition.
    Confidence: 0.99
  • [P1] Migrate existing agents before reserving openclaw — src/system-agent/setup-config-snapshot.ts:18-24
    Existing users could already have an agent named openclaw; this new reservation makes setup fail and asks for a manual rename, while the doctor migration only covers the renamed top-level config. Re-raising the prior blocker because the head is unchanged; add a deterministic doctor migration or choose a non-colliding internal id.
    Confidence: 0.98
  • [P1] Keep the shipped /crestodian rescue alias — src/auto-reply/reply/commands-system-agent.ts:1
    The hidden local TUI alias does not preserve the separately registered owner-DM text command. Existing /crestodian status or approval replies can fall through instead of reaching the system agent. Re-raising the prior blocker because the head is unchanged; retain crestodian as a hidden text alias canonicalized to openclaw.
    Confidence: 0.97
  • [P1] Send invalid configs to a working recovery path — src/cli/program/register.setup.ts:1
    An existing invalid config is classified as configured and routed into system-agent chat, but setup inference rejects that snapshot before the assistant can repair it. Re-raising the prior blocker because the head is unchanged; route invalid snapshots to onboarding/doctor or implement a recovery path that works before inference validation.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against bacad953794b.

Label changes

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • add mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The owner-DM /crestodian to /openclaw command transition is visible Telegram chat behavior that can be demonstrated with a short redacted transcript.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: This is a broad but not-yet-shipped feature transition with multiple blocking upgrade defects requiring normal-priority owner review.
  • merge-risk: 🚨 compatibility: The PR removes shipped protocol, command, config, and identifier surfaces used by independently upgraded clients and existing installations.
  • merge-risk: 🚨 auth-provider: Renaming the setup-model capability can cause older clients to omit the verified model reference and activate a different provider route.
  • merge-risk: 🚨 message-delivery: Dropping the owner-DM /crestodian registry alias can suppress the shipped setup and rescue command on messaging channels.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Tests, CI, build output, Testbox results, and autoreview are supplemental only; add redacted after-fix terminal output, logs, or a recording showing fresh configured setup plus an upgrade or mixed-version path, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The owner-DM /crestodian to /openclaw command transition is visible Telegram chat behavior that can be demonstrated with a short redacted transcript.
Evidence reviewed

What I checked:

  • Re-review continuity: The current head is still 332ed32, the same SHA reviewed in the prior completed cycles, so the four previously reported blockers have not received a code update. (332ed3269926)
  • Shipped command contract: Current main documents /crestodian as the owner-DM setup and repair command and as the local TUI return command, establishing that the retired name is a shipped user-facing compatibility surface. Public docs: docs/tools/slash-commands.md. (docs/tools/slash-commands.md, bacad953794b)
  • RPC replacement: The Android protocol enum replaces all five crestodian.* RPC names with openclaw.* names rather than retaining aliases, while the PR keeps the protocol version unchanged and clients can upgrade independently. (apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayProtocol.kt:138, 332ed3269926)
  • Agent-id upgrade blocker: Setup now rejects both reserved system-agent identifiers, including openclaw, but the branch does not provide a doctor migration for existing user-created agents that already use that previously valid id. (src/system-agent/setup-config-snapshot.ts:18, 332ed3269926)
  • Text-channel compatibility: The local TUI keeps a hidden /crestodian alias, but the shipped owner-DM text command requires its own command-registry alias; without it, existing rescue messages can fall through instead of reaching the system agent. (src/auto-reply/reply/commands-system-agent.ts:1, 332ed3269926)
  • Invalid-config recovery: Bare setup treats an existing invalid config as configured and selects the system-agent path, although inference verification and detection reject that snapshot before it can repair the configuration. (src/cli/program/register.setup.ts:1, 332ed3269926)

Likely related people:

  • steipete: The behavior appears connected to the current Crestodian setup/inference design, the broader system-agent proposal, and recent merged work maintaining Crestodian provider-routing behavior. (role: feature owner and recent area contributor; confidence: high; commits: 52771b6, f22636453dbe; files: src/crestodian/setup-inference.ts, src/system-agent/setup-inference.ts, src/system-agent/system-agent.ts)
  • fuller-stack-dev: The shipped configured-versus-unconfigured CLI behavior being replaced was introduced through the prior bare-CLI onboarding work associated with pull request 72343. (role: introduced current CLI routing behavior; confidence: medium; files: src/cli/run-main.ts, src/cli/program/register.onboard.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

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.
Review history (2 earlier review cycles)
  • reviewed 2026-07-14T13:18:04.250Z sha 332ed32 :: needs real behavior proof before merge. :: [P1] Preserve protocol-v4 setup and chat compatibility | [P1] Migrate existing agents before reserving openclaw | [P1] Keep the shipped /crestodian rescue alias | [P1] Send invalid configs to a working repair path
  • reviewed 2026-07-14T13:41:52.646Z sha 332ed32 :: needs real behavior proof before merge. :: [P1] Preserve protocol-v4 setup and chat compatibility | [P1] Migrate existing agents before reserving openclaw | [P1] Keep the shipped /crestodian rescue alias | [P1] Send invalid configs to a working repair path

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 14, 2026
@clawsweeper
clawsweeper Bot temporarily deployed to qa-live-shared July 14, 2026 14:10 Inactive
@openclaw-mantis

Copy link
Copy Markdown
Contributor

Mantis Telegram Desktop Proof

Summary: Mantis captured native Telegram Desktop before/after GIFs showing the rescue command rename from /crestodian to /openclaw.

Main screenshot This PR screenshot
Baseline native Telegram Desktop screenshot Candidate native Telegram Desktop screenshot
Main This PR
Baseline native Telegram Desktop proof GIF Candidate native Telegram Desktop proof GIF

Motion-trimmed clips:

Raw QA files: https://artifacts.openclaw.ai/mantis/telegram-desktop/pr-107320/run-29339537264-1/index.json

@steipete
steipete force-pushed the feat/openclaw-system-agent-rename-107237 branch from 332ed32 to af570bd Compare July 14, 2026 15:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af570bd907

ℹ️ 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".

Comment thread src/system-agent/audit.ts
stateDir = resolveStateDir(env),
): string {
return path.join(stateDir, "audit", "crestodian.jsonl");
return path.join(stateDir, "audit", "system-agent.jsonl");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the legacy audit log path during the rename

When an upgraded install already has approved-write history in the shipped audit/crestodian.jsonl, this resolver now sends both new writes and the audit command's reported path to audit/system-agent.jsonl. I searched for audit/crestodian.jsonl and found no runtime or doctor migration/import for that file, so operators following the post-upgrade audit path miss pre-upgrade approved changes. Add a doctor migration/import or keep reporting/appending through the retired path until the history is carried forward.

Useful? React with 👍 / 👎.

steipete and others added 10 commits July 14, 2026 10:47
User-facing name is now OpenClaw (the system speaks); internal code name is
system-agent. Gateway methods crestodian.* -> openclaw.chat/openclaw.setup.*,
agent tool -> openclaw, reserved agent ids openclaw + retired crestodian.
openclaw setup routes: onboarding flags -> onboard, -m/--yes -> system agent,
bare configured interactive -> OpenClaw chat, unconfigured -> onboarding.
Hidden crestodian CLI and /crestodian TUI aliases kept; docs moved to
docs/cli/openclaw.md with redirect stub. macOS/Android strings in lockstep.

Refs #107237
android:i18n sync drops orphaned entries for the renamed key; wizard zh
locales reference openclaw setup; docs title disambiguates the system
agent from the product.

Refs #107237
Shorten resolvePersistentApplyInference (SystemAgent prefix redundant in
module), drop duplicate non-interactive workspace guard in agents add
(inner check keeps narrowing and message precedence).

Refs #107237
Replace blind string casts with an optionalString reader and rename the
options record; blind token/password casts also false-positived secret
scanners on every future diff of this file.

Refs #107237
Identifiers ending in TOKEN false-positive secret scanners on every diff
touching this file; ARG_WORD also describes the grammar role better.

Refs #107237
…re /openclaw

Review findings on the rename: macOS resume store now migrates activation
leases persisted under the retired crestodian UserDefaults key so an app
upgrade cannot orphan a live activation; open-tui results carry
returnToShell so bare /openclaw re-enters the OpenClaw shell instead of
exiting the CLI.

Refs #107237
native i18n inventory + per-locale artifacts resynced for the OpenClaw
strings; Kotlin gateway protocol enum regenerated instead of hand-edited;
deadcode baseline re-sorted; lint suppression allowlist entries moved to
sorted position; setup TTY check drops redundant boolean compares;
ring-zero first-run e2e calls the real 'openclaw setup' subcommand.

Refs #107237
…en baselines

Rebase onto main pulled in the ClawHub plugin-install trust check (#102197);
ported it into the renamed system-agent operations/tool/tests, refreshed
native i18n, deadcode, and max-lines baselines for the renamed paths.

Refs #107237
@steipete
steipete force-pushed the feat/openclaw-system-agent-rename-107237 branch from af570bd to 3e771fc Compare July 14, 2026 18:02
@steipete
steipete merged commit 6e500d3 into main Jul 14, 2026
51 checks passed
@steipete
steipete deleted the feat/openclaw-system-agent-rename-107237 branch July 14, 2026 18:03
@steipete

Copy link
Copy Markdown
Contributor Author

Post-merge CI regression: downstream merge refs now fail check-lint because the rename dropped the grandfathered max-lines suppressions from src/crestodian/operations.ts and src/crestodian/operations.test.ts.

Current failures:

  • src/system-agent/operations.ts: 1,402 counted lines
  • src/system-agent/operations.test.ts: 1,643 counted lines

Proof: CI job 87166369389 on PR #107670's merge ref. Those paths do not exist in #107670's head, and its prior exact-head lint passed before this main change landed. Please restore the two scoped suppressions or split the files on main so downstream PRs can pass hosted gates again.

@steipete

Copy link
Copy Markdown
Contributor Author

Follow-up: simply restoring the two inline suppressions is not sufficient. config/max-lines-baseline.txt intentionally removed the old src/crestodian/operations* entries without adding renamed paths, and the ratchet correctly rejects new suppressions. The policy-preserving fix is to split both renamed files below the configured max-lines budget (or explicitly revisit the ratchet policy in its owning lane).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: macos App: macos app: web-ui App: web-ui channel: qqbot cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: anthropic extensions: codex extensions: copilot extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant