Skip to content

refactor(transcripts): stream meeting exports through the read worker - #167532

Merged
steipete merged 4 commits into
mainfrom
dbasync/t1meeting
Oct 9, 2026
Merged

steipete merged 4 commits into
mainfrom
dbasync/t1meeting

Conversation

@steipete

@steipete steipete commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Meeting transcript downloads and stop-time artifact exports execute SQLite on the Gateway main thread. Artifact export also rereads every 64 rows, so a concurrent reset can truncate the exported snapshot.

User Impact

JSONL and Markdown keep their existing formats and limits. Exports retain one database snapshot, and a revoked export lease cannot replace an already published artifact. Custom export roots retain their existing permission support.

There are no schema, stored-format, retention, permission, configuration, or Plugin SDK API changes. Guarded publication keeps the previous best-effort file/directory sync policy, including the Windows fallback contract, at the cost of one additional artifact-sized temporary copy. Linux runtime proof is below; other platforms were not separately exercised.

Why This Change Was Made

The existing shared-state read worker owns the export snapshot and ordered cursor. Bounded chunks wait for consumption; cancellation joins accepted asynchronous consumers and native cleanup. Worker failures never fall back to caller-thread SQLite. Artifact selection replaces a sequence-head query plus repeated 64-row queries with one head query and one cursor; empty artifacts skip the cursor. The obsolete native export iterator is removed.

Pending markers and manifest writes retain their existing writer, FIFO, transaction guards, and settlement behavior. Files publish through the filesystem owner's live mutation callback. The synchronous durable lease/database-ownership checks remain final-authority guards because native and foreign writers can revoke ownership without complete process publication. These checks add rare-operation cost; the measurements report that cost rather than treating relocation as a call saving.

The diff is 1,244 lines: production +439/−160, tests +433/−178, docs +24/−2, inventory tooling +6/−2. Production growth covers bounded consumer custody, the snapshot adapter, and guarded file publication. The retired native route and its exclusive tests are deleted.

Evidence

Pinned baseline bc162d9e05d5e8c776c37fb832c493e6d7bb927e and candidate 845baa7234ac8688929342b2d7db3163e1802ff1; one isolated AWS Linux x64 host, Node 24.21.0, SQLite 3.53.4. Ordinary Gateway runs alternated M1,C1,M2,C2,M3,C3. The export supplement then added M4,C4,M5,C5,M6,C6 on that same host after high duration ratios appeared. Every JSONL/Markdown/artifact output matched byte-for-byte. All final samples had zero failed SQL executions.

The shared SQL workload/native counter is unchanged; a task-owned copy adds the campaign request-census observer. It counts all successful native statement executions across MAIN, workers, and helpers. Product task sends, admission messages, reverse stream messages, and source-compiler requests are kept separate. SQL/census conservation matched every phase/thread/SQL group. Origin classification remains partial, so no foreground-only subtotal is used to pass the gate.

Ordinary Gateway budget

Cells are median [min–max], baseline → candidate. Warmed values are each run's ten-turn mean, then the side median. All ordinary-phase candidate/baseline median duration ratios are ≤1.006; there is no duration-skew rejection in this series. No ordinary-turn saving is attributed to this rare export change.

Phase All-thread SQL MAIN SQL Product requests
01.boot 2,741 [2,737–2,742] → 2,740 [2,737–2,741] 1,859 [1,859–1,859] → 1,859 [1,859–1,859] 60 [60–60] → 60 [60–60]
01.connect 396 [394–419] → 417 [399–420] 66 [66–66] → 66 [66–66] 56 [54–57] → 57 [55–57]
02.first-turn 3,673 [3,664–3,690] → 3,676 [3,664–3,689] 78 [78–80] → 78 [78–78] 372 [372–374] → 372 [372–374]
03.warmed-per-turn 1,428.2 [1,426.1–1,428.6] → 1,427.1 [1,426.6–1,427.6] 0 [0–0] → 0 [0–0] 300.6 [300.4–300.8] → 300.4 [300.4–300.6]
04.second-session 4,883 [4,879–4,914] → 4,890 [4,887–4,895] 91 [91–91] → 91 [91–91] 881 [879–884] → 881 [880–882]
05.control-plane 42 [42–44] → 42 [42–42] 0 [0–0] → 0 [0–0] 5 [5–5] → 5 [5–5]
06.cron 1,963 [1,943–1,969] → 1,944 [1,939–1,962] 50 [34–50] → 34 [34–50] 205 [204–209] → 205 [205–209]
07.compaction 778 [778–780] → 779 [779–780] 44 [44–44] → 44 [44–44] 91 [91–91] → 91 [91–91]
08.shutdown 1,060 [1,057–1,073] → 1,060 [1,057–1,061] 397 [397–397] → 397 [397–397] 105 [105–107] → 105 [105–105]

Comparing the samples at the side medians, the first-turn +3 is unchanged deferred cron work (+4 statements), minus one ACP poll; three admission probes move between existing read request owners without changing their total. The connect +21 decomposes into existing cron +24, device identity +3, and catalog −6 statements. The combined startup window passes the deferred-startup rule:

Run M boot+connect+first C boot+connect+first
1 6,825 6,825
2 6,797 6,825
3 6,834 6,833
Median 6,825 6,825

Boot+connect alone is 3,135 → 3,157 (+0.70%, within combined non-turn tolerance). Second-session +7 is within the +10 non-turn allowance and belongs to unchanged session readers/maintenance. Compaction +1 is an unchanged WAL checkpoint. Other differences are unchanged admission/maintenance timing; no meeting-export command occurs in the ordinary-turn series.

Ordinary phase timing and admission messages
Phase Admission messages Wall seconds
01.boot 14 [14–14] → 14 [14–14] 10.926 [10.179–15.613] → 10.103 [10.092–12.821]
01.connect 32 [32–36] → 35 [32–36] 1.169 [1.168–1.184] → 1.172 [1.165–1.175]
02.first-turn 253 [249–253] → 250 [249–253] 8.252 [7.993–8.474] → 7.997 [7.981–8.332]
03.warmed-per-turn 181 [181–181] → 181 [181–181] 18.686 [18.662–18.836] → 18.705 [18.662–18.768]
04.second-session 606 [606–612] → 606 [606–606] 7.537 [7.515–7.556] → 7.507 [7.472–7.56]
05.control-plane 2 [2–2] → 2 [2–2] 1.088 [1.085–1.099] → 1.086 [1.085–1.086]
06.cron 185 [185–190] → 190 [190–190] 5.45 [5.448–5.479] → 5.482 [5.455–5.485]
07.compaction 27 [27–27] → 27 [27–27] 1.514 [1.497–1.54] → 1.505 [1.474–1.544]
08.shutdown 119 [119–119] → 119 [119–119] 1.1 [1.099–1.11] → 1.093 [1.028–1.108]

Reverse messages are unchanged: first turn 2, second session 1, compaction 2, and zero elsewhere. Each side has two unresolved-target boot sends; all are counted. Source-compiler requests and failed SQL executions are zero in the ordinary series. The final done phase has zero SQL and requests on both sides. Including admission requests, the warmed request median is 481.6 → 481.4; no request saving is claimed for ordinary turns.

Rare export operations

Six alternating pairs produced identical SQL/request counts in every sample; ranges are retained below. This is an in-process Gateway request dispatcher and actual stop handler using source workers, not a production latency benchmark. High duration ratios persisted after the extra pairs: cold JSONL ≈21.26×, warm JSONL ≈9.22×, cold stop ≈1.79×, close ≈2.50×, cleanup ≈1.67×. They are explicit foreground worker/bootstrap/authority costs under the requested rare-operation off-MAIN allowance, not a claimed latency win or a duration-valid ordinary-turn comparison.

Phase All-thread SQL MAIN SQL
cleanup 6 [6–6] → 6 [6–6] 5 [5–5] → 5 [5–5]
close-before-stop 5 [5–5] → 0 [0–0] 5 [5–5] → 0 [0–0]
cold-jsonl 583 [583–583] → 13 [13–13] 583 [583–583] → 0 [0–0]
cold-stop-artifact 813 [813–813] → 1,319 [1,319–1,319] 150 [150–150] → 643 [643–643]
seed 4,521 [4,521–4,521] → 4,521 [4,521–4,521] 0 [0–0] → 0 [0–0]
warm-jsonl 13 [13–13] → 12 [12–12] 13 [13–13] → 0 [0–0]
warm-markdown 14 [14–14] → 13 [13–13] 14 [14–14] → 0 [0–0]
warm-stop-artifact 146 [146–146] → 196 [196–196] 54 [54–54] → 92 [92–92]
Phase Product requests Reverse messages Wall seconds
cleanup 1 [1–1] → 2 [2–2] 0 [0–0] → 0 [0–0] 0.0225 [0.018–0.023] → 0.0375 [0.03–0.047]
close-before-stop 0 [0–0] → 1 [1–1] 0 [0–0] → 0 [0–0] 0.004 [0.004–0.005] → 0.01 [0.01–0.011]
cold-jsonl 0 [0–0] → 1 [1–1] 0 [0–0] → 5 [5–5] 0.1905 [0.187–0.2] → 4.0505 [4.016–4.079]
cold-stop-artifact 14 [14–14] → 15 [15–15] 0 [0–0] → 5 [5–5] 5.142 [5.097–5.191] → 9.2185 [9.176–9.295]
seed 265 [265–265] → 265 [265–265] 0 [0–0] → 0 [0–0] 6.447 [6.39–6.503] → 6.494 [6.389–6.574]
warm-jsonl 0 [0–0] → 1 [1–1] 0 [0–0] → 5 [5–5] 0.0115 [0.011–0.012] → 0.106 [0.097–0.108]
warm-markdown 0 [0–0] → 1 [1–1] 0 [0–0] → 5 [5–5] 0.011 [0.011–0.011] → 0.016 [0.016–0.017]
warm-stop-artifact 12 [12–12] → 13 [13–13] 0 [0–0] → 5 [5–5] 0.1025 [0.087–0.106] → 0.131 [0.119–0.133]

Admission messages are unchanged: seed 520, cold stop 10, warm stop 8, and zero elsewhere. Source-compiler requests, excluded only through their actual esbuild sender stacks, are seed 4,294 → 4,293, cold JSONL 16 → 1,141, cold stop 1,582 → 2,695, and zero elsewhere. The two cold candidate exports each have one unresolved target-ID send; both remain counted and are not used for request-origin attribution.

Across the entire export sequence excluding fixture seeding, observed totals are 1,580 → 1,559 SQL, 824 → 740 MAIN, 27 → 34 product requests, and 0 → 25 reverse stream messages, invariant in all six pairs. Cold library initialization shifts into the first retained native publication guard, so the large cold-endpoint delta is not a standalone saving.

The warmed stop path rises 146 → 196 total SQL, 54 → 92 MAIN, and 12 → 13 task requests. Its exact +50 breakdown is −4 payload queries, −4 old writable-read preparation checks, +10 worker read/snapshot admission statements, and +48 final-authority/supporting ownership/freshness checks. These guards are retained deliberately; caching an earlier lease result would permit stale publication.

Whole-sequence attribution (all threads, excluding seeding):

Statement class Delta
Artifact utterance queries: ten batch SELECTs → two cursors; heads unchanged −8
Avoided meeting schema-ensure DDL; schema itself unchanged −16
Schema/catalog/integrity metadata −41
Connection/WAL setup and maintenance −18
Configuration/installation metadata −10
Transaction envelopes −2
SQLite capability probes +2
Net database-ownership/freshness reads +40
Live lease assertions at filesystem mutation boundaries +32
Total −21

Each of the five exports adds one product read request and five bounded reverse chunk requests. Two additional product requests close the reader resources. The actual row-query saving for one 257-row artifact is 6 → 2; moving those queries off MAIN is reported separately.

Correctness and structural checks

  • 193/193 tests in 13 files, one worker, 162.182 s. This covers snapshot append/reset, lease loss, cancellation/consumer failure, foreign freshness, caller-thread SQL, and accepted bookkeeping settlement.
  • Five negative controls failed for the intended defect: baseline host SQL, publication after lease loss, reset truncation, missing task-cancellation propagation, and stricter export-ancestor permissions. Runtime testing exposed the last issue; the final repair reuses the previous output owner's compatible temporary-file primitive.
  • check:changed passed in 2,168.8 s. One client connection was interrupted while the sequential typecheck continued; its terminal exit-zero receipt was recovered, and remaining checks continued on the same unchanged head/lease without repeating completed proof.
  • Madge: zero cycles, 17.915 s. Full Knip: passed, 183.108 s. Database-worker ratchet: passed, 2.831 s. SDK diff: no API changes, 598.346 s. Core/test types, scoped lint, formatting, diff checks, and Codex P2 review passed.
  • Published 2026.9.8 driver × candidate 845baa7 Docker update cell passed in 875.396 s: update exit zero, readiness 200, running version/source verified, durable and incognito sessions retained.
  • Raw T1: 797 → 793. The ratchet's common candidate classification compares 795 → 793; the extra two raw retirements are the entry/notes selectors whose final native export caller was removed.
  • Retired census IDs: src/transcripts/store-export-jsonl.ts:26:24, src/transcripts/store-export-jsonl.ts:42:24, src/transcripts/store-read.ts:487:15, src/transcripts/store-read.ts:634:15. Supplemental store-read.ts:722:1 now executes in the worker; openclaw-state-db-read-connection.ts:316:1 is deleted.
Focused test cost

Command: pnpm test <the 13 files below> --maxWorkers=1 --reporter=default --reporter=json. File times are from native reports within the shared 162.182 s invocation. The physical SQLite snapshot, real worker, publication, and settlement contracts require these boundary tests. CI seconds are pending until the PR run exists.

File Tests File time (s)
src/state/openclaw-state-read-worker.test.ts 41 0.195
src/state/openclaw-state-db-readonly.test.ts 17 19.885
src/state/openclaw-state-read-worker.settlement.test.ts 5 0.367
src/state/openclaw-state-read-worker.ownership.test.ts 3 0.023
src/transcripts/store.test.ts 38 11.856
src/transcripts/library.test.ts 18 22.065
src/infra/sqlite-worker-transcripts.test.ts 12 14.455
src/transcripts/library.query-budget.test.ts 13 10.633
src/infra/sqlite-worker-transcript-export.test.ts 8 2.514
src/state/openclaw-state-read.existing-schema.test.ts 7 5.482
src/transcripts/library.async.test.ts 6 5.225
src/infra/sqlite-worker-transcripts.export-settlement.test.ts 1 0.948
src/agents/subagents/registry/subagent-registry-worker.test.ts 24 5.499

Gaps and follow-up

The rare source-worker fixture is slower end to end, particularly on first worker/compiler acquisition; this PR makes no export latency claim. Final native authority guards remain until complete revocation publication and removal of raw synchronous writers at the next Plugin SDK major. The separate admission owner can remove inherited schema-preparation overhead without introducing a second cache here.

An initial unpaired baseline context probe saw one shutdown audit-pruning BEGIN IMMEDIATE lock refusal. No fix is claimed for that unrelated path; the final paired series had zero SQL failures. Runtime proof uses synthetic isolated Linux state, not a live production Gateway. PR CI timing is pending.

Landing integration

Integrated main c881d464aafee4b07a80d34ae7c357a94b161690 with merge commit 7071c869be9c986239521d6682a1067695a7bde6. Conflicts were limited to additive documentation/imports and transcript-store cleanup. Main's inlined materialization and test consolidation are preserved. The moved library fixtures now consume streamExport, and the retained-operation import used by cancellation cases is restored. No SQL-path behavior changed during resolution; the alternating-pair proof above is reused under the approved landing policy.

The released SDK check compared v2026.10.1-beta.1 and stable v2026.9.9: changed/removed store, artifact, and read-transport functions are not exposed through src/plugin-sdk, api.runtime, or documented SDK subpaths. The existing SDK-diff report found no API changes. No compatibility shim is needed. The wrapper import inventory has no missing or stale entries, and indirect transcript consumers already use host-owned fork projects. Incidental overlap with the landed cleanup in #167073 is preserved.

ClawSweeper completed its review of 845baa7234ac8688929342b2d7db3163e1802ff1 with no code findings; its requested follow-up was integration and focused export/cancellation proof. The integrated production diff received a clean Codex P2 review.

Integrated proof: 114 passing tests across seven files, reusing successful shards while rerunning repaired fixtures. The import-boundary shard passed 11 tests in 12.96 s; shared-reader tests passed 33 in 9.73 s; the export/artifact shard passed its 58 non-library tests (the complete initial shard took 216.31 s with two stale library fixture failures); repaired library tests passed 12 in 59.33 s. Commands used node scripts/run-vitest.mjs <files> --maxWorkers=1. No sleeps, retries, or weakened assertions were added. Production types, all core/test typecheck shards, and Madge (zero cycles) passed. An initial terminal onCopy type error came from this worktree's old Ghostty patch; frozen-lockfile installation resolved it. CI completed successfully on this exact head: run 37864736145. The final Node shard took 661 seconds (00:30:11–00:41:12 UTC); the required aggregate and security gates passed. No inherited-failure exception or CI rerun was needed.

Keep one snapshot across bounded export chunks and join asynchronous consumers before releasing reader custody. Replace repeated artifact batch queries with a fixed-head cursor and retain live lease checks at guarded file publication.
Keep subagent restore and meeting transcript streaming inside the existing native section while moving their reply adapters out of the main dispatcher. Correct Promise executor and synchronous-read test lint violations.
Reuse the output writer’s compatible temporary-file owner while retaining guarded publication. Keep exports working beneath group-writable ancestors and exercise that contract in the existing artifact test.
@clawsweeper

clawsweeper Bot commented Oct 8, 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 scripts Repository scripts agents Agent runtime and tooling size: XL labels Oct 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Stream meeting downloads and artifact exports through the shared database read worker while retaining snapshot consistency, cancellation cleanup, and guarded file publication.

Example: Export a meeting while its saved utterances are reset

  • Before: The artifact export can stop early because it rereads rows in separate batches.
  • After: The export retains the original snapshot, and the next export observes the reset.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent implementation with substantive native boundary evidence, while export proof remains an in-process campaign.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): The isolated Linux campaign exercised actual export workers, the Gateway request dispatcher, and the stop handler with identical after-fix output. Reported production-boundary fault runs cover reset consistency, cancellation, and foreign lease reassignment preventing artifact replacement; integrated checks cover the resolved head. Formats and schema remain unchanged, with preserved-state update evidence supplied.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
User problem: Meeting artifact exports can become incomplete during concurrent resets, and export database work can delay other Gateway activity.
Reason: The established transcript and reader owner proposes a bounded worker cutover with concrete snapshot benefits and explicitly measured engineering costs.

Merge readiness

✅ Ready for maintainer review

This PR retains useful work absent from current main. The earlier integration blocker is resolved, and the reviewed patch has no actionable code findings.

Priority: P2
Reviewed head: 7071c869be9c986239521d6682a1067695a7bde6

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The changed download and stop-time export scenarios were exercised through the in-process Gateway dispatcher and production owners, rather than a compiled Gateway's external client entry point.
Agent review details

How this fits together

Meeting transcripts live in the shared SQLite state database. Download requests and capture-stop operations read those records to produce JSONL, Markdown, and explicit artifact files.

flowchart TD
  A[Meeting download or capture stop] --> B[Transcript export owner]
  B --> C[Shared database read worker]
  C --> D[One read snapshot]
  D --> E[Bounded chunks with backpressure]
  E --> F[Download response]
  E --> G[Artifact staging]
  G --> H[Live lease check and file publication]
Loading

Technical review

Best possible solution:

Keep export snapshots in the shared read worker and retain current durable lease checks at final artifact publication.

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

Yes, source establishes caller-thread export queries and separate artifact batch reads; the supplied campaign also reports baseline failures for reset truncation and stale publication. This review did not execute them.

Is this the best way to solve the issue?

Yes, the patch extends the existing read owner, removes the obsolete native export route, and preserves the filesystem and writer owners rather than introducing competing persistence.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Current main still uses the old artifact reader: Fetched main retains caller-thread SQLite and repeated 64-row artifact queries; the central worker cutover is not already implemented. (src/transcripts/store-export-jsonl.ts:26, d5becdb65bbc)
  • Snapshot and cleanup ownership: The introduced worker holds one read transaction across backpressured chunks, finalizes the iterator, rolls back, and closes the tracked connection. (src/transcripts/store-export.worker.ts:73, 7071c869be9c)
  • Revoked-owner final-effect coverage: The production artifact path is exercised with a foreign connection changing the durable lease owner to foreign-export-owner after staging begins; it rejects with OPENCLAW_STATE_LEASE_LOST and preserves the prior artifact, manifest, and directory contents. The PR reports this regression passing and its baseline negative control failing. (src/infra/sqlite-worker-transcript-export.test.ts:188, 7071c869be9c)
  • Verified filesystem dependency contract: The new root/copyIn and tempFile imports establish the dependency signal. The verified 0.24.2 source forwards cancellation and assertBeforeMutation into publication; its native Windows path checks the callback immediately before publishing, and tempFile retains compatible staging cleanup. (src/root-impl.ts:1235, 64b21b49a2c0)
  • Complete proof and accepted engineering costs: The complete REST body matches captured SHA-256 aab17f97b09f19ed8f829eebb692bf3cc85cc0210bed29f4106567446339fca5. It reports identical export bytes across six Linux baseline/candidate pairs, zero failed SQL executions, five intended negative-control failures, and an updater-to-candidate check preserving sessions. The area owner explicitly retains final native authority guards, slower source-worker export timings, best-effort synchronization, and one additional artifact-sized temporary copy. (845baa7234ac)
  • Earlier integration request addressed: The exact head records the previous reviewed head and c881d46 as raw parents. GitHub reports mergeable=true, and the body reports 114 passing integrated tests covering repaired fixtures, shared readers, exports, and cancellation. The stale test-merge object was not used to infer merge behavior. (7071c869be9c)

PR surface

Source +279, Tests +256, Docs +22, Other +4. Total +561 across 28 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 16 434 155 +279
Tests 9 432 176 +256
Docs 2 24 2 +22
Config 0 0 0 0
Generated 0 0 0 0
Other 1 6 2 +4
Total 28 896 335 +561

Review metrics

Metric Value Why it matters
Artifact payload queries 257-row artifact: 6 → 2 The fixed-head cursor removes repeated batch reads independently of moving their execution into a worker.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves meeting-export consistency and database placement without evidence of an urgent widespread outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-09T00:00:03.258Z sha 845baa7 :: needs changes before merge. :: none

Reviewed October 8, 2026, 8:32 PM ET / October 9, 2026, 00:32 UTC (Revision 2).

Preserve current transcript-owner cleanup and shared-reader additions while resolving the worker export conflicts. Adapt consolidated library tests and restore the retained-operation test import.
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 9, 2026
@steipete
steipete enabled auto-merge (squash) October 9, 2026 00:40
@steipete
steipete merged commit 28af40f into main Oct 9, 2026
147 checks passed
@steipete
steipete deleted the dbasync/t1meeting branch October 9, 2026 00:42
@steipete

steipete commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…openclaw#167532)

* perf(transcripts): stream meeting exports through the read worker

Keep one snapshot across bounded export chunks and join asynchronous consumers before releasing reader custody. Replace repeated artifact batch queries with a fixed-head cursor and retain live lease checks at guarded file publication.

* refactor(state): share bounded stream read dispatch

Keep subagent restore and meeting transcript streaming inside the existing native section while moving their reply adapters out of the main dispatcher. Correct Promise executor and synchronous-read test lint violations.

* fix(transcripts): preserve shared export path permissions

Reuse the output writer’s compatible temporary-file owner while retaining guarded publication. Keep exports working beneath group-writable ancestors and exercise that contract in the existing artifact test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant