# Pitfall Log / 踩坑日志

项目：apollographql/apollo-client

摘要：发现 25 个潜在踩坑项，其中 3 个为 high/blocking；最高优先级：安装坑 - 来源证据：Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError con…。

## 1. 安装坑 · 来源证据：Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError con…

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError construction) in production
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/apollographql/apollo-client/issues/13305 | 来源类型 github_issue 暴露的待验证使用条件。

## 2. 配置坑 · 来源证据：RFC: Custom scalars

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个配置相关的待验证问题：RFC: Custom scalars
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/apollographql/apollo-client/issues/13227 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 3. 安全/权限坑 · 来源证据：Dependency Dashboard

- 严重度：high
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：Dependency Dashboard
- 对用户的影响：可能影响升级、迁移或版本选择。
- 证据：community_evidence:github | https://github.com/apollographql/apollo-client/issues/11062 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 4. 身份坑 · 仓库名和安装名不一致

- 严重度：medium
- 证据强度：runtime_trace
- 发现：仓库名 `apollo-client` 与安装入口 `@apollo/client` 不完全一致。
- 对用户的影响：用户照着仓库名搜索包或照着包名找仓库时容易走错入口。
- 复现命令：`npm install @apollo/client`
- 证据：identity.distribution | https://github.com/apollographql/apollo-client | repo=apollo-client; install=@apollo/client

## 5. 安装坑 · 失败模式：installation: @apollo/client@4.2.3

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this installation risk before relying on the project: @apollo/client@4.2.3
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.2.3
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.2.3 | @apollo/client@4.2.3

## 6. 安装坑 · 失败模式：installation: Dependency Dashboard

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this installation risk before relying on the project: Dependency Dashboard
- 对用户的影响：Developers may fail before the first successful local run: Dependency Dashboard
- 证据：failure_mode_cluster:github_issue | https://github.com/apollographql/apollo-client/issues/11062 | Dependency Dashboard, failure_mode_cluster:github_issue | https://github.com/apollographql/apollo-client/issues/11062 | Dependency Dashboard

## 7. 安装坑 · 来源证据：Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps that never use @stream

- 严重度：medium
- 证据强度：source_linked
- 发现：GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps that never use @stream
- 对用户的影响：可能增加新用户试用和生产接入成本。
- 证据：community_evidence:github | https://github.com/apollographql/apollo-client/issues/13304 | 来源讨论提到 node 相关条件，需在安装/试用前复核。

## 8. 配置坑 · 失败模式：configuration: @apollo/client@4.3.0-alpha.2

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this configuration risk before relying on the project: @apollo/client@4.3.0-alpha.2
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.3.0-alpha.2
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.3.0-alpha.2 | @apollo/client@4.3.0-alpha.2

## 9. 配置坑 · 失败模式：configuration: RFC: Custom scalars

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this configuration risk before relying on the project: RFC: Custom scalars
- 对用户的影响：Developers may misconfigure credentials, environment, or host setup: RFC: Custom scalars
- 证据：failure_mode_cluster:github_issue | https://github.com/apollographql/apollo-client/issues/13227 | RFC: Custom scalars

## 10. 能力坑 · 能力判断依赖假设

- 严重度：medium
- 证据强度：source_linked
- 发现：README/documentation is current enough for a first validation pass.
- 对用户的影响：假设不成立时，用户拿不到承诺的能力。
- 证据：capability.assumptions | https://github.com/apollographql/apollo-client | README/documentation is current enough for a first validation pass.

## 11. 运行坑 · 失败模式：runtime: @apollo/client-graphql-codegen@2.1.1

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this runtime risk before relying on the project: @apollo/client-graphql-codegen@2.1.1
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client-graphql-codegen@2.1.1
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client-graphql-codegen%402.1.1 | @apollo/client-graphql-codegen@2.1.1

## 12. 维护坑 · 失败模式：migration: @apollo/client@4.3.0-alpha.1

- 严重度：medium
- 证据强度：source_linked
- 发现：Developers should check this migration risk before relying on the project: @apollo/client@4.3.0-alpha.1
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.3.0-alpha.1
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.3.0-alpha.1 | @apollo/client@4.3.0-alpha.1

## 13. 维护坑 · 维护活跃度未知

- 严重度：medium
- 证据强度：source_linked
- 发现：未记录 last_activity_observed。
- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- 证据：evidence.maintainer_signals | https://github.com/apollographql/apollo-client | last_activity_observed missing

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 证据：downstream_validation.risk_items | https://github.com/apollographql/apollo-client | no_demo; severity=medium

## 15. 安全/权限坑 · 存在评分风险

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 对用户的影响：风险会影响是否适合普通用户安装。
- 证据：risks.scoring_risks | https://github.com/apollographql/apollo-client | no_demo; severity=medium

## 16. 运行坑 · 失败模式：performance: @apollo/client@4.3.0-alpha.0

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this performance risk before relying on the project: @apollo/client@4.3.0-alpha.0
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.3.0-alpha.0
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.3.0-alpha.0 | @apollo/client@4.3.0-alpha.0

## 17. 运行坑 · 失败模式：performance: Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps...

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this performance risk before relying on the project: Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps that never use @stream
- 对用户的影响：Developers may hit a documented source-backed failure mode: Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps that never use @stream
- 证据：failure_mode_cluster:github_issue | https://github.com/apollographql/apollo-client/issues/13304 | Cache writes call hasDirectives(["stream"]) for every written field — large overhead for apps that never use @stream

## 18. 运行坑 · 失败模式：performance: Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objec...

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this performance risk before relying on the project: Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError construction) in production
- 对用户的影响：Developers may hit a documented source-backed failure mode: Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError construction) in production
- 证据：failure_mode_cluster:github_issue | https://github.com/apollographql/apollo-client/issues/13305 | Incomplete cache diffs eagerly build missing-field diagnostics (JSON.stringify of store objects + MissingFieldError construction) in production

## 19. 维护坑 · issue/PR 响应质量未知

- 严重度：low
- 证据强度：source_linked
- 发现：issue_or_pr_quality=unknown。
- 对用户的影响：用户无法判断遇到问题后是否有人维护。
- 证据：evidence.maintainer_signals | https://github.com/apollographql/apollo-client | issue_or_pr_quality=unknown

## 20. 维护坑 · 发布节奏不明确

- 严重度：low
- 证据强度：source_linked
- 发现：release_recency=unknown。
- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。
- 证据：evidence.maintainer_signals | https://github.com/apollographql/apollo-client | release_recency=unknown

## 21. 维护坑 · 失败模式：maintenance: @apollo/client-graphql-codegen@2.1.0

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this maintenance risk before relying on the project: @apollo/client-graphql-codegen@2.1.0
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client-graphql-codegen@2.1.0
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client-graphql-codegen%402.1.0 | @apollo/client-graphql-codegen@2.1.0

## 22. 维护坑 · 失败模式：maintenance: @apollo/client@4.2.2

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this maintenance risk before relying on the project: @apollo/client@4.2.2
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.2.2
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.2.2 | @apollo/client@4.2.2

## 23. 维护坑 · 失败模式：maintenance: @apollo/client@4.2.4

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this maintenance risk before relying on the project: @apollo/client@4.2.4
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.2.4
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.2.4 | @apollo/client@4.2.4

## 24. 维护坑 · 失败模式：maintenance: @apollo/client@4.2.5

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this maintenance risk before relying on the project: @apollo/client@4.2.5
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.2.5
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.2.5 | @apollo/client@4.2.5

## 25. 维护坑 · 失败模式：maintenance: @apollo/client@4.2.6

- 严重度：low
- 证据强度：source_linked
- 发现：Developers should check this maintenance risk before relying on the project: @apollo/client@4.2.6
- 对用户的影响：Upgrade or migration may change expected behavior: @apollo/client@4.2.6
- 证据：failure_mode_cluster:github_release | https://github.com/apollographql/apollo-client/releases/tag/%40apollo/client%404.2.6 | @apollo/client@4.2.6
