The deletion gate for the UI Service (archie-core-8cda.5.6) is objective: go list -deps from cmd/archie-ui must show no SQL/store implementation. internal/store's hand-written contract surfaces (TaskStore and its component interfaces, CaptureStore, MappingStore, BindingStore, BindingDispatcher, BindingTaskCreator, ConfigSnapshotStore) move to internal/contracts/store/v1 (package storev1), alongside the value types they carry (CapturedEvent, ConfigSnapshot, WorkflowStat, StageStat, DayTokens) and the sentinel errors -- whose canonical message strings are the wire contract and are byte-identical after the move. internal/store keeps type aliases, so daemon-side callers (archied, the daemon, staterpc's server side, taskactions) are unaffected. The UI-facing packages switch to storev1 directly: webui, archieui, captureintake, gatewayrpc, and staterpc's client/values -- which drops internal/store and modernc.org/sqlite from the archie-ui binary's import closure. overlay.DeniedKeys moves to internal/infrastructure/configuration for the same reason: webui referenced the constant and that dragged the overlay package's SQLite store in. The chat-contract and remaining runtime-handle decoupling continues under the same bead.
15 lines
776 B
Go
15 lines
776 B
Go
package configuration
|
|
|
|
// DeniedKeys are the config keys the runtime overlay may never set, mapped
|
|
// to the reason shown to the operator. db_path is the daemon's own bootstrap
|
|
// path -- the daemon must read it before it can open the overlay store --
|
|
// and work_dir pins the whole working layout. Enforced at write time (the
|
|
// API returns 4xx) and again in the overlay's Set, not silently dropped at
|
|
// read time. Owned here rather than in the overlay package so the webui
|
|
// config renderer can reference the policy without linking the overlay's
|
|
// SQLite store (archie-core-8cda.5.6).
|
|
var DeniedKeys = map[string]string{
|
|
"db_path": "required for bootstrap; cannot be changed at runtime",
|
|
"work_dir": "pins the daemon's working layout; cannot be changed at runtime",
|
|
}
|