Skip to content

fix(sell): default ollama health-path to / and harden registration edges#780

Merged
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/inference-ollama-healthpath
Jul 16, 2026
Merged

fix(sell): default ollama health-path to / and harden registration edges#780
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/inference-ollama-healthpath

Conversation

@bussyjd

@bussyjd bussyjd commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Blocker #4 + sell-CLI edges from the PR #756 review. The 2xx-only UpstreamHealthy gate special-cased only LiteLLM; Ollama serves neither /health nor /health/readiness (200 only at /), so the documented ollama flow and flow-06's ollama branch never reached Ready. Adds the ollama default (/) with a notice, fixes flow-06 + docs. Also: normalizeAgentOrigin rejects scheme-less/non-HTTP origins; enableRegistrationOnOffers honors an opt-out annotation; pinned-nonce retry classifies already-known/nonce-too-low/replacement-underpriced as transient so a landed mint isn't misreported failed; flow-04 probes tightened.

https://claude.ai/code/session_014YjPMViNrZ7zBVgUQzwEKk

sell.go's --health-path defaulting only special-cased litellm, so the
documented "obol sell http --upstream ollama" flow (and flow-06's default
ollama branch, which hardcoded /health/readiness) never passed
UpstreamHealthy: ollama only returns 2xx at "/". Extract the defaulting into
defaultHealthPathForUpstream and add an ollama case defaulting to "/";
mirror the fix in flow-06 (ollama -> "/", litellm keeps /health/readiness)
and document it in monetize-inference.md. Emit a u.Dim note when either
default fires, and document both special cases on the --health-path flag.

Also, three low-severity hardening fixes flagged alongside it:
- normalizeAgentOrigin now rejects scheme-less ("//host") and non-HTTP
  ("ftp://host") origins instead of minting a malformed on-chain agentURI.
- enableRegistrationOnOffers honors a new
  "obol.stack/no-auto-register: true" annotation so a deliberately
  --no-register offer can stay unlisted even after a later
  "obol sell register" bulk-enables everything else on its network.
- isTransientRegistrationError now classifies "already known", "nonce too
  low", and "replacement transaction underpriced" as transient:
  registerWithRecovery pins and reuses the same nonce across retries, so a
  broadcast-timeout retry hitting one of these means no new tx was accepted
  (no double-mint risk) -- treating them as transient gives
  recoverRegistrationByOwnerAndURI more time to see the original broadcast
  land instead of misreporting a landed mint as failed.

flow-04-agent.sh's dashboard probe now asserts dash_login is exactly 200 or
401 and dash_root is exactly 302, instead of merely rejecting 500/000.

Claude-Session: https://claude.ai/code/session_014YjPMViNrZ7zBVgUQzwEKk
@bussyjd
bussyjd merged commit 37ac065 into integration/v0.14.0-rc0 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant