Share invocation flag lookup across installation contexts

This commit is contained in:
2026-11-22 22:24:06 +00:00
parent 3415d9337d
commit 3e4309f084
4 changed files with 78 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
# Automatic Usage Reporting Review
Status: four open findings: documentation R1, integration R2, and efficiency
opportunities R3–R4. Production code is unchanged by these reviews.
Status: R1–R4 complete. Each remediation was verified and committed separately.
Historical audit evidence and findings are retained below.
## Scope and evidence
@@ -222,7 +222,12 @@ bindings. No timing threshold or benchmark is necessary.
## R4: Share invocation-flag lookup across installation contexts
**Priority:** P3. **Status:** open. **Plan coverage:** Stages 1–2.
**Priority:** P3. **Status:** complete. **Plan coverage:** Stages 1–2.
Collision validation now indexes invocation spellings once and walks local
spellings. Alias contexts share one invocation map through a combined lookup.
Regressions cover inactive-alias activation, scoped/global and short aliases,
discovery help, collisions and rollback. All workspace suites passed.
**Relevant code:** [validateInvocationFlagCollisions](../../registry.go),
[collectInvocationFeatures](../../registry.go), and the invocation-flag insertion