Skip to content

fix: close v10.7.0 integration bugs #251-#255 - #257

Merged
RichardHightower merged 1 commit into
mainfrom
fix/issues-251-255-integration-bugs
Sep 19, 2026
Merged

RichardHightower merged 1 commit into
mainfrom
fix/issues-251-255-integration-bugs

Conversation

@RichardHightower

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #256. The five product bugs filed from the v10.7.0 integration test are fixed here with tests.

Closes #251, #252, #253, #254, #255.

Out of scope: #249 (mcp 2.x) and #236 (needs-info, close date 2026-10-03).

Fixes

Issue What broke Fix
#251 agent-brain init walked up and adopted an ancestor .agent-brain (including ~/.agent-brain) No --path uses Path.cwd(), not resolve_project_root(). Walk-up stays for start/query/status.
#252 Long-path UDS fallback bound under /tmp (0o755); client refused it; chmod 700 /tmp is not actionable Fallback dir order: $XDG_RUNTIME_DIR → tempfile.gettempdir() if 0o700 → ~/.agent-brain/run 0o700. start --uds --json reports socket_path.
#253 Code extractor emitted untyped Symbol nodes and missed classes/methods Map tree-sitter symbol_kind to Class/Function/Method; AST walk emits contains/defined_in/calls/extends. Never returns Symbol.
#254 CLI printed unhandled errors in a TaskGroup; status.total_documents was 0 after a successful index Unwrap ExceptionGroup/anyio TaskGroup; get_status prefers the persisted manifest file count.
#255 Relative graphrag.index_path: .agent-brain/graph_index nested a second state dir Absolute as-is; graph_index/./graph_index → {state_dir}/data/graph_index; other relative paths → {project_root}/{path}.

Test plan

  • task before-push
  • task pr-qa-gate
  • Targeted tests: UDS paths, CLI init/MCP errors/start UDS, server graph extractors/graph store/manifest/uds bind

Init no longer walks up to an ancestor .agent-brain (including
~/.agent-brain). UDS long-path fallback uses a 0o700 per-user dir
instead of /tmp. The code extractor emits Class/Function/Method
nodes and walks AST for classes, methods, and calls. CLI unwraps
ExceptionGroup so MCP errors surface, and status.total_documents
comes from the persisted manifest. Relative graphrag.index_path
resolves against the project root instead of nesting a second
state dir.

Closes #251
Closes #252
Closes #253
Closes #254
Closes #255

This branch was successfully deployed

1 active deployment
ci-testing — 2a095d88 Deployed Sep 19, 2026 by RichardHightower via Quality Assurance Gate #341
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.

cli: agent-brain init adopts an ancestor .agent-brain (including ~/.agent-brain) instead of cwd

1 participant