Commit Graph
8346 Commits
Author SHA1 Message Date
3f749b97ca fix(update): route stored dev channel to the git update flow [AI-assisted] (#123083)
* fix(update): route stored dev channel to the git update flow [AI-assisted]

A package-detected launcher with a stored update.channel: dev resolved the
npm "dev" dist-tag (which does not exist -> ETARGET) because switchToGit
only honored an explicitly requested --channel dev. Base the decision on
the effective channel and collapse the duplicated selectedChannel/channel
computation, which is provably identical in every reachable case.

Refs #123073

* docs(update): state the dev-channel git contract in the routing comment

Review finding: "dev" can exist as a rare npm dist-tag, so the comment
must not claim it never does; the routing rationale is the documented
dev-channel git-checkout contract.

* fix(update): keep one-off --tag on the package path for stored-dev installs

--tag is documented as a one-run package-target override, so a stored dev
channel must not divert a tagged update into the git flow (where the tag
is ignored). An explicitly requested --channel dev still outranks the tag,
matching existing explicit-channel behavior.

* test(update): scope the package-to-git clone to a per-case OPENCLAW_GIT_DIR

The stored-dev routing case performs a real transactional clone. On the
default <home>/openclaw that directory outlived the case and made a later
test fail with "OPENCLAW_GIT_DIR appeared while cloning".

Test Plan: node --import tsx scripts/test-projects.mts src/cli/update-cli.test.ts
Failing set now matches clean origin/main exactly (3 pre-existing macOS
$TMPDIR symlink failures, unrelated to this change).

Assisted by an AI coding assistant; reviewed before submitting.

* test(update): verify stored dev routing on installed packages

Temporary expected-failure verification for #123073. Restore only the routing owner to its pre-fix bytes while retaining the original contributor commits and adding installed-package regression coverage. This head must not merge; restore the reviewed fix and require hosted green proof after capturing the intended failure.

* fix(update): restore stored dev routing after regression proof

Restore the contributor's canonical effective-channel fix after the
installed-package regression lane reproduced package routing for stored
dev. Keep one-off tags on the package path and explicit dev precedence.

Remove the obsolete source-text assertion now covered by installed CLI
behavior and format the CI documentation table. Preserve all original
contributor commits. Fresh hosted GREEN validation remains required.

Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com>
2026-08-28 03:52:36 -07:00
Peter Steinberger 51b857099f fix(plugins): keep Gateway available while upgrades await consent (#131290) 2026-08-28 03:27:47 -07:00
Vincent Koc 444bc22f0d fix(ci): let publisher own Crabbox proof (#131635)
* fix(ci): let publisher own Crabbox proof

* test(ci): narrow Crabbox workflow install step
2026-08-28 18:11:48 +08:00
Peter Steinberger b576bb41cf fix(usage): retain reset history and unify accounting (#131667)
* fix(usage): retain reset history and unify accounting

Keep family selection within the recorded agent and assign each instance once.
Carry discovered SQLite or JSONL sources into batched loading, including empty
current sessions and history encountered before a current artifact.

Share Gateway and Control UI aggregation and total arithmetic, use canonical
pricing for detail logs, and invalidate both result caches on config changes.
Split calendar, cache, selection, and loading owners out of the usage handler.

Add failing-before regressions for reset history, overlapping families, mixed
sources, config replacement, missing-price exports, and log pricing.

* refactor(usage): keep accounting type imports acyclic

Make batched loading own its minimal input contract and import shared accounting
types from the leaf definition instead of the runtime barrel. Remove obsolete
current-JSONL fixture setup to keep the existing usage test within its line cap.

Verified both CI failures locally: zero Madge cycles and passing core lint with
the CI tsconfig. No runtime behavior or public protocol changes.

* refactor(usage): remove unused accounting type re-exports

The shared usage contracts now import their canonical leaf definitions. Remove
the six obsolete internal-barrel type re-exports left by that ownership repair.
2026-08-28 03:00:19 -07:00
Peter Steinberger 0f6034bc3c test(release): seed plugin ownership for the installed schema (#131685) 2026-08-28 02:24:31 -07:00
Peter Steinberger 276483320d refactor: reuse strict numeric parsers in abort benchmark (#131662) 2026-08-28 02:09:59 -07:00
Peter Steinberger 6d04ee6e7d fix(plugins): prepare standalone source artifacts for native imports (#131615)
Add explicit source setup for already-built standalone plugin artifacts after source dependency pruning. Reuse guarded declared-host linking without rebuilding artifacts or changing compilation, managed installs, discovery, or Doctor behavior.

Fixes #131611.
2026-08-28 01:58:08 -07:00
Peter Steinberger b46fa46986 test(clawhub): serve audit metadata in install fixtures (#131673) 2026-08-28 01:57:43 -07:00
Peter Steinberger 364d02bae0 fix: avoid unnecessary filesystem probes during test selection (#131659) 2026-08-28 01:39:01 -07:00
Vincent Koc d5412d73ac fix(release): preserve frozen companion consent checks (#131649) 2026-08-28 16:35:09 +08:00
Peter Steinberger 7a6a7945ce fix(channels): single-source bundled channel schemas from generated metadata (#131564)
* fix(channels): single-source bundled channel schemas from generated metadata

Hand-maintained channelConfigs schema copies in a2a, buzz, clickclack,
raft, and slack silently overrode the zod-derived generated bundled
channel metadata in config validation: stale buzz/raft copies rejected
the valid configWrites key, and the slack/clickclack additionalProperties
stubs disabled validation for those channels entirely. Delete the copies
so the CI-checked generated metadata is the single channel-schema source,
stub feishu's retired rich plugin-entry schema like every sibling, and
guard the pattern with a contract test.

The retired rich plugin-entry schemas let config UIs park channel
settings under plugins.entries.<id>.config unread; the reef doctor
migration from #131292 generalizes into the plugin SDK
(defineStrayPluginEntryConfigMigration) and feishu adopts it alongside
reef.

* fix(tests): fold channel schema-source guard into existing shard root

A new test root pushed the plugins-platform tsgo shard past its 720-root
cap; the guard lives in bundled-package-channel-metadata.test.ts instead.

* test(channels): update catalog and parity tests to single-source schemas

The official catalog regenerates without the deleted manifest schema
copies; the a2a and buzz parity tests drop their cold-manifest/catalog
surfaces (the runtime zod projection is what the generator publishes).

* test(plugins): lagging slack hydration carries no catalog schema copy

The full-suite manifest-registry test still pinned the catalog's retired
slack schema fallback; hydration now yields label/description and channel
validation falls back to the generated bundled metadata.
2026-08-28 00:29:44 -07:00
Ayaan GazaliandPeter Steinberger 0bb870a40a fix(channels): bundled channels reject the documented mediaMaxMb override (#118157)
* fix(channels): enforce documented media limits at byte boundaries

Resolve canonical account caps at native byte consumers, publish QA attachments durably, and refresh global media policy without resurrecting manually stopped accounts. Preserve existing local survivor warnings, remote batch atomicity, transport ceilings, and contributor schema work.

Co-authored-by: Ayaan Gazali <ayaangazali.work@gmail.com>

* fix(qa-channel): serialize preview changes with durable delivery

* test(qa-channel): reuse the typed deferred helper

* fix(auto-reply): retain media captions when block streaming is off

Resolve disabled block delivery at message-end so suppressed text callbacks cannot strip the later attachment caption. Preserve enabled break modes and per-turn precedence using the existing boolean owner.

* docs(streaming): clarify captions with block delivery disabled

* test(media): rebalance bounded core typecheck shards

Keep the existing 720-root ceiling and exact-once canonical coverage by moving media tests into the messaging shard. The plugin/platform shard reached 721 roots with the new media contract coverage; the new allocation is 682 and 526 roots. No runtime or test assertions change.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 00:07:56 -07:00
Vincent Koc 02e8d29231 fix(ci): bind Crabbox proof to publisher main (#131572) 2026-08-28 15:07:18 +08:00
Vincent Koc bccb649077 fix(release): support frozen plugin harness contracts (#131596) 2026-08-28 14:57:17 +08:00
f466dc0dcf fix(release): consent to staged Codex onboarding companion (#131298)
* fix(release): consent to staged Codex onboarding companion

* fix(e2e): prepare reviewed onboarding plugins explicitly

Use the shared command-help consent helper for the reviewed Codex and
external channel fixtures. Keep exact staged Codex versions pinned, use
official catalog selectors for published packages, and preserve historical
automatic setup when the candidate CLI lacks capability consent.

Replace source-order assertions with shell boundary coverage and document
reviewed plugin preinstallation before retrying noninteractive setup.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): preserve official provenance for candidate channels

Stage the selected Discord or Slack companion with Codex in the verified
prerelease registry and install its exact pinned npm spec after onboarding.
The former npm-pack path installed matching bytes but could not establish
the official provenance required by trusted plugin state APIs.

Remove local archive packaging and install overrides. Reject missing or
mismatched source companions before CLI use while keeping published catalog
selection and historical automatic setup unchanged.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): preserve frozen channel candidate registry

Keep the immutable Codex registry artifact unchanged and serve source Discord/Slack tarballs as separately validated exact npm packages. Remove source install overrides and fail closed without the mounted registry.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): keep candidate plugins in one registry

Restore the planner-owned immutable prerelease registry artifact containing Codex and the selected source channel companion. This supersedes the separate tarball mount follow-up.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-08-27 23:35:10 -07:00
tzy-17andPeter Steinberger a29e5c9a31 fix(gateway): own standalone MCP App request lifetimes (#119388)
* fix(gateway): own standalone MCP App request lifetimes

Keep initial loading and individual MCP requests bounded without applying
a derived single-request timeout to composed App operations. Carry caller
cancellation through the HTTP request owner, isolate shared catalog waits,
and preserve bounded graceful cleanup before terminal document teardown.

Retire stale document/bootstrap responses and observe asynchronous catalog
rejections without changing authorization, public SDK contracts, or retry
behavior. Add serialized-owner regressions and real Chromium conformance.

Rewrites #119388 while preserving the contributor's report and credit.

Co-authored-by: 唐梓夷0668001293 <tang.ziyi@xydigit.com>

* test(ui): preserve rendered MCP App diagnostics without suppression

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: 唐梓夷0668001293 <tang.ziyi@xydigit.com>
2026-08-27 23:33:49 -07:00
Peter Steinberger daf31a32dc fix(maintainers): preserve source coauthors in squash merges (#131570) 2026-08-27 23:10:52 -07:00
Peter Steinberger 9a38b5ec8f fix(test): clean fallback SQLite state after test runs (#131313)
* fix(test): clean fallback SQLite state after test runs

* test: make temporary-state fixtures ownership-aware

* fix(scripts): resolve test temp helper in native Node
2026-08-27 23:04:57 -07:00
Peter Steinberger 87122facbd feat(ui): sidebar Project grouping and truly flat None mode (#131543)
* feat(ui): sidebar project grouping and truly flat None mode

Group by: None now renders one flat session list — no Other/Groups/Coding
zone headers — matching what None promises. New Group by: Project buckets
sessions by their resolved repo/workspace checkout, folding
.claude/worktrees checkouts into their origin repo via the same rule the
harness catalogs already use; checkout-less rows keep their smart zones,
mirroring Person mode.

* test(ui): scope settings-layout advanced-disclosure clicks to its own summary

Companion to #131541, which fixed the strict-mode violation in
config-form-guidance: settings-layout carries the same under-scoped
summary locator; scope it to :scope > summary before it can trip the
same way once its clicks happen against expanded advanced content.

* fix(ui): canonicalize checkout paths inside the shared worktree fold

ClawSweeper P2: sidebar Project mode keyed sections by the raw
workContext.path, so /repo/openclaw and /repo/openclaw/ minted two
identical headers. Move trailing-separator stripping into
foldWorktreeCheckoutPath so the catalog and sidebar callers share one
canonicalization; regression case fails pre-fix.
2026-08-27 23:00:44 -07:00
Vincent KocandPeter Steinberger d7b0e07f4c fix(sandbox): revert Daytona cloud sandbox plugin (#130996)
* fix: remove Daytona sandbox plugin

Retire the unshipped cloud sandbox provider and its exclusive dependency closure; preserve Crabbox and standalone Daytona hosting documentation.

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* test(ui): await catalog terminal restore completion

Wait for catalog RPC dispatch and pending-intent completion before asserting exactly one restored terminal. Reuse the request filter without weakening payload, activation, or cache checks.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 22:31:04 -07:00
Peter Steinberger 648d0c43c8 fix: reuse package-local plugin memory artifacts (#131538) 2026-08-27 22:22:21 -07:00
Vincent Koc d4c1acb59c fix(ci): restore Crabbox publisher credentials (#131535) 2026-08-28 13:13:18 +08:00
Peter Steinberger cd7b282ed8 fix(sessions): migrate long histories without exhausting heap (#131276)
* fix(sessions): bound legacy transcript import memory

Stage transcript payloads and deduplication in private temporary SQLite storage before the existing atomic import. Rebuild projections from navigation metadata and stream payload reads rather than retaining entire histories. Preserve exact handoffs, source validation, and archive recovery.\n\nFixes #127468.

* build: register doctor transcript staging SQL boundary

* perf(doctor): bound healthy history checks and import cleanup

Stream unchanged header and label detection while retaining exact snapshots and atomic guards for positive repairs. Reuse one import-finalize operation for handle closure, schema maintenance, and automatic incremental vacuum.

Keep full integrity checks, NONE-mode conversion, and explicit full compaction. Verified constrained-heap regressions, real historical upgrades, complete long-history Docker cases, process interruption, source mutation, and temporary-volume exhaustion.
2026-08-27 21:44:41 -07:00
Peter Steinberger d83a53dd2f fix(ui): avoid standalone validator startup stalls (#131497)
* fix(ui): avoid standalone validator startup stalls

* test(ui): preserve fixture env overrides on Windows
2026-08-27 21:44:06 -07:00
Peter Steinberger 02f56eb6ce ci: replace hand-fitted shard timings with committed measurements (#131379)
* ci: use committed measurements for test sharding

Regenerate UI file and runner-specific compact weights from successful CI log medians, with outlier filtering and a 15% write threshold. Keep existing hints as cold-start fallbacks and account for per-file UI overhead without deriving membership from timing keys.

Add a daily standing-PR refit workflow, strict cached loading, fixture coverage, and operator docs. Verify all 302 UI files form identical complete partitions across 22 fresh processes.

* fix(ci): prune stale test timings and trust runner labels

Remove unobserved timing keys only after three sampled runs and report removals in the refit table. Bucket compact measurements using jobs API labels and include all main run attempts without counting retries as independent samples.

Document contended compact walls and the hosted cold-start fallback. Preserve committed timing data and existing sharding behavior; verify 70 focused tests, all 11 UI shards, five corruption fallbacks, live refit, changed checks, workflow checks, and Codex autoreview.

* fix(ci): prune timings per profile with observed evidence

Pruning used one global run count, so a profile with no observations in
the sampled window had its whole committed map deleted. Hosted weights
could never accumulate, and a partial log-fetch failure could drop every
UI E2E entry in a single refit.

* fix(ci): keep preflight timing validation dependency-free

PR preflight builds its manifest with bare Node before dependency installation. Replace the timing schema dependency with strict all-or-nothing validation and preserve the CiTestTimings type.

Walk workflow-derived planner imports in a bounded, cycle-safe regression guard. Keep the refit CLI outside that dependency-free boundary, and document the coercion-helper exception for preflight.

* test(ui): settle typography picker popup animations

* fix(ci): guard timing refit sampling and publication
2026-08-27 21:42:00 -07:00
Vincent KocandPeter Steinberger ec3a8343c5 fix(ci): keep plugin fixture validation compatible with capability consent (#131208)
* fix(ci): accept plugin fixture capabilities

* fix(ci): detect fixture capability consent support

Probe candidate command help through the existing bounded E2E runners so
positive fixtures accept capabilities only when that command supports it.
Preserve historical packages, probe failures, argv, and child exit status;
keep negative, no-op, and integrity-bound update coverage unapproved.

Replace duplicated probes and source-string checks with executable
compatibility regressions. Synchronize the RPC timeout test with real
process readiness before advancing its unchanged 100 ms deadline, while
retaining real process-group termination and cleanup.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

* fix(ci): run Docker lanes from trusted harness

Resolve package scripts and packaging tools from the trusted harness while
keeping candidate source, artifacts, registry identity, and preflight on
the frozen target. Remove candidate-script lane filtering and the duplicate
live command wrapper; preserve source inputs in source-built Docker lanes.

Prove the public scheduler boundary with distinct harness/target roots and
poisoned candidate scripts. Synchronize scheduler timeout fixtures with real
child readiness, retain real signals and kill grace, and handle empty QR
build arguments on Bash 3.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

* test(ci): retire superseded harness source assertions

Keep the workflow trust and pnpm PATH guards, but remove checks for the
old inline replacement and deleted duplicate live-script wrapper. The
public scheduler regressions now prove those behaviors through distinct
candidate/harness roots and quoted pinned pnpm commands.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

* test(ci): cover multi-build source roots

* fix(ci): select the harness toolchain before Docker lanes

Start prepared pnpm commands in the trusted harness before Corepack resolves
its package-manager pin. Preserve frozen candidate source and artifact
identity, and resolve relative executable and cache paths before changing cwd.

Keep quoted rerun environment values out of executable substitution. Cover
different toolchain pins, shell-sensitive paths, and generated reruns through
the public scheduler boundary.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 21:34:12 -07:00
Peter Steinberger b5885ac0ef fix(tooling): keep UI baseline hints off shared tsx caches (#131516) 2026-08-27 21:33:23 -07:00
Peter Steinberger 099fc6b056 fix: preserve Control UI assets during source rebuilds (#131477)
Keep Vite-owned dist/control-ui output through TypeScript wrapper cleanup
while still removing stale runtime chunks and plugin staging. Source
launcher and gateway-watch rebuilds retain the existing UI; UI edits still
need ui:build or ui:dev.

Replace the mock-only launcher assertion with real preparation-boundary
coverage, consolidating declaration and startup-metadata cleanup cases.
Historical context: Control UI preservation repair #10146.
2026-08-27 21:16:59 -07:00
Peter Steinberger eda219c4c2 perf(plugins): keep state-db write machinery out of metadata read paths (#131417)
* perf(plugins): keep state-db write machinery out of metadata read paths

Metadata-only CLI reads (openclaw plugins list --json and friends) loaded
the full Kysely-backed state-db graph (~250 modules) through three
read-path fusions. Split them, behavior-neutral (module layout and
imports only):

- installed-plugin-index-store.ts now only reads/parses; the write,
  restore, and refresh functions move verbatim to
  installed-plugin-index-store-write.ts (write transactions are sync per
  the SQLite commit doctrine, so this is a module split, not a dynamic
  import). Writer callers and test mocks route to the write module.
- refreshPluginRegistry moves out of plugin-registry-snapshot.ts into
  plugin-registry-refresh.ts, and the plugin-registry.ts barrel no
  longer re-exports it: ESM evaluates every barrel re-export source, so
  that one writer re-export dragged the write graph into every barrel
  consumer on the metadata path.
- openclaw-state-db-readonly.ts no longer imports the heavy
  openclaw-state-db.js module: cache-trio calls go straight to
  openClawStateDatabaseCache, constants come from
  openclaw-state-db-contract.js, and
  registerNodeSqliteKyselyQueryErrorHandler moves into
  kysely-sync-cache-state.ts (that module's stated charter). Doctor and
  gateway schema preflights read OPENCLAW_STATE_SCHEMA_VERSION from the
  contract module instead of value-loading the heavy module; the
  now-dead wrapper exports are deleted or un-exported.

Module-load census on the built CLI (module.registerHooks recorder,
isolated HOME): the installed-plugin-index / manifest-registry / store /
readonly / snapshot chain no longer imports the openclaw-state-db chunk,
and the write module does not load on plugins list --json. kysely itself
still loads via the separately owned config-io fusions (io.health-state,
legacy-config-migrations -> config-machine-state,
sqlite-audit-record-store, cron store) - the remaining named follow-ups
from #131181.

Named follow-up from #131181 (f49d25052e).

* test: reroute state-db test imports to contract and cache modules
2026-08-27 20:46:29 -07:00
Vincent Koc a03cc38b05 feat(ci): add admin-only Crabbox PR gate fallback (#131091)
* feat(ci): add admin-only Crabbox PR gate fallback

* fix(ci): satisfy crabbox publisher lint

* fix(ci): accept bounded crabbox event previews

* fix(ci): revalidate protected main before gate publication

* fix(ci): preserve aggregate gate semantics

* fix(ci): trust GitHub job metadata for bypass

* fix(ci): allow Crabbox proof on draft PRs

* test(ci): type Crabbox workflow steps

* fix(ci): bound Crabbox AWS gate lease

* fix(ci): focus Crabbox gate proof

* fix(ci): derive Crabbox proof from PR changes

* fix(ci): repair Crabbox gate validation checks

* fix(ci): accept portable timeout behavior
2026-08-28 11:45:46 +08:00
Peter Steinberger 16b0c1f251 fix(live): repair model E2E selection and session fixtures (#131229)
* fix(ci): accept valid focused live suite selectors

Match exact provider and media shard IDs to their enabled matrix profiles. Exercise the actual validator against all emitted suite selections.

Fixes #131204.

* fix(ci): forward DeepSeek credentials through live test hydration

* fix(ci): run local TTS live tests on the media runner

* test(moonshot): honor replay models and asynchronous stream contracts

* test(memory-lancedb): verify exact duplicate memory results

* test(skills): create valid sessions for experience review

* test(live): use current provider models and thinking capabilities

* fix(gateway): avoid pending model switches on new sessions

* test(gateway): advertise trajectory approval rendering capability

* test(setup): retain redacted inference failure diagnostics

* refactor(gateway): reuse unavailable model catalog handling
2026-08-27 20:09:39 -07:00
Peter Steinberger 6f59c0a3fe test: honor capability consent in managed plugin fixtures (#131389) 2026-08-27 19:32:11 -07:00
Peter Steinberger f1e996068d perf(test): batch planner scans and preserve Git inventories (#131382) 2026-08-27 19:03:15 -07:00
Peter Steinberger 0b768541cb fix(crabbox): avoid resending the full checkout for changed gates (#131224) 2026-08-27 18:04:59 -07:00
Peter Steinberger cc687155e8 fix(scripts): speed up staged environment-variable checks (#131319) 2026-08-27 17:43:50 -07:00
Josh Avant e1c7201c87 fix(telegram): preserve forum admission identity in audit (#131293)
* fix: preserve Telegram forum admission identity

* test(telegram): use ingress test runtime boundary
2026-08-27 17:43:35 -07:00
Peter Steinberger af52e62e85 fix(test): prepare shared builds before parallel workers (#131297) 2026-08-27 17:30:31 -07:00
Peter Steinberger 0706297cbd fix(scripts): include mts files in typed lint project (#131268) 2026-08-27 16:48:26 -07:00
Peter Steinberger 4377b6423c fix(install): preserve Unicode in macOS JSON output (#131244)
* fix(install): preserve Unicode in macOS JSON output

* chore(install): keep release notes in PR context
2026-08-27 16:46:42 -07:00
Peter Steinberger 5c67c7161c feat(ui): rename automatic placement to Auto with a least-busy subtitle (#131215)
* feat(ui): rename automatic placement to Auto with a least-busy subtitle

The Where chip's automatic option read "Any available node" — the widest
chip in the composer row, and "node" clashed with its own "Your devices"
section header. The menu row is now "Auto" with a "Least-busy device"
subtitle (the selector genuinely ranks by free worker slots), and the
collapsed chip shows "Auto". i18n key renamed anyAvailableNode -> autoDevice
(en-only string; other locales fall back); docs updated to match.

* test(ui): add where-chip Auto placement proof capture script

* chore(scripts): register the where-chip proof capture as ui:proof:where-chip

* fix(ui): describe Auto placement per runtime selection rule

Remote-exec runtimes select by eligible device order, not free worker
slots; the Auto row's subtitle now says "First eligible device" when the
resolved agent runtime is remote-exec and keeps "Least-busy device" for
worker-turn and unresolved default runtimes, matching server policy.
2026-08-27 16:44:34 -07:00
Patrick Erichsen 7b7858d955 feat(clawhub): show security audit before installs (#131233)
* feat(clawhub): show audit details before install

* test(clawhub): update fixture audit contract
2026-08-27 16:20:59 -07:00
zengLingbiaoandPeter Steinberger 213804d770 fix(agents): redact reflected credentials from provider error detail and reason phrase (#120200)
* fix(web): redact request credentials from provider errors

Bind bounded error diagnostics to the actual outgoing request headers for
shared web tools and both Perplexity transports. Preserve caller cancellation
and replace case-insensitive owned headers without combining credentials.

Reuse the provider error redactor and remove duplicate xAI parser-only test
paths while retaining real HTTP and sibling coverage. Production -18 lines;
total -14 lines including regression tests and documentation.

Refs #120200, #117304, #119536.

Co-authored-by: zenglingbiao <zeng.lingbiao@xydigit.com>

* fix(tooling): install managed signals before spawning children

Prevent early SIGTERM from orphaning a detached compiler before its supervisor
registers the child. Retain shared handlers for concurrent commands and clean
them up after synchronous or asynchronous spawn failure.

Reproduce the race at the real process boundary and consolidate stale type
comments and one-use registration wrappers.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 16:17:30 -07:00
Dallin Romney cde1383a3a fix(installer): avoid prerelease Node from Linux package repos (#130369)
* fix(installer): provision Node LTS on Linux

* test(installer): verify Debian Node provisioning
2026-08-27 15:11:59 -07:00
Peter Steinberger f49d25052e perf(startup): measure default resolve path and gate debug-capture imports (#131181)
The startup-memory CI gate injected its RSS hook via --import, which since
#128663 declines the dist ESM resolve fast path, so the gate measured a
non-default slow-resolution configuration (~400 MB on Blacksmith) instead of
what plain invocations pay (~243 MB). The bench now runs the launcher
in-process from a wrapper with a clean execArgv and self-reports max RSS at
exit.

CLI bootstrap also imported proxy-capture/runtime and coverage on every
non-help invocation even though capture init, finalize, and coverage warnings
all no-op unless OPENCLAW_DEBUG_PROXY_ENABLED/REQUIRE is set; the import graph
(sqlite capture store, proxyline, undici) now loads only when the env requests
capture. Config reads import the gateway-startup metadata module directly
instead of the facade that also re-exports the startup loader.
2026-08-27 15:00:45 -07:00
Jason O'Neal 84064a94c3 fix(installer): avoid duplicate gateway restart (#130900) 2026-08-27 14:22:13 -07:00
Peter Steinberger 77746299ea refactor(imap): consume the core identifier-authentication scale (#131178)
* refactor(imap): consume the core identifier-authentication scale

Use the SDK type and canonical strength comparator instead of the private
SenderStrength vocabulary and index ordering. Bind config values to the SDK
union with a compile-time exhaustiveness check, preserving all config keys.

Classify unproven From ownership, including no-evidence and DMARC temperror
results, as unverified. Only an explicit unverified minimum gains admission;
the default verified floor and asserted minimum keep their behavior. Keep
existing token admission and thrown-authenticator retries unchanged.

Document the remaining mutable token/early-rejection paths and expose only
the canonical comparator through the SDK, with packaged-consumer coverage.
The IMAP introduction has no stable release contract.

* docs(security): record landed sender-auth mitigations in the threat atlas

Record the graded exact-pair identifier-authentication gate and inert mutable
allowFrom audit findings. Mark R-008 implemented in core while retaining
per-channel verified adoption and downstream mappers as remaining work.
Keep the existing atlas structure and Medium residual risk.
2026-08-27 14:19:39 -07:00
Peter Steinberger 5f8fd586e7 feat(ci): alarm and self-heal when the docs mirror goes stale (#131173)
Both halves of the docs publish starvation bug (openclaw/docs b4b130bd8,
#131155) were discovered by noticing stale published docs, not by any alert:
nothing watched whether the openclaw/docs mirror actually tracked docs-touching
commits on main. A broken sync (dead token, MDX failure, disabled workflow,
GitHub incident) would again go unnoticed.

Add a scheduled Docs Mirror Freshness check (every 30m) that parses the watched
paths from docs-sync-publish.yml itself - so the staleness definition can never
drift from the sync trigger - finds the newest docs-touching main commit via
the commits API, and compares it against the mirror's .openclaw-sync/source.json
SHA. When the mirror trails by more than 60 minutes it dispatches one
docs-sync-publish recovery run (skipped when a sync is already queued or in
progress) and fails the run so the workflow actor is notified.

The check lives in openclaw/openclaw rather than openclaw/docs because the path
filters it must judge against live here, and same-repo workflow_dispatch heals
with the default GITHUB_TOKEN instead of a cross-repo PAT.

Live-proven: fresh path against the real repos; stale path (detection,
active-run suppression, failing exit) via a simulated stale mirror SHA;
recovery dispatch endpoint via a real manual sync run (33113089552).
2026-08-27 13:45:14 -07:00
Peter Steinberger a509254b16 feat(security): warn on inert mutable allowFrom entries (#131129)
* feat(security): warn on inert mutable allowFrom entries

Report configured entries that cannot authorize with name matching disabled,
and preview lockout counts before disabling mutable matching. Distinguish
mutable aliases from exact identifiers with unproven ownership in audit text.

Reuse channel ingress declarations through one SDK classifier without changing
admission policy. Keep Discord audit findings redacted and exclude symbolic
access-group references from mutable-identifier warnings.

Refs #131099.

* test(security): keep entry-authentication audit coverage in its lanes
2026-08-27 12:33:12 -07:00
Vincent Koc 30aa2794d9 fix(update): preserve plugin convergence through package restart (#131062)
* fix(update): preserve plugin convergence during package upgrades

* fix(e2e): isolate upgrade restart auth setup

* fix(e2e): isolate candidate restart config

* fix(doctor): skip repairs for disabled plugins

* fix(e2e): use canonical identity for restart install

* fix(update): release plugin lease before doctor

* fix(e2e): seed upgrade companion installs

* fix(e2e): validate companion install versions

* fix(ci): register upgrade config parking script

* test(plugins): type npm install config fixture
2026-08-28 03:26:43 +08:00
Peter Steinberger ce0fafefce fix(tooling): avoid build and test startup stalls on shared tsx caches (#130924)
* fix(tooling): avoid shared tsx cache startup stalls

Use the shared preloader before tsx initializes so maintained build, check, and test commands retain memory transforms without scanning other checkouts' disk caches. Preserve changed-cwd forks and copied tooling closures.

* test: align command contracts with tooling bootstrap
2026-08-27 10:36:12 -07:00