improvement(guidance): make every ratchet shrink-only, scope rules to their files, fix stale guidance - #8594
Conversation
… their files, fix stale guidance - check:test-patterns --update refuses new violations and fails closed on a missing baseline - check:react-query drops its unused, growable baseline: every violation fails, as it already did - check:utils drops the id.ts allowlist entry by rewording the comment that tripped it - constitution, react-performance, and url-state rules load only for the files they govern - guidance: Switch stays the boolean toggle, current chip names, @sim/utils/random, db-migrate covers the schema mock and drizzle sync, apps/sim/AGENTS.md maps common tasks to skills
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
All reported issues were addressed across 24 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
…oks, and nuqs navigation helpers
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 24 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
check:test-patterns --updatewrote the current violation set unchecked, so following its own failure message admitted new debt. It is now shrink-only like the other ratchets, and a missing baseline fails closed instead of crashing.check:react-querycarried an empty baseline whose--update-baselinecould raise it. Every violation already failed, so the baseline, its update flag, and the strict/ratchet split are removed; behavior is unchanged.check:utils: drop thepackages/testing/src/factories/id.tsallowlist entry by rewording the TSDoc line that tripped it.constitution.md(marketing copy) andsim-react-performance.mdloaded in every session;sim-url-state.md(22 KB) loaded for every API route edit. Each now loads only for the files it governs.Switch(ChipSwitchis a segmented choice), current chip names insim-styling.md,SettingsFieldusage, the@sim/utils/randomhelperscheck:utilsalready requires,db-migratenow covers the schema mock and drizzle sync,check:migrationsbase-ref wording, and a common-task → skill index inapps/sim/AGENTS.md.Type of Change
Testing
check:test-patterns --updaterefuses a new local helper and writes nothing; a missing baseline fails with a restore messagebun run lint,bun run type-check,bun run check:audits(58),docs-manifest:check, block-registry check, rootbun run testChecklist
test-auditauthoring gate)🤖 Generated with Claude Code