Repository navigation
ci(reconcile): settle rounding, route and small-gap questions (AI-2552) - #343
Conversation
⏸️ AI review: human review required
Not eligible — reasons
Generated by the AI review gate. The bot only posts an approval; the author merges. This is an audit record; the branch ruleset is what enforces it. |
The weekly bot asked again about cases a rule can settle. A price a page only rounds is no longer asked; if the bot asks anyway, code lists the question with its notes, comparing labelled values rate by rate. A Bedrock source region dropped from a model card keeps its route, under its own skip reason, route_unlisted. The bot may add a value the SDK refuses only because a table lacks it, when the host fails loudly on a wrong one, giving a model its own list rather than widening a shared one. Guard tests make every catalogued reasoning level reach the request, and one-fact skips no longer hide an offering from "Changed with no row".
2db2133 to
71eed95
Compare
| var needs, rounded []NeedsHuman | ||
|
|
||
| for _, item := range report.NeedsHuman { | ||
| if item.Field == priceField && slices.Contains(roundingPreempts, item.Rule) && roundingOnly(item.Catalogue, item.Page) { |
There was a problem hiding this comment.
Keep the price question open when another source disagrees.
A sources-disagree row can put a competing rate in Values, which this check skips. I'd keep the question open whenever a competing rate differs by more than rounding so the reviewer can resolve it.
Catalog has 4.125, one source prints 4.13, and another lists 5.00 in Values -> the report moves the question out of Open questions.
There was a problem hiding this comment.
Good catch, thanks. Fixed in 0092d36 - a row whose notes give a rate that is neither ours nor its rounding now stays under Open questions. Your example (4.125, 4.13, 5.00) is now a case in TestRenderRoundingOnly, and TestOtherRate checks that a label such as 5m cache write isn't read as a rate.
…(AI-2552) A sources-disagree row can carry a third source's rate in its values. The rounding check compared only our rate with the page's, so a row with 4.125 in the catalogue, 4.13 on one page and 5.00 from another source left Open questions. A note that gives a rate other than ours or its rounding now keeps the row asked.
…o adam/ai-2552-repeat-question-rules # Conflicts: # .github/reconcile-models/RULES.md # cmd/catalog-report/report.go
Summary
Context: the catalog bot (#255), an AI agent, opens a weekly PR matching the SDK's model catalog to vendor docs.
Problem: its 16 Nov PR (#336) asked again about three cases no rule in
RULES.mdsettled.This PR:
Who notices: bot PR reviewers get three fewer repeat questions. Bot PRs may add such levels to SDK code, listed for review under "Code changed". No SDK behaviour changes.
Proof: unit tests.
Size: 14 files, about 400 lines: 39% code, 56% tests, 5% rules.
Related PRs:
decisions.yaml.What changes
Host pages (
.claude/skills/reconcile-models/hosts/) tell the bot where each host, such as Vertex, publishes its facts. A skip is the bot leaving something out because a rule says so.RULES.md,cmd/catalog-report/report.goroute_unlisted, unless the page announces an end of life. Keeping a dead route costs one failed call; dropping a live one refuses calls that work.RULES.md,hosts/bedrock.mdRULES.md,hosts/google.md,hosts/vertex.mdAlso fixed: the new route skip,
route_unlisted, leaves out one region, not the whole model, asfixed_fact_differsleaves out one differing fact, such as a release date. Both hid the model's other changes from "Changed with no row", the bot PR's list of unexplained catalog changes. Now those show, and such a skip may sit beside a question (effects.go,RULES.md).Testing
TestRoundingOnlypins 18 cases: $4.13 for $4.125 isn't asked, while $4 for $3.75 and $0.01 for $0.0075 are. Labelled values such ascache write 4.125are compared rate by rate, and a boundary case pins the 1% to the page's rate. A question whose notes add another source's $5.00 stays open, andTestOtherRatechecks that a label such as5m cache writeisn't read as a rate.xhighon Gemini 4 Carbon never reached the request, andultraon gpt-5 was refused. Vertex shares Gemini's table and Meta shares OpenAI's check, so only Bedrock's check went untried.Risk
pr-job.shenforces this). Anything that isn't plain data is listed under "Code changed" but not blocked, so a reviewer checks it kept to table entries.route_unlistedrow that names no region fails that vendor's PR job, as ano_catalog_fieldrow that names no fact already does.How to revert
Revert this commit. Table entries a later bot PR adds stay until reverted too.