Skip to content

fix: accept precise provider prices without rounding - #4826

Merged
devantler merged 2 commits into
mainfrom
codex/audit-provider-price-4820-01a13332
Oct 13, 2026
Merged

devantler merged 2 commits into
mainfrom
codex/audit-provider-price-4820-01a13332

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by the Agentic Engineer

Why

The read-only recovery stops while interpreting the provider’s price response. A regression also confirms that the current reader rejects valid, detailed prices.

What

Handles detailed prices without rounding or changing the approved cost limit. Safe classifications identify any remaining response problem without publishing private pricing data.

Part of #4820

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: aa2aa1d7-ed62-4cc7-ab3e-8a9623ea940f
📥 Commits

Reviewing files that changed from the base of the PR and between 70c8348 and cde8eee.

📒 Files selected for processing (2)
  • scripts/expand-openbao-audit/price.go
  • scripts/expand-openbao-audit/price_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: 🔍 Detect Changes
🔇 Additional comments (1)
scripts/expand-openbao-audit/price_test.go (1)

17-19: LGTM!

Also applies to: 42-47

📝 Walkthrough

priceCode now returns distinct codes for decode errors, unsupported currencies, unsupported decimal syntax, and nonpositive prices. The accepted decimal format allows up to 32 fractional digits, increased from 12. Tests cover long decimal strings, budget-boundary values, excessive trailing zeros, scientific notation, and the updated diagnostic codes.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to cde8e

The pricing validation accepts the intended precise decimal inputs while retaining safe diagnostic classifications. No verified issue in these changes presents a material merge risk.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: accepting precise provider prices without rounding.
Description check Passed The description directly explains the recovery issue and the change to support detailed prices without rounding or changing the cost limit.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

The three functions analyzed by CodeRabbit now each have a purpose-specific Go doc comment at c2d5308. This addresses the reported documentation coverage without changing behavior or the threshold. Native race tests and lint still pass. The earlier finding-free review is not reused as current-head approval.

CodeRabbit’s completed review at 2026-10-13T09:25:51Z reports zero included reviews remaining under its one-per-hour allowance; no paid fallback is authorized. A fresh current-head review is requested from the next available lane.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T09:34:37.496884Z c2d5308 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: c2d5308c0e

ℹ️ 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".

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Ready at c2d5308: current-head Codex review 6142632943 is clean, the three CodeRabbit documentation observations are addressed without changing the threshold, and there are no review threads. Source CI 38376854675 and the readable required workflows pass; the effective PR body passes its contract, the commit signature verifies, and the forge reports CLEAN. Configured code-quality has no readable head verdict and remains forge-enforced; no gate is bypassed.

The precise price calculation retains the same conservative gross-EUR cost cap and all operational checks. Expansion remains unexecuted; after actual merge, fresh accepted production evidence and read-only preflight must pass before the separately approved operation.

@devantler
devantler marked this pull request as ready for review October 13, 2026 09:48
@devantler
devantler added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 6eb1ba5 Oct 13, 2026
32 checks passed
@devantler
devantler deleted the codex/audit-provider-price-4820-01a13332 branch October 13, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant