Limit inheritance policy work to the relevant scope

This commit is contained in:
2026-10-24 14:10:44 +00:00
parent 8253993005
commit 5c5f2af6cc
7 changed files with 258 additions and 43 deletions

View File

@@ -847,7 +847,16 @@ do not change override semantics or impose batch limits.
## 21. Localize Inheritance Policy Work To The Relevant Scope — P2
Status: [ ] Open.
Status: [x] Complete.
Completion: inheritance now keeps a per-load semantic path index, including
separate indexes for record-owned scopes. Walker handoff and descendant
retirement touch the changed scope; mapping and identified-record preparation
reuse indexes across sibling queries. Only relevant policies are cloned into
independent templates. Added wide independent YAML groups, pending-policy
replacement, literal-key/index distinctions, and ownership regressions. Existing
nested item/inheritance, mode-lifetime, and application-constraint coverage,
`./scripts/check.sh`, and `go test -race ./internal/engine` pass.
Owners: `inheritancePolicyScopeAtPath` in
[`inheritance.go`](../../internal/engine/inheritance.go), graph preparation in