U6 slice 1: event-stream cursor catch-up, real reconnect, periodic rescue (pin #147/#148) #343

Merged
weichen merged 16 commits from feature/collab-storage-u6-events into main 2026-10-11 12:03:37 +00:00
Owner

Plan U6 slice 1 (KTD6/R5), continuation toward completion.

  • backend PR #147: Listener rewritten with per-conversation cursors - batch intermediate events no longer skipped (64-batch test), 1200+ events page through EventsAfter, connection drops actually reconnect (backoff, LISTEN, known-stream resume) and recover the outage window, and a periodic rescue ticker delivers events whose NOTIFY was lost (probe-verified: cursor advances and the event lands even with no notification).
  • backend PR #148: internal core pin aligned with Dev modules/core (7a98a7e7, core PR #26) to unblock test-pins.

Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (pgbus suite twice green), make build - all exit 0. CI GATE first run on this PR.

Task card: .task/feature-collab-storage-u6-events.md

Plan U6 slice 1 (KTD6/R5), continuation toward completion. - backend PR #147: Listener rewritten with per-conversation cursors - batch intermediate events no longer skipped (64-batch test), 1200+ events page through EventsAfter, connection drops actually reconnect (backoff, LISTEN, known-stream resume) and recover the outage window, and a periodic rescue ticker delivers events whose NOTIFY was lost (probe-verified: cursor advances and the event lands even with no notification). - backend PR #148: internal core pin aligned with Dev modules/core (7a98a7e7, core PR #26) to unblock test-pins. Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (pgbus suite twice green), make build - all exit 0. CI GATE first run on this PR. Task card: .task/feature-collab-storage-u6-events.md
weichen added 6 commits 2026-10-11 09:35:05 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-collab-storage-u6-events.md; R0=0ecdcbd3c09397cfe7043c446a6da728f89b01bb.

Impact: task metadata only; the feature workspace starts at 0ecdcbd3c0.

Refs: .task/feature-collab-storage-u6-events.md
Why: the parent must pin the merged component SHA for combined build and CI.

Evidence: backend origin-main merge of #147 fetched post-merge.

Impact: gitlink only.

Refs: backend PR #147.
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=36897a1009eb8d3ec63fac8974446bbd4c59bbc0.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=36897a1009eb8d3ec63fac8974446bbd4c59bbc0; candidate=d1e962c52acc54462d3515287d01e12c2b7af22b.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u6-events.md
Why: after merging PR #147 (event catch-up) and #148 (core pin alignment), the task branch carries both; Dev pins the merged tip.

Evidence: backend task branch merged origin/main and builds green.

Impact: gitlink only.

Refs: backend PR #147, #148.
Record the U6 slice-1 delivery state and evidence in the task card
ci / test (pull_request) Successful in 2m23s
ci / test-pg (pull_request) Successful in 1m20s
c34074dc1e
Why: stage review needs results and evidence in the card before the PR.

Evidence: make test / test-backend-pg / make build exit 0 via the evidence tool.

Impact: task metadata only.

Refs: backend PR #147, #148.
weichen added 1 commit 2026-10-11 09:35:16 +00:00
Fill the task record PR link
ci / test-pg (pull_request) Successful in 1m5s
ci / test (pull_request) Successful in 2m25s
804fbcb153
Why: card and PR description are one document.

Evidence: Dev PR #343 created via Gitea API.

Impact: task metadata only.

Refs: PR #343.
weichen added 2 commits 2026-10-11 10:06:34 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=b1caa7cae13d35ec6e62c883d1f379aee35e35ef.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test (pull_request) Successful in 2m22s
ci / test-pg (pull_request) Successful in 1m18s
0c9c2d082d
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=b1caa7cae13d35ec6e62c883d1f379aee35e35ef; candidate=a1a794a824de0c5bde0673cd8b7e7611f23aadc0.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u6-events.md
weichen added 2 commits 2026-10-11 10:30:46 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=2229d718c7b25941cba1c2464ddd62f9d7466bec.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test (pull_request) Successful in 2m28s
ci / test-pg (pull_request) Successful in 1m4s
ae8eb2dd33
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=2229d718c7b25941cba1c2464ddd62f9d7466bec; candidate=861f0099ddc52dcc90e5b048b7d69c4facd92f10.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u6-events.md
weichen added 2 commits 2026-10-11 10:42:27 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=56152323f6179d8f99cfb2b4808573f1d95a63a2.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test (pull_request) Successful in 2m15s
ci / test-pg (pull_request) Successful in 1m5s
82d31aad28
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=56152323f6179d8f99cfb2b4808573f1d95a63a2; candidate=dcb8367c580d9469b69a0130ab55a1c3cb2e4173.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u6-events.md
weichen added 1 commit 2026-10-11 11:11:14 +00:00
Merge authoritative main into the task branch
ci / test (pull_request) Successful in 2m42s
ci / test-pg (pull_request) Successful in 1m5s
7a0a788136
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=866086c2a080716195c3dd35e6ef362016347c94.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync

# Conflicts:
#	modules/backend
weichen added 2 commits 2026-10-11 11:41:25 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=a70ed114fba2d51bb93ec8cb0662703ab0bc0614.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m6s
ci / test (pull_request) Successful in 2m35s
3fcbc1fc94
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=a70ed114fba2d51bb93ec8cb0662703ab0bc0614; candidate=3d2f4ecf9218cdb6c228f9552e7993d68f8f9537.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u6-events.md
weichen merged commit ad892d58fc into main 2026-10-11 12:03:37 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#343