Skip to content

fix(active-memory): exclude dreaming-narrative session keys from eligibility gate - #95721

Merged
vincentkoc merged 4 commits into
mainfrom
maint/recover-pr-93168-active-memory-dreaming
Jun 22, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
maint/recover-pr-93168-active-memory-dreaming

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes #78500.

This restores the reviewed active-memory fix from #93168 after the contributor fork branch became unavailable during maintainer sync. Dreaming-narrative cron session keys should not be eligible for active-memory recall and consume the nightly cron lane budget.

Why This Change Was Made

The eligibility guard now rejects canonical dreaming-narrative session keys while preserving real chat/session keys that only contain the same phrase as a substring. The branch preserves the original reviewed diff and commit authors from #93168, including the maintainer fix for sessionId-only contexts, rebased onto current main.

User Impact

Nightly dreaming-narrative cron windows avoid active-memory cold-start work, reducing 45s lane timeout risk without suppressing unrelated interactive chats.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jun 22, 2026
@vincentkoc vincentkoc self-assigned this Jun 22, 2026
@vincentkoc
vincentkoc force-pushed the maint/recover-pr-93168-active-memory-dreaming branch 2 times, most recently from e09763b to f0b0e64 Compare June 22, 2026 09:35
xialonglee and others added 4 commits June 22, 2026 17:46
…ractive eligibility gate

Dreaming-narrative cron session keys (agent:<agent>:dreaming-narrative-*) share
trigger="user" with conversational sessions, so the isEligibleInteractiveSession
gate let them through. Each accepted invocation pays the full AM cold-start cost
inside a hardcoded 45000ms command-lane budget and reliably times out.

Fixes #78500

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…o canonical forms

Replace the broad substring match with a regex that only excludes canonical
dreaming-narrative session keys (bare or agent-prefixed) with known phase
suffixes (light, rem, deep). Real chat session IDs that happen to contain
"dreaming-narrative" (e.g. telegram:group:dreaming-narrative-room) remain
eligible.

Also add a regression test proving non-canonical keys pass the eligibility
gate.
@vincentkoc
vincentkoc force-pushed the maint/recover-pr-93168-active-memory-dreaming branch from f0b0e64 to fc8717e Compare June 22, 2026 09:46
@vincentkoc
vincentkoc merged commit 530658d into main Jun 22, 2026
85 checks passed
@vincentkoc
vincentkoc deleted the maint/recover-pr-93168-active-memory-dreaming branch June 22, 2026 10:01
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Thanks @vincentkoc!

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 23, 2026
…ibility gate (openclaw#95721)

Merged via squash.

Prepared head SHA: fc8717e
Co-authored-by: vincentkoc <25068+vincentkoc@users.noreply.github.com>
Co-authored-by: vincentkoc <25068+vincentkoc@users.noreply.github.com>
Reviewed-by: @vincentkoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: active-memory eligibility gate accepts dreaming-narrative session keys, busts 45s lane budget on cron

2 participants