Skip to content

fix(lint): merge the duplicate agent-status contract type imports - #20907

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/fix-snapshot-budget-duplicate-import
Sep 16, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/fix-snapshot-budget-duplicate-import

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2

Problem

main's tip fails the repo-wide audit:code-quality:native gate:

src/shared/agent-status-store-snapshot-budget.ts:7:44: warning import(no-duplicates):
  Modules should not be imported multiple times in the same file
Found 1 warning and 0 errors.

The job runs oxlint --deny-warnings, so that single warning exits 1. CI lints the merge ref, so every open PR inherits it: static analysis goes red, and verify then fails with static_analysis: expected success, got failure — on PRs that touch nothing related (e.g. #20767, a browser PR).

The file has two separate import type statements from ./agent-status-store-contract. It was added by #20717, which merged with its own static analysis and verify already 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.

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.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0c205623-c64c-413e-a707-8d39eab08224

📥 Commits

Reviewing files that changed from the base of the PR and between 6da7238 and e1e8176.

📒 Files selected for processing (1)
  • src/shared/agent-status-store-snapshot-budget.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The pull request reformats and consolidates the type imports in agent-status-store-snapshot-budget.ts. It does not change exported declarations or runtime behavior.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to e1e81

This formatting cleanup does not change behavior and is ready to merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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 … Update the description to include all required template sections. Add a valid Fixes #<issue> reference, state N/A with a reason for Visual Proof, document testing and platform coverage, complete the required checkboxes, and address the …
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: merging duplicate agent-status contract type imports to fix the lint issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

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 N/A, Testing checkboxes, AI Disclosure, Review, boundary confirmation, Notes, and the Checklist.

Resolution

Update the description to include all required template sections. Add a valid Fixes #&lt;issue&gt; reference, state N/A with a reason for Visual Proof, document testing and platform coverage, complete the required checkboxes, and address the remaining checklist items.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Merge duplicate contract type imports — folds the two import type { ... } from './agent-status-store-contract' statements in src/shared/agent-status-store-snapshot-budget.ts into a single multi-name import (AgentStatusFactRecord, AgentStatusTombstoneRecord), clearing import(no-duplicates). Both symbols remain referenced in the AgentStatusSnapshotRecord union, 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025
brennanb2025 merged commit 7ec2986 into main Sep 16, 2026
29 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant