Repository navigation
fix(lint): merge the duplicate agent-status contract type imports - #20907
Conversation
main's tip fails audit:code-quality:native on import(no-duplicates), which reds the static analysis and verify jobs of every open PR via the merge ref.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe pull request reformats and consolidates the type imports in Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This formatting cleanup does not change behavior and is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, fix, scope, and verification commands. However, it omits required template sections, including ELI5, Why, Linked Issue with a valid issue reference, Visual Proof or Resolution Update the description to include all required template sections. Add a valid
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Merge duplicate contract type imports — folds the two
import type { ... } from './agent-status-store-contract'statements insrc/shared/agent-status-store-snapshot-budget.tsinto a single multi-name import (AgentStatusFactRecord,AgentStatusTombstoneRecord), clearingimport(no-duplicates). Both symbols remain referenced in theAgentStatusSnapshotRecordunion, so nothing is dropped.
Pure import-level cleanup with no runtime surface; the repo-wide lint gate it unblocks is the right fix for a problem inherited from #20717.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…ablyai#20907) main's tip fails audit:code-quality:native on import(no-duplicates), which reds the static analysis and verify jobs of every open PR via the merge ref.

Problem
main's tip fails the repo-wideaudit:code-quality:nativegate:The job runs
oxlint --deny-warnings, so that single warning exits 1. CI lints the merge ref, so every open PR inherits it:static analysisgoes red, andverifythen fails withstatic_analysis: expected success, got failure— on PRs that touch nothing related (e.g. #20767, a browser PR).The file has two separate
import typestatements from./agent-status-store-contract. It was added by #20717, which merged with its ownstatic analysisandverifyalready red.Fix
Merge the two type imports into one statement. No behavior change.
Verification
pnpm run audit:code-quality:native— exit 1 before (the warning above), exit 0 after.pnpm tc:node— exit 0.pnpm run check:code-quality:changed— 0 new findings.