Skip to content

docs(#71): list @types/jest ignore rule, fix npm test claim - #72

Merged
shairevivo merged 2 commits into
mainfrom
agent/71-agents-md-jest-rule
Nov 10, 2026
Merged

shairevivo merged 2 commits into
mainfrom
agent/71-agents-md-jest-rule

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Corrects two problems in AGENTS.md that could mislead future dependency PRs written by agents:

  1. Missing @types/jest Dependabot rule. PR chore(deps-dev): bump @types/jest from 27.4.1 to 30.0.0 #64 added an ignore rule for @types/jest >=28 to .github/dependabot.yml while 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.
    • Pinned versions: the @types/jest bullet now says Dependabot ignores @types/jest >=28. A short bullet also describes the existing react-scripts major-update ignore rule, so every npm ignore: entry in dependabot.yml is now documented (as the triage suggested).
    • Exit condition: adds the @types/jest rule, relaxed only when react-scripts/Jest 27 is replaced. It tracks the Jest version, so it stays in place if only TypeScript is raised.
  2. Wrong npm test claim. The NoInfer paragraph said build, start and test fail with TS2304. CRA's Jest uses babel-jest, which strips types and does not type-check, so CI=true npm test still passes. Only build and start type-check, through fork-ts-checker. The text now says npm run build is the step that catches this.

Testing

  • npx prettier@3.9.10 --check AGENTS.md passes (the repo's lint-staged formatter for .md).
  • Checked by hand that every dependency-name under the npm ignore: block (react-scripts, typescript, @types/node, @types/jest) now has its ignore rule described in AGENTS.md.
  • Not run: the scratch-branch check that CI=true npm test passes and npm run build fails with NoInfer in src (validation criterion 2). node_modules isn't installed in the sandbox and this PR changes only documentation.

Notes

AGENTS.md is a protected path, so a maintainer must approve this PR.

🤖 Generated with Claude Code


Closes #71

Post-script verification

  • Branch is not main/master (agent/71-agents-md-jest-rule)
  • Secret scan passed (gitleaks — a57ebe7c6559d2f655fe090dff584322cb704900..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

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>
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:58 PM UTC · Completed 2:07 PM UTC

Commit: b304a9c · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.25

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: low (1/5)

Details

Single-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 -->
Risk Assessment: low (1/5)

Details

Single-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.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Earlier findings

  • AGENTS.md:63 — edge-case — resolved by change: commit 97be7e5 now says npm run build catches NoInfer only in application code, lists the test-file patterns that fork-ts-checker skips, and tells agents not to use NoInfer in test files either.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJBR0VOVFMubWQiLCJpZCI6ImZfODY4MjIwM2MyMmI5OWY4NSIsImxpbmUiOjYzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= -->

Review

Findings

Medium

Low

  • [edge-case] AGENTS.md:63 — The corrected NoInfer paragraph says the npm run build step "is the one that catches" a NoInfer used anywhere in src. That holds only for non-test source files. CRA 5.0.1's webpack config gives ForkTsCheckerWebpackPlugin an issue.exclude list covering **/src/**/__tests__/**, **/src/**/?(*.){spec|test}.*, **/src/setupProxy.* and **/src/setupTests.*, so type errors in those files are never reported. This repo has such files under src (src/setupTests.ts, src/components/*/*.test.tsx, src/utils/__tests__/formatPrice.test.ts). A NoInfer in one of them would pass all three checks: npm run typecheck (the shim loads via tsconfig.typecheck.json), npm run build (fork-ts-checker filters the issue out) and CI=true npm test (babel-jest only strips types). The exclude list is quoted from CRA 5.0.1's published config; it could not be checked against the tree because node_modules is not installed.
    Remediation: Narrow the claim, for example: "npm run build catches this for application code. fork-ts-checker skips test files (*.test.*, __tests__/, setupTests.*), so no validation command catches NoInfer there. Do not use it in test files either."

Labels: Documentation-only correction to AGENTS.md, matching the documentation label on linked issue #71.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the documentation Improvements or additions to documentation label Nov 10, 2026
@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 2:09 PM UTC · Completed 2:12 PM UTC

Commit: b304a9c · View workflow run →

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>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Fixed the low-severity edge-case finding: AGENTS.md now says npm run build catches NoInfer only in application code. fork-ts-checker in CRA 5.0.1 skips test and setup files (checked against the upstream config), and agents are told not to use NoInfer there either. The protected-path finding needs a maintainer to approve the PR; there is no content to change. Verification: prettier 3.9.10 --check AGENTS.md passes, and the secret scan passes. npm test and eslint were not run: this is a documentation-only change and node_modules is not installed in the sandbox. Project CI (security audit and gitleaks) is passing.

Fixed (2):

  1. [edge-case] AGENTS.md:63 - the claim that npm run build catches NoInfer anywhere in src is too broad; fork-ts-checker in CRA 5.0.1 excludes test files (AGENTS.md): Checked the react-scripts@5.0.1 webpack config upstream: the ForkTsCheckerWebpackPlugin issue.exclude list covers tests/, .spec./.test., setupProxy.* and setupTests.*. The paragraph now says npm run build catches NoInfer only in application code. It names the files that fork-ts-checker skips, says no validation command catches NoInfer there, and tells agents not to use it in test files either.
  2. Conflict update: checked forge mergeability: GitHub reports mergeable=MERGEABLE (no conflict). The base branch main was neither merged nor rebased.

Disagreed (1):

  1. [protected-path] AGENTS.md - PR modifies a protected path: This finding is the mandatory merge gate: a maintainer must approve the PR. It does not ask for a content change, so the fix agent cannot resolve it. A human reviewer must approve.

Tests: passed

CI inspections (2):

  1. Production dependency audit (passing, success): The security workflow audit passed.
  2. Secret scan (gitleaks) (passing, success): The security workflow secret scan passed.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Decision points
  • How to narrow the NoInfer claim (alternatives: Use the reviewer's suggested wording as written, Keep the existing paragraph and add a qualifier, naming the full CRA exclude list (including .spec. and setupProxy.*); rationale: Qualifying the existing sentence keeps the diff to one paragraph. Listing all of CRA's excluded patterns matches the verified upstream config.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:13 PM UTC · Completed 2:21 PM UTC

Commit: 97be7e5 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.98

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 10, 2026 14:21

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Nov 10, 2026
@shairevivo
shairevivo merged commit 129cad8 into main Nov 10, 2026
22 checks passed
@shairevivo
shairevivo deleted the agent/71-agents-md-jest-rule branch November 10, 2026 21:14
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 9:15 PM UTC · Completed 9:27 PM UTC

Commit: 97be7e5 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.68

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #72 (docs(#71): AGENTS.md @types/jest rule and npm test claim)

Timeline (all 2026-11-10 UTC):

What went well:

Proposal filed:

Evidence for existing issues (not re-filed):

Already fixed upstream:

  • The escaped risk-assessment marker that shows as visible text at the top of the risk-assessment comment is fullsend-ai/agents#1885. It was fixed after v0.54.0, which this repo pins, and first ships in v0.55.0-rc.1. Moving the pin to v0.55.x resolves it.

Agents repo, discovered from the run logs: fullsend-ai/agents@v0.54.0 (87a43fcb).

Proposals filed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGENTS.md: list the @types/jest Dependabot ignore rule and correct the npm test TS2304 claim

1 participant