Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The Senior Kept the Wire Digest After the Load Test Lied

说明与用途

仅测量延迟的负载测试可能导致误判。通过记录状态码、内容类型和响应体的 SHA‑256 并与快照比较,wire‑digest 门确保 API 合同完整性,并在变更时要求配对审查。

问题

Automated load tests that only measure latency and ignore response body can give false confidence, allowing regressions in API contract and data integrity to slip into production.

结果

The new gate prevents regressions in API contract and data integrity while keeping CI fast and deterministic. It replaces fragile load tests with a concrete, verifiable snapshot of the wire.

工作流

  • 1. Start the app in the same way CI does.
  • 2. Send a single, frozen request (method, path, headers).
  • 3. Record status code, content‑type, and SHA‑256 of the raw body.
  • 4. Compare these three fields to a committed snapshot; if any differ, require a pairing signature.
  • 5. Log elapsed time in coarse buckets (fast/ok/slow) but do not gate on it.

证据

The senior asked for the body. The next model turn offered to log res.headers. Headers in a console are not an oracle.

来源

The gate is deliberately boring: ... Compare those three fields to a committed snapshot.

来源

  • 记录日期: 2026-09-22T12:15:28.731Z