Skip to content

feat: add an opt-in Galaxy CoDex Provider for tool-execution usage - #86

Merged
mbhall88 merged 1 commit into
mainfrom
feat/galaxy-usage-stats
Aug 14, 2026
Merged

mbhall88 merged 1 commit into
mainfrom
feat/galaxy-usage-stats

Conversation

@mbhall88

Copy link
Copy Markdown
Owner

Summary

  • Adds a Galaxy CoDex Provider (src/providers/galaxy.rs) reporting runs, user_accounts, and public_instances under a new Usage Category, matching a repository's GitHub URL against CoDex's tools.json and correctly aggregating across a tool's several Galaxy wrappers (sum runs, max users — never summed, to avoid over-counting — union instances).
  • Galaxy is the first optional, disabled-by-default Provider: opt in via repeatable -e/--enable-provider galaxy (unknown name → usage error, exit 2) or a Manifest's enable_providers (explicit CLI selection overrides a Manifest's, matching --topic's existing rule). boast providers now distinguishes default vs. optional Providers.
  • Records ADR-0011 (why CoDex's tools.json was chosen over the live Galaxy Europe Grafana dashboard and ToolShed download counts, and the optional-Provider architecture itself), a user guide, and regenerates the CI-checked reference docs.
  • Snapshot schema version bumped 2 → 3 for the new Category; older Snapshots remain readable.

Closes #79.

Test plan

  • cargo test — 325 lib tests + all integration suites (including 5 new end-to-end Galaxy tests) pass
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • cargo fmt --check clean
  • docs/site/generate-reference.sh regenerated with zero further drift; mdbook build succeeds
  • Live-verified against the real CoDex dataset (boast about --repo mbhall88/rasusa --enable-provider galaxy): 104 runs / 24 users / available on UseGalaxy.eu, UseGalaxy.fr — matches the numbers discussed in the issue thread
  • Two-axis /code-review (Standards + Spec) run against main; all real findings fixed (tightened a GitHub-homepage match guard that could false-match a look-alike host, renamed a helper shadowing an existing one, reworded the user_accounts caveat closer to the issue's suggested text plus the lag caveat it was missing, extracted a shared build_providers helper so the CLI/Manifest-enable path is one real tested function, extended CONTEXT.md/ADR-0008 for the new Provider Note use)

Galaxy is the first optional Provider, disabled by default and enabled
via --enable-provider/a Manifest's enable_providers: it matches a repo's
GitHub URL against Galaxy CoDex's tools.json to report cumulative runs,
a max unique-user-account figure, and public-instance availability under
a new Usage Category, aggregating correctly across a tool's several
Galaxy wrappers. Adds ADR-0011 recording why CoDex was chosen over the
live Galaxy Europe dashboard and ToolShed downloads, and a user guide.
@mbhall88 mbhall88 mentioned this pull request Aug 13, 2026
@ammaraziz

Copy link
Copy Markdown

Tested it from the branch (cargo run not building). Works! Tested it on a few repos, haven't seen any problems.

@mbhall88
mbhall88 merged commit 68b9eca into main Aug 14, 2026
12 checks passed
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.

Galaxy usage stats

2 participants