soturail 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +74 -703
  2. package/dist/cli.js +6 -0
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/bench.js +4 -4
  5. package/dist/commands/bench.js.map +1 -1
  6. package/dist/commands/eval.js +14 -0
  7. package/dist/commands/eval.js.map +1 -1
  8. package/dist/commands/evidence.d.ts +2 -0
  9. package/dist/commands/evidence.js +18 -0
  10. package/dist/commands/evidence.js.map +1 -0
  11. package/dist/commands/knowledge.d.ts +2 -0
  12. package/dist/commands/knowledge.js +26 -0
  13. package/dist/commands/knowledge.js.map +1 -0
  14. package/dist/commands/skills.js +26 -0
  15. package/dist/commands/skills.js.map +1 -1
  16. package/dist/commands/tasklet.d.ts +2 -0
  17. package/dist/commands/tasklet.js +20 -0
  18. package/dist/commands/tasklet.js.map +1 -0
  19. package/dist/core/agent-qa.d.ts +26 -0
  20. package/dist/core/agent-qa.js +178 -0
  21. package/dist/core/agent-qa.js.map +1 -0
  22. package/dist/core/code-health.js +19 -19
  23. package/dist/core/code-health.js.map +1 -1
  24. package/dist/core/config.d.ts +4 -0
  25. package/dist/core/config.js +8 -0
  26. package/dist/core/config.js.map +1 -1
  27. package/dist/core/context-intelligence.js +1 -1
  28. package/dist/core/context-intelligence.js.map +1 -1
  29. package/dist/core/evidence-provenance.d.ts +45 -0
  30. package/dist/core/evidence-provenance.js +122 -0
  31. package/dist/core/evidence-provenance.js.map +1 -0
  32. package/dist/core/harness-lifecycle.js +1 -1
  33. package/dist/core/harness-lifecycle.js.map +1 -1
  34. package/dist/core/harness-rail.js +2 -2
  35. package/dist/core/harness-rail.js.map +1 -1
  36. package/dist/core/knowledge-rail.d.ts +58 -0
  37. package/dist/core/knowledge-rail.js +224 -0
  38. package/dist/core/knowledge-rail.js.map +1 -0
  39. package/dist/core/release-preflight.js +18 -18
  40. package/dist/core/release-preflight.js.map +1 -1
  41. package/dist/core/reverse-specification.js +2 -2
  42. package/dist/core/reverse-specification.js.map +1 -1
  43. package/dist/core/schema-readiness.js +22 -16
  44. package/dist/core/schema-readiness.js.map +1 -1
  45. package/dist/core/skill-rail-v2.d.ts +24 -0
  46. package/dist/core/skill-rail-v2.js +106 -0
  47. package/dist/core/skill-rail-v2.js.map +1 -0
  48. package/dist/core/tasklet-rail.d.ts +22 -0
  49. package/dist/core/tasklet-rail.js +69 -0
  50. package/dist/core/tasklet-rail.js.map +1 -0
  51. package/dist/core/version.d.ts +1 -1
  52. package/dist/core/version.js +1 -1
  53. package/docs/README.md +53 -0
  54. package/docs/{observability-rail.md → architecture/observability-rail.md} +5 -5
  55. package/docs/{agent-harness-synthesis-2026.md → ecosystem/agent-harness-synthesis-2026.md} +3 -3
  56. package/docs/{conductor-mode.md → ecosystem/conductor-mode.md} +3 -3
  57. package/docs/{ecosystem-influences.md → ecosystem/ecosystem-influences.md} +13 -13
  58. package/docs/{external-projects-audit.md → ecosystem/external-projects-audit.md} +1 -1
  59. package/docs/{migration-v1.md → getting-started/migration-v1.md} +1 -1
  60. package/docs/{context-intelligence.md → rails/context/context-intelligence.md} +4 -4
  61. package/docs/{context-packs.md → rails/context/context-packs.md} +7 -7
  62. package/docs/{memory-rail.md → rails/context/memory-rail.md} +2 -2
  63. package/docs/{structured-payload-rail.md → rails/context/structured-payload-rail.md} +3 -3
  64. package/docs/{spec-driven-workflow.md → rails/design/spec-driven-workflow.md} +1 -1
  65. package/docs/rails/evaluation/agent-qa-rail.md +34 -0
  66. package/docs/{benchmarking.md → rails/evaluation/benchmarking.md} +1 -1
  67. package/docs/rails/evidence/evidence-provenance-rail.md +41 -0
  68. package/docs/{report-rail.md → rails/evidence/report-rail.md} +4 -4
  69. package/docs/{governance-cost-rail.md → rails/governance/governance-cost-rail.md} +1 -1
  70. package/docs/{rules.md → rails/governance/rules.md} +2 -2
  71. package/docs/{harness-lifecycle-rail.md → rails/harness/harness-lifecycle-rail.md} +2 -2
  72. package/docs/{harness-rail.md → rails/harness/harness-rail.md} +1 -1
  73. package/docs/{workflow-rail.md → rails/harness/workflow-rail.md} +4 -4
  74. package/docs/{agent-docs-hygiene.md → rails/hosts/agent-docs-hygiene.md} +1 -1
  75. package/docs/{agent-hosts.md → rails/hosts/agent-hosts.md} +4 -4
  76. package/docs/{agents.md → rails/hosts/agents.md} +10 -10
  77. package/docs/rails/knowledge/knowledge-rail.md +49 -0
  78. package/docs/rails/skills/skill-rail-2.md +42 -0
  79. package/docs/rails/tasklets/tasklet-rail.md +32 -0
  80. package/docs/{release-checklist.md → reference/commands/release-checklist.md} +1 -1
  81. package/docs/{stable-command-surface.md → reference/commands/stable-command-surface.md} +20 -13
  82. package/docs/reference/commands/v1.4-commands.md +51 -0
  83. package/docs/{deprecation-policy.md → reference/contracts/deprecation-policy.md} +1 -1
  84. package/docs/{v1-contract.md → reference/contracts/v1-contract.md} +3 -3
  85. package/docs/{licensing-strategy.md → reference/licensing-strategy.md} +1 -1
  86. package/docs/{schema-contracts.md → reference/schemas/schema-contracts.md} +16 -2
  87. package/docs/releases/RELEASE_NOTES_v0.10.1.md +3 -3
  88. package/docs/releases/RELEASE_NOTES_v1.0.1.md +1 -1
  89. package/docs/releases/RELEASE_NOTES_v1.4.0.md +47 -0
  90. package/docs/{future-rails-index.md → roadmap/future-rails-index.md} +83 -91
  91. package/docs/{repo-docs-audit-2026-06-05.md → roadmap/repo-docs-audit-2026-06-05.md} +10 -10
  92. package/docs/{roadmap-docs-audit.md → roadmap/roadmap-docs-audit.md} +14 -14
  93. package/docs/{roadmap-harness-diagram-payload-addendum.md → roadmap/roadmap-harness-diagram-payload-addendum.md} +10 -10
  94. package/docs/{security-boundaries.md → security/security-boundaries.md} +8 -5
  95. package/docs/{security-model.md → security/security-model.md} +1 -1
  96. package/docs/{tutorial-codex.md → tutorials/tutorial-codex.md} +1 -1
  97. package/examples/workflows/agent-pipeline-workflow.md +11 -0
  98. package/package.json +2 -1
  99. package/docs/agent-qa-rail.md +0 -92
  100. package/docs/evidence-provenance-rail.md +0 -70
  101. package/docs/knowledge-rail.md +0 -76
  102. package/docs/skill-rail-2.md +0 -110
  103. package/docs/tasklet-rail.md +0 -62
  104. /package/docs/{architecture-boundaries.md → architecture/architecture-boundaries.md} +0 -0
  105. /package/docs/{architecture.md → architecture/architecture.md} +0 -0
  106. /package/docs/{clean-code-guidelines.md → architecture/clean-code-guidelines.md} +0 -0
  107. /package/docs/{dashboard-rail.md → architecture/dashboard-rail.md} +0 -0
  108. /package/docs/{comparisons.md → ecosystem/comparisons.md} +0 -0
  109. /package/docs/{first-real-workflow.md → getting-started/first-real-workflow.md} +0 -0
  110. /package/docs/{migration-v0.5.md → getting-started/migration-v0.5.md} +0 -0
  111. /package/docs/{mvp.md → getting-started/mvp.md} +0 -0
  112. /package/docs/{quickstart.md → getting-started/quickstart.md} +0 -0
  113. /package/docs/{usage.md → getting-started/usage.md} +0 -0
  114. /package/docs/{windows.md → getting-started/windows.md} +0 -0
  115. /package/docs/{prompt-caching.md → rails/context/prompt-caching.md} +0 -0
  116. /package/docs/{reducers.md → rails/context/reducers.md} +0 -0
  117. /package/docs/{response-compression.md → rails/context/response-compression.md} +0 -0
  118. /package/docs/{design-rail.md → rails/design/design-rail.md} +0 -0
  119. /package/docs/{diagram-rail.md → rails/design/diagram-rail.md} +0 -0
  120. /package/docs/{eval-datasets.md → rails/evaluation/eval-datasets.md} +0 -0
  121. /package/docs/{evaluation-suite.md → rails/evaluation/evaluation-suite.md} +0 -0
  122. /package/docs/{golden-agent-tests.md → rails/evaluation/golden-agent-tests.md} +0 -0
  123. /package/docs/{llm-as-judge-policy.md → rails/evaluation/llm-as-judge-policy.md} +0 -0
  124. /package/docs/{metrics.md → rails/evaluation/metrics.md} +0 -0
  125. /package/docs/{agent-readable-reports.md → rails/evidence/agent-readable-reports.md} +0 -0
  126. /package/docs/{report-redaction.md → rails/evidence/report-redaction.md} +0 -0
  127. /package/docs/{agent-governance-rail.md → rails/governance/agent-governance-rail.md} +0 -0
  128. /package/docs/{baseline-snapshots.md → rails/governance/baseline-snapshots.md} +0 -0
  129. /package/docs/{native-performance-policy.md → rails/governance/native-performance-policy.md} +0 -0
  130. /package/docs/{native-runner.md → rails/governance/native-runner.md} +0 -0
  131. /package/docs/{policy-rail.md → rails/governance/policy-rail.md} +0 -0
  132. /package/docs/{rate-limit-and-fallback-policy.md → rails/governance/rate-limit-and-fallback-policy.md} +0 -0
  133. /package/docs/{resilience-rail.md → rails/governance/resilience-rail.md} +0 -0
  134. /package/docs/{filesystem-evidence-rail.md → rails/harness/filesystem-evidence-rail.md} +0 -0
  135. /package/docs/{deep-agents-patterns.md → rails/hosts/deep-agents-patterns.md} +0 -0
  136. /package/docs/{hooks.md → rails/hosts/hooks.md} +0 -0
  137. /package/docs/{host-compatibility-rail.md → rails/hosts/host-compatibility-rail.md} +0 -0
  138. /package/docs/{host-router-rail.md → rails/hosts/host-router-rail.md} +0 -0
  139. /package/docs/{mcp-host-manifest.md → rails/hosts/mcp-host-manifest.md} +0 -0
  140. /package/docs/{mcp-report-resources.md → rails/hosts/mcp-report-resources.md} +0 -0
  141. /package/docs/{mcp.md → rails/hosts/mcp.md} +0 -0
  142. /package/docs/{code-graph.md → rails/knowledge/code-graph.md} +0 -0
  143. /package/docs/{knowledge-graph-rail.md → rails/knowledge/knowledge-graph-rail.md} +0 -0
  144. /package/docs/{knowledge-to-rules.md → rails/knowledge/knowledge-to-rules.md} +0 -0
  145. /package/docs/{project-brain.md → rails/knowledge/project-brain.md} +0 -0
  146. /package/docs/{reverse-specification-rail.md → rails/knowledge/reverse-specification-rail.md} +0 -0
  147. /package/docs/{skill-rail.md → rails/skills/skill-rail.md} +0 -0
  148. /package/docs/{multi-agent-workflow-templates.md → rails/tasklets/multi-agent-workflow-templates.md} +0 -0
  149. /package/docs/{branding.md → reference/branding.md} +0 -0
  150. /package/docs/{release-workflow.md → reference/commands/release-workflow.md} +0 -0
  151. /package/docs/{status-command.md → reference/commands/status-command.md} +0 -0
  152. /package/docs/{agent-export-contract.md → reference/contracts/agent-export-contract.md} +0 -0
  153. /package/docs/{media-guide.md → reference/media-guide.md} +0 -0
  154. /package/docs/{host-matrix-schema.md → reference/schemas/host-matrix-schema.md} +0 -0
  155. /package/docs/{public-roadmap.md → roadmap/public-roadmap.md} +0 -0
  156. /package/docs/{roadmap-agent-runtime-addendum.md → roadmap/roadmap-agent-runtime-addendum.md} +0 -0
  157. /package/docs/{tutorial-antigravity.md → tutorials/tutorial-antigravity.md} +0 -0
  158. /package/docs/{tutorial-claude-code.md → tutorials/tutorial-claude-code.md} +0 -0
  159. /package/docs/{tutorial-context-formats.md → tutorials/tutorial-context-formats.md} +0 -0
  160. /package/docs/{tutorial-cursor.md → tutorials/tutorial-cursor.md} +0 -0
  161. /package/docs/{tutorial-deep-agents-role-packs.md → tutorials/tutorial-deep-agents-role-packs.md} +0 -0
  162. /package/docs/{tutorial-diagram-spec.md → tutorials/tutorial-diagram-spec.md} +0 -0
  163. /package/docs/{tutorial-gemini-cli.md → tutorials/tutorial-gemini-cli.md} +0 -0
  164. /package/docs/{tutorial-harness-workflow.md → tutorials/tutorial-harness-workflow.md} +0 -0
  165. /package/docs/{tutorial-opencode.md → tutorials/tutorial-opencode.md} +0 -0
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/sync-version.mjs from package.json. Do not edit manually.
2
- export const SOTURAIL_VERSION = "1.2.0";
2
+ export const SOTURAIL_VERSION = "1.4.0";
3
3
  //# sourceMappingURL=version.js.map
package/docs/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # SotuRail Documentation
2
+
3
+ SotuRail documentation is organized by task and rail. Start with the [Quickstart](getting-started/quickstart.md), then open only the sections relevant to the current work.
4
+
5
+ ## Getting Started
6
+
7
+ - [All Getting Started Docs](getting-started/)
8
+ - [Quickstart](getting-started/quickstart.md)
9
+ - [Usage](getting-started/usage.md)
10
+ - [First Real Workflow](getting-started/first-real-workflow.md)
11
+ - [Windows](getting-started/windows.md)
12
+ - [Migration To v1](getting-started/migration-v1.md)
13
+
14
+ ## Stable Rails
15
+
16
+ - [Context And Memory](rails/context/)
17
+ - [Harness And Workflow](rails/harness/)
18
+ - [Knowledge](rails/knowledge/)
19
+ - [Evidence And Reports](rails/evidence/)
20
+ - [Evaluation And Agent QA](rails/evaluation/)
21
+ - [Skills](rails/skills/)
22
+ - [Tasklets](rails/tasklets/)
23
+ - [Agent Hosts And MCP](rails/hosts/)
24
+ - [Governance And Policy](rails/governance/)
25
+ - [Spec, Design And Diagram](rails/design/)
26
+
27
+ ## Reference
28
+
29
+ - [All Reference Docs](reference/)
30
+ - [Stable Command Surface](reference/commands/stable-command-surface.md)
31
+ - [v1.4 Commands](reference/commands/v1.4-commands.md)
32
+ - [Schema Contracts](reference/schemas/schema-contracts.md)
33
+ - [v1 Contract](reference/contracts/v1-contract.md)
34
+ - [Architecture](architecture/)
35
+ - [Security](security/)
36
+
37
+ ## Planning And Ecosystem
38
+
39
+ - [All Roadmap Docs](roadmap/)
40
+ - [Roadmap Index](roadmap/future-rails-index.md)
41
+ - [Ecosystem Influences](ecosystem/ecosystem-influences.md)
42
+ - [Agent And Harness Synthesis](ecosystem/agent-harness-synthesis-2026.md)
43
+ - [Release Notes](releases/)
44
+
45
+ ## Additional Material
46
+
47
+ - [Tutorials](tutorials/)
48
+ - [Examples](examples/)
49
+ - [Hook Examples](hooks/)
50
+ - [Portuguese Docs](pt-BR/)
51
+ - [Documentation Assets](assets/)
52
+
53
+ SotuRail documentation describes implemented and planned surfaces explicitly. Proposed commands are not stable contracts until implemented and tested.
@@ -57,10 +57,10 @@ The first implementation can remain local artifacts and dashboard cards. A live
57
57
 
58
58
  Observability Rail is the local timeline layer that feeds several planned rails:
59
59
 
60
- - [`agent-qa-rail.md`](agent-qa-rail.md) defines eval runs, scores and regression artifacts that can become observability events.
61
- - [`evidence-provenance-rail.md`](evidence-provenance-rail.md) defines verification status and provenance sidecars that reports and timelines should surface.
62
- - [`agent-governance-rail.md`](agent-governance-rail.md) extends observability into trace, ledger, experiment and approval records.
63
- - [`resilience-rail.md`](resilience-rail.md) adds rate-limit/fallback/provider-risk warnings as local events, not cloud telemetry.
60
+ - [`agent-qa-rail.md`](../rails/evaluation/agent-qa-rail.md) defines eval runs, scores and regression artifacts that can become observability events.
61
+ - [`evidence-provenance-rail.md`](../rails/evidence/evidence-provenance-rail.md) defines verification status and provenance sidecars that reports and timelines should surface.
62
+ - [`agent-governance-rail.md`](../rails/governance/agent-governance-rail.md) extends observability into trace, ledger, experiment and approval records.
63
+ - [`resilience-rail.md`](../rails/governance/resilience-rail.md) adds rate-limit/fallback/provider-risk warnings as local events, not cloud telemetry.
64
64
 
65
65
  This keeps the boundary clear: SotuRail observes local artifacts and user-approved records; it does not upload traces or become a hosted LangFuse/OpenTelemetry replacement by default.
66
66
 
@@ -71,4 +71,4 @@ Hermes-style trajectory compression and Odysseus-style visual workspaces reinfor
71
71
  - keep observability as local, recoverable evidence rather than uploaded telemetry;
72
72
  - present Context Packs, Memory, Reports, Evidence, Workflows, Host Compatibility, Skills, lifecycle state and Handoffs as bounded dashboard/report sections.
73
73
 
74
- SotuRail does not add a required server, chat workspace or central shell interface. See [Security Boundaries](security-boundaries.md).
74
+ SotuRail does not add a required server, chat workspace or central shell interface. See [Security Boundaries](../security/security-boundaries.md).
@@ -92,10 +92,10 @@ v1.2.0 implements Harness Lifecycle Rail for local state, audits, feature tracki
92
92
  ```txt
93
93
  v1.1.1 Host Compatibility Polish, docs synthesis, golden export checks
94
94
  v1.2.0 Harness Lifecycle Rail plus staged Spec, Design and Diagram work
95
- v1.3.0 Knowledge, Evidence and Evaluation Rail
96
- v1.4.0 Skill Rail 2.0, Knowledge-to-Skill and Tasklet Packs
95
+ v1.3.0 Absorbed into v1.4.0
96
+ v1.4.0 Knowledge, Evidence, Evaluation, Skills and Tasklets
97
97
  v1.5.0 Governance, Cost, Resilience and Host Router Rail
98
98
  v1.6.0 Agent Governance / Evolution Rail
99
99
  ```
100
100
 
101
- The exact future command names are not frozen. Related: [Ecosystem Influences](ecosystem-influences.md), [External Projects Audit](external-projects-audit.md), [Harness Lifecycle Rail](harness-lifecycle-rail.md), [Security Boundaries](security-boundaries.md).
101
+ v1.4.0 implements the local Knowledge, Evidence, Agent QA, Skill Rail 2.0 and dry-run Tasklet surfaces. The exact command names for later governance and Conductor work are not frozen. Related: [Ecosystem Influences](ecosystem-influences.md), [External Projects Audit](external-projects-audit.md), [Harness Lifecycle Rail](../rails/harness/harness-lifecycle-rail.md), [Security Boundaries](../security/security-boundaries.md).
@@ -1,6 +1,6 @@
1
1
  # SotuRail Conductor Mode
2
2
 
3
- Status: **Proposed future optional mode. Not implemented in v1.2.0.**
3
+ Status: **Proposed future optional mode. Not implemented in v1.4.0.**
4
4
 
5
5
  SotuRail Core remains the CLI-first, npm-first, local-first Context OS and harness layer. A future optional mode called **SotuRail Conductor** may coordinate planning, verification and documentation workflows without replacing agent hosts.
6
6
 
@@ -37,8 +37,8 @@ soturail conductor apply --approved
37
37
 
38
38
  ## Safe Capability Boundary
39
39
 
40
- A future Conductor may read a repository, create plans and tasklets, generate reports, validate links, compare host exports and propose patches. Applying a patch must require explicit approval.
40
+ A future Conductor may read a repository, create plans and use the implemented dry-run tasklet templates, generate reports, validate links, compare host exports and propose patches. Applying a patch must require explicit approval.
41
41
 
42
42
  It must not become a chat product, unbounded fix-everything loop, central shell agent, browser agent, cloud agent or provider-specific runtime.
43
43
 
44
- See [Security Boundaries](security-boundaries.md), [Harness Lifecycle Rail](harness-lifecycle-rail.md) and [Future Rails Index](future-rails-index.md).
44
+ See [Security Boundaries](../security/security-boundaries.md), [Harness Lifecycle Rail](../rails/harness/harness-lifecycle-rail.md) and [Future Rails Index](../roadmap/future-rails-index.md).
@@ -70,7 +70,7 @@ SotuRail = local context, harness, evidence, policy and host handoff layer.
70
70
 
71
71
  Hermes contributes useful inspiration for trajectory compression, session search, toolset profiles, skills and subagent role packs. Odysseus contributes useful inspiration for local dashboard cards, host fit checks, visual evidence reports and privacy/security documentation.
72
72
 
73
- SotuRail does not copy their runtime, chat UI, model serving, local-service stack or central shell behavior. See [`agent-harness-synthesis-2026.md`](agent-harness-synthesis-2026.md), [`security-boundaries.md`](security-boundaries.md) and [`conductor-mode.md`](conductor-mode.md).
73
+ SotuRail does not copy their runtime, chat UI, model serving, local-service stack or central shell behavior. See [`agent-harness-synthesis-2026.md`](agent-harness-synthesis-2026.md), [`security-boundaries.md`](../security/security-boundaries.md) and [`conductor-mode.md`](conductor-mode.md).
74
74
 
75
75
  ## 2026 Agent Runtime Update
76
76
 
@@ -83,7 +83,7 @@ agent host = model + planning loop + editing/runtime surface
83
83
  SotuRail = local context + rules + budget + skills + workspace + harness evidence + safety reports
84
84
  ```
85
85
 
86
- See [`roadmap-agent-runtime-addendum.md`](roadmap-agent-runtime-addendum.md) for the updated rail plan.
86
+ See [`roadmap-agent-runtime-addendum.md`](../roadmap/roadmap-agent-runtime-addendum.md) for the updated rail plan.
87
87
 
88
88
  ### Host-Aware Agent Runtime Patterns
89
89
 
@@ -308,7 +308,7 @@ Where it maps:
308
308
  - `trace`
309
309
  - `report`
310
310
 
311
- See [deep-agents-patterns.md](deep-agents-patterns.md).
311
+ See [deep-agents-patterns.md](../rails/hosts/deep-agents-patterns.md).
312
312
 
313
313
  ## Claude Code, AGENTS.md And Minimal Context Hygiene
314
314
 
@@ -525,15 +525,15 @@ The reviewed materials are now mapped into SotuRail planning as follows:
525
525
 
526
526
  | Source idea | SotuRail docs now covering it |
527
527
  | --- | --- |
528
- | QA agent with tests, datasets, CI and traces | [`agent-qa-rail.md`](agent-qa-rail.md), [`eval-datasets.md`](eval-datasets.md), [`golden-agent-tests.md`](golden-agent-tests.md), [`llm-as-judge-policy.md`](llm-as-judge-policy.md) |
529
- | CrewAI/LiteLLM-style roles, fallback and rate limits | [`multi-agent-workflow-templates.md`](multi-agent-workflow-templates.md), [`resilience-rail.md`](resilience-rail.md), [`rate-limit-and-fallback-policy.md`](rate-limit-and-fallback-policy.md) |
530
- | Validate -> fix -> verify -> report agent pipeline | [`observability-rail.md`](observability-rail.md), [`workflow-rail.md`](workflow-rail.md), [`examples/workflows/agent-pipeline-workflow.md`](../examples/workflows/agent-pipeline-workflow.md) |
531
- | OpenTracy-style trace, ledger, approval and experiments | [`agent-governance-rail.md`](agent-governance-rail.md), [`evidence-provenance-rail.md`](evidence-provenance-rail.md) |
532
- | Harness engineering lifecycle | [`harness-lifecycle-rail.md`](harness-lifecycle-rail.md), [`harness-rail.md`](harness-rail.md), [`workflow-rail.md`](workflow-rail.md) |
533
- | ECC-style cross-host harness, doctor, audit and skills | [`host-compatibility-rail.md`](host-compatibility-rail.md), [`agent-hosts.md`](agent-hosts.md), [`skill-rail-2.md`](skill-rail-2.md), [`future-rails-index.md`](future-rails-index.md) |
534
- | Feynman-style provenance and verifier status | [`evidence-provenance-rail.md`](evidence-provenance-rail.md), [`report-rail.md`](report-rail.md) |
535
- | book-to-skill-style document-to-skill packs | [`knowledge-rail.md`](knowledge-rail.md), [`skill-rail-2.md`](skill-rail-2.md), [`context-packs.md`](context-packs.md) |
536
- | Tasklet-style small reusable task blocks | [`tasklet-rail.md`](tasklet-rail.md), [`workflow-rail.md`](workflow-rail.md) |
537
- | 9Router-style router metaphor and token/context savings | [`host-router-rail.md`](host-router-rail.md), [`context-packs.md`](context-packs.md), [`governance-cost-rail.md`](governance-cost-rail.md) |
528
+ | QA agent with tests, datasets, CI and traces | [`agent-qa-rail.md`](../rails/evaluation/agent-qa-rail.md), [`eval-datasets.md`](../rails/evaluation/eval-datasets.md), [`golden-agent-tests.md`](../rails/evaluation/golden-agent-tests.md), [`llm-as-judge-policy.md`](../rails/evaluation/llm-as-judge-policy.md) |
529
+ | CrewAI/LiteLLM-style roles, fallback and rate limits | [`multi-agent-workflow-templates.md`](../rails/tasklets/multi-agent-workflow-templates.md), [`resilience-rail.md`](../rails/governance/resilience-rail.md), [`rate-limit-and-fallback-policy.md`](../rails/governance/rate-limit-and-fallback-policy.md) |
530
+ | Validate -> fix -> verify -> report agent pipeline | [`observability-rail.md`](../architecture/observability-rail.md), [`workflow-rail.md`](../rails/harness/workflow-rail.md), [`examples/workflows/agent-pipeline-workflow.md`](../../examples/workflows/agent-pipeline-workflow.md) |
531
+ | OpenTracy-style trace, ledger, approval and experiments | [`agent-governance-rail.md`](../rails/governance/agent-governance-rail.md), [`evidence-provenance-rail.md`](../rails/evidence/evidence-provenance-rail.md) |
532
+ | Harness engineering lifecycle | [`harness-lifecycle-rail.md`](../rails/harness/harness-lifecycle-rail.md), [`harness-rail.md`](../rails/harness/harness-rail.md), [`workflow-rail.md`](../rails/harness/workflow-rail.md) |
533
+ | ECC-style cross-host harness, doctor, audit and skills | [`host-compatibility-rail.md`](../rails/hosts/host-compatibility-rail.md), [`agent-hosts.md`](../rails/hosts/agent-hosts.md), [`skill-rail-2.md`](../rails/skills/skill-rail-2.md), [`future-rails-index.md`](../roadmap/future-rails-index.md) |
534
+ | Feynman-style provenance and verifier status | [`evidence-provenance-rail.md`](../rails/evidence/evidence-provenance-rail.md), [`report-rail.md`](../rails/evidence/report-rail.md) |
535
+ | book-to-skill-style document-to-skill packs | [`knowledge-rail.md`](../rails/knowledge/knowledge-rail.md), [`skill-rail-2.md`](../rails/skills/skill-rail-2.md), [`context-packs.md`](../rails/context/context-packs.md) |
536
+ | Tasklet-style small reusable task blocks | [`tasklet-rail.md`](../rails/tasklets/tasklet-rail.md), [`workflow-rail.md`](../rails/harness/workflow-rail.md) |
537
+ | 9Router-style router metaphor and token/context savings | [`host-router-rail.md`](../rails/hosts/host-router-rail.md), [`context-packs.md`](../rails/context/context-packs.md), [`governance-cost-rail.md`](../rails/governance/governance-cost-rail.md) |
538
538
 
539
539
  This checklist is intentionally documentation-only. Runtime implementation should happen gradually through roadmap milestones and tests.
@@ -38,7 +38,7 @@ Hermes is an agent runtime. Odysseus is a workspace plus runtime and local-servi
38
38
 
39
39
  Useful patterns include trajectory compression, session search, toolset profiles, role packs, local dashboard cards, visual evidence and explicit privacy boundaries. Model serving, mandatory web UI, central shell access and bundled personal productivity services remain outside SotuRail scope.
40
40
 
41
- See [Agent And Harness Synthesis 2026](agent-harness-synthesis-2026.md) and [Security Boundaries](security-boundaries.md).
41
+ See [Agent And Harness Synthesis 2026](agent-harness-synthesis-2026.md) and [Security Boundaries](../security/security-boundaries.md).
42
42
 
43
43
  ### 1. Host compatibility without becoming a host
44
44
 
@@ -29,7 +29,7 @@ This guide prepares SotuRail users and agents for the v1.0 stable local Context
29
29
 
30
30
  ## Stable Surface
31
31
 
32
- See [stable-command-surface.md](stable-command-surface.md). v1.0 freezes the documented stable surface, not every experimental seed.
32
+ See [stable-command-surface.md](../reference/commands/stable-command-surface.md). v1.0 freezes the documented stable surface, not every experimental seed.
33
33
 
34
34
  ## Experimental Commands
35
35
 
@@ -62,23 +62,23 @@ SotuRail context select
62
62
  query: release checklist
63
63
  items_count: 4
64
64
 
65
- - file: docs/release-workflow.md
65
+ - file: docs/reference/commands/release-workflow.md
66
66
  Score: 10
67
67
  Reason: keyword overlap, release path
68
68
  Estimated tokens: 520
69
69
  Summary: Release verification and publish ordering.
70
- Recovery: open docs/release-workflow.md
70
+ Recovery: open docs/reference/commands/release-workflow.md
71
71
  ```
72
72
 
73
73
  `context prune` separates what fits from what was omitted:
74
74
 
75
75
  ```txt
76
76
  Included context:
77
- - file: docs/memory-rail.md (440 tokens)
77
+ - file: docs/rails/context/memory-rail.md (440 tokens)
78
78
  Reason: keyword overlap
79
79
 
80
80
  Omitted context:
81
- - file: docs/evaluation-suite.md (1600 tokens)
81
+ - file: docs/rails/evaluation/evaluation-suite.md (1600 tokens)
82
82
  Recovery: rerun with a larger --budget or offload the file.
83
83
  ```
84
84
 
@@ -177,7 +177,7 @@ v0.5.1 includes a light local seed:
177
177
 
178
178
  ```bash
179
179
  soturail validate json config.json --strict
180
- soturail format compare docs/usage.md
180
+ soturail format compare docs/getting-started/usage.md
181
181
  ```
182
182
 
183
183
  The validator should warn about:
@@ -264,7 +264,7 @@ Possible future diagram context:
264
264
  - context router diagram;
265
265
  - feature `.spec.md` Mermaid diagram.
266
266
 
267
- See [diagram-rail.md](diagram-rail.md).
267
+ See [diagram-rail.md](../design/diagram-rail.md).
268
268
 
269
269
  ## Lifecycle And Context Budget
270
270
 
@@ -291,10 +291,10 @@ If pruning or formatting would remove required evidence, SotuRail should report
291
291
 
292
292
  Context Packs connect directly to the newer knowledge and host-routing plans:
293
293
 
294
- - [`knowledge-rail.md`](knowledge-rail.md): compile docs/specs/notes into on-demand topic packs instead of loading everything into one prompt.
295
- - [`host-router-rail.md`](host-router-rail.md): translate one local context source into host-specific exports for Claude, Codex, Cursor, OpenCode, Gemini and generic Markdown.
296
- - [`tasklet-rail.md`](tasklet-rail.md): attach a small task template to a minimal context pack.
297
- - [`resilience-rail.md`](resilience-rail.md): warn when a context pack implies expensive, provider-dependent or long-running workflows.
298
- - [`agent-qa-rail.md`](agent-qa-rail.md): test whether compact/role-specific context packs preserve required facts.
294
+ - [`knowledge-rail.md`](../knowledge/knowledge-rail.md): compile docs/specs/notes into on-demand topic packs instead of loading everything into one prompt.
295
+ - [`host-router-rail.md`](../hosts/host-router-rail.md): translate one local context source into host-specific exports for Claude, Codex, Cursor, OpenCode, Gemini and generic Markdown.
296
+ - [`tasklet-rail.md`](../tasklets/tasklet-rail.md): attach a small task template to a minimal context pack.
297
+ - [`resilience-rail.md`](../governance/resilience-rail.md): warn when a context pack implies expensive, provider-dependent or long-running workflows.
298
+ - [`agent-qa-rail.md`](../evaluation/agent-qa-rail.md): test whether compact/role-specific context packs preserve required facts.
299
299
 
300
300
  The key rule is progressive disclosure: SotuRail should send the smallest useful context first and keep large raw evidence recoverable by path, id or offload pointer.
@@ -28,7 +28,7 @@ Default principles:
28
28
  ```bash
29
29
  soturail memory remember "Decision: keep MCP read-only by default" --tag architecture --source manual
30
30
  soturail memory recall "npm release policy" --limit 5
31
- soturail memory capture --from-file docs/release-workflow.md
31
+ soturail memory capture --from-file docs/reference/commands/release-workflow.md
32
32
  soturail memory consolidate
33
33
  soturail memory doctor
34
34
  soturail memory approve <id>
@@ -68,7 +68,7 @@ Matches:
68
68
  - mem_001 [score 8.00]
69
69
  Text: Never create GitHub release before npm publish succeeds.
70
70
  Reason: exact text match, keyword overlap
71
- Source: docs/release-workflow.md
71
+ Source: docs/reference/commands/release-workflow.md
72
72
  Tags: release
73
73
  Confidence/privacy: medium / normal
74
74
  ```
@@ -41,7 +41,7 @@ v0.5.1 adds a light local validator and a format comparison seed:
41
41
 
42
42
  ```bash
43
43
  soturail validate json config.json --strict
44
- soturail format compare docs/usage.md
44
+ soturail format compare docs/getting-started/usage.md
45
45
  ```
46
46
 
47
47
  The strict JSON validator warns about:
@@ -132,7 +132,7 @@ Call this `tagged context` or `XML-like tagged context`, not mandatory XML.
132
132
  Tagged blocks are useful when an LLM needs long prompt context with clear boundaries:
133
133
 
134
134
  ```xml
135
- <release_evidence source="docs/release-workflow.md">
135
+ <release_evidence source="docs/reference/commands/release-workflow.md">
136
136
  npm publish must finish before the GitHub release is created.
137
137
  </release_evidence>
138
138
  ```
@@ -209,7 +209,7 @@ Additional host guidance:
209
209
  `soturail format compare <file>` gives a local, approximate first pass:
210
210
 
211
211
  ```bash
212
- soturail format compare docs/usage.md
212
+ soturail format compare docs/getting-started/usage.md
213
213
  ```
214
214
 
215
215
  The report includes:
@@ -59,4 +59,4 @@ A diagram should not replace tests or reviews. It should make the intended behav
59
59
 
60
60
  The validator is intentionally lightweight. It is useful as a local rail, not as a full Mermaid parser.
61
61
 
62
- See [diagram-rail.md](diagram-rail.md) and [workflow-rail.md](workflow-rail.md).
62
+ See [diagram-rail.md](diagram-rail.md) and [workflow-rail.md](../harness/workflow-rail.md).
@@ -0,0 +1,34 @@
1
+ # Agent QA Rail
2
+
3
+ Agent QA Rail tests SotuRail-generated agent artifacts with deterministic local fixtures.
4
+
5
+ ## Commands
6
+
7
+ ```bash
8
+ soturail eval dataset init
9
+ soturail eval dataset run
10
+ soturail eval golden
11
+ soturail eval regression
12
+ soturail eval report
13
+ ```
14
+
15
+ Artifacts are written under `.soturail/evals/`.
16
+
17
+ ## Golden Checks
18
+
19
+ The default checks verify that:
20
+
21
+ - host exports are non-empty and preserve SotuRail identity;
22
+ - exports avoid unrelated product or autonomous-runtime claims;
23
+ - knowledge packs include metadata and source maps;
24
+ - evidence reports do not claim unsupported verification;
25
+ - skills expose reviewed safety information;
26
+ - tasklets remain dry-run templates.
27
+
28
+ ## Policy
29
+
30
+ Default Agent QA is offline, deterministic, provider-agnostic and safe for CI. Provider-backed LLM-as-judge evaluation remains optional and documentation-only; it is not a default release gate.
31
+
32
+ Passing these checks proves the local contracts were met. It does not prove every external agent will behave correctly.
33
+
34
+ Related: [Evaluation Suite](evaluation-suite.md), [Golden Agent Tests](golden-agent-tests.md), [Evidence Provenance Rail](../evidence/evidence-provenance-rail.md).
@@ -118,7 +118,7 @@ workflow-evidence
118
118
 
119
119
  Candidate native hot paths may include large JSONL scans, rangeHash computation, source-range relocation and duplicate claim clustering. Agent brief rendering and release preflight are not native candidates until local evidence proves a bottleneck.
120
120
 
121
- See [native-performance-policy.md](native-performance-policy.md).
121
+ See [native-performance-policy.md](../governance/native-performance-policy.md).
122
122
 
123
123
  ## Evaluation Suite
124
124
 
@@ -0,0 +1,41 @@
1
+ # Evidence And Provenance Rail
2
+
3
+ Evidence And Provenance Rail records what local artifacts support a report and what remains uncertain.
4
+
5
+ ## Commands
6
+
7
+ ```bash
8
+ soturail evidence collect
9
+ soturail evidence verify
10
+ soturail evidence report
11
+ ```
12
+
13
+ Each run writes:
14
+
15
+ ```txt
16
+ .soturail/evidence/<run-id>/
17
+ evidence.json
18
+ report.md
19
+ provenance.md
20
+ ```
21
+
22
+ ## Status Model
23
+
24
+ | Status | Meaning |
25
+ | --- | --- |
26
+ | `verified` | Backed by a locally recorded check or direct local evidence |
27
+ | `unverified` | No sufficient proof is available |
28
+ | `blocked` | Verification cannot proceed because evidence is missing or failed |
29
+ | `inferred` | Derived from local artifacts but not directly proven |
30
+
31
+ Collection reads knowledge source maps, local report artifacts and read-only `git status --short`. Verification checks recorded source paths without executing commands. Reports explicitly state that unsupported verification is not claimed.
32
+
33
+ ## Safety Boundary
34
+
35
+ - No private shell history is collected.
36
+ - No verification command is silently executed.
37
+ - No cloud evidence store or telemetry upload.
38
+ - Missing proof remains unverified, inferred or blocked.
39
+ - Provenance files must not expose secrets.
40
+
41
+ Related: [Report Rail](report-rail.md), [Knowledge Rail](../knowledge/knowledge-rail.md), [Security Boundaries](../../security/security-boundaries.md).
@@ -60,9 +60,9 @@ soturail brain consolidate --dry-run
60
60
  Report Rail is the parent surface where several future rails should become visible:
61
61
 
62
62
  - [`evidence-provenance-rail.md`](evidence-provenance-rail.md): report sidecars, source paths and `verified` / `unverified` / `blocked` / `inferred` statuses.
63
- - [`agent-qa-rail.md`](agent-qa-rail.md): dataset runs, golden export checks and regression summaries.
64
- - [`golden-agent-tests.md`](golden-agent-tests.md): deterministic host-export checks that can be summarized in reports.
65
- - [`agent-governance-rail.md`](agent-governance-rail.md): trace, ledger, approval and experiment status.
66
- - [`host-router-rail.md`](host-router-rail.md): context-format fallback decisions per host.
63
+ - [`agent-qa-rail.md`](../evaluation/agent-qa-rail.md): dataset runs, golden export checks and regression summaries.
64
+ - [`golden-agent-tests.md`](../evaluation/golden-agent-tests.md): deterministic host-export checks that can be summarized in reports.
65
+ - [`agent-governance-rail.md`](../governance/agent-governance-rail.md): trace, ledger, approval and experiment status.
66
+ - [`host-router-rail.md`](../hosts/host-router-rail.md): context-format fallback decisions per host.
67
67
 
68
68
  A future report should not simply say an agent task is complete. It should say what evidence exists, what was checked, what is still inferred or blocked and which safe next command can improve confidence.
@@ -86,6 +86,6 @@ Future v1.5 planning now includes Resilience Rail and Host Router Rail:
86
86
 
87
87
  - [`resilience-rail.md`](resilience-rail.md) for retry/fallback/rate-limit documentation and risk reports;
88
88
  - [`rate-limit-and-fallback-policy.md`](rate-limit-and-fallback-policy.md) for local policy shape;
89
- - [`host-router-rail.md`](host-router-rail.md) for context-format routing across hosts.
89
+ - [`host-router-rail.md`](../hosts/host-router-rail.md) for context-format routing across hosts.
90
90
 
91
91
  This does not turn SotuRail into a model proxy, account manager, MITM bridge or billing gateway.
@@ -81,7 +81,7 @@ Examples:
81
81
  - missing tests before release becomes an evidence-pack requirement;
82
82
  - repeated agent misunderstanding becomes a workflow or agent-doc lint rule.
83
83
 
84
- See [harness-rail.md](harness-rail.md).
84
+ See [harness-rail.md](../harness/harness-rail.md).
85
85
 
86
86
  ## Planned Structured Payload Rules
87
87
 
@@ -97,4 +97,4 @@ Possible future checks:
97
97
  - malformed tagged context block;
98
98
  - invalid Mermaid block in a `.spec.md` file.
99
99
 
100
- See [structured-payload-rail.md](structured-payload-rail.md) and [diagram-rail.md](diagram-rail.md).
100
+ See [structured-payload-rail.md](../context/structured-payload-rail.md) and [diagram-rail.md](../design/diagram-rail.md).
@@ -79,7 +79,7 @@ Root agent docs should stay short and point to specialized docs.
79
79
  Read first: .soturail/harness/AGENTS.md
80
80
  If editing tests: .soturail/harness/verification.md
81
81
  If continuing work: .soturail/state/session-handoff.md
82
- If preparing release: docs/release-workflow.md
82
+ If preparing release: docs/reference/commands/release-workflow.md
83
83
  ```
84
84
 
85
85
  ## Planned Extensions
@@ -92,4 +92,4 @@ Commands such as `harness benchmark`, `session verify` and a dedicated `session
92
92
  - No cloud telemetry, mandatory server or LLM API key is required.
93
93
  - No destructive MCP tool or arbitrary MCP shell execution is added.
94
94
  - No Claude-only harness, giant root instruction file or acceptance without evidence.
95
- - See [Security Boundaries](security-boundaries.md), [Harness Rail](harness-rail.md), [Conductor Mode](conductor-mode.md) and [Agent Harness Synthesis](agent-harness-synthesis-2026.md).
95
+ - See [Security Boundaries](../../security/security-boundaries.md), [Harness Rail](harness-rail.md), [Conductor Mode](../../ecosystem/conductor-mode.md) and [Agent Harness Synthesis](../../ecosystem/agent-harness-synthesis-2026.md).
@@ -34,7 +34,7 @@ soturail workflow evidence <id>
34
34
 
35
35
  Harness Lifecycle Rail adds safe project-local state for instructions, scope, verification, sessions, handoffs and features. `harness init` preserves existing files by default, and `harness audit` scores lifecycle readiness without executing verification commands.
36
36
 
37
- See [Harness Lifecycle Rail](harness-lifecycle-rail.md) and [Security Boundaries](security-boundaries.md).
37
+ See [Harness Lifecycle Rail](harness-lifecycle-rail.md) and [Security Boundaries](../../security/security-boundaries.md).
38
38
 
39
39
  ## v0.7.0 Workflow Connection
40
40
 
@@ -201,9 +201,9 @@ These are still local artifacts. Workflow evidence does not upload telemetry and
201
201
  Workflow Rail is the natural parent for the newer harness/session/task planning docs:
202
202
 
203
203
  - [`harness-lifecycle-rail.md`](harness-lifecycle-rail.md): instructions, state, verification, scope and session handoff.
204
- - [`multi-agent-workflow-templates.md`](multi-agent-workflow-templates.md): researcher, analyst, writer, verifier and reviewer role-pack templates.
205
- - [`evidence-provenance-rail.md`](evidence-provenance-rail.md): workflow evidence sidecars and verification status.
206
- - [`agent-governance-rail.md`](agent-governance-rail.md): trace, ledger and approval records for long-running workflows.
207
- - [`resilience-rail.md`](resilience-rail.md): retry/fallback/rate-limit policy notes for workflows that depend on external agent/model providers.
204
+ - [`multi-agent-workflow-templates.md`](../tasklets/multi-agent-workflow-templates.md): researcher, analyst, writer, verifier and reviewer role-pack templates.
205
+ - [`evidence-provenance-rail.md`](../evidence/evidence-provenance-rail.md): workflow evidence sidecars and verification status.
206
+ - [`agent-governance-rail.md`](../governance/agent-governance-rail.md): trace, ledger and approval records for long-running workflows.
207
+ - [`resilience-rail.md`](../governance/resilience-rail.md): retry/fallback/rate-limit policy notes for workflows that depend on external agent/model providers.
208
208
 
209
209
  These docs should keep SotuRail as the workflow/handoff/evidence layer. They should not turn it into a CrewAI, LangGraph or autonomous agent runtime.
@@ -115,7 +115,7 @@ Use safe local commands:
115
115
  - npm run build
116
116
  - npx vitest run tests/v050.test.ts
117
117
 
118
- For richer context, run `soturail context select --query "<task>"` or read `docs/context-intelligence.md`.
118
+ For richer context, run `soturail context select --query "<task>"` or read `docs/rails/context/context-intelligence.md`.
119
119
  Do not expose secrets, publish packages or create GitHub releases without explicit human approval.
120
120
  ```
121
121
 
@@ -35,7 +35,7 @@ soturail mcp resources host-manifest --host codex
35
35
 
36
36
  No host row enables destructive MCP tools or arbitrary shell execution. Config writes remain dry-run or review-first. Use `soturail report agent --agent <host>`, `soturail agents doctor --host <host>` and review the output before agent handoff.
37
37
 
38
- See [host-matrix-schema.md](host-matrix-schema.md), [agent-export-contract.md](agent-export-contract.md) and [mcp-host-manifest.md](mcp-host-manifest.md).
38
+ See [host-matrix-schema.md](../../reference/schemas/host-matrix-schema.md), [agent-export-contract.md](../../reference/contracts/agent-export-contract.md) and [mcp-host-manifest.md](mcp-host-manifest.md).
39
39
 
40
40
  ## Related Host Router And Resilience Docs
41
41
 
@@ -43,8 +43,8 @@ Host docs are connected to several planned rails:
43
43
 
44
44
  - [`host-router-rail.md`](host-router-rail.md): one local context source exported into host-specific formats with safe fallback.
45
45
  - [`host-compatibility-rail.md`](host-compatibility-rail.md): current host matrix, schema and export contracts.
46
- - [`rate-limit-and-fallback-policy.md`](rate-limit-and-fallback-policy.md): local documentation shape for retry/fallback/rate-limit expectations.
47
- - [`resilience-rail.md`](resilience-rail.md): provider and workflow-risk warnings without proxying model traffic.
48
- - [`agent-qa-rail.md`](agent-qa-rail.md): golden checks for host exports.
46
+ - [`rate-limit-and-fallback-policy.md`](../governance/rate-limit-and-fallback-policy.md): local documentation shape for retry/fallback/rate-limit expectations.
47
+ - [`resilience-rail.md`](../governance/resilience-rail.md): provider and workflow-risk warnings without proxying model traffic.
48
+ - [`agent-qa-rail.md`](../evaluation/agent-qa-rail.md): golden checks for host exports.
49
49
 
50
50
  SotuRail host support means context, instruction, report, skill and MCP-resource packaging. It does not mean intercepting IDE traffic, reusing browser tokens, routing model requests or bypassing provider quotas.
@@ -162,7 +162,7 @@ MCP -> JSON only
162
162
  Generic -> Markdown
163
163
  ```
164
164
 
165
- See [structured-payload-rail.md](structured-payload-rail.md).
165
+ See [structured-payload-rail.md](../context/structured-payload-rail.md).
166
166
 
167
167
  ## Project Brain Briefs
168
168
 
@@ -189,15 +189,15 @@ v0.8.1 briefs are cleaner and safer:
189
189
 
190
190
  ## Tutorials
191
191
 
192
- - [SotuRail with Claude Code](tutorial-claude-code.md)
193
- - [SotuRail with Codex](tutorial-codex.md)
194
- - [SotuRail with Gemini CLI](tutorial-gemini-cli.md)
195
- - [SotuRail with Cursor](tutorial-cursor.md)
196
- - [SotuRail with Antigravity prompt-only workflow](tutorial-antigravity.md)
197
- - [Deep Agents-style role packs](tutorial-deep-agents-role-packs.md)
198
- - [Harness-style setup/plan/work/review/release](tutorial-harness-workflow.md)
199
- - [Diagram Rail and `.spec.md` visual contracts](tutorial-diagram-spec.md)
200
- - [Choosing context formats by host](tutorial-context-formats.md)
192
+ - [SotuRail with Claude Code](../../tutorials/tutorial-claude-code.md)
193
+ - [SotuRail with Codex](../../tutorials/tutorial-codex.md)
194
+ - [SotuRail with Gemini CLI](../../tutorials/tutorial-gemini-cli.md)
195
+ - [SotuRail with Cursor](../../tutorials/tutorial-cursor.md)
196
+ - [SotuRail with Antigravity prompt-only workflow](../../tutorials/tutorial-antigravity.md)
197
+ - [Deep Agents-style role packs](../../tutorials/tutorial-deep-agents-role-packs.md)
198
+ - [Harness-style setup/plan/work/review/release](../../tutorials/tutorial-harness-workflow.md)
199
+ - [Diagram Rail and `.spec.md` visual contracts](../../tutorials/tutorial-diagram-spec.md)
200
+ - [Choosing context formats by host](../../tutorials/tutorial-context-formats.md)
201
201
 
202
202
  ## Agent Docs Hygiene
203
203
 
@@ -0,0 +1,49 @@
1
+ # Knowledge Rail
2
+
3
+ Knowledge Rail compiles local project sources into concise, source-backed knowledge packs for coding agents. It is deterministic, offline and does not require embeddings or an LLM.
4
+
5
+ ## Commands
6
+
7
+ ```bash
8
+ soturail knowledge estimate README.md docs
9
+ soturail knowledge compile README.md docs --name project-guide
10
+ soturail knowledge update project-guide docs/new-guide.md
11
+ soturail knowledge verify project-guide
12
+ soturail knowledge list
13
+ ```
14
+
15
+ ## Local Layout
16
+
17
+ ```txt
18
+ .soturail/knowledge/<name>/
19
+ SKILL.md
20
+ topics/
21
+ glossary.md
22
+ patterns.md
23
+ cheatsheet.md
24
+ metadata.json
25
+ source-map.json
26
+ verify.json
27
+ ```
28
+
29
+ Compilation extracts headings, commands, terms, concise local summaries, file paths and source hashes. It does not copy large source bodies into generated files.
30
+
31
+ ## Verification
32
+
33
+ `knowledge verify` compares current source hashes with `source-map.json`.
34
+
35
+ - `verified`: required artifacts and source hashes match.
36
+ - `stale`: a source changed or disappeared.
37
+ - `unverified`: the pack or required artifacts are missing.
38
+
39
+ `knowledge update` recompiles the pack while preserving its original creation date.
40
+
41
+ ## Safety And Limits
42
+
43
+ - Sources must remain inside the project root.
44
+ - Binary, generated and oversized files are skipped.
45
+ - No cloud calls, embeddings, model calls or mandatory database.
46
+ - Generated summaries are source signals, not stronger claims than the original files.
47
+ - Knowledge Rail organizes source material; it does not replace Project Brain or a full static analyzer.
48
+
49
+ Related: [Evidence Provenance Rail](../evidence/evidence-provenance-rail.md), [Skill Rail 2.0](../skills/skill-rail-2.md), [Security Boundaries](../../security/security-boundaries.md).