Skip to content

docs: guard against Ollama model-name drift in demo docs (source of truth in rossoctl/examples) #2527

Closed as not planned

Description

@mrsabath

Problem

The Ollama default model name is documented as a **Note:** block that is duplicated verbatim (or near-verbatim) across five demo docs:

  • docs/demos/demo-weather-agent.md — llama3.2:3b-instruct-fp16
  • docs/demos/demo-image-agent.md — llama3.2:3b-instruct-fp16
  • docs/demos/demo-generic-agent.md — llama3.2:3b-instruct-fp16
  • docs/demos/demo-file-organizer-agent.md — llama3.2:3b-instruct-fp16
  • docs/demos/demo-slack-research-agent.md — granite3.3:8b

The source of truth for each model is the .env.ollama file in a different repo
(rossoctl/examples, e.g. a2a/weather_service/.env.ollama). Nothing in this repo's CI
can detect the docs drifting out of sync with those files — which is exactly the drift
that PR #2516 (C3) fixes by hand.

Proposed guard (from @huang195's review on #2516)

A CI step in .github/workflows/docs-ci.yaml that fetches the raw .env.ollama from
rossoctl/examples and greps that the model string appears in the corresponding demo doc.

Tradeoffs to weigh before implementing

  • Catches drift automatically, fork-safe (read-only, no secrets)
  • Couples this repo's CI to another repo's contents — a rename/move in rossoctl/examples breaks CI here
  • Network flake — external raw.githubusercontent fetch on every docs PR

Alternatives worth considering

  1. Cross-repo grep guard (as proposed) — simplest, but the coupling/flake above.
  2. Vendor the model name into this repo (a small checked-in fixture the docs and CI both reference) — no network, but a second thing to keep in sync.
  3. Single shared include / snippet for the Note block so the string lives in one place per model — removes the duplication even if it doesn't solve cross-repo drift.

Scope

Docs/CI only. Not blocking any demo. C3 (#2516) lands independently.

Assisted-By: Claude Code

Activity

  1. mrsabath commented on Sep 8, 2026

    @mrsabath
    MemberAuthor

    Investigation update — the source-of-truth situation is worse than a name mismatch

    Checked rossoctl/examples for each demo's .env.ollama:

    Demo doc Doc says .env.ollama in examples repo?
    weather llama3.2:3b-instruct-fp16 ✅ a2a/weather_service/.env.ollama → LLM_MODEL=llama3.2:3b-instruct-fp16 (matches)
    image llama3.2:3b-instruct-fp16 ❌ no .env.ollama (only .env.openai)
    generic llama3.2:3b-instruct-fp16 ❌ no .env.ollama
    file-organizer llama3.2:3b-instruct-fp16 ❌ no .env.ollama
    slack granite3.3:8b ❌ no .env.ollama; .env.template has TASK_MODEL_ID = "granite3.3:8b" (different var name)

    Two distinct problems:

    1. Missing source files — four demo docs instruct users to "import .env.ollama from the agent examples repo," but only the weather service actually ships one. This is a doc/examples-repo bug on its own, independent of model drift.
    2. Model-name drift — only the weather doc has a real .env.ollama to grep against, so @huang195's proposed guard is only buildable for 1 of 5 docs today.

    Implication for the guard: it can't be built as originally sketched until the examples repo actually publishes .env.ollama for image/generic/file_organizer/slack (or the docs stop referencing them). Sequencing likely needs to be: fix the examples repo first, then add the drift guard here.

  2. github-actions commented on Nov 8, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.

  3. github-actions commented on Nov 22, 2026

    @github-actions

    This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions