Skip to content

feat(threads): add durable session thread stores#3379

Merged
serrrfirat merged 2 commits into
reborn-integrationfrom
issue-3204-durable-threads
May 7, 2026
Merged

feat(threads): add durable session thread stores#3379
serrrfirat merged 2 commits into
reborn-integrationfrom
issue-3204-durable-threads

Conversation

@serrrfirat

Copy link
Copy Markdown
Collaborator

Summary

  • add feature-gated libSQL/PostgreSQL SessionThreadService implementations for canonical Reborn threads/transcripts
  • persist canonical thread records, messages, summary artifacts, and inbound idempotency rows with transactional mutations and payload/column integrity validation
  • cover durable parity for history/context/redaction, cross-scope denial, assistant draft idempotency, concurrent monotonic sequence assignment, and long external event IDs

Refs #3204

Verification

  • CARGO_TARGET_DIR=/tmp/ironclaw-cargo-target-threads IRONCLAW_SKIP_POSTGRES_TESTS=1 cargo test -p ironclaw_threads --all-features
  • CARGO_TARGET_DIR=/tmp/ironclaw-cargo-target-threads cargo test -p ironclaw_threads
  • CARGO_TARGET_DIR=/tmp/ironclaw-cargo-target-threads cargo clippy -p ironclaw_threads --all-targets --all-features -- -D warnings
  • cargo fmt --check --package ironclaw_threads
  • git diff --check
  • CARGO_TARGET_DIR=/tmp/ironclaw-cargo-target-threads cargo test -p ironclaw_architecture reborn_crate_dependency_boundaries_hold

Postgres tests use the existing explicit skip convention when no live DB is configured. Set IRONCLAW_THREADS_POSTGRES_URL or DATABASE_URL to exercise a live backend.

Review

  • Reviewer pass after fixes: no Critical/High/Medium findings.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added scope: docs Documentation scope: dependencies Dependency updates size: XL 500+ changed lines risk: low Changes to docs, tests, or low-risk modules contributor: core 20+ merged PRs labels May 7, 2026
@serrrfirat serrrfirat force-pushed the issue-3204-durable-threads branch from 5e9e11f to ee31fb4 Compare May 7, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: low Changes to docs, tests, or low-risk modules scope: dependencies Dependency updates scope: docs Documentation size: XL 500+ changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant