AntFleet

Disagreement · 7acb8d8e-openai-0

Invalid TypeScript version (^6.0.3) makes install/build fail

mismatch
repo 53606958·PR #4·reviewed 1 week ago

Primary finding

Invalid TypeScript version (^6.0.3) makes install/build fail

highbuild-releasehigh
  • package.json:23
  • package.json:11-12
TypeScript 6.x is not published on npm as of the current ecosystem; specifying ^6.0.3 will cause package installation to fail (no matching version), which in turn breaks all TypeScript-based scripts (typecheck/build). This is a hard build failure.

Recommendation

Pin TypeScript to a valid, current release compatible with Node 20 (for example, ^5.5.x or the latest 5.x). Verify installation succeeds and tsc is available. Example: "typescript": "^5.6.3".

Counterpart finding

`prepare` script runs `husky` unconditionally, breaking installs in CI/forks without git

mediumbuild-releasemedium
  • package.json:14
`prepare` runs on every `npm install`, including in environments without a `.git` directory (Docker builds, `npm ci --omit=dev` paths that still trigger prepare in dev installs, sandboxed agent runners). Bare `husky` (v9) will error or silently misconfigure when there is no git repo. Given this is a template forked per-agent and run inside autonomous agent containers, this can break bootstrap. The conventional pattern is `husky || true` or `husky install` gated on git presence.

Recommendation

Guard the prepare script, e.g. `"prepare": "husky || true"` or detect `.git` existence first; or move husky setup behind an explicit setup script.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →