Repository navigation
Conversation
…3375) The diff compared fee_period as a raw string, but the legs use different vocabularies for the same fact: the plan-store Effect schema only admits monthly/yearly/once, while the tracker says month/year. Since #1270 slice 2 seeded the store, every daily diff reported 9 fee_period findings that were pure vocabulary noise. Normalise the store leg to the tracker vocabulary in load_store (monthly->month, yearly->year); values outside the map (e.g. once) pass through untouched, so a genuinely new period still reports drift. The fixture masked this: its hand-written store row used month, a value the real store schema rejects. The fixture now carries monthly (the real store value), so the agreeing-legs case proves no drift, and a new case proves a genuine mismatch (monthly vs year) is still caught with the plan-store named as winner. Failing-first: the agreeing-legs case failed pre-fix with a fee_period finding {plan-store: monthly, tracker: month}.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13375.
Summary
The daily reconciliation diff compared
fee_periodas a raw string, but the legs use different vocabularies for the same fact: the plan-store Effect schema only admitsmonthly/yearly/once, while the tracker saysmonth/year. Since #1270 slice 2 seeded the store, every daily diff reported 9fee_periodfindings that were pure vocabulary noise, burying any real drift. The store leg is now normalised to the tracker vocabulary inload_store(monthly→month,yearly→year); values outside the map (e.g.once) pass through untouched, so a genuinely new period still reports drift.Evidence
{'plan': 'go-personal', 'field': 'fee_period', 'values': {'plan-store': 'monthly', 'tracker': 'month'}, 'winner': 'plan-store'}— and passes after the fix.month, a value the real store schema rejects. It now carriesmonthly(the real store value), so the agreeing-legs case proves no drift, and a new case proves a genuine mismatch (monthlyvsyear) is still caught with the plan-store named as winner.fleet queue dispatchis still blocked by TLS fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185, invalid peer certificate): run https://github.com/developing-today/fleet/actions/runs/45203450530, conclusion success,cd pm-stack/provider-usage && python3 test_reconcile.py—all reconcile fixture tests pass.Merge Danger
Low. One mapping table plus one fixture-value change, confined to the quota-plane reconciliation script. The only diffs that disappear are the vocabulary-noise
fee_periodrows; genuine period mismatches are covered by the new fixture case.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.