mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
83e8f762a6
Two root-resolution defects caused a project's learning to be written outside its own .agentic-qe/. Defect 1 — findProjectRoot() preferred the TOPMOST .agentic-qe, so an ancestor store (e.g. ~/.agentic-qe, created by any `aqe` run from $HOME) hijacked every descendant project. Now prefers the NEAREST .agentic-qe, mirroring the existing .git nearest-wins logic in the same walk. Defect 2 — the RVF substrate hardcoded a cwd-relative '.agentic-qe', ignoring findProjectRoot(). A subfolder cwd (vendored builds, background workers, `aqe code index docs/`) scattered stray patterns.rvf/brain.rvf stores. All three sites now resolve via AQE_PROJECT_ROOT ?? findProjectRoot(): - shared-rvf-adapter.ts (relative dataDir anchored to project root; explicit absolute args still honored) - shared-rvf-dual-writer.ts (brain.rvf) - pattern-store.ts (patterns.rvf + existence gate) Adds find-project-root.test.ts: nearest-wins over ancestor store, env override precedence, .git fallback, and .agentic-qe over ancestor .git. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>