Skip to content

refactor: share Inspector finding contract - #4377

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/share-inspector-finding-contract
Nov 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/share-inspector-finding-contract

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Share the identical Inspector issue validator between the Node action and package backend, and derive both owners' finding/remediation types from that validator. Removes 51 net lines across four files.

Best-fix verdict: use a leaf that imports only convex/values. Keeping another field list would preserve drift; importing either owner into the other would cross the Node/V8 boundary. Existing local names remain aliases, and the Node directive stays first.

Behavioural Proof

  • Real Convex SDK exports match byte for byte for all 123 tables (including indexes) and all 121 registered package/Inspector functions (args, returns, visibility/kind).
  • Native TypeScript proves the two original finding types and two remediation types mutually assignable with their inferred replacements: four pairs, eight directions, using the project's actual strict settings.
  • Both original validator ASTs match the leaf initializer. All other statements in both owner modules are unchanged.
  • Isolated local Convex push, codegen, and deployment probe passed. Codegen adds only the new helper's type-only module entries.
  • No production data change, deployment, or release. UI screenshots: N/A.

Verification

  • 465 focused tests: convex/packageInspectorNode.test.ts, convex/packageInspectorNode.lifecycle.test.ts, convex/packageInspectorHttp.test.ts, convex/packageSdkUsage.runtime.test.ts, and convex/packages.public.test.ts.
  • bun run ci:static
  • bun run ci:unit (8,949 passed; 5 skipped)
  • bun run ci:types-build (includes schema/CLI package and deploy-equivalent Convex typechecks)
  • bun run ci:e2e-http
  • Native testbox run
  • Scoped autoreview --mode local --max-priority P3: clean through P3.

Preview Deployment Uncertainty

The Vercel preview status for head cc5b987322f65d38daa72371399a5620ad570d52 failed: deployment. GitHub reports only “Deployment has failed”; deployment logs are not accessible in this session, so the cause is unverified. Independent native static, full unit, TypeScript/build, HTTP, exact SDK-contract, private-type parity, and local Convex push checks passed. This preview failure is not being represented as green. Merge uses ordinary GitHub rules without an admin override.

No security/trust or storage/wire-contract change. AI-assisted; I understand and can maintain this refactor.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Error Error Nov 4, 2026 1:04am UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 4, 2026 01:04
@vincentkoc
vincentkoc requested review from a team and Patrick-Erichsen as code owners November 4, 2026 01:04
@vincentkoc
vincentkoc merged commit 219efc3 into main Nov 4, 2026
34 of 35 checks passed
@vincentkoc
vincentkoc deleted the refactor/share-inspector-finding-contract branch November 4, 2026 01:06

This branch had an error being deployed

1 failed deployment
Preview – clawhub — cc5b9873 Deployed Nov 4, 2026 by vercel[bot]
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