Skip to content

fix(cost): reconcile cost outlook with typed/storage contracts (#870) - #984

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/cost-outlook-coherence
May 9, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/cost-outlook-coherence

Conversation

@Sinity

@Sinity Sinity commented May 9, 2026

Copy link
Copy Markdown
Owner

Summary

Fix lint/type errors in polylogue/archive/semantic/outlook.py, align session-profile cost fields with storage contracts, and reconcile test_cost_queries.py with actual cost return types.

Solution

  • outlook.py: fix lint/type errors, apply ruff format
  • cost_compute.py: align cost field contracts
  • init.py: export clean surface

Certification

WORK

  1. Fix lint/type errors in outlook.py
  2. Align session-profile cost fields with typed/storage contracts
  3. Reconcile test_cost_queries.py with cost return contracts

REALIZATION

  1. polylogue/archive/semantic/outlook.py: lint+type fixes
  2. polylogue/archive/semantic/cost_compute.py + init.py: contract alignment
  3. test_cost_queries.py: aligned expectations

DECLARATION

I declare every WORK item above to be fully realized. Verified by: pytest tests/unit/storage/ -k cost -q; ruff check; mypy.

Refs #870

Fix lint/type errors in outlook.py, align session-profile cost fields
with storage contracts, and reconcile test_cost_queries.py expectations
with actual cost return types.

Refs #870
Copilot AI review requested due to automatic review settings May 9, 2026 12:14
@coderabbitai

coderabbitai Bot commented May 9, 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 30 minutes and 34 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: a411a5c6-38a4-48eb-8465-871a2507ca73

📥 Commits

Reviewing files that changed from the base of the PR and between 0451802 and 65e3179.

📒 Files selected for processing (3)
  • polylogue/archive/semantic/__init__.py
  • polylogue/archive/semantic/cost_compute.py
  • polylogue/archive/semantic/outlook.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/cost-outlook-coherence

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 02f86f8 into master May 9, 2026
8 of 14 checks passed
@Sinity
Sinity deleted the feature/fix/cost-outlook-coherence branch May 9, 2026 12:19
@Sinity
Sinity removed the request for review from Copilot May 9, 2026 12:38
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