The diagrams and counts record the layout migration in #516. The library has one physical root, one source location per registered skill and one authored file per engineering finding. Search and the catalog are two views over those sources. The migration manifest maps historical checkout paths and revisions. The skill coverage snapshot reports the registry count for this checkout. Migration manifest
To reproduce the #516 search comparison, use the baseline and candidate checkouts from that migration on the same machine. The search comparison checks ordered results across both trees and times the end-to-end CLI. The task queries and acceptance criteria define the workload.
flowchart TB
Q["Inference goal at the main agent entrypoint"] --> P["Select and load ONE primary SKILL.md before evidence search"]
P --> A["Day-0 model · performance · debugging · accuracy"]
P --> B["Version alignment · derived engine · independent engine"]
A & B --> R["Record actual vendor / device / backend / OS, model and stages, engine and revision,<br/>script and flags, benchmark and gates, diagnosis and allowed search space"]
R --> D["Primary routine: observation → supporting skill → evidence to collect → next test"]
D --> S["systems · 53<br/>platforms / frameworks / engines"]
D --> M["playbooks · 17<br/>measurement / planning / optimization"]
D --> W["workflows · 8<br/>research / governance / maintenance"]
D --> K["casebooks · 2<br/>previous outcomes and retry conditions"]
S & M & W & K --> V["Match the evidence to the actual run and test the goal"]
V --> O["Gates met: cite artifacts and scope"]
V --> N["Open question: run the smallest discriminating test or record the budget blocker"]
flowchart LR
D["src/inferrsi/knowledge/data/"] --> L["skill_library/ · sole child"]
L --> T["tasks/"]
T --> P["7 primary owners: task-day-0, task-performance, task-debug, task-accuracy,<br/>task-version-alignment, task-derived-engine, task-independent-engine"]
T --> H["inference-task-router/ · legacy card paths"]
L --> S["80 supporting owners in systems/, playbooks/, workflows/, casebooks/"]
P & H & S --> O["One SKILL.md owns procedure and typed fields · 88 registered IDs"]
L --> F["records/<stable-id>.json · 48 authored findings"]
L --> CFG["config/ · aliases and research profiles"]
L --> REG["skill-index.json · stable ID → owner and backend"]
L --> BUILD["_compiled/ · inputs.json and _provenance.json"]
O & REG -.->|fingerprint resources and compile host headers at the source commit| BUILD
flowchart TB
Q["Main agent receives inference task"] --> P["Choose primary by outcome; skills enter loads its full procedure"]
P --> R["Capture actual run, acceptance gates and search budget"]
R --> D["Observation triggers a supporting question"]
D -->|Known owner| I["Explicit read / resource / capture by ID and revision"]
D -->|Unknown owner| F["Find lexical ranker · ranked Collect / campaign capture share selector"]
D -->|Need catalog scope| C["knowledge search · filter by repo, backend, scenario or tier"]
C -->|Query| F
C -->|No query| B["Catalog by ID · 48 findings + 88 skill views at #516<br/>default limit 10 · 136 entries in that snapshot"]
F --> A["Rank the existing searchable fields and procedure text<br/>Exclude 7 primary skills and legacy router before IDF and limits<br/>default 135 evidence owners · 80 skills + 48 findings + 7 cases"]
I -->|Authored finding| E["Validate selected record and its dependencies<br/>retain linked-library bundle and pin checks when skill documents are declared"]
I -->|Other exact owner| V["Check revision, device, model, flags and measurement against this run"]
A --> H["Find card · limited caveats and withheld count<br/>next_read_content_bytes measures content at Find time"]
E & H & B --> V
V --> Z["Read the procedure and structured metadata, or Collect within budget<br/>Pinned resource read returns original SKILL.md bytes"]
Z --> X["Meets gates → cite reproducible evidence and scope"]
V --> G["Gap → name missing evidence; test the next distinction or record exhausted budget"]
G -.->|budget remains| D
flowchart LR
subgraph OLD["main · before #516"]
A["skill_library/<br/>hardware / frameworks / repositories / methods / workflows"]
B["repo_packs + knowledge_packs<br/>28 contribution + 9 dependency + 11 peer findings"]
C["A separate metadata.json beside skill procedures<br/>Generated per-skill JSON records, navigation and shared provenance"]
D["data/query_aliases.json + research_profiles/"]
end
subgraph NEW["PR · knowledge/data/skill_library/"]
N["tasks/ · 7 first-class primary owners + 1 compatibility router<br/>systems / playbooks / workflows / casebooks · 53 + 17 + 8 + 2"]
R["records/ · 48 authored findings<br/>IDs, tiers, sources and verification retained"]
V["Procedure and metadata in one SKILL.md<br/>88 runtime views · 1 registry + 2 generated inputs"]
P["config/ · aliases + profiles"]
end
A -->|move 80 supporting owners and add primary skills| N
B -->|retain IDs and migrate linked paths| R
C -->|generate views on demand| V
D --> P
The skill library owns the directory map. Each procedure and its resources live under one registered owner. Each engineering finding carries its own sources, applicability and verification status.
The Collect contract defines byte ranges and source identity. The Find contract defines read sizes and reproducible reads.
Claude reads disable-model-invocation from the native YAML header. Across this migration, the 33 procedures that previously exposed that flag and metadata.disco-role still expose them. For 22 other procedures (nine PyTorch, nine TorchNPU and four Lithos), the old sidecar alone contained those values. Readers of imported metadata can decode the same Boolean and role from metadata.inferrsi; promoting them into the native header would change host invocation behavior. Claude skill invocation
Edit the owner's SKILL.md for a procedure, including its metadata.inferrsi fields. Keep supporting examples and scripts with that owner. Add a new owner's ID, path and backend to skill-index.json and regenerate the two _compiled/ files from committed sources. Author a separate records/<stable-id>.json for an independent finding.
This migration folds the fields from 107 paired files into their procedures, including 19 nested procedures. The 19 remain resources of their registered parents. The 48 JSON findings each represent independently addressable evidence. Query aliases, route cards, case records and test inputs retain their own file formats.
| Required primary skill | Inputs to distinguish | Acceptance evidence |
|---|---|---|
| Day-0 model | Model revision, stages, reference implementation, backend | Stage outputs, first end-to-end result, regression fixture |
| Performance | Target metric, workload, bottleneck, quality floor | Paired baseline/candidate runs, quality check and variability |
| Debug | Symptom, last-good configuration, first failing stage | Minimal reproduction, implicated boundary, regression check |
| Accuracy | Reference outputs, dtype, preprocessing, seeds | First divergence, agreed tolerance and end-to-end result |
| Version alignment | Versions of vLLM, vLLM-Omni, vLLM-Ascend and afd-plugin as applicable | Compatibility matrix, paired versions and rollback point |
| Derived engine | Parent revision, inherited APIs and changed paths | Upstream behavior checks and tests of the fork delta |
| Independent engine | Runtime, model format, device, OS and operator availability | Device-native first result, capability gaps and resource bounds |
The main entrypoint loads the primary that owns the user's acceptance criterion. Record hardware vendor, device, backend and OS, model specification and stages, engine and version, run script and flags, benchmark, acceptance criteria, current diagnosis and allowed search space. State unknowns and obtain the smallest missing input that affects the decision.
For example, when a Windows TTS engine still runs after an upgrade but audio quality falls, load task-accuracy before the first search. Fix the prompt, reference audio or codec tokens, seed, preprocessing, dtype and tolerance. Compare the last-good and target stacks on that input. When only the target stack fails, consult version alignment to isolate the changed component. When both stacks diverge, trace the model's earliest mismatching stage. An Ascend 910B1 result can suggest what to measure; verifying a Windows repair requires the original target reproducer and held-out quality checks. If the reference is missing or the allowed budget runs out, record the missing comparison and its impact.
LLM, Omni, TTS, Diffusion and RLT describe workload conditions. CUDA, ROCm, Ascend and XPU describe backends. Mobile devices and Windows add deployment constraints. Check these dimensions against evidence individually. Use only the filters supported by the chosen CLI reader.
inferrsi skills enter task-accuracy
inferrsi find "TTS quality regression after engine upgrade"
inferrsi knowledge search --tier peer --repo-type qwen3_tts_engine --backend ascend --json
inferrsi knowledge show flashinfer.cuda.llm.paged_decode_dispatchFor an inference task, run inferrsi skills enter <task-id> and read its returned instructions before choosing the first supporting query. Its decision points specify the observation that warrants opening a supporting skill, the evidence to retrieve and the next action. A direct evidence lookup outside the main agent workflow can still use an exact ID or free text. The compatibility router retains its historical resource paths.
For an exact read of an authored finding, the reader validates the selected record and the inputs of its bundle. A stale metadata edit in an unrelated skill cannot block a standalone finding such as FlashInfer paged decode. A record that declares linked skill documents retains its library dependencies and bundle revision checks. Changes to those dependencies can invalidate a pinned read.
Find skips incidental system files such as .DS_Store beside the records and still validates record JSON. It ranks each eligible evidence owner once. A scoped catalog query reuses Find; a catalog listing without a query includes the eight task entries. Ranked Collect and managed campaign capture use the same evidence selector, and explicit IDs can still capture a task owner. Check revision, applicability and verification before using a result. Propose a reusable finding for human review with its source, scoped conclusion and retry condition.
Agent V describes Git-backed shared memory with human guidance, hard-to-rediscover facts, indexed workflows and session experience. InferRSI adopts the distinction between a procedure, a scoped finding and a run. Accepted findings enter through review. Frozen experiment materials stay in evidence/. Agent V
MindIE Agent separates agent capabilities, knowledge and execution plugins. KDA specializes in kernel development. Cannbot Skills packages Ascend procedures for reuse. InferRSI needs cross-engine, cross-model and cross-platform retrieval as well as evidence qualification. It combines a task front door, technical owners, stable IDs and scoped evidence. A claim that it retrieves better than any of these projects requires a common task benchmark. MindIE Agent · KDA · Cannbot Skills
For the separate question of how much the task entry helps engineers, measure three arms on the same corpus and tool budget. A uses the prior layout and search. B runs direct search on the unified layout as an evaluation-only ablation. C uses the normal main entrypoint on that same layout and loads the selected primary before evidence search. Use held-out tasks across the seven types, blinded reviewers and paired cases with an applicable answer and a similar-looking incompatible target. Use four held-out tasks for each of the seven task types. Run each arm in an isolated session and balance the order. The primary metric is the fraction of answerable tasks with an applicable, cited owner in the top three. Report top-five applicable-source recall separately. For missing evidence, score unjustified transfer, correct abstention and mistaken abstention separately. Record time to first useful evidence, files opened and maintenance effort. Compare A→B and B→C separately using the gates in the acceptance issue. Approve broader rollout only when the team meets its predeclared quality and cost targets.
The authoring benefit is directly inspectable: one finding file or one skill owner is edited; no per-pack navigation list or projected record is maintained. Two compiled files are reproducible build products. Their shared merge point is a cost: resolve source edits, then regenerate. The build-time Git pin identifies source provenance. Installed material selection checks the resource hashes. Whole-library dependency revisions, checkout revisions, and hashes of individual findings have different scopes. Historical checkout pins must be replayed on the corresponding snapshot. Compared with main after #507, the full layout migration rejects 79 old checkout skill pins, retains the seven case pins from that baseline and preserves the pre-existing unavailable husky read. Direct callers that open old pack filenames must move to the record ID or new path.
A provenance-only refresh preserves an authored record’s bundle pin when its linked skill resources stay identical. Each registered casebook is a skill package. The seven rankable cases in the #516 snapshot were individual evidence items.
The consolidation step moved all 48 files byte-for-byte from the preceding PR layout. Compared directly with main before the layout migration, 30 are byte-identical and 18 update only the path in skill_documents. All 48 retain their IDs, tiers, source pins and verification state. An installed package bundle for an authored record that declares linked skill documents also includes library dependencies. Editing a referenced library file can change that bundle revision. Archive a known-good snapshot for pinned replay.



