Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9333b9f
Add a MUSA backend and the vllm_musa repository pack
yeahdongcn Nov 20, 2026
6b43f7d
Regenerate the skill catalog for the unified library layout
yeahdongcn Nov 20, 2026
2006ab6
Embed the vllm-musa skill metadata in its frontmatter
yeahdongcn Nov 20, 2026
4405904
Regenerate compiled inputs for the embedded skill metadata
yeahdongcn Nov 20, 2026
1a2dc39
Name MUSA in the packaged task-input schema and template
yeahdongcn Nov 23, 2026
a913868
Reject implausible MUSA memory readings and count the shipped packs
yeahdongcn Nov 24, 2026
92867fe
Regenerate the derived catalogs after the test reorganisation
yeahdongcn Nov 25, 2026
b140335
Require an explicit process sequence from the MUSA binding
yeahdongcn Nov 25, 2026
287bffe
Record which MUSA bounds were executed and which remain open
yeahdongcn Nov 25, 2026
f8fb7b3
Say what the probe needs instead of what the host lacks
yeahdongcn Nov 27, 2026
94c08c2
Set the merged knowledge counts to the measured 142 records and 791 f…
yeahdongcn Dec 2, 2026
10e32cb
Bump the skill counts for the added vllm-musa skill
yeahdongcn Dec 2, 2026
48e46eb
Count the local profiles after the added skill
yeahdongcn Dec 2, 2026
6fd5721
Count the packaged-skill projections at the measured 91
yeahdongcn Dec 2, 2026
5bbd19f
Refresh the derived artifacts on the profiling-trace intake question
yeahdongcn Dec 2, 2026
7ae77e4
Refresh the derived artifacts after the atomic library cutover
yeahdongcn Dec 2, 2026
a0e297b
Set the installed counts after the atomic library cutover
yeahdongcn Dec 2, 2026
f9ed470
State where the MUSA knowledge is searchable and assert it from the w…
yeahdongcn Dec 3, 2026
b331c67
Name the superseded and current leaf hashes in the manifest note
yeahdongcn Dec 3, 2026
54fa5c6
State the release-mode consequence of a legacy-only knowledge placement
yeahdongcn Dec 3, 2026
aeb6fe9
Say what the launch gate and the wheel check actually verify
yeahdongcn Dec 4, 2026
759e8d8
Refresh the derived artifacts and the installed counts after the rebase
yeahdongcn Dec 4, 2026
221c611
Regenerate the compiled provenance after the rebase
yeahdongcn Dec 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@
[record skill](.agents/skills/submit-optimization-record/SKILL.md) shows how to set
a direct push URL. Errors that can carry paths or payloads stay generic.

### Added

- A `musa` platform backend and a `vllm_musa` repository pack cover Moore
Threads MUSA text-LLM and Omni serving. `doctor --backend musa` runs a
`pymtml` probe inside the target Python; the probe does not depend on a
preinstalled vendor CLI such as `mthreads-gmi`, and it records
`MUSA_VISIBLE_DEVICES`, `torch_musa`, `torchada`, `mate`, `mthreads-ml-py`
and `vllm-musa` with the run. `--repo-type vllm_musa`
admits `llm.decode`, `llm.serving`, `diffusion.image_generation`,
`diffusion.video_generation` and `audio.tts`. Three source-derived records and
one skill state the device-identity boundary (MTML answers with physical ids
and is unaffected by `MUSA_VISIBLE_DEVICES` while `torch.musa` remaps), the
`torchada` dispatch boundary, and the Omni image's pinned dependency set.
Every descriptor stays unverified, the records carry
`locally_verified: false`, and this change claims no MUSA result.
- The DeepSeek Harness plugin's test-environment form offers `MUSA` beside GPU
and NPU, so a session can start a campaign on the backend the CLI now accepts
instead of only naming a generic GPU.

### Changed

- The ready-lane `full-check` job runs the suite on four `pytest-xdist` workers and
Expand Down
21 changes: 21 additions & 0 deletions docs/guides/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,27 @@ commands. This keeps the questions, their hits and the selected reads separately
addressable. When the same revision answers two questions, cite that revision
once and identify both questions in the research notes.

### Discover Moore Threads MUSA devices — `doctor --backend musa`

- **Inputs:** a prepared Git checkout and its existing repo type, target Python
(`--python`), optional repeatable `--device-ids` and one case-insensitive
`--device-model`.
- **Effect:** read-only. The bounded command runner starts a probe in the target
Python, imports `pymtml` (the pynvml-compatible MTML binding) and reads the
index, UUID, name, driver version and total memory of every device. MUSA
publishes no discovery CLI to require, and the probe creates no MUSA context.
- **Output:** those device records, plus `MUSA_VISIBLE_DEVICES` and the
`torch_musa`, `vllm-musa`, `mthreads-ml-py`, `torchada` and `mate` versions in
the environment snapshot. A requested ID and the requested model must match the
same record. A reached probe whose selection or record list is unusable is
reported `unavailable`, not `tool_available`.
- **Boundary:** the probe answers with physical ids. MTML is unaffected by
`MUSA_VISIBLE_DEVICES` while `torch.musa` applies the logical remapping, so a
matched record does not prove which logical device a trial measured; record the
mapping with the evidence. Discovery is not compatibility or performance
qualification, and the descriptor stays unverified.
- **Example:** `inferrsi doctor --repo . --repo-type vllm_musa --backend musa --python /opt/musa/bin/python --device-ids 0 --device-model S5000`

### Discover/read packaged or custom skills — `skills list` / `enter` / `show` / `resource` / `reference`

- **Inputs:** The agent selects a primary skill by deliverable and runs `inferrsi skills enter task-accuracy`, for example. It returns the primary's complete procedure and host header before supporting evidence search. The base installation can omit the embedded search metadata from this delivery. A pinned `read --resource` exposes the complete source file, including its metadata. An unknown, unavailable or non-primary owner is an error. `list` reads skill frontmatter (and legacy sidecars in historical/custom checkouts); `show <skill>` selects one instruction body; `resource <skill> <relative-path>` and `reference <skill> <relative-path>` resolve one path. The default is the installed library's registered skills; an explicit `--root` selects a custom flat tree or a categorized library with `skill-index.json`. PyYAML, a core dependency, supplies the YAML parser for frontmatter operations; the `skills` extra remains a compatibility alias.
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/plugins/dsh-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In DSH Web, open a target repository and its conversation, then click
1. **Optimization target (优化对象).** Enter the repository, model, framework,
SIAS plane and objective. The form fills the local repository path from the
current session when available.
2. **Test environment (测试环境).** Choose GPU or NPU and local or remote
2. **Test environment (测试环境).** Choose GPU, NPU or MUSA and local or remote
execution. After selecting remote execution, enter the remote repository path
in the first section, then return here to test the SSH connection. Set the
maximum optimization rounds and total time budget in minutes. The prepared
Expand Down Expand Up @@ -119,7 +119,7 @@ Click **Test connection**. For a new server, compare the displayed SHA-256 host
key fingerprint against a trusted value, then choose **Trust this fingerprint
and test**. A supplied fingerprint must match exactly. Successful testing checks
SSH authentication, Linux command execution and access to the selected repository.
GPU/NPU availability and benchmark readiness are checked by the Agent afterward.
GPU/NPU/MUSA availability and benchmark readiness are checked by the Agent afterward.

After a successful test, **Start iteration** becomes available. Changing the
host, authentication, repository, designated scripts or execution location
Expand Down Expand Up @@ -201,7 +201,7 @@ flowchart LR

| Owner | Responsibility |
| --- | --- |
| Form and prompt builder | Collect GPU/NPU, execution location, goal, SIAS plane, user budgets and optional acceptance inputs |
| Form and prompt builder | Collect GPU/NPU/MUSA, execution location, goal, SIAS plane, user budgets and optional acceptance inputs |
| DSH conversation | Deliver the prompt once to the selected session, preserving its model and permissions |
| SSH connection bridge | Authenticate the owner request, verify host key and login, retain a session-bound connection and return an opaque ID |
| `inferrsi_remote` | Carry explicit repository operations and cancellation through DSH tools without including authentication material |
Expand Down
21 changes: 17 additions & 4 deletions docs/legacy-knowledge-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "urn:inferrsi:docs:legacy-knowledge-manifest:v1",
"description": "First-wave Knowledge compatibility record and the neutral technical data leaf's locks. P0b froze the first revision at 0da7e2f960cd4ec994ae8eddea5b71023c5379ca, K01 re-recorded every leaf hash before the code move, K02 changed only the data leaf's locked file hash, and C2 (#451) moved that leaf byte for byte to inferrsi.resources.repository_packs. The R1 revision (#412) deleted the seven root Knowledge shells with their eight pairs, so compatibility_pairs is empty and the allowlist blocker is gone. The former ninth pair, infra.inspection -> the data leaf, is now the permanent exact rule (its importer moved to apps.host.inspection in #498 slice 3a) in technical_leaf.permanent_importers, outside the allowlist. The nine retired pair records, with the old root leaf hashes and export lists, are kept unchanged under the C2 revision_history entry, the record that R1 appended; it is no longer the last entry. The leaf's bytes and locked file hash are unchanged. Nothing here is a wildcard approval, and it changes only through formal review. Line references are at the base_commit recorded by the revision that wrote them; no later revision re-records them. This A1 revision (#408) removes technical_leaf.temporary_importers with root arguments.py: the moved Apps parser reads the same REPO_TYPES object through inferrsi.knowledge.catalog, no Apps importer of the leaf is declared, and the removed entry is kept unchanged as retired_temporary_importers under the last revision_history entry, the R1 record.",
"description": "First-wave Knowledge compatibility record and the neutral technical data leaf's locks. P0b froze the first revision at 0da7e2f960cd4ec994ae8eddea5b71023c5379ca, K01 re-recorded every leaf hash before the code move, K02 changed only the data leaf's locked file hash, and C2 (#451) moved that leaf byte for byte to inferrsi.resources.repository_packs. The R1 revision (#412) deleted the seven root Knowledge shells with their eight pairs, so compatibility_pairs is empty and the allowlist blocker is gone. The former ninth pair, infra.inspection -> the data leaf, is now the permanent exact rule (its importer moved to apps.host.inspection in #498 slice 3a) in technical_leaf.permanent_importers, outside the allowlist. The nine retired pair records, with the old root leaf hashes and export lists, are kept unchanged under the C2 revision_history entry, the record that R1 appended; it is no longer the last entry. The leaf's bytes and locked file hash are unchanged. Nothing here is a wildcard approval, and it changes only through formal review. Line references are at the base_commit recorded by the revision that wrote them; no later revision re-records them. This A1 revision (#408) removes technical_leaf.temporary_importers with root arguments.py: the moved Apps parser reads the same REPO_TYPES object through inferrsi.knowledge.catalog, no Apps importer of the leaf is declared, and the removed entry is kept unchanged as retired_temporary_importers under the last revision_history entry, the R1 record. technical_leaf.file_sha256 is the hash this stage superseded, not the current bytes: the latest revision's file_sha256 under registry_revision is the hash of the file as it ships. tests/knowledge/test_knowledge_compatibility_shells.py pins both directions.",
"base_commit": "9b81c9ba1d4d1f7d45bd039a7c02ac2f01859426",
"revision_history": [
{
Expand Down Expand Up @@ -338,10 +338,10 @@
"source": "REPO_TYPES = (\"vllm\", \"vllm_omni\", \"afd_plugin\", \"vllm_rlt\", \"strata\", \"sglang\", \"sglang_omni\")\n\n\ndef repository_pack(repo_type: str) -> dict[str, Any]:\n if repo_type not in REPO_TYPES:\n raise ValueError(f\"Unknown repository type: {repo_type}\")\n path = files(\"inferrsi\").joinpath(\"data\", \"repo_packs\", repo_type, \"pack.json\")\n return json.loads(path.read_text(encoding=\"utf-8\"))"
},
"current_fragment": {
"description": "REPO_TYPES and repository_pack after the descriptor relocation to Resources",
"description": "REPO_TYPES and repository_pack after the descriptor relocation and the MUSA registry revision",
"hash_convention": "fragment_sha256 is the SHA-256 of source plus one trailing newline",
"fragment_sha256": "4bbed98045f4ba1fbe63715a1ef445ff83859b2ce03ef49f8bd1850db5930a38",
"source": "REPO_TYPES = (\"vllm\", \"vllm_omni\", \"afd_plugin\", \"vllm_rlt\", \"strata\", \"sglang\", \"sglang_omni\")\n\n\ndef repository_pack(repo_type: str) -> dict[str, Any]:\n if repo_type not in REPO_TYPES:\n raise ValueError(f\"Unknown repository type: {repo_type}\")\n path = files(\"inferrsi\").joinpath(\"resources\", \"repo_packs\", f\"{repo_type}.json\")\n return json.loads(path.read_text(encoding=\"utf-8\"))"
"fragment_sha256": "88f445d70cf09d9bd79ab80097a97c43b897f0c9df8931487dbfdf2a8d6bd6bc",
"source": "REPO_TYPES = (\n \"vllm\", \"vllm_omni\", \"vllm_musa\", \"afd_plugin\", \"vllm_rlt\", \"strata\", \"sglang\", \"sglang_omni\"\n)\n\n\ndef repository_pack(repo_type: str) -> dict[str, Any]:\n if repo_type not in REPO_TYPES:\n raise ValueError(f\"Unknown repository type: {repo_type}\")\n path = files(\"inferrsi\").joinpath(\"resources\", \"repo_packs\", f\"{repo_type}.json\")\n return json.loads(path.read_text(encoding=\"utf-8\"))"
},
"resource_path_revision": {
"stage": "K02",
Expand Down Expand Up @@ -399,6 +399,19 @@
"new_line": "path = files(\"inferrsi\").joinpath(\"resources\", \"repo_packs\", f\"{repo_type}.json\")",
"old_file_sha256": "751d7bf663318962a2e73cf9d75369e0f8f8c2bda27964c56e44021b9f86c992",
"new_file_sha256": "ef87247b7c670f8d21b9ee546226b5baf936eee42c16b70f59ea0d20ddd5dbdb"
},
"registry_revision": {
"stage": "MUSA-R1",
"issue": null,
"pull_request": "MUSA backend and vllm_musa repository pack",
"reason": "The vllm_musa repository pack needs a REPO_TYPES entry, so the leaf's registry grew after the descriptor relocation while the reader body stayed byte-identical.",
"previous_file_sha256": "ef87247b7c670f8d21b9ee546226b5baf936eee42c16b70f59ea0d20ddd5dbdb",
"file_sha256": "c14a4483510e74b849957cf94b148b4ff15c5856c51e14909ac0709a605f48fd",
"added_repo_types": [
"vllm_musa"
],
"unchanged": "repository_pack(), allowed_imports, two_symbols, top_level_shape and both permitted importers are untouched; the K02 path expression and the C2 relocation identity remain historical records of the bytes that existed then and are not rewritten by this revision.",
"review": "Reviewable as an additive registry entry; unlike the K02 path revision it changes no expression inside the reader and self-approves nothing."
}
},
"infra_inspection_rewrite": {
Expand Down
Loading
Loading