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