You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tracking: cost and subscription outlook (resurrected from #870, #803) #995
#870 (subscription usage outlook) was closed 2026-05-09 although PR #987 explicitly stated "Does NOT close this issue" — only lint/type housekeeping landed; zero of the nine feature ACs were met. #803 was closed with headline cost-tracking features deferred to "follow-up" with no issue number.
This should be treated as a durable semantic model issue, not a reporting widget. Current code has pricing/cost payload models under polylogue/archive/semantic/pricing.py and subscription/outlook model shapes, but the issue needs a source-of-truth contract for usage, pricing, plan coverage, and forecasts.
Refined scope:
Separate usage facts (tokens/messages/tool calls/provider events), pricing facts (model/unit/currency/effective date/source), subscription plan rules (included quota/caps/overage/reset cycle), and forecasts/anomalies (derived, confidence-bearing).
Preserve provider/source/model identity correctly: source family is not the same as lab, and model strings need canonicalization plus unknown handling.
Plan-covered usage and metered overage should be computed separately; do not collapse everything into dollar estimates.
Pricing tables must be versioned/effective-dated and allow unknown/stale prices to degrade explicitly.
CLI/API/insight surfaces should report confidence and missing data, not false precision.
Implementation anchors:
polylogue/archive/semantic/pricing.py and subscription_models.py.
Provider metadata/model/token fields from parsers and content/provider events.
Insight/aggregate storage if outlooks become durable read models.
Acceptance should include fixtures for: plan-covered usage, overage usage, unknown model pricing, pricing effective-date change, monthly reset/cycle boundary, and forecast confidence with missing token data.
Not a new child here — #1122 (cost panel with confidence chips) already exists from the #993 reader decomposition and is the right home. It depends on #1138's typed payload.
Status
Keeping this as an open umbrella until all six children close. Will close #995 with an AC matrix when #1132/#1136/#1137/#1138/#1139/#1140 (and the #1122 reader slice) ship.
Activity
Sinity commentedon May 11, 2026
Strengthening pass — cost/subscription outlook
This should be treated as a durable semantic model issue, not a reporting widget. Current code has pricing/cost payload models under
polylogue/archive/semantic/pricing.pyand subscription/outlook model shapes, but the issue needs a source-of-truth contract for usage, pricing, plan coverage, and forecasts.Refined scope:
Implementation anchors:
polylogue/archive/semantic/pricing.pyandsubscription_models.py.Acceptance should include fixtures for: plan-covered usage, overage usage, unknown model pricing, pricing effective-date change, monthly reset/cycle boundary, and forecast confidence with missing token data.
Sinity commentedon May 17, 2026
Decomposition
Same pattern as #993 → #1118-#1125 and the parallel #994 decomposition. Filed six PR-sized children covering every #870 and #803 carry-over AC.
Coverage check against #870 ACs
#803 carry-overs
provider_metacost fallback reads → refactor(cost): remove provider_meta cost fallback reads outside extractors #1139Web reader cost panel
Not a new child here — #1122 (cost panel with confidence chips) already exists from the #993 reader decomposition and is the right home. It depends on #1138's typed payload.
Status
Keeping this as an open umbrella until all six children close. Will close #995 with an AC matrix when #1132/#1136/#1137/#1138/#1139/#1140 (and the #1122 reader slice) ship.
feat(cost): typed subscription plan config (#1132) (#1153)
feat(cost): cycle outlook engine (#1137) (#1160)
test+docs(cost): contract suite and cost model docs
test+docs(cost): contract suite and cost model docs (#1140) (#1173)
Sinity commentedon May 17, 2026
Closing — all decomposition children shipped
Per the 2026-05-17 decomposition comment, this umbrella tracked six child issues covering every #870 AC and #803 carry-over. All six are now closed:
#870 AC coverage
#803 carry-overs
provider_metacost fallback reads → refactor(cost): remove provider_meta cost fallback reads outside extractors #1139All shipped. Closing as completed.