Repository navigation
docs(#71): list @types/jest ignore rule, fix npm test claim - #72
Conversation
AGENTS.md drifted from .github/dependabot.yml: PR #64 added a Dependabot ignore rule for @types/jest >=28 while PR #70 was open, so the merged AGENTS.md never mentioned it. - Pinned versions: note that Dependabot ignores @types/jest >=28, and document the react-scripts major-update ignore rule so every npm ignore entry is described. - Exit condition: add the @types/jest rule, relaxed only when react-scripts/Jest 27 is replaced, not when only TypeScript is raised. - NoInfer paragraph: only build and start type-check (via fork-ts-checker) and fail with TS2304; CI=true npm test uses babel-jest, which strips types, so it still passes. npm run build is the step that catches it. Docs-only change. Verified with prettier 3.9.10 --check. Closes #71 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 1:58 PM UTC · Completed 2:07 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.25 |
|
<!-- fullsend:risk-assessment --> DetailsSingle-file docs-only correction to AGENTS.md by a bot with one protected-path hit, minimal churn, no dependency or CI changes, and an issue scope that precisely matches the PR; anchored to prior score of 1. Previous run<!-- fullsend:risk-assessment --> DetailsSingle-file docs-only correction to AGENTS.md by a bot author with minimal churn, no security-sensitive paths, no dependency changes, and an issue scope that precisely matches the PR — the one protected-path hit is the only signal above baseline, keeping the composite at 1. |
ReviewFindingsMedium
Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJBR0VOVFMubWQiLCJpZCI6ImZfODY4MjIwM2MyMmI5OWY4NSIsImxpbmUiOjYzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= --> ReviewFindingsMedium
Low
Labels: Documentation-only correction to AGENTS.md, matching the documentation label on linked issue #71. Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 2:09 PM UTC · Completed 2:12 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.70 |
Narrow the NoInfer guidance in AGENTS.md: `npm run build` catches a NoInfer only in application code. CRA 5.0.1 configures fork-ts-checker to skip test files (*.test.*, *.spec.*, __tests__/, setupTests.*, setupProxy.*), so no validation command catches it there. Tell agents not to use NoInfer in test files either. The protected-path finding needs no change (human approval of the AGENTS.md edit is a merge gate, not a content change). Verification: npx prettier@3.9.10 --check AGENTS.md passes. npm test and eslint were not run: documentation-only change and node_modules is not installed in the sandbox. Addresses #72 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 1 (bot-triggered)Fixed the low-severity edge-case finding: AGENTS.md now says Fixed (2):
Disagreed (1):
Tests: passed CI inspections (2):
Conflict update: skipped; strategy Decision points
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 2:13 PM UTC · Completed 2:21 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.98 |
Superseded by updated review
|
🤖 Finished Retro · ✅ Success · Started 9:15 PM UTC · Completed 9:27 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.68 |
Retro: PR #72 (docs(#71): AGENTS.md
|
Summary
Corrects two problems in
AGENTS.mdthat could mislead future dependency PRs written by agents:@types/jestDependabot rule. PR chore(deps-dev): bump @types/jest from 27.4.1 to 30.0.0 #64 added an ignore rule for@types/jest >=28to.github/dependabot.ymlwhile PR feat(#69): add lib-checked typecheck script and AGENTS.md policy #70 (which created AGENTS.md) was still open, so AGENTS.md never mentioned it.@types/jestbullet now says Dependabot ignores@types/jest >=28. A short bullet also describes the existingreact-scriptsmajor-update ignore rule, so every npmignore:entry independabot.ymlis now documented (as the triage suggested).@types/jestrule, relaxed only whenreact-scripts/Jest 27 is replaced. It tracks the Jest version, so it stays in place if only TypeScript is raised.npm testclaim. TheNoInferparagraph saidbuild,startandtestfail with TS2304. CRA's Jest uses babel-jest, which strips types and does not type-check, soCI=true npm teststill passes. Onlybuildandstarttype-check, through fork-ts-checker. The text now saysnpm run buildis the step that catches this.Testing
npx prettier@3.9.10 --check AGENTS.mdpasses (the repo's lint-staged formatter for.md).dependency-nameunder the npmignore:block (react-scripts,typescript,@types/node,@types/jest) now has its ignore rule described in AGENTS.md.CI=true npm testpasses andnpm run buildfails withNoInferinsrc(validation criterion 2).node_modulesisn't installed in the sandbox and this PR changes only documentation.Notes
AGENTS.mdis a protected path, so a maintainer must approve this PR.🤖 Generated with Claude Code
Closes #71
Post-script verification
agent/71-agents-md-jest-rule)a57ebe7c6559d2f655fe090dff584322cb704900..HEAD)