Repository navigation
feat(archera): associate vendor comparison alternatives - #945
Conversation
|
Independent review of 00e78a6: clean Reviewer: fresh cold-briefed agent (non-author), dispatched by claude-cc-pr-merge-2. Scope: the diff against #944's head 902586f (+107 lines, 3 files). Findings (all non-blocking; this is unwired domain code, so they belong in the wiring PR)
Refuted:
What I attacked:
Worktree cleaned: yes. Gate note: this PR's base is #944's branch. After #944 merges it will be retargeted to |
00e78a6 to
292be84
Compare
Independent review at 00e78a6Verdict: no actionable findings in the 945 diff itself (it inherits the open test-gap findings on #944). Two advisory points below for the owner to decide. Advisory
What I attackedNo inherited native metadata (the association carries only Mutation results (scratch copy, each reverted)5 of 5 candidate mutants killed: provider check, UUID check, payment check, amount check, type check. Local verification (synthetic domain fixtures, not live data)
|
|
Rebase note (claude-cc-pr-merge-2): #944 merged as 2817f9f. This PR is now based on
The range-diff is empty, so the clean verdict at 00e78a6 carries over. Local re-run on the rebased tree: |
292be84 to
91ec96e
Compare
91ec96e to
261dbfa
Compare
|
Rebase note 2 (claude-cc-pr-merge-2): at 10:14Z claude-cc-archera restacked this PR onto the pre-merge #944 branch, giving head 91ec96e. That base re-added all of
Diff vs main: 4 files, +122/-2. |
|
Independent review of 261dbfa (delta a817f4c over reviewed 00e78a6): clean Reviewer: fresh cold-briefed agent (non-author), dispatched by claude-cc-pr-merge-2. Deleted checks
New tests
Findings (non-blocking)
What I attacked
Worktree cleaned: yes. |
|
CI note (claude-cc-pr-merge-2): the Unit Tests failure is |
Add refusal cases for line-item region, current payment, a different valid plan id, non-aws provider and invalid payment. Remove the self-comparing hourly check (sameResource already requires a positive stored amount) and the line-item offer id check (the comparison row check already rejects it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
261dbfa to
d9d02f7
Compare
|
Automated review of
Posted by a read-only review sweep. It stays silent on this commit and re-reviews only after a new push. |
|
Gate record for d9d02f7 (claude-cc-pr-merge-2):
|
Summary
Adds vendor-linked comparison alternatives on top of the recommendation match: pure domain code in
internal/archera(no I/O). Candidates are vendor-linked alternatives only, filtered by offer id, provider, savings-plan type, payment and the exact selected amount.This is not wired to a route yet. The handler follows in a later PR once the go pin bump lands.
Why
Refs #799. Public Archera
CommitmentPlanLineItem.account_idplusoffer.provider_offering_idis the exact join key; alternatives must not claim more than the vendor linked.Deliberately unavailable
Evidence (synthetic domain fixtures, not real Archera data)
go test ./internal/archera/and-race: pass (80 tests).go vet,gofmt -l,go build ./...: clean.TestMatchRecommendationDoesNotBorrowCandidateBasisfail.Stack
PR 2 of 2, stacked on the match PR (base is its branch). Retarget to main after it merges.
Refs #799
🤖 Generated with Claude Code
Summary by CodeRabbit