diff --git a/CHANGELOG.md b/CHANGELOG.md
index c888875ad..319b8d1a4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -102,7 +102,7 @@
The previous Apps imports retain explicit compatibility exports. New optimization
plans fingerprint the canonical implementation; existing frozen sessions must use
their original pinned runtime for `status` and `recover`. See
- [release-boundary recovery](docs/optimization-workflow-unification.md#release-boundary-recovery).
+ [release-boundary recovery](docs/guides/optimization-workflow-unification.md#release-boundary-recovery).
- The host bindings move from `inferrsi.infra` to the new `inferrsi.apps.host`
package (Refs #498, slice 3a). There is no forwarding module or alias, and the
import gate fails any import of an old path.
diff --git a/README.md b/README.md
index aa024d32c..f34a92633 100644
--- a/README.md
+++ b/README.md
@@ -38,9 +38,9 @@ select its backend (`cpu`, `cuda`, `rocm`, `ascend`, or `mlx`).
**🤖 Use a coding agent.** Install the plugin and ask it to check the target
checkout, workload, and quality criteria before starting an experiment.
-[Codex](docs/codex-plugin.md#install-from-the-release-zip) · [DeepSeek Harness](docs/dsh-plugin.md) · [WorkSwarm](docs/workswarm-plugin.md#download-and-install)
+[Codex](docs/guides/plugins/codex-plugin.md#install-from-the-release-zip) · [DeepSeek Harness](docs/guides/plugins/dsh-plugin.md) · [WorkSwarm](docs/guides/plugins/workswarm-plugin.md#download-and-install)
-**🧪 Run your first experiment.** [Try a packaged benchmark](docs/optimization-benchmarks.md#start-the-complete-workflow) · [Bring your own workload](docs/quickstart.md#real-remote-experiment)
+**🧪 Run your first experiment.** [Try a packaged benchmark](docs/benchmarks/optimization-benchmarks.md#start-the-complete-workflow) · [Bring your own workload](docs/quickstart.md#real-remote-experiment)
@@ -57,7 +57,7 @@ change. A fresh process retests the best candidate at the end of the campaign.
knowledge on and off to measure whether access to the library helps the agent.
Reviewed PRs add findings to the library for agents to consult in later
campaigns.
-[Knowledge comparison](docs/benchmark-comparison.md)
+[Knowledge comparison](docs/benchmarks/benchmark-comparison.md)
- **Knowledge** supplies source-linked skills, prior measurements, and implementation notes for the agent to consult.
- **Harness** freezes the experiment inputs and gates, runs the rounds, and records the verdict and evidence.
@@ -65,7 +65,7 @@ campaigns.
**Apps** assembles these capabilities into the CLI, client integrations, and
result views.
-[Module responsibilities](docs/architecture.md#module-responsibilities-and-dependencies) · [Workflow diagram](docs/optimization-workflow-unification.md#时序图) · [Architecture decision #362](https://github.com/InferMatrixLab/InferRSI/issues/362#issuecomment-6722325612) · [Apps migration #371](https://github.com/InferMatrixLab/InferRSI/issues/371)
+[Module responsibilities](docs/architecture.md#module-responsibilities-and-dependencies) · [Workflow diagram](docs/guides/optimization-workflow-unification.md#时序图) · [Architecture decision #362](https://github.com/InferMatrixLab/InferRSI/issues/362#issuecomment-6722325612) · [Apps migration #371](https://github.com/InferMatrixLab/InferRSI/issues/371)
**Review a run in the dashboard.** Compare baseline and candidate profiles and
trace each experiment back to its evidence. From the recorded run directory,
@@ -122,7 +122,7 @@ listed baseline. The evidence column gives the scope and validation status.
| **MiniMax-H3 Ref2VA** | **−76.3%**
Baseline: In-run dense control · 701.95 s | 5 s video, 50-step denoising time · 4× Ascend 950PR | **🔥 4.22×** in five retained A/B slots. ⚠️ Historical; performance and quality inconclusive. [Archive record](https://github.com/InferMatrixLab/InferRSI/issues/520) · [Recipe benchmark](https://github.com/vllm-project/vllm-omni/pull/9955#:~:text=in%2Drun%20dense%20median) |
| **MiniMax-H3-Image** | **−60.16%**
Baseline: Original layer offload · 36.62 s | Warm HTTP latency · 2× RTX 3090 | One paired comparison; ✅ 9 pixel-identical outputs. [Upstream results](https://github.com/vllm-project/vllm-omni/pull/10243#:~:text=One%20paired%20deployment%20comparison) |
| **MiniMax-H3-Image** | **−35.9% / −36.1%**
Baseline: Same-layout SP4 control · 16.89 / 4.18 s | HTTP generation latency at 4736×3552 / 1024×1024 · 4× Ascend 910B1 | ✅ 30 / 30 numerical checks passed. Latency targets unmet. [Benchmark](https://github.com/InferMatrixLab/InferRSI/pull/394) |
-| **Qwen-Image-2.1-Turbo** | **−30.60%**
Baseline: Pinned control · 384.16 ms | Warm HTTP latency · 4× B300 | ✅ 44 pixel-identical outputs. [InferRSI results](docs/qwen-image-2.1-turbo-b300.md) |
+| **Qwen-Image-2.1-Turbo** | **−30.60%**
Baseline: Pinned control · 384.16 ms | Warm HTTP latency · 4× B300 | ✅ 44 pixel-identical outputs. [InferRSI results](docs/field-notes/qwen-image-2.1-turbo-b300.md) |
| **Qwen-Image-2.1-Turbo** | **−22.20%**
Baseline: Upstream parent · 2,921.23 ms | Warm offline generation latency · 1× Ascend 910B1 | ⚠️ Upstream reference; 18 pixel-identical outputs. Teardown inconclusive. [Upstream results](https://github.com/vllm-project/vllm-omni/pull/8729#:~:text=Final%2Dmerge%20performance%20and%20image%20comparison) |
@@ -154,7 +154,7 @@ request per engine and measure audio frames per second and median time to first
| **Drama 3** | **+58% / −31%**
Baseline: vLLM-Omni · 195.89 frames/s / 47.29 ms | Audio throughput / time to first audio · 1× B300 | Three-run medians; overall target unmet. [Same-card benchmark](https://github.com/InferMatrixLab/drama-3-single-b300-engine/blob/58a1882a4d941f8d21bfce6be37d3d5e7c9fde80/docs/current-results.md) |
| **h3-metal** | **−59%**
Baseline: h3.c · 73.3 s | Warm video generation latency · Apple M5 Max | Both engines used the original MiniMax-H3 at 20 steps. [Author benchmark](https://github.com/zuiho-kai/h3-metal/blob/53b7fa5d88e2497ab427ab9c7155535f7e6e6817/README.md#performance) |
-[Run your first experiment](#quickstart) · [Benchmark details and historical records](docs/optimization-results.md) · [vLLM-Omni model optimization roadmap](https://github.com/InferMatrixLab/InferRSI/issues/416)
+[Run your first experiment](#quickstart) · [Benchmark details and historical records](docs/benchmarks/optimization-results.md) · [vLLM-Omni model optimization roadmap](https://github.com/InferMatrixLab/InferRSI/issues/416)
@@ -165,8 +165,8 @@ request per engine and measure audio frames per second and median time to first
Browse the [documentation index](docs/README.md) for setup, workflows, benchmarks,
knowledge, architecture and field notes.
-- [CLI and Python operations](docs/operations.md) · [YAML task file](docs/task-input.md) · [Result delivery](docs/result-delivery.md)
-- [Skill library](src/inferrsi/knowledge/data/skill_library/README.md) · [CANNbot](docs/external-channels.md#setting-one-up) · [MindIE](docs/codex-plugin.md#enable-and-revoke)
+- [CLI and Python operations](docs/operations.md) · [YAML task file](docs/guides/task-input.md) · [Result delivery](docs/guides/result-delivery.md)
+- [Skill library](src/inferrsi/knowledge/data/skill_library/README.md) · [CANNbot](docs/guides/knowledge/external-channels.md#setting-one-up) · [MindIE](docs/guides/plugins/codex-plugin.md#enable-and-revoke)
- [Architecture](docs/architecture.md) · [Standalone engine template](docs/template/README.md) · [Changelog](CHANGELOG.md)
diff --git a/docs/README.md b/docs/README.md
index 17b095180..a96ca876a 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,61 +1,10 @@
# InferRSI documentation
-Start with [Quickstart](quickstart.md) for a first run or the
-[operation guide](operations.md) to find a CLI command or Python entry point.
-
-## Install and connect an agent
-
-- [Codex](codex-plugin.md), [DeepSeek Harness](dsh-plugin.md) and [WorkSwarm](workswarm-plugin.md) plugin guides
-- [Release channels and installation](releases.md), [release notes](release-notes/) and [changelog](../CHANGELOG.md)
-
-## Run an optimization and review its results
-
-- [YAML task input](task-input.md) and the [shared RSI optimization workflow](optimization-workflow-unification.md)
-- [Ordinary project campaigns with service reuse](service-reuse-campaigns.md) and [packaged task optimization](optimization-benchmarks.md)
-- [Fresh native Agent sessions](native-agent-sessions.md) and [offline goal checkpoints](goal-checkpoints.md)
-- [Dashboard](dashboard.md), [experiment curves and evidence events](dashboard/dashboard-experiments.md) and [external optimization records](dashboard/dashboard-external-records.md)
-- Dashboard examples for [profile review](examples/dashboard-profile-review.html) and [experiment curves](examples/dashboard-experiments.html)
-- [Result delivery](result-delivery.md), [campaign summary charts](campaign-summary-chart.md) and [evidence archiving](evidence-archiving.md)
-
-## Benchmarks and results
-
-- [Engineering task library](benchmarks/engineering-benchmarks.md) and [benchmark metrics](benchmarks/benchmark-metrics.md)
-- Task protocols for [MoE forward](benchmarks/moe-forward-benchmark.md), [Qwen-Image denoising](benchmarks/qwen21-denoise-benchmark.md) and [Qwen3-TTS](benchmarks/tts-benchmark.md)
-- [Measure the effect of knowledge on optimization](benchmark-comparison.md) and [browse recorded optimization results](optimization-results.md)
-- [Offline Flare evidence adapter](flare-qualification.md)
-
-## Find, use and contribute knowledge
-
-- [Knowledge layout and retrieval](knowledge-layout.md), [skill library](../src/inferrsi/knowledge/data/skill_library/README.md) and [knowledge base contract](knowledge-base.md)
-- [Normalized reads and Collect](knowledge-operations.md), [retrieval traces](knowledge-retrieval-trace.md) and [external channels](external-channels.md)
-- [Contribution workflow](knowledge-contribution-workflow.md), [admission policy](knowledge-model-policy.md) and [authorized candidate store](knowledge-store.md)
-- [Reference Matrix](reference-matrix.md), [SearchSpace Matrix](searchspace-matrix.md) and [generated skill coverage](skill-coverage.md)
-
-## Evaluate skills and harness changes
-
-- [Bounded evaluation](skill-evaluation.md), [configured comparisons](skill-eval-comparison.md), [local engineering evidence](local-skill-evaluation.md) and [PR evaluation and feedback](skill-eval-pr.md)
-- Spend and admission controls for [the cumulative budget](skill-evaluation/skill-eval-budget-core.md), [daily admission](skill-evaluation/skill-eval-daily-admission.md), [full-context runs](skill-evaluation/skill-eval-full-context.md), [Yibuapi preflight](skill-evaluation/skill-eval-yibuapi-preflight.md) and [incident quarantine](skill-evaluation/skill-eval-quarantine.md)
-- Cloud artifact workflow for [generation only](skill-evaluation/skill-eval-generation-only.md), [reviewer-host qualification](skill-evaluation/skill-eval-reviewer-qualification.md) and [isolated replay](skill-evaluation/skill-eval-cloud-replay.md)
-- [Offline harness improvement MVP](harness-improvement.md) and its [example summary](examples/harness-improvement/summary.json)
-
-## Architecture and development
-
-- [Module boundaries and architecture anchors](architecture.md), [module layout and migration](module-layout.md) and [versioned contracts, schemas and fixtures](contracts/)
-- Module READMEs for [Apps](../src/inferrsi/apps/README.md), [Benchmark](../src/inferrsi/benchmark/README.md), [Harness](../src/inferrsi/harness/README.md) and [Knowledge](../src/inferrsi/knowledge/README.md)
-- [Where module READMEs and designs belong](module-layout.md#module-documentation)
-- [Saved-request evaluation CLI](apps-evaluate-cli.md) and [Apps output publication](apps-output.md)
-- [Contributor guide](contributing.md), [human–agent collaboration](agent-collaboration.md) and [privacy and security](privacy-security.md)
-- [Standalone engine template](template/)
-- Migration inventories for [Apps modules](apps-module-migrations.json), [legacy knowledge](legacy-knowledge-manifest.json) and [skills](skill-layout-migration.csv)
-
-## Field notes and historical records
-
-- [Apple silicon playbook](field-notes/apple-silicon-playbook.md), [h3-metal lessons](field-notes/h3-metal-apple-silicon-lessons.md) and [exploratory Inkling 2 Mini runs](field-notes/inkling2-mini-apple-silicon.md)
-- [Exploratory scheduling and KV lessons](field-notes/scheduling-rsi-lessons.md) and [retired synthetic CPU KV qualification](kv-reclamation-qualification.md)
-- Qwen-Image-2.1-Turbo walkthroughs on [Ascend 910B1](qwen-image-2.1-turbo-ascend.md) and [B300](qwen-image-2.1-turbo-b300.md)
-- [Drama-3 on Ascend 910B1](drama3-ascend-910b1.md) and [NPU readiness notes](drama3-npu-readiness.md)
-- Skill evaluation records for [the historical generation pilot](skill-evaluation/skill-eval-historical-job.md) and [the Issue #215 deployment](skill-evaluation/skill-eval-deployment-215.md)
-- [Source audits and reproductions](reviews/) and [campaign evidence](../evidence/)
-
-Add general entry points to this index. Keep task-specific guides with their
-topic and link to the owning procedure for shared commands or policy.
+Open the entry for the task at hand and follow its links when you need a procedure or evidence.
+
+- **First run or installation.** Start with the [quickstart](quickstart.md). Choose a [Codex](guides/plugins/codex-plugin.md), [DeepSeek Harness](guides/plugins/dsh-plugin.md) or [WorkSwarm](guides/plugins/workswarm-plugin.md) plugin. See [releases](release-notes/) for versions and channels.
+- **Run an optimization.** The [operation guide](operations.md) maps commands to Python entry points. Use the [task input guide](guides/task-input.md) to define a workload, the [workflow](guides/optimization-workflow-unification.md) to run it and the [dashboard](dashboard.md) to inspect results. [Task guides](guides/)
+- **Choose a benchmark or check a claim.** Start with [engineering benchmarks](benchmarks/engineering-benchmarks.md) or [recorded results](benchmarks/optimization-results.md). For skill changes, use [skill evaluation](skill-evaluation/) or the [PR evidence handoff](skill-eval-pr.md).
+- **Find or contribute knowledge.** Start with [Find and Collect](knowledge-operations.md) or the [contribution guide](guides/knowledge/knowledge-contribution-workflow.md). The [Knowledge module](../src/inferrsi/knowledge/README.md) links to the library and its contracts.
+- **Change the repository.** Read the [contributor guide](contributing.md) and [collaboration rules](agent-collaboration.md). [Architecture](architecture.md) records shared boundaries. [Module layout](module-layout.md#module-documentation) links to the four module READMEs. [Versioned contracts](contracts/) and the [engine template](template/) support implementation.
+- **Trace a result.** [Field notes](field-notes/) describe specific workloads. [Source audits](reviews/) and [campaign evidence](../evidence/) retain their scope and provenance. Check the [privacy and security guide](privacy-security.md) before sharing artifacts.
diff --git a/docs/apps-module-migrations.json b/docs/apps-module-migrations.json
index 00279e9c8..31d58fbb2 100644
--- a/docs/apps-module-migrations.json
+++ b/docs/apps-module-migrations.json
@@ -16,7 +16,7 @@
"publish_result"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -58,7 +58,7 @@
"AssessmentArtifacts"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -94,7 +94,7 @@
"validate_result"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -119,7 +119,7 @@
"ensure_evidence_layout"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/contracts/current-design.md",
"docs/module-layout.md",
@@ -145,7 +145,7 @@
"to_evidence"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -173,7 +173,7 @@
"ContextProvider"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -191,7 +191,7 @@
"CandidateProvider"
],
"consumers": [
- "docs/apps-output.md",
+ "docs/guides/apps-output.md",
"docs/architecture.md",
"docs/module-layout.md",
"docs/operations.md",
@@ -212,10 +212,10 @@
],
"consumers": [
"docs/architecture.md",
- "docs/knowledge-retrieval-trace.md",
+ "docs/guides/knowledge/knowledge-retrieval-trace.md",
"docs/module-layout.md",
"docs/operations.md",
- "docs/optimization-workflow-unification.md",
+ "docs/guides/optimization-workflow-unification.md",
"src/inferrsi/apps/cli/__init__.py",
"src/inferrsi/apps/views/capture_delivery.py",
"src/inferrsi/apps/views/optimization_story.py",
@@ -266,7 +266,7 @@
],
"consumers": [
"docs/contracts/function-owners.md",
- "docs/harness-improvement.md",
+ "docs/guides/harness-improvement.md",
"docs/module-layout.md",
"src/inferrsi/apps/workflows/search_benchmarks.py",
"tests/check_installed.py",
@@ -286,7 +286,7 @@
"consumers": [
"docs/contracts/function-owners.md",
"docs/module-layout.md",
- "docs/skill-evaluation.md",
+ "docs/skill-evaluation/README.md",
"tests/check_installed.py",
"tests/apps/test_anthropic_agent.py",
"tests/apps/test_apps_module_migrations.py",
@@ -307,7 +307,7 @@
],
"consumers": [
"docs/contracts/function-owners.md",
- "docs/local-skill-evaluation.md",
+ "docs/skill-evaluation/local-skill-evaluation.md",
"docs/module-layout.md",
"src/inferrsi/apps/workflows/skill_evaluation.py",
"tests/check_installed.py",
@@ -423,7 +423,7 @@
"exports": [],
"consumers": [
"docs/architecture.md",
- "docs/external-channels.md",
+ "docs/guides/knowledge/external-channels.md",
"docs/module-layout.md",
"tests/check_installed.py",
"tests/apps/test_apps_module_migrations.py"
diff --git a/docs/architecture.md b/docs/architecture.md
index d0e5fe69d..d28afa54d 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -10,7 +10,7 @@ each package. The task library owns its `index.json` registration. The existing
and `apps/workflows/benchmark_operations.py` provide application assembly and launch.
Each task retains its own protocol and task-specific code.
-The [current-Agent optimization session](optimization-benchmarks.md) assembles
+The [current-Agent optimization session](benchmarks/optimization-benchmarks.md) assembles
the first complete handoff for the Qwen task. `harness/optimization.py` controls
budget, attempts, feedback records, selection and independent final execution.
`harness/task_protocol.py` freezes a supplied resource directory and loads its
@@ -20,7 +20,7 @@ access and the capture callback from `apps/workflows/campaign.py`.
The external Agent chooses and edits candidates between round submissions.
The same controller serves ordinary projects through `campaign start/round/final`
and packaged tasks through `benchmarks session`. The
-[shared workflow and sequence diagram](optimization-workflow-unification.md)
+[shared workflow and sequence diagram](guides/optimization-workflow-unification.md)
describe multi-file candidates, explicit acceptance inputs, stop rules and
dashboard projections from one control record. `harness/project.py` freezes
caller-provided checks and assesses their retained outputs. Ordinary optimization
@@ -28,7 +28,7 @@ does not import Benchmark. Benchmark supplies task definitions and specialized
rules, while Harness manages their execution and the complete optimization lifecycle.
Neither infers quality criteria from a natural-language goal.
Ordinary projects default to the current Agent conversation.
-The optional [service-reuse protocol](service-reuse-campaigns.md) adds project
+The optional [service-reuse protocol](guides/service-reuse-campaigns.md) adds project
assessment and foreground service ownership within this same controller. Its
protocol and result rules live in `harness.project_service`, with process
lifetime managed by `local_process`.
@@ -38,7 +38,7 @@ Its work controller uses shared RunStore transactions and the existing local
process executor. Apps supplies Engine/Skill grading; the support matrix identifies
remaining production accounting and pilot evidence. Serial session commands keep
their existing controller and behavior.
-The [native host handoff](native-agent-sessions.md) lets the initiating Agent
+The [native host handoff](guides/native-agent-sessions.md) lets the initiating Agent
resolve the task request before any campaign exists, use its host's new-session
tool and retain the native identity and returned artifacts. The child owns the
complete start/knowledge/round/final lifecycle; the parent observes and collects. This path records the handoff; it
@@ -167,9 +167,11 @@ The current WIP develops three connected objectives:
[Reference Matrix](reference-matrix.md),
[SearchSpace Matrix](searchspace-matrix.md) and the generated
[Skill Coverage View](skill-coverage.md), and explicit read-only access.
- The two matrices describe evidence and coverage; they do not drive an
- automatic router or execution loop. The coverage view reads them from the
- skill outward and owns no fact of its own.
+ The Reference Matrix records inspected sources. The SearchSpace Matrix also
+ supplies the verified resource/stage pairs used when a caller selects a
+ [coordinate filter](knowledge-operations.md#ranked-discovery-and-budgeted-context)
+ for Find. The coverage view projects the same sources by skill. Execution
+ requires a separate request.
This framing is presentation and delivery traceability, not a third primary
matrix. Dot owns source extraction, the owner approves sources and reviews
@@ -232,7 +234,7 @@ input stream.
### Offline harness-improvement lane
-The [single-step offline controller](harness-improvement.md) adds a bounded policy
+The [single-step offline controller](guides/harness-improvement.md) adds a bounded policy
above the existing Skill Eval comparator. Supplied declarative INV/DOM edits are
materialized as immutable Git snapshots. Development grades select a successor;
it must run again before freezing for one independent held-out accept/reject gate.
@@ -408,7 +410,7 @@ operations or the control CLI to Linux.
The [knowledge library](../src/inferrsi/knowledge/data/skill_library/README.md)
owns packaged procedures, engineering records and their provenance. Its
-[layout and retrieval guide](knowledge-layout.md) maps the registered owners,
+[layout and retrieval guide](guides/knowledge/knowledge-layout.md) maps the registered owners,
search configuration and generated build inputs. The
[knowledge base contract](knowledge-base.md) defines applicability, source
attribution and verification. Runtime reads preserve the source revision and
diff --git a/docs/benchmark-comparison.md b/docs/benchmarks/benchmark-comparison.md
similarity index 98%
rename from docs/benchmark-comparison.md
rename to docs/benchmarks/benchmark-comparison.md
index 728c93f64..5691bb084 100644
--- a/docs/benchmark-comparison.md
+++ b/docs/benchmarks/benchmark-comparison.md
@@ -56,7 +56,7 @@ of actual host settings. Credentials never belong in this configuration.
The command manages experiment records. The initiating Agent calls its actual
host tools for fresh-session creation and observation, following `next_action`.
-This is the same native handoff as [Agent sessions](native-agent-sessions.md).
+This is the same native handoff as [Agent sessions](../guides/native-agent-sessions.md).
The CLI neither starts a hidden Agent CLI nor invents a conversation identity.
1. Prepare: `benchmarks compare --config --output `.
@@ -183,7 +183,7 @@ as knowledge used by every round.
## Read the report
-The report leads with [Benchmark metrics](benchmarks/benchmark-metrics.md): each arm's
+The report leads with [Benchmark metrics](benchmark-metrics.md): each arm's
independent final speedup, accepted/assessed steps and token coverage, followed
by paired performance benefit and token consumption ratios. This versioned
summary preserves the existing comparison conclusion and old factor directions.
diff --git a/docs/benchmarks/engineering-benchmarks.md b/docs/benchmarks/engineering-benchmarks.md
index 26a0756e2..5419043c0 100644
--- a/docs/benchmarks/engineering-benchmarks.md
+++ b/docs/benchmarks/engineering-benchmarks.md
@@ -6,9 +6,10 @@ protocol and license. All packages live directly under
`src/inferrsi/benchmark/tasks/`.
For a complete optimization benchmark driven by the current Agent, use the
-[iterative session workflow](../optimization-benchmarks.md). Its first task is
-`qwen21-denoise-npu`. It binds knowledge delivery, candidate snapshots, round
-feedback, selection, independent final evaluation and cumulative usage exports.
+[iterative session workflow](optimization-benchmarks.md) with
+`qwen21-denoise-npu` or `moe-forward-npu`. It binds knowledge delivery, candidate
+snapshots, round feedback, selection, independent final evaluation and cumulative
+usage exports.
The entries in the table below are the individual task measurement operations.
| Package | Optimization target | Execution entry |
@@ -36,8 +37,9 @@ file, so listing works without importing task code or probing a device.
`show` returns the task manifest and
the package's files without interpreting workload-specific fields.
`run ...` executes that package's `benchmark.py` with the remaining
-arguments unchanged. Each package owns its entry, measurement and assessment code. Review the implementation and
-prepare the required runtime and caller-managed NPU allocation before execution.
+arguments unchanged. Each package owns its entry, measurement and assessment
+code. Review the implementation and prepare the required runtime and
+caller-managed NPU allocation before execution.
## Run a candidate
@@ -90,17 +92,15 @@ policy. The task owns input semantics, measurement and correctness requirements.
The application supplies Harness execution and retained records to the task.
Profiling is available as a separate diagnostic when useful.
-`benchmarks session` supplies the executable current-Agent handoff for the Qwen
-task. It enforces the declared number of rounds and an independent final. It
-retains negative attempts and supports collection of a completed attempt after
-an interrupted coordinator. Automatic launch of a separate Agent remains a
-future application adapter.
-
-The #362 target architecture assigns task preparation, worker measurement
-protocols and assessment to Benchmark. Apps assembles these with Harness
-execution and Knowledge access. Task-specific Python currently ships as
-resources under `benchmark/tasks`, with discovery under `benchmark/registry.py`.
-The current flat application adapter and CLI assemble execution until their
-#362 migration. Software tests and installed-wheel
-resource checks establish their stated scope. Each task documents the device
-and quality qualification still required for its current entry point.
+`benchmarks session` supplies the executable current-Agent handoff for both
+iterative tasks. It enforces the declared number of rounds and an independent
+final. It retains negative attempts and lets the caller collect a completed
+attempt after an interrupted coordinator. Automatic launch of a separate Agent
+remains a future application adapter.
+
+Benchmark owns task preparation, worker measurement protocols and assessment.
+The task packages ship as resources under `benchmark/tasks`, and
+`benchmark/registry.py` handles discovery. Apps dispatches the selected task from
+`apps/cli/` to `apps/workflows/benchmark_operations.py`, which launches it through
+Harness. Each task documents the device and quality qualification for its entry
+point.
diff --git a/docs/flare-qualification.md b/docs/benchmarks/flare-qualification.md
similarity index 100%
rename from docs/flare-qualification.md
rename to docs/benchmarks/flare-qualification.md
diff --git a/docs/benchmarks/moe-forward-benchmark.md b/docs/benchmarks/moe-forward-benchmark.md
index bd0bb7bb8..6e2e8a574 100644
--- a/docs/benchmarks/moe-forward-benchmark.md
+++ b/docs/benchmarks/moe-forward-benchmark.md
@@ -128,8 +128,8 @@ Harness 留存每轮源码、假设、实际评测、历史最佳选择和独立
内部或外部执行中断、缺少 rank 证据、清理未确认以及基线失败均阻断后续搜索。
恢复通过 `session recover` 回收原有尝试,不重新执行同一候选。
-启动新会话与回收使用通用 [Agent 交接](../native-agent-sessions.md);
-[共享迭代流程](../optimization-benchmarks.md) 说明预算、用量导入和标准交付。
+启动新会话与回收使用通用 [Agent 交接](../guides/native-agent-sessions.md);
+[共享迭代流程](optimization-benchmarks.md) 说明预算、用量导入和标准交付。
单独的 `benchmarks run moe-forward-npu` 仍只评测一个候选。完整过程的 token 需从
真实宿主 usage 导出;本题 `elapsed_seconds` 仅是评测墙钟,不是 Agent 搜索消耗。
diff --git a/docs/optimization-benchmarks.md b/docs/benchmarks/optimization-benchmarks.md
similarity index 96%
rename from docs/optimization-benchmarks.md
rename to docs/benchmarks/optimization-benchmarks.md
index b44475eb7..3c205a65b 100644
--- a/docs/optimization-benchmarks.md
+++ b/docs/benchmarks/optimization-benchmarks.md
@@ -1,10 +1,10 @@
# Optimize a task through RSI in its execution Agent session
-The final report starts with [Benchmark metrics](benchmarks/benchmark-metrics.md): final
+The final report starts with [Benchmark metrics](benchmark-metrics.md): final
speedup, accepted/assessed optimization steps and token consumption/coverage.
Comparison-only ratios appear in paired reports rather than single-run reports.
-The CLI `final` operation automatically publishes a [result delivery](result-delivery.md)
+The CLI `final` operation automatically publishes a [result delivery](../guides/result-delivery.md)
under `delivery//`: lead the response with the conclusion and `report.md`,
then `report.html` (**Open in a browser**), `campaign-result.json`, and retained code.
Execution and export outcomes are separate. Use `inferrsi export --input
@@ -18,7 +18,7 @@ and independently retests it before emitting the final optimization result.
This path and ordinary `campaign start/round/final` now use the same Harness
controller and dashboard read model. See the
-[shared workflow and sequence diagram](optimization-workflow-unification.md).
+[shared workflow and sequence diagram](../guides/optimization-workflow-unification.md).
Ordinary projects default to the current conversation; a benchmark task defaults
to a fresh conversation on the same host. The initiator resolves the task and
sends a self-contained request through the generic native handoff. The execution
@@ -87,7 +87,7 @@ and access to material outside this session require their own observation.
Add `--cannbot-platform ` at `benchmarks session start` or AB/BA
`campaign start` to freeze the external source and an explicit Ascend platform.
Start a benchmark session from the Git project with the
-[CANNBot grant](external-channels.md). An AB/BA campaign uses the Git project of
+[CANNBot grant](../guides/knowledge/external-channels.md). An AB/BA campaign uses the Git project of
its `--repo` target. The session records the checkout identity, including the
Git administration directory of linked worktrees. Each search and read checks
that identity and the current grant, even when invoked from a different
@@ -123,7 +123,7 @@ Pass the read's `reference.path` for an external card page, or
A local capture path alone cites the whole delivery. You can cite an earlier
delivery from the same session. Search result paths are ineligible for citation.
-Open [Dashboard](dashboard.md) → **Round decisions** to see the queries and
+Open [Dashboard](../dashboard.md) → **Round decisions** to see the queries and
channel states before submitting a candidate. Completed attempts show the
agent's explicit citations alongside the candidate ID, verdict and measured
score. A search hit or read receipt alone does not record a citation.
@@ -234,7 +234,7 @@ same Harness directly, without importing Benchmark. The current Agent drives
the change and feedback cycle. A complete result requires the prescribed rounds
and final.
-The [native Agent handoff](native-agent-sessions.md) prepares the task request
+The [native Agent handoff](../guides/native-agent-sessions.md) prepares the task request
before an optimization campaign exists. Harness records one creation attempt
and the native identity; the initiator calls the actual host tool, observes it,
and retains delivered artifacts. The child creates the campaign and completes
diff --git a/docs/optimization-results.md b/docs/benchmarks/optimization-results.md
similarity index 96%
rename from docs/optimization-results.md
rename to docs/benchmarks/optimization-results.md
index 0a30ce97d..4e6d225d0 100644
--- a/docs/optimization-results.md
+++ b/docs/benchmarks/optimization-results.md
@@ -1,6 +1,6 @@
# Optimization results
-[Back to InferRSI](../README.md#selected-results) · [vLLM-Omni model optimization roadmap](https://github.com/InferMatrixLab/InferRSI/issues/416)
+[Back to InferRSI](../../README.md#selected-results) · [vLLM-Omni model optimization roadmap](https://github.com/InferMatrixLab/InferRSI/issues/416)
The README highlights measured improvements of at least 20%. This page keeps the
full curated record, including the campaigns below that bar. Hardware, workloads
@@ -50,9 +50,9 @@ are reported directly by upstream contributors, with validation scoped to their
| Model | Hardware | Optimization approach | Measured gains | Validation and limits | Evidence | vLLM-Omni PR |
| --- | --- | --- | --- | --- | --- | --- |
-| **Qwen-Image-2.1-Turbo** | 4× B300 | - Text-conditioning reuse
- BF16 operator fusion
- Symmetric-memory Ulysses with batched QKV exchange
| **384.16 → 266.60 ms (−30.60%)**
Warm HTTP end-to-end latency, repeated prompts | Historical InferRSI campaign. Latencies are medians of five trial means from alternating AB/BA groups. All 44 RGBA images were pixel-identical. | [Campaign #3](https://github.com/InferMatrixLab/InferRSI/issues/3) · [Pinned results](qwen-image-2.1-turbo-b300.md) | [#8739](https://github.com/vllm-project/vllm-omni/pull/8739) (merged) |
-| **Qwen-Image-2.1-Turbo** | 1× Ascend 910B1 | - Conditioning cache for repeated prompts
- Shared modulation once per denoising step
- Native interleaved NPU RoPE with frequency-table reuse
| **2,921.23 → 2,272.83 ms (−22.20%)** offline generation latency
Warm repeated prompts | Upstream parent-to-merge reference. InferRSI imported the techniques as knowledge. 18/18 RGBA images were pixel-identical. The 30% target was unmet. Both arms aborted during teardown, leaving lifecycle `INCONCLUSIVE`. | [Final-merge measurements](https://github.com/vllm-project/vllm-omni/pull/8729#:~:text=Final%2Dmerge%20performance%20and%20image%20comparison) · [Earlier Ascend cohorts](qwen-image-2.1-turbo-ascend.md) | [#8729](https://github.com/vllm-project/vllm-omni/pull/8729) (merged) |
-| **MiniMax-H3 Ref2VA** | 8× Ascend 910B1 | - Lossy Cache-DiT profile tuning
| **407.27 → 108.12 s (−73.45%)**
5 s video, HTTP end-to-end vs. dense inference | All 14 frozen quality comparisons passed. | [Campaign #293](https://github.com/InferMatrixLab/InferRSI/issues/293) · [Pinned results](../evidence/h3-ref2va-ascend-293/results/final-5s/README.md) | [#9698](https://github.com/vllm-project/vllm-omni/pull/9698) (draft) |
+| **Qwen-Image-2.1-Turbo** | 4× B300 | - Text-conditioning reuse
- BF16 operator fusion
- Symmetric-memory Ulysses with batched QKV exchange
| **384.16 → 266.60 ms (−30.60%)**
Warm HTTP end-to-end latency, repeated prompts | Historical InferRSI campaign. Latencies are medians of five trial means from alternating AB/BA groups. All 44 RGBA images were pixel-identical. | [Campaign #3](https://github.com/InferMatrixLab/InferRSI/issues/3) · [Pinned results](../field-notes/qwen-image-2.1-turbo-b300.md) | [#8739](https://github.com/vllm-project/vllm-omni/pull/8739) (merged) |
+| **Qwen-Image-2.1-Turbo** | 1× Ascend 910B1 | - Conditioning cache for repeated prompts
- Shared modulation once per denoising step
- Native interleaved NPU RoPE with frequency-table reuse
| **2,921.23 → 2,272.83 ms (−22.20%)** offline generation latency
Warm repeated prompts | Upstream parent-to-merge reference. InferRSI imported the techniques as knowledge. 18/18 RGBA images were pixel-identical. The 30% target was unmet. Both arms aborted during teardown, leaving lifecycle `INCONCLUSIVE`. | [Final-merge measurements](https://github.com/vllm-project/vllm-omni/pull/8729#:~:text=Final%2Dmerge%20performance%20and%20image%20comparison) · [Earlier Ascend cohorts](../field-notes/qwen-image-2.1-turbo-ascend.md) | [#8729](https://github.com/vllm-project/vllm-omni/pull/8729) (merged) |
+| **MiniMax-H3 Ref2VA** | 8× Ascend 910B1 | - Lossy Cache-DiT profile tuning
| **407.27 → 108.12 s (−73.45%)**
5 s video, HTTP end-to-end vs. dense inference | All 14 frozen quality comparisons passed. | [Campaign #293](https://github.com/InferMatrixLab/InferRSI/issues/293) · [Pinned results](../../evidence/h3-ref2va-ascend-293/results/final-5s/README.md) | [#9698](https://github.com/vllm-project/vllm-omni/pull/9698) (draft) |
| **MiniMax-H3 Ref2VA** | 4× Ascend 950PR (~86 GB per card) | - USP4 + MXFP8
- RainFusion + Cache-DiT
| **701.95 → 166.17 s (−76.3%, 4.22×)**
5 s clip denoising time vs. the in-run dense control | Five retained historical A/B slots. Performance and quality qualification remained inconclusive. For quality, the recipe reports sharpness, flicker, and luma ratios of 0.924 / 0.950 / 0.984 against a dense USP4 + MXFP8 reference. | [Archive record #520](https://github.com/InferMatrixLab/InferRSI/issues/520) · [Measured repeats](https://github.com/vllm-project/vllm-omni/pull/9955#:~:text=in%2Drun%20dense%20median) | [#9955](https://github.com/vllm-project/vllm-omni/pull/9955) (merged recipe) |
| **MiniMax-H3-Image** | 4× Ascend 910B1 | - Opt-in VAE tile graphs
- Approximate encoder/decoder tile batching
| **16.89 → 10.82 s (−35.9%)** · 4736×3552 generation
**4.18 → 2.67 s (−36.1%)** · 1024×1024 generation | Single-launch HTTP medians vs. the same-layout SP4 control. All 30 numerical image screens passed across generation and editing. Latency targets were unmet and final qualification remains `INCONCLUSIVE`. | [Campaign #390](https://github.com/InferMatrixLab/InferRSI/issues/390) · [Evidence PR #394](https://github.com/InferMatrixLab/InferRSI/pull/394) | [#10184](https://github.com/vllm-project/vllm-omni/pull/10184) (merged) |
| **MiniMax-H3-Image** | 2× RTX 3090 | - Rank-local layerwise offload
- Selected DiT weights kept resident
- AdaLN caching
- Request-local text refinement reuse
| **36.62 → 14.59 s (−60.16%)**
Warm mean HTTP delivery latency | One upstream A/B of complete deployment profiles. All nine image pairs had identical decoded RGB pixels, including warmups. Repeated qualification remains incomplete. | [Paired deployment benchmark](https://github.com/vllm-project/vllm-omni/pull/10243#:~:text=One%20paired%20deployment%20comparison) | [#10243](https://github.com/vllm-project/vllm-omni/pull/10243) (open) |
@@ -70,7 +70,7 @@ with pixel-identical RGBA. Adding the opt-in VAE fastpath reached **2425.5 ms
covers three requests after two warmups. InferRSI verification covered the
import, so acceptance remains `INCONCLUSIVE`. The 30% target was unmet. The B300
campaign and this cohort used different hardware and measurement protocols.
-[Earlier Ascend report](qwen-image-2.1-turbo-ascend.md)
+[Earlier Ascend report](../field-notes/qwen-image-2.1-turbo-ascend.md)
### Historical campaigns below the 20% highlight bar
diff --git a/docs/benchmarks/tts-benchmark.md b/docs/benchmarks/tts-benchmark.md
index ae00b7e2b..0ff848ce9 100644
--- a/docs/benchmarks/tts-benchmark.md
+++ b/docs/benchmarks/tts-benchmark.md
@@ -38,9 +38,10 @@ SHA256;启动器阻止导入 vLLM、vLLM-Omni、SGLang 和历史独立引擎
→ 独立 ASR/音色评分 → assess 核对 → 反馈下一轮 → 独立 final
```
-这里的 prepare、serve、collect、assess 由题包内 benchmark.py 实现(#412 R3 把原来的 evaluation.py 并入它;此前准备好的 prepared 目录因冻结摘要不符会被拒绝,需要重新 prepare)。RSI 的实验调用方
-负责触发它们;描述任务的 Markdown 不会自动启动评测。task、运行入口和判据对应
-#362 的 Benchmark 职责,当前沿 scenario 入口提供,后续公共契约按 S1 对接。
+题包内的 `benchmark.py` 实现 `prepare`、`serve`、`collect` 和 `assess`。
+Apps 的 `inferrsi benchmarks run qwen3-tts-npu` 调用这些入口,实验调用方负责串联基线、
+候选和独立评分。#412 R3 将原来的 `evaluation.py` 并入 `benchmark.py`。合并前冻结的
+prepared 目录会因摘要不符被拒绝,需重新执行 `prepare`。
## 冻结、启动与采集
diff --git a/docs/contracts/README.md b/docs/contracts/README.md
index f1307561a..41e853e32 100644
--- a/docs/contracts/README.md
+++ b/docs/contracts/README.md
@@ -4,12 +4,15 @@ This directory is the P0a contract root: human-readable design, JSON Schema Draf
## Status and dependencies
-Read this section once. Later files keep only local interface errors and acceptance boundaries.
+The points below describe the original P0a review. The
+[current architecture](../architecture.md) and
+[saved-request CLI guide](../guides/apps-evaluate-cli.md) describe the
+implemented entry points. Runtime acceptance follows the governing issues.
-- This pull request is documentation, schema, and fixtures only. It does not move `src/`, change the current hard gates, or implement P0b, K01, H01, H02, CLI, Apps assembly, or worker startup.
+- The original P0a pull request contained documentation, schema, and fixtures only. It did not move `src/`, change the current hard gates, or implement P0b, K01, H01, H02, CLI, Apps assembly, or worker startup.
- These documents are specifications, not executed runtime tests. Schema validation is not acceptance of T01–T40.
-- Merging this PR is not a check of the #387 acceptance boxes, and it is not acceptance of P0b or K01. P0b still requires a formal architecture review before K01. H01 creates a new local SQLite RunStore and does not migrate `MemoryArchive`. Completing the Apps assembly is not a prerequisite.
-- This PR does not add `tests/` or `.github/` consistency guards. Schema self-check, the 106-definition count, the DTO field index, historic MANIFEST hashes (with the `fixtures/` → `fixtures/t108-v4/` mapping), and the current `execution-spec-d023.json` digest are review-time file checks. Whether a later gate-policy PR includes CI guards is a review item for that PR.
+- Issue #387 acceptance and the P0b and K01 approvals each require their own review. P0b still requires a formal architecture review before K01. H01 creates a new local SQLite RunStore and does not migrate `MemoryArchive`. Completing the Apps assembly is not a prerequisite.
+- The original P0a pull request added no `tests/` or `.github/` consistency guards. Schema self-check, the 106-definition count, the DTO field index, historic MANIFEST hashes (with the `fixtures/` → `fixtures/t108-v4/` mapping), and the current `execution-spec-d023.json` digest are review-time file checks. Whether a later gate-policy PR includes CI guards is a review item for that PR.
- Chinese text, U+007F, U+2028, U+2029, decomposed characters, and non-BMP emoji in `fixtures/t108-v4/` are frozen test-vector bytes, not documentation to translate or clean. Schema filenames, fixture data filenames, and historic golden bytes stay as they are.
## Normative sources (conflict order)
diff --git a/docs/contracts/d008-wave2-ownership-decision.md b/docs/contracts/d008-wave2-ownership-decision.md
index bc6036cba..1278df5fc 100644
--- a/docs/contracts/d008-wave2-ownership-decision.md
+++ b/docs/contracts/d008-wave2-ownership-decision.md
@@ -14,13 +14,19 @@ Architecture adoption is **not** reviewer `APPROVE`, implementation acceptance,
**Adopted:** `collect_samples` belongs to **Benchmark sampling**. Benchmark owns sampling order, timing records and artifact hashes. Request transport remains the caller-injected `request(item, path)` callback; it does not become a Harness or model dependency of Benchmark.
-Issue #414 explicitly assigns this sampling to Benchmark. The implementation is `benchmark/sampling.py`; the artifact hasher equivalence is pinned by `test_sampling_sha256_matches_the_infra_hasher`. Retaining existing protocol output does not confer ownership of UI presentation or of a caller-owned record's lifecycle.
+Issue #414 explicitly assigns this sampling to Benchmark. The implementation is `benchmark/sampling.py`. The current
+[legacy-run tests](../../tests/apps/test_legacy_run_split.py) pin artifact
+hasher equivalence in `test_sampling_sha256_matches_the_apps_hasher`. Retaining existing protocol output does not confer ownership of UI presentation or of a caller-owned record's lifecycle.
## Snapshot port
**Adopted:** **Harness** owns the required keyword-only `snapshot(repo, exclude) -> dict` port contract; **Apps legacy** owns the binding; **infra/targets** owns the Git identity implementation. Harness has **no concrete default** for this port and does not hold a copy of the target implementation.
-This preserves the Issue #414 split: execution facts in H, composition in Apps, implementation behind an injected port. It does not restore an H-to-infra edge. Existing compatibility disclosure for out-of-tree direct H callers remains applicable; this record does not erase it.
+The Git identity implementation now lives in
+[Apps host targets](../../src/inferrsi/apps/host/targets/git.py). Issue #414
+assigns execution facts to H and composition to Apps. Harness depends on the
+injected port. Existing compatibility disclosure for out-of-tree direct H
+callers remains applicable.
## Dashboard workflow
diff --git a/docs/contracts/harness-evaluation-replay.md b/docs/contracts/harness-evaluation-replay.md
index ba64bad80..d6ac213d2 100644
--- a/docs/contracts/harness-evaluation-replay.md
+++ b/docs/contracts/harness-evaluation-replay.md
@@ -55,7 +55,9 @@ caller cancellation with a descendant, fixed cleanup facts, commit failure after
a real start, cross-process replay and registration races. Execution facts do
not provide a complete Benchmark F/C/M proof or a service-gain claim.
-The launch-boundary prerequisite still has its own delivery and review. The
-deadline/step-timeout check during log setup must be integrated and verified
-before whole CPU acceptance of this slice. The replay implementation does not
-duplicate that supervisor change or close the governing Harness/Apps Issues.
+The [local process supervisor](../../src/inferrsi/harness/local_process.py)
+rechecks cancellation and the attempt deadline or step timeout after opening
+logs and before starting the worker. The
+[launch-boundary test](../../tests/harness/test_harness_execute.py) covers this
+check. Whole CPU acceptance of this slice still requires the combined evidence
+tracked in the governing Harness and Apps issues.
diff --git a/docs/contributing.md b/docs/contributing.md
index 1f079eb79..ccee74247 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -2,8 +2,8 @@
InferRSI connects optimization conditions, measurements and verdicts. Start with
[quickstart](quickstart.md), the [module boundaries](architecture.md), and the
-[Qwen B300](qwen-image-2.1-turbo-b300.md) or
-[Qwen Ascend](qwen-image-2.1-turbo-ascend.md) case that matches your hardware.
+[Qwen B300](field-notes/qwen-image-2.1-turbo-b300.md) or
+[Qwen Ascend](field-notes/qwen-image-2.1-turbo-ascend.md) case that matches your hardware.
## Development
@@ -46,7 +46,7 @@ implementing module under `apps/host/platforms/`. That
module owns the command name and the discovery boundary. Reuse the common AB/BA loop,
cleanup and adjudication. See [extension contracts](architecture.md#where-to-extend).
-For a finding, edit one [record](../src/inferrsi/knowledge/data/skill_library/records/README.md). For a procedure, edit its registered owner. Commit changed skill sources, then regenerate the two build inputs with `python tools/build_skill_index.py --source-revision `. Verify with the same command plus `--check`. The catalog constructs schema-1 views when requested. See the [knowledge contribution workflow](knowledge-contribution-workflow.md).
+For a finding, edit one [record](../src/inferrsi/knowledge/data/skill_library/records/README.md). For a procedure, edit its registered owner. Commit changed skill sources, then regenerate the two build inputs with `python tools/build_skill_index.py --source-revision `. Verify with the same command plus `--check`. The catalog constructs schema-1 views when requested. See the [knowledge contribution workflow](guides/knowledge/knowledge-contribution-workflow.md).
Regenerate the checkout [SearchSpace coordinate index](searchspace-index.json)
after changing the SearchSpace Matrix, Skill registry or Skill metadata source
@@ -57,8 +57,7 @@ unknown, explicitly excluded and conflicting Skills have no matchable pairs.
The Python reader `load_searchspace_index(checkout)` verifies both the source
digests and the generated entries against the same canonical projection. It
qualifies entries by Skill root, id and path. Coordinate verification reads
-checkout Skill metadata with PyYAML. If your interpreter lacks PyYAML, install
-it from the checkout with `python -m pip install '.[skills]'`.
+checkout Skill metadata with PyYAML, which is included in the core install.
To filter Find by a matrix coordinate, supply the checkout's Skill root explicitly:
@@ -101,13 +100,37 @@ library root, `README.md` describes the library and `skill-index.json` maps
stable skill IDs to their owners. Place independent findings in `records/`
and shared search configuration in `config/`. The index builder writes the
two generated catalog inputs to `_compiled/`. See the
-[directory contract](knowledge-layout.md#directory-contract).
+[directory contract](guides/knowledge/knowledge-layout.md#directory-contract).
Catalog abstracts link to packaged bodies via `skill_documents.original` for
migrated skills or `skill_documents.en` for engine procedures. Update
affected source content and catalog records together. Source snapshot revisions
identify research evidence, not campaign defaults. Check linked resources,
licenses, local links and reads from a noneditable wheel installation.
+## Documentation during a refactor
+
+When a command, module or workflow changes owners, search the old name and path
+across the checkout. Include module READMEs, CLI help, plugin builders, workflow
+files, tests and generated indexes. Use each match in context. For example,
+`SkillEval` names GitHub workflows, while local skill evaluation runs through
+[`python -m tools.skill_eval_compare`](skill-evaluation/local-skill-evaluation.md). Verify the
+actual entry point before renaming it in a guide.
+
+Update the owning module README or task guide in the same PR as the code.
+Keep cross-module decisions in the [architecture](architecture.md) or the
+relevant [contract](contracts/). Keep a proposed design in its issue until
+adopted, then link the decision to the implementation and its tests. When a
+design is superseded, move its surviving guidance to the current owner and
+remove the obsolete page if no reader needs its path.
+
+Keep recorded results, artifact hashes and names at their original revision.
+Cite that commit or release alongside the successor. Check links in published
+packages and frozen receipts. If they still use the old path, keep a short
+page there linking to both revisions. In the PR, record the old and new entry
+points, regenerate affected indexes, check incoming links and anchors, and
+try the documented entry point.
+Record any hardware, external service or historical run that was not verified.
+
## Acceptance checklist
Use user-provided acceptance criteria, including those in a referenced accepted
@@ -119,7 +142,7 @@ authority. Missing evidence stays unresolved, and estimates never lower an
existing gate. Freeze resolved criteria before candidate search.
For software packaging and automatic daily Releases, follow the
-[release guide](releases.md). Release preparation is separate from campaign
+[release guide](release-notes/README.md). Release preparation is separate from campaign
acceptance and the four CI lanes.
Open an issue using the [acceptance form](../.github/ISSUE_TEMPLATE/campaign-acceptance.yml)
@@ -152,7 +175,7 @@ evidence//
validator/ Frozen validation code, versions and inputs
```
-Follow the [archiving contract](evidence-archiving.md) and
+Follow the [archiving contract](guides/evidence-archiving.md) and
[bundle template](../evidence/_template/README.md). Keep large raw measurements,
logs, profiler data and generated inventories in versioned external archives.
The campaign's `results/artifacts.json` owns metadata; index every attempt and
@@ -245,7 +268,7 @@ explicit, separately budgeted experiments.
- Freeze new references when helpers change; replay historical evidence with its
original bundle. Never rewrite old manifests to fit a new validator.
-The [B300 guide](qwen-image-2.1-turbo-b300.md#review-lessons-and-evidence) links the
+The [B300 guide](field-notes/qwen-image-2.1-turbo-b300.md#review-lessons-and-evidence) links the
review history and source-pinned evidence behind these rules.
## CI and repository reuse
@@ -259,8 +282,8 @@ Keep the existing four lanes:
| [Merge](../.github/workflows/ci-merge.yml) | Manifest check and lightweight CPU smoke on main |
| [Nightly](../.github/workflows/ci-nightly.yml) | Scheduled lint/tests, evidence layout and label drift |
-Ready CI also builds the source distribution and wheel, installs the wheel with
-the optional `skills` parser in a fresh virtual environment, and runs
+Ready CI builds the source distribution and wheel, installs the core wheel
+without extras in a fresh virtual environment, and runs
`tests/check_installed.py` outside the checkout with `PYTHONPATH` unset and Python
isolated mode enabled. This checks packaged knowledge, skill bodies, licenses,
helpers and CLI reads without installing any inference engine.
diff --git a/docs/dashboard.md b/docs/dashboard.md
index da1d5d01f..2c818fcb2 100644
--- a/docs/dashboard.md
+++ b/docs/dashboard.md
@@ -141,7 +141,7 @@ metric is replaced with zero.
## Campaign integration
-For managed [service-reuse campaigns](service-reuse-campaigns.md), the dashboard
+For managed [service-reuse campaigns](guides/service-reuse-campaigns.md), the dashboard
reads the control record and displays per-objective values, stage verdicts,
selections, repairs, references, reminders and final prerequisites. The compact
live view refreshes the full page.
@@ -367,7 +367,7 @@ The importer locates matching managed JSON returns within the window for those
captures. It locates the submitted hypothesis from the round call and verifies
the round receipt. The return containing the source passage must precede the
round call. Service-reuse sessions retain knowledge in their own records.
-See [service reuse](service-reuse-campaigns.md#records-compatibility-and-validation).
+See [service reuse](guides/service-reuse-campaigns.md#records-compatibility-and-validation).
For a manual campaign, put the citation in the existing log's round
`rationale` or `decision.reason`. State that same reason in the conversation
@@ -638,7 +638,7 @@ The shared **Knowledge retrieval and evidence navigation** panel explains actual
entry points, recorded ranking and assembly, and local v1/portable v2 search
records. It links explicit round/candidate/run identities in both layouts and
preserves active selections during live refresh. See the [retrieval contract and
-integration guide](knowledge-retrieval-trace.md) for standalone captures,
+integration guide](guides/knowledge/knowledge-retrieval-trace.md) for standalone captures,
compatibility, historical gaps and the offline synthetic example.
The **Optimization story** section is the campaign-level trace a reviewer reads
diff --git a/docs/campaign-summary-chart.md b/docs/dashboard/campaign-summary-chart.md
similarity index 91%
rename from docs/campaign-summary-chart.md
rename to docs/dashboard/campaign-summary-chart.md
index 2371a5ec7..b2acc5366 100644
--- a/docs/campaign-summary-chart.md
+++ b/docs/dashboard/campaign-summary-chart.md
@@ -4,9 +4,9 @@ One figure per campaign that answers "what did this campaign move, and by
how much". It is drawn automatically when an experiment finishes, and the same
renderer produces a standalone figure for a multi-step campaign.
-The renderer is [inferrsi/apps/views/summary_chart.py](../src/inferrsi/apps/views/summary_chart.py),
-also exposed as [tools/campaign_summary_chart.py](../tools/campaign_summary_chart.py)
-and listed in the [operation guide](operations.md#campaign-summary-figure).
+The renderer is [inferrsi/apps/views/summary_chart.py](../../src/inferrsi/apps/views/summary_chart.py),
+also exposed as [tools/campaign_summary_chart.py](../../tools/campaign_summary_chart.py)
+and listed in the [operation guide](../operations.md#campaign-summary-figure).
It uses only the standard library and writes SVG, so a committed figure
reproduces without installing a plotting package.
@@ -17,9 +17,9 @@ reproduces without installing a plotting package.
| `chain` (default for a multi-step campaign) | Steps accumulate on each other over the course of the campaign | A line of running gain in multiples of the baseline, one marker per step, stage bands behind it |
| `branch` | Trials each start from the same baseline and are independent | One signed gain axis; every trial shows its own gain, so a no-gain or loss row stays as visible as the best result |
-
+
-
+
Both images are drawn from the template example values, so they show the
*shape* of each layout and are not the measurements of any engine.
@@ -65,8 +65,8 @@ Commit the specification next to the figure. The specification is the source of
truth: it names the measured values, and a reviewer can re-derive the figure and
check each row against the result files it summarizes. Two shape examples ship
with the evidence template:
-[chain](../evidence/_template/results/summary-chart.example.json) and
-[branch](../evidence/_template/results/summary-chart-branch.example.json).
+[chain](../../evidence/_template/results/summary-chart.example.json) and
+[branch](../../evidence/_template/results/summary-chart-branch.example.json).
## Specification fields
diff --git a/docs/drama3-ascend-910b1.md b/docs/field-notes/drama3-ascend-910b1.md
similarity index 93%
rename from docs/drama3-ascend-910b1.md
rename to docs/field-notes/drama3-ascend-910b1.md
index b5531a2a0..323ac6d67 100644
--- a/docs/drama3-ascend-910b1.md
+++ b/docs/field-notes/drama3-ascend-910b1.md
@@ -9,9 +9,8 @@ revision and evidence references are retained.
## Provenance
Measurements below are author-reported by amy-why-3459 on a shared 8x910B1
-host (cards 3/4), 2026-10-23/24. They are not independently reproducible
-validation until exact revision and evidence references are retained.
-`plan/plan.json` stores `` and
+host (cards 3/4), 2026-10-23/24. The archived [plan](../../evidence/drama3-ascend-20261023/plan/plan.json)
+stores `` and
`` as placeholders, not pinned SHAs.
The upstream change is described as vLLM-Omni work "Replay Drama 3 decode
steps as FULL graphs" on the mutable branch
@@ -22,8 +21,8 @@ runner path it builds on is
Raw logs and the sweep JSON are external. They were retained under
`/evidence/` and `/runs/` and are not in
this repository, so they are unavailable for review from this checkout.
-This document stores the summary, not those artifacts. A field marking the
-summary locally verified would not make those external artifacts reviewable.
+The repository retains a [summary](../../evidence/drama3-ascend-20261023/results/summary.json)
+of the reported results.
## RunSpec
diff --git a/docs/drama3-npu-readiness.md b/docs/field-notes/drama3-npu-readiness.md
similarity index 91%
rename from docs/drama3-npu-readiness.md
rename to docs/field-notes/drama3-npu-readiness.md
index 7919736e5..12738f112 100644
--- a/docs/drama3-npu-readiness.md
+++ b/docs/field-notes/drama3-npu-readiness.md
@@ -31,9 +31,9 @@ These records describe the same GPU design family. They share lineage and do
| Source | Pin | Role here | Status |
|---|---|---|---|
| [david6666666/drama-3-single-b300-inference](https://github.com/david6666666/drama-3-single-b300-inference/tree/58a1882a4d941f8d21bfce6be37d3d5e7c9fde80) | `58a1882a` (RFC-pinned) | GPU reference engine motivating the NPU questions; Python engine with persistent request state, CUDA Graphs, incremental audio decoding, native FP8 routed experts | external source; inspected only at the RFC-selected commits below |
-| [`vllm_omni.cuda.audio.concurrency_scaling_state_and_overlap`](../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.cuda.audio.concurrency_scaling_state_and_overlap.json) | vllm-omni `fish_omni@d6ed4f4` | Existing imported record for the same audio design family (stage/state ownership, mixed prefill, codec overlap, workspace isolation, prefix reuse, FP8 MoE) | `imported`, `locally_verified=false`, CUDA |
-| [`evidence/drama3-b300-scale150/`](../evidence/drama3-b300-scale150/) | issue #10 campaign | Frozen GPU plan + validator + diagnostic lessons from the GPU campaign | campaign **INCONCLUSIVE**; GPU-only |
-| [`case.drama3-rejected-directions`](../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md) | InferRSI `d51c941` diagnostic ledger | Authoritative casebook entry for the campaign's rejected directions and invalid controls (async overlap/shared capture workspace, production prefix reuse, padding-history harness mismatch); reused here, not restated | `historical_observation`; derived from the campaign above, so same lineage |
+| [`vllm_omni.cuda.audio.concurrency_scaling_state_and_overlap`](../../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.cuda.audio.concurrency_scaling_state_and_overlap.json) | vllm-omni `fish_omni@d6ed4f4` | Existing imported record for the same audio design family (stage/state ownership, mixed prefill, codec overlap, workspace isolation, prefix reuse, FP8 MoE) | `imported`, `locally_verified=false`, CUDA |
+| [`evidence/drama3-b300-scale150/`](../../evidence/drama3-b300-scale150/) | issue #10 campaign | Frozen GPU plan + validator + diagnostic lessons from the GPU campaign | campaign **INCONCLUSIVE**; GPU-only |
+| [`case.drama3-rejected-directions`](../../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md) | InferRSI `d51c941` diagnostic ledger | Authoritative casebook entry for the campaign's rejected directions and invalid controls (async overlap/shared capture workspace, production prefix reuse, padding-history harness mismatch); reused here, not restated | `historical_observation`; derived from the campaign above, so same lineage |
RFC-selected commit chain inspected for this supplement (direct inspection
limited to concrete questions; no broad history scan, no readset expansion):
@@ -43,7 +43,7 @@ limited to concrete questions; no broad history scan, no readset expansion):
| Partial-prefill state repair | [`a6e660cc`](https://github.com/david6666666/drama-3-single-b300-inference/commit/a6e660cc3693c61e14f4ed5acf75e3ac249294f0) | Can every live/padding/scratch region be distinguished and tested for noninterference on the target? (contract in §3; CPU fixture below) |
| Async codec guard | [`ec51ba1e`](https://github.com/david6666666/drama-3-single-b300-inference/commit/ec51ba1e24300718bfbbfa078f5a16e49e1c03bb) | What owns workspace/persistent buffers on the NPU runtime; what capture/ordering rules apply? |
| Cross-stream frame lifetime | [`a7118fb7`](https://github.com/david6666666/drama-3-single-b300-inference/commit/a7118fb7eb748d08c3b774fa6c9189b6eab0d9cc) | Do producer/consumer deps, allocation lifetime and replay addresses stay valid across async work? |
-| BF16 FMA semantic repair | [`6ff8d808`](https://github.com/david6666666/drama-3-single-b300-inference/commit/6ff8d8067fb6e96804f49fd4f0c9020fd315e1fc) | Are contraction/accumulation/quantization/layout and state-update semantics preserved beyond algebraic equivalence? |
+| BF16 FMA semantic repair | [`6ff8d806`](https://github.com/david6666666/drama-3-single-b300-inference/commit/6ff8d8067fb6e96804f49fd4f0c9020fd315e1fc) | Are contraction/accumulation/quantization/layout and state-update semantics preserved beyond algebraic equivalence? |
| Exact prefix reuse service screen | [`native-row-reuse-service/summary.md`](https://github.com/david6666666/drama-3-single-b300-inference/blob/58a1882a4d941f8d21bfce6be37d3d5e7c9fde80/evidence/20261016-ceiling/results/native-row-reuse-service/summary.md) | Do planning/mapping/memory/transfer/drain costs erase local graph savings? |
| Shared reference-code adapter / result limits | [`33f6d723`](https://github.com/david6666666/drama-3-single-b300-inference/commit/33f6d7237196520be9f457d86df161264cbb087e) · [`current-results.md`](https://github.com/david6666666/drama-3-single-b300-inference/blob/58a1882a4d941f8d21bfce6be37d3d5e7c9fde80/docs/current-results.md) | Do baselines receive equivalent inputs; are failed/incomplete runs and baseline revisions retained? |
@@ -54,8 +54,8 @@ TorchNPU allocator skills (`torchnpu-device-memory-lifecycle`,
`torchnpu-pinned-host-memory-lifecycle`), measurement/evidence skills
(`inference-benchmark-design`, `dense-performance-evidence`, `rsi-evidence`),
and the omni/audio records
-([`stage_ownership_and_search`](../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.common.omni.stage_ownership_and_search.json),
-[`streaming_serving_measurement`](../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.common.audio.streaming_serving_measurement.json)).
+([`stage_ownership_and_search`](../../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.common.omni.stage_ownership_and_search.json),
+[`streaming_serving_measurement`](../../src/inferrsi/knowledge/data/skill_library/records/vllm_omni.common.audio.streaming_serving_measurement.json)).
---
@@ -122,7 +122,7 @@ Grounded in commit [`a6e660cc`](https://github.com/david6666666/drama-3-single-b
back into the primary region and overwrote a live request's state. The repair
reserves a dedicated padding band plus separate suffix mirror space and rejects
any padding/live overlap.
-- **CPU fixture:** [`tests/campaigns/test_drama3_prefill_noninterference.py`](../tests/campaigns/test_drama3_prefill_noninterference.py)
+- **CPU fixture:** [`tests/campaigns/test_drama3_prefill_noninterference.py`](../../tests/campaigns/test_drama3_prefill_noninterference.py)
is a pure-Python reference arena that **reproduces the collision** with the
original top-of-arena assignment (a live request's state is overwritten) and
**preserves all live state** with the reserved-band layout, across partial
@@ -140,7 +140,7 @@ Grounded in commit [`a6e660cc`](https://github.com/david6666666/drama-3-single-b
- **Control discipline:** before attributing a target mismatch to production
math, reset complete physical input rows and run an A/A control; the GPU
campaign's initial prefix-reuse comparison differed only in private padding
- history ([casebook row](../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md)).
+ history ([casebook row](../../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md)).
### Representative path: one decode step
@@ -154,10 +154,10 @@ Grounded in commit [`a6e660cc`](https://github.com/david6666666/drama-3-single-b
producer buffer (`a7118fb7`).
- **Target-dependent checks required:** on-device capture/replay parity, dedicated
codec capture workspace, cross-stream producer lifetime, BF16 FMA/accumulation
- parity against a higher-precision reference (`6ff8d808`). The GPU dedicated-
+ parity against a higher-precision reference (`6ff8d806`). The GPU dedicated-
capture finding and its limits (one reproducer, not every historical WER
failure) stay in the
- [casebook](../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md);
+ [casebook](../../src/inferrsi/knowledge/data/skill_library/casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md);
NPU workspace ownership must be established on the target runtime.
Reuse the imported record's L0–L4 `validation_plan` for the broader matrix; CPU
@@ -170,7 +170,7 @@ fixtures establish contract/reference logic only.
Reuse the pinned GPU benchmark client
[`src/drama3/benchmark.py@58a1882a`](https://github.com/david6666666/drama-3-single-b300-inference/blob/58a1882a4d941f8d21bfce6be37d3d5e7c9fde80/src/drama3/benchmark.py)
and the existing frozen validator
-[`evidence/drama3-b300-scale150/validator/validate.py`](../evidence/drama3-b300-scale150/validator/validate.py).
+[`evidence/drama3-b300-scale150/validator/validate.py`](../../evidence/drama3-b300-scale150/validator/validate.py).
**What interoperates (no request/record adapter):** `benchmark.py` emits
`summary.json` and per-run `{label}.jsonl` records (`sample_id`, `request_id`,
@@ -263,7 +263,7 @@ request/record adapter. Any further adapter is warranted only if a concrete
interface gap is demonstrated on the target — for example, a response schema that
does not expose PCM headers the client expects, or a validator record field the
target cannot emit. If that occurs, follow the
-[`qwen21_turbo_validation_adapter`](../examples/qwen21_turbo_validation_adapter.py)
+[`qwen21_turbo_validation_adapter`](../../examples/qwen21_turbo_validation_adapter.py)
precedent: real inputs/outputs, explicit unsupported modes, focused positive/
negative tests, no manufactured success data.
diff --git a/docs/qwen-image-2.1-turbo-ascend.md b/docs/field-notes/qwen-image-2.1-turbo-ascend.md
similarity index 97%
rename from docs/qwen-image-2.1-turbo-ascend.md
rename to docs/field-notes/qwen-image-2.1-turbo-ascend.md
index 3d71eb672..a0656e7ad 100644
--- a/docs/qwen-image-2.1-turbo-ascend.md
+++ b/docs/field-notes/qwen-image-2.1-turbo-ascend.md
@@ -14,7 +14,7 @@ This integration verifies documentation, knowledge retrieval and package resourc
- 1280×704 and the checkpoint's native 8 sigmas.
- Two warmup rounds, then three repeated prompts with seeds 42/43/44.
- Unoptimized baseline mean: **3111.5 ms**. A 30% line is **2178 ms**.
-- vLLM 0.31.0. Upstream patch: [vllm-omni#8729](https://github.com/vllm-project/vllm-omni/pull/8729) at `399cc01d1`.
+- vLLM 0.31.0. Upstream patch: [vllm-omni#8729](https://github.com/vllm-project/vllm-omni/pull/8729) at [`399cc01d1`](https://github.com/vllm-project/vllm-omni/commit/399cc01d1bc4542964d91aaa17fb43862a8cf3b3).
Means below are the mean of the three measured requests. Warmup stays outside the mean. Pixel identity is recorded separately from the SSIM ≥ 0.99 and PSNR ≥ 35 dB gate.
diff --git a/docs/qwen-image-2.1-turbo-b300.md b/docs/field-notes/qwen-image-2.1-turbo-b300.md
similarity index 91%
rename from docs/qwen-image-2.1-turbo-b300.md
rename to docs/field-notes/qwen-image-2.1-turbo-b300.md
index f63594c1b..61f1f584b 100644
--- a/docs/qwen-image-2.1-turbo-b300.md
+++ b/docs/field-notes/qwen-image-2.1-turbo-b300.md
@@ -24,7 +24,7 @@ fifth trial is retained. Ranges are descriptive; significance is not established
The original-source baseline is `f69b1f2b19cece03f6736c7da093ea25de0e24fd`;
the accepted candidate is `330d411d2dd567bc061cb3124f4e39d195a4be45`.
-The [complete historical patch](../evidence/qwen21-turbo-b300-20261010/patch/qwen21-turbo-b300.patch)
+The [complete historical patch](../../evidence/qwen21-turbo-b300-20261010/patch/qwen21-turbo-b300.patch)
includes the earlier changes and applies to that baseline only. The final cohort
used devices 2/4/6/7 after foreign activity interrupted the earlier 2/5/6/7 group.
Both sides were freshly measured on the same selected devices; no outside task
@@ -45,7 +45,7 @@ cross-cohort and is not the final formal denominator.
| Timing | POST through complete JSON/base64 response download; parsing/writes excluded |
| Quality | Every native image, including the first response; RGB and alpha checked separately |
-The exact prompt set and sigma grid are in the [runner](../examples/qwen21_turbo_b300.py).
+The exact prompt set and sigma grid are in the [runner](../../examples/qwen21_turbo_b300.py).
Historical gates are SSIM ≥ 0.99 and PSNR ≥ 35 dB per RGB/alpha channel; the
accepted outputs were additionally pixel-identical. No quantization, approximate
cache, step/resolution reduction, sampled-latent reuse or image replay is used.
@@ -141,11 +141,11 @@ paths, then validate the complete manifest:
--expected-parallel 1,4 --output "$CAMPAIGN/artifacts/trial-001-quality.json"
```
-Use the [CLI run contract](quickstart.md#real-remote-experiment) for five fresh
+Use the [CLI run contract](../quickstart.md#real-remote-experiment) for five fresh
alternating AB/BA groups and an explicit quality command. Freeze the 30% target
against a fresh original-source baseline before search. Current aggregate
validation accepts `--inferrsi-run --output {result}`; the
-[v4 directory adapter](../examples/qwen21_turbo_validation_adapter.py) is only for
+[v4 directory adapter](../../examples/qwen21_turbo_validation_adapter.py) is only for
the historical validator's run-root convention. It requires ten complete trial
reports and all 40 comparisons, without changing numerical gates.
@@ -204,12 +204,12 @@ B300 validation does not establish H200/Hopper correctness.
| Evidence | Scope |
| --- | --- |
-| [Historical archive manifest](../evidence/qwen21-turbo-b300-20261010/results/archive-manifest.json) | Downloadable source/results bundle and recomputation checksums |
-| [Review matrix](../evidence/qwen21-turbo-b300-review-20261012/results/summary.json) | Separately pinned review-time comparison; not the historical denominator |
-| [Shared-consumer regression](../evidence/qwen21-turbo-b300-human-review-20261012/results/summary.json) | Consumer map, checks and baseline-failure attribution |
-| [Modularization regression](../evidence/modular-refactor-20261013/README.md) | 4/4 native RGBA pairs exact; functional smoke, no new latency claim |
+| [Historical archive manifest](../../evidence/qwen21-turbo-b300-20261010/results/archive-manifest.json) | Downloadable source/results bundle and recomputation checksums |
+| [Review matrix](../../evidence/qwen21-turbo-b300-review-20261012/results/summary.json) | Separately pinned review-time comparison; not the historical denominator |
+| [Shared-consumer regression](../../evidence/qwen21-turbo-b300-human-review-20261012/results/summary.json) | Consumer map, checks and baseline-failure attribution |
+| [Modularization regression](../../evidence/modular-refactor-20261013/README.md) | 4/4 native RGBA pairs exact; functional smoke, no new latency claim |
| [Earlier detailed ledger](https://github.com/david6666666/OmniRSI/blob/ab343f98f7da55e428275c20c2324732201b9000/docs/qwen21-turbo-b300-phase2-results.md) | Immutable profile details, rejected trials and original source pins |
-The [contribution guide](contributing.md) consolidates acceptance, evidence and
+The [contribution guide](../contributing.md) consolidates acceptance, evidence and
shared-component review rules. New runs must keep their own source and protocol
identity instead of inheriting an earlier campaign's verdict.
diff --git a/docs/apps-evaluate-cli.md b/docs/guides/apps-evaluate-cli.md
similarity index 96%
rename from docs/apps-evaluate-cli.md
rename to docs/guides/apps-evaluate-cli.md
index d228ea410..4959902db 100644
--- a/docs/apps-evaluate-cli.md
+++ b/docs/guides/apps-evaluate-cli.md
@@ -72,7 +72,7 @@ network-path or ambient-directory fallback. Output workspace is an existing
absolute local directory without symlink traversal.
- **prepare:** `benchmark` has exactly `protocol`, `worker_role`, `resources`.
- The [existing B PreparationService](contracts/production-prepare.md) validates
+ The [existing B PreparationService](../contracts/production-prepare.md) validates
the frozen task/rules and exact byte pins. Resource paths grant read-only
role-keyed file openers. Apps independently verifies the returned closure
before archiving it. No target or writable Store is constructed.
@@ -86,7 +86,7 @@ absolute local directory without symlink traversal.
assessor reads only fixed retained evidence through Apps; it does not prepare
a task, construct an execution target, launch a worker or access a network.
-The [CPU smoke task](contracts/p1-cpu-smoke.md) supplies the worker and frozen
+The [CPU smoke task](../contracts/p1-cpu-smoke.md) supplies the worker and frozen
rules for the production example below.
## Opt-in production evidence
@@ -127,7 +127,7 @@ separate.
| Archived primary `FAIL` | 8 |
| Archived primary `INCONCLUSIVE` | 9 |
-The [existing Apps result mapping](../src/inferrsi/apps/storage/result.py)
+The [existing Apps result mapping](../../src/inferrsi/apps/storage/result.py)
remains authoritative. Publication failures preserve already committed refs
in the printed result. Explicitly resubmitting the original saved execute
request uses the original attempt and digest; H returns its original fixed
diff --git a/docs/apps-output.md b/docs/guides/apps-output.md
similarity index 97%
rename from docs/apps-output.md
rename to docs/guides/apps-output.md
index c0cf2bd11..f146739c6 100644
--- a/docs/apps-output.md
+++ b/docs/guides/apps-output.md
@@ -57,8 +57,9 @@ callers must inspect error.stage and preserve the original attempt when reconcil
The accepted Apps stage mapping uses the existing v1 error codes.
Valid core PublicError stages are preserved. Raised typed PublicError is handled
as a port error. Other host exceptions remain exceptions: these are programming
-or host failures, not automatically trustworthy core responses. The future CLI
-must define its own exception presentation; no CLI behavior is implied here.
+or host failures, not automatically trustworthy core responses. The
+[saved-request CLI](apps-evaluate-cli.md#outputs-errors-and-replay) documents
+its argument errors and persisted results.
Non-null error attempt IDs, latest record references and partial execution
identities must belong to the submitted attempt. Partial facts are type checked.
@@ -115,7 +116,7 @@ Storage construction and validation live in `inferrsi.apps.storage.result`.
The former `inferrsi.apps.archive`, `artifact_reader`, `result` and
`evidence_layout` modules retain explicit public exports during the #490
migration. New consumers and private-helper test patches use `apps.storage`.
-The [migration inventory](apps-module-migrations.json) lists the exact exports.
+The [migration inventory](../apps-module-migrations.json) lists the exact exports.
Persisted namespace values, artifact references and schema versions retain
their existing spelling.
diff --git a/docs/evidence-archiving.md b/docs/guides/evidence-archiving.md
similarity index 91%
rename from docs/evidence-archiving.md
rename to docs/guides/evidence-archiving.md
index 4fdef8bee..0ff2a2eb8 100644
--- a/docs/evidence-archiving.md
+++ b/docs/guides/evidence-archiving.md
@@ -8,7 +8,7 @@ The RFC's completion and campaign acceptance remain separate owner decisions.
Retain implementation, necessary tests, goals, conclusions, limitations, key
metrics, effective configuration, input/validator identities, a complete trial
-index and verification entry points. Start from [the bundle template](../evidence/_template/README.md).
+index and verification entry points. Start from [the bundle template](../../evidence/_template/README.md).
Small test fixtures stay only when their consumers and necessity are clear.
Archive per-request results, per-sample scores, profiler output, logs, media,
@@ -30,10 +30,10 @@ local artifact path. Do not copy URL/hash/bytes/owner into inventory entries.
The offline inventory rejects such duplicate `external_assets` metadata.
New documents use **schema_version 2**, illustrated by
-[artifacts.example.json](../evidence/_template/results/artifacts.example.json).
+[artifacts.example.json](../../evidence/_template/results/artifacts.example.json).
Replace placeholders with measured values, including integer byte/file counts.
The executable format contract is `normalize_manifest` in
-[tools/evidence_archives.py](../tools/evidence_archives.py).
+[tools/evidence_archives.py](../../tools/evidence_archives.py).
| Field | Contract |
| --- | --- |
@@ -65,7 +65,7 @@ checker; normalization does not rewrite either pilot's bytes or interpretation.
2. Generate summaries and the index from those raw/control records; test coverage.
3. Package regular files, publish a versioned Release asset, and record measured
metadata. Controlled originals remain in authorized storage under the
- [privacy rules](privacy-security.md).
+ [privacy rules](../privacy-security.md).
4. Download again and verify the published bytes and contents with the explicit
tool. Run the reviewed replay command and compare outputs.
5. Submit the compact bundle, verification results and availability limits.
@@ -118,23 +118,22 @@ Existing R6 thresholds remain report-only: 512 KiB per `evidence/` file and
2 MiB net evidence growth per PR. This change adds no blocking size gate.
Reconsideration remains on or after 2026-12-02 under the existing decision.
-[PR #328](https://github.com/InferMatrixLab/InferRSI/pull/328) owns the pending byte
-reporter. Its legacy input can be generated without maintaining duplicate
-metadata (after that checker is integrated):
+Generate the byte reporter's inventory view from the current checkout:
```bash
-python tools/validate_evidence.py --budget-assets >
-python tools/check_evidence_budget.py --base --report-only \
- --inventory
+budget_view=$(mktemp)
+python tools/validate_evidence.py --budget-assets > "$budget_view"
```
-The generated view is disposable, not committed. #328's Release-only URL
+Keep the generated view temporary. The separate byte reporter and its
+invocation are pending in [PR #328](https://github.com/InferMatrixLab/InferRSI/pull/328).
+The proposed reporter's Release-only URL
format check does not support controlled-store URLs; use the shared reader and
an authorized local archive for those and report that compatibility gap. The
view does not claim remote availability. Added/deleted/net byte reporting
remains in #328's follow-up scope.
-Use [the exception record](../evidence/_template/plan/storage-exception.md) when
+Use [the exception record](../../evidence/_template/plan/storage-exception.md) when
a specific oversized artifact must stay in Git. Record purpose, consumers,
externalization obstacle, byte count, maintenance owner and explicit maintainer
agreement. An exception record does not create automatic enforcement.
@@ -159,8 +158,8 @@ closes the parent RFC.
### Scoped legacy record projections
-The [H3 four-device bundle](../evidence/h3-ref2va-910c-4logical-20261101-297/README.md)
-and [Qwen3.8 bundle](../evidence/qwen38-h20-fp8-single-request-vllm032/README.md)
+The [H3 four-device bundle](../../evidence/h3-ref2va-910c-4logical-20261101-297/README.md)
+and [Qwen3.8 bundle](../../evidence/qwen38-h20-fp8-single-request-vllm032/README.md)
use v2 for their explicitly requested cleanup. Their full originals, including
superseded cumulative checkpoints and repeated diagnostic code, remain in the
archives. This is not blanket authorization to migrate other frozen campaigns.
diff --git a/docs/goal-checkpoints.md b/docs/guides/goal-checkpoints.md
similarity index 98%
rename from docs/goal-checkpoints.md
rename to docs/guides/goal-checkpoints.md
index 5846c4f33..54b64de15 100644
--- a/docs/goal-checkpoints.md
+++ b/docs/guides/goal-checkpoints.md
@@ -1,7 +1,7 @@
# Offline goal checkpoints
`python -m tools.goal_checkpoint` rebuilds a goal view from explicit owner
-records and one existing [configured skill comparison](skill-eval-comparison.md).
+records and one existing [configured skill comparison](../skill-evaluation/skill-eval-comparison.md).
It reads the retained artifacts through the comparison controller's
`read_report` function. It does not call a model or write comparison reports.
diff --git a/docs/harness-improvement.md b/docs/guides/harness-improvement.md
similarity index 97%
rename from docs/harness-improvement.md
rename to docs/guides/harness-improvement.md
index 1b7366f6d..60e084744 100644
--- a/docs/harness-improvement.md
+++ b/docs/guides/harness-improvement.md
@@ -27,7 +27,7 @@ The last three proposal comments are the implementation requirements:
[updated English plan](https://github.com/InferMatrixLab/InferRSI/issues/93#issuecomment-6364589831),
and [updated Chinese plan](https://github.com/InferMatrixLab/InferRSI/issues/93#issuecomment-6364595822).
Their historical statement that [PR #118](https://github.com/InferMatrixLab/InferRSI/pull/118)
-was a draft is superseded: its [PR evaluation integration](skill-eval-pr.md) is
+was a draft is superseded: its [PR evaluation integration](../skill-eval-pr.md) is
on main. That integration and this offline controller both reuse Skill Eval.
Neither paper's benchmark numbers establish an InferRSI improvement.
@@ -139,7 +139,7 @@ be presented as the fallback H0 score.
## Reproduce the offline experiment
Requires Python 3.10+, dev dependencies and Git 2.45+ as in
-[configured comparisons](skill-eval-comparison.md). From a development checkout:
+[configured comparisons](../skill-evaluation/skill-eval-comparison.md). From a development checkout:
```bash
python -m tests.fixtures.harness_improvement_demo --output
@@ -152,7 +152,7 @@ regression and held-out regression, plus single H0 and equal-allowance repeated
H0 controls. It writes `summary.json`, full comparison reports, frozen inputs,
raw traces, independent grading outputs and receipts. Review raw bundles before
sharing; subprocess records contain local paths.
-The [recorded example summary](examples/harness-improvement/summary.json) contains
+The [recorded example summary](../examples/harness-improvement/summary.json) contains
only the scripted controller outcomes and locally observed CPU wall times; full
trial evidence is generated by the command above, not embedded in that excerpt.
diff --git a/docs/external-channels.md b/docs/guides/knowledge/external-channels.md
similarity index 95%
rename from docs/external-channels.md
rename to docs/guides/knowledge/external-channels.md
index 95ca820ec..d3bdb30ef 100644
--- a/docs/external-channels.md
+++ b/docs/guides/knowledge/external-channels.md
@@ -98,7 +98,7 @@ different defaults, Find requires an explicit backend before calling any source.
CANNBot serves Ascend and uses its native indexed query and exact-page read
through the approved checkout's worker. Managed rounds select that source from
the registry for the Git project frozen at session start, and check the grant
-again for both search and read. See [managed round retrieval](optimization-benchmarks.md#include-cannbot-in-the-round).
+again for both search and read. See [managed round retrieval](../../benchmarks/optimization-benchmarks.md#include-cannbot-in-the-round).
## Using it
@@ -214,7 +214,7 @@ An external result is **not locally verified**. Cite it as
`cannbot-knowledge @ ` and say so. It does not participate in a `PASS`
verdict.
-[Managed round retrieval](optimization-benchmarks.md#include-cannbot-in-the-round)
+[Managed round retrieval](../../benchmarks/optimization-benchmarks.md#include-cannbot-in-the-round)
records CANNBot search metadata and pinned read receipts. A receipt identifies
the search, locator, index revision, card SHA-256 and requested page. The
authorized read returns text directly to the caller. The campaign retains
@@ -232,7 +232,7 @@ conclusion.
| `cannbot enable / disable / describe / search / read` | implemented |
| `find` integration with gating, budgets, per-channel states | implemented |
| Managed CANNBot benchmark and AB/BA round query, read and Dashboard attribution | implemented |
-| MindIE native navigation | Explicit opt-in for [standalone Find](codex-plugin.md#find-navigation) under an approved Ascend project. Returns navigation references. |
+| MindIE native navigation | Explicit opt-in for [standalone Find](../plugins/codex-plugin.md#find-navigation) under an approved Ascend project. Returns navigation references. |
| `cannbot serve` (stdio MCP proxying `discover` / `search` / `read_card`) | not yet |
| `campaign import-cannbot` (receipts into evidence) | not yet |
| Automatic clone, index build or deployment | deliberately absent |
@@ -240,7 +240,7 @@ conclusion.
## Related
-- [Operation guide](operations.md) — every entry point, effect class, boundary
+- [Operation guide](../../operations.md) — every entry point, effect class, boundary
- [#476](https://github.com/InferMatrixLab/InferRSI/issues/476) — access design and licence boundary
- [#388](https://github.com/InferMatrixLab/InferRSI/issues/388) — external dependency governance
-- [Knowledge base](knowledge-base.md) — the packaged corpus this sits beside
+- [Knowledge base](../../knowledge-base.md) — the packaged corpus this sits beside
diff --git a/docs/knowledge-contribution-workflow.md b/docs/guides/knowledge/knowledge-contribution-workflow.md
similarity index 99%
rename from docs/knowledge-contribution-workflow.md
rename to docs/guides/knowledge/knowledge-contribution-workflow.md
index 52e171c8e..c860d54c9 100644
--- a/docs/knowledge-contribution-workflow.md
+++ b/docs/guides/knowledge/knowledge-contribution-workflow.md
@@ -124,7 +124,7 @@ Existing entries without a unique ID use a position in the revision-pinned
original JSON. For example, the historical Sarathi TTFT/TBT comparison is
`case.sarathi-chunk-budget` at `case.json#/findings/3` in the source revision
returned by Find. Reviewers can compare its card and original using the
-[decision card read contract](knowledge-operations.md#read-a-decision-card).
+[decision card read contract](../../knowledge-operations.md#read-a-decision-card).
## Steps
diff --git a/docs/knowledge-layout.md b/docs/guides/knowledge/knowledge-layout.md
similarity index 66%
rename from docs/knowledge-layout.md
rename to docs/guides/knowledge/knowledge-layout.md
index e493b0313..d3e7baf50 100644
--- a/docs/knowledge-layout.md
+++ b/docs/guides/knowledge/knowledge-layout.md
@@ -1,8 +1,8 @@
# Knowledge layout and retrieval
-Start from the work an engineer needs to finish. 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. [Migration manifest](skill-layout-migration.csv)
+The diagrams and counts record the layout migration in [#516](https://github.com/InferMatrixLab/InferRSI/pull/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](../../skill-coverage.md#snapshot) reports the registry count for this checkout. [Migration manifest](../../skill-layout-migration.csv)
-To check the effect of this layout on search, compare unmodified main with the PR on the same machine. The [search comparison](../tools/compare_find_layouts.py) checks ordered results across both trees and times the end-to-end CLI. The [task queries and acceptance criteria](../tests/fixtures/find/layout-queries.json) define the workload.
+To reproduce the #516 search comparison, use the baseline and candidate checkouts from that migration on the same machine. The [search comparison](../../../tools/compare_find_layouts.py) checks ordered results across both trees and times the end-to-end CLI. The [task queries and acceptance criteria](../../../tests/fixtures/find/layout-queries.json) define the workload.
## 1. Task layers and evidence
@@ -22,7 +22,7 @@ flowchart TB
V --> N["Open question: run the smallest discriminating test or record the budget blocker"]
```
-
+
## 2. One physical knowledge root
@@ -41,7 +41,7 @@ flowchart LR
O & REG -.->|fingerprint resources and compile host headers at the source commit| BUILD
```
-
+
## 3. Search paths and evidence delivery
@@ -54,7 +54,7 @@ flowchart TB
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
default limit 10 · use --limit 136 for all"]
+ C -->|No query| B["Catalog by ID · 48 findings + 88 skill views at #516
default limit 10 · 136 entries in that snapshot"]
F --> A["Rank the existing searchable fields and procedure text
Exclude 7 primary skills and legacy router before IDF and limits
default 135 evidence owners · 80 skills + 48 findings + 7 cases"]
I -->|Authored finding| E["Validate selected record and its dependencies
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"]
@@ -66,7 +66,7 @@ flowchart TB
G -.->|budget remains| D
```
-
+
## 4. Before and after
@@ -90,50 +90,19 @@ flowchart LR
D --> P
```
-
+
## Directory contract
-```text
-src/inferrsi/knowledge/data/
-└── skill_library/
- ├── tasks/
- │ ├── task-day-0/ SKILL.md contains the procedure and its structured fields
- │ ├── task-performance/
- │ ├── task-debug/
- │ ├── task-accuracy/
- │ ├── task-version-alignment/
- │ ├── task-derived-engine/
- │ ├── task-independent-engine/
- │ └── inference-task-router/ compatibility entry and original route resources
- ├── systems/ platforms/{ascend,cuda,host}, frameworks/, engines/
- ├── playbooks/ measurement/, planning/, optimization/
- ├── workflows/ research/, governance/, maintenance/
- ├── casebooks/ inference/, ascend/
- ├── records/.json 28 contribution + 9 dependency + 11 peer
- ├── config/ query_aliases.json, research_profiles/
- ├── skill-index.json stable ID → directory and backend
- └── _compiled/ inputs.json, _provenance.json
-```
-
-The README documents the library. A procedure, including its resources, belongs in one registered directory. An engineering record carries its own sources, applicability and verification status. Its filename must match its stable ID. The registry locates each skill. The existing protected `knowledge/catalog.py` owns the public view fields, including source links, recommendations and verification status. Builds compile YAML headers and pinned Git fingerprints required by the base wheel. Authors edit structured fields in the same SKILL.md as the procedure. The catalog combines that embedded object with the compiled host header and resource fingerprints to emit the public schema-1 record on demand. Publishing the same skill under multiple engine or accelerator trees would require synchronized edits. Capture these dimensions for the actual run and compare them with owner metadata. For a new environment with no applicable local evidence, retain the unknown and the first check that could resolve it. [Record authoring guide](../src/inferrsi/knowledge/data/skill_library/records/README.md)
+The [skill library](../../../src/inferrsi/knowledge/data/skill_library/README.md) owns the directory map. Each procedure and its resources live under one registered owner. Each [engineering finding](../../../src/inferrsi/knowledge/data/skill_library/records/README.md) carries its own sources, applicability and verification status.
-Budgeted Collect can deliver a `skill-procedure` view. The
-[Collect contract](knowledge-operations.md#ranked-discovery-and-budgeted-context)
-describes its byte ranges and source identity. The
-[Find contract](operations.md#find--find--inferrsiknowledgeknowledge_findfind)
-covers read sizes, limitations and the revision needed for a reproducible read.
+The [Collect contract](../../knowledge-operations.md#ranked-discovery-and-budgeted-context) defines byte ranges and source identity. The [Find contract](../../operations.md#find--find--inferrsiknowledgeknowledge_findfind) 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](https://code.claude.com/docs/en/skills#control-who-invokes-a-skill)
### What to edit
-| When you change | Edit | How the change reaches readers |
-| --- | --- | --- |
-| A procedure, its applicability, provenance, tags or declared resources | The owner's `SKILL.md`. Ordinary agent fields such as `name` and `description` stay in the YAML header. `metadata.inferrsi` carries the structured InferRSI fields as a JSON string in a YAML block scalar. | The build compiles the header and resource hashes. Find uses the existing searchable fields and procedure text. |
-| A supporting example, script or case | Its owner-local resource under `references/`, `scripts/` or `cases/` | Open it through the owner's ID and revision. |
-| An independent engineering finding | `records/.json` | Its source, applicability and verification status travel with that evidence item. |
-| A new registered procedure | Add its owner directory and record the ID, path and backend in `skill-index.json` | Listing and exact reads resolve the new ID. Regenerate the two files under `_compiled/` from the committed sources. |
+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/.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.
@@ -141,13 +110,13 @@ This migration folds the fields from 107 paired files into their procedures, inc
| Required primary skill | Inputs to distinguish | Acceptance evidence |
| --- | --- | --- |
-| [Day-0 model](../src/inferrsi/knowledge/data/skill_library/tasks/task-day-0/SKILL.md) | Model revision, stages, reference implementation, backend | Stage outputs, first end-to-end result, regression fixture |
-| [Performance](../src/inferrsi/knowledge/data/skill_library/tasks/task-performance/SKILL.md) | Target metric, workload, bottleneck, quality floor | Paired baseline/candidate runs, quality check and variability |
-| [Debug](../src/inferrsi/knowledge/data/skill_library/tasks/task-debug/SKILL.md) | Symptom, last-good configuration, first failing stage | Minimal reproduction, implicated boundary, regression check |
-| [Accuracy](../src/inferrsi/knowledge/data/skill_library/tasks/task-accuracy/SKILL.md) | Reference outputs, dtype, preprocessing, seeds | First divergence, agreed tolerance and end-to-end result |
-| [Version alignment](../src/inferrsi/knowledge/data/skill_library/tasks/task-version-alignment/SKILL.md) | Versions of vLLM, vLLM-Omni, vLLM-Ascend and afd-plugin as applicable | Compatibility matrix, paired versions and rollback point |
-| [Derived engine](../src/inferrsi/knowledge/data/skill_library/tasks/task-derived-engine/SKILL.md) | Parent revision, inherited APIs and changed paths | Upstream behavior checks and tests of the fork delta |
-| [Independent engine](../src/inferrsi/knowledge/data/skill_library/tasks/task-independent-engine/SKILL.md) | Runtime, model format, device, OS and operator availability | Device-native first result, capability gaps and resource bounds |
+| [Day-0 model](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-day-0/SKILL.md) | Model revision, stages, reference implementation, backend | Stage outputs, first end-to-end result, regression fixture |
+| [Performance](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-performance/SKILL.md) | Target metric, workload, bottleneck, quality floor | Paired baseline/candidate runs, quality check and variability |
+| [Debug](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-debug/SKILL.md) | Symptom, last-good configuration, first failing stage | Minimal reproduction, implicated boundary, regression check |
+| [Accuracy](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-accuracy/SKILL.md) | Reference outputs, dtype, preprocessing, seeds | First divergence, agreed tolerance and end-to-end result |
+| [Version alignment](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-version-alignment/SKILL.md) | Versions of vLLM, vLLM-Omni, vLLM-Ascend and afd-plugin as applicable | Compatibility matrix, paired versions and rollback point |
+| [Derived engine](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-derived-engine/SKILL.md) | Parent revision, inherited APIs and changed paths | Upstream behavior checks and tests of the fork delta |
+| [Independent engine](../../../src/inferrsi/knowledge/data/skill_library/tasks/task-independent-engine/SKILL.md) | 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.
@@ -180,6 +149,6 @@ For the separate question of how much the task entry helps engineers, measure th
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 are individual evidence items.
+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.
diff --git a/docs/knowledge-retrieval-trace.md b/docs/guides/knowledge/knowledge-retrieval-trace.md
similarity index 91%
rename from docs/knowledge-retrieval-trace.md
rename to docs/guides/knowledge/knowledge-retrieval-trace.md
index 470a6a393..ea8175c46 100644
--- a/docs/knowledge-retrieval-trace.md
+++ b/docs/guides/knowledge/knowledge-retrieval-trace.md
@@ -46,16 +46,16 @@ decision operations to fill their missing associations.
The following screenshots show the implemented panel using synthetic inputs
and synthetic measurements; they are not real optimization results:
-- [Default layout, round 1 in Chinese](assets/dashboard-round-decisions-default-zh.png)
-- [Profile layout, round 1 in Chinese](assets/dashboard-round-decisions-profile-zh.png)
-- [Mobile profile layout in Chinese](assets/dashboard-round-decisions-mobile-zh.png)
+- [Default layout, round 1 in Chinese](../../assets/dashboard-round-decisions-default-zh.png)
+- [Profile layout, round 1 in Chinese](../../assets/dashboard-round-decisions-profile-zh.png)
+- [Mobile profile layout in Chinese](../../assets/dashboard-round-decisions-mobile-zh.png)
## Execution observations
`campaign capture-context` uses Find ranking for a single free-text question,
then assembles selected material through Collect. The capture records both
operations. Pass one question as a positional query or `--relevance`. Explicit
-IDs select material in caller order. See the [migration guide](operations.md#migrate-old-text-queries)
+IDs select material in caller order. See the [migration guide](../../operations.md#migrate-old-text-queries)
for callers that previously passed a separate query filter and ranking cue.
```sh
@@ -155,7 +155,7 @@ assembly byte budget are retained independently.
portable v2 passage-to-decision contract. A decision citing a rendered
resource from a verified `find` or `collect` capture supplies `passage_path`
with the resource's bundle-relative key. Its `passage_line` counts from the
- first line of that resource. See [the import contract](dashboard.md#import-one-rounds-searches)
+ first line of that resource. See [the import contract](../../dashboard.md#import-one-rounds-searches)
for the input fields. Mark complete coverage only when established.
5. Append results and decisions using existing campaign operations. A closing
import may extend the same trace window/add captures and runs, subject to the
@@ -171,7 +171,7 @@ capture reference and contents must match the saved capture. Delivery is recorde
for matching resource blocks even when the round has no use citation. Reviewers
can also supply the return line in `capture_returns`. A managed query without a
verified matching capture keeps coverage partial and complete counts unavailable.
-[Service-reuse campaigns](service-reuse-campaigns.md#records-compatibility-and-validation)
+[Service-reuse campaigns](../service-reuse-campaigns.md#records-compatibility-and-validation)
retain knowledge in their own fingerprint-free format, outside this importer.
A manual `campaign capture-context` text query likewise needs its selected
@@ -183,7 +183,7 @@ can be retained with zero searches.
Reasons in a submitted managed hypothesis or a manual optimization log can
carry an explicit use citation. The importer aligns it with the verified
delivered passage and later decision position without hand-entered evidence
-line numbers. See the [round reason workflow](dashboard.md#cite-a-passage-in-the-round-reason).
+line numbers. See the [round reason workflow](../../dashboard.md#cite-a-passage-in-the-round-reason).
Multiple metadata records may explicitly identify the same candidate and
round with different `run_id` values. The importer retains all of them, including
@@ -254,10 +254,10 @@ PR and CI.
| View | Default layout | Profile layout |
| --- | --- | --- |
-| Capture selection and budget | [Capture](assets/dashboard-knowledge-default-capture.png) | [Capture](assets/dashboard-knowledge-profile-capture.png) |
-| Run details and return navigation | [Run review](assets/dashboard-knowledge-default-run-review.png) | [Run review](assets/dashboard-knowledge-profile-run-review.png) |
-| Shared v2 records | [Archive](assets/dashboard-knowledge-default-archive-v2.png) | [Archive](assets/dashboard-knowledge-profile-archive-v2.png) |
-| Chinese narrow viewport | [Mobile](assets/dashboard-knowledge-default-mobile-zh.png) | [Mobile](assets/dashboard-knowledge-profile-mobile-zh.png) |
+| Capture selection and budget | [Capture](../../assets/dashboard-knowledge-default-capture.png) | [Capture](../../assets/dashboard-knowledge-profile-capture.png) |
+| Run details and return navigation | [Run review](../../assets/dashboard-knowledge-default-run-review.png) | [Run review](../../assets/dashboard-knowledge-profile-run-review.png) |
+| Shared v2 records | [Archive](../../assets/dashboard-knowledge-default-archive-v2.png) | [Archive](../../assets/dashboard-knowledge-profile-archive-v2.png) |
+| Chinese narrow viewport | [Mobile](../../assets/dashboard-knowledge-default-mobile-zh.png) | [Mobile](../../assets/dashboard-knowledge-profile-mobile-zh.png) |
The delivery includes existing-field projection, execution observations and
shared-record navigation. It does not deliver a general token/cost ledger,
diff --git a/docs/native-agent-sessions.md b/docs/guides/native-agent-sessions.md
similarity index 99%
rename from docs/native-agent-sessions.md
rename to docs/guides/native-agent-sessions.md
index 773106e72..f6758a18c 100644
--- a/docs/native-agent-sessions.md
+++ b/docs/guides/native-agent-sessions.md
@@ -177,7 +177,7 @@ Return the session directory, summary.json, selected source, final evidence,
dashboard and actual available usage. Report missing or failed steps honestly.
```
-The execution Agent follows [optimization benchmarks](optimization-benchmarks.md)
+The execution Agent follows [optimization benchmarks](../benchmarks/optimization-benchmarks.md)
from start to final in that one new conversation. The parent observes it and
records the returned summary, selected code and evidence with `agents record`.
Those artifacts must be within the declared workspace; if execution used a
diff --git a/docs/optimization-workflow-unification.md b/docs/guides/optimization-workflow-unification.md
similarity index 100%
rename from docs/optimization-workflow-unification.md
rename to docs/guides/optimization-workflow-unification.md
diff --git a/docs/codex-plugin.md b/docs/guides/plugins/codex-plugin.md
similarity index 99%
rename from docs/codex-plugin.md
rename to docs/guides/plugins/codex-plugin.md
index bc6821ef1..5075e183e 100644
--- a/docs/codex-plugin.md
+++ b/docs/guides/plugins/codex-plugin.md
@@ -7,7 +7,7 @@ DSH/openJiuwen integration and a measured usability comparison remain separate.
## Install from the Release ZIP
-The [daily release guide](https://github.com/InferMatrixLab/InferRSI/blob/main/docs/releases.md)
+The [daily release guide](https://github.com/InferMatrixLab/InferRSI/blob/main/docs/release-notes/README.md)
describes the versioned installer named
`inferrsi-codex-plugin-vX.Y.Z.zip` in
[GitHub Releases](https://github.com/InferMatrixLab/InferRSI/releases). Download
diff --git a/docs/dsh-plugin.md b/docs/guides/plugins/dsh-plugin.md
similarity index 100%
rename from docs/dsh-plugin.md
rename to docs/guides/plugins/dsh-plugin.md
diff --git a/docs/workswarm-plugin.md b/docs/guides/plugins/workswarm-plugin.md
similarity index 100%
rename from docs/workswarm-plugin.md
rename to docs/guides/plugins/workswarm-plugin.md
diff --git a/docs/result-delivery.md b/docs/guides/result-delivery.md
similarity index 97%
rename from docs/result-delivery.md
rename to docs/guides/result-delivery.md
index 62b916eb9..9000fa8ee 100644
--- a/docs/result-delivery.md
+++ b/docs/guides/result-delivery.md
@@ -173,8 +173,9 @@ Revision is a full 40- or 64-character lowercase hexadecimal identity. Both fixe
documents must verify and record that `candidate_revision`. The run also records
the identical `configuration_ref`, final `attempt_id` and frozen `protocol_digest`.
Matching names alone are insufficient. This alternative cannot override contradictory
-file fingerprints. It does not implement service-reuse execution in Harness, fetch
-Git revisions, or claim local code-byte verification for a revision binding.
+file fingerprints. [Service-reuse campaigns](service-reuse-campaigns.md) can
+supply revision bindings. The exporter's verification is limited to the
+retained run and configuration documents in this path.
## Artifact index and publication
@@ -220,5 +221,6 @@ damaged evidence/code, both binding paths, usage, invalid ratios, archive author
source changes, writer locks, publication faults, hostile text/paths and historical
adapters. Project and Benchmark lifecycle tests exercise automatic export through
real CPU subprocess fixtures and retry without remeasurement. These verify software
-behavior, not accelerator performance. RFC adoption, a future service-reuse producer
-and real campaign performance acceptance remain separate.
+behavior, not accelerator performance. The service-reuse tests also cover
+[export without a file fingerprint](../../tests/apps/test_project_service_reuse.py).
+RFC adoption and real campaign performance acceptance remain separate.
diff --git a/docs/service-reuse-campaigns.md b/docs/guides/service-reuse-campaigns.md
similarity index 100%
rename from docs/service-reuse-campaigns.md
rename to docs/guides/service-reuse-campaigns.md
diff --git a/docs/task-input.md b/docs/guides/task-input.md
similarity index 98%
rename from docs/task-input.md
rename to docs/guides/task-input.md
index c8c72d959..3e0eb5dbc 100644
--- a/docs/task-input.md
+++ b/docs/guides/task-input.md
@@ -14,7 +14,7 @@ file with the existing plan and run operations (see
| --- | --- | --- |
| JSON Schema (draft 2020-12) | `src/inferrsi/apps/cli/task-input/v1/schema.json` in the wheel | `inferrsi task schema` |
| Agent-oriented template | `src/inferrsi/apps/cli/task-input/v1/template.yaml` in the wheel | `inferrsi task template` |
-| Shared conformance fixtures | [`tests/fixtures/task-input/`](../tests/fixtures/task-input/README.md) | — |
+| Shared conformance fixtures | [`tests/fixtures/task-input/`](../../tests/fixtures/task-input/README.md) | — |
PyYAML is a core dependency, so an ordinary install without extras reads task files.
The `skills` extra remains as a compatibility alias.
@@ -140,7 +140,7 @@ subprocess, run no probe or task script, install nothing, and create no workspac
plan, run or evidence file. A `complete` preview only reports that every needed input
is present. It does not authorize execution. Running an experiment still requires an
explicit `run` under the existing acceptance, frozen-gate and evidence rules
-(see [operations](operations.md#validatepreview-a-task-file--task-validate-task-preview)).
+(see [operations](../operations.md#validatepreview-a-task-file--task-validate-task-preview)).
## Use with plan and run
@@ -303,7 +303,7 @@ An Agent uses the same installed CLI and the same machine-readable preview:
4. Review the effective values, their sources and the remaining blockers with the
user. Ask for the blocking fields instead of guessing them.
5. Use the reviewed task with the existing InferRSI operation the user authorizes,
- under the operation's own boundary in [operations](operations.md). For example,
+ under the operation's own boundary in [operations](../operations.md). For example,
run `inferrsi plan --task `, then `inferrsi run --task `
only after explicit authorization. Before `run`, confirm with the user or the
acceptance issue that `acceptance.reference` names the accepted frozen gate
@@ -325,6 +325,6 @@ with the same three section names. Its fields and values differ, for example `gp
backends and the camelCase budgets `maxRounds` and `maxMinutes`, so a DSH draft file
is not a core v1 file. DSH adoption is
tracked under #152. Before DSH advertises core v1 support, it must consume this
-contract and match the [shared fixtures](../tests/fixtures/task-input/README.md) for
+contract and match the [shared fixtures](../../tests/fixtures/task-input/README.md) for
complete and partial tasks, relative paths, budget types, acceptance references and
invalid fields, and migrate incompatible draft fields explicitly.
diff --git a/docs/knowledge-base.md b/docs/knowledge-base.md
index 49ff0905b..08b0f081f 100644
--- a/docs/knowledge-base.md
+++ b/docs/knowledge-base.md
@@ -11,10 +11,10 @@ separate work, not an implemented capability of this knowledge base.
## Directory and responsibility map
-The [illustrated layout and search guide](knowledge-layout.md) shows the task
+The [illustrated layout and search guide](guides/knowledge/knowledge-layout.md) shows the task
entry, physical directories, evidence lookup and old-to-new bundle counts.
-The main agent selects one of the [seven primary skills](knowledge-layout.md#seven-deliverables) by the requested outcome and uses `inferrsi skills enter ` to load its procedure before evidence search. Its decision points use the observed run to choose supporting knowledge. For direct subject browsing, the first library directory answers the reader's question. The second
+The main agent selects one of the [seven primary skills](guides/knowledge/knowledge-layout.md#seven-deliverables) by the requested outcome and uses `inferrsi skills enter ` to load its procedure before evidence search. Its decision points use the observed run to choose supporting knowledge. For direct subject browsing, the first library directory answers the reader's question. The second
identifies a subsystem, an engineering activity, a workflow stage group or
the scope of a case collection. The registry maps each stable ID to a single
bundle; backend and evidence state remain separate metadata.
@@ -263,7 +263,7 @@ cross-skill `reference` access is restricted to the complete selected skills roo
```bash
inferrsi skills reference inference-benchmark-design \
- ../inference-optimization-casebook/cases/admission-drain-occupancy.md
+ ../../../casebooks/inference/inference-optimization-casebook/cases/admission-drain-occupancy.md
# To select a source checkout explicitly, add before the subcommand:
# --root src/inferrsi/knowledge/data/skill_library
```
@@ -332,8 +332,9 @@ package records in stable ID order. A text query uses Find to rank eligible
package records and returns the original catalog JSON. `knowledge show` reads
that JSON by exact ID. Catalog JSON and full package bundle reads need no YAML
parser. `inferrsi read inferrsi.ascend.skills.ascend_graph_mode --material` reads
-the record with its retained library dependency resources. The optional `skills`
-extra enables frontmatter-based `skills list`, `show`, `resource` and `reference`.
+the record with its retained library dependency resources. Frontmatter-based
+`skills list`, `show`, `resource` and `reference` use PyYAML, a core dependency.
+The `skills` extra remains available as a compatibility alias.
An explicit `--skill-root src/inferrsi/knowledge/data/skill_library` exposes the checkout
adapter's original skill and case identities for normalized reads.
@@ -349,7 +350,7 @@ and architecture-specific synchronization/resource/FP8 procedures. Its coverage
inventory distinguishes inspected bodies from source headers and excluded SM100
recipes; native execution and efficacy remain not_run.
-Maintain stable skill IDs, paths and backends in `skill-index.json`. After committing changed skill sources, run `tools/build_skill_index.py` to refresh the two compiled inputs. The catalog assembles public records from the registry, canonical metadata, YAML headers and source fingerprints. Indexed material selection verifies the recorded hashes against the resources it reads. [Contribution workflow](knowledge-contribution-workflow.md)
+Maintain stable skill IDs, paths and backends in `skill-index.json`. After committing changed skill sources, run `tools/build_skill_index.py` to refresh the two compiled inputs. The catalog assembles public records from the registry, canonical metadata, YAML headers and source fingerprints. Indexed material selection verifies the recorded hashes against the resources it reads. [Contribution workflow](guides/knowledge/knowledge-contribution-workflow.md)
Preserve existing states, provenance, notices,
`UNKNOWN` licenses and the two matrices' authority. Migration and installed-package
diff --git a/docs/knowledge-operations.md b/docs/knowledge-operations.md
index 687784426..db225dc42 100644
--- a/docs/knowledge-operations.md
+++ b/docs/knowledge-operations.md
@@ -204,7 +204,7 @@ the resource rules below. `material=True` on a package Skill record returns its
| Additional result | Meaning |
| --- | --- |
-| `retrieval` | Recorded entry, filters, ranking execution, returned-item scores and budget counts; outside budgeted item/resource payloads. See [retrieval observations](knowledge-retrieval-trace.md#execution-observations) |
+| `retrieval` | Recorded entry, filters, ranking execution, returned-item scores and budget counts; outside budgeted item/resource payloads. See [retrieval observations](guides/knowledge/knowledge-retrieval-trace.md#execution-observations) |
| `selection` | Method, cue, scope and whether discovery ranking was applied |
| `contexts` | Selected owner views, each with `ref`, exact Bundle `revision`, resources, `content_bytes`, resource omissions, sources, attribution and limitations |
| `context_omissions` | Owner context unavailable: `unsupported_context`, `index_unavailable` or `context_limit` |
@@ -252,7 +252,7 @@ existing `tools/build_skill_index.py` after committing their inputs.
Offline fixtures establish compatibility and bounded deterministic selection.
Task outcomes, tokens and latency require a separately authorized comparison
-through [Skill Eval](skill-evaluation.md), with cases, versions and budgets frozen
+through [Skill Eval](skill-evaluation/README.md), with cases, versions and budgets frozen
before agent execution. Selection scores and green software checks do not
establish skill efficacy.
@@ -326,7 +326,7 @@ dependency, required), or a custom library selected with `--root`:
```bash
inferrsi skills resource inference-optimization-casebook cases/qwen-ascend-rejected-directions.md
-inferrsi skills reference optimization-search-policy ../inference-optimization-casebook/cases/drama3-rejected-directions.md
+inferrsi skills reference optimization-search-policy ../../../casebooks/inference/inference-optimization-casebook/cases/drama3-rejected-directions.md
```
These commands return a `path` for your file reader; they do not load the body
@@ -334,7 +334,6 @@ or execute it. The Python `read` example above returns the selected case bundle.
Read observations, limitations and suggested revisit conditions before acting.
The case files ship inside the packaged library and are retained as resources of
-its catalog bundles. Individual `checkout:case.*` identities still require the
-explicit `--skill-root` adapter shown above; no separate case catalog records are
-generated. Cases retain their original verdict/verification scope; retrieval is
-not an experiment.
+its catalog bundles. To read an individual `checkout:case.*` identity, select
+the bundled library with `--installed-library` or a custom checkout with
+`--skill-root `. Cases retain their recorded verdict and verification scope.
diff --git a/docs/module-layout.md b/docs/module-layout.md
index b5f5e4d4e..ea85a5848 100644
--- a/docs/module-layout.md
+++ b/docs/module-layout.md
@@ -8,13 +8,19 @@ The [retired path inventory](#retired-root-modules) records the old package
root and the [Apps migration inventory](apps-module-migrations.json) records
compatibility paths that still exist.
+
+
## Module documentation
A top-level module with its own responsibility or extension points benefits
from a short README next to the code. Describe what it owns, where callers
-enter, the key invariants an extension must preserve, and where to find the
-relevant tests and design. The [Harness README](../src/inferrsi/harness/README.md)
-is an example. Small internal packages can be covered by their parent README.
+enter, the invariants an extension must preserve and where to find the tests.
+Small internal packages can share their parent README.
+
+- [Apps](../src/inferrsi/apps/README.md) covers assembly, host adapters and result delivery.
+- [Benchmark](../src/inferrsi/benchmark/README.md) covers task discovery and independent assessment.
+- [Harness](../src/inferrsi/harness/README.md) covers execution, retention and recovery.
+- [Knowledge](../src/inferrsi/knowledge/README.md) covers package data, lookup and reads.
Keep a local design decision in the module README when a short explanation is
enough. A module with a longer lifecycle, rationale or failure model can link to
@@ -22,7 +28,8 @@ a `DESIGN.md` beside its README. Document designs shared by several modules in
the relevant topic under `docs/`. [Architecture](architecture.md) owns
cross-module boundaries, dependencies and composition. [Contracts](contracts/)
own versioned interfaces, schemas and evidence rules. Link to the owning design
-or contract from the module README.
+or contract from the module README. When ownership changes, follow the
+[documentation refactor procedure](contributing.md#documentation-during-a-refactor).
## Target modules
@@ -57,7 +64,7 @@ imports perform no data reads, probes, process launches or service registration.
New optimization plans and evaluation controller snapshots fingerprint the
canonical source files. To inspect or resume a frozen pre-move run, including
`status` and `recover`, use its original runtime under the
-[release-boundary recovery rules](optimization-workflow-unification.md#release-boundary-recovery).
+[release-boundary recovery rules](guides/optimization-workflow-unification.md#release-boundary-recovery).
### Apps integrations migration
@@ -134,16 +141,6 @@ prepared and assessment bytes. The module stays under `tests/`. A process
exit of 0 in that record remains an execution fact; this assessment does not
turn it into a campaign `PASS`.
-## Tentative current ownership
-
-Use the source-adjacent READMEs for current implementation ownership and
-extension entry points.
-
-- [Apps](../src/inferrsi/apps/README.md) covers assembly, host adapters and result delivery.
-- [Benchmark](../src/inferrsi/benchmark/README.md) covers task discovery and independent assessment.
-- [Harness](../src/inferrsi/harness/README.md) covers execution, retention and recovery.
-- [Knowledge](../src/inferrsi/knowledge/README.md) covers package data, lookup and reads.
-
## Import gate
`tests/repository/test_target_module_import_gate.py` fails on a new import of
@@ -560,7 +557,7 @@ the top level and takes `mindie_knowledge` inside `read()`. It is not described
as standard-library-only overall. The grant file, its explicit opt-in, the
recorded read receipts and the OBS layout are unchanged. The `inferrsi mindie`
and `inferrsi campaign import-mindie` commands, the Codex configuration in
-[codex-plugin.md](codex-plugin.md) and the MCP server name are unchanged.
+[codex-plugin.md](guides/plugins/codex-plugin.md) and the MCP server name are unchanged.
The root now holds exactly the two files `__init__.py` and `__main__.py`. The
build-generated `_version.py` is separate wheel metadata.
diff --git a/docs/operations.md b/docs/operations.md
index 36dc101f2..254690d61 100644
--- a/docs/operations.md
+++ b/docs/operations.md
@@ -14,29 +14,29 @@ Effect classes used below:
| Intent | Entry | Effect class | Boundary |
| --- | --- | --- | --- |
-| Verify whether RSI knowledge improves optimization efficiency | CLI `benchmarks compare`; [comparison workflow](benchmark-comparison.md) | Local experiment records / explicit native handoff / report-generating | Apps freezes two-task on/off plans, returns host actions, verifies retained finals and reports Benchmark comparisons; no hidden Agent launch |
-| Complete a task optimization in the current Agent | CLI `benchmarks session start/knowledge/round/status/final/recover` | Experiment-executing / local records | Frozen budget, actual candidates and independent task outcomes. The current Agent drives edits. Real usage is imported explicitly. Recovery collects an existing execution using its [pinned runtime](optimization-workflow-unification.md#release-boundary-recovery) |
-| Optimize an ordinary project in the current Agent | CLI `campaign start/knowledge/round/status/final/recover` | Experiment-executing / local records | Harness freezes explicit caller-provided checks, manages multi-file candidates, executes and assesses retained results. This path does not depend on Benchmark or infer acceptance from the goal. See [shared workflow](optimization-workflow-unification.md) |
-| Reuse one project service across multi-scenario checks | CLI `campaign start --evaluation-mode service_reuse`, then `baseline/round/profile/status/recover/final` | Experiment-executing / local records | Caller supplies protocol and service scripts. An optional profiler can run inline or on a settled round. `resume`, `refresh-references` and explicit retry retain recovery decisions. See [service reuse](service-reuse-campaigns.md) |
-| Prepare and record a fresh native Agent | CLI `agents prepare/dispatch/bind/record/status` | Local records / explicit host handoff | The initiating Agent calls native host tools. Records prevent repeated dispatch; exported host observations do not establish task acceptance. See [native sessions](native-agent-sessions.md) |
+| Verify whether RSI knowledge improves optimization efficiency | CLI `benchmarks compare`; [comparison workflow](benchmarks/benchmark-comparison.md) | Local experiment records / explicit native handoff / report-generating | Apps freezes two-task on/off plans, returns host actions, verifies retained finals and reports Benchmark comparisons; no hidden Agent launch |
+| Complete a task optimization in the current Agent | CLI `benchmarks session start/knowledge/round/status/final/recover` | Experiment-executing / local records | Frozen budget, actual candidates and independent task outcomes. The current Agent drives edits. Real usage is imported explicitly. Recovery collects an existing execution using its [pinned runtime](guides/optimization-workflow-unification.md#release-boundary-recovery) |
+| Optimize an ordinary project in the current Agent | CLI `campaign start/knowledge/round/status/final/recover` | Experiment-executing / local records | Harness freezes explicit caller-provided checks, manages multi-file candidates, executes and assesses retained results. This path does not depend on Benchmark or infer acceptance from the goal. See [shared workflow](guides/optimization-workflow-unification.md) |
+| Reuse one project service across multi-scenario checks | CLI `campaign start --evaluation-mode service_reuse`, then `baseline/round/profile/status/recover/final` | Experiment-executing / local records | Caller supplies protocol and service scripts. An optional profiler can run inline or on a settled round. `resume`, `refresh-references` and explicit retry retain recovery decisions. See [service reuse](guides/service-reuse-campaigns.md) |
+| Prepare and record a fresh native Agent | CLI `agents prepare/dispatch/bind/record/status` | Local records / explicit host handoff | The initiating Agent calls native host tools. Records prevent repeated dispatch; exported host observations do not establish task acceptance. See [native sessions](guides/native-agent-sessions.md) |
| Discover packaged tasks | CLI `benchmarks list [--iterative]` / `benchmarks show`; Python `benchmark.registry.builtin_tasks` / `describe_task` | Read-only | Reads the installed registry and [task manifests](benchmarks/engineering-benchmarks.md). The optional filter selects task packages with an `optimization.py` file at their root |
| Execute one packaged task | CLI `benchmarks run`; Python `apps.workflows.benchmark_operations.run_task` | Experiment-executing | Application launches the task entry, supplies the execution callback and preserves arguments and exit status. The task owns its device, measurement and assessment protocol |
| Find relevant cases, skills and records | CLI `find` | Read-only | Default discovery across the registered library and package records. Follow the emitted command to read a hit and its revision |
| Inspect the package catalog | CLI `knowledge search` / `knowledge show`; catalog API | Read-only | Filtered inventory and existing catalog scripts. Uses the installed package's tier/repo/backend/scenario filters and IDs |
| Prepare model-aware engine research | CLI `knowledge research`; Python `research_knowledge` | Read-only | Independent model/framework/task/modality/mechanism queries over the same package catalog; source-grounded known profiles, deduplicated matches and explicit target annotations; no engine/hardware qualification |
| Enter an inference task or discover/read skills | CLI `skills enter` / `list` / `show` / `resource` / `reference` | Read-only | `enter` loads one primary owner's complete procedure before evidence search. `list`/ `show` inspect skill metadata and instructions. `resource`/`reference` resolve paths for your file reader. |
-| Retrieve and cite external round knowledge | CLI `benchmarks session knowledge / knowledge-read`, AB/BA `campaign knowledge / knowledge-read` | Local evidence-writing | Requires an explicit `--cannbot-platform` at start and an approved project grant. Retains search and read metadata. Cite a delivered receipt with `round --knowledge-ref`. See [round retrieval](optimization-benchmarks.md#include-cannbot-in-the-round) |
+| Retrieve and cite external round knowledge | CLI `benchmarks session knowledge / knowledge-read`, AB/BA `campaign knowledge / knowledge-read` | Local evidence-writing | Requires an explicit `--cannbot-platform` at start and an approved project grant. Retains search and read metadata. Cite a delivered receipt with `round --knowledge-ref`. See [round retrieval](benchmarks/optimization-benchmarks.md#include-cannbot-in-the-round) |
| Collect selected knowledge | CLI `collect`; Python `KnowledgeReader.collect` | Read-only | Batch selection and budgeted assembly by query or exact IDs, with revisions and omissions. The only accepted explicit `--relevance-method` value is `find-lexical-v1` |
| Read exact material/resources | CLI `read` / `resource`; Python `KnowledgeReader.read` / `KnowledgeReader.resource` | Read-only | Returns the requested revision or an explicit unavailable/stale error; never substitutes newer bytes |
| Export legacy cited material | CLI `context` | Read-only | Cited package export for manual use with a coding agent; not a conversation store and not a full Collect equivalent |
| Create/update a store candidate | Python `KnowledgeStore.create` / `KnowledgeStore.update` | Candidate-writing | One explicitly authorized local store; expected-revision updates with reason and evidence; retained history; no promotion and no edits to package/checkout content |
| Inspect a store candidate's history | Python `open_knowledge_store(...).history` | Read-only | Opens an existing store and reads the revision lineage for one store ID |
| Amend repository-owned knowledge | Scoped repository PR | — | Repository review and integration authority apply; this is not a runtime store Update |
-| Validate or preview a YAML task file | CLI `task validate` / `task preview [--json]` / `task schema` / `task template`; [task input](task-input.md) | Read-only | Reads one schema v1 task file and prints field errors, effective normalized values, their sources and plan/run blockers. Starts no process or probe and writes no workspace, plan, run or evidence file. A complete preview does not authorize execution |
+| Validate or preview a YAML task file | CLI `task validate` / `task preview [--json]` / `task schema` / `task template`; [task input](guides/task-input.md) | Read-only | Reads one schema v1 task file and prints field errors, effective normalized values, their sources and plan/run blockers. Starts no process or probe and writes no workspace, plan, run or evidence file. A complete preview does not authorize execution |
| Inspect/prepare experiments | CLI `doctor`; `plan` or `--dry-run` | Read-only inspection / preview | `doctor` may invoke bounded probes and does not certify target compatibility; `plan` previews a specification without persisting a campaign or authorizing execution |
| Execute/inspect experiments | CLI `run`; `status`; `report` | Experiment-executing / read-only / report-generating | `run` executes caller-supplied commands and records evidence; `status` reads recorded progress; `report` generates HTML from recorded evidence |
-| Deliver retained results | CLI `export --input --output [--agent-job]`; Python `apps.delivery.export_bundle` / `read_bundle` | Report-generating | Publishes Markdown, offline HTML, versioned result JSON and artifact index from one snapshot without remeasurement. Optional native-job input verifies standalone Benchmark terminal token usage. Iterative CLI final returns separate delivery status. See [result delivery](result-delivery.md) and [Benchmark metrics](benchmarks/benchmark-metrics.md) |
-| Inspect/verify archived evidence | `python tools/verify_evidence_archive.py`; [archive contract](evidence-archiving.md) | Read-only by default; explicit network/local scratch with `--download` | Default validates metadata offline; `--archive`/`--download` authenticates and bounds archive reading; `--recomputed` compares separately generated v2 results; never executes archived code or changes verdicts |
+| Deliver retained results | CLI `export --input --output [--agent-job]`; Python `apps.delivery.export_bundle` / `read_bundle` | Report-generating | Publishes Markdown, offline HTML, versioned result JSON and artifact index from one snapshot without remeasurement. Optional native-job input verifies standalone Benchmark terminal token usage. Iterative CLI final returns separate delivery status. See [result delivery](guides/result-delivery.md) and [Benchmark metrics](benchmarks/benchmark-metrics.md) |
+| Inspect/verify archived evidence | `python tools/verify_evidence_archive.py`; [archive contract](guides/evidence-archiving.md) | Read-only by default; explicit network/local scratch with `--download` | Default validates metadata offline; `--archive`/`--download` authenticates and bounds archive reading; `--recomputed` compares separately generated v2 results; never executes archived code or changes verdicts |
| Rebuild scoped legacy evidence views | `python tools/rebuild_model_evidence.py --archive --output ` | CPU-only; creates a new output directory | Authenticates original bytes and pinned projection/code; no extraction, network, archived-code execution or campaign qualification |
| Inspect evidence inventory / generate budget input | `python tools/validate_evidence.py [--budget-assets]` | Read-only | Offline layout/hash/schema checks; optional disposable #328 metadata view derived from campaign authority; no downloads |
| Execute one ordinary local CPU command with a fixed record | Python `inferrsi.harness.api.Harness.allocate` / `execute` / `read` | Experiment-executing / record-writing | One explicit RunStore root and one trusted local CPU target; ordinary command mode only; a record holds execution facts, so exit 0 is not a verdict; no device, model or network fallback |
@@ -48,7 +48,7 @@ Effect classes used below:
| Assemble evidence capture by role | Python `apps.api.EvidenceCapture`; [host adapter](contracts/apps-evidence-capture.md) | Read-only byte assembly / injected pure projection | Reads only H-authorized candidate/report refs; no grading, producer sealing or record/archive writes; reentry is short-circuited by H |
| Replay the same saved execution request | Python `inferrsi.harness.api.Harness.execute` | Existing-state query / fixed record-reading | Same attempt and canonical digest; existing state short-circuits fresh binding/execution; [replay and original limits](contracts/harness-evaluation-replay.md) |
| Freeze a configured P1 preparation | Python `benchmark.preparation.PreparationService.prepare`; [production prepare](contracts/production-prepare.md) | Read-only resource access / pure encoding | Verifies supplied frozen worker/resource bytes and returns a preparation, protocol and role-keyed closure; Apps separately archives them before publishing a Ref |
-| Evaluate saved requests | CLI `evaluate prepare/execute/assess`; [saved-request CLI](apps-evaluate-cli.md) | Local archive/output writing; execute additionally runs the configured H target | Explicit saved request, output ID, storage and trusted runtime configuration; reuses Apps ports and results without allocating attempts, selecting feedback or retrying |
+| Evaluate saved requests | CLI `evaluate prepare/execute/assess`; [saved-request CLI](guides/apps-evaluate-cli.md) | Local archive/output writing; execute additionally runs the configured H target | Explicit saved request, output ID, storage and trusted runtime configuration; reuses Apps ports and results without allocating attempts, selecting feedback or retrying |
| Assess one fixed P1 record offline | Python `benchmark.assessment.assess`; [production assess](contracts/production-assess.md) | Read-only retained evidence / pure encoding | Verifies the frozen protocol, actual capture and proof bytes; returns independent claims without launching a worker or writing an archive; Apps selects the primary key and archives the result |
| Project P1 worker reports into capture drafts | Python `benchmark.proofs` codecs / `ProofProjector.project`; [proof drafts](contracts/production-proofs.md) | Pure computation | Produces proof bytes from supplied capture facts and reports; H must authenticate, retain and seal them before commit; no worker or grader execution |
| Configure the CPU evidence-smoke task | Python `benchmark.cpu_smoke.prepare_service`; [task contract](contracts/p1-cpu-smoke.md) | Read-only owned resource configuration | Freezes the standalone worker and same-source baseline for the existing prepare port; actual execution/retention stays in H; no performance-gain claim |
@@ -56,26 +56,26 @@ Effect classes used below:
| Seal host-approved generation context without a policy Ref | Python `harness.generation.prepare_generation`; [feedback boundary](contracts/generation-feedback.md) | Local context / generation-plan retention | The trusted host authorizes feedback and excludes final-only results before handoff. Without the opt-in policy Ref, H seals supplied material and does not prove feedback-policy enforcement or execute a worker |
| Visualize a recorded run or campaign | CLI `dashboard`; [dashboard](dashboard.md) | Report-generating / local read-only serving | Writes an offline HTML snapshot or serves an optional live view on loopback; does not run an agent or validate a claim |
| Capture a knowledge context | CLI `campaign capture-context`; [offline dashboard](dashboard.md#record-the-optimization-story-campaign-trace) | Local evidence-writing | Saves assembled context and resource hashes in a new `knowledge/.json`. Supports ordinary questions and explicit IDs. The only accepted explicit `--relevance-method` value is `find-lexical-v1` |
-| Retain an executed retrieval | Python `apps.workflows.campaign.save_retrieval`; [capture contract](knowledge-retrieval-trace.md#retain-a-standalone-result) | Local evidence-writing | Saves an existing catalog/collect result under a fresh campaign capture ID; no new search or automatic publication |
+| Retain an executed retrieval | Python `apps.workflows.campaign.save_retrieval`; [capture contract](guides/knowledge/knowledge-retrieval-trace.md#retain-a-standalone-result) | Local evidence-writing | Saves an existing catalog/collect result under a fresh campaign capture ID; no new search or automatic publication |
| Import one round of knowledge searches | CLI `campaign import-search`; [round import](dashboard.md#import-one-rounds-searches) | Local evidence-writing | Reads a Codex rollout window or context captures. With `--archive-review`, retains excerpts of attributable tool returns and reviewed decisions for readers of the evidence bundle. |
| Record the optimization log | CLI `campaign log`; [offline dashboard](dashboard.md#record-the-optimization-story-campaign-trace) | Local evidence-writing | Validates and stores a new numbered campaign log version; the dashboard cross-checks it against captures and runs |
| Assemble an optimization trace | CLI `campaign assemble-trace`; [per-candidate narrative](dashboard.md#per-candidate-narrative-schema-version-1) | Local evidence-writing | Copies an explicitly reviewed context into a new bounded campaign-root snapshot; caller owns redaction and narrative accuracy |
-| Import a MindIE read | CLI `campaign import-mindie`; [Codex workflow](codex-plugin.md#mindie-knowledge) | Local evidence-writing | Retains caller-supplied query/explain bytes and hashes, exports delivered graded bodies and a trace context fragment; no activation, model call, transcript capture or automatic caller review |
+| Import a MindIE read | CLI `campaign import-mindie`; [Codex workflow](guides/plugins/codex-plugin.md#mindie-knowledge) | Local evidence-writing | Retains caller-supplied query/explain bytes and hashes, exports delivered graded bodies and a trace context fragment; no activation, model call, transcript capture or automatic caller review |
| Associate runs with a local campaign | CLI `campaign init` / `campaign record` / `campaign decide`; [offline dashboard](dashboard.md) | Local evidence-writing | Legacy manual records reference existing artifacts and never start an agent; record/decide cannot mutate a managed optimization campaign |
-| Adapt existing Flare delivery evidence | [Offline qualification adapter](flare-qualification.md), `python -m inferrsi.benchmark.validators.flare` | Read-only | Existing raw packets and a separate receipt; one HTTP delivery metric, no model/server/device execution |
-| Evaluate selected skill revisions | [Bounded skill-evaluation driver](skill-evaluation.md) | Experiment-executing | Explicitly authorized real Codex calls, independent task verdicts and private evidence; separate from numeric engine-performance scoring |
-| Compare skill additions or updates | [Configured skill comparison](skill-eval-comparison.md), `python -m tools.skill_eval_compare` | Read-only preparation / experiment-executing / report-generating | Fixed Git snapshots and one shared exam; explicit plan authorization for execution; JSON + Markdown regeneration makes no model calls |
+| Adapt existing Flare delivery evidence | [Offline qualification adapter](benchmarks/flare-qualification.md), `python -m inferrsi.benchmark.validators.flare` | Read-only | Existing raw packets and a separate receipt; one HTTP delivery metric, no model/server/device execution |
+| Evaluate selected skill revisions | [Bounded skill-evaluation driver](skill-evaluation/README.md) | Experiment-executing | Explicitly authorized real Codex calls, independent task verdicts and private evidence; separate from numeric engine-performance scoring |
+| Compare skill additions or updates | [Configured skill comparison](skill-evaluation/skill-eval-comparison.md), `python -m tools.skill_eval_compare` | Read-only preparation / experiment-executing / report-generating | Fixed Git snapshots and one shared exam; explicit plan authorization for execution; JSON + Markdown regeneration makes no model calls |
| Export a cloud-generated parser pair | [Generation-only protocol](skill-evaluation/skill-eval-generation-only.md), `python -m tools.skill_eval_cloud_export` | Local evidence-writing; no execution or publication | Validates frozen inputs and retained sources; writes one bounded inert JSON bundle, never executes parser source |
| Review the historical parser generation pilot | [Main-only historical job record](skill-evaluation/skill-eval-historical-job.md) | Historical audit | The checked-in authorization expired at 16:00 UTC on 2026-10-30. The workflow and frozen controls remain available for audit. |
| Qualify an artifact verifier host | [Manual reviewer qualification](skill-evaluation/skill-eval-reviewer-qualification.md), `python -m tools.skill_eval_qualify` | Trusted-control execution / report-generating | Manual main-only workflow; fixed software controls, no model or external artifact input; unavailable isolation fails rather than skips |
| Replay a cloud-generated parser pair | [Isolated cloud replay](skill-evaluation/skill-eval-cloud-replay.md), `python -m tools.skill_eval_cloud_replay` | Untrusted-artifact execution / report-generating | Manual pinned data ingress; same-host controls before bubblewrap-only replay; no models or credentials |
-| Validate one harness-improvement step | [Offline improvement](harness-improvement.md), Python `tools.skill_eval_improve.prepare` / `run_offline` | Snapshot-writing / offline experiment-executing | Supplied declarative INV/DOM edits, shared total limits, rerun and one holdout gate; trusted fixed-output clients only; no real-model or Store execution |
+| Validate one harness-improvement step | [Offline improvement](guides/harness-improvement.md), Python `tools.skill_eval_improve.prepare` / `run_offline` | Snapshot-writing / offline experiment-executing | Supplied declarative INV/DOM edits, shared total limits, rerun and one holdout gate; trusted fixed-output clients only; no real-model or Store execution |
| Build an offline candidate tree and completion menu | Python `harness.search_tree` / `harness.verification_plans.completion_menu`; [control contract](speculative-search.md) | Read-only / in-memory transitions | Immutable candidates, scoped caller-supplied receipts and bounded exact plans; execution, durable state, accounting, learned roles and final acceptance require separate adapters |
| Run bounded speculative Engine search and role updates | `inferrsi search engine`; [support and configuration](speculative-search.md) | Execution / candidate writes / CPU model updates | Explicit shared RunStore, permissions, checkpoint, budgets, domain and final gate; actual device allocation is caller-owned |
| Inspect/export speculative search | `inferrsi search status` / `search export` | Read / output artifact | Reads the existing store; never restarts search, training or final evaluation |
| Compose Skill speculative search | Python `apps.workflows.search_benchmarks.SkillEvaluator` and checkout `tools.speculative_skill.Comparator` | Explicit provider execution through existing comparator | Frozen original baseline, split descriptors, independent grader and bounded provider; see campaign accounting limits in the support matrix |
| Plan and report skill PR evaluations | [Skill PR integration](skill-eval-pr.md), `python -m tools.skill_eval_pr` | Read-only planning / authorized experiment-executing / PR-publishing | Trusted mapping, exact operator approval, consumed execution identity and credential-separated publication from retained evidence; no automatic paid trials |
-| Recover goal progress and the next proposal | [Offline goal checkpoints](goal-checkpoints.md), `python -m tools.goal_checkpoint` | Read-only | Explicit scope/criteria, pinned owner decisions and existing comparison receipts; a disposable view, never execution or acceptance authority |
+| Recover goal progress and the next proposal | [Offline goal checkpoints](guides/goal-checkpoints.md), `python -m tools.goal_checkpoint` | Read-only | Explicit scope/criteria, pinned owner decisions and existing comparison receipts; a disposable view, never execution or acceptance authority |
| Summarize campaign gains | `tools/campaign_summary_chart.py`; `report`/`run` figure | Figure-generating | Renders recorded values into one gain figure plus a matching table; validates the specification and computes nothing new |
The `collect`, `read` and `resource` commands share the reader's rules; they
@@ -309,7 +309,7 @@ to regenerate the index, then retry.
#### External channels are not installed with this package
`find` can also query separately enabled read-only channels. A fresh install
-searches the packaged corpus. See [fresh-install output and setup](external-channels.md#a-fresh-install-has-no-external-channel)
+searches the packaged corpus. See [fresh-install output and setup](guides/knowledge/external-channels.md#a-fresh-install-has-no-external-channel)
for the explicit per-checkout grant and source access requirements.
- **Inputs:** `--backend ` declares the task backend; **without it and
@@ -401,7 +401,7 @@ The public preparation, execution and assessment API remains
`inferrsi.apps.storage.archive`, `artifact_reader` and `result`; the directory
creation helper is `inferrsi.apps.storage.evidence_layout.ensure_evidence_layout`.
The CLI entry remains `inferrsi.apps.cli:main`. See the
-[output contract](apps-output.md) and [migration inventory](apps-module-migrations.json)
+[output contract](guides/apps-output.md) and [migration inventory](apps-module-migrations.json)
for the retained old Apps imports and canonical storage paths.
`inferrsi.apps.handoff.bridge`, `handoff.context_provider` and
`handoff.candidate_provider` implement execution/evidence binding, context
@@ -419,8 +419,8 @@ delivery and generation handoff. The API still exports the one canonical
Explicit flags override YAML values, YAML values override built-in defaults, and an
omitted flag never replaces a YAML value. Acceptance fields come from the file. See
-[task input](task-input.md). `plan --task` and `run --task` use a complete file with
-the same merge (see [use with plan and run](task-input.md#use-with-plan-and-run)).
+[task input](guides/task-input.md). `plan --task` and `run --task` use a complete file with
+the same merge (see [use with plan and run](guides/task-input.md#use-with-plan-and-run)).
### Inspect/prepare — `doctor`, `plan`, `--dry-run`
@@ -441,7 +441,7 @@ compatibility.
- **Scope:** caller-supplied benchmark, candidate and validation commands under the experiment contract.
- **Output:** a run ID and evidence directory; recorded progress; an HTML report. With `--task`, the run directory also holds `task.json`, the task preview, and `frozen_gate.json`, the gate result with the record's SHA-256 for citation in the acceptance issue.
- **Side effects:** `run` executes the supplied commands and owns child-process cleanup; `report` writes HTML into the run directory.
-- **Failure behavior:** exit codes 0 PASS, 1 FAIL, 2 INCONCLUSIVE/input errors; cancellation is recorded. With `--task`, task field errors and blockers exit 2 before any probe. A task whose acceptance fields differ from the frozen gate record (`mismatch`), or whose gate cannot be checked (`unverified`: an HTTP(S) reference, a missing file, or a record that is not a schema v1 `acceptance` section stating the gate), also exits 2 before any probe; see [frozen gate record](task-input.md#frozen-gate-record). A baseline checkout `HEAD` that differs from `acceptance.baseline_revision` exits 2 after inspection. In all three cases no command starts and nothing is written.
+- **Failure behavior:** exit codes 0 PASS, 1 FAIL, 2 INCONCLUSIVE/input errors; cancellation is recorded. With `--task`, task field errors and blockers exit 2 before any probe. A task whose acceptance fields differ from the frozen gate record (`mismatch`), or whose gate cannot be checked (`unverified`: an HTTP(S) reference, a missing file, or a record that is not a schema v1 `acceptance` section stating the gate), also exits 2 before any probe; see [frozen gate record](guides/task-input.md#frozen-gate-record). A baseline checkout `HEAD` that differs from `acceptance.baseline_revision` exits 2 after inspection. In all three cases no command starts and nothing is written.
Task-mode RunSpec validation, including local candidate-directory checks, runs before
environment probes. The frozen baseline also binds the execution through the existing
@@ -496,21 +496,21 @@ snapshot pinned at startup. The campaign Dashboard remains available through
- **Output:** an SVG figure, plus a Markdown table with the same values when `--markdown` is given. `report` and `run` also write `summary-chart.svg` into the run directory and inline it in the HTML report. When selected trial checks leave the current comparison incomplete, the report omits the figure (including a campaign specification) and removes any previously generated SVG; raw measurements and the campaign JSON remain available.
- **Side effects:** writes the requested files; nothing is executed and no network or GPU is touched.
- **Failure behavior:** exit code 2 with the offending field name when the specification is incomplete, ambiguous or inconsistent; a report without a paired measurement states why it has no figure.
-- **Example:** [campaign summary chart](campaign-summary-chart.md)
+- **Example:** [campaign summary chart](dashboard/campaign-summary-chart.md)
## Optimization requests
- **Measure the value of knowledge.** Start with `inferrsi benchmarks compare --help`
and follow `next_action`. The default comparison uses Qwen denoising and MoE
- forward in independent on/off sessions. See the [comparison workflow](benchmark-comparison.md).
+ forward in independent on/off sessions. See the [comparison workflow](benchmarks/benchmark-comparison.md).
- **Optimize your project.** Use `inferrsi campaign` in the current Agent
conversation. Supply the workload, metric, gates, scripts and budget, then
record the measured bottleneck before candidate search. The
- [shared workflow](optimization-workflow-unification.md) defines round limits,
+ [shared workflow](guides/optimization-workflow-unification.md) defines round limits,
recovery and dashboard generation from the Harness control record.
-- **Optimize a packaged task.** Follow the [benchmark session workflow](optimization-benchmarks.md)
+- **Optimize a packaged task.** Follow the [benchmark session workflow](benchmarks/optimization-benchmarks.md)
through rounds and independent final retest. By default the initiator prepares,
- dispatches and binds one [fresh native session](native-agent-sessions.md). The
+ dispatches and binds one [fresh native session](guides/native-agent-sessions.md). The
execution Agent owns the optimization lifecycle without redelegating. An
explicit current-conversation request uses the same workflow directly.
`benchmarks run` measures one candidate within that workflow.
diff --git a/docs/quickstart.md b/docs/quickstart.md
index a9abca27c..87785d24b 100644
--- a/docs/quickstart.md
+++ b/docs/quickstart.md
@@ -4,7 +4,7 @@ This release uses CLI args and a **local executor on a prepared machine**. Insta
## Install and smoke
-From the checked-out PR branch:
+From the repository checkout:
```bash
python -m venv .venv
@@ -17,11 +17,11 @@ inferrsi doctor --repo . --repo-type vllm_omni --backend cpu
The base install supports `skills enter `, `find`, Case reads and
package-only knowledge operations. PyYAML is a core dependency, so it also supports
commands that parse skill frontmatter, including direct reads from a checkout or a
-custom skill root, and the read-only [YAML task file](task-input.md) commands
+custom skill root, and the read-only [YAML task file](guides/task-input.md) commands
`inferrsi task validate|preview`. The `skills` extra remains as a compatibility alias.
-For the maintained model examples, see [Qwen B300](qwen-image-2.1-turbo-b300.md)
-and [Qwen Ascend](qwen-image-2.1-turbo-ascend.md). Continue below for the generic
+For the maintained model examples, see [Qwen B300](field-notes/qwen-image-2.1-turbo-b300.md)
+and [Qwen Ascend](field-notes/qwen-image-2.1-turbo-ascend.md). Continue below for the generic
benchmark/quality command contract; set the acceptance threshold from your plan.
## MLX discovery and source knowledge
@@ -40,7 +40,7 @@ The probe reads chip and package metadata. See the
## Discover knowledge and skills
For an inference engineering task, select the [primary skill for the user's
-goal](knowledge-layout.md#seven-deliverables), run `inferrsi skills enter `
+goal](guides/knowledge/knowledge-layout.md#seven-deliverables), run `inferrsi skills enter `
and read the returned procedure before searching. For example, when inference
succeeds but output quality regresses, load `inferrsi skills enter task-accuracy`.
Use the observed run to choose supporting evidence. Standalone `find` ranks
@@ -123,7 +123,7 @@ from omitted flags. CLI defaults are not accepted campaign goals.
Use `inferrsi plan --help` or `inferrsi run --help` for the installed
version's flags. The [operation guide](operations.md#intent-map) maps tasks to
-commands. Use [YAML task input](task-input.md) to validate or preview a saved
+commands. Use [YAML task input](guides/task-input.md) to validate or preview a saved
configuration.
Scenario/model/workload/Agent fields retain caller declarations. They do not start an Agent or automatically generate model recipes. The initial evaluator checks one positive numeric metric and the caller's validation command. It does not implement all SLO/quality metrics from the target design.
diff --git a/docs/reference-matrix.md b/docs/reference-matrix.md
index c67d3d187..c44816e3e 100644
--- a/docs/reference-matrix.md
+++ b/docs/reference-matrix.md
@@ -1,6 +1,8 @@
# InferRSI Reference Matrix
-**Branch:** `opus/meta-skill-bootstrap` | **Integration date:** 2026-10-16 | **Comparison anchor:** `d96ff8d3`
+The [original matrix](https://github.com/InferMatrixLab/InferRSI/blob/e0458654da9baef57cefc990ab75146b24d73234/docs/reference-matrix.md)
+records `opus/meta-skill-bootstrap` and `d96ff8d3` for the 2026-10-16 integration.
+Later entries carry their own source revisions.
Current skill links resolve to the complete categorized
[skill library](../src/inferrsi/knowledge/data/skill_library/README.md). Hardware-specific
@@ -365,7 +367,7 @@ independent corroboration or a new source-mechanism count.
## Issue #27 reconciliation: Drama3 NPU readiness
Supplement scope only; **no new mined coverage or measured cell is credited**.
-The [Drama3 NPU readiness supplement](drama3-npu-readiness.md) maps the
+The [Drama3 NPU readiness supplement](field-notes/drama3-npu-readiness.md) maps the
RFC-pinned GPU source and existing imported records to a stage/state execution
map, a state-correctness contract and a measurement/quality contract.
diff --git a/docs/release-notes/README.md b/docs/release-notes/README.md
new file mode 100644
index 000000000..9854e93b6
--- /dev/null
+++ b/docs/release-notes/README.md
@@ -0,0 +1,259 @@
+# Daily previews and weekly stable releases
+
+The [release bot](../../.github/workflows/release.yml) runs on the default branch.
+Both schedules use Asia/Shanghai time. GitHub may delay a scheduled run.
+
+| Schedule | Version | Changes since | GitHub designation |
+| --- | --- | --- | --- |
+| Every day at 02:00 (18:00 UTC the previous day) | Next patch, e.g. v0.3.1 | Latest published numeric release | Pre-release |
+| Sunday at 08:00 (00:00 UTC Sunday) | Next minor, e.g. v0.3.0, then v0.4.0 | Latest published numeric stable release | Latest |
+
+After weekly activation, Sunday runs both channels. Each skips an unchanged source tree against its own
+baseline. A preview can therefore become stable on the same commit. A published
+stable release also satisfies the current Sunday-to-Saturday window on retries.
+Drafts and reserved tags consume version numbers. Evidence archive tags are
+outside the numeric sequence. Both channels build and validate packages before
+publication. A stable release uses reviewed highlights from
+`docs/release-notes/.md` when present. Otherwise the notes job generates a
+summary from the channel baseline. GitHub's generated changelog covers that
+same range. The daily publisher checks that the latest numeric release still
+matches its plan. The weekly publisher checks that its stable baseline is
+current and that its target is still the newest eligible version. An intervening
+preview below that target can still precede the weekly release. A mid-week
+hotfix reaches preview first and is eligible for stable on Sunday.
+
+## Authority boundary
+
+The bot's only repository mutations are creating a new `refs/tags/`
+at an existing reviewed commit and creating/uploading/publishing that version's
+Release. It must not create code commits, edit repository files, create/update/
+delete code branches, create/approve/merge PRs or enable auto-merge. Configuration
+development and review are contributor work; they are not bot capabilities.
+
+Plan/build/notes jobs have Contents read access. Only the publisher receives Contents
+write; Pull requests permission is explicitly none. The publisher validates its
+tag/SHA inputs and never checks out or executes repository code. Regression
+tests execute its actual shell commands against a recording GitHub mock that
+rejects non-publication writes.
+
+This is an enforced workflow behavior contract, not a tag-only token scope.
+GitHub's Contents write permission also authorizes
+[file commits](https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents)
+and [PR merging](https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request);
+setting Pull requests to none does not remove those Contents capabilities.
+GitHub does not offer a separate tag/Release-only GITHUB_TOKEN permission.
+Server-side branch restrictions need a separately scoped repository-policy
+change: the GitHub Actions App identity is shared by other workflows, so this
+configuration does not silently change their access or existing branch rules.
+
+## Publication flow
+
+1. Snapshot the default branch and inspect stable tags plus published Releases.
+ Private drafts are not successful-release baselines. Compare exact
+ source trees and reject a published source outside the default branch's
+ history rather than silently release a rollback.
+2. Create a local tag in a read-only build job. `setuptools-scm` derives both
+ distribution and runtime versions from that tag. The build pins SCM's
+ package-specific version override to the validated plan, avoiding ambiguous
+ Git version discovery when failed reservations share a source commit.
+ Tags point directly at the
+ reviewed source commit; the bot does not write version commits to `main`.
+3. Run CPU tests/lint, build the sdist and a wheel from the sdist, check metadata
+ with `twine`, and run the complete installed-package checker in a clean wheel
+ environment outside the checkout. Check tag/distribution/runtime parity and
+ generate `SHA256SUMS`. `MANIFEST.in` limits sdist contents to package sources
+ and build metadata; repository evidence/workflows are not release payload.
+ Reuse `tools/build_codex_plugin.py` and `tools/build_workswarm_plugin.py` to
+ build `inferrsi-codex-plugin-vX.Y.Z.zip` and
+ `inferrsi-workswarm-plugin-vX.Y.Z.zip` from the same source revision.
+ Each archive's generated host metadata, bundled runtime and tag must have
+ the same version. Check its native entrypoints, verify every bundled runtime
+ hash and exercise the extracted launcher/knowledge reads outside the checkout
+ with isolated Python. These CPU checks do not run WorkSwarm's SDK or UI.
+4. After a successful build, an optional read-only notes job calls the AI API
+ with bounded change metadata for exactly the planned revision range. Its
+ Markdown summary is transferred as a separate artifact. Missing credentials,
+ API/validation errors and unavailable notes artifacts fall back to the
+ existing GitHub-generated notes.
+5. A separate write job verifies the artifacts, source ancestry and release
+ state again. It creates the remote tag only after validation, creates an
+ internal draft, uploads wheel/sdist/both plugin ZIPs/checksums and automatically publishes
+ after confirming the attachments and tag identity. It does not execute
+ repository code. These operations stay in the same workflow: tag events
+ created with `GITHUB_TOKEN` do not trigger another workflow.
+
+All source-tree changes, including documentation, are eligible. The
+[notes configuration](../../.github/release.yml) groups existing `enhancement`,
+`bug` and `documentation` labels and includes other merged PRs. Notes use the
+channel's previous published tag. A release describes
+software changes; CPU/package checks do not establish campaign `PASS`, model
+quality or service performance. Such claims retain the acceptance and evidence
+requirements in [contributing](../contributing.md#evidence-and-claims).
+
+## AI release summaries
+
+To enable AI summaries, add the Actions repository secret `DS_API_KEY` under
+**Settings → Secrets and variables → Actions**. The key is injected only into
+the notes step as the helper's internal `OPENAI_API_KEY` environment variable.
+The workflow does not read or fall back to the old `OPENAI_API_KEY` repository
+secret. Do not put the key in workflow source, command arguments, PR text or
+logs. API access and usage are billed by the selected provider for that key;
+GitHub Copilot access is not required.
+
+The default API model is `deepseek-flash`, documented by DeepSeek as
+[DeepSeek-V4.1-Flash-1017](https://api-docs.deepseek.com/quick_start/pricing/)
+when this configuration was added. This is a provider-managed alias, not a
+version pin; DeepSeek may upgrade its target. Set the optional Actions repository variable
+`OPENAI_RELEASE_NOTES_MODEL` to another model available to your API account and
+compatible with the Responses API. Set `OPENAI_BASE_URL` to select the approved
+HTTPS provider: `https://api.deepseek.com` (the fallback),
+`https://api.openai.com/v1` or `https://yibuapi.com/v1`. This repository uses
+DeepSeek's official API and sends the configured key only to its `/responses`
+endpoint. The existing `OPENAI_*` setting names also apply to DeepSeek; use a key
+issued by the selected provider. The configured API model ID is sent unchanged;
+the helper does not substitute a model when it is unavailable. Trailing slashes
+are normalized; other hosts,
+HTTP, userinfo, query strings and fragments are rejected before sending a key.
+Redirects remain disabled. Additional providers require a reviewed allowlist
+change. Without the secret, the workflow skips AI generation and continues ordinary
+publication.
+
+The [notes helper](../../tools/generate_release_notes.py) sends bounded commit
+subjects, source links and file-change statistics from the previous successful
+tag through the planned commit. It omits author metadata, commit bodies and raw
+patches. Recognizable email/IP literals, URLs, personal paths and common
+credential forms in selected metadata are replaced with labeled placeholders
+before transmission; generated canonical commit links remain available. This
+targeted redaction supplements the repository's privacy rules for source
+metadata. Inputs are treated as source data, not executable instructions.
+The prompt asks for a concise English overview of software features, fixes and
+compatibility changes, with at most six bullets, 250 words of prose and one
+supplied commit link per bullet. It must not invent performance/quality or campaign PASS
+claims. The response is labeled **AI-generated summary** and prepended to the
+original GitHub changelog, preserving its PR links and source/evidence notice.
+When source metadata is truncated, the helper appends a fixed coverage notice
+from the source flags. The model is asked to leave coverage statements to the helper.
+Model output is read as a file and never executed as shell code.
+Explicit URLs and Markdown links in model output must be simple inline links to
+canonical commit URLs present in the supplied source. Images, reference links,
+bare URL/email autolinks and unsupported or unverified link forms cause fallback.
+This gate validates generated link syntax; GitHub's own reference and custom
+autolink rendering remains repository policy.
+
+The helper makes one request using the
+[Responses API](https://api-docs.deepseek.com/guides/responses_api/), with
+bounded input/output (at most 3,200 output tokens), a timeout, no tools and
+`store: false`. DeepSeek requests
+set reasoning effort to `none` for the short summary. DeepSeek ignores `store`
+and documents stateless Responses compatibility; this setting does
+not establish zero data retention. Missing credentials, failed/incomplete/refused
+or unusable responses leave no summary. The optional notes job or artifact may
+fail without skipping an otherwise valid publication; failed package checks and
+workflow cancellation still prevent publication. The AI job has no repository
+write permission, and the publisher receives no API key. There is no AI code
+commit, merge, account installation or update to an existing public Release.
+
+Each Release contains a Python wheel, source distribution, the versioned Codex
+and WorkSwarm plugin ZIPs and `SHA256SUMS` covering all four packages. Choose
+the archive for your host and follow the
+[Codex guide](../guides/plugins/codex-plugin.md#install-from-the-release-zip) or
+[WorkSwarm guide](../guides/plugins/workswarm-plugin.md#download-and-install).
+Each ZIP contains one standalone plugin, complete bundled runtime and knowledge,
+licenses and an installation README. The hosts use different manifests; their
+ZIPs are not interchangeable. Either plugin's build failure or a missing/corrupt
+installer blocks publication. Publication does not update a plugin branch,
+account installation or marketplace listing. No marketplace catalog or
+installation wrapper is packaged.
+
+## Setup and manual checks
+
+Merge the configuration into the default branch. GitHub Actions and the listed
+actions must be allowed by organization policy, and the publisher needs
+`contents: write`. Ordinary releases need no extra secret, PAT, GitHub App or
+repository-wide write default. AI summaries additionally use the optional
+`DS_API_KEY` secret described above. The workflow guards the canonical
+repository and default branch; copies must deliberately update that repository
+guard.
+
+Under **Actions → Release bot → Run workflow**, select the default branch and
+leave **dry_run** checked. Select **weekly** to rehearse the stable path.
+If a stable release already exists in the current Sunday-to-Saturday window,
+the dry run reports a skip before building, even if new commits have landed.
+When a build uses generated notes and `DS_API_KEY` is configured, the dry run
+also requests a summary and uploads it for inspection.
+
+Before the first weekly publication, run the following command after the
+workflow reaches the default branch. The release owner records the successful
+build, notes and skipped publisher in [the activation issue](https://github.com/InferMatrixLab/InferRSI/issues/554),
+then enables the Actions repository variable `INFERRSI_WEEKLY_RELEASE_ENABLED=true`.
+While the variable is unset or false, both scheduled and manually requested
+live weekly runs report a skip. Daily previews and manual dry runs remain available.
+
+```bash
+gh workflow run release.yml --repo InferMatrixLab/InferRSI --ref \
+ -F weekly=true -F dry_run=true
+```
+
+Actions artifacts are retained for seven days. Package versions come from Git
+tags/build-generated `_version.py`; plain unbuilt source imports report
+`0+unknown`. Build from a full checkout or the supplied sdist. Git archives use
+the exported `.git_archival.txt`; when multiple tags share a commit, use the
+uploaded wheel/sdist or explicitly select the SCM build version. Development
+builds without a stable tag may
+have a development version and are not stable releases.
+
+Plugins built from a source checkout without `--release-version` report
+`0.0.0+source` as their own version (the Codex and WorkSwarm builders and the
+DSH bundle, which has no release mode). Only the release workflow's
+`--release-version` stamps the tag version. A clean tag checkout does not
+resolve to its tag version by itself.
+
+## Failure and concurrency behavior
+
+Runs are serialized across schedule and manual dispatch. A failed build creates
+no remote tag or Release. A later tag/upload/publication failure can leave an
+unused tag or private incomplete draft. The bot never moves tags, overwrites
+notes/assets or uses `--clobber`. On a later eligible run it allocates the next
+unused version for the selected channel, so failures may leave gaps in version numbers. Failed
+attempts do not advance the successful-release baseline or suppress retry of
+unreleased source. Old drafts remain for an authorized maintainer to inspect.
+
+Tag creation and public publication are separate GitHub operations. Client
+checks cannot lock out concurrent owner actions; manage tag protection/immutable
+releases separately if needed. Public release corrections use a new version.
+No PyPI upload, native installer, automatic merge, hardware experiment or new CI
+lane is added. The existing four lanes remain unchanged.
+
+## Sources and verification limits
+
+[JiuwenSwarm v0.2.7](https://github.com/openJiuwen-ai/jiuwenswarm/releases/tag/v0.2.7)
+shows bot-authored release notes and downloadable packages. Its publisher is a
+[private GitHub App](https://github.com/apps/openjiuwen-release-bot); its pipeline
+is not public. InferRSI uses its own built-in-token workflow following GitHub's
+[token/trigger rules](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow),
+[generated notes](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes),
+and [publication CLI](https://cli.github.com/manual/gh_release_edit), plus the
+[setuptools-scm build/archive contract](https://setuptools-scm.readthedocs.io/latest/usage/).
+Remote scheduled execution, repository policy and actual publication remain
+unverified until observed in an actual release run.
+
+## Historical one-off formal v0.2.0
+
+The existing workflow accepts `release_v020=true` only through manual dispatch.
+It plans exactly v0.2.0 with `prerelease=false`, rejects any already reserved
+v0.2.0 or later numeric version, and retains the default-branch, ancestry,
+build, package, checksum and no-overwrite guards. Explicit promotion may reuse
+the latest preview tree; ordinary runs still skip unchanged trees. Start with
+`dry_run=true`; publication requires a separately authorized dispatch with
+`dry_run=false` after review and validation. Do not push the tag manually.
+
+The reviewed notes in [v0.2.0 highlights](v0.2.0.md) and generated
+changelog use v0.1.1 as their comparison baseline. The live publication race
+check still uses the actual latest release, not that historical notes baseline.
+This one-off notes path does not call the model API. Wheel, sdist, Codex ZIP,
+WorkSwarm ZIP and SHA256SUMS remain bound to the planned source commit.
+
+The daily patch planner continued with v0.2.1 after this promotion.
+If a failed one-off attempt has reserved v0.2.0, the planner stops. Inspect the
+reservation and obtain a new release decision from the maintainer before retrying.
+The recurring Sunday channel now handles subsequent minor releases.
diff --git a/docs/releases.md b/docs/releases.md
index c16ee398e..d4e19c3c7 100644
--- a/docs/releases.md
+++ b/docs/releases.md
@@ -1,259 +1,8 @@
-# Daily previews and weekly stable releases
+# Daily release guide
-The [release bot](../.github/workflows/release.yml) runs on the default branch.
-Both schedules use Asia/Shanghai time. GitHub may delay a scheduled run.
+Read the [current guide to daily previews and weekly stable releases](release-notes/README.md).
-| Schedule | Version | Changes since | GitHub designation |
-| --- | --- | --- | --- |
-| Every day at 02:00 (18:00 UTC the previous day) | Next patch, e.g. v0.3.1 | Latest published numeric release | Pre-release |
-| Sunday at 08:00 (00:00 UTC Sunday) | Next minor, e.g. v0.3.0, then v0.4.0 | Latest published numeric stable release | Latest |
-
-After weekly activation, Sunday runs both channels. Each skips an unchanged source tree against its own
-baseline. A preview can therefore become stable on the same commit. A published
-stable release also satisfies the current Sunday-to-Saturday window on retries.
-Drafts and reserved tags consume version numbers. Evidence archive tags are
-outside the numeric sequence. Both channels build and validate packages before
-publication. A stable release uses reviewed highlights from
-`docs/release-notes/.md` when present. Otherwise the notes job generates a
-summary from the channel baseline. GitHub's generated changelog covers that
-same range. The daily publisher checks that the latest numeric release still
-matches its plan. The weekly publisher checks that its stable baseline is
-current and that its target is still the newest eligible version. An intervening
-preview below that target can still precede the weekly release. A mid-week
-hotfix reaches preview first and is eligible for stable on Sunday.
-
-## Authority boundary
-
-The bot's only repository mutations are creating a new `refs/tags/`
-at an existing reviewed commit and creating/uploading/publishing that version's
-Release. It must not create code commits, edit repository files, create/update/
-delete code branches, create/approve/merge PRs or enable auto-merge. Configuration
-development and review are contributor work; they are not bot capabilities.
-
-Plan/build/notes jobs have Contents read access. Only the publisher receives Contents
-write; Pull requests permission is explicitly none. The publisher validates its
-tag/SHA inputs and never checks out or executes repository code. Regression
-tests execute its actual shell commands against a recording GitHub mock that
-rejects non-publication writes.
-
-This is an enforced workflow behavior contract, not a tag-only token scope.
-GitHub's Contents write permission also authorizes
-[file commits](https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents)
-and [PR merging](https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request);
-setting Pull requests to none does not remove those Contents capabilities.
-GitHub does not offer a separate tag/Release-only GITHUB_TOKEN permission.
-Server-side branch restrictions need a separately scoped repository-policy
-change: the GitHub Actions App identity is shared by other workflows, so this
-configuration does not silently change their access or existing branch rules.
-
-## Publication flow
-
-1. Snapshot the default branch and inspect stable tags plus published Releases.
- Private drafts are not successful-release baselines. Compare exact
- source trees and reject a published source outside the default branch's
- history rather than silently release a rollback.
-2. Create a local tag in a read-only build job. `setuptools-scm` derives both
- distribution and runtime versions from that tag. The build pins SCM's
- package-specific version override to the validated plan, avoiding ambiguous
- Git version discovery when failed reservations share a source commit.
- Tags point directly at the
- reviewed source commit; the bot does not write version commits to `main`.
-3. Run CPU tests/lint, build the sdist and a wheel from the sdist, check metadata
- with `twine`, and run the complete installed-package checker in a clean wheel
- environment outside the checkout. Check tag/distribution/runtime parity and
- generate `SHA256SUMS`. `MANIFEST.in` limits sdist contents to package sources
- and build metadata; repository evidence/workflows are not release payload.
- Reuse `tools/build_codex_plugin.py` and `tools/build_workswarm_plugin.py` to
- build `inferrsi-codex-plugin-vX.Y.Z.zip` and
- `inferrsi-workswarm-plugin-vX.Y.Z.zip` from the same source revision.
- Each archive's generated host metadata, bundled runtime and tag must have
- the same version. Check its native entrypoints, verify every bundled runtime
- hash and exercise the extracted launcher/knowledge reads outside the checkout
- with isolated Python. These CPU checks do not run WorkSwarm's SDK or UI.
-4. After a successful build, an optional read-only notes job calls the AI API
- with bounded change metadata for exactly the planned revision range. Its
- Markdown summary is transferred as a separate artifact. Missing credentials,
- API/validation errors and unavailable notes artifacts fall back to the
- existing GitHub-generated notes.
-5. A separate write job verifies the artifacts, source ancestry and release
- state again. It creates the remote tag only after validation, creates an
- internal draft, uploads wheel/sdist/both plugin ZIPs/checksums and automatically publishes
- after confirming the attachments and tag identity. It does not execute
- repository code. These operations stay in the same workflow: tag events
- created with `GITHUB_TOKEN` do not trigger another workflow.
-
-All source-tree changes, including documentation, are eligible. The
-[notes configuration](../.github/release.yml) groups existing `enhancement`,
-`bug` and `documentation` labels and includes other merged PRs. Notes use the
-channel's previous published tag. A release describes
-software changes; CPU/package checks do not establish campaign `PASS`, model
-quality or service performance. Such claims retain the acceptance and evidence
-requirements in [contributing](contributing.md#evidence-and-claims).
-
-## AI release summaries
-
-To enable AI summaries, add the Actions repository secret `DS_API_KEY` under
-**Settings → Secrets and variables → Actions**. The key is injected only into
-the notes step as the helper's internal `OPENAI_API_KEY` environment variable.
-The workflow does not read or fall back to the old `OPENAI_API_KEY` repository
-secret. Do not put the key in workflow source, command arguments, PR text or
-logs. API access and usage are billed by the selected provider for that key;
-GitHub Copilot access is not required.
-
-The default API model is `deepseek-flash`, documented by DeepSeek as
-[DeepSeek-V4.1-Flash-1017](https://api-docs.deepseek.com/quick_start/pricing/)
-when this configuration was added. This is a provider-managed alias, not a
-version pin; DeepSeek may upgrade its target. Set the optional Actions repository variable
-`OPENAI_RELEASE_NOTES_MODEL` to another model available to your API account and
-compatible with the Responses API. Set `OPENAI_BASE_URL` to select the approved
-HTTPS provider: `https://api.deepseek.com` (the fallback),
-`https://api.openai.com/v1` or `https://yibuapi.com/v1`. This repository uses
-DeepSeek's official API and sends the configured key only to its `/responses`
-endpoint. The existing `OPENAI_*` setting names also apply to DeepSeek; use a key
-issued by the selected provider. The configured API model ID is sent unchanged;
-the helper does not substitute a model when it is unavailable. Trailing slashes
-are normalized; other hosts,
-HTTP, userinfo, query strings and fragments are rejected before sending a key.
-Redirects remain disabled. Additional providers require a reviewed allowlist
-change. Without the secret, the workflow skips AI generation and continues ordinary
-publication.
-
-The [notes helper](../tools/generate_release_notes.py) sends bounded commit
-subjects, source links and file-change statistics from the previous successful
-tag through the planned commit. It omits author metadata, commit bodies and raw
-patches. Recognizable email/IP literals, URLs, personal paths and common
-credential forms in selected metadata are replaced with labeled placeholders
-before transmission; generated canonical commit links remain available. This
-targeted redaction supplements the repository's privacy rules for source
-metadata. Inputs are treated as source data, not executable instructions.
-The prompt asks for a concise English overview of software features, fixes and
-compatibility changes, with at most six bullets, 250 words of prose and one
-supplied commit link per bullet. It must not invent performance/quality or campaign PASS
-claims. The response is labeled **AI-generated summary** and prepended to the
-original GitHub changelog, preserving its PR links and source/evidence notice.
-When source metadata is truncated, the helper appends a fixed coverage notice
-from the source flags. The model is asked to leave coverage statements to the helper.
-Model output is read as a file and never executed as shell code.
-Explicit URLs and Markdown links in model output must be simple inline links to
-canonical commit URLs present in the supplied source. Images, reference links,
-bare URL/email autolinks and unsupported or unverified link forms cause fallback.
-This gate validates generated link syntax; GitHub's own reference and custom
-autolink rendering remains repository policy.
-
-The helper makes one request using the
-[Responses API](https://api-docs.deepseek.com/guides/responses_api/), with
-bounded input/output (at most 3,200 output tokens), a timeout, no tools and
-`store: false`. DeepSeek requests
-set reasoning effort to `none` for the short summary. DeepSeek ignores `store`
-and documents stateless Responses compatibility; this setting does
-not establish zero data retention. Missing credentials, failed/incomplete/refused
-or unusable responses leave no summary. The optional notes job or artifact may
-fail without skipping an otherwise valid publication; failed package checks and
-workflow cancellation still prevent publication. The AI job has no repository
-write permission, and the publisher receives no API key. There is no AI code
-commit, merge, account installation or update to an existing public Release.
-
-Each Release contains a Python wheel, source distribution, the versioned Codex
-and WorkSwarm plugin ZIPs and `SHA256SUMS` covering all four packages. Choose
-the archive for your host and follow the
-[Codex guide](codex-plugin.md#install-from-the-release-zip) or
-[WorkSwarm guide](workswarm-plugin.md#download-and-install).
-Each ZIP contains one standalone plugin, complete bundled runtime and knowledge,
-licenses and an installation README. The hosts use different manifests; their
-ZIPs are not interchangeable. Either plugin's build failure or a missing/corrupt
-installer blocks publication. Publication does not update a plugin branch,
-account installation or marketplace listing. No marketplace catalog or
-installation wrapper is packaged.
-
-## Setup and manual checks
-
-Merge the configuration into the default branch. GitHub Actions and the listed
-actions must be allowed by organization policy, and the publisher needs
-`contents: write`. Ordinary releases need no extra secret, PAT, GitHub App or
-repository-wide write default. AI summaries additionally use the optional
-`DS_API_KEY` secret described above. The workflow guards the canonical
-repository and default branch; copies must deliberately update that repository
-guard.
-
-Under **Actions → Release bot → Run workflow**, select the default branch and
-leave **dry_run** checked. Select **weekly** to rehearse the stable path.
-If a stable release already exists in the current Sunday-to-Saturday window,
-the dry run reports a skip before building, even if new commits have landed.
-When a build uses generated notes and `DS_API_KEY` is configured, the dry run
-also requests a summary and uploads it for inspection.
-
-Before the first weekly publication, run the following command after the
-workflow reaches the default branch. The release owner records the successful
-build, notes and skipped publisher in [the activation issue](https://github.com/InferMatrixLab/InferRSI/issues/554),
-then enables the Actions repository variable `INFERRSI_WEEKLY_RELEASE_ENABLED=true`.
-While the variable is unset or false, both scheduled and manually requested
-live weekly runs report a skip. Daily previews and manual dry runs remain available.
-
-```bash
-gh workflow run release.yml --repo InferMatrixLab/InferRSI --ref \
- -F weekly=true -F dry_run=true
-```
-
-Actions artifacts are retained for seven days. Package versions come from Git
-tags/build-generated `_version.py`; plain unbuilt source imports report
-`0+unknown`. Build from a full checkout or the supplied sdist. Git archives use
-the exported `.git_archival.txt`; when multiple tags share a commit, use the
-uploaded wheel/sdist or explicitly select the SCM build version. Development
-builds without a stable tag may
-have a development version and are not stable releases.
-
-Plugins built from a source checkout without `--release-version` report
-`0.0.0+source` as their own version (the Codex and WorkSwarm builders and the
-DSH bundle, which has no release mode). Only the release workflow's
-`--release-version` stamps the tag version. A clean tag checkout does not
-resolve to its tag version by itself.
-
-## Failure and concurrency behavior
-
-Runs are serialized across schedule and manual dispatch. A failed build creates
-no remote tag or Release. A later tag/upload/publication failure can leave an
-unused tag or private incomplete draft. The bot never moves tags, overwrites
-notes/assets or uses `--clobber`. On a later eligible run it allocates the next
-unused version for the selected channel, so failures may leave gaps in version numbers. Failed
-attempts do not advance the successful-release baseline or suppress retry of
-unreleased source. Old drafts remain for an authorized maintainer to inspect.
-
-Tag creation and public publication are separate GitHub operations. Client
-checks cannot lock out concurrent owner actions; manage tag protection/immutable
-releases separately if needed. Public release corrections use a new version.
-No PyPI upload, native installer, automatic merge, hardware experiment or new CI
-lane is added. The existing four lanes remain unchanged.
-
-## Sources and verification limits
-
-[JiuwenSwarm v0.2.7](https://github.com/openJiuwen-ai/jiuwenswarm/releases/tag/v0.2.7)
-shows bot-authored release notes and downloadable packages. Its publisher is a
-[private GitHub App](https://github.com/apps/openjiuwen-release-bot); its pipeline
-is not public. InferRSI uses its own built-in-token workflow following GitHub's
-[token/trigger rules](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow),
-[generated notes](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes),
-and [publication CLI](https://cli.github.com/manual/gh_release_edit), plus the
-[setuptools-scm build/archive contract](https://setuptools-scm.readthedocs.io/latest/usage/).
-Remote scheduled execution, repository policy and actual publication remain
-unverified until observed in an actual release run.
-
-## Historical one-off formal v0.2.0
-
-The existing workflow accepts `release_v020=true` only through manual dispatch.
-It plans exactly v0.2.0 with `prerelease=false`, rejects any already reserved
-v0.2.0 or later numeric version, and retains the default-branch, ancestry,
-build, package, checksum and no-overwrite guards. Explicit promotion may reuse
-the latest preview tree; ordinary runs still skip unchanged trees. Start with
-`dry_run=true`; publication requires a separately authorized dispatch with
-`dry_run=false` after review and validation. Do not push the tag manually.
-
-The reviewed notes in [v0.2.0 highlights](release-notes/v0.2.0.md) and generated
-changelog use v0.1.1 as their comparison baseline. The live publication race
-check still uses the actual latest release, not that historical notes baseline.
-This one-off notes path does not call the model API. Wheel, sdist, Codex ZIP,
-WorkSwarm ZIP and SHA256SUMS remain bound to the planned source commit.
-
-The daily patch planner continued with v0.2.1 after this promotion.
-If a failed one-off attempt has reserved v0.2.0, the planner stops. Inspect the
-reservation and obtain a new release decision from the maintainer before retrying.
-The recurring Sunday channel now handles subsequent minor releases.
+The Codex plugin ZIPs published from v0.1.0 through v0.3.3 link here from
+their bundled READMEs. For the procedure documented when the
+[v0.3.0 plugin](https://github.com/InferMatrixLab/InferRSI/releases/tag/v0.3.0)
+shipped, see the [guide at that revision](https://github.com/InferMatrixLab/InferRSI/blob/af836963e73251622eefcf8a8a67f8ad3f4ecf12/docs/releases.md).
diff --git a/docs/reviews/issue148-flare-source-distillation.md b/docs/reviews/issue148-flare-source-distillation.md
index decbb8688..a0bffc347 100644
--- a/docs/reviews/issue148-flare-source-distillation.md
+++ b/docs/reviews/issue148-flare-source-distillation.md
@@ -46,7 +46,7 @@ no efficacy PASS or automatic promotion is proposed.
## Evaluation plan under the existing bounded workflow
Status: **not evaluated**; empirical validation: **not_run**. This plan follows
-[bounded skill evaluation](../skill-evaluation.md) and
+[bounded skill evaluation](../skill-evaluation/README.md) and
[Issue 88](https://github.com/InferMatrixLab/InferRSI/issues/88). It does not
authorize or schedule client calls.
diff --git a/docs/reviews/local-dream-repo-to-skill.md b/docs/reviews/local-dream-repo-to-skill.md
index 1399f62a0..00449eac3 100644
--- a/docs/reviews/local-dream-repo-to-skill.md
+++ b/docs/reviews/local-dream-repo-to-skill.md
@@ -64,7 +64,7 @@ validator. Every success output retains native `not_run` / `INCONCLUSIVE`.
## Verification and evaluation contract
-`tests/test_local_dream_repo_to_skill.py` covers frontmatter/metadata/source
+[The Local Dream knowledge tests](../../tests/knowledge/test_local_dream_repo_to_skill.py) cover frontmatter/metadata/source
hashes, local-link containment, rights retention, fixture evidence paths,
all five configuration differences including bind scope, missing process,
ABI/SDK label mismatches, non-native outputs, strict types, duplicates/nonfinite
diff --git a/docs/reviews/vllm-ascend-0271rc1/README.md b/docs/reviews/vllm-ascend-0271rc1/README.md
index d84676e82..23172c5a2 100644
--- a/docs/reviews/vllm-ascend-0271rc1/README.md
+++ b/docs/reviews/vllm-ascend-0271rc1/README.md
@@ -1,7 +1,7 @@
# Historical source-scan inventory
The complete generated inventory is retained at its [exact source revision](https://github.com/InferMatrixLab/InferRSI/blob/a590ccb25596396a592f237105166ade4aedeaaa/docs/reviews/vllm-ascend-0271rc1/history-inventory.json).
-It is omitted from the current tree under the [archiving contract](../../evidence-archiving.md).
+It is omitted from the current tree under the [archiving contract](../../guides/evidence-archiving.md).
Runtime knowledge readers use the compact reviewed records and screening script;
they do not consume this full scan.
diff --git a/docs/searchspace-index.json b/docs/searchspace-index.json
index 8810a3d3a..4ee47deb1 100644
--- a/docs/searchspace-index.json
+++ b/docs/searchspace-index.json
@@ -4,7 +4,7 @@
"matrix_path": "docs/searchspace-matrix.md",
"catalog_path": "src/inferrsi/knowledge/data/skill_library/skill-index.json",
"skill_root": "src/inferrsi/knowledge/data/skill_library",
- "matrix_sha256": "2d90d24c94babcbb9e3f9da9b7138d7896459af03e39280eb8d97540fdf911a0",
+ "matrix_sha256": "8e47da7aa4824d160710dee6ec63e91011f399def948b25a6bf74abe1bc45db9",
"catalog_sha256": "d243e2ae44c7badc8e68788153de35fe6ac31de618b7499fef6339eadf396871",
"metadata_sha256": "7e3efbdd366d493e8db5fa06c87a45ecbdb4b51bdb55b3dc30679afe697733e5"
},
diff --git a/docs/searchspace-matrix.md b/docs/searchspace-matrix.md
index e8a1aa9d0..1ac6007f1 100644
--- a/docs/searchspace-matrix.md
+++ b/docs/searchspace-matrix.md
@@ -1,6 +1,8 @@
# InferRSI SearchSpace Matrix
-**Branch:** `opus/meta-skill-bootstrap` | **Integration date:** 2026-10-16 | **Comparison anchor:** `d96ff8d3`
+The [original matrix](https://github.com/InferMatrixLab/InferRSI/blob/e0458654da9baef57cefc990ab75146b24d73234/docs/searchspace-matrix.md)
+records `opus/meta-skill-bootstrap` and `d96ff8d3` for the 2026-10-16 integration.
+Later entries carry their own source revisions.
Current skill links resolve to the complete categorized
[skill library](../src/inferrsi/knowledge/data/skill_library/README.md). Hardware-specific
@@ -363,7 +365,7 @@ this adds no measured/green cell, new runtime mechanism or compatible-stack clai
## Issue #27: Drama3 NPU readiness (guidance only, no new coverage)
-The [Drama3 NPU readiness supplement](drama3-npu-readiness.md) is a scoped task
+The [Drama3 NPU readiness supplement](field-notes/drama3-npu-readiness.md) is a scoped task
artifact: a stage/state execution map, a state-correctness contract (with a
CPU-only reference fixture) and a measurement/quality contract reusing the pinned
GPU `benchmark.py` and only the `load_runtime` record/summary checks of the frozen
diff --git a/docs/skill-coverage.md b/docs/skill-coverage.md
index 75f31bc6d..45a60da9b 100644
--- a/docs/skill-coverage.md
+++ b/docs/skill-coverage.md
@@ -4,7 +4,7 @@ Generated from the registry, SKILL.md frontmatter and the two maintained
matrices. **Do not edit by hand**; regenerate after any registry, skill,
matrix or frozen-plan change.
-- Input digest: `sha256:732693b7ff1613c0f211b5a090d69278b31aeca95ac0439683ab19a05a60a812`
+- Input digest: `sha256:5a8f15648776120480e4baf2dba29e2e909775795543f51a1035fde748b89630`
- Regenerate: `python tools/build_skill_coverage.py`
- Verify without writing: `python tools/build_skill_coverage.py --check`
diff --git a/docs/skill-eval-pr.md b/docs/skill-eval-pr.md
index 9db489f2c..dabc27489 100644
--- a/docs/skill-eval-pr.md
+++ b/docs/skill-eval-pr.md
@@ -1,13 +1,13 @@
# Skill PR planning and feedback
The advisory [Skill PR workflow](../.github/workflows/skill-eval-pr.yml) connects
-skill changes to the existing [comparison command](skill-eval-comparison.md).
+skill changes to the existing [comparison command](skill-evaluation/skill-eval-comparison.md).
It does not add an execution engine or a required efficacy gate. Refs #101; parent #88.
```mermaid
flowchart LR
A["PR Git objects"] --> B["Trusted mapping → frozen plan"]
- B --> C["Trusted label actor + exact plan + cumulative PR reservation"]
+ B --> C["Trusted label actor + exact plan + PR and daily reservations"]
C --> D["Existing comparison client; no publication credentials"]
D --> E["Retained results: 30 days"]
E --> F["Trusted publisher → exact-plan advisory + explicit gaps"]
@@ -91,8 +91,8 @@ For successfully prepared mappings, the displayed `python -m json.tool` commands
inspect the retained tasks and schema from the downloaded `skill-eval-plan`
artifact directory; they do not grade anything or call a model. Produce the required
answer/artifact only after confirming applicability. Use the existing
-[comparison contract](skill-eval-comparison.md) or, for an explicitly selected
-engineering task, [local-author handoff](local-skill-evaluation.md). No paid
+[comparison contract](skill-evaluation/skill-eval-comparison.md) or, for an explicitly selected
+engineering task, [local-author handoff](skill-evaluation/local-skill-evaluation.md). No paid
execute command is a nonpaid fallback, and no task or mapping is selected on the
author's behalf when the existing mapping supplies none.
@@ -134,18 +134,17 @@ denial. This verifies publication only, not evaluation.
## Execution authorization and environment
-Planning grants no execution budget. The trusted deployment configuration,
-latest authorized label-add event and current actor permission are required;
-PR text and dispatch inputs cannot supply that authority. Automatic execution
-uses the existing frozen provider plans and enforces their complete worst-case
-reservation against USD 200 cumulatively per PR. The non-provider default mapping
-remains useful for offline planning, but cannot execute as a paid PR fallback.
+Automatic execution requires current trusted deployment configuration, the latest
+authorized label-add event and current actor permission. The controller reserves
+the frozen plan’s complete worst-case cost against both the lifetime USD 200 per-PR
+limit and the repository-wide USD 1,000 limit per Asia/Shanghai day. Free planning
+grants no execution budget. PR text and dispatch inputs cannot grant authority.
-The bounded [issue 215 deployment record](skill-evaluation/skill-eval-deployment-215.md) supplies
-the reviewed configuration for PR159/160 only. It creates no provider credential
-or execution label. A historical successful run does not establish current
-credentials, permission, provider readiness or remaining budget. See the
-deployment checklist below before enabling the switch.
+The bounded [issue 215 deployment record](skill-evaluation/skill-eval-deployment-215.md)
+describes the earlier rollout for PRs 159 and 160. Current admission requires
+separate owner approval, valid pricing, provider credentials and verified ledger
+history. See [daily admission](skill-evaluation/skill-eval-daily-admission.md)
+for the accounting prerequisites.
The controller alone has owner-approved `contents: write` for the dedicated Git
budget ledger. Its existing model executor runs in a sanitized child process with
@@ -170,13 +169,14 @@ duplicate attempts.
## Duplicate prevention and interrupted execution
-The durable Git ledger, not expiring artifacts or Actions titles, binds each
-frozen plan to one workflow run/attempt. All revisions of one PR share the same
-USD 200 ceiling. Reservation and claim are separate compare-and-swap transitions;
-an ambiguous write, duplicate plan, exhausted allowance or missing/corrupt history
-blocks execution. Claims are deliberately non-idempotent. Interrupted requests
-retain their full conservative reservations, including when no cost receipt was
-produced. No takeover, automatic paid retry, refund or reset is provided.
+The two durable Git ledgers bind each frozen plan to one workflow run/attempt.
+All revisions of one PR share its USD 200 lifetime ceiling. Every PR in the
+repository shares the daily ceiling. Reservation and claim are separate
+compare-and-swap transitions. An ambiguous write, duplicate plan, exhausted
+allowance or missing or corrupt history blocks execution. Claims are non-idempotent.
+Interrupted requests retain their full conservative reservations, including when
+no cost receipt was produced. No takeover, automatic paid retry, refund or reset
+is provided.
The per-request loopback gate waits at most the smaller of 60 seconds and the
remaining trial allowance for fresh live authorization/history checks. That wait
@@ -340,13 +340,14 @@ subsequent requests through a live GitHub check, independently of whether a
path-filtered notification starts another workflow. Already in-flight calls
cannot be revoked. Closed events never start preparation or paid work.
-**Deployment is present on trusted main.** Owner-reviewed configuration and
-audited ledger genesis were deployed for the bounded #159/#160 rollout. A new
-deployment still requires separate owner approval, credentials and ledger audit;
-the code never creates these prerequisites implicitly.
-`tools/skill_eval_auto_config.json` is strictly shaped as:
+The earlier bounded PR 159/160 rollout had owner-reviewed configuration and
+PR ledger anchors. The [checked-in configuration](../tools/skill_eval_auto_config.json)
+now includes the daily anchor and records an expiry of 2026-10-29 10:53:48 UTC.
+That configuration supports historical plan reconstruction. New paid admission
+requires current owner approval, credentials, reviewed pricing and verified ledgers.
+The current configuration has these fields.
-- `schema_version: 1`, immutable `repository_id`, dedicated `label`, and explicit
+- `schema_version: 2`, immutable `repository_id`, dedicated `label`, and explicit
owner-authorized GitHub logins in `operators`;
- finite Unix `expires_at` and `review_evidence` identifying the owner review;
- complete `provider` (existing provider-config schema) and its canonical JSON
@@ -357,22 +358,25 @@ the code never creates these prerequisites implicitly.
- `anchors`, keyed by PR number string: each entry contains `ref`,
`genesis_commit`, and `checkpoint_commit`, referencing the separately audited
per-PR Git ledger described in [the budget contract](skill-evaluation/skill-eval-budget-core.md).
- Unknown historical spending is a blocker, never an empty zero-cost ledger.
-
-Every eligible plan reserves its entire enforceable worst case against the same
-repository-ID + PR-number USD 200 ceiling, then wins a one-shot durable claim
-before any provider request. Duplicate events, attempts, label re-additions and
-changed heads cannot replenish the allowance. Reservations are deliberately never
-refunded automatically: a successful, interrupted or uncertain run retains its
-full bound. The report separates known/legacy spending, conservative unresolved
-reservations and remaining capacity. Unknown accounting is explicitly blocked.
+ Unknown historical spending blocks admission;
+- `daily_budget` contains `currency: USD`, `amount: "1000"`,
+ `timezone: Asia/Shanghai`, and the audited repository-wide ledger anchor.
+
+The controller verifies both histories, reserves the full bound on the daily
+ledger and then on the PR ledger, and claims in the same order. Both claims must
+remain valid before launch and each provider request. Duplicate events, attempts,
+label re-additions and changed heads cannot replenish the allowance. A successful,
+interrupted or uncertain run retains its full bound. The report separates
+known or legacy PR spending, conservative unresolved reservations, and remaining
+PR and daily capacity. Unknown accounting blocks paid admission.
The latest applicable label-add action must belong to an allowlisted operator
who **currently** retains repository write/maintain/admin permission. Merely
having the label, being the PR author, or supplying dispatch text does not grant
authority. Each provider request rechecks live label event identity, open/non-draft
-state, exact head/base, operator permission, configuration expiry and durable
-claim. Eligibility and every request also authenticate the repository ID and read
+state, exact head/base, operator permission, configuration expiry, both durable
+claims and the original Shanghai admission day. Eligibility and every request
+also authenticate the repository ID and read
`refs/heads/main`: its current commit must equal the plan implementation version.
The historical PR comparison base is independently bound and need not equal that
version. A main advance before preparation, reservation or a later request blocks
@@ -389,7 +393,7 @@ path and repository identity, then the complete immutable original source-plan
fingerprint before downloading results. Manual dispatch retains its implementation
SHA contract. Neither event metadata alone nor a result can rebind an old plan.
Legacy paid `workflow_dispatch execute` is explicitly blocked instead of bypassing
-the cumulative ledger. Existing credential-free injected-client tests still work.
+the two ledgers. Existing credential-free injected-client tests still work.
The bounded real-run verification above exercised planning, guarded execution and
retained publication. It does not authorize additional runs or establish general
@@ -425,7 +429,7 @@ standalone comparison-harness behavior is unchanged.
A trusted mapping item may explicitly set `adapter: "kv-admission-diagnostic-v1"`
to use the synthetic diagnostic contract documented in
-[skill comparisons](skill-eval-comparison.md#synthetic-kv-admission-diagnostic-adapter).
+[skill comparisons](skill-evaluation/skill-eval-comparison.md#synthetic-kv-admission-diagnostic-adapter).
This is not inferred from PR content. It requires an existing baseline bundle
and preserves exact PR base/head comparisons; unknown adapters or an addition
remain unsupported. Report regeneration rechecks the frozen built-in adapter,
diff --git a/docs/skill-evaluation.md b/docs/skill-evaluation/README.md
similarity index 93%
rename from docs/skill-evaluation.md
rename to docs/skill-evaluation/README.md
index ab841a43f..6e12f82da 100644
--- a/docs/skill-evaluation.md
+++ b/docs/skill-evaluation/README.md
@@ -4,11 +4,11 @@ Skill evaluation measures discovery, correct application and task outcomes for a
exact knowledge revision. It is separate from the numeric engine-performance
evaluator and from InferRSI's L0–L4 system-validation ladder.
-The first [real-client pilot report](../evidence/skill-eval-v1-20261021/README.md)
+The first [real-client pilot report](../../evidence/skill-eval-v1-20261021/README.md)
includes per-trial answers, retained development failures, discovery observations
and CPU-only replay of the frozen verifier. Its conclusions apply to that
selected task family, skill revisions and client/model configuration.
-Its [order corrigendum](../evidence/skill-eval-v1-20261021/README.md#order-corrigendum--2026-10-22)
+Its [order corrigendum](../../evidence/skill-eval-v1-20261021/README.md#order-corrigendum--2026-10-22)
records the historical 4/2/0 first-position imbalance. Recorded elapsed differences
are observations with order/cache/provider-drift confounding, not causal skill
effects; a time-effect study needs a separately authorized frozen plan and budget.
@@ -26,6 +26,8 @@ holds check validity, the task verdict and condition statistics.
`run_trial`, `summarize` and `export_bundle` signatures; retained trial records are
unchanged.
+For a new evaluation, choose a [configured comparison](skill-eval-comparison.md) or a [local engineering run](local-skill-evaluation.md). For a pull request, follow the [author evidence handoff](../skill-eval-pr.md#nonpaid-author-handoff). The [budget rules](skill-eval-budget-core.md) and [full-context controls](skill-eval-full-context.md) apply to paid runs.
+
## Conditions and outcomes
| Condition | Exposure | Purpose |
diff --git a/docs/local-skill-evaluation.md b/docs/skill-evaluation/local-skill-evaluation.md
similarity index 96%
rename from docs/local-skill-evaluation.md
rename to docs/skill-evaluation/local-skill-evaluation.md
index d592660ae..19a7ce2a0 100644
--- a/docs/local-skill-evaluation.md
+++ b/docs/skill-evaluation/local-skill-evaluation.md
@@ -1,10 +1,10 @@
-# Local engineering evidence for SkillEval
+# Local engineering evidence for skill evaluation
-SkillEval can check a **code artifact**, rather than ask a model to grade its own
-answer. The first adapter is one public CPU response-parser task reconstructed
+The local evaluator checks a **code artifact** with independent behavior probes.
+The first adapter is one public CPU response-parser task reconstructed
from the error-stream observation in [PR 90](https://github.com/InferMatrixLab/InferRSI/pull/90).
It is not the original server, a GPU experiment, a hidden benchmark, or acceptance
-of that PR. The [frozen task contract](../tests/fixtures/skill_eval_engineering/contract.md)
+of that PR. The [frozen task contract](../../tests/fixtures/skill_eval_engineering/contract.md)
records source revisions, starter hash, exact behavior and exclusions.
## What changed
@@ -30,7 +30,7 @@ it cannot perform this artifact-editing task and is rejected for this adapter.
```mermaid
sequenceDiagram
participant R as Reviewer / author
- participant S as SkillEval
+ participant S as Evaluator
participant A as Approved local agent
participant V as Isolated verifier
R->>S: prepare pinned plan
diff --git a/docs/skill-eval-comparison.md b/docs/skill-evaluation/skill-eval-comparison.md
similarity index 96%
rename from docs/skill-eval-comparison.md
rename to docs/skill-evaluation/skill-eval-comparison.md
index bbdd522e4..b2e53aab6 100644
--- a/docs/skill-eval-comparison.md
+++ b/docs/skill-evaluation/skill-eval-comparison.md
@@ -3,11 +3,11 @@
`python -m tools.skill_eval_compare` prepares addition/update comparisons and
generates JSON and Markdown reports. It reuses the existing reader,
`CodexClient`, `run_trial`, verifier and error handling. The original
-[pilot](skill-evaluation.md) remains available with its original interfaces.
+[pilot](README.md) remains available with its original interfaces.
-The [PR integration](skill-eval-pr.md) adds automatic planning, explicit operator
+The [PR integration](../skill-eval-pr.md) adds automatic planning, explicit operator
authorization and retained-result publication around these interfaces.
-The [offline improvement MVP](harness-improvement.md) reuses the same interfaces
+The [offline improvement MVP](../guides/harness-improvement.md) reuses the same interfaces
for bounded INV/DOM probes, successor rerun and a one-shot held-out gate.
```mermaid
@@ -21,8 +21,8 @@ flowchart LR
## Configuration and planning
-Start with [addition.json](../tests/fixtures/skill-comparison/addition.json) or
-[update.json](../tests/fixtures/skill-comparison/update.json). Replace the revision and
+Start with [addition.json](../../tests/fixtures/skill-comparison/addition.json) or
+[update.json](../../tests/fixtures/skill-comparison/update.json). Replace the revision and
model placeholders. Run from the repository root with the development
dependencies installed (`python -m pip install -e ".[dev]"`).
@@ -181,8 +181,8 @@ real-client run.
## Reports and offline controls
-See the generated [Markdown example excerpt](../tests/fixtures/skill-comparison/report-example.md)
-and [JSON example excerpt](../tests/fixtures/skill-comparison/report-example.json).
+See the generated [Markdown example excerpt](../../tests/fixtures/skill-comparison/report-example.md)
+and [JSON example excerpt](../../tests/fixtures/skill-comparison/report-example.json).
`report` reads the frozen plan and retained results without invoking a client,
grader or trial. It verifies the frozen comparison, pilot, composed-entry,
diff --git a/docs/skill-evaluation/skill-eval-daily-admission.md b/docs/skill-evaluation/skill-eval-daily-admission.md
index fc463085a..6d044be6c 100644
--- a/docs/skill-evaluation/skill-eval-daily-admission.md
+++ b/docs/skill-evaluation/skill-eval-daily-admission.md
@@ -1,9 +1,9 @@
-# Global daily admission rollout (offline implementation)
+# Global daily admission
The controller requires **both** the permanent USD 200 lifetime PR ledger and
one repository-wide USD 1,000 / Asia/Shanghai-day ledger. All PRs compete against
one immutable repository identity and one global ref, not separate per-day refs.
-This code change does not activate paid execution or initialize any ledger.
+Ledger initialization and paid execution each require reviewed authorization.
## Public configuration migration
@@ -26,20 +26,23 @@ exactly this public, non-secret field (replace placeholders only after audit):
}
```
-The checked-in schema-1 configuration is deliberately unchanged. Missing daily
-configuration/genesis, unknown obligations, corrupt history, expired rates or
-unavailable live identity block paid execution, never imply zero spend. Free
-planning and retained evidence do not require a new paid grant.
+The [checked-in schema-2 configuration](../../tools/skill_eval_auto_config.json)
+contains a daily budget anchor and records an expiry of 2026-10-29 10:53:48 UTC.
+Paid execution requires current authorization and verified PR and daily histories.
+Missing daily configuration or genesis, unknown obligations, corrupt history,
+expired rates or unavailable live identity block admission. Free planning and
+retained evidence remain available without a paid grant.
-An authorized rollout must first quiesce all older paid writers and reconcile
+When migrating a deployment, authorized operators must first quiesce all older
+paid writers and reconcile
**all** historical charges, existing PR reservations and uncertain/in-flight
work, including historical PR 159 and 160 run records. Preserve their existing
PR anchors, history and evidence byte-for-byte; do not reset/rebase their budgets.
Import conservative historical daily intervals and outstanding upper bounds into
an explicitly audited global genesis. Missing provider bills are not proof of
zero cost. Unknown upper exposure prevents activation. Pin the audited genesis
-and independent checkpoint in reviewed configuration; no initializer, zero
-bootstrap, ref write or config activation is supplied here.
+and independent checkpoint in reviewed configuration. The controller requires
+these anchors before admission and never creates genesis or assumes empty history.
## Durable admission and failure boundaries
diff --git a/docs/skill-evaluation/skill-eval-reviewer-qualification.md b/docs/skill-evaluation/skill-eval-reviewer-qualification.md
index a03ce99e7..499ce2899 100644
--- a/docs/skill-evaluation/skill-eval-reviewer-qualification.md
+++ b/docs/skill-evaluation/skill-eval-reviewer-qualification.md
@@ -38,4 +38,4 @@ Existing `skill_eval_compare.py report` supports independent artifact replay,
but preserves original unavailable-capture INCONCLUSIVE and author provenance;
it must not be rewritten as an authenticated or causally comparable trial.
-See [local evidence and interpretation](../local-skill-evaluation.md).
+See [local evidence and interpretation](local-skill-evaluation.md).
diff --git a/docs/skill-evaluation/skill-eval-yibuapi-preflight.md b/docs/skill-evaluation/skill-eval-yibuapi-preflight.md
index fa69f72c9..40692248a 100644
--- a/docs/skill-evaluation/skill-eval-yibuapi-preflight.md
+++ b/docs/skill-evaluation/skill-eval-yibuapi-preflight.md
@@ -1,15 +1,19 @@
# Direct Yibuapi skill evaluation
-The opt-in Messages client uses the existing Python interpreter, comparison
-schedule, fresh workspace, timeout/process cleanup and trusted verifier. It
-exposes only read_file and submit_answer. Codex remains the default when no
-provider configuration is supplied. No external agent executable is required.
+The opt-in Yibuapi Messages read-agent client uses the existing Python interpreter,
+comparison schedule, fresh workspace, timeout and process cleanup, and trusted
+verifier. It exposes only read_file and submit_answer. No external agent executable
+is required. The checked-in PR controller configuration selects the separate
+[full-context client](skill-eval-full-context.md).
## Configuration and cost reservation
-Supply public JSON as the workflow_dispatch provider_config input, unchanged
-between planning, execution and any retained-publication retry. It has four
-required top-level fields and one narrowly scoped optional override:
+This read-agent provider configuration has four required top-level fields and one
+optional override. The PR workflow accepts public `provider_config` for an explicit
+`action=plan` dispatch only when it cannot load its checked-in controller
+configuration for planning. A configuration that passes the planning checks
+controls provider selection even after its authorization expires. The manual
+input grants no budget.
| Field | Required content |
| --- | --- |
@@ -77,28 +81,27 @@ changed external facts.
## Credential setup and execution
-After explicit approval of the credential exposure, the owner provisions GitHub
-Actions Secret SKILL_EVAL_YIBUAPI_KEY. The workflow exposes it only to the
-conditional Yibuapi model-execution step. plan, authorize and publish do not
-receive the key. The model child receives a filtered environment without GitHub
-or Actions publication/runtime credentials; the verifier receives no provider
-key. Never place a key in provider_config, command arguments, Git, logs or chat.
-
-1. Prepare action=plan with the exact provider_config and target PR. Inspect the
- frozen model/group/rates, context/request bounds, paired cases and reservation.
-2. Approve the new exact plan SHA, trusted version, base/head and full Budget JSON.
- Execute with the same provider_config and all approval inputs.
-3. Inspect retained outcomes and feedback. Failed/uncertain requests stop without
- retry or model fallback. Use action=publish with the original source_run and
- identical configuration for publication-only recovery.
-
-Price readiness is checked before authorization/history checks; key presence is
-checked before the local execution claim and first request. plan cannot inspect
-a Secret it does not receive. GitHub dispatch history still records a failed
-attempt, so missing-key/failed executions must not be blindly rerun. Preserve
-one-shot history and prepare a newly reviewed plan after investigating a failure.
-An expired rate record blocks new execution, but retained historical results can
-still be rebuilt/regraded/published without a model call.
+After explicit approval of credential exposure, the owner provisions the GitHub
+Actions Secret `SKILL_EVAL_YIBUAPI_KEY`. The workflow exposes it only to the trusted
+paid controller step. Planning and publication receive no key. The model child
+receives a filtered environment without GitHub or Actions publication credentials;
+the verifier receives no provider key. Never place a key in `provider_config`,
+command arguments, Git, logs or chat.
+
+1. Use `action=plan` for a free PR plan. Inspect the frozen model, group and rates,
+ context and request bounds, paired cases, and total reservation.
+2. The [label controller](../skill-eval-pr.md#label-gated-cumulative-paid-execution)
+ governs new paid PR runs. It requires current owner-reviewed configuration and
+ pricing, a trusted label actor, and verified PR and daily ledgers. The legacy
+ manual `action=execute` input is blocked.
+3. Inspect retained outcomes and feedback. For a publication-only retry, use
+ `action=publish` with the PR number and original execution `source_run`. The
+ publisher authenticates the original plan and evidence.
+
+The controller checks credential presence before reserving either budget. Failed
+or uncertain attempts stop without automatic retry or fallback. An expired rate
+record blocks new execution. Retained evidence can still be regraded and published
+without a model call when it satisfies the workflow’s retention and integrity checks.
Opus 5.5 uses adaptive thinking and does not support forced tool choice. The
client uses auto, preserves returned thinking/signature blocks opaquely for the
diff --git a/evidence/README.md b/evidence/README.md
index 68afd9eea..c7cafc1e6 100644
--- a/evidence/README.md
+++ b/evidence/README.md
@@ -21,7 +21,7 @@ evidence/
```
Populate per acceptance issue using [the bundle template](_template/README.md)
-and [archiving contract](../docs/evidence-archiving.md). Large raw records, logs,
+and [archiving contract](../docs/guides/evidence-archiving.md). Large raw records, logs,
profiler output and generated inventories belong in external versioned archives.
The template has placeholders only, with no actual campaign pins or results.
`results/artifacts.json` is the archive authority; the repository inventory
diff --git a/evidence/_template/README.md b/evidence/_template/README.md
index 1b6ceeed2..01f1488b7 100644
--- a/evidence/_template/README.md
+++ b/evidence/_template/README.md
@@ -2,7 +2,7 @@
Copy this directory for a new campaign, then replace all placeholders. The
`*.example.json` files describe fields; they are not runnable evidence.
-Follow the [archiving contract](../../docs/evidence-archiving.md).
+Follow the [archiving contract](../../docs/guides/evidence-archiving.md).
- Acceptance issue and owner: ,
- Goal, compared variants and execution conditions:
diff --git a/evidence/_template/results/README.md b/evidence/_template/results/README.md
index 64f8bb6ed..8bf4a7ba9 100644
--- a/evidence/_template/results/README.md
+++ b/evidence/_template/results/README.md
@@ -31,4 +31,4 @@ renders automatically into the experiment report, and reads a committed
Copy the shape that matches the campaign, replace the values with measured
results, and commit the specification with the figure. See the
-[campaign summary chart guide](../../../docs/campaign-summary-chart.md).
+[campaign summary chart guide](../../../docs/dashboard/campaign-summary-chart.md).
diff --git a/evidence/drama3-ascend-20261023/README.md b/evidence/drama3-ascend-20261023/README.md
index 41144aed7..239fb7e27 100644
--- a/evidence/drama3-ascend-20261023/README.md
+++ b/evidence/drama3-ascend-20261023/README.md
@@ -8,7 +8,7 @@ branch, and raw logs and benchmark outputs are external and unavailable in
this checkout. Registered in `tools/evidence_inventory.json` as a campaign
bundle with no freeze manifest; unavailable external artifacts are listed
there, and no freeze hashes were added. Details, RunSpec and operating notes:
-[docs/drama3-ascend-910b1.md](../../docs/drama3-ascend-910b1.md).
+[docs/field-notes/drama3-ascend-910b1.md](../../docs/field-notes/drama3-ascend-910b1.md).
- [plan/plan.json](plan/plan.json) — recorded protocol and success/stop rules; revision fields are placeholders
- [results/summary.json](results/summary.json) — author-reported kept/rejected numbers
diff --git a/plugins/inferrsi/skills/inferrsi/SKILL.md b/plugins/inferrsi/skills/inferrsi/SKILL.md
index f70dcf6f6..d039ebeff 100644
--- a/plugins/inferrsi/skills/inferrsi/SKILL.md
+++ b/plugins/inferrsi/skills/inferrsi/SKILL.md
@@ -317,8 +317,8 @@ independent run. InferRSI owns execution and evaluation.
Retain a separate candidate source snapshot before evaluating it. Commands must
run that snapshot, even after the generation workspace changes. Inspect actual
run source hashes and quality/timing evidence; a candidate ID or agent narrative
-does not prove which bytes ran. See `docs/codex-plugin.md` for MindIE setup and
-candidate trace association.
+does not prove which bytes ran. The [MindIE setup guide](https://github.com/InferMatrixLab/InferRSI/blob/main/docs/guides/plugins/codex-plugin.md#mindie-knowledge)
+explains how to associate a candidate with its trace.
Consult `plan --help` and `run --help` to build the current runtime's invocation.
Reuse the user's benchmark and quality scripts, workload, accepted revisions,
diff --git a/src/inferrsi/apps/README.md b/src/inferrsi/apps/README.md
index 7d70e600c..8b58b88e1 100644
--- a/src/inferrsi/apps/README.md
+++ b/src/inferrsi/apps/README.md
@@ -30,8 +30,8 @@ callback as an initial global. The task supplies workload setup, measurement,
and correctness rules. See the [Benchmark README](../benchmark/README.md)
for registration.
-See the [saved-request CLI](../../../docs/apps-evaluate-cli.md), the
-[publication contract](../../../docs/apps-output.md), and the
+See the [saved-request CLI](../../../docs/guides/apps-evaluate-cli.md), the
+[publication contract](../../../docs/guides/apps-output.md), and the
[module migration inventory](../../../docs/apps-module-migrations.json).
The [evaluation](../../../tests/apps/test_apps_evaluate_cli.py) and
[launcher](../../../tests/benchmark/test_benchmark_operations.py) tests exercise these
diff --git a/src/inferrsi/apps/cli/arguments.py b/src/inferrsi/apps/cli/arguments.py
index da0c89014..cfd8d0b50 100644
--- a/src/inferrsi/apps/cli/arguments.py
+++ b/src/inferrsi/apps/cli/arguments.py
@@ -458,7 +458,7 @@ def parser(*, parser_class=argparse.ArgumentParser) -> argparse.ArgumentParser:
child.add_argument(
"--task", dest="task_file", default=argparse.SUPPRESS, metavar="TASK_YAML",
help="Complete schema v1 task file; supplied mapped flags override it, "
- "acceptance flags must match it (docs/task-input.md)",
+ "acceptance flags must match it (docs/guides/task-input.md)",
)
child.add_argument(
"--candidate-repo", help="Candidate checkout; defaults to the baseline checkout"
diff --git a/src/inferrsi/benchmark/README.md b/src/inferrsi/benchmark/README.md
index 3f125faca..bf1aee150 100644
--- a/src/inferrsi/benchmark/README.md
+++ b/src/inferrsi/benchmark/README.md
@@ -34,6 +34,6 @@ its evaluation code, then supplies its metric reader and metric key to the
executor.
See the [engineering workloads](../../../docs/benchmarks/engineering-benchmarks.md)
-and [iterative workflow](../../../docs/optimization-benchmarks.md). The
+and [iterative workflow](../../../docs/benchmarks/optimization-benchmarks.md). The
[registry, launcher, and engineering task tests](../../../tests/benchmark/test_benchmark_operations.py)
and [assessment tests](../../../tests/benchmark/test_benchmark_assessment.py) cover these seams.
diff --git a/src/inferrsi/harness/README.md b/src/inferrsi/harness/README.md
index d8753df1b..ea269a561 100644
--- a/src/inferrsi/harness/README.md
+++ b/src/inferrsi/harness/README.md
@@ -38,9 +38,9 @@ including the RunStore mount selected by its Harness namespace. Use
`--output-id` to publish the operation result. `execute --capture-evidence`
opts a fresh attempt into production proof capture. Assessment reads fixed
retained evidence.
-See the [evaluation options and replay behavior](../../../docs/apps-evaluate-cli.md),
-the [iterative workflow](../../../docs/optimization-workflow-unification.md),
-and the [improvement workflow](../../../docs/harness-improvement.md).
+See the [evaluation options and replay behavior](../../../docs/guides/apps-evaluate-cli.md),
+the [iterative workflow](../../../docs/guides/optimization-workflow-unification.md),
+and the [improvement workflow](../../../docs/guides/harness-improvement.md).
For extension points, see the [architecture](../../../docs/architecture.md#where-to-extend).
The [RunStore tests](../../../tests/harness/test_harness_run_store.py) and
diff --git a/tests/apps/test_codex_plugin.py b/tests/apps/test_codex_plugin.py
index eebbb8e78..599da3be1 100644
--- a/tests/apps/test_codex_plugin.py
+++ b/tests/apps/test_codex_plugin.py
@@ -329,7 +329,7 @@ def test_archive_contains_only_one_standalone_plugin(tmp_path):
assert {Path(name).parts[0] for name in names} == {"inferrsi"}
assert "inferrsi/plugin.json" in names
readme = archive.read("inferrsi/README.md")
- assert readme == (PROJECT / "docs/codex-plugin.md").read_bytes()
+ assert readme == (PROJECT / "docs/guides/plugins/codex-plugin.md").read_bytes()
for target in re.findall(r"\[[^\]]*\]\(([^\s)]+)\)", readme.decode("utf-8")):
link = urlsplit(target)
if not link.scheme and not link.netloc and link.path:
@@ -365,8 +365,8 @@ def release_distribution(tmp_path_factory, request):
for directory in directories:
shutil.copytree(_io_path(PROJECT / directory), _io_path(project / directory),
ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
- (project / "docs").mkdir()
- readme = f"docs/{host}-plugin.md"
+ readme = Path("docs/guides/plugins") / f"{host}-plugin.md"
+ (project / readme).parent.mkdir(parents=True)
shutil.copyfile(PROJECT / readme, project / readme)
shutil.copyfile(PROJECT / "LICENSE", project / "LICENSE")
(project / "src/inferrsi/_version.py").write_text(
@@ -387,7 +387,7 @@ def test_release_archive_is_installable_and_all_versions_match(release_distribut
host = result["host"]
check_plugin(Path(result["archive"]), "v0.2.0", host)
assert (project / result["metadata"]).read_bytes() == template
- readme = f"docs/{host}-plugin.md"
+ readme = Path("docs/guides/plugins") / f"{host}-plugin.md"
source_readme = (project / readme).read_bytes()
assert source_readme == (PROJECT / readme).read_bytes()
expected_readme = source_readme
diff --git a/tests/apps/test_plugin_source_version.py b/tests/apps/test_plugin_source_version.py
index 198af3634..297afbfe9 100644
--- a/tests/apps/test_plugin_source_version.py
+++ b/tests/apps/test_plugin_source_version.py
@@ -37,9 +37,15 @@ def make_checkout(root, generated_version):
for directory in ("src/inferrsi", "plugins"):
shutil.copytree(_io_path(PROJECT / directory), _io_path(project / directory),
ignore=ignore)
- (project / "docs").mkdir()
- for name in ("codex-plugin.md", "workswarm-plugin.md", "dsh-plugin.md", "dashboard.md"):
- shutil.copyfile(PROJECT / "docs" / name, project / "docs" / name)
+ for relative in (
+ "docs/dashboard.md",
+ "docs/guides/plugins/codex-plugin.md",
+ "docs/guides/plugins/workswarm-plugin.md",
+ "docs/guides/plugins/dsh-plugin.md",
+ ):
+ target = project / relative
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(PROJECT / relative, target)
shutil.copyfile(PROJECT / "LICENSE", project / "LICENSE")
generated = _io_path(project / "src/inferrsi/_version.py")
# A developer's editable install may have left a generated file in the source tree.
diff --git a/tests/apps/test_workswarm_plugin.py b/tests/apps/test_workswarm_plugin.py
index 88e8a4a86..95f8f9b75 100644
--- a/tests/apps/test_workswarm_plugin.py
+++ b/tests/apps/test_workswarm_plugin.py
@@ -65,7 +65,7 @@ def test_native_manifest_and_shared_launcher(tmp_path):
PROJECT / "plugins/inferrsi/skills/inferrsi/scripts/inferrsi.py"
).read_bytes()
assert (plugin / "README.md").read_bytes() == (
- PROJECT / "docs/workswarm-plugin.md"
+ PROJECT / "docs/guides/plugins/workswarm-plugin.md"
).read_bytes()
with zipfile.ZipFile(result["archive"]) as archive:
assert {Path(name).parts[0] for name in archive.namelist()} == {"inferrsi"}
@@ -105,7 +105,8 @@ def test_builder_rejects_source_directory_output(tmp_path, directory):
def test_version_stamp_keeps_canonical_inputs_unchanged(tmp_path):
project = tmp_path / "source"
- for name in ("plugins/workswarm/inferrsi/manifest.json", "docs/workswarm-plugin.md",
+ for name in ("plugins/workswarm/inferrsi/manifest.json",
+ "docs/guides/plugins/workswarm-plugin.md",
"plugins/workswarm/inferrsi/skills/inferrsi/scripts/inferrsi.py",
"plugins/workswarm/inferrsi/tools/runtime_info_tool.py",
"plugins/inferrsi/skills/inferrsi/scripts/inferrsi.py", "LICENSE"):
diff --git a/tests/campaigns/test_drama3_prefill_noninterference.py b/tests/campaigns/test_drama3_prefill_noninterference.py
index e6cf34d8c..6c8437553 100644
--- a/tests/campaigns/test_drama3_prefill_noninterference.py
+++ b/tests/campaigns/test_drama3_prefill_noninterference.py
@@ -6,7 +6,7 @@
It models the state-ownership invariant only. It does NOT execute Drama3, GDN,
a codec, CUDA/ACL graphs or any NPU kernel, so it carries no target-execution,
graph-safety, allocator or arithmetic validity. See
-``docs/drama3-npu-readiness.md`` §3 for the contract this fixture encodes.
+``docs/field-notes/drama3-npu-readiness.md`` §3 for the contract this fixture encodes.
Mechanism being modelled
------------------------
diff --git a/tests/fixtures/skill-comparison/report-example.md b/tests/fixtures/skill-comparison/report-example.md
index 33e4a07d5..76c9f9993 100644
--- a/tests/fixtures/skill-comparison/report-example.md
+++ b/tests/fixtures/skill-comparison/report-example.md
@@ -4,7 +4,7 @@ Pipeline results only; fixed-output offline clients do not establish skill effic
Generated by the fixed-output fixture with real temporary Git snapshots. These fixture revisions are test data, not campaign defaults.
-[JSON excerpt](report-example.json) · [Reproduce the full report and retained evidence](../../../docs/skill-eval-comparison.md)
+[JSON excerpt](report-example.json) · [Reproduce the full report and retained evidence](../../../docs/skill-evaluation/skill-eval-comparison.md)
| Case | Repeat | Baseline | Candidate | Outcome |
| --- | --- | --- | --- | --- |
diff --git a/tests/fixtures/task-input/README.md b/tests/fixtures/task-input/README.md
index 9f7dfcacb..c3652b516 100644
--- a/tests/fixtures/task-input/README.md
+++ b/tests/fixtures/task-input/README.md
@@ -3,7 +3,7 @@
These files are the conformance cases for the YAML task contract read by
`inferrsi task validate|preview` (`src/inferrsi/apps/cli/task_input.py`, schema and
template under `src/inferrsi/apps/cli/task-input/v1/`). See
-[docs/task-input.md](../../../docs/task-input.md).
+[Task input guide](../../../docs/guides/task-input.md).
| File | Case |
| --- | --- |
diff --git a/tests/repository/test_template_layout.py b/tests/repository/test_template_layout.py
index 4579d8c25..687a4c1ea 100644
--- a/tests/repository/test_template_layout.py
+++ b/tests/repository/test_template_layout.py
@@ -18,6 +18,11 @@ def test_sias_readmes() -> None:
assert not (pkg / "model").exists() and not (pkg / "infra").exists()
+def test_published_plugin_release_guide_link_resolves() -> None:
+ # The bundled README in the released v0.3.0 Codex ZIP links to blob/main/docs/releases.md.
+ assert (REPO_ROOT / "docs/releases.md").is_file()
+
+
def test_maintained_documentation_links_resolve() -> None:
documents = [REPO_ROOT / "README.md", REPO_ROOT / "AGENTS.md"]
documents += list((REPO_ROOT / "docs").rglob("*.md"))
diff --git a/tools/build_codex_plugin.py b/tools/build_codex_plugin.py
index 750b6d159..bbbbcf45c 100644
--- a/tools/build_codex_plugin.py
+++ b/tools/build_codex_plugin.py
@@ -30,7 +30,7 @@ def build_plugin(
return build_bundle(
output, project=project, release_version=release_version,
template_path="plugins/inferrsi", metadata_file="plugin.json",
- readme="docs/codex-plugin.md", readme_replacement=readme_replacement,
+ readme="docs/guides/plugins/codex-plugin.md", readme_replacement=readme_replacement,
)
diff --git a/tools/build_dsh_plugin.py b/tools/build_dsh_plugin.py
index f9b181f4b..35b7d7a31 100644
--- a/tools/build_dsh_plugin.py
+++ b/tools/build_dsh_plugin.py
@@ -86,7 +86,7 @@ def build_bundle(output: Path) -> dict:
(asset / "docs").mkdir()
shutil.copyfile(PROJECT / "docs" / "dashboard.md", asset / "docs" / "dashboard.md")
shutil.copyfile(PROJECT / "LICENSE", package / "LICENSE")
- shutil.copyfile(PROJECT / "docs" / "dsh-plugin.md", package / "README.md")
+ shutil.copyfile(PROJECT / "docs/guides/plugins/dsh-plugin.md", package / "README.md")
manifest = json.loads((package / "package.json").read_text(encoding="utf-8"))
count = bundle_runtime(
source, package / "runtime", plugin_version=manifest["version"],
diff --git a/tools/build_workswarm_plugin.py b/tools/build_workswarm_plugin.py
index 488a85e6e..9534a6522 100644
--- a/tools/build_workswarm_plugin.py
+++ b/tools/build_workswarm_plugin.py
@@ -20,7 +20,7 @@ def build_plugin(
return build_bundle(
output, project=project, release_version=release_version,
template_path="plugins/workswarm/inferrsi", metadata_file="manifest.json",
- readme="docs/workswarm-plugin.md", nested=True, compact_runtime=True,
+ readme="docs/guides/plugins/workswarm-plugin.md", nested=True, compact_runtime=True,
)