Skip to content

feat: cost query tests, session lineage, reader marks (#803/#866/#867) - #942

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/803-cost-test
May 7, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/803-cost-test

Conversation

@Sinity

@Sinity Sinity commented May 7, 2026

Copy link
Copy Markdown
Owner

#803: cost query tests. #866: topology_edges + lineage API. #867: user_marks + saved_views.

- #803: add cost query tests proving typed columns
- #866: topology_edges table + lineage API + session identity materialization
- #867: user_marks + saved_views DDL + MCP tools

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copilot AI review requested due to automatic review settings May 7, 2026 19:11
@Sinity
Sinity merged commit 860d4a4 into master May 7, 2026
@Sinity
Sinity deleted the feature/fix/803-cost-test branch May 7, 2026 19:11
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 39 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 68c9794b-2221-4fc5-90bd-224aea9ac860

📥 Commits

Reviewing files that changed from the base of the PR and between d3bcdd0 and 863cb2c.

📒 Files selected for processing (9)
  • polylogue/api/archive.py
  • polylogue/api/sync/view_loader.py
  • polylogue/storage/repository/archive/repository_writes.py
  • polylogue/storage/sqlite/queries/conversations.py
  • polylogue/storage/sqlite/queries/conversations_identity.py
  • polylogue/storage/sqlite/schema_bootstrap.py
  • polylogue/storage/sqlite/schema_ddl.py
  • polylogue/storage/sqlite/schema_ddl_archive.py
  • tests/unit/storage/test_cost_queries.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/803-cost-test

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 and usage tips.

@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: 863cb2c7b9

ℹ️ 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 removed the request for review from Copilot May 7, 2026 19:35
Sinity added a commit that referenced this pull request May 7, 2026
Three independent slices that each close out work captured by their
own issue but were merged together as the closing wave for the
subscription/lineage/reader product cluster.

- #803 (cost): adds query tests covering the cost CLI and tokenizer
  paths so the subscription accounting surface has executable
  evidence rather than just types and DDL.
- #866 (topology/lineage): adds the `topology_edges` table plus the
  lineage API surface that materializes session continuations,
  sidechains, subagents, forks, and unresolved native parents into a
  durable graph instead of leaving lineage spread across
  `parent_conversation_id`, `parent_message_id`, and `work_threads`.
- #867 (reader marks): adds `user_marks` and `saved_views` tables so
  the reader can persist stars/pins/important/read-later marks and
  user-defined views as durable archive rows rather than UI-local
  state.

Refs #803, #866, #867
Sinity added a commit that referenced this pull request May 7, 2026
Three independent slices that each close out work captured by their
own issue but were merged together as the closing wave for the
subscription/lineage/reader product cluster.

- #803 (cost): adds query tests covering the cost CLI and tokenizer
  paths so the subscription accounting surface has executable
  evidence rather than just types and DDL.
- #866 (topology/lineage): adds the `topology_edges` table plus the
  lineage API surface that materializes session continuations,
  sidechains, subagents, forks, and unresolved native parents into a
  durable graph instead of leaving lineage spread across
  `parent_conversation_id`, `parent_message_id`, and `work_threads`.
- #867 (reader marks): adds `user_marks` and `saved_views` tables so
  the reader can persist stars/pins/important/read-later marks and
  user-defined views as durable archive rows rather than UI-local
  state.

Refs #803, #866, #867
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 76.F068 / P1: refuted at the checked revision: Appending a v10-to-v11 migration to the predecessor v9 bootstrap route is not a supported fresh-format operation. The fresh-format contract excludes migration or readback of earlier Polylogue state, while allowing new external source ingestion. See AGENTS.md:75.
  • 76.F069 / P1: refuted at the checked revision: Restoring dispatch for the predecessor v9/v10 upgrade actions would reinstate the removed in-place archive upgrade chain. The fresh-format contract excludes migration or readback of earlier Polylogue state, while allowing new external source ingestion. See AGENTS.md:75.

Only the rows listed above are dispositioned. Held findings remain open.

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