docs(agents): accurate guidance, guardrail map, and check:guidance-refs - #8557
Conversation
|
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 72 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
2dd592f to
c307193
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 73 files
Requires human review: Auto-approval blocked because this review re-detected 2 unresolved issues already reported by Cubic.
Tip: instead of fixing issues one by one fix them 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. |
There was a problem hiding this comment.
All reported issues were addressed across 73 files
Tip: instead of fixing issues one by one fix them 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. |
There was a problem hiding this comment.
All reported issues were addressed across 73 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
…removed lib/copilot The Copilot modules moved to lib/mothership in the v1.0.0 rename, so the route-wrapper graph guard was banning a directory that no longer exists.
…nces it found Agent guidance (CLAUDE.md, every AGENTS.md, .claude/rules, .agents/skills) names paths, scripts, skills, and import specifiers that agents follow literally. The new audit resolves each one and fails on any that no longer exists. Fixes the references it found: lib/copilot -> lib/mothership, stores/workflows/store -> stores/workflows/workflow/store, a relative landing path, deleted selector-provider and legacy landing mentions, and illustrative example imports rewritten as placeholders.
A paths glob that matches nothing silently stops the rule from loading. sim-api-contracts still targeted the removed apps/sim/hooks/selectors; drop it, and name check:api-validation:strict as the gate the rule describes.
- CLAUDE.md: "How your work is checked" (the local gate and a rule-to-check map), sharper comment rules (no narration, restated names, or change history), drop filler, fix the type-check command description. - Rules: one source for the text scale (sim-styling), use-client boundary (sim-queries), testing principles (CLAUDE.md); fix an in-place sort in a list-ordering example and an ESLint directive the repo does not use; drop change-history narration and rotting line-number references.
Restore the connector byte-cap rule's skip list, list every CI gate step, name the real baseline flags and generated-artifact checks, make api-validation strict-only guidance explicit, pass a base ref to check-block-registry, and teach check:guidance-refs about bun run --cwd.
Name the enforcing check on the rule's own bullet instead, and tighten the Comments bullet.
…graph guards check:guidance-refs reuses sync-skills' parseRule, reads workspace manifests once from the root workspaces globs, and matches rule globs against one git listing instead of a filesystem scan per glob (~2.5s to ~0.2s). Markdown links now go through the shared path check. check:application-graph fails when a forbidden prefix matches nothing under apps/sim.
…d files and test-only guards check:guidance-refs now requires a bare @sim/<pkg> import to have a '.' export, checks that a wildcard export match maps to an existing file, and drops index entries missing from the working tree before matching rule path globs. check:application-graph no longer counts a leftover test file as keeping a non-directory forbidden prefix alive.
Scope SSRF, client-boundary, forcedToolUse, canonicalParamId, integration metadata, and HEAD claims to what the code does; fix the ship migration pathspec, the babysit conflict path, enrichment folder placeholders, framer-motion samples, and stale connector and column-type references.
…review-flagged guidance
2973989 to
5c0d278
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.
No issues found across 73 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
…wn links strictly
|
@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 73 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
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. |
There was a problem hiding this comment.
All reported issues were addressed across 73 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Re-trigger cubic
Summary
check:guidance-refsaudit: scans CLAUDE.md, every AGENTS.md/CLAUDE.md,.claude/rules, and.agents/skillsand fails when guidance names a repo path, script, skill, or@//@sim/import that doesn't exist, or when a rule'spaths:glob matches no file (which silently stops it loading). Fixed every stale reference it foundcheck:application-graphguarded the route wrapper againstlib/copilot/, a directory that no longer exists; it now guardslib/mothership/'use client'boundary, testing principles), change-history narration rewritten as current-state ruleslint,type-check,check:audits, roottest, pluscheck:migrationsfor migrations), the shrink-only baseline rule, and a table mapping written rules to the check that enforces them (including the new unused-exports, explicit-any, file-names, comment-hygiene, and unused-binding rules)Type of Change
Testing
bun run check:guidance-refs(76 documents),check:skills,bun run lint,bunx turbo run type-check,bun run check:audits(58),bun run test:scriptsChecklist
test-auditauthoring gate)🤖 Generated with Claude Code