Repository navigation
Conversation
Authorize recall candidates from committed session metadata and membership. Keep archived display rows resident for list readers and preserve physical lookup for global recall.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper re-review The final head is |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR prepares transcript recall candidates from committed metadata and membership without materializing archived display rows. Example: Alternate 50 archive-list requests and 50 transcript recalls over 100 run transitions.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes unnecessary archive-row preparation through the existing owner, and I found no actionable correctness or security defects. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway sends transcript queries to the search worker, prepares matching session metadata and membership, and returns authorized, ordered text hits; archive display rows belong to list readers. flowchart LR
A[Recall request] --> B[Gateway recall owner]
B --> C[Transcript search worker]
C --> D[Candidate session keys]
D --> E[Exact metadata and membership preparation]
E --> F[Visibility and physical owner checks]
F --> G[Ordered transcript hits]
Technical reviewBest possible solution: Use the existing exact-read owner for metadata-only recall preparation while leaving archive residency and display preparation with display readers. Do we have a high-confidence way to reproduce the issue? The parent routes recall candidates through full exact-row preparation and archive retention; the PR reports both archived-query regressions failing there with 28 materializations and passing after the change, without an independent run during this review. Is this the best way to solve the issue? The change removes unnecessary work at the existing preparation boundary, preserves display-reader defaults, and introduces no competing owner, cache, or persistence format. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d847c9ba0e42. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +18, Tests +8, Other +375. Total +401 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 10:05 PM ET / November 29, 2026, 03:05 UTC. |
|
Merged via squash.
|
…seline * commit '32403124cae2ccbcfc556e844b218682b133956e': (547 commits) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) ...
…eline * commit 'eee1e0553d29456424ac367008c3cf080f9866ec': (550 commits) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) ...
…ions suite * commit '60e80f1c5fd439f7aa4ce33f54985c7efdc30884': (555 commits) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) ...
* commit 'ba0a7a5fac3e2f1b642d05502273b98dc75adf4f': (556 commits) test(agents): fix provider header filtering coverage (#207732) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) ...
…openclaw#207916) Authorize recall candidates from committed session metadata and membership. Keep archived display rows resident for list readers and preserve physical lookup for global recall.
* commit '99b4afc696081eda8aefd8e91250c112f53a8a73': (564 commits) test(ios): verify send-at-tap feedback and work grouping (#207913) test(agents): reject unsuccessful live replay completions (#207724) fix(cron): keep a started cron turn running when its job is edited (#207947) improve(ui): put waiting for a free agent under automation timing (#201282) chore(ui): refresh control ui locales (#207514) fix: distinguish unresolved delivery failures from delivery history (#207897) test(doctor): require security check in proxy ordering assertion (#207912) fix: keep update rollback tests in sync with shipped workers (#207822) test(agents): fix provider header filtering coverage (#207732) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) ...
What Problem This Solves
Searching older conversations can rebuild archived session rows even though transcript recall returns only text hits. Those builds can also evict rows from a warm archive page, making the next list request rebuild rows the operator just read.
User Impact
Transcript recall returns the same authorized and ordered hits while leaving archive display rows available to the readers that use them. There is no migration or configuration change.
Why This Change Was Made
The projection's exact-read owner can prepare the requested keys from committed metadata and membership. Recall now uses that path for candidate checks and final hit revalidation, including the physical lookup for the
globalsentinel. It skips display and placement preparation and leaves page pins, the archive budget, and the shared immutable row builder with display readers.Production is +18 net lines (25 added, 7 removed), test is +8 (10 added, 2 removed), plus the replay driver. The production additions select metadata-only exact preparation in the existing owner and pass that choice through placement preparation. They add no cache or stored state.
Evidence
Team's supplied November 28 snapshot on
90ab1fadrecorded 5,176,265 created, 71,881 rebuilt, 50,980 skipped, and 1,320 reused after about nine hours. Fresh builds were 97.7% of outcomes, about 160/s. The 30 × 5 s CPU set attributed 2.48 s of 32.05 busy seconds to the largest row-refresh chain, with about 1.03 s self time across row and patch freezes. The supplied retained sample shows archive trim demoting rows on the refresh path. These aggregate measurements do not give Team's request breakdown or identify how many builds came from recall.The isolated Gateway uses 2,500 synthetic sessions (1,018 archived), 995 persisted runs, four agents, 50 loopback operator sockets, run start/end transitions and committed metadata patches. Rotating two requested 100-row pages reproduced 5,000 created and 99 rebuilt over 100 transitions, with 5,000 demotions and no selection resets. The live-only control recorded 0 created and 15 rebuilt over 20 transitions. Both controls produced metadata partition revisions.
The formal replay used two A/A controls followed by five order-balanced A/B pairs. Each arm measured 100 run transitions with 50 archive list and 50 recall calls.
Created/rebuilt/skipped/reused was 2,574 / 99 / 0 / 0 in both A/A controls, 2,574 / 97–99 / 0 / 0 in every baseline arm, and 0 / 96–98 / 0 / 0 in every candidate arm. Each baseline built 1,300 rows in recall and 1,274 on the list read after eviction, with 2,574 archive demotions in total. Each candidate had zero new builds or demotions. All arms recorded 200 metadata partition revisions and zero selection resets. Ordered decoded list and recall payloads matched byte for byte across all 12 runs after excluding the wall-clock
snapshotAtfield. The generated databases and workspace differ from Team's storage footprint. No Team access was used.The word and CJK regression cases preserved the expected visible hit and each failed on the parent with 28 materializations where zero are expected. They pass on the patch. The 48 focused tests also exercise physical-global and mixed-store recall, sharing visibility, ordering, prepared reads, placement and archived rows. The separate unchanged-read case proved the existing IfChanged skip and retained graph identity.
Codex autoreview found zero actionable findings through P3 on the staged candidate at base
793ccbd52f9e55. Core, core-test, formatting and the SQLite worker and dialect checks passed. The initial changed-file run identified replay-driver lint/type errors that passed their targeted reruns after correction. The dead-export failures reproduced on clean maina3fb66462294fand trace to #202209 and #207581. The separate unused-file scan also reproduced on that main revision and traces to #207275. No changed module is imported by the Control UI.