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

What breaks if I change verify_token?

说明与用途

文章介绍了 Cognee GitGraph 工具,计算在单体仓库中对共享身份验证函数进行小幅更改的冲击范围,识别最多四级调用链中的受影响服务,并关联 CI 失败。

问题

Determining the impact of a small change to a shared authentication function in a monorepo without triggering unintended failures.

结果

The demo revealed that billing (1 hop), orders (2 hops), and notifications (4 hops) were at risk, while search was safe. CI failures in at‑risk services were highlighted, enabling targeted review.

工作流

  • 1. Run cognee-gitgraph demo to load repo data into Cognee.
  • 2. Cognee builds a graph of commits, files, symbols, references, and CI failures.
  • 3. The CLI walks the graph to find callers of the changed symbol up to 4 hops.
  • 4. It outputs at‑risk services, call chains, co‑changed files, and related CI failures.
  • 5. Optionally generate a 3D HTML graph with cognee-gitgraph blast --html blast.html.

证据

I built a small Cognee community connector, Cognee GitGraph, to answer that question before the merge.

来源

It reads a git repository, parses the Python code into symbols and call references, reads CI test results from JUnit XML, and loads all of it into Cognee's graph memory.

来源

Blast radius of main...feature/rotate-tokens (up to 4 hops) Changed files (1): shared/auth.py Changed symbols (1): shared/auth.py::verify_token At-risk services: billing 1 hop shared/auth.py::verify_token -> billing/invoice.py::charge notifications 4 hops shared/auth.py::verify_token -> shared/session.py::load_session -> orders/cart.py::get_cart -> orders/checkout.py::checkout -> notifications/receipts.py::send_receipt orders 2 hops shared/auth.py::verify_token -> shared/session.py::load_session -> orders/cart.py::get_cart

来源

Only verify_token counts as changed: the CLI maps the changed line ranges from git diff base...head onto each symbol's first and last line.

来源

  • 记录日期: 2026-11-01T20:14:21.574Z