Skip to content

fix: address review feedback on #959 (#944 follow-up) - #960

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/review-feedback-959
May 8, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/review-feedback-959

Conversation

@Sinity

@Sinity Sinity commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses all 21 review comments on #959.

Changes

  • Schema v12 in-place migration (ALTER TABLE ADD COLUMN for cost/token columns)
  • Fix outlook cycle-end bug (use start.month, not now.month)
  • Make _as_float robust against ValueError/TypeError
  • Update SessionProfileDocument TypedDict with cost fields
  • source_name extraction: use isinstance(str) check at all 3 sites
  • Remove unconditional legacy DB fallback in ConversationFormatter
  • Restore stricter assertions in test_check.py, test_prepare.py, test_status.py, test_daemon_status.py, test_vec.py, test_cost_queries.py
  • Add all() empty-guard in test_artifact_graph.py
  • Document --no-* flags in NixOS module
  • Use compiled multiline regex for <file path= context-dump detection
  • Add mutation operation contract assertions in test_specs.py

17 files changed, +82/-29.

- Add schema v12 in-place migration (ALTER TABLE for cost/token columns on
  messages and session_profiles)
- Fix outlook cycle-end calculation: use start.month, not now.month
- Make _as_float robust against ValueError/TypeError
- Update SessionProfileDocument TypedDict with cost fields; hydrate
  session profile dict with cost provenance
- source_name extraction: use isinstance check instead of str() at all 3 sites
- Remove unconditional legacy DB fallback in ConversationFormatter
- Restore stricter FTS-index-incomplete assertion in test_check.py
- Preserve connection-cleanup contract in test_vec.py
- Restore attachment idempotency assertions in test_prepare.py
- Tighten daemon-status and session-status assertions
- Add all() empty-guard in test_artifact_graph.py
- Restore test_cost_queries specificity with get_credit_rate check
- Document --no-* flags in NixOS module
- Use compiled regex for <file path= context-dump detection
- Add mutation operation contract assertions in test_specs.py
- Fix PR number reference in SCHEMA_VERSION comment
- Addresses all 21 review comments on #959
Copilot AI review requested due to automatic review settings May 8, 2026 06:15
@coderabbitai

coderabbitai Bot commented May 8, 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 12 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more 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: 18d2fb00-3d7a-4b6a-ab5b-4eba6a47931a

📥 Commits

Reviewing files that changed from the base of the PR and between 244ec78 and 194b622.

📒 Files selected for processing (17)
  • polylogue/archive/message/artifacts.py
  • polylogue/archive/semantic/outlook.py
  • polylogue/archive/session/documents.py
  • polylogue/archive/session/models.py
  • polylogue/pipeline/services/ingest_worker.py
  • polylogue/rendering/core_formatter.py
  • polylogue/storage/insights/session/profiles.py
  • polylogue/storage/repository/archive/writes/conversations.py
  • polylogue/storage/sqlite/queries/conversations_writes.py
  • polylogue/storage/sqlite/schema_bootstrap.py
  • polylogue/storage/sqlite/schema_ddl.py
  • tests/unit/cli/test_check.py
  • tests/unit/cli/test_status.py
  • tests/unit/daemon/test_daemon_status.py
  • tests/unit/pipeline/test_prepare.py
  • tests/unit/storage/test_cost_queries.py
  • tests/unit/storage/test_vec.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/review-feedback-959

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.

@Sinity
Sinity merged commit bcae726 into master May 8, 2026
7 of 8 checks passed
@Sinity
Sinity deleted the feature/fix/review-feedback-959 branch May 8, 2026 06:18

@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: 194b6223b9

ℹ️ 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 restored the feature/fix/review-feedback-959 branch May 8, 2026 06:22
Sinity added a commit that referenced this pull request May 8, 2026
Three test assertions tightened in #960 claimed invariants the code doesn't provide. Restore original assertions that accept actual behavior: idempotency is hash-dependent, FTS readiness model accepts empty indexes on seeded archives, freshness_info is legitimately probed twice.
@Sinity
Sinity removed the request for review from Copilot May 8, 2026 06:36
@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.F070 / P1: refuted at the checked revision: Wiring the predecessor v11-to-v12 upgrade plan back into bootstrap contradicts the current one-shape derived-index lifecycle. 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