Skip to content

docs: model provider discovery and model metadata - #1800

Merged
JAORMX merged 2 commits into
mainfrom
docs/provider-discovery-model
Sep 24, 2026
Merged

JAORMX merged 2 commits into
mainfrom
docs/provider-discovery-model

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Define provider-discovery concepts and contracts directly in the domain model. This PR changes only the model YAML and generated Markdown, not runtime behavior.

  • Add ModelMetadata: immutable observations for an exact provider/model, with explicit knowledge and provenance. Unknown, unsupported, and policy fallback remain distinct.
  • Add ProviderDiscovery: provider-local attempt lifecycle and authoritative publication within a host deployment instance, separating the latest outcome from last successful observations.
  • Cover first-prompt discovery without picker priming, independent provider settlement, healthy omitted-model fallback, ordered publication, failed refreshes, and sparse capability metadata.
  • Clarify requested session selection versus the effective per-turn model, preserving same-provider mode routing and floating-default restart semantics.
  • Remove proposed/unimplemented labels and review-process disclaimers so the model states its contracts directly; regenerate Markdown from YAML.

Relates to #1798 and the cold-resume investigation: native gateways skip authenticated startup discovery, but admission treats the first missing-window request as though discovery already ran.

Development stage

  • Plan / Interface
  • Implementation
  • Combined
  • Spike / Routine / Cleanup

Work classification: Routine documentation work — records the discussed conceptual model, corrects the model-binding description, and removes editorial qualification. No runtime, public API, storage-format, or trust-boundary changes.

Verification

  • task docs: generated references, SDK API checks/documentation generation, acceptance-checker fixtures, documentation lint tests, the service-example test, and strict Matlatl validation passed.
  • modelith render docs/architecture/mecatl.modelith.yaml: regenerated Markdown.
  • modelith render docs/architecture/mecatl.modelith.yaml --check: passed.
  • modelith lint --completeness error docs/architecture/mecatl.modelith.yaml: zero errors; 13 pre-existing semantic warnings, unchanged from baseline.
  • git diff --check: passed.
  • Independent gpt-6-astra review of substantive semantics before this editorial correction: no findings.

Tooling caveat: task docs:model has an unavailable Modelith revision pin (73429dd46a22b3c3491c4654edca391fc9bd63f2, unknown revision). Rendering and linting used installed Modelith v0.4.0-5-g01f4ce6, previously verified to reproduce baseline Markdown byte-for-byte. The Taskfile is unchanged.

Full runtime lint/tests/demo, site build, and engine API/acceptance-trace gates were not run for these two internal documentation artifacts.

Reviewer note

Host policy owns last-good metadata usability after a failed refresh; the specific maximum-age/reuse policy remains an open question.

@JAORMX
JAORMX force-pushed the docs/provider-discovery-model branch from f6dce8b to c37c7fc Compare September 23, 2026 15:09
@JAORMX
JAORMX merged commit 2b70b44 into main Sep 24, 2026
36 checks passed
@JAORMX
JAORMX deleted the docs/provider-discovery-model branch September 24, 2026 06:00
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks
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