Skip to content

refactor(review): align receipt fallback model to deepseek-flash - #47

Merged
cgl-agent-coordinator[bot] merged 1 commit into
mainfrom
refactor/align-receipt-default-model
Dec 4, 2026
Merged

cgl-agent-coordinator[bot] merged 1 commit into
mainfrom
refactor/align-receipt-default-model

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

AI assistance

  • Model / agent: Antigravity

What changed

  • Updated the default model fallback in packages/review-core/receipt.mjs (formatReceiptComment) from 'deepseek-chat' to 'deepseek-flash' so it matches packages/review-core/provider.mjs and the deployed wrangler.*.toml fallback model configs.

How verified

  • npm test -> 79 passed, 0 failed.
  • /usr/local/bin/gitleaks git --log-opts="origin/main..HEAD" --redact -> no leaks found.

Why

Remove the stale 'deepseek-chat' fallback literal in receipt.mjs so receipt formatting defaults align with the active DeepSeek fallback configuration.

Risk

  • Low: formatting default only; all production callers pass model explicitly.

Co-authored-by: Antigravity <noreply@google.com>
@cgl-opencode-reviewer

Copy link
Copy Markdown

AI Code Review (opencode / glm-5.4+kimi-k3.1-pro)

[glm-5.4] Single-line default-parameter change in formatReceiptComment (receipt.mjs) aligning the receipt fallback model literal from 'deepseek-chat' to 'deepseek-flash' with the stated provider.mjs/wrangler config. No correctness, security, credential, or architecture-boundary issues are present in the diff; the change is low risk given production callers pass model explicitly and the PR reports the full test suite passing. The only observation is maintainability-level: the fallback model literal is duplicated across receipt.mjs, provider.mjs, and wrangler.*.toml with no shared constant or consistency test, which is precisely how the original drift occurred and could recur. [kimi-k3.1-pro] The one-line fallback change is internally consistent with the stated provider and deployment configuration, introduces no apparent correctness, security, or architecture issues, and does not require a new critical test.

Reviewed commit: 6296d748e2 · Coverage: complete · Unresolved findings: false

Findings

  • [LOW] packages/review-core/receipt.mjs: The fallback model string now exists as a duplicated literal in receipt.mjs, provider.mjs, and the wrangler.*.toml configs with no single source of truth or test asserting they stay aligned — the exact drift this PR fixes can silently recur. Consider exporting a shared default-model constant from review-core (keeping it cloud-agnostic) or adding a small consistency test. Non-blocking suggestion only.

@cgl-agent-coordinator

Copy link
Copy Markdown
Contributor

@Pigbibi needs a human: merging this repository deploys; owner approval needed.

@cgl-agent-coordinator

Copy link
Copy Markdown
Contributor

Autoland: escalated to the owner: merging this repository deploys; owner approval needed

@cgl-agent-coordinator

Copy link
Copy Markdown
Contributor

@Pigbibi needs a human: merging this repository deploys; owner approval needed.

@cgl-agent-coordinator

Copy link
Copy Markdown
Contributor

Autoland: escalated to the owner: merging this repository deploys; owner approval needed

@cgl-agent-coordinator
cgl-agent-coordinator Bot merged commit ecdf5de into main Dec 4, 2026
14 checks passed
@cgl-agent-coordinator
cgl-agent-coordinator Bot deleted the refactor/align-receipt-default-model branch December 4, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant