Skip to content

fix(transcripts): failed automatic starts leave empty meetings - #137092

Merged
roboclaw-bot merged 64 commits into
mainfrom
steipete/transcripts-review-deslop-0b86d5
Oct 13, 2026
Merged

roboclaw-bot merged 64 commits into
mainfrom
steipete/transcripts-review-deslop-0b86d5

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes empty meetings remaining in the library when automatic capture never starts successfully and its retries are exhausted or abandoned.

User Impact

Failed automatic starts no longer leave phantom meetings. Existing meetings, accepted captures (including silent ones), captured speech, notes, exports, and operator-owned history are preserved. No new configuration, schema, SDK, or migration contract is introduced beyond target main. There is no product UI change.

The retained correction also fixes pending API-key catalog publication and explicit-client authentication selection, with their regression fixtures. Ad-hoc targets use their selected credentials; configured targets retain normal server-auth inference and device-identity rules.

Why This Change Was Made

The capture owner retains whether a failed admission inserted a new row. Abandonment deletes only that owner’s unchanged, stopped, empty, never-accepted candidate through the existing SQLite worker. Replacement adoption revokes stale retry custody. Failed-start restoration checks the committed descriptor revision, so it cannot overwrite a later metadata edit. Speech advances its separate content revision and remains preserved.

The correction is integrated with main 9a15afcfbdcc through the native baseline-refresh workflow, preserving contributor ancestry and the original review/merge receipts. Conflict resolution keeps main’s newer SQLite derived columns, catalog publication, subagent ownership, incognito snapshots, diagnostic reader, and Solid test ownership. Superseded duplicate helpers were removed rather than restoring retired implementations.

Evidence

  • Current focused production-boundary proof: all 287 tests in 14 files passed, four Vitest shards, 372.04 seconds wall time, through the standard pnpm test runner with --maxWorkers=1. Coverage includes automatic-start abandonment, replacement adoption, descriptor rewrites, accepted/reopened/nonempty meetings, real SQLite transaction/commit revocation, transcript tool callers, configured catalog publication, API-key login, explicit Gateway authentication, and pairing labels.
  • Static checks: production tsgo:core passed; targeted type-aware lint passed on 41 files with zero warnings/errors; formatting, diff checks, line-cap, SQLite worker/dialect ratchets, and native schema-version checks passed.
  • Independent review: full corrected candidate P0–P2 autoreview is scoped-clean. The incoming stale-retry deletion finding is resolved, not waived.
  • Build: pnpm build:ci-artifacts passed, including runtime/plugin output, all 154 public SDK subpaths, and the Control UI build. Build phases took 210.5 seconds; total wall time was 351.39 seconds, including the serialized artifact-owner wait. Proof executed on source tree 4f563be63630f5d5364437feed583a74a3ac5910 (signed as e0612efc8de8). Final candidate 6096db32f7dd only restores main’s equivalent temporary-variable form in one HTTP request-stage expression to remove a mechanical conflict; that proof is reused, not relabeled as a new run. Composition with native-captured main 06001d846eef is conflict-free.
  • Exact-head CI: CI run 38357099525 passed on 6096db32f7dde82d116acb9a3b6ca2c944f1e899 (716 seconds from creation to final update; job timings are linked in the run). The automatically triggered Build Artifacts workflow and Workflow Sanity also passed. Native completed-evidence qualification accepted these exact-head runs. No manual Testbox allocation, workflow rerun, or gate waiver was used.
Historical failures and remaining limits

Historical broad local attempts remain failed/incomplete; focused passes do not establish their original ordering or environmental causes. The last pre-takeover native attempt on 1835ca0ec5fd failed after 9,960 seconds; its terminating group reported 12 failed/494 passed files, 77 failed/5,611 passed/4 skipped tests, and nine errors. Observed problems included the protected agent-exec attribution refusal, Doctor subprocess timeouts and service-inspection fixtures, plugin-install fixture interactions, and an unverified worker teardown. The retained review records the original failures, investigations, and uncertainty; no host routing marker, credentials, service, assertion, timeout, or retention claim was weakened to make them pass.

The takeover’s full pnpm build attempt reached its 20-minute execution limit during global declaration generation. That attempt is not represented as a passing full build. A separate supported PR-artifact build qualifies the runtime and public SDK output; full package/release declaration proof is not claimed.

Earlier focused Gateway proof and interrupted broader proof remain historical evidence for their recorded source revisions, not current-head CI.

No live external meeting provider was exercised: synthetic providers drive the production lifecycle and real SQLite-worker boundaries. Old retained resource claims remain preserved for ownership-checked cleanup.

Original implementation and findings by @steipete.

Work sessions

Related: #136679.


View the OpenClaw team session

Keep continuous captures owned through aborted startup and delayed settlement after the shutdown wait expires. Retry exact-owner cleanup and report retained failures without losing the operator recovery path.
Expose the same bounded notes and intentional no-summary text in structured tool results. Keep the 12000-character cap and direct tool content unchanged.
Fence show results after authorization and awaited notes reads, including same-tuple captures that remain active. Preserve mutation selection authority.
Thread the meeting runtime config to the shared summary owner and use the descriptor agent identity for model selection. Preserve bridge capture, delivery and retry ownership.
Keep pre-provider admission and record insertion and acceptance at their owners. Retain one tuple across retries, remove only unchanged empty candidates, and preserve reopened meetings, captured notes and exports.
Retain exact capture cleanup after a provider accepts an occupancy start beyond the bounded shutdown wait. Retry through the same stop owner used by continuous starts when the first abort cleanup fails.
… model

The deslop pass removed the catch around the model summary attempt. On a multi-agent host with explicit ownership and no default marker, resolveDefaultAgentId throws for rows without an owning agent, which failed notes persistence instead of falling back to deterministic notes. Restore the contained fallback with a regression test, and state the retained-capture invariant at forgetCapture.
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling plugin: google-meet labels Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 06:31
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
roboclaw-bot and others added 10 commits October 1, 2026 06:44
Drop the task-local kernel rename, source-watch changes and regenerated inventory in favor of the existing main classification owner in #162442. Restore the already-reviewed functional repair tree unchanged before merging that owning main commit. The experiment remained staging-only and its evidence is retained.

Co-authored-by: steipete <[email protected]>
Integrate the existing main fix for the observed SQL inventory gate. Preserve the byte-identical reviewed repair delta and its original kernel path; do not add local allowlists, baselines or duplicate naming fixes.

Co-authored-by: steipete <[email protected]>
Apply the existing upstream fixture repair eecbd15 (#162623) to this reviewed landing candidate. Preserve the browser delete-retry assertions and extract the canary admission mock into its existing support owner. No test-limit or production behavior changes.

Co-authored-by: steipete <[email protected]>
Dispose the test-owned chat view before removing its DOM. The full-chat render added to the comment-controller fixture retained a composer resize listener across shared UI tests. Preserve the viewport assertion and use the existing reset owner.

Co-authored-by: steipete <[email protected]>
Integrate the required main changes without restoring retired transcript readers or redundant test matrices. Bind retry revisions to the text persisted by the original SQLite write, and keep the permission fixtures independent of the test process creation mask.

Co-authored-by: steipete <[email protected]>
Use the documented mock-isolation contract for the existing closed readiness dispatcher. It deliberately prevents fixture readiness reads from reaching the operator Gateway; no runtime code, assertions or baseline entries change.

Co-authored-by: steipete <[email protected]>
Integrate current main without reviving removed test suites or superseded auth ownership. Preserve committed descriptor custody during failed startup restoration so intervening rewrites survive retry and shutdown.

Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 10, 2026
roboclaw-bot and others added 2 commits October 10, 2026 05:10
Preserve catalog, incognito, HTTP, registry, and schema ownership while separating existing projections and protocol declarations. Keep moved account-catalog tests in protected PR coverage.

Co-authored-by: steipete <[email protected]>
Preserve configured and inferred auth modes while isolating config-free connections from unrelated ambient credentials. Keep proxy setup labels mode-bound and repair config-publication, Voyage polling, and Active Memory fixtures without weakening assertions.

Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Oct 10, 2026
roboclaw-bot and others added 5 commits October 11, 2026 05:04
Close the warm-ledger fixture state before removing its directory, await actual capture readiness, and keep local network probes on their owned listeners. Scope synthetic Git identity and unrelated Doctor readiness without weakening authority or response assertions.

Co-authored-by: steipete <[email protected]>
Wait for real startup catalog publication before changing the fixture endpoint. Verify one additional explicit refresh publishes the changed model and ordinary reads add no requests.

Co-authored-by: steipete <[email protected]>
Baseline-Refresh: 3bb7e58c75215f2f2e1e3b33f894b152244d1e03
Keep current main owners for catalog publication, incognito snapshots, process-held history, and diagnostic reads after the reviewed transcript baseline integration.

Co-authored-by: steipete <[email protected]>
Drop the correction-only temporary-variable cleanup so the current main request-stage change composes without a rebase. The expression is still evaluated once at the same point; behavior and transcript fixes are unchanged.

Co-authored-by: steipete <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 6096db32f7dde82d116acb9a3b6ca2c944f1e899
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/auth-resolve.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/pairing/setup-code.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

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

Labels

agents Agent runtime and tooling app: web-ui App: web-ui extensions: browser extensions: voyage gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. plugin: google-meet proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants