From c15204bdc793d4d8f1cc6fa4c739035f38547638 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 29 Nov 2026 18:34:42 +0000 Subject: [PATCH] Record glossary override integration conflict --- docs/roadmap/remediation.md | 68 +++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md index 0732ef8..26d2052 100644 --- a/docs/roadmap/remediation.md +++ b/docs/roadmap/remediation.md @@ -12,8 +12,14 @@ No application code was changed during review. The Go 1.27.4 offline test suite and build passed. The copied glossary directory and CC0 license match the selected upstream source byte for byte. Changed documents' local links and representative documented validation commands passed. -No other actionable implementation gaps or unintended requirement strengthening -were identified. +The initial review identified R1 and no unintended requirement strengthening. +A follow-up integration audit at commit +`8699ec442ab9d4747d1244ad7b6980d5f13fefda` identified R2. That audit traced the +new adapter through native inspection/comparison, processing and preflight, +selection/protection, bootstrap, and output source checks. Targeted CLI integration +tests passed; executable probes confirmed extension acceptance and imported-file +hardlink collision protection. The application code is unchanged from the initial +review. R1 remains open. ## R1: Schema errors lose field-level source attribution @@ -76,3 +82,61 @@ in an earlier input and a valid last input. Verify that the diagnostic points to the affected collection/entry field and its contributing source rather than the last document's root. Preserve the existing failure outcome; avoid assertions on complete diagnostic wording or generated source IDs. + +## R2: Shared-file assignment conflicts with disjoint native glossary overrides + +**Priority:** P2. **Status:** Open. **Plan stages:** 3 and 5. + +**Locations:** [application acquisition](../../internal/appconfig/config.go), +lines 94 and 116–122; [native command wiring](../../internal/cli/app_wiring.go). + +### Finding + +The native application scope supports `--set` overrides. Application acquisition +copies those overrides, then appends the shared-file projection as another CLI +override at the whole `/glossary_collections` path. ConfigKit correctly rejects +ancestor/descendant override records, so the file assignment conflicts with every +user override beneath that path, including an entirely different collection. + +For a shared file defining only `people`, this invocation fails with status 2 and +`override.overlap` at `/glossary_collections`: + +```sh +audita config show --scope=app --config config.yml \ + --glossary-file shared.yml \ + --set '/glossary_collections/other/entries=[{"id":"b","name":"Bob","category":"person"}]' +``` + +The `--set` succeeds without the file. A disjoint `/context/description` override +also succeeds with the file. Even an empty shared envelope with `collections: {}` +causes the glossary override conflict, despite contributing no vocabulary. + +This is an inherited integration gap in the runtime-file assignment strategy, +not a regression introduced by the shared-schema adapter: the parent override +was already present before this sprint. It still prevents ordinary native +configuration controls from working alongside the adopted shared-file interface +when their logical contributions are disjoint. + +### Recommended change + +Represent disjoint file-derived and caller-supplied glossary contributions as +non-overlapping native assignments. Scope file contributions to the data they +actually assign rather than claiming the entire glossary mapping, and avoid a +parent assignment for an empty collection map. Keep ConfigKit responsible for +binding, recorded origins, and native overlap checks for genuinely overlapping +assignments. + +Preserve supplied entry-list replacement, unrelated configured vocabulary, and +native value semantics. Consider the native override-record budget when choosing +assignment granularity; do not introduce a separate application collection cap +or a custom override parser/merge framework. This finding does not require +defining a new precedence rule for two flags assigning the same field. + +### Acceptance + +Add a native-command regression combining a shared `people` collection with +`--set` for `other`; both must appear in effective configuration. Also cover an +empty shared envelope with a valid glossary override. Preserve native CLI origins +and existing file-to-configuration list replacement. Test resulting values and +failure classifications rather than complete diagnostic snapshots or internal +override-record counts.