Repository navigation
Update OpenAI pricing, Ultrafast and quota accounting (v1.6.0) - #56
Conversation
capisoft-lib
left a comment
There was a problem hiding this comment.
Self-review of e3ccc6e completed. No blocking functional findings.
Checked independent API/credit/subscription tier gates; strict 272K whole-request context accounting; cache writes charged once; Fast versus Ultrafast premiums; unknown tiers and preview models remaining unrated; conservative observed Batch/Flex coverage; mixed-tier SQL groups, search and quota calibration; and reproducible export buckets. Reviewed the historical Fast correction as a reconstructed assumption rather than an invented price-change date. Base GPT-6 token rates and saved custom prices are preserved.
Validated 339 root, 15 hosted and 6 Mesh tests, Docker build/persistence/local collector, hosted lint/typecheck and real desktop/mobile UI with synthetic data. The calendar-sensitive D1 assertion now targets the specific historical session while retaining the event-count and dirty-cache checks.
Reviewed the explicit development-only Braces advisory exception: exact package version and advisory, lockfile dev-only chain, automatic October 23 expiry, printed exception, and negative tests for production/new advisories/metadata/version/cycles. This is not zero-vulnerability Sites audit; the known upstream risk and repository-controlled glob inputs are documented. Available Sharp and Source Map JS fixes are included; Mesh audit is clean. The dependency-free Docker runtime and application request handlers do not use the affected glob parser.
Merge only after both required CI jobs pass on this exact head and the branch is current with main. Publish Docker and the private Site from merged source; preserve Site audience, settings and stored data.
Ultrafast calls were excluded from priced totals and could be shown as Standard. Add independent, dated service-tier resolution across API costs, purchased Codex credits, subscription quota calibration, profiles and exports. Preserve the original model IDs/timestamps/counters already carried through the collector and Mesh.
chat-latestAPI card without assigning its moving model identity.Validation: 339 root tests, 15 hosted tests/build, 6 Mesh tests/build, hosted lint/typecheck, Docker build and read-only persistence/replacement/local-collector smoke. Sixteen new regression tests cover accounting, date gates, mixed-tier aggregation/export/search, quota weighting and strict dependency-audit handling. Desktop/mobile UI checks used synthetic data and confirmed the history scroll and distinct badges. Fix the D1 test's calendar-dependent global rollup count by asserting the target historical session.
Release dependency checks: patch Sharp 0.35.5 and Source Map JS 1.2.2; Mesh audit reports zero vulnerabilities. Sites has one explicitly documented upstream advisory, GHSA-vfj7-8cjw-p6xm, with no patched Braces release. A temporary exception expires October 23 and applies only to exactly 3.0.3 and its development-only dependency chain. Other advisories, production dependencies, changed versions, incomplete metadata and expiry still fail CI. This is printed as an exception, never as a clean audit; see
docs/dependency-exceptions.mdand the regression tests.Evidence: API changelog, API card, credit card, speed rules, October 8 Codex launch. Standard GPT-6 prices remain unchanged. Day-only boundaries remain estimated; unobserved fees and undocumented tiers stay outside calculated sums.