tools capa

tools-whisper-model-provision

Sprint 3.87 (Gate 1.5 round 1 decision): downloads the whisper.cpp ggml model to one canonical, checksummed, manifest-recorded path -- Rule 14, no more manual/undocumented model placement.

Sprint 3.87 (Gate 1.5 round 1 decision): downloads the whisper.cpp ggml model to one canonical, checksummed, manifest-recorded path -- Rule 14, no more manual/undocumented model placement.

Tiertools
Roleunclassified (baselined)
Pathcrates/tools/whisper-model-provision
Edition2021
Targetstools-whisper-model-provision, tools_whisper_model_provision
Public items7 across 0 modules
Tests8

What it is for

Sprint 3.87 (Gate 1.5 round 1): the shared provisioning library crate for a locally-cached model artifact -- download -> checksum-verify -> atomic-install -> manifest entry, idempotent re-run. Whisper-specific knowledge (URL, expected checksum) lives only in main.rs; everything here is generic to "one big binary artifact, one canonical path."

Manifest format matches tools-local-model-import's own TSV convention (tab-separated, sanitized fields, comment header) deliberately, so the two model-provisioning tools this workspace has read the same way, even though they are not merged (different runtime: whisper.cpp has no Modelfile concept; different privacy posture: this is not the private-LLM-you-don't-want-other-tools-reading case that tool's ~/.config/imp/ isolation exists for -- this manifest can live in an ordinary XDG cache dir).

Capabilities

crate root

Sprint 3.87 (Gate 1.5 round 1): the shared provisioning library crate for a

Item
fn canonical_model_path(home : & Path, filename : & str) -> PathBuf
fn manifest_path(home : & Path) -> PathBuf
fn checksum_matches(expected : & str, actual : & str) -> bool

Provisioned

Sprint 3.87 (Gate 1.5 round 1): the shared provisioning library crate for a

Item
pub struct Provisioned
fn render_manifest(entries : & Provisioned) -> String
fn parse_manifest(text : & str) -> Vec <Provisioned>
fn already_provisioned(entries : & Provisioned, name : & str, sha256 : & str) -> bool

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
fn canonical_model_path(home : & Path, filename : & str) -> PathBufThe canonical, single-source-of-truth location for the whisper model this workspace uses
fn manifest_path(home : & Path) -> PathBufWhere the manifest lives, alongside the models it describes.
fn checksum_matches(expected : & str, actual : & str) -> boolDoes actual match expected? Case-insensitive (a checksum pasted from a release page is not always lowercased), otherwise exact.
pub struct ProvisionedOne line of the manifest: a provisioned model, its source, its verified checksum, and when it was installed.
fn render_manifest(entries : & Provisioned) -> StringRender the manifest, same shape as tools-local-model-import's own render_manifest (comment header, tab-separated, sanitized fields).
fn parse_manifest(text : & str) -> Vec <Provisioned>Parse a manifest written by render_manifest
fn already_provisioned(entries : & Provisioned, name : & str, sha256 : & str) -> boolIdempotency check: is this exact model (by name AND checksum) already recorded as provisioned? A name match with a DIFFERENT checksum is not idempotent -- it means the source changed, and re-provisioning is correct, not skippable.

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation, infrastructure.

Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/tools/whisper-model-provision
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_tools["tools"] --> n_foundation["foundation"]
  n_tools["tools"] --> n_infrastructure["infrastructure"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-audit-log`foundationnoalways
`infrastructure-fetcher`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways
bytes^1noalways
futures-util^0.3noalways
tokio^1full, rt-multi-thread, macros, fs, io-utilnoalways
url^2noalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1full, rt-multi-thread, macros, fs, io-util, timenoalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["tools-whisper-model-provision"]
  SELF -->|runtime| n_foundation_audit_log["foundation-audit-log"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
bintools-whisper-model-provision`src/main.rs`
libtools_whisper_model_provision`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimeyes
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
HOMEsrc/main.rs

No workspace crate depends on this one.

Verification

KindCount
Unit tests8
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root700

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc77
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 7
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files2
Source lines439
Code lines316
Public API items7
Public modules0
Tests8
Examples0
Cargo features0
Direct runtime dependencies7
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "function" : 6
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 316
    "Blank or comment" : 123

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las tools · Manual