Skip to content

fix(graph): 按 Block 预算流式穷尽寻路前沿 - #6

Closed
xiaoland wants to merge 1 commit into
mainfrom
fix/graph-path-frontier-coverage
Closed

xiaoland wants to merge 1 commit into
mainfrom
fix/graph-path-frontier-coverage

Conversation

@xiaoland

@xiaoland xiaoland commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

改动

Rust Core 按请求方向从 PostgreSQL 流式读取相关前沿,发现新 Block 时继续遵循已有预算。去掉会把大量平行边误当成搜索穷尽的 10,000 行截断,同时移除保留整批边及为其去重的临时集合。

验证

  • 同一个独占 PostgreSQL 中,通过 Rust 和 Python 的公开 HTTP 路径确认:原来可以读取一条两跳路径,插入 10,000 条只通往同一死端的平行边后,两者误报 not_found。可达 Block 数为 4,预算为 10。
  • TypeScript 对应的修复见 fix(core): 按 Block 预算穷尽图谱前沿 impl-ts#217。Python 的独立改动在 fix(core): 修复持久化和重置缺陷,复审测试与验收 impl-py#201。
  • 格式、Git diff 与 Linux 静态 CI 都通过。以 agent-build 构建候选后,在独占 PostgreSQL 用 Rust 的公开 HTTP 路由验证三种方向均回到实际两跳路径。将 Block 预算降到 3 时返回 limit_reached,不匹配内容返回 not_found,缺端点不计入预算。与本地组合 Python #201/#209 互写同一隔离数据库,所有 40 次共享语料观察通过。

@xiaoland xiaoland closed this Nov 28, 2026
@xiaoland
xiaoland deleted the fix/graph-path-frontier-coverage branch November 28, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant