2545 Commits
Author SHA1 Message Date
Vincent Koc 4e9c622eab fix(release): prove landed FRV controller commits (#132289) 2026-08-29 11:44:31 +08:00
Peter SteinbergerandVincent Koc 31baa67f98 fix(ci): avoid unnecessary release verification delays (#132271)
* fix(ci): avoid unnecessary release verification delays

* test(ci): align release phase guard with coverage identity

* fix(ci): canonicalize minimum release coverage lock

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-29 11:01:15 +08:00
Ayaan Zaidi cff996e413 feat(qa): add Convex-leased Telegram userbot proof (#131715)
Replace Telegram Desktop and Mantis proof plumbing with a repository-owned Telegram Test Server skill and ten Convex-leased headless user sessions. Workers keep full harness freedom while the broker owns only exclusive lease lifecycle.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-29 07:56:30 +05:30
Peter Steinberger 4b8a2a7d93 fix(ci): stop Git descendants before standalone checkout reuse (#132169)
* fix(ci): stop Git descendants before standalone checkout reuse

* fix(ci): join Git groups after cleanup inspection failures

* fix(ci): preserve cancellation during Git timeout cleanup

* test(ci): launch zombie probe inside its owned workspace

* test(ci): retain observed checkout process lifetimes
2026-08-28 19:02:40 -07:00
Dallin Romney 831e2de0a3 fix(ci): support frozen target tooling (#127002) 2026-08-28 18:06:17 -07:00
Patrick Erichsen 6886458244 fix(github): classify new skills before Barnacle close (#132225)
* fix(github): classify new skills before Barnacle close

* fix(github): classify grouped bundled skills
2026-08-28 18:04:23 -07:00
Peter Steinberger e4001d8914 fix(browser): native bootstrap stalls before replying (#132212)
* fix(browser): unblock compiled native-host bootstrap

Load canonical config and pairing only after native-host validation. Keep
pure Browser URL and port helpers out of transport and mixed runtime
barrels, register the existing private CDP SDK export, and remove obsolete
bridge exports.

Run the extracted compiled-host integration case in the existing artifact
CI job with exact report validation. Preserve the custom installation
context, native framing, private Node trampoline, and 10-second deadline.

* fix(build): map private Browser SDK declarations

Complete browser-cdp registration in the shared plugin package-boundary
paths and XAI's matching override. Keep the SDK JavaScript-only in the
published package while using package-built declarations inside the repo.

The unchanged package-boundary contract reproduced the missing mapping
before this fix. No native-host runtime, fixture, assertion, or deadline
changes are included.
2026-08-28 17:55:06 -07:00
Peter Steinberger b85a049da5 chore: migrate tooling and source installs to pnpm 12 (#131043)
* build: migrate tooling and source installs to pnpm 12

Pin the verified native toolchain without changing application dependency
versions. Preserve the existing release-age policy explicitly and separate
package-manager lock metadata from the application dependency graph.

Use exact checkout pins for bootstrap and rollback, approve only the native
pnpm installer where npm requires it, and retain global install ownership
without equating the CLI major to the storage layout. Verify the Docker
runtime toolchain offline as its non-root user.

Remove duplicate bootstrap paths and obsolete prune input, update native
CLI flags and regression fixtures, and preserve UTF-8 in macOS Bash
installer NDJSON output.

* fix(build): isolate production dependency installs for pnpm 12

Build production dependencies from the same frozen manifest inputs instead
of pruning the inherited development tree. pnpm 12's native hoisted
importer cannot rename lower-layer OverlayFS directories during pruning.
Preserve native addon outputs, workspace builds, and offline non-root
Corepack use while deleting the obsolete production-store seeder.

Exercise runtime assembly and explicitly consent to the local agent-plugin
E2E fixture under the current plugin capability contract.

Validated full Matrix image and offline non-root runtime, focused Docker
regressions, full checks with test types and architecture, docs, real
agent-plugin gateway E2E, and isolated Codex autoreview.

* test: align package smoke with pnpm 12 global installs

* test: follow native pnpm artifact approval in distribution guard

* test: modernize pnpm fixtures for v12

* test: align rebased update fixtures with pnpm 12

* test: retain sanitized upgrade restart diagnostics

* test: expose CI navigation failures and register diagnostics

* test: retain post-core outcomes and plugin artifact identity

* chore(tooling): group upgrade diagnostic entrypoints

* fix(update): support native pnpm global installs and source links

Qualify local source and archive specs, carry verified global ownership through pnpm configuration, and verify intentional checkout links with shared runtime-readiness checks. Preserve strict packaged-install verification and manager ownership safeguards.

Verified the production updater with pnpm 11.22 and 12 using default and custom roots, source links, and tarball updates.

* test: preserve survivor diagnostics after service sealing

Promote incomplete exit-zero runs before failure capture and exercise the sealed-service manager fixture without inventing successful child exits.

* fix(update): preserve legacy pnpm global ownership

Carry the verified root and bin through both pnpm and npm configuration dialects after original-environment probes. Real pnpm 10 custom-root updates and pnpm 11/12 source and tarball matrices pass without redirecting the caller or weakening ownership checks.

* test(update): verify wizard consent through checkout handoff

Use the prepared checkout and fresh-process finalization boundary introduced by the updater repair. Preserve explicit consent forwarding before and after the wizard subcommand without assuming plugin callbacks run in the old process.

* refactor(update): validate checkout build metadata records

Use the canonical record coercer instead of carrying an unchecked assertion into the shared runtime verifier. Remove the now-unused grandfathered assertion entry; no allowance is added.

* docs(sandbox): document standalone common-image inputs

* test(packaging): account for required native prebuilds

Align installer and release size budgets at 235 MiB for the required native payload added on main. Keep both loader layouts, upstream binaries, explicit overrides, and missing-data rejection intact. Exercise actual defaults and the one-byte boundary. Retain bounded stderr diagnostics for the intermittent Bun signal test without claiming a production signal fix.

* test: align refreshed installer fixtures with pnpm 12

* fix(test): share Bun smoke force-kill ownership

Record the successful force-kill once across the timer and post-close drain. Native Darwin traces reproduced both duplicate-signal orders; genuine permission failures and uncleared groups still fail without extending deadlines.
2026-08-28 17:43:09 -07:00
Peter Steinberger ad6739064e fix(ci): avoid false checkout cleanup failures on macOS (#132204)
Verify zombie-only process groups through the existing checked census while keeping live signal denials and uncertain cleanup fail-closed. Preserve the original cleanup budget and missing-group fast path.\n\nDrive fixture timeouts from tree readiness, observe active POSIX process state, and cover retained zombies plus live signal denial without a production test seam.\n\nRefs: https://github.com/openclaw/openclaw/issues/132184\nRefs: https://github.com/openclaw/openclaw/issues/132194
2026-08-28 17:25:21 -07:00
Dallin Romney ea1a547437 fix(release): distinguish Anthropic validation jobs (#132216) 2026-08-28 17:21:48 -07:00
Peter Steinberger 9db3496012 ci: avoid redundant full release preparation (#132221) 2026-08-28 17:12:45 -07:00
Peter Steinberger 021f8b6c66 fix(macos): preserve status-less health probe errors (#132062)
* test(macos): reproduce status-less health probe diagnostics

* fix(macos): preserve status-less health probe diagnoses
2026-08-28 15:52:55 -07:00
Peter Steinberger 050e2883b4 fix(ci): stop leftover Git processes before checkout retries (#132105)
* fix(ci): stop leftover Git processes before checkout retries

* fix(ci): consolidate checkout process ownership across platforms
2026-08-28 15:13:49 -07:00
Peter Steinberger 6e6a0e59fd fix(qa): keep leases when Gateway startup teardown fails (#131740)
* fix(qa): keep leases when Gateway startup teardown fails

Retain a synchronous QA child owner through startup, replacement, and explicit finalization. Release Gateway-backed transport leases only after authoritative process settlement, independently of cleanup diagnostics. Preserve failure artifacts and primary fixture errors.

Fixes #131643

* test(qa): keep fixture cleanup inside plugin boundaries

* test(qa): retain integrated fixture owners and stop observations

* ci: follow renamed local JSONL socket owner in CodeQL

* test(qa): record reviewed cleanup error suppressions

* test(ci): exercise PR-native network semantic review

Route sensitive changes into the existing semantic gate and restore configured net-policy coverage. Add actual query fixtures, including an intentional red checkpoint for JavaScript-family raw clients before the follow-up predicate repair. PR remains draft until semantic proof and final CI pass.

* fix(ci): classify supported JavaScript network sources

Preserve the existing directory and owner boundaries across TS, MTS, JS, and MJS. Hosted semantic regression 33190472078 failed on exactly the three missing executable rows; expected findings and test exclusions remain unchanged.

* test(ci): isolate network fixtures and retain guard coverage

Use independent fixture stems and explicit MTS extractor inputs while preserving every expected finding. Scan the semantic fixture root for duplicates and keep the exact socket-owner assertion insensitive to formatting.

* test(qa): return confirmed stop in WhatsApp cleanup fixture

* test(qa): own Discord attachment gateway before startup

* ci: fail closed on unavailable CodeQL diff metadata

* test(oc-path): measure synchronous worker CPU budgets
2026-08-28 14:31:29 -07:00
Peter Steinberger 697f773c4a feat(visitor-access): internal Cloudflare Access visitor plugin (#132073)
* feat(visitor-access): add internal Cloudflare Access visitor grants

Manage a dedicated app-scoped email allow policy without changing maintainer
policies or identity providers. Add invite, revoke, and bounded drift-aware
list tools with durable grant records and default 14-day expiry.

Share one Gateway-owned manager across tool discovery and expiry sweeps;
preserve cleanup records through remote failures and fence stopped services.
Keep this private source-built plugin out of the npm release.

* test(plugins): allow visitor-access gateway_start hook registration

The bundled typed-hook contract keeps hook registrations on an explicit
allowlist; visitor-access registers gateway_start for its expiry sweep.
2026-08-28 14:28:32 -07:00
Vincent Koc f30e480a70 perf(release): pipeline full release validation (#131914)
* feat(release): split release child phases

* feat(release): acquire shared candidates once

* fix(release): seal candidate publisher identity

* fix(release): separate published package inputs

* fix(release): rebuild overridden acceptance images

* fix(release): preserve phased candidate identity

* test(release): cover phased validation workflows

* fix(release): integrate phased candidate acquisition

* fix(release): type phased recovery fixtures

* test(release): cover phased validation inputs
2026-08-29 05:11:05 +08:00
Peter Steinberger 5cc301aaac refactor(release): remove unused GitHub publisher helper (#132068) 2026-08-28 13:18:10 -07:00
Vincent Koc 944cff7cef feat(release): reuse exact full release candidates (#131818)
* feat(release): reuse exact full release candidates

* test(release): satisfy candidate evidence types

* test(release): pin candidate artifact name

* fix(release): harden candidate reuse availability

* fix(release): bound candidate discovery time

* fix(release): enforce candidate download deadline

* fix(release): fail closed on candidate lookup uncertainty

* fix(release): block selected candidate fallback

* docs(release): clarify candidate discovery failures

* test(release): assert candidate miss gate

* fix(release): fail closed on candidate scan limits

* refactor(release): isolate candidate reuse library

* docs(release): clarify candidate recovery authority
2026-08-29 03:45:14 +08:00
Peter Steinberger de7a0c0378 fix(ci): unblock macOS Swift test discovery (#131866)
* fix(ci): unblock macOS Swift test discovery

* fix(ci): isolate native Swift test build caches
2026-08-28 12:39:48 -07:00
Vincent Koc 2133a924ee fix(release): separate publisher and validation tooling trust (#132044) 2026-08-29 03:30:08 +08:00
MasterSwords1 ce39b03319 fix(tooling): run markdownlint on workspace templates (#91160) (#117166)
* feat(tooling): add isolated template markdownlint policy for workspace templates

* feat(tooling): wire isolated template markdownlint lane into docs check

* fix(ci): include template markdownlint config in docs change detection

* test(ci): guard template markdownlint config in docs change detection

* chore: retrigger CI
2026-08-28 12:21:13 -07:00
Peter Steinberger 2518b25d45 fix(qa): prevent early Discord bot reuse and implicit transcript rooms (#131883)
* fix(qa): prevent early Discord bot reuse and implicit transcript rooms

* chore(qa): defer the Crabline dependency update

* fix(ci): use public QA helper and gate skipped report fetches
2026-08-28 11:48:45 -07:00
e1050e8206 fix(discord): keep component attachment names through classic downgrades (#129823)
* fix(discord): keep component attachment names through classic downgrades

* test(discord): correct multipart and Gateway proof contracts

Require string-valued multipart JSON fields and assert the canonical settled
core delivery receipt instead of the plugin-only success envelope. Keep all
five raw-wire cases, including the explicit filename override, unchanged.

This is a diagnostic stage: the structured-component outbound adapter may
still drop its prepared filename override. Obtain the actual Gateway case
result before making another production repair; do not merge this stage.

* fix(discord): preserve prepared component filenames

Read the existing normalized filename before selecting the outbound payload
branch and forward it to the first structured-component attachment. Keep
later uploads' source names and existing Components V2 mismatch validation.

The built Gateway regression reproduced the dropped operator override before
this repair. Extend the existing adapter fixture with first-only classic and
V2 overrides plus rejection of conflicting V2 names before upload. All 38
focused owner and sibling cases pass; the five-case built Gateway rerun and
exact-head CI remain required before merging.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>

* test(docker): seed MCP history through canonical session APIs

Replace the MCP smoke fixture's retired session-file writers with the
packaged session entry and ordered transcript APIs. Preserve the existing
session metadata, message IDs, media facts, and unchanged MCP assertions.

Keep legacy migration owned by Doctor; do not change runtime startup or
the session schema to accommodate a stale non-migration fixture.

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 11:15:16 -07:00
Peter Steinberger 72ff36e97a fix(ci): prevent workflow lint stdin deadlock (#131982) 2026-08-28 10:59:56 -07:00
Peter Steinberger 8206e756ef docs: add unattended Team server update skill (#131881)
* docs: add unattended Team server update skill

* test: synchronize restart handoff consumers before timing
2026-08-28 10:56:04 -07:00
Vincent Koc b3986403dd fix(release): resume partial plugin npm publication (#131915) 2026-08-29 01:27:57 +08:00
Vitor Cepeda LopesandPeter Steinberger 787e602e22 fix(macos): read current channel health state (#128176)
* fix(macos): read current channel health state

* chore(macos): update native i18n inventory

* test(macos): cover gateway health verdict projection

Preserve the original contributor implementation while adding decoder and visible state regressions for hosted RED verification of #128172 and #128176.

* test(macos): capture isolated channel health components

* test(macos): load platform testing frameworks in isolated renders

* test(macos): capture health components on an opaque light canvas

* test(macos): reproduce unlinked fallback candidate regression

Temporarily exercise the exact proposed health projection in a separate test module. Keep production unchanged until the two unlinked-account cases have produced their expected failures in hosted Swift CI.

* test(macos): scope candidate diagnostic dependency imports

* test(macos): prove disabled channel health eligibility

* fix(macos): project authoritative channel health

Use the Gateway health verdict for current channel snapshots, preserve
startup grace, and keep explicitly unlinked or disabled accounts from
appearing as healthy fallbacks. Preserve existing selection order and
show selected disabled channels neutrally.

Consolidate state and summary presentation, retain the observed regression
cases in the canonical suite, and remove the temporary diagnostic target.
Update the native health documentation. Fixes #128172; refs #128176.

Co-authored-by: Vitor Cepeda Lopes <vitor@vitorcepedalopes.com>

* style(macos): expand health state property body

Match the CI SwiftFormat rule without changing the canonical health
projection or regression cases. Refs #128176.

* test(ci): preserve Swift build and test failure evidence

Model the coverage-enabled build before the single skip-build test run.
Verify build failure stops tests and render attestation, isolate the fixture
output file, and retain the first-test failure retry trap in both modes.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Vitor Cepeda Lopes <vitor@vitorcepedalopes.com>
2026-08-28 09:41:29 -07:00
Vincent Koc 404719374e fix(release): resume protected child publication (#131878)
* fix(release): bind publish parent identity

* test(ci): update bounded ClawHub fetch count
2026-08-29 00:18:12 +08:00
Vincent Koc 491769bded fix(release): separate parent approval identity (#131833) 2026-08-28 23:05:10 +08:00
Vincent Koc 62c77b0fb5 fix(release): pin publish children to approved tooling (#131798) 2026-08-28 22:26:12 +08:00
Vincent Koc 1186e6a6f3 feat(release): seal full release candidate evidence (#131751)
* feat(release): seal full release candidate evidence

* fix(release): harden candidate evidence validation

* test(release): cover candidate digest tuples

* fix(release): retain candidate tooling closure

* test(ci): refresh release candidate guard inventories

* test(release): decouple candidate workflow fixture
2026-08-28 21:44:21 +08:00
Peter Steinberger 60dcc53827 chore(deps): refresh seven-day-cooled runtimes and tooling (#131719)
* chore(deps): refresh cooled runtimes and tooling

Refresh selections published strictly before 2026-08-21T02:01:28Z while preserving inherited dependency identities and existing policy.

* fix(build): keep meeting CLI metadata dependency-light

Keep Teams and Zoom metadata discovery out of the meeting runtime graph, preserve CLI descriptors and output modes, and remove the unused factory that has not shipped in a stable release. Import-boundary regressions fail before the repair; all 21 focused tests and normal metadata generation pass without changing render deadlines or concurrency.

Defer the OpenShell dependency bump until its separately owned host-gateway fixture repair is available. Retain the existing version and installer reference; do not ship a policy or test workaround.

* test(cli): type-check meeting metadata registrations

* test(plugins): sync CLI metadata snapshot mocks

Cover the config-wide snapshot and projection exports used by the current main runtime load context. The original fixture failed 19 of 25 tests after the progressive cache update (#131442); all 25 now pass on both main and this candidate without changing production behavior or assertions.
2026-08-28 06:38:50 -07:00
Vincent Koc 17a1225314 fix(release): preserve publish evidence identity (#131782) 2026-08-28 21:37:10 +08:00
Vincent Koc 1454c60c18 fix(release): install cross-os baseline validation deps (#131756) 2026-08-28 20:28:25 +08:00
Vincent Koc d3a5f2333e fix(ci): allow crabbox proof across forward main (#131738) 2026-08-28 19:41:40 +08:00
Vincent Koc c28cb02384 fix(release): resume failed validation without repeating green jobs (#128141)
* fix(release): resume failed FRV child attempts

* fix(release): harden FRV continuation controller

* fix(release): bind FRV continuation source evidence

* fix(release): support historical FRV source evidence

* fix(release): bind historical FRV source inputs

* fix(release): bind historical FRV source evidence

* fix(release): preserve historical FRV source identity

* fix(release): align FRV continuation CI checks

* fix(release): disable fail-fast for FRV continuations

* test(release): align FRV fail-fast expectation

* fix(release): classify missing FRV artifacts centrally

* fix(release): recover FRV state from workflow artifacts

* fix(release): overwrite recovered FRV plan artifact

* docs(release): clarify FRV plan recovery

* fix(release): harden FRV continuation recovery

* fix(release): revalidate FRV tooling ref before dispatch

* fix(release): authenticate historical FRV plans

* fix(release): fail FRV when temporary ref cleanup fails

* test(ci): update FRV workflow routing expectations

* fix(release): declare FRV workflow ref helper

* fix(release): keep FRV recovery on the same parent

* fix(release): verify original dispatch on parent recovery
2026-08-28 19:35:10 +08: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
Vincent Koc b4117f26ac fix(ci): cache Robolectric SDK artifacts (#131628) 2026-08-28 17:27:52 +08:00
Peter Steinberger 4443a4a60c fix(ci): prepare shared release artifacts for every consumer (#131654)
* fix(ci): prepare shared release artifacts for every consumer

Derive the shared candidate preparation lanes from the release-path and plugin prerelease catalogs. Keep child execution scopes and immutable artifact verification unchanged. The executable workflow-step regression fails on the prior preparation path across beta, stable, and full profiles.

* test(ci): handle absent release planning job explicitly
2026-08-28 01:54:38 -07:00
Vincent Koc 0a068cf3f1 fix(ci): let plugin prerelease own registry artifacts (#131639) 2026-08-28 16:18:39 +08:00
weiqinlandPeter Steinberger 0fef6319fa fix(usage): preserve agent ownership for matching session IDs (#128803)
* fix(usage): attribute named sessions to their store owner in all-agent list

The all-agent `sessions.usage` list labeled durable (store-backed) session
rows with whichever agent discovery surfaced, instead of the store owner.
When a subagent spawned from a session left a discovery transcript that
reused the parent sessionId, the Sessions dashboard card showed the
subagent's id (e.g. `scout-research`) instead of the owning agent
(`main`).

Resolve the owner from the durable store key via
`resolveSessionStoreAgentId`, re-resolve the owner's transcript file, and
de-duplicate by store key so a reused subagent transcript cannot shadow or
duplicate the owner row. Unnamed discovery-only sessions keep using the
discovered agent id.

Closes #128755

* fix(usage): reject cross-agent transcript fallback for named sessions

Address the ClawSweeper review finding on #128755: when owner transcript
resolution returned no file, the `?? discovered.sessionFile` fallback
could load the subagent's reused transcript under the owner row, leaving
attribution and usage totals inconsistent.

Resolve only an owner-associated transcript for store-backed named rows.
When the owner transcript is absent the row stays attributed to the owner
with no usage loaded (cold cache) instead of substituting another agent's
transcript.

Move the two #128755 regression tests into a dedicated
`usage.sessions-usage-owner-attribution.test.ts` so the existing
oversized test file stays under the max-lines limit, and add a case
covering the unresolved-owner path.

* fix(usage): bind transcript resolution to the durable store owner marker

Address the ClawSweeper re-review finding on #128755: the owner-file
resolver accepted a store entry SQLite marker by sessionId alone, so a
marker reusing the sessionId under a different agent (e.g. a subagent)
could still substitute that agent's transcript for a main-owned row.

Guard the resolver call: parse the store entry marker and only forward the
entry when its embedded agent matches the resolved owner. When the marker
belongs to another agent, drop the entry so the resolver falls back to the
owner agent's own transcript directory (or no file), never the subagent's.

Add a regression covering a durable row whose stored marker names a
different agent.

* fix(usage): drop redundant type assertion for store entry sessionFile

SessionEntry already declares sessionFile?: string, so accessing it
directly avoids a non-const type assertion. Restores the assertion-safety
ratchet (8 > 7 baseline) without changing behavior.

* fix(usage): validate entry marker agent in transcript resolver

Move the store-entry SQLite marker ownership check into
resolveExistingUsageSessionFile itself: matchingEntryMarker now requires
entryMarker.agentId to equal the requested agentId, so a subagent marker
reusing a parent sessionId can no longer be substituted for the owner
transcript. This lets the all-agent usage list drop its redundant outer
guard (and its non-const type assertion) and simply request the owner
agent, restoring the assertion-safety ratchet baseline.

Adds a regression test in session-cost-usage.test.ts covering the mismatched
agent marker path.

* fix(usage): preserve selected-agent ownership for global list rows (#128755)

- Only resolve durable owner for agent-scoped named keys; keep discovered
  agentId for global/unknown so a scoped request keeps its own global row.
- Add scoped-global list-path regression test.
- Add real-state remote-proof test (no internal mocks) logging the RPC trace.
- Add positive marker-match test; trim verbose comments.

* fix(usage): drop unused eslint-disable directive in remote-proof test

* fix(usage): resolve global durable rows to owner in all-agent lists (#128755)

ClawSweeper P1: all-agent discovery is newest-first, so a subagent transcript
that reuses a global durable row's sessionId could still relabel the row.
Resolve global/unknown rows to their logical owner in all-agent lists while
keeping the explicitly requested agent for scoped lists.

- Add all-agent global-row regression test.
- Add authenticated Gateway WebSocket proof test capturing the RPC trace.

* test(usage): restore gateway token env after ws-proof server

* test(usage): add real-Gateway UI e2e proof for #128755 owner attribution

Add a real-Gateway Control UI e2e test that seeds the #128755 scenario
(main owns the durable telegram DM row; an opus subagent transcript reuses
its sessionId, discovery-only) and drives a real Chromium browser against a
loopback token-free Gateway. The Sessions usage dashboard must attribute the
Telegram DM card to its store owner (agent:main), never to the reused opus
subagent, with no duplicate/shadow row.

- Asserts the .session-bar-row for agent:main:telegram:dm shows agent:main
  in its meta and no agent:opus row appears.
- Captures a redacted isolated dashboard screenshot when
  OPENCLAW_CAPTURE_UI_PROOF=1 (sanitized test fixtures, loopback, no tokens).
- Registered in the checks-ui-e2e-real-gateway CI lane and excluded from the
  standard ui-e2e shard via uiE2eRealGatewayTestFiles.

* fix(usage): bind owner transcript to canonical durable target (#128755 P1)

ClawSweeper P1: resolveExistingUsageSessionFile still received storeMatch.entry,
whose sessionFile can hold a cross-agent legacy JSONL path. resolveSessionFilePathCore
intentionally accepts absolute paths from other agents, so a main-owned row
carrying an opus path would be labeled main while the opus transcript loaded
into main's usage group.

Resolve via the canonical durable owner target instead: pass a complete
sessionTarget (owner agentId + sessionId + store key + owner storePath) so
resolveExistingUsageSessionFile validates owner identity and returns the owner's
canonical SQLite marker, never consulting the cross-agent legacy file.

- Add regression: owner target rejects an existing cross-agent opus transcript
  file on the durable entry and returns the owner's sqlite:main: marker.

* fix(usage): join sessions by agent and transcript identity

Carry projected session ownership into usage reporting and preserve independent
cross-agent transcripts with equal IDs. Scope historical-family suppression to
the same identity, retaining canonical aliases within each agent.

Replace re-attribution and deduplication branches with one owner-aware join.
Add real-state ownership coverage and retain real-Gateway browser proof.
Stabilize neighboring cache range coverage by awaiting its real refresh.

Fixes #128755. Refines #128803. Thanks to @yetisoldier for the report.

Co-authored-by: LiuwqGit <liu.weiqin@xydigit.com>

* test(usage): seed browser transcripts within the active date window

* test(ui): assert reader anchoring across transcript growth

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 23:13:44 -07:00
Vincent Koc a33c8a5c0e fix(ci): route frozen FRV lint to matrix runner (#131376) 2026-08-28 13:46:28 +08: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
Vincent Koc d4c1acb59c fix(ci): restore Crabbox publisher credentials (#131535) 2026-08-28 13:13:18 +08: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 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
Patrick Erichsen cd9dc6eec2 fix(ui): render channel wizard output as plain text (#131427)
* fix(ui): render channel wizard output as plain text

* fix(ui): remove copy action from wizard notes

* docs(ui): add channel wizard visual proof
2026-08-28 02:50:20 +00:00
Peter Steinberger a6cc62fce5 ci: split Control UI E2E into 13 shards so it stops setting the wall (#131257)
* ci: split Control UI E2E into 13 shards so it stops setting the wall

checks-ui-e2e is the tallest CI job on main (387s worst observed). Its
shard imbalance is not a packing problem: measured across runs
33116963478, 33117411412, and 33117811987, control-UI shard bodies span
1.25-1.27x, and leave-one-run-out cross-validation shows hinting all 286
files gains ~13s at 11 shards and ~0-7s at 13-14, because per-file
run-to-run noise (p50 16%, p90 40%) swamps the residual prediction error.

What dominates is a fixed per-shard floor of 116s median / 143s p90
(checkout, pnpm install, Vitest transform) that no packing change can
touch. That floor varies randomly per job rather than per shard, so the
packer must not model it -- a constant added to every bucket never
changes greedy LPT's choice -- but it does set the shard count.

Raise the hosted/hybrid matrix from 12 to 14 rows (13 control-UI shards
plus the browser-extension row) and match max-parallel so the extra rows
do not queue. Replaying each run's real per-file times through the
packer moves the tallest shard body from 229/218/219s to 179/183/179s,
modelling the tallest row at 4:52 p50 and 5:20 p90 against 5:28/5:56.
Two extra registrations per run against a 6000/5min operating target.

Also correct the sequencer comment, which pointed the next maintainer at
the hint refresh that measurably does not pay, and record the
floor-based sizing rationale in docs/ci.md.

Note: this takes checks-ui-e2e off the critical path but does not reach
a 5:00 wall on its own -- checks-node-compact-small-11 (297-367s) and
checks-ui (276-331s) set a 5:42-6:32 floor behind it.

* docs(ci): correct the remaining eleven-shard Control UI E2E reference

The planner-descriptor paragraph still described the hosted and hybrid
profiles as eleven Vitest shards plus one browser-extension shard, which
was accurate for the previous 12-row matrix and contradicts the 14-row
plan in the same document.

Found by ClawSweeper review of #131257.
2026-08-27 17:45:41 -07:00
Peter Steinberger 6ac9e3eae6 improve(ui): hide session previews by default (#131066)
* improve(ui): hide session previews by default

* fix(ci): isolate startup RSS from parallel artifact checks

* docs(ui): match message preview menu label
2026-08-27 17:35:29 -07:00