Repository navigation
chore(checks): enforce agent-guidance rules with checks - #10778
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
5 issues found across 141 files
Confidence score: 3/5
settings-resource-row.tsxallows callers to pass bothhrefandonClick, but rendering the link silently drops the click handler. Make the activated cases mutually exclusive in the type.validate-model/SKILL.mdno longer checks hosted providers’{PREFIX}_COUNTand{PREFIX}_1..Nkey pools, so validation can report a model ready when hosted execution will fail. Restore that check.add-column-type/SKILL.mdomits thepackages/emcn/src/icons/index.tsbarrel export, so the documented column icon import can fail type-checking. Add theType{Pascal}export step..claude/rules/emcn-components.mdpoints package authors to styling guidance that does not matchpackages/emcn/**. Add the package glob tosim-styling.mdor keep the package-specific token convention here.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/app/workspace/[workspaceId]/settings/components/settings-resource-row/settings-resource-row.tsx">
<violation number="1" location="apps/sim/app/workspace/[workspaceId]/settings/components/settings-resource-row/settings-resource-row.tsx:90">
P2: This activation type should make `href` and `onClick` mutually exclusive; otherwise callers can pass both and the component silently drops `onClick` because `href` wins at render time. Split the activated cases into an `onClick` variant and an `href` variant, and reject a label without an activation target.</violation>
</file>
<file name=".claude/rules/emcn-components.md">
<violation number="1" location=".claude/rules/emcn-components.md:9">
P2: This reference leaves package authors without the styling rule it points them to: `sim-styling.md` does not match `packages/emcn/**`. Add the package glob to `sim-styling.md` or keep the package-specific token conventions in this rule so the new path-scoped guidance is actually available.</violation>
</file>
<file name="scripts/check-import-specifiers.ts">
<violation number="1" location="scripts/check-import-specifiers.ts:283">
P3: The diagnostic lists wildcard export patterns as concrete imports, such as `@sim/testing/factories/*`, which users cannot import literally. Exclude wildcard keys from the actionable import list or label them as patterns so the check does not suggest another invalid specifier.</violation>
</file>
<file name=".agents/skills/add-column-type/SKILL.md">
<violation number="1" location=".agents/skills/add-column-type/SKILL.md:20">
P2: This step creates a type icon but omits the required `packages/emcn/src/icons/index.ts` barrel export. Add the new `Type{Pascal}` export, or the column definition's standard `@sim/emcn/icons` import will fail type-checking.</violation>
</file>
<file name=".agents/skills/validate-model/SKILL.md">
<violation number="1" location=".agents/skills/validate-model/SKILL.md:22">
P2: The condensed procedure no longer verifies hosted providers’ `{PREFIX}_COUNT` / `{PREFIX}_1..N` key pools. Validation can therefore report a hosted model as ready while hosted executions fail because its deployment pool is unset; retain this deployment check.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | 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. |
There was a problem hiding this comment.
All reported issues were addressed across 141 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…:utils (cherry picked from commit 3f7d50182d96129ca940a0296563decabd65568b)
(cherry picked from commit 5c3f3c0d0d1525445367103ff5a99cf6ad7b062c)
…exports and route audit in check:source-conventions lru-cache-ceiling and v2-raw-response are zero-tolerance (empty baseline). The two v2 upload routes that built a bare 204 now return the new v2NoContent helper, which adds the private no-store header every v2 response carries. non-barrel-reexport (57) and route-audit (53) are baselined; --init-rule is now repeatable. (cherry picked from commit 2259f40b41cada711c43b1c78f97b13adf4b9d7d)
Arbitrary font weights, --font-weight-* variables, var(--divider) and hand-rolled shadow-[inset_0_-1px_0 lines fail in apps/sim and emcn; react-email templates keep off-scale weights. Zero hits today. (cherry picked from commit e5990cc6aa3cef87f96285eb89769f9b3a7f4260)
The package now exports only its barrel, ./icons, ./syntax-theme and the code stylesheet, the subpaths the repo imports. check:import-specifiers already rejects a subpath a package does not export; its message now lists the exported ones. (cherry picked from commit 978cfaf21503d676b7277c55e917081de107aede)
Delete prose that restates code or that a check already enforces, fix stale facts against the code, replace code templates with exemplar paths, re-scope mis-scoped rules, and remove generic design and React skills. (cherry picked from commit f2c9a674b6c2d59cb77406e0e09b06bc1ac5aa7c)
(cherry picked from commit 57c65e4b22b3e632a90d1b1b3ea122473bd41cd5)
A new column type now fails compilation in coerceValue until it gets an arm, instead of silently storing String(value). (cherry picked from commit 21e01874bd3a43977b21df8045c29b006531f862)
The props are now a union: passing onClick or href without clickLabel fails compilation. Integrations rows pick href or onClick explicitly instead of passing both. (cherry picked from commit 676a8ade3c05eb44bd096f2473596a53df8595fa)
SECTION_MODULES must now cover every code-split SettingsSection, and the section renderer is a switch with a never default, so a new section fails compilation until it is registered and rendered. (cherry picked from commit cd4188607ba0e234a6dd3d8305ec86f7e995fc1c)
Parses the worker and asserts it loads only isolated-vm, node:fs and node:path, and that the message types it dispatches on equal the remote host's ALLOWED_INBOUND_TYPES. (cherry picked from commit 5a165d1474d9eece4873513d8049df772221cd22)
…t reads Runs every rule's deniedBy against a recording Proxy over the unrestricted config and asserts the keys read equal configKeys. (cherry picked from commit ec07e21f6a12450c808a807e2b68bc132598fb4b)
…try invariants - check:tool-metadata fails when a tool registry key differs from tool.id or is not snake_case - enrichment providers must call registered, hosted-key, non-Apollo/LinkedIn tools - CONNECTOR_REGISTRY and CONNECTOR_META_REGISTRY share keys, each equal to the config id - POLLING_PROVIDERS matches the POLLING_HANDLERS keys (cherry picked from commit 5f42694133096512367b12bfd836145ff87c2910)
check-block-registry now fails when a tools.access id is unregistered, an operation option selects a tool outside tools.access, a triggers.available id is unregistered, or BLOCK_REGISTRY/BLOCK_META_REGISTRY drift out of base-type-then-version order. Re-sorts the five existing order slips (apollo, millionverifier, neverbounce, zerobounce). (cherry picked from commit 77132f21dde88c6a092f6f927b18e99b2831a88d)
…cs actions - check:canvas-sentences fails an operation dropdown that sets defaultValue without value; a2a and whatsapp now seed with value - generate-docs fails an integration block whose tools.access entry or operation option id is not a string literal (same-file const string arrays resolve), instead of silently dropping the action (cherry picked from commit 78f16302bd9a9ecbd8013cbf53b6e960f0e59232)
(cherry picked from commit 9af767acb4813e5c8568028b55f85fe0e2f25ca6)
(cherry picked from commit 1af24b2e1c1b361b60c4a652a1f9889daa8c8e66)
… new checks make false The prose prune moves to its own PR so each skill and rule can be reviewed on its own. Also extend the retired-styling audit to packages/workflow-renderer.
e08321d to
3a409ec
Compare
|
@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 39 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Summary
tools.accessid registered, operation → tool insidetools.access, block registry alphabetical (fixes 5 slips), enrichment providers are hosted tools, connector and polling parity as types,triggers.availableids registeredLRUCacheneedsmax/maxSize; no hand-built JSON/empty responses in v2 routes (addsv2NoContent); namedrandomUUIDimports; retired styling forms (now also inpackages/workflow-renderer); snapshot matchers; non-barrel re-exports and route-levelrecordAudit(ratcheted); no deep@sim/emcnimports (drops the./*export)coerceValue,clickLabelrequired on activatableSettingsResourceRow, exhaustive settings section registration, isolated-vm worker module and message allowlist, capabilityconfigKeysequal the keys read,defaultValue-only operation dropdowns (fixes a2a and WhatsApp), unreadable docs actionscoerceValue,clickLabel,v2NoContent, docs actions)Type of Change
Testing
check-block-registry,check-canvas-sentences --require-coverage,sync-tool-metadata --check,generate-docs --check,check:skills,check-guidance-refsChecklist
test-auditauthoring gate)