Skip to content

chore: Consume accepted marker history with an atomic user cursor - #5500

Merged
Sinity merged 5 commits into
masterfrom
batch/polylogue-20260924-222219-38dc76d3/integration
Sep 24, 2026
Merged

Sinity merged 5 commits into
masterfrom
batch/polylogue-20260924-222219-38dc76d3/integration

Conversation

@Sinity

@Sinity Sinity commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Batch polylogue-20260924-222219-38dc76d3 on base d08b63dcf1b1.

polylogue-ylh7v.1 Consume accepted marker history with an atomic user cursor

  • Production marker delivery reads accepted source batches by stream sequence in bounded contiguous pages above the user sink cursor; it never reconstructs marker candidates from current indexed session
  • Assertion lowering and advancement of the stream cursor commit in the same user-db transaction; injected failure leaves both effects unchanged.
  • Restart/retry after commit resumes after the committed sequence without duplicate effects; failure before commit retries the same batch; a malformed/conflicting batch blocks advancement rather than be
  • Existing human judgment/deletion precedence is preserved, marker-delivery failure does not invalidate an otherwise current profile, and pending accepted inputs cannot resurrect excised/purged material
  • User migrations 003 and 004 have authenticated, production-consumer riders and valid canonical checksums; v2-to-v4 and v3-to-v4 migration routes preserve existing assertions/cursor data through the ve
  • The durable-train runtime-consumer adapter for the accepted-marker cursor exercises the production writer; a regression test fails if the rider is merely declarative or the adapter does not reach that
  • Exact focused consumer, migration-train and static quick checks pass; receipts are recorded.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 3d98bbb0-0abb-433c-8f6d-a65507aba59b

📥 Commits

Reviewing files that changed from the base of the PR and between d08b63d and 26d103c.

📒 Files selected for processing (15)
  • docs/plans/durable-write-census.yaml
  • docs/plans/layering.yaml
  • polylogue/operations/session_profile_convergence.py
  • polylogue/storage/derived/session/marker_domain.py
  • polylogue/storage/sqlite/archive_tiers/__init__.py
  • polylogue/storage/sqlite/archive_tiers/user.py
  • polylogue/storage/sqlite/archive_tiers/user_write.py
  • polylogue/storage/sqlite/durable_change_train.py
  • polylogue/storage/sqlite/migrations/user/003.train.json
  • polylogue/storage/sqlite/migrations/user/004.train.json
  • polylogue/storage/sqlite/migrations/user/004_accepted_marker_delivery_cursor.sql
  • tests/unit/daemon/test_session_profile_composition.py
  • tests/unit/storage/test_accepted_marker_consumer.py
  • tests/unit/storage/test_assertion_status_shape.py
  • tests/unit/storage/test_session_profile_derivation.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T23:08:04.291691Z 26d103c PR opened
🔒 Security Review ✅ Completed 2026-09-24T23:07:34.663132Z 26d103c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26d103cc86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Sinity
Sinity merged commit 6933d90 into master Sep 24, 2026
3 checks passed
@Sinity
Sinity deleted the batch/polylogue-20260924-222219-38dc76d3/integration branch September 24, 2026 23:13
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.

1 participant