Skip to content

fix(setup): reject invalid OMP profiles before fallback writes - #1562

Merged
N0zoM1z0 merged 1 commit into
mainfrom
fix/omp-invalid-profile-20261010
Oct 10, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
fix/omp-invalid-profile-20261010

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

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_PROFILE precedence over PI_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:

  • Focused public CLI/configuration regressions: 73 OMP/Pi/registration tests, 15 existing Hermes tests and 4 OMP filesystem tests passed.
  • npm run check:fast passed.
  • Official OMP 18.8.7 Linux x64: source ordinary chat and actual skill/tool/analysis flows passed against a loopback OpenAI completions/SSE fixture; no residual descendants in the captured receipts.
  • Production-only package: ordinary chat and actual skill/tool/analysis flows also passed. All four source/package receipts show an empty descendant list, and a Linux run-token scan found no remaining client/server processes.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@N0zoM1z0
N0zoM1z0 merged commit e4cc0f0 into main Oct 10, 2026
27 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/omp-invalid-profile-20261010 branch October 10, 2026 14:11
@morluto morluto added bug Something isn't working area: setup Setup, packaging, upgrade, install, Doctor, and client registration labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(setup): reject invalid OMP profiles before fallback configuration writes

2 participants