Skip to content

fix: active memory recalls stale history in large sessions - #149180

Merged
fuller-stack-dev merged 17 commits into
openclaw:mainfrom
lordratner:fix/active-memory-request-boundary-88077
Sep 16, 2026
Merged

fuller-stack-dev merged 17 commits into
openclaw:mainfrom
lordratner:fix/active-memory-request-boundary-88077

Conversation

@lordratner

@lordratner lordratner commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #88077

What Problem This Solves

Active Memory can treat reconstructed history as the current request, starting stale or repeated recalls when Codex rebuilds a large conversation or refreshes its runtime.

This retains two Goal regressions for a canonical CI blocker: an edit reread the selected session row and exceeded the existing three-read ceiling after final-row certification was added. Canonical now supplies the Goal and UI production corrections and the planner fixture repair. Their original corrections and proof remain in the append-only history.

User Impact

Recall follows the admitted user request through prompt rebuilds. Independent requests remain distinct even when their text matches. Empty or image-only admissions do not borrow a historical request.

Why This Change Was Made

Codex carries one recorder-owned text representation and admission ID through normal preparation and refresh. Active Memory uses those facts for intent, query construction, and both model and deterministic request reuse. Legacy producers retain their existing prompt behavior; no-recorder Codex input keeps its plain text without inventing an admission ID. Authorization and project scopes remain part of reuse.

The canonical Goal correction reuses the selected entry already validated in the same write reservation. It retains sibling identity reads, current-authority checks, final-row certification and receipt behavior; the read ceiling is unchanged.

This retains Sergio (@sercada)'s original contribution, including precursor #147193, and Seth Ratner (@lordratner)'s PR work. Corrections and canonical updates are appended to the existing history. The separate queue capacity repair #99105 is merged as 03b0a5b8ab9fefde4863e17e6b40bfdbe6ebfafe and is incorporated here.

Evidence

Merged through the ordinary native squash workflow as 5d7f6690c5a64b680388a3bfa03d58937d5138e7, with sole parent 199039e7d5ff4d5bcdcc7b8ccd700a55e861b41c and verified tree c94cd1201c5c44802dbded889ecfbbb410d706ab. Exact prepared-head CI and required gate passed before the maintainer released the merge. The original 13-path patch replays unchanged onto the actual parent to produce the landed tree. All 12 input blobs remain exact; the Goal test combines the two unchanged added regressions with later canonical assertions. The changed full-index hash reflects that canonical composition. The valid GitHub-signed commit retains lordratner as author and Sergio and Jason as coauthors. Native completion receipt.

The first native admission stopped before any intent or merge request when its PR/main observations changed. After process and lock reconciliation, the authorized resumed admission made one squash request and completed with exit 0. Local preparation branches and worktree were removed. The contributor's fork branch remains at the prepared head because native deletion was permission-denied; its native outcome retains pending remote cleanup. No deletion retry or additional merge was attempted.

Prepared head: ef759eaa380ade7f04353ab463a4cd31f680154a, signed server merge with ordered parents 701309b98ee38bca77078262df8ff01e5228213b and canonical 9b73eb1e90be09ebb888f6b854670b5bc407f311. The signed alignment child 701309b9 extends prior d86b34fc and adopts only the exact canonical Goal and UI whole blobs. Prepared tree is bfe358b5a45edc3d039f405500d5fcb103d7b02a, with 13 changed paths: the original 12 input paths and the Goal regression test, all unchanged from d86b34fc. Goal/UI production and the planner fixture now match canonical and are absent from the authored delta. Root verified canonical 932846b5 production with the retained Goal tests, 14/14 total including the two added regressions, and full type-aware UI lint with the unchanged 700-line limit. The matching adoption received scoped-clean P0-P2 review. Both input and reply refresh assertions survive, and memory production bytes remain those reviewed/proved at 8633baaaa11d35063b545837e34168659bd14594. Canonical #149661 zero-hit synchronization and contributor ancestry remain intact. Historical proofs keep their original revision labels.

  • Canonical red observations, original PR challenge, and corrected green observations. Artifact manifest. Signed artifact links expire September 22; retained source evidence can be republished.

  • All 18 boundary assertions and 302 scoped regressions pass. A genuine mixed-media admission with different normal/refresh transport prompts performs one helper and one search. Independent equal-text admission IDs perform two searches; empty/image-only cases perform neither helpers nor lookups.

  • Focused test types and changed-file lint pass. Autoreview reports no P0–P2 findings. Reviewed memory production bytes remain unchanged. Later test changes are the mechanical assertion relocation and canonical zero-hit synchronization described above. Original capture revisions and limits remain attached to their proof.

  • Combined real Gateway and Control UI proof: the independent source-blind validator passes all four contract clauses. A genuine recall starts one helper; later arithmetic starts none despite recall history. Helper timeout preserves the peer and both requests complete. The comment includes a reduced raw excerpt, reports, manifest and inspected browser recording for combined tree 9e94735e3724d33d801c4cc4c32f3e68251400e1, containing reviewed input head 8633baaaa11d35063b545837e34168659bd14594, whose memory production bytes are preserved in the current head; both independently reviewed refresh assertions remain present.

The focused producer/hook evidence and combined Gateway/browser proof use controlled native protocol and provider fixtures. They do not measure live authentication, model quality or memory-search speed. The later canonical bounded SQLite reader is not validated at its cutoff/error boundaries by these historical captures, and they do not measure fresh startup latency. Source/caller/dependency impact was assessed before this append-only refresh.

Canonical lint repair #149423, fixture repair #149558, CI packing repair #149652 and planner fixture repair #149726 are incorporated, along with canonical Goal/UI adoption. The prepared-head CI for ef759eaa completed SUCCESS, including required gate104688781521. Authorized native prepare-run 149180 completed on this unchanged head using the hosted gate; source push was skipped. Historical CI35059118811 for 9c727724 completed SUCCESS, with required gate104679161733 directly verified at 2026-09-16T05:39:01Z. Preparation and the released squash merge are complete. Source/caller impact was assessed through the actual parent 199039e7. Later canonical Goal bookkeeping retains same-generation authority and final-row certification; thinking-profile reuse and optional transcript-list preparation preserve the retained fixture inputs. The loader resolver returns the same capability context, and the iMessage and worker-desktop changes are outside the exercised fixture paths. The unchanged authored patch produces the verified landed tree. The retained combined fixture uses fresh isolated state, text-only chat requests and the codex/active-memory/memory-core allowlist. It has no attachments, cron jobs, warm-image allocations or voice calls; the changed cron matcher remains unallocated, and standalone Crabbox Doctor retains its empty-state read/projection. The later subagent-list change retains whole-snapshot validation before selected-row materialization. The browser fixture does not operate the model picker or assert its pending label; its composer/send and partial-history assertions are unchanged. This assessment does not add runtime or timing proof. The fixtures' memory and browser history reads reach the moved transcript readers; inspected acquisition, transactions, reconciliation, SQL, fences and byte/event bounds retain behavior. The earlier Swift-only settlement and later systemd clock-step fixture changes are outside those fixture executions. No new clock-jump, schema-21 latency, large-store, progress-card layout or live search-speed claim is made.

Current ef759eaa large9 job104684404031 passed all six refresh cases and the UI child's 368 files / 6445 tests without teardown errors. Raw SHA256 c7c9ea253d204df8693676a0fdd97cbd58dd52392904bccb700cf518ae7bac8d is retained. No teardown fix or obsolete-head rerun was used. This clears the current-head failure concern without proving the historical cause.

Historical d86b34fc CI35060888073 failed large9 job104680997106 after 368 UI files and 6445 tests passed, with nine environment-teardown import errors from app-host-refresh-control-ui. Aggregate was not observed in the retained record. Root found nine relevant source/fixture/config/dependency objects identical across 9c727724, d86b34fc, 29ed7e3b and 5f3ca5a8. The preceding matching job passed, and focused unmodified canonical 5f3ca5a8 passed its original 6/6 cases in 3.87 seconds. Connect-triggered unjoined imports are a hypothesis, not an observed cause or deterministic reproduction. Root cancelled the prospective same-head rerun when the Goal conflict appeared; no obsolete-head rerun was dispatched. Raw SHA256 21b9359c49a3f866e40558c028fae00e406856d17f86a7da9bffb881bd384aae remains retained. Canonical adoption resolves that source conflict without claiming to repair the teardown failure.

Historical 21a6fae2 CI35057935428 completed with aggregate FAILURE. Its three underlying failures were lint job104672128474 at max-lines 702 against 700 and small30 job104672133740 in two planner fixture cases, plus the large22 job described below. The exact corrections below address those two failures. Large22 job104672130807 separately observed maxGatewayGapMs=594.853601 against the unchanged strict 500 assertion. Functional deletion/archive/reclamation/unrelated-row assertions passed, but the measurement covers warmup and the entire sessions.delete RPC without phase, CPU/GC or host-scheduling attribution. The historical phase and root cause remain unknown; no timeout or product patch was selected. The same test later passed on exact historical 9c727724, as recorded below, without erasing the failed historical sample. The prior yield large29, small14 and Goal large10 passed on 21a6. Root confirmed the terminal aggregate failure; the corrections do not erase that result.

Historical ab9e1eec CI35056011215 completed with aggregate104670094220 FAILURE at 2026-09-16T04:52:55Z. Its only failed underlying job, large10 job104666458483, observed four session_nodes SELECTs against the unchanged ceiling of three in the literal-objective Goal edit case. The separate correction and proof below address that canonical blocker; they do not erase the failed run.

Historical f7e32c CI35050507736 failed preflight job104649632049 with 121 Node matrix jobs against limit120, before test execution; aggregate104649825154 also failed. The landed packing repair supports the refresh but does not erase those results. The prior fixture repair retains lifecycle-specific yield assertions, teardown holder reporting and idempotent dependency setup.

Historical f99e0fd9 CI completed with a failed aggregate. Its failures were duplicate-fixture EEXIST and sessions.send-yield-resume.test.ts residual-root assertions reporting 2 and 1. Those counts do not establish a drain transition, and the holder/phase remains unknown. Earlier b8b97d23 failures are also retained. The landed canonical fixture repairs support this refresh but do not erase either failed gate. Related #149506 was handled by its existing owner; no attribution of the historical roots or cherry-pick is claimed.

Per-admission run-local reuse remains separate from the established successful-result query cache. Sequential same-authority/project cache hits are allowed; concurrent admissions and authority/project boundaries remain distinct. The queue validator's literal clause 5 failure and existing-contract adjudication remain recorded in #99105.

Current completed review and preparation

ClawSweeper Revision 13 completed for exact ef759eaa, reviewed 2026-09-16T06:19:46.914Z, with Findings None and Security None. It recognizes the resolved integration conflict. Its two original Before merge items remain unchecked:

  • Complete next step (P2) - Obtain the supervising maintainer's release of the preparation/merge hold recorded in the PR body.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

The supervising maintainer subsequently released preparation and the exact-head ordinary squash merge; both are complete. This records the maintainer's resolution of the supervisor hold without claiming that ClawSweeper removed either original checkbox. The full report is retained. Historical Revision 12 reviewed d86b34fc at 2026-09-16T05:56:38.550Z and reported the then-real integration conflict and hold. Verified signed canonical adoption resolves that integration concern; the original report remains retained alongside Revision 11 and its separate evidence adjudication below.

Historical completed review and maintainer adjudication

ClawSweeper Revision 11 completed for exact 9c727724 in run35059679228 with Findings None and Security None. Its original Before merge items remain unchecked and read:

  • Resolve merge risk (P1) - The review host blocked raw R2 artifact downloads, and video preparation lacked ffprobe; runtime assessment relies on the complete matching PR body and copied Gateway observations.
  • Resolve merge risk (P1) - A historical sessions.delete timing assertion remains unresolved in the PR evidence; no introduced causal link to this patch was established.

The maintainer's separate resolution accepts both evidence risks. Freshly downloaded canonical/corrected observation JSON matches the retained hashes, and the comment includes exact selected synthetic observations. Goal and CI-correction bundles were also downloaded and hash-verified. The review host's R2 restriction and missing ffprobe remain part of its record; independently inspected evidence supports the stated scope without a new video, live-authentication or search-speed claim.

On historical 9c727724, large22 job104675743271 passed the same sessions.delete keeps the Gateway responsive while reclaiming a large session test in 3177 ms total test duration. The original 500 ms heartbeat assertion is unchanged. Raw SHA256 is ca433eb50f27715b5e3cbfb8b18bc8d439f6bef949841412c531b4f4db8a286f. The maintainer accepted that result for the historical evidence concern while preserving the historical gap's unknown phase and cause. This is the maintainer's adjudication; ClawSweeper itself has not removed either checkbox. No code, threshold or review guard changed.

Separate Goal persistence proof

The historical frozen two-file correction has SHA256 3d51e90c94ecff214459214dae24607f28586355ed154e9f4f02bdd50e89ca1c and remains preserved in prior d86b34fc history. Current ef759eaa adopts equivalent canonical Goal production and retains its regression test blob. Root's separate canonical 932846b5 verification passes 14/14 total cases, including the two added regressions; the original proof below keeps its original source labels. Unmodified canonical bafa7c56 reproduces four reads. The corrected fixture on base 5279f27a performs three, including final-row certification, and passes 43/43 regressions. The independent source-blind API validation passes 6/6 clauses across 28 fresh-process invocations. Targeted lint, core/selected test types and scoped P0–P2 autoreview pass. All published files and the artifact manifest were downloaded and hash-verified.

Canonical red · Corrected regression log · Counted SQL and certification · Source-blind API report · Raw API results · Proof revisions and limits · Artifact manifest.

This is synthetic persistence API and counted-SQL proof. It does not establish Gateway/model behavior or end-to-end latency. Scope includes exact case-sensitive sibling isolation, current-authority replacement refusal, receipt replay and required certification. The Goal evidence is separate from the historical memory and combined Gateway/browser captures.

Separate CI correction proof

The historical two-file correction has SHA256 a6fa9d08e309ae33f1dbe54f23043160fc9c8267ce6dee96d9cff79f7b38dd1b, reviewed and proved on canonical 56179b3f. Canonical now supplies both UI production and the #149726 planner correction as exact whole blobs, so neither remains in the authored delta. These original logs retain their historical revision labels. Root separately verified canonical 932846b5 full type-aware UI lint at the unchanged 700-line limit. Its clear-reply callback preserves the same synchronous target assignment and redraw. The original authored chat renderer correction reused its existing reply-target callback when clearing the target. The unchanged max 700 check fails at 702 before the correction and passes at 699 after it; full-file type-aware lint and UI tsgo pass. The planner mock accepts both extension roots and full file paths. Both original failing cases pass, as does the full 160-test suite and full-file lint. Tail 48/49, the 240-second cap, descriptor identity and total-cost assertions remain unchanged. Both scoped reviews report no P0-P2 findings.

UI red · UI green · UI lint · UI types · Planner red · Planner green · Planner160 tests · Planner lint · Proof revisions · Artifact manifest.

All nine public proof files plus the manifest were downloaded and hash-verified. These are focused canonical red/green checks. They do not replace exact-head CI, establish the cause of the historical large22 gap or add a new browser/timing claim.

Rebuild the request-boundary fix against current main while preserving Codex projection behavior and existing timeout semantics.
@clawsweeper

clawsweeper Bot commented Sep 15, 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 agents Agent runtime and tooling extensions: codex extensions: active-memory size: M labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 16, 2026, 2:19 AM ET / 06:19 UTC (Revision 13).

ClawSweeper review

What this changes

The PR ties Active Memory recall to the admitted request across Codex prompt rebuilds and runtime refreshes, documents the optional hook fields, and adds request-boundary and Goal persistence regressions.

Merge readiness

⛔ Blocked before merge - 2 items remain

The repair remains necessary, and the integrated patch has no actionable correctness findings. The previous merge conflict is resolved, and retained runtime evidence supports the changed behavior.

Priority: P2
Reviewed head: ef759eaa380ade7f04353ab463a4cd31f680154a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused boundary repair with strong recorded runtime evidence and no actionable patch findings; the explicit maintainer hold is separate from patch quality.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Recorded real Gateway execution with controlled native/provider endpoints shows one helper for genuine recall and none for subsequent arithmetic despite recall history; copied producer/hook observations cover refresh and independent admissions. The relevant production blobs match the proof revision. Video preparation is unavailable on this host, but the inspected textual evidence supports the claimed orchestration scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): Recorded real Gateway execution with controlled native/provider endpoints shows one helper for genuine recall and none for subsequent arithmetic despite recall history; copied producer/hook observations cover refresh and independent admissions. The relevant production blobs match the proof revision. Video preparation is unavailable on this host, but the inspected textual evidence supports the claimed orchestration scope.
Evidence reviewed 11 items Current main and release still contain the defect: Both fetched main and the supplied latest-release commit pass event.prompt to recall query construction, trigger matching, and escalation. The separate current-request path is still needed.
Request producer and consumer inspected: The producer resolves recorder-owned text and identity before projection. The consumer distinguishes omitted text from explicitly empty text, retains authority/project separation, and disables request-local reuse when admission identity is unavailable.
Verified integrated tree resolves prior conflict: The test merge has the pinned base followed by the exact PR head as its raw parents. Its tree is bfe358b5a45edc3d039f405500d5fcb103d7b02a; comparison against its base contains the stated request-boundary changes and Goal tests, without Goal/UI production changes.
Findings None None.
Security None None.

How this fits together

Active Memory enriches an agent's prompt with relevant memories before the agent replies. The Codex adapter prepares conversation history and supplies the current request separately so historical text does not drive recall.

flowchart TD
  A[Admitted user request] --> B[Transcript recorder]
  C[Conversation history] --> D[Codex prompt preparation]
  B --> D
  D --> E[Prompt hook]
  E --> F[Active Memory intent and request reuse]
  F --> G[Memory context or intentional skip]
  G --> H[Agent reply]
Loading

Decision needed

Question Recommendation
Can the explicitly recorded preparation/merge hold be released for the integrated request-boundary repair? Release the hold subject to normal gates: Accept the integrated repair and retained proof, with required current-head CI and native landing gates still enforced.

Why: The matching PR body retains this hold; a clean source review cannot grant the supervising maintainer's release.

Before merge

  • Complete next step (P2) - Obtain the supervising maintainer's release of the preparation/merge hold recorded in the PR body.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +53, Tests +451, Docs +12. Total +516 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 7 67 14 +53
Tests 5 451 0 +451
Docs 1 13 1 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 531 15 +516

Review metrics

Metric Value Why it matters
Hook contract 2 optional fields; 0 new settings The producer supplies request text and admission identity without requiring existing plugin callers to change.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #88077
Summary: This PR is an implementation candidate for the prompt-envelope defect; related queue and reply repairs address distinct mechanisms.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep request identity with the transcript recorder and carry it through the existing hook while preserving legacy producers, configured recall modes, and authorization scopes.

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

Yes: current main feeds reconstructed prompts into recall intent and query construction, and the discussion records a failing producer-to-hook challenge. This review inspected that path without executing it.

Is this the best way to solve the issue?

Yes: explicit recorder-owned request data repairs the producer/consumer boundary without parsing user-controlled envelope markers or introducing a truncation policy.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Incorrect and repeated recall adds token cost and latency for Active Memory sessions without establishing an urgent core outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): Recorded real Gateway execution with controlled native/provider endpoints shows one helper for genuine recall and none for subsequent arithmetic despite recall history; copied producer/hook observations cover refresh and independent admissions. The relevant production blobs match the proof revision. Video preparation is unavailable on this host, but the inspected textual evidence supports the claimed orchestration scope.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded real Gateway execution with controlled native/provider endpoints shows one helper for genuine recall and none for subsequent arithmetic despite recall history; copied producer/hook observations cover refresh and independent admissions. The relevant production blobs match the proof revision. Video preparation is unavailable on this host, but the inspected textual evidence supports the claimed orchestration scope.

Evidence

What I checked:

  • Current main and release still contain the defect: Both fetched main and the supplied latest-release commit pass event.prompt to recall query construction, trigger matching, and escalation. The separate current-request path is still needed. (extensions/active-memory/index.ts:349, 7b47d7a65a17)
  • Request producer and consumer inspected: The producer resolves recorder-owned text and identity before projection. The consumer distinguishes omitted text from explicitly empty text, retains authority/project separation, and disables request-local reuse when admission identity is unavailable. (extensions/codex/src/app-server/run-attempt-prompt.ts:110, ef759eaa380a)
  • Verified integrated tree resolves prior conflict: The test merge has the pinned base followed by the exact PR head as its raw parents. Its tree is bfe358b5a45edc3d039f405500d5fcb103d7b02a; comparison against its base contains the stated request-boundary changes and Goal tests, without Goal/UI production changes. (6c210aa3e570)
  • Proof revision remains applicable: Git tree inspection confirms identical blobs at the current head and proof revision 8633baa for Active Memory index, recall, trigger recall, and Codex prompt preparation. Targeted comparison with the previous reviewed head also shows no changes to these paths. (extensions/active-memory/index.ts:347, 8633baaaa11d)
  • Runtime observations and prior adjudication: fix: active memory recalls stale history in large sessions #149180 (comment) records real Gateway orchestration with controlled native protocol/provider endpoints: one helper for genuine recall and zero for later arithmetic despite recall history. fix: active memory recalls stale history in large sessions #149180 (comment) supplies copied red/green boundary observations, accepts artifact-access limitations, and resolves the historical deletion-timing concern without changing its assertion. (8633baaaa11d)
  • Complete captured body recovered: The GitHub body was read completely and its SHA256 matched the supplied snapshot: 1b48644e9226f4f189405449e5c63d05871c49b5610678e4f56c3eb9c82a2866. It explicitly retains a preparation/merge hold pending required CI and maintainer release; no release of that hold appears in the supplied discussion. (ef759eaa380a)

Likely related people:

  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-15T22:48:19.526Z sha b8b97d2 :: blocked before merge. :: none
  • reviewed 2026-09-16T01:14:22.033Z sha f99e0fd :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T01:21:24.504Z sha f99e0fd :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T02:46:56.223Z sha 43366fc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T03:15:45.051Z sha f7e32c4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T05:15:09.220Z sha 21a6fae :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T05:34:27.211Z sha 9c72772 :: blocked before merge. :: none
  • reviewed 2026-09-16T05:56:38.550Z sha d86b34f :: blocked before merge. :: none

@lordratner

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Sep 15, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

Taking over the request-boundary repair and its validation. I will preserve the existing contributor commit and credit Sergio Cadavid (@sercada, #147193) and @lordratner for this follow-up.

I independently reproduced the defect before reading this diff, on canonical 1349c4c5420c1f0853f83ad6e0a35ab9db6b8791 in an isolated Linux/Node 24.19.0 environment with synthetic data:

  • A 156,100-character history envelope triggered a recall helper for a 28-character arithmetic request.
  • Rebuilding history started two helpers for one admitted request.
  • Two distinct equal-text admissions sharing a correlation run ID started only one helper. Different authorization fingerprints correctly stayed separate.
  • The Codex producer emitted a 100,280-character projected prompt without separate current-request text or identity.

The follow-up challenge passes actual Codex producer events to the registered Active Memory hook. It also reproduces unwanted recall during runtime refresh and for empty/image-only input. I am comparing those cases against this exact PR head, including deterministic trigger lookup reuse, before making the narrow corrections.

The check-test-types failures identify mock tuple inference in the added Codex tests. The QA child-bundle failures have a separate canonical repair in #149243; all 12 unchanged QA fixture tests passed on the baseline above. No QA change belongs in this memory repair.

These are controlled producer/hook boundary tests, not a claim of authenticated model execution. Exact-head green and runtime integration evidence will follow.

Keep one recorder-owned input representation through prompt rebuilds, preserve no-recorder behavior, and separate deterministic recall reuse by admission identity. Handle lazy recorder resolution and message-less host refresh continuations without expanding plugin parameters.
@fuller-stack-dev

fuller-stack-dev commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Appended the reviewed correction at 8633baaaa11d35063b545837e34168659bd14594, preserving the original contributor commit and GitHub-verified canonical merge.

The registered producer/consumer challenge now passes runtime refresh, lazy/no-recorder input, empty/image-only admission, normal-to-refresh mixed-media reuse, and independent equal-text identity. All 18 boundary assertions and 302 scoped regressions pass; focused test types and changed-file lint pass. Autoreview has no P0–P2 findings.

Inspected synthetic red/green observations and the artifact manifest are linked in the Evidence section. These use controlled native transport/helper results and do not measure real model/search speed. Combined Gateway proof and required exact-head CI remain pending. The independently reproduced legitimate queue contention stays in #99105.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 15, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 16, 2026
Reuse the existing reply callback when clearing its target and normalize the packing fixture resolver input before selecting its synthetic config.
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 16, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

Resolution of the two items in ClawSweeper Revision 11, reviewed at exact head 9c7277240fa558d93d9dc27baef8c25e07a9e9c7:

  1. Reviewer artifact access. The maintainer environment downloaded and inspected the proof artifacts. A fresh download of the canonical and corrected observation JSON matches the retained bytes: SHA256 e43ac05dc02743292c90d3ec09aa72e632689e9e62f2f255803a1b4f371f69a9 and b9b1297800696a2eb95e134280803e4aa1695921ebe76a64f36636b9df97870a. Exact selected observations are included below so their inspection does not depend on R2 access. The Goal and CI-correction artifact bundles were also downloaded and hash-verified. The existing real-Gateway observations remain at the original proof comment. This accepts the recorded synthetic-transport and persistence-API scope; it adds no live-authentication, search-speed, model-quality, or new video claim. The review host's missing ffprobe and download restriction do not invalidate the independently inspected evidence. No product change is warranted for those host limitations.

  2. Historical deletion timing. On this exact head, large22 job104675743271 passed. Its raw log explicitly includes sessions.delete keeps the Gateway responsive while reclaiming a large session passing in 3177 ms, with the original 500 ms heartbeat assertion unchanged. The earlier 594.85 ms gap remains phase-unattributed and is retained in the evidence. This current result resolves the readiness concern without claiming a root cause for the historical timing sample or changing its limit. The full required aggregate is still pending at this comment.

Selected synthetic observations, copied from the linked artifact JSON:

{
  "baseSource": "1349c4c5420c1f0853f83ad6e0a35ab9db6b8791",
  "base": [
    {
      "clause": "registered-producer-challenge",
      "scenario": "refresh",
      "helperStarts": 1,
      "lookupStarts": 2
    },
    {
      "clause": "trigger-independent-admission",
      "searches": 1
    }
  ],
  "correctedTree": "8afe736383297f302a5072141b4eb91ae6395133",
  "corrected": [
    {
      "clause": "registered-producer-challenge",
      "scenario": "refresh",
      "helperStarts": 0,
      "lookupStarts": 1
    },
    {
      "clause": "trigger-independent-admission",
      "searches": 2
    },
    {
      "clause": "normal-to-refresh-recall",
      "helperStarts": 1,
      "searches": 1
    }
  ]
}

The review reports no actionable patch correctness or security finding. The two readiness concerns are adjudicated as above; required exact-head CI and native preparation remain mandatory.

@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Sep 16, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 5d7f669 into openclaw:main Sep 16, 2026
228 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…149180)

* fix(active-memory): keep recall scoped to admitted request

Rebuild the request-boundary fix against current main while preserving Codex projection behavior and existing timeout semantics.

* fix(active-memory): retain admitted requests through runtime refresh

Keep one recorder-owned input representation through prompt rebuilds, preserve no-recorder behavior, and separate deterministic recall reuse by admission identity. Handle lazy recorder resolution and message-less host refresh continuations without expanding plugin parameters.

* test: preserve refresh assertions during integration

* fix(sessions): reuse the selected Goal entry for identity snapshots

* fix(ci): repair reply callback and planner fixture contracts

Reuse the existing reply callback when clearing its target and normalize the packing fixture resolver input before selecting its synthetic config.

* test(ci): align extension packing fixture with canonical repair

Adopt the canonical resolver mock from PR openclaw#149726 while retaining all packing assertions.

* test: retain canonical Goal and UI CI repairs

---------

Co-authored-by: Sergio <[email protected]>
Co-authored-by: Jason (Json) <[email protected]>
@lordratner
lordratner deleted the fix/active-memory-request-boundary-88077 branch September 17, 2026 13:33
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 extensions: active-memory extensions: codex P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

[Bug]: Active Memory recall context uses full OpenClaw prompt envelope

3 participants