context-rail 4.2.0__tar.gz → 4.3.0__tar.gz

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 (366) hide show
  1. context_rail-4.3.0/PKG-INFO +233 -0
  2. context_rail-4.3.0/README.md +206 -0
  3. {context_rail-4.2.0 → context_rail-4.3.0}/pyproject.toml +1 -1
  4. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/__init__.py +1 -1
  5. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/adapters.py +10 -1
  6. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/cto.py +1 -0
  7. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/layout.yaml +21 -0
  8. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/pack.yaml +167 -0
  9. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/profiles/cto.md +96 -0
  10. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/profiles/implementer.md +51 -0
  11. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/profiles/reviewer.md +41 -0
  12. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/skills/adaptive-evolution/SKILL.md +37 -0
  13. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/skills/adaptive-intake/SKILL.md +54 -0
  14. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/skills/proportionate-verification/SKILL.md +31 -0
  15. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/skills/review-checklist/SKILL.md +35 -0
  16. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/surface.yaml +28 -0
  17. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/contract.md +28 -0
  18. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/critical-change.md +32 -0
  19. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/lesson.md +19 -0
  20. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/result.md +40 -0
  21. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/review-result.md +28 -0
  22. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/standard-change.md +26 -0
  23. context_rail-4.3.0/src/context_rail/packs/adaptive-contract/templates/trivial-change.md +17 -0
  24. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/adoptable.json +444 -386
  25. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/profiles/cto.md +6 -1
  26. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/profiles/implementer.md +3 -0
  27. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/profiles/cto.md +6 -1
  28. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/profiles/implementer.md +3 -0
  29. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/profiles/cto.md +6 -1
  30. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/profiles/implementer.md +3 -0
  31. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/skills/portfolio-lead/SKILL.md +2 -1
  32. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/skills/portfolio-report/SKILL.md +2 -2
  33. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/profiles/cto.md +6 -1
  34. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/profiles/implementer.md +3 -0
  35. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/profiles/cto.md +6 -1
  36. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/profiles/implementer.md +3 -0
  37. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/profiles/cto.md +6 -1
  38. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/profiles/implementer.md +3 -0
  39. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/actor.md +4 -0
  40. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/charter.md +5 -0
  41. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/check.md +1 -0
  42. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/code.md +14 -0
  43. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/goal.md +3 -0
  44. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/item.md +1 -0
  45. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/note.md +1 -0
  46. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/policy.md +3 -0
  47. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/record.md +1 -0
  48. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/scope.md +3 -0
  49. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/vision.md +3 -0
  50. context_rail-4.3.0/src/context_rail/packs/waterfall/templates/wont.md +4 -0
  51. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/skills/rail-coordinate/SKILL.md +3 -1
  52. context_rail-4.3.0/src/context_rail.egg-info/PKG-INFO +233 -0
  53. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail.egg-info/SOURCES.txt +29 -0
  54. context_rail-4.2.0/PKG-INFO +0 -188
  55. context_rail-4.2.0/README.md +0 -161
  56. context_rail-4.2.0/src/context_rail.egg-info/PKG-INFO +0 -188
  57. {context_rail-4.2.0 → context_rail-4.3.0}/LICENSE +0 -0
  58. {context_rail-4.2.0 → context_rail-4.3.0}/setup.cfg +0 -0
  59. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/__main__.py +0 -0
  60. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/cli.py +0 -0
  61. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/client.py +0 -0
  62. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/__init__.py +0 -0
  63. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/budget.py +0 -0
  64. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/code_area.py +0 -0
  65. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/code_targets.py +0 -0
  66. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/operating.py +0 -0
  67. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/reach.py +0 -0
  68. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/recipes.py +0 -0
  69. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/results.py +0 -0
  70. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/role_brief.py +0 -0
  71. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/seat_brief.py +0 -0
  72. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/surface.py +0 -0
  73. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/context/work_brief.py +0 -0
  74. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/__init__.py +0 -0
  75. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/defaults.py +0 -0
  76. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/locate.py +0 -0
  77. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/result.py +0 -0
  78. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/slug.py +0 -0
  79. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/tool_names.py +0 -0
  80. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/core/util.py +0 -0
  81. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/doctor/__init__.py +0 -0
  82. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/doctor/checks.py +0 -0
  83. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/doctor/gitconfig.py +0 -0
  84. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/doctor/stage2.py +0 -0
  85. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/__init__.py +0 -0
  86. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/codegen.py +0 -0
  87. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/confirmation.py +0 -0
  88. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/daemon.py +0 -0
  89. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/delegation.py +0 -0
  90. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/execution.py +0 -0
  91. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/gateway.py +0 -0
  92. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/__init__.py +0 -0
  93. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/actions.py +0 -0
  94. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/briefs.py +0 -0
  95. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/candidates.py +0 -0
  96. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/checks.py +0 -0
  97. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/codegraph.py +0 -0
  98. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/common.py +0 -0
  99. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/cto.py +0 -0
  100. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/daemon.py +0 -0
  101. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/delegation.py +0 -0
  102. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/docs.py +0 -0
  103. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/doctor.py +0 -0
  104. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/executions.py +0 -0
  105. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/independence.py +0 -0
  106. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/init.py +0 -0
  107. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/maintenance.py +0 -0
  108. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/mcp.py +0 -0
  109. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/measure.py +0 -0
  110. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/migrate.py +0 -0
  111. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/onboarding.py +0 -0
  112. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/onboarding_pipeline.py +0 -0
  113. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/packs.py +0 -0
  114. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/proofs.py +0 -0
  115. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/reports.py +0 -0
  116. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/reshape.py +0 -0
  117. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/result_checks.py +0 -0
  118. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/results.py +0 -0
  119. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/reviews.py +0 -0
  120. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/seats.py +0 -0
  121. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/shipped.py +0 -0
  122. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/store_check.py +0 -0
  123. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/surface.py +0 -0
  124. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/sync.py +0 -0
  125. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/ui.py +0 -0
  126. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/upgrade.py +0 -0
  127. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/versions.py +0 -0
  128. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/handlers/views.py +0 -0
  129. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/identity.py +0 -0
  130. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/mcp_schema.py +0 -0
  131. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/mcp_server.py +0 -0
  132. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/role_guard.py +0 -0
  133. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/gateway/tools.py +0 -0
  134. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/__init__.py +0 -0
  135. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/budgets.py +0 -0
  136. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/gates.py +0 -0
  137. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/lifecycle.py +0 -0
  138. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/measurement.py +0 -0
  139. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/merge.py +0 -0
  140. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/packs.py +0 -0
  141. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/reach.py +0 -0
  142. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/relations.py +0 -0
  143. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/rights.py +0 -0
  144. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/seats.py +0 -0
  145. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/structure.py +0 -0
  146. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/timestamps.py +0 -0
  147. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/triage.py +0 -0
  148. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/kernel/triage_patch.py +0 -0
  149. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/__init__.py +0 -0
  150. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/actions.py +0 -0
  151. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/cache.py +0 -0
  152. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/candidate.py +0 -0
  153. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/codegraph.py +0 -0
  154. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/compiler.py +0 -0
  155. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/delegation.py +0 -0
  156. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/errors.py +0 -0
  157. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/execution.py +0 -0
  158. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/fields.py +0 -0
  159. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/manifest.py +0 -0
  160. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/metadata.py +0 -0
  161. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/operating.py +0 -0
  162. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/pack.py +0 -0
  163. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/patterns.py +0 -0
  164. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/placement.py +0 -0
  165. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/policy.py +0 -0
  166. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/presentation.py +0 -0
  167. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/primitives.py +0 -0
  168. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/results.py +0 -0
  169. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/roles.py +0 -0
  170. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/seats.py +0 -0
  171. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/model/starter.py +0 -0
  172. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/actor.md +0 -0
  173. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/charter.md +0 -0
  174. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/check.md +0 -0
  175. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/code.md +0 -0
  176. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/goal.md +0 -0
  177. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/item.md +0 -0
  178. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/note.md +0 -0
  179. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/policy.md +0 -0
  180. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/record.md +0 -0
  181. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/scope.md +0 -0
  182. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/vision.md +0 -0
  183. {context_rail-4.2.0/src/context_rail/packs/basic → context_rail-4.3.0/src/context_rail/packs/adaptive-contract}/templates/wont.md +0 -0
  184. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/layout.yaml +0 -0
  185. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/pack.yaml +0 -0
  186. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/profiles/reviewer.md +0 -0
  187. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/skills/review-checklist/SKILL.md +0 -0
  188. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/surface.yaml +0 -0
  189. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/actor.md +0 -0
  190. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/charter.md +0 -0
  191. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/check.md +0 -0
  192. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/code.md +0 -0
  193. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/goal.md +0 -0
  194. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/item.md +0 -0
  195. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/note.md +0 -0
  196. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/policy.md +0 -0
  197. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/record.md +0 -0
  198. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/templates/result.md +0 -0
  199. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/basic/templates/review-result.md +0 -0
  200. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/scope.md +0 -0
  201. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/vision.md +0 -0
  202. {context_rail-4.2.0/src/context_rail/packs/flow → context_rail-4.3.0/src/context_rail/packs/basic}/templates/wont.md +0 -0
  203. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/layout.yaml +0 -0
  204. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/pack.yaml +0 -0
  205. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/profiles/reviewer.md +0 -0
  206. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/skills/flow-shipping/SKILL.md +0 -0
  207. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/skills/review-checklist/SKILL.md +0 -0
  208. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/surface.yaml +0 -0
  209. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/actor.md +0 -0
  210. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/charter.md +0 -0
  211. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/check.md +0 -0
  212. {context_rail-4.2.0/src/context_rail/packs/portfolio → context_rail-4.3.0/src/context_rail/packs/flow}/templates/code.md +0 -0
  213. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/goal.md +0 -0
  214. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/item.md +0 -0
  215. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/note.md +0 -0
  216. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/policy.md +0 -0
  217. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/record.md +0 -0
  218. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/templates/result.md +0 -0
  219. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/flow/templates/review-result.md +0 -0
  220. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/scope.md +0 -0
  221. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/vision.md +0 -0
  222. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/flow}/templates/wont.md +0 -0
  223. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/layout.yaml +0 -0
  224. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/pack.yaml +0 -0
  225. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/profiles/reviewer.md +0 -0
  226. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/skills/review-checklist/SKILL.md +0 -0
  227. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/surface.yaml +0 -0
  228. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/actor.md +0 -0
  229. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/charter.md +0 -0
  230. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/check.md +0 -0
  231. {context_rail-4.2.0/src/context_rail/packs/scrum → context_rail-4.3.0/src/context_rail/packs/portfolio}/templates/code.md +0 -0
  232. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/component-result.md +0 -0
  233. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/component-review.md +0 -0
  234. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/component.md +0 -0
  235. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/contract.md +0 -0
  236. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/goal.md +0 -0
  237. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/item.md +0 -0
  238. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/note.md +0 -0
  239. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/policy.md +0 -0
  240. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/record.md +0 -0
  241. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/release-result.md +0 -0
  242. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/release-review.md +0 -0
  243. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/release.md +0 -0
  244. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/result.md +0 -0
  245. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/review-result.md +0 -0
  246. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/scope.md +0 -0
  247. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/slice-result.md +0 -0
  248. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/slice-review.md +0 -0
  249. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/slice.md +0 -0
  250. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/vision.md +0 -0
  251. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/portfolio/templates/wont.md +0 -0
  252. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/layout.yaml +0 -0
  253. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/pack.yaml +0 -0
  254. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/profiles/reviewer.md +0 -0
  255. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/skills/review-checklist/SKILL.md +0 -0
  256. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/skills/sprint-cadence/SKILL.md +0 -0
  257. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/surface.yaml +0 -0
  258. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/actor.md +0 -0
  259. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/templates/bug-result.md +0 -0
  260. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/templates/bug-review.md +0 -0
  261. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/charter.md +0 -0
  262. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/check.md +0 -0
  263. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/code.md +0 -0
  264. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/goal.md +0 -0
  265. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/item.md +0 -0
  266. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/note.md +0 -0
  267. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/policy.md +0 -0
  268. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/record.md +0 -0
  269. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/templates/result.md +0 -0
  270. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/scrum/templates/review-result.md +0 -0
  271. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/scope.md +0 -0
  272. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/vision.md +0 -0
  273. {context_rail-4.2.0/src/context_rail/packs/video → context_rail-4.3.0/src/context_rail/packs/scrum}/templates/wont.md +0 -0
  274. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/layout.yaml +0 -0
  275. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/pack.yaml +0 -0
  276. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/profiles/reviewer.md +0 -0
  277. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/skills/execution-records/SKILL.md +0 -0
  278. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/skills/shot-brief/SKILL.md +0 -0
  279. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/skills/take-review/SKILL.md +0 -0
  280. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/surface.yaml +0 -0
  281. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/actor.md +0 -0
  282. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/asset-result.md +0 -0
  283. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/asset-review.md +0 -0
  284. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/charter.md +0 -0
  285. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/check.md +0 -0
  286. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/code.md +0 -0
  287. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/goal.md +0 -0
  288. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/item.md +0 -0
  289. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/note.md +0 -0
  290. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/policy.md +0 -0
  291. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/record.md +0 -0
  292. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/result.md +0 -0
  293. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/review-result.md +0 -0
  294. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/scene-result.md +0 -0
  295. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/scene-review.md +0 -0
  296. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/scene.md +0 -0
  297. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/scope.md +0 -0
  298. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/shot-result.md +0 -0
  299. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/shot-review.md +0 -0
  300. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/video/templates/shot.md +0 -0
  301. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/vision.md +0 -0
  302. {context_rail-4.2.0/src/context_rail/packs/waterfall → context_rail-4.3.0/src/context_rail/packs/video}/templates/wont.md +0 -0
  303. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/layout.yaml +0 -0
  304. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/pack.yaml +0 -0
  305. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/profiles/reviewer.md +0 -0
  306. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/skills/phase-gates/SKILL.md +0 -0
  307. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/skills/review-checklist/SKILL.md +0 -0
  308. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/surface.yaml +0 -0
  309. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/deliverable.md +0 -0
  310. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/delivery-result.md +0 -0
  311. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/delivery-review.md +0 -0
  312. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/phase-result.md +0 -0
  313. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/phase-review.md +0 -0
  314. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/result.md +0 -0
  315. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/packs/waterfall/templates/review-result.md +0 -0
  316. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/__init__.py +0 -0
  317. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/body_merge.py +0 -0
  318. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/__init__.py +0 -0
  319. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/builtin.py +0 -0
  320. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/gitnexus.py +0 -0
  321. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/graphify.py +0 -0
  322. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/probe.py +0 -0
  323. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/codegraph/provider.py +0 -0
  324. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/git.py +0 -0
  325. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/git_sync.py +0 -0
  326. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/runner/run.py +0 -0
  327. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/skills/lean-testing/SKILL.md +0 -0
  328. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/skills/rail-recover/SKILL.md +0 -0
  329. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/skills/rail-triage/SKILL.md +0 -0
  330. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/__init__.py +0 -0
  331. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/adapters.py +0 -0
  332. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/approval.py +0 -0
  333. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/codegraph.py +0 -0
  334. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/codemap.py +0 -0
  335. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/doc.py +0 -0
  336. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/frontmatter_edit.py +0 -0
  337. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/git_index.py +0 -0
  338. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/gitattributes.py +0 -0
  339. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/index.py +0 -0
  340. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/legacy.py +0 -0
  341. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/location.py +0 -0
  342. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/lock.py +0 -0
  343. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/measure.py +0 -0
  344. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/migration.py +0 -0
  345. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/packs.py +0 -0
  346. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/placement.py +0 -0
  347. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/query.py +0 -0
  348. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/results.py +0 -0
  349. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/sessions.py +0 -0
  350. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/sync.py +0 -0
  351. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/upgrade.py +0 -0
  352. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/versions.py +0 -0
  353. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/store/write.py +0 -0
  354. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/__init__.py +0 -0
  355. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/api.py +0 -0
  356. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/readmodels.py +0 -0
  357. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/server.py +0 -0
  358. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/snapshot.py +0 -0
  359. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/static/assets/index-C-ZMxywg.css +0 -0
  360. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/static/assets/index-C_oppZ_v.js +0 -0
  361. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/static/favicon.svg +0 -0
  362. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail/ui/static/index.html +0 -0
  363. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail.egg-info/dependency_links.txt +0 -0
  364. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail.egg-info/entry_points.txt +0 -0
  365. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail.egg-info/requires.txt +0 -0
  366. {context_rail-4.2.0 → context_rail-4.3.0}/src/context_rail.egg-info/top_level.txt +0 -0
@@ -0,0 +1,233 @@
1
+ Metadata-Version: 2.4
2
+ Name: context-rail
3
+ Version: 4.3.0
4
+ Summary: An agentic project workspace: files are the truth, agents work through one write path
5
+ License-Expression: MIT
6
+ Project-URL: Repository, https://github.com/nguyenhoanhson797/Context-Rail
7
+ Keywords: agents,context,project-management,markdown,sqlite,workflow,mcp,cli
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Software Development
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: PyYAML>=6.0
22
+ Requires-Dist: mcp<3,>=2.3.0
23
+ Provides-Extra: test
24
+ Requires-Dist: pytest>=8; extra == "test"
25
+ Requires-Dist: pytest-timeout>=2.3; extra == "test"
26
+ Dynamic: license-file
27
+
28
+ # Context Rail
29
+
30
+ [![PyPI](https://img.shields.io/pypi/v/context-rail)](https://pypi.org/project/context-rail/)
31
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://pypi.org/project/context-rail/)
32
+ [![CI](https://github.com/nguyenhoanhson797/Context-Rail/actions/workflows/ci.yml/badge.svg)](https://github.com/nguyenhoanhson797/Context-Rail/actions/workflows/ci.yml)
33
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/LICENSE)
34
+
35
+ **Keep your AI agents on the rails.**
36
+
37
+ AI agents are fast until they go off-script. A prompt file is a suggestion an
38
+ LLM can ignore. Context Rail turns your git repo into a file-backed workflow
39
+ engine: you declare the stages, the evidence each stage owes, the paths work
40
+ lives at, and the approvals that cannot be skipped. Your coding tool still runs
41
+ the agent; Context Rail decides what counts as done.
42
+
43
+ ![Context Rail's workflow: ask, build, check, approve, done](docs/assets/context-rail-hero.jpg)
44
+
45
+ The problem is not model speed. It is coordination: agents forget decisions,
46
+ lose track of finished work, skip checks and change things nobody asked for.
47
+ Context Rail fixes the coordination, not the model. It plans the work, hands
48
+ each agent only what its job needs, and refuses to call anything *done* until
49
+ the declared checks pass and a separate reviewer signs off. Scope, the quality
50
+ bar and irreversible actions still wait for a human yes.
51
+
52
+ ## Shape the work from declarative files
53
+
54
+ The engine is deliberately small: six primitives, eight relations, five status
55
+ categories. Everything project-specific is data.
56
+
57
+ ```text
58
+ rail.yaml The manifest → pack name, placement templates, code-graph provider
59
+ pack.yaml The domain → statuses, transitions, presets, workflows, gates, actions
60
+ surface.yaml The view → labels, screens, card/filter/column fields
61
+ charter.md The bar → gates, decision rights, budgets, human-only actions
62
+ ```
63
+
64
+ - **`rail.yaml` does not run agents or assign models.** It decides where each
65
+ primitive and preset lives (`items/{preset}/{slug}.md`, for example) and which
66
+ pack the store uses.
67
+ - **`pack.yaml` is the state machine.** It names the statuses and their
68
+ categories, the allowed moves, the item presets and their fields, and the
69
+ workflow whose quality rule selects a charter gate and its checks.
70
+ - **`surface.yaml` is presentation only.** It can relabel a preset or retitle a
71
+ screen; it cannot introduce a status, a transition, an action or a permission.
72
+ A presentation change keeps approval. A pack, placement or operating change
73
+ moves the semantic digest and needs reapproval.
74
+ - **`charter.md` is the quality bar.** Gates (`item_done`, `scope_done`, `merge`,
75
+ `release`), decision rights, budgets and the human-only floor live there.
76
+
77
+ Paths are derived, never supplied. An agent asks for a brief and gets the item,
78
+ the checks, the result shape and the exact path its record will take. It cannot
79
+ choose a different folder, title or schema.
80
+
81
+ ## Every write passes a fail-closed pipeline
82
+
83
+ Nothing reaches the store unless it clears the same six stages:
84
+
85
+ ```text
86
+ Validate → Authorize → Lock → Atomic write → Record → Index
87
+ ```
88
+
89
+ A malformed pack key, an unauthorized actor, a stale etag, a missing gate or a
90
+ write outside a seat's reach **halts the write**. A refusal leaves the store
91
+ unchanged and names the command that would produce the missing proof. The SQLite
92
+ index is only a cache under the git directory; delete it and the next command
93
+ rebuilds it from the files.
94
+
95
+ ## What you can build with it
96
+
97
+ - **Risk-routed changes without test overhead.** The built-in
98
+ `adaptive-contract` pack classifies work as `trivial`, `standard` or
99
+ `critical`. Trivial work gets a build and typecheck; standard work runs the
100
+ existing checks; critical work adds a few boundary, failure-path and smoke
101
+ tests, and a human records approval before the build starts. Lessons are short
102
+ and structural changes are proposed, never auto-applied.
103
+ - **Separated builder and reviewer.** A role binds an agent to one project or
104
+ container, with a declared reach and workspace. Role mode uses a session seat,
105
+ refuses `--actor`, and checks every write against that reach. The reviewer is
106
+ a different actor; the gate refuses self-review and a same-model review when
107
+ the charter requires another model. The code area is review evidence, not a
108
+ sandbox: a diff outside it is a review question the reviewer must see.
109
+ - **A relay across models and tools.** State lives in Git, not chat history.
110
+ Plan with one model, implement with another, review with a third. Each
111
+ candidate and result can record the model and harness that produced it; the
112
+ rail stores those facts and never chooses a model for you.
113
+ - **Non-coding state machines.** The built-in `video` pack runs
114
+ `scene → shot → storyboard → generating → review → approved → published`.
115
+ Copy a pack with `rail ops pack create` and declare your own vocabulary for
116
+ research, legal drafting, publishing or any other staged process.
117
+ - **Several repositories, one queue.** The `portfolio` pack coordinates child
118
+ stores: a master slice is gated on a child's committed, proven item, without
119
+ writing the child store or running git on reads.
120
+
121
+ ## Try it in 5 minutes
122
+
123
+ You need Python 3.11+ and git.
124
+
125
+ ```bash
126
+ python -m pip install context-rail # Windows: py -m pip install context-rail
127
+ cd your-project
128
+ rail init --pack basic # creates context-rail/ and asks about the project
129
+ rail change add task "Write the first task"
130
+ rail overview # progress, focus, blockers and the next eligible work
131
+ rail serve ui # the local web view
132
+ ```
133
+
134
+ `rail init` writes a `context-rail/` store and asks a few questions about what
135
+ you are building. If it reports that approval is missing, approve the brief. A
136
+ named lead may sign on the human's behalf; the record names both:
137
+
138
+ ```bash
139
+ rail approve charter --confirm "APPROVE charter" --confirmer "Your Name"
140
+ ```
141
+
142
+ > [!NOTE]
143
+ > Working alone? `rail init --solo` binds one human as the project owner and
144
+ > skips the approval ceremony. The quality gates still apply.
145
+
146
+ ### Run one governed loop
147
+
148
+ ```bash
149
+ rail loop brief <task> # the work order: objective, checks, code area, result shape
150
+ # ... your coding tool does the work and commits ...
151
+ rail loop candidate <task> --commit <sha> # code changes only
152
+ rail loop result <task> --body-file <result.md> --commit <sha>
153
+ rail check run <task> # the declared checks
154
+ rail loop review <task> --verdict approve --notes-file <review.md>
155
+ rail change move <task> done --expect <etag>
156
+ ```
157
+
158
+ For research or discovery, skip `candidate` and leave the commit out of
159
+ `rail loop result`; never fabricate a commit. The result body is capped at
160
+ 256 KiB, needs its ordered `##` sections, and can open with a small effort block
161
+ naming `duration_s`, `usage`, `model` and `harness`. See the
162
+ [loop skill](skills/context-rail-v3-loop/SKILL.md) for the exact contract.
163
+
164
+ ## Connect your tools
165
+
166
+ Context Rail speaks one JSON envelope over the CLI, MCP and a local web UI. It
167
+ works with Claude Code, Codex, opencode, Cursor, Gemini CLI, Droid and any MCP
168
+ client. Your harness keeps its own agents, worktrees and models.
169
+
170
+ ```bash
171
+ rail serve mcp # MCP server for your coding tool
172
+ rail serve ui # token-protected local dashboard
173
+ ```
174
+
175
+ The rail never launches an agent. It hands out the brief and records the result.
176
+
177
+ ## Built-in packs
178
+
179
+ Start with a built-in pack, or copy one into your store and make it yours:
180
+
181
+ | Pack | Designed for | How work flows |
182
+ |---|---|---|
183
+ | `basic` | Getting started, small projects | todo → doing → done |
184
+ | `flow` | Continuous delivery, no sprints | backlog → ready → building → review → shipped |
185
+ | `scrum` | Teams working in sprints | goal → scope → sprint → story → task |
186
+ | `waterfall` | Projects with distinct phases | planned → designing → building → testing → done |
187
+ | `video` | Video and content production | scene → shot: storyboard → generating → review → approved → published |
188
+ | `portfolio` | Several projects coordinated from one master store | component → slice, gated by child store checks |
189
+ | `adaptive-contract` | Risk-aware code changes without test overhead | classify trivial, standard or critical → contract → build → proportionate checks → lesson |
190
+
191
+ Want your own words or steps?
192
+
193
+ ```bash
194
+ rail ops pack create --name <name> --from basic
195
+ ```
196
+
197
+ Edit the copy, then switch with `rail ops pack use` (human-only). Relabelling a
198
+ preset or retitling a screen never needs re-approval; changing a transition,
199
+ placement, preset or operating block does.
200
+
201
+ ## Why it holds up
202
+
203
+ - **Files are the truth.** The store is Markdown, JSON records and `rail.yaml`
204
+ in your repo. SQLite is only a cache under the git dir.
205
+ - **One write path.** CLI, MCP and UI all go through validate → authorize →
206
+ lock → atomic write → record → index. No lost updates; every retry is safe.
207
+ - **Fail closed.** An unknown pack key, manifest schema or policy field is
208
+ refused, never guessed.
209
+ - **Agents never read `pack.yaml`.** The compiler turns the pack into one
210
+ model; agents ask `rail next`, `rail read show`, `rail why`, `rail explain`
211
+ and `rail model`.
212
+ - **Project shape is data.** Sprints, phases and scenes are pack data, not
213
+ engine code, so one engine runs any of them.
214
+ - **Your project stays yours.** Plain files, no server account, no lock-in.
215
+
216
+ ## Learn more
217
+
218
+ - [How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md): architecture, operating model, commands, surfaces
219
+ - [Roles and seats](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#roles-and-seats): sessions, reach and the compat rule
220
+ - [The six building blocks](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/building-blocks.md): the visual model and two worked examples
221
+ - [User guide](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-guide.html): diagrams and a zero-to-daily walkthrough
222
+ - [Interactive engine graph](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-engine-graph.html)
223
+ - [Agent onboarding kit](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/agent-onboarding/README.md): set up any agent harness
224
+ - [Operator skills](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/skills/README.md): drop-in skills for your agents
225
+ - [Upgrading from v1/v2](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#upgrading-a-v1v2-store)
226
+
227
+ The test lanes, speed budgets and working rules are in
228
+ [How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#development)
229
+ and [AGENTS.md](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/AGENTS.md).
230
+
231
+ ## License
232
+
233
+ MIT License. See [LICENSE](LICENSE).
@@ -0,0 +1,206 @@
1
+ # Context Rail
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/context-rail)](https://pypi.org/project/context-rail/)
4
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://pypi.org/project/context-rail/)
5
+ [![CI](https://github.com/nguyenhoanhson797/Context-Rail/actions/workflows/ci.yml/badge.svg)](https://github.com/nguyenhoanhson797/Context-Rail/actions/workflows/ci.yml)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/LICENSE)
7
+
8
+ **Keep your AI agents on the rails.**
9
+
10
+ AI agents are fast until they go off-script. A prompt file is a suggestion an
11
+ LLM can ignore. Context Rail turns your git repo into a file-backed workflow
12
+ engine: you declare the stages, the evidence each stage owes, the paths work
13
+ lives at, and the approvals that cannot be skipped. Your coding tool still runs
14
+ the agent; Context Rail decides what counts as done.
15
+
16
+ ![Context Rail's workflow: ask, build, check, approve, done](docs/assets/context-rail-hero.jpg)
17
+
18
+ The problem is not model speed. It is coordination: agents forget decisions,
19
+ lose track of finished work, skip checks and change things nobody asked for.
20
+ Context Rail fixes the coordination, not the model. It plans the work, hands
21
+ each agent only what its job needs, and refuses to call anything *done* until
22
+ the declared checks pass and a separate reviewer signs off. Scope, the quality
23
+ bar and irreversible actions still wait for a human yes.
24
+
25
+ ## Shape the work from declarative files
26
+
27
+ The engine is deliberately small: six primitives, eight relations, five status
28
+ categories. Everything project-specific is data.
29
+
30
+ ```text
31
+ rail.yaml The manifest → pack name, placement templates, code-graph provider
32
+ pack.yaml The domain → statuses, transitions, presets, workflows, gates, actions
33
+ surface.yaml The view → labels, screens, card/filter/column fields
34
+ charter.md The bar → gates, decision rights, budgets, human-only actions
35
+ ```
36
+
37
+ - **`rail.yaml` does not run agents or assign models.** It decides where each
38
+ primitive and preset lives (`items/{preset}/{slug}.md`, for example) and which
39
+ pack the store uses.
40
+ - **`pack.yaml` is the state machine.** It names the statuses and their
41
+ categories, the allowed moves, the item presets and their fields, and the
42
+ workflow whose quality rule selects a charter gate and its checks.
43
+ - **`surface.yaml` is presentation only.** It can relabel a preset or retitle a
44
+ screen; it cannot introduce a status, a transition, an action or a permission.
45
+ A presentation change keeps approval. A pack, placement or operating change
46
+ moves the semantic digest and needs reapproval.
47
+ - **`charter.md` is the quality bar.** Gates (`item_done`, `scope_done`, `merge`,
48
+ `release`), decision rights, budgets and the human-only floor live there.
49
+
50
+ Paths are derived, never supplied. An agent asks for a brief and gets the item,
51
+ the checks, the result shape and the exact path its record will take. It cannot
52
+ choose a different folder, title or schema.
53
+
54
+ ## Every write passes a fail-closed pipeline
55
+
56
+ Nothing reaches the store unless it clears the same six stages:
57
+
58
+ ```text
59
+ Validate → Authorize → Lock → Atomic write → Record → Index
60
+ ```
61
+
62
+ A malformed pack key, an unauthorized actor, a stale etag, a missing gate or a
63
+ write outside a seat's reach **halts the write**. A refusal leaves the store
64
+ unchanged and names the command that would produce the missing proof. The SQLite
65
+ index is only a cache under the git directory; delete it and the next command
66
+ rebuilds it from the files.
67
+
68
+ ## What you can build with it
69
+
70
+ - **Risk-routed changes without test overhead.** The built-in
71
+ `adaptive-contract` pack classifies work as `trivial`, `standard` or
72
+ `critical`. Trivial work gets a build and typecheck; standard work runs the
73
+ existing checks; critical work adds a few boundary, failure-path and smoke
74
+ tests, and a human records approval before the build starts. Lessons are short
75
+ and structural changes are proposed, never auto-applied.
76
+ - **Separated builder and reviewer.** A role binds an agent to one project or
77
+ container, with a declared reach and workspace. Role mode uses a session seat,
78
+ refuses `--actor`, and checks every write against that reach. The reviewer is
79
+ a different actor; the gate refuses self-review and a same-model review when
80
+ the charter requires another model. The code area is review evidence, not a
81
+ sandbox: a diff outside it is a review question the reviewer must see.
82
+ - **A relay across models and tools.** State lives in Git, not chat history.
83
+ Plan with one model, implement with another, review with a third. Each
84
+ candidate and result can record the model and harness that produced it; the
85
+ rail stores those facts and never chooses a model for you.
86
+ - **Non-coding state machines.** The built-in `video` pack runs
87
+ `scene → shot → storyboard → generating → review → approved → published`.
88
+ Copy a pack with `rail ops pack create` and declare your own vocabulary for
89
+ research, legal drafting, publishing or any other staged process.
90
+ - **Several repositories, one queue.** The `portfolio` pack coordinates child
91
+ stores: a master slice is gated on a child's committed, proven item, without
92
+ writing the child store or running git on reads.
93
+
94
+ ## Try it in 5 minutes
95
+
96
+ You need Python 3.11+ and git.
97
+
98
+ ```bash
99
+ python -m pip install context-rail # Windows: py -m pip install context-rail
100
+ cd your-project
101
+ rail init --pack basic # creates context-rail/ and asks about the project
102
+ rail change add task "Write the first task"
103
+ rail overview # progress, focus, blockers and the next eligible work
104
+ rail serve ui # the local web view
105
+ ```
106
+
107
+ `rail init` writes a `context-rail/` store and asks a few questions about what
108
+ you are building. If it reports that approval is missing, approve the brief. A
109
+ named lead may sign on the human's behalf; the record names both:
110
+
111
+ ```bash
112
+ rail approve charter --confirm "APPROVE charter" --confirmer "Your Name"
113
+ ```
114
+
115
+ > [!NOTE]
116
+ > Working alone? `rail init --solo` binds one human as the project owner and
117
+ > skips the approval ceremony. The quality gates still apply.
118
+
119
+ ### Run one governed loop
120
+
121
+ ```bash
122
+ rail loop brief <task> # the work order: objective, checks, code area, result shape
123
+ # ... your coding tool does the work and commits ...
124
+ rail loop candidate <task> --commit <sha> # code changes only
125
+ rail loop result <task> --body-file <result.md> --commit <sha>
126
+ rail check run <task> # the declared checks
127
+ rail loop review <task> --verdict approve --notes-file <review.md>
128
+ rail change move <task> done --expect <etag>
129
+ ```
130
+
131
+ For research or discovery, skip `candidate` and leave the commit out of
132
+ `rail loop result`; never fabricate a commit. The result body is capped at
133
+ 256 KiB, needs its ordered `##` sections, and can open with a small effort block
134
+ naming `duration_s`, `usage`, `model` and `harness`. See the
135
+ [loop skill](skills/context-rail-v3-loop/SKILL.md) for the exact contract.
136
+
137
+ ## Connect your tools
138
+
139
+ Context Rail speaks one JSON envelope over the CLI, MCP and a local web UI. It
140
+ works with Claude Code, Codex, opencode, Cursor, Gemini CLI, Droid and any MCP
141
+ client. Your harness keeps its own agents, worktrees and models.
142
+
143
+ ```bash
144
+ rail serve mcp # MCP server for your coding tool
145
+ rail serve ui # token-protected local dashboard
146
+ ```
147
+
148
+ The rail never launches an agent. It hands out the brief and records the result.
149
+
150
+ ## Built-in packs
151
+
152
+ Start with a built-in pack, or copy one into your store and make it yours:
153
+
154
+ | Pack | Designed for | How work flows |
155
+ |---|---|---|
156
+ | `basic` | Getting started, small projects | todo → doing → done |
157
+ | `flow` | Continuous delivery, no sprints | backlog → ready → building → review → shipped |
158
+ | `scrum` | Teams working in sprints | goal → scope → sprint → story → task |
159
+ | `waterfall` | Projects with distinct phases | planned → designing → building → testing → done |
160
+ | `video` | Video and content production | scene → shot: storyboard → generating → review → approved → published |
161
+ | `portfolio` | Several projects coordinated from one master store | component → slice, gated by child store checks |
162
+ | `adaptive-contract` | Risk-aware code changes without test overhead | classify trivial, standard or critical → contract → build → proportionate checks → lesson |
163
+
164
+ Want your own words or steps?
165
+
166
+ ```bash
167
+ rail ops pack create --name <name> --from basic
168
+ ```
169
+
170
+ Edit the copy, then switch with `rail ops pack use` (human-only). Relabelling a
171
+ preset or retitling a screen never needs re-approval; changing a transition,
172
+ placement, preset or operating block does.
173
+
174
+ ## Why it holds up
175
+
176
+ - **Files are the truth.** The store is Markdown, JSON records and `rail.yaml`
177
+ in your repo. SQLite is only a cache under the git dir.
178
+ - **One write path.** CLI, MCP and UI all go through validate → authorize →
179
+ lock → atomic write → record → index. No lost updates; every retry is safe.
180
+ - **Fail closed.** An unknown pack key, manifest schema or policy field is
181
+ refused, never guessed.
182
+ - **Agents never read `pack.yaml`.** The compiler turns the pack into one
183
+ model; agents ask `rail next`, `rail read show`, `rail why`, `rail explain`
184
+ and `rail model`.
185
+ - **Project shape is data.** Sprints, phases and scenes are pack data, not
186
+ engine code, so one engine runs any of them.
187
+ - **Your project stays yours.** Plain files, no server account, no lock-in.
188
+
189
+ ## Learn more
190
+
191
+ - [How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md): architecture, operating model, commands, surfaces
192
+ - [Roles and seats](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#roles-and-seats): sessions, reach and the compat rule
193
+ - [The six building blocks](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/building-blocks.md): the visual model and two worked examples
194
+ - [User guide](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-guide.html): diagrams and a zero-to-daily walkthrough
195
+ - [Interactive engine graph](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-engine-graph.html)
196
+ - [Agent onboarding kit](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/agent-onboarding/README.md): set up any agent harness
197
+ - [Operator skills](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/skills/README.md): drop-in skills for your agents
198
+ - [Upgrading from v1/v2](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#upgrading-a-v1v2-store)
199
+
200
+ The test lanes, speed budgets and working rules are in
201
+ [How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#development)
202
+ and [AGENTS.md](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/AGENTS.md).
203
+
204
+ ## License
205
+
206
+ MIT License. See [LICENSE](LICENSE).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "context-rail"
7
- version = "4.2.0"
7
+ version = "4.3.0"
8
8
  description = "An agentic project workspace: files are the truth, agents work through one write path"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -4,4 +4,4 @@
4
4
  release. Public skill IDs keep their stable ``context-rail-v3`` prefix.
5
5
  """
6
6
 
7
- __version__ = "4.2.0"
7
+ __version__ = "4.3.0"
@@ -543,7 +543,8 @@ def _agents_payload(
543
543
  "Store (`context-rail/`) is the truth; SQLite is a cache; Records in `records/` are immutable; JSON envelope exits 0/1/2.",
544
544
  "## Read before you act",
545
545
  "Never parse `pack.yaml`, `rail.yaml` or the charter. Ask: `rail types`, `rail next` (`--all`/`--into`/`--focus-only`), "
546
- "`rail read show <slug>`, `rail why <slug>`, `rail explain <name>`, `rail model`, `rail overview`, `rail read status`, `rail gate`.",
546
+ "`rail read show <slug>`, `rail why <slug>`, `rail explain <name>`, `rail model`, `rail overview`, `rail read status`, "
547
+ "`rail read digest`, `rail read ledger`, `rail gate`.",
547
548
  "## Write, Human-only & Refusals",
548
549
  "- Read first and pass `--expect <etag>`, `--key <idempotency-key>`, `--rel part_of=<slug>`, `--set <field>=<value>` (no path/parent/title); change status only via `rail change move` or `rail do <action>`; run `rail ops reindex` after hand edits.",
549
550
  "- Human-only: `ops migrate`, `ops pack use`, `ops delegate`, and every `--force` render. Operational actions (`ops upgrade`, `ops adapters render`, `ops rollback`) are available to the live project lead while the charter approval is current; a `delegation` block may narrow or pin these to one named lead. A name-based store takes `--actor human` (or `RAIL_ACTOR=human`) plus the printed phrase; a role-mode store needs the human on a terminal or through the UI. `approve` records its signer; the charter's `approval.agents` says whether an agent may sign. Never widen a delegation, never claim a human signature you did not receive, and never lower a gate.",
@@ -554,6 +555,14 @@ def _agents_payload(
554
555
  "## The loop",
555
556
  "The rail does not run agents; your tool runs sub-agents and merges in git. Rail keeps work order, proof and record:",
556
557
  _commands(roles),
558
+ "## Effort and cost",
559
+ "- Record what the tool reported on `rail loop candidate` (`--model`, `--harness`, "
560
+ "`--usage NAME=NUMBER|unknown`, `--duration SECONDS`) or in a result's leading `---` block. "
561
+ "`rail ops measure usage --group-by item|model|harness|role|profile|skill` rolls it up; "
562
+ "`unknown` stays unknown, money is never a counter, and a budget warns rather than refuses.",
563
+ "- Steering: compare a skill or profile with `rail ops measure versions --target-class skill|profile "
564
+ "--target <path> --before <n> --after <n>`; `rail ops rollback` restores an earlier version as a new one "
565
+ "when the target and delegation allow. Measurement never applies or rolls back a change by itself.",
557
566
  "## Transports, Profiles & Skills",
558
567
  "- MCP (`rail serve mcp`, canonical names `status|next|show|add|move|result|candidate|review|...`) and loopback UI (`rail serve ui`).",
559
568
  f"- Profiles: {profile_summary}.",
@@ -197,6 +197,7 @@ CTO_METHODS = WORKER_METHODS + (
197
197
  "pack create",
198
198
  "measure versions",
199
199
  "measure fix",
200
+ "measure usage",
200
201
  "rollback",
201
202
  "sync",
202
203
  "sync driver",
@@ -0,0 +1,21 @@
1
+ placement:
2
+ item: "items/{preset}/{slug}.md"
3
+ note: "notes/{preset}/{slug}.md"
4
+ check: "checks/{slug}.md"
5
+ record: "records/{yyyy}-{mm}/{id}.json"
6
+ actor: "workspace/profiles/{slug}/profile.md"
7
+ policy: "policies/{slug}.md"
8
+ presets:
9
+ decision: "records/decisions/{slug}.md"
10
+ result: "records/results/{field:workflow_name}/{about.slug}/{id}.md"
11
+ review-result: "records/result-reviews/{field:workflow_name}/{about.slug}/{id}.md"
12
+ charter: "charter.md"
13
+ goal: "project/{slug}.md"
14
+ vision: "project/{slug}.md"
15
+ scope: "project/{slug}.md"
16
+ wont: "project/{slug}.md"
17
+ contract: "project/contracts/{slug}.md"
18
+ lesson: "project/lessons/{slug}.md"
19
+ skill: "workspace/skills/{slug}.md"
20
+ cto: "workspace/cto/profile.md"
21
+ profile: "workspace/profiles/{slug}/profile.md"