Localize history selection to affected paths

This commit is contained in:
2026-10-27 03:10:07 +00:00
parent 9ff873f54c
commit 731149fc6d
4 changed files with 26 additions and 19 deletions

View File

@@ -266,7 +266,15 @@ coverage; do not add timing thresholds or implementation-specific scan counts.
## 5. Prefix Indexing Multiplies One Operation By All Its Descendants
Priority: P2. Status: open.
Priority: P2. Status: complete.
Completion: indexes locate concrete affected paths rather than placing every
descendant at the reported ancestor. Exact path buckets drive source-origin
containment (with early success); enclosing queries visit only their affected
subtree. Logical operations remain payload references, deduplicated once by the
common selector. Thus a leaf no longer scans sibling facts of an ancestor
replacement. The full ordinary suite and `git diff --check` passed, including
parsed key/index sides, removed descendants, inheritance, and enclosing queries.
Relevant code: `addObservation` in
[history_model.go](../../internal/engine/history_model.go), lines 116–139;