feat(settings): add Nous Portal provider (#175)
CI / ci (push) Canceled after 0s

Settings gains hermes' `nous` slug as a fourth provider on every
surface and the Provider Keys page — endpoint
https://inference-api.nousresearch.com/v1, NOUS_API_KEY, the
5-level OpenAI-compatible effort ladder, switch flagship
anthropic/claude-sonnet-5 (live-probed: the portal's docs-listed
Hermes-4 ids 404 — the inference API serves the OpenRouter catalog,
so the switch keeps the app's sonnet posture billed through Nous).
The probe speaks plain OpenAI chat-completions; an unkeyed test
borrows the shared Portal session's agent_key (the engine's own
credential — hermes' nous runtime is OAuth-only, and a portal key
and subscription bill the same account credits), gated to the
official https endpoint so the implicit credential never rides a
user-edited URL. Pass readiness rides the same fallback, so a
logged-in machine runs passes with no key. Suite 635.

Closes #175
This commit is contained in:
AlexKucera committed 2026-11-05 15:59:41 +01:00
1 parent d305f822aa
commit b2db859887
15 files changed
+410 -30

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ All notable changes to this project will be documented in this file. The format
### Added
- **settings:** Nous Portal as a fourth provider (#175) — Settings offers `nous` (hermes' own slug) on every surface and the Provider Keys page: endpoint `https://inference-api.nousresearch.com/v1`, env `NOUS_API_KEY`, the 5-level OpenAI-compatible effort ladder, and switch flagship `anthropic/claude-sonnet-5` (live-probed: the portal's docs-listed Hermes-4 ids 404 — the inference API serves the OpenRouter catalog, 385 vendor-prefixed ids, so the switch keeps the app's sonnet posture billed through Nous). Test Connection speaks plain OpenAI chat-completions (Bearer, `/chat/completions` + `/models`, the 512 cap — no z.ai thinking knobs) and an unkeyed test falls back to the shared Portal session's agent_key from `~/.hermes/auth.json` — the engine's own credential, since hermes' nous runtime is OAuth-only and a portal API key and subscription bill the same account credits. The implicit session key only ever rides the official https endpoint: a hand-edited endpoint with an empty key refuses pre-network (paste-a-key), and no key + no login names `hermes auth add nous`. Pass readiness rides the same fallback (a logged-in Portal machine reads .ready with no key — Run Pass no longer demands a key the feature says isn't needed; finish-audit HIGH). A pasted key still lands in all three profiles' `.env` as future-proofing — a later hermes release honoring `NOUS_API_KEY` for inference lights up with zero Museion changes. +8 tests (dialect, bare-envelope 404/401 decode, session-key fallback, custom-endpoint refusal, keyless readiness) with a flip-verified pair (both guards deleted → exactly the two new pins fail). Suite 635 (issue #175)
- **mentor:** The VOICE payload (#58, wayfinder map #56) — Sandeep Swadia's VOICE framework distilled into the bundled skill set: new skill `owned-insight` (Owned + Insightful bound as one — fingerprints with the Cornell homogenization evidence, pseudo-profundity, the so-what test, the belief-difference frame; drill example; QRC), the retelling-test card in reader-psychology (child-simple restatement — the Pass plays the source's independent reader), the earn-the-next-line card in prose-craft's new Engagement section (diagnoses absent tension, never manufactures it — the source's craft ceiling), and the interview-me-first stance in session-persona (the verbatim four untouched). `owned-insight` joins the #133 allocation on all three surfaces (P1 10 · P2 9 · Chat 11), rides seed-manifest, fires as FC-11 in the sample Pass, and lands as PRD G14. Verified stays with S8's research rail; the five pitfalls dissolve into existing coverage. Suite 574 (issues #56–#58)
### Changed