Skip to content

bucket capture docs by 6h utc window#59

Merged
Prasanna721 merged 2 commits into
mainfrom
fix-6h-doc-bucket
Jun 21, 2026
Merged

bucket capture docs by 6h utc window#59
Prasanna721 merged 2 commits into
mainfrom
fix-6h-doc-bucket

Conversation

@Prasanna721

@Prasanna721 Prasanna721 commented Jun 18, 2026

Copy link
Copy Markdown
Member

swaps the per-session customId for a 6h UTC time bucket (session__b0..b3). turns inside the same window share one customId so the backend appends them into one doc, rolls over every 6h. containerTag still separates users.

side effect: drops the sessionKey / session_start plumbing entirely, which is the exact code PR #39 touched. so the "session_start never fires -> customId drops -> every turn becomes its own doc" path is gone.

append-on-same-customId behavior confirmed, so a stable bucket id is all that's needed (no capture change).

still draft for one open thing: confirm customId is scoped per containerTag not global (else two users collide on the same bucket id). not run end to end yet - needs the openclaw runtime + a supermemory key to exercise the agent_end hook.

@Prasanna721
Prasanna721 marked this pull request as ready for review June 18, 2026 02:43
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@sreedharsreeram sreedharsreeram left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Prasanna721
Prasanna721 merged commit 587cd62 into main Jun 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants