Repository navigation
fix(setup): reject invalid OMP profiles before fallback writes - #1562
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Maintainer self-review of 4379faf: native profile constraints/precedence and invalid-path consumers reviewed. Public CLI checks prove no fallback writes and preserve unrelated clients. Official OMP 18.8.7 source and production-package chat/call flows pass with all 139 devices mounted, the complete skill and named-schema Evidence returned, and empty cleanup receipts. All 27 checks and nine workflows passed on this exact head; no unresolved threads. Live model APIs, native named profiles and Windows remain unverified.
OMP refuses to start with an invalid active profile, but REA previously planned writes to the default agent configuration. Setup now blocks that selection before planning or writing files, and doctor reports the profile constraint instead of inspecting a fallback location.
Preserve
OMP_PROFILEprecedence overPI_PROFILE, including empty/default selections. Match OMP's lowercase/length/trailing-dot rules and Windows reserved names, which OMP rejects on POSIX too. Return expected path failures through the existing invalid-registration pipeline; unrelated clients remain configurable.Add an optional native OMP verification lane using the default
xd://device interface. It checks guarded setup, preserved registrations/backups, idempotence, complete catalog mounting, full skill loading and named-schema JavaScript Evidence delivered to the next model turn. This interface advertises device metadata/documentation rather than forwarding every JSON schema as a model function.Validation:
npm run check:fastpassed.The model fixture declares a one-million-token context with synthetic inference/usage. Live model APIs, native Windows, native named-profile execution and default OS-home skill discovery remain unverified. No Hopper/Ghidra verification was performed; their providers are unchanged.
Closes #1561.