refactor: reduce fallback slop in zero run settings#20734
Merged
Conversation
Contributor
Author
|
LGTM PR_AUTO_REVIEW_COMMIT: 0d0d183 SummaryThis PR makes nullable database boundaries explicit for zero run model settings and Slack message footer resolution. The command-over-agent precedence is preserved, and nullable DB values are normalized before optional API fields are populated. FindingsCritical (P0)
High Priority (P1)
Testing
|
Contributor
|
API preview: https://pr-20734-api.vm6.ai |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
Daily AI-slop fallback cleanup focused on nullable database boundaries in zero run settings. This keeps existing command-over-agent precedence and makes null-to-undefined normalization explicit where downstream
CreateAgentRunArgsand Slack message footer resolvers expect optional strings.Scan
Total matches by category:
Budget
Files Changed
turbo/apps/api/src/signals/services/zero-runs-create.service.ts: normalizes nullable agentmodelProviderIdandselectedModelvalues through an explicit helper before passing optional run settings. This is safe becausezeroAgentsstores these fields as nullable database columns whileCreateAgentRunArgsaccepts omitted optional strings; command-level overrides still take precedence.turbo/apps/api/src/signals/services/zero-integrations-slack-message.service.ts: replaces fallback chains in internal agent/run row resolvers with explicit missing-row and null checks. This preserves existing outputs, including non-nullzeroAgents.namefallback andundefinedfor missing selected model.Verification
node /home/user/.codex/skills/ai-slop-fallback-cleanup/scan-ai-slop-fallbacks.mjs /home/user/workspace/vm0 --out /tmp/ai-slop-fallback-scan-after.jsonconfirmed no remaining high-confidence actionable records in touched files; total high-confidence production-actionable records dropped from 223 to 217.git diff --checkpnpm -F api check-typescould not run in this fresh clone becausenode_modulesis absent andtscis unavailable; the PR pipeline will run dependency-backed checks.This workflow intentionally leaves the remaining candidates for later daily runs.