Skip to content

fix(config): align roster fixtures and docs with explicit ownership - #163475

Merged
steipete merged 2 commits into
mainfrom
upd/upd-agents-entries-fixtures
Oct 2, 2026
Merged

steipete merged 2 commits into
mainfrom
upd/upd-agents-entries-fixtures

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Refs #162612

What Problem This Solves

Fixtures and copyable documentation still used retired agent roster markers, so intentional canonical-config admission rejected tests before they reached their actual contracts and rejected copied multi-agent examples.

User Impact

The documentation now uses keyed agents.entries and explicit surface owners while preserving routing, workspace locations, auth inheritance, and heartbeat enrollment. Doctor still owns legacy migration: normal updates invoke candidate Doctor through the backup flow; direct binary replacements require openclaw doctor --fix before startup. Runtime behavior is unchanged.

Why This Change Was Made

The confirmed failing files authored their own rosters; shared state scenarios did not introduce the legacy fields. Their fixture construction now emits canonical configuration, including the fixtures whose assertions require unchanged config bytes. The obsolete docs negative case now validates a canonical roster while retaining indented MDX-fence coverage. The same change converts 61 documentation examples across 35 pages, including one example previously hidden in a JavaScript fence.

Final diff against the integrated main base: production 0 changed lines; tests +30/-18; docs +279/-87. No new modules, exports, test files, runtime fallback, dependency changes, or schema changes.

Evidence

Historical failure attribution is from main run 36996061103 at 4ee88721f043; each of the 13 named job logs was fetched once. The following local file runs passed on candidate 004595e8429c10cb02f928301bf3953ce4124909 using node scripts/run-vitest.mjs <file> --maxWorkers=1 (the direct repository harness for a prepared worktree):

File Tests First-run wall time Repetitions
src/cli/models-cli.auth-login.integration.test.ts 2 22.04s 1
packages/memory-host-sdk/src/host/session-files.test.ts 35 42.93s 1
src/config/docs-config-examples.test.ts 15 14.40s 2, final docs correction rechecked
src/gateway/server-close.model-acquisition.test.ts 6 50.43s 3
src/gateway/provider-browser-auth/persistence.integration.test.ts 2 15.11s 1
src/commands/models.auth.provider-resolution.test.ts 30 32.61s 1
src/gateway/server.incomplete-stream.test.ts 1 20.41s 3
src/cli/agent-session-affinity.process.test.ts 4 38.83s 1
src/commands/doctor-lint.oauth.test.ts 2 18.53s 1
src/commands/cleanup-live-state.test.ts 10 12.49s 1
src/agents/main-session-recovery/main-session-restart-recovery-marking.test.ts 11 18.18s 1
src/gateway/server.startup-defaults-reload.test.ts 1 31.43s 3
src/gateway/server.startup-recovery-webchat.test.ts 1 25.86s 3

The initial pass covered 120 tests across 13 files. All four Gateway files passed all three runs. The final docs rerun passed all 15 tests in 12.83s harness time. The affinity suite's four existing real CLI/HTTP-egress cases account for 30.97s of test time; no cases or waits were added. CI duration is pending.

Static inspection found no remaining retired roster markers or newly unparseable fences among the changed examples; every changed multi-agent example declares explicit ownership. The existing shared heartbeat block retains enrollment of both agents.

Other-cause findings, deliberately left unchanged:

  • src/cli/state-dir-gateway-check.process.test.ts failed identically 3/3 normal runs (24.36s, 23.62s, 23.01s): normal CLI output replaces the expected state-mismatch detail with the generic command-failed/Doctor message. A separate OPENCLAW_DEBUG=1 diagnostic run (23.30s) exposed the intended refusal from runStateStoreGuard in src/cli/program/preaction.ts:116 and passed, including the no-auth-config-write assertion. There was no roster rejection. This diagnostic pass does not fix or clear the three normal failures. Temporary output capture was removed; this file is absent from the diff.
  • src/infra/session-cost-usage-worker-io.test.ts failed in historical job 110803163036 with a SQLite identity collision at sqlite-worker-broker-admission.ts:201, with no roster rejection. It was neither changed nor rerun.

The original candidate passed env -u OPENCLAW_TESTBOX node scripts/check-changed.mjs (including seven affected test typecheck graphs, targeted lint, formatting, ratchets, boundaries, and dead-export scans), git diff --check, and independent Codex P1 autoreview (scoped-clean, no findings).

A parallel repair landed as e07172ef9092ae00b1b71e92d0f66312951e4fa8 during validation. Four identical fixture edits are now supplied by main. Main ee578bc73257aa228561c350417b96010dec87fa was integrated to resolve the recovery fixture overlap, retaining its landed typed config and workspace path. The remaining PR consists of 35 docs pages and nine test files. On the merged candidate, recovery marking passed all 11 tests (33.01s wall); the four Gateway suites each passed 3/3 again (12 additional file runs). Fresh independent Codex P1 review was scoped-clean with no findings. The final staged changed-file gate against that exact main base passed, including all seven test typecheck graphs and targeted lint. Final head: 8b23f612dac53173350dd41aab8e1f8fb5bf11ad.

Validation ran locally under the campaign waiver. No production-file import-dependent or new-export closure gates apply. Auto-merge remains off.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: imessage Channel integration: imessage gateway Gateway runtime cli CLI command changes security Security documentation commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: anthropic extensions: tts-local-cli plugin: azure-speech Azure Speech plugin channel: buzz extensions: fish-audio Extension: fish-audio size: S labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 2, 2026, 7:29 AM ET / 11:29 UTC.

ClawSweeper review

What this changes

The branch updates documentation examples and existing test fixtures to use keyed agent rosters and explicit service owners.

Merge readiness

⛔ Blocked before merge - 3 items remain

This follow-up remains useful: current main still contains examples and fixtures rejected by canonical roster admission. No introduced correctness defect was found; the protected security label also requires maintainer handling.

Priority: P2
Reviewed head: 004595e8429c10cb02f928301bf3953ce4124909

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical-config correction with useful reported validation and no concrete introduced defect; draft and conflict state do not lower patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a MEMBER-authored PR, and the diff changes only prose, configuration examples, and test setup. Reported focused runs are supplemental validation; no production authority or stored-data contract changes require separate proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a MEMBER-authored PR, and the diff changes only prose, configuration examples, and test setup. Reported focused runs are supplemental validation; no production authority or stored-data contract changes require separate proof.
Evidence reviewed 9 items Introduced change: The pinned merge-base-to-head diff changes documentation and existing test fixtures only. It introduces no production implementation, dependencies, migration, or security-policy changes.
Existing admission contract: Raw config validation rejects legacy roster rules before schema admission. Existing current-main tests verify that retired default markers require Doctor while preserving authored bytes.
Main still needs the documentation correction: Fetched main still documents a multi-agent roster with default:true and no explicit ownership stamp in the WhatsApp DM example.
Findings None None.
Security None None.

How this fits together

Agent configuration defines workspaces, channel routing, and ownership of background services. Config admission validates that configuration before the Gateway and CLI consume it; Doctor owns legacy migration.

flowchart TD
  A[Documentation examples] --> C[Canonical agent configuration]
  B[Test fixtures] --> C
  D[Legacy configuration] --> E[Doctor migration]
  E --> C
  C --> F[Config admission]
  F --> G[Gateway and CLI]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports conflicts at the reviewed head; the resolved merge result and its affected validation remain unverified.
  • Complete next step (P2) - Resolve the merge conflicts, validate the affected files on the resulting head, and mark the draft ready when preparation is complete.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

Tests +29, Docs +192. Total +221 across 48 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 13 54 25 +29
Docs 35 279 87 +192
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 48 333 112 +221

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep documentation and fixtures canonical while preserving routing, workspace locations, auth inheritance, and heartbeat enrollment under the existing Doctor migration contract.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep documentation and fixtures canonical while preserving routing, workspace locations, auth inheritance, and heartbeat enrollment under the existing Doctor migration contract.

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

Yes, from source: current-main examples contain roster markers that raw config admission rejects, with existing tests covering that refusal. No runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

Yes. Updating the authored examples and fixtures uses the existing canonical contract and keeps legacy repair in Doctor; no competing runtime compatibility path is introduced.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ee578bc73257.

Labels

Label changes:

  • add P2: This repairs invalid copyable configuration and fixture admission without changing production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a MEMBER-authored PR, and the diff changes only prose, configuration examples, and test setup. Reported focused runs are supplemental validation; no production authority or stored-data contract changes require separate proof.

Label justifications:

  • P2: This repairs invalid copyable configuration and fixture admission without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a MEMBER-authored PR, and the diff changes only prose, configuration examples, and test setup. Reported focused runs are supplemental validation; no production authority or stored-data contract changes require separate proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve conflicts and rerun affected validation on the resulting head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@steipete
steipete marked this pull request as ready for review October 2, 2026 11:40
@steipete
steipete merged commit f1d611a into main Oct 2, 2026
171 of 174 checks passed
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Landed (squash f1d611a48484e2fc23c8db868da17d59dcb11a7b, head 8b23f612dac5): production 0 LOC; 120 tests across the 13 confirmed files, the four Gateway suites 3×, check-changed and P1 clean; no failing CI job at merge time. Clears the agents.entries fixture cluster from hourly 36996061103. Not covered on purpose: state-dir-gateway-check (separate cause, follow-up) and session-cost-usage-worker-io (unrelated).

steipete added a commit that referenced this pull request Oct 2, 2026
The OAuth fixture still writes agents.list and a default marker, so current
config admission rejects all three authority scenarios after #162612.
Use explicit owner and peer entries with owner as the system agent, keeping
the model mappings, held refresh gates, and assertions unchanged.

Related onboarding, memory, recovery, and sharing fixes are already on main
in e07172e, f1d611a (#163475), and 0c1714d. This commit changes only the
remaining OAuth fixture.

Validation: all three OAuth cases passed (127.57s Vitest), covering shared
rotation/restart, account-mismatch fencing, and logout during refresh.
The 18-case selection took 1556.36s wall, including a 1045.8s cold runtime
build. Scoped typed lint, owning type graphs, formatting, and independent
review passed. Relevant config/auth inputs are unchanged through 093ccc8.

Runtime proof used 4c60fa0 and the unchanged fixture. Later fs-safe and
environment-alias changes on main were inspected but not re-executed.
steipete added a commit that referenced this pull request Oct 2, 2026
…entries (#163512)

Follow-up to #163475: more test fixtures (OAuth refresh cancel, models auth API key, relogin persistence, the shared trigger-handling harness, cold-storage backup, cost-usage archive identity, heartbeat scheduler, and the caller-mode state-migration family) still authored the retired agents.list roster and were rejected at config admission after #162612 moved that migration into Doctor. Fixtures loaded as runtime config now use keyed agents.entries with explicit owners; Doctor migration tests that intentionally feed the legacy shape are unchanged. Production LOC 0.

Refs #162612 #163475
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…mples (openclaw#163475)

After openclaw#162612 moved legacy agents.list/default-marker migration into Doctor, test fixtures and 61 documentation examples still authored the retired roster shape and were rejected at config admission (main hourly 36996061103, 12 files plus docs-config-examples). Fixtures and docs now use keyed agents.entries with explicit surface owners; runtime admission is unchanged. Production LOC 0.

Refs openclaw#162612
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
The OAuth fixture still writes agents.list and a default marker, so current
config admission rejects all three authority scenarios after openclaw#162612.
Use explicit owner and peer entries with owner as the system agent, keeping
the model mappings, held refresh gates, and assertions unchanged.

Related onboarding, memory, recovery, and sharing fixes are already on main
in bf3a7e9, e2658df (openclaw#163475), and 0bc74fe. This commit changes only the
remaining OAuth fixture.

Validation: all three OAuth cases passed (127.57s Vitest), covering shared
rotation/restart, account-mismatch fencing, and logout during refresh.
The 18-case selection took 1556.36s wall, including a 1045.8s cold runtime
build. Scoped typed lint, owning type graphs, formatting, and independent
review passed. Relevant config/auth inputs are unchanged through 691284d.

Runtime proof used 32f3cd3 and the unchanged fixture. Later fs-safe and
environment-alias changes on main were inspected but not re-executed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…entries (openclaw#163512)

Follow-up to openclaw#163475: more test fixtures (OAuth refresh cancel, models auth API key, relogin persistence, the shared trigger-handling harness, cold-storage backup, cost-usage archive identity, heartbeat scheduler, and the caller-mode state-migration family) still authored the retired agents.list roster and were rejected at config admission after openclaw#162612 moved that migration into Doctor. Fixtures loaded as runtime config now use keyed agents.entries with explicit owners; Doctor migration tests that intentionally feed the legacy shape are unchanged. Production LOC 0.

Refs openclaw#162612 openclaw#163475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: buzz channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: anthropic extensions: fish-audio Extension: fish-audio extensions: tts-local-cli gateway Gateway runtime P2 Normal backlog priority with limited blast radius. plugin: azure-speech Azure Speech plugin rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security Security documentation size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant