Skip to content

preflight: the website type check starts without route types a local build left behind - #860

Merged
irparent merged 1 commit into
mainfrom
fix/preflight-stale-next-types
Oct 6, 2026
Merged

irparent merged 1 commit into
mainfrom
fix/preflight-stale-next-types

Conversation

@irparent

@irparent irparent commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

The local preflight now type-checks the website exactly as CI does. The website's tsconfig.json includes the route types Next.js generates under .next/types and .next/dev/types. CI checks a fresh checkout, where those folders do not exist; a local next build or next dev leaves them behind. Both website steps now clear the two folders before they run, so a route removed on one branch never fails the check on another.

A test reads the generated paths from the website's tsconfig.json and checks both steps clear exactly those, so a new generated include is covered the day it is added.

Verified: with a stale .next/types/validator.ts importing a deleted route, tsc --noEmit in website/ fails; after the step's cleanup it passes.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
website Ignored Ignored Oct 6, 2026 6:20pm UTC

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Iris gate — 1 of 2 tripped --fail-on detector_veto

iris-eval ingest: 3 stored, 1 tripped --fail-on detector_veto (2 of 3 evaluated in dataset "release-gate")

Trace Verdict Basis Rules, classes or missing inputs Evidence
9ae897842882b775ccc19f8538aaa58d failed detector_veto + risk_over_loss no_pii, pii_leak, credential_leak no_pii: AWS Access Key (output 45–65)
Verdict basis Traces
detector_veto 2
clean 1

Unjudged questions: task_completed (3), tool_use_correct (3) — a trace that did not carry what a rule needs.

tests/fixtures/ci-gate/traces.ndjson · 3 evaluated · dataset release-gate: 2 in the gate · exit 1 · what the bases mean

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Iris gate — 1 stored, nothing tripped --fail-on any

iris-eval ingest: 1 stored, 0 tripped --fail-on any

Verdict basis Traces
clean 1

Unjudged questions: task_completed (1), tool_use_correct (1) — a trace that did not carry what a rule needs.

tests/fixtures/ci-gate/clean.ndjson · 1 evaluated · exit 0 · what the bases mean

@irparent
irparent merged commit c903490 into main Oct 6, 2026
73 checks passed
@irparent
irparent deleted the fix/preflight-stale-next-types branch October 6, 2026 19:04
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