context-rail 3.2.0__tar.gz → 3.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.
- context_rail-3.3.0/PKG-INFO +440 -0
- context_rail-3.3.0/README.md +413 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/pyproject.toml +54 -53
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/__init__.py +3 -1
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/cli.py +73 -16
- context_rail-3.3.0/src/context_rail/context/code_targets.py +161 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/context/recipes.py +41 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/context/surface.py +429 -425
- context_rail-3.3.0/src/context_rail/core/locate.py +182 -0
- context_rail-3.3.0/src/context_rail/core/slug.py +26 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/core/tool_names.py +211 -201
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/core/util.py +2 -16
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/doctor/stage2.py +381 -234
- context_rail-3.3.0/src/context_rail/gateway/daemon.py +791 -0
- context_rail-3.3.0/src/context_rail/gateway/execution.py +69 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/gateway.py +34 -56
- context_rail-3.3.0/src/context_rail/gateway/handlers/codegraph.py +287 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/cto.py +571 -570
- context_rail-3.3.0/src/context_rail/gateway/handlers/daemon.py +31 -0
- context_rail-3.3.0/src/context_rail/gateway/handlers/dispatch/code_area.py +353 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/common.py +3 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/conflict.py +1 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/implementer.py +74 -15
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/review_order.py +2 -0
- context_rail-3.3.0/src/context_rail/gateway/handlers/executions.py +134 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/init.py +184 -145
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/onboarding.py +70 -16
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/onboarding_pipeline.py +654 -651
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/surface.py +0 -3
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/views.py +4 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/tools.py +106 -16
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/cache.py +16 -7
- context_rail-3.3.0/src/context_rail/model/codegraph.py +496 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/cto.py +15 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/manifest.py +506 -491
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/pack.py +10 -2
- context_rail-3.3.0/src/context_rail/packs/adoptable.json +130 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/pack.yaml +66 -66
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/profiles/cto.md +41 -42
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/profiles/implementer.md +34 -34
- {context_rail-3.2.0/src/context_rail/packs/video → context_rail-3.3.0/src/context_rail/packs/basic}/profiles/reviewer.md +31 -31
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/skills/review-checklist/SKILL.md +22 -22
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/surface.yaml +22 -22
- context_rail-3.3.0/src/context_rail/packs/basic/templates/code.md +14 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/pack.yaml +83 -52
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/profiles/cto.md +42 -43
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/profiles/implementer.md +36 -36
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/profiles/reviewer.md +31 -32
- {context_rail-3.2.0/src/context_rail/packs/scrum → context_rail-3.3.0/src/context_rail/packs/flow}/skills/review-checklist/SKILL.md +22 -22
- context_rail-3.3.0/src/context_rail/packs/flow/templates/code.md +14 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/pack.yaml +128 -122
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/profiles/cto.md +42 -43
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/profiles/implementer.md +35 -35
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/profiles/reviewer.md +31 -32
- {context_rail-3.2.0/src/context_rail/packs/flow → context_rail-3.3.0/src/context_rail/packs/scrum}/skills/review-checklist/SKILL.md +22 -22
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/surface.yaml +21 -20
- context_rail-3.3.0/src/context_rail/packs/scrum/templates/code.md +14 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/pack.yaml +148 -163
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/profiles/cto.md +49 -42
- context_rail-3.3.0/src/context_rail/packs/video/profiles/implementer.md +36 -0
- {context_rail-3.2.0/src/context_rail/packs/basic → context_rail-3.3.0/src/context_rail/packs/video}/profiles/reviewer.md +33 -31
- context_rail-3.3.0/src/context_rail/packs/video/skills/shot-brief/SKILL.md +22 -0
- context_rail-3.3.0/src/context_rail/packs/video/skills/take-review/SKILL.md +24 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/surface.yaml +19 -20
- context_rail-3.3.0/src/context_rail/packs/video/templates/code.md +14 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/pack.yaml +96 -96
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/profiles/cto.md +42 -43
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/profiles/implementer.md +36 -36
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/profiles/reviewer.md +31 -32
- {context_rail-3.2.0/src/context_rail/packs/video → context_rail-3.3.0/src/context_rail/packs/waterfall}/skills/review-checklist/SKILL.md +22 -22
- context_rail-3.3.0/src/context_rail/packs/waterfall/templates/code.md +14 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/__init__.py +227 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/builtin.py +435 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/gitnexus.py +545 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/graphify.py +281 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/probe.py +422 -0
- context_rail-3.3.0/src/context_rail/runner/codegraph/provider.py +110 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/dispatch.py +25 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/droid.py +15 -4
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/git.py +74 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/approval.py +2 -0
- context_rail-3.3.0/src/context_rail/store/codegraph.py +419 -0
- context_rail-3.3.0/src/context_rail/store/codemap.py +52 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/git_index.py +11 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/index.py +23 -1
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/location.py +28 -98
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/query.py +29 -0
- context_rail-3.3.0/src/context_rail.egg-info/PKG-INFO +440 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail.egg-info/SOURCES.txt +18 -7
- context_rail-3.2.0/PKG-INFO +0 -307
- context_rail-3.2.0/README.md +0 -280
- context_rail-3.2.0/src/context_rail/gateway/daemon.py +0 -337
- context_rail-3.2.0/src/context_rail/gateway/execution.py +0 -36
- context_rail-3.2.0/src/context_rail/gateway/handlers/daemon.py +0 -20
- context_rail-3.2.0/src/context_rail/packs/basic/skills/code-map/SKILL.md +0 -35
- context_rail-3.2.0/src/context_rail/packs/basic/templates/code.md +0 -14
- context_rail-3.2.0/src/context_rail/packs/flow/skills/code-map/SKILL.md +0 -35
- context_rail-3.2.0/src/context_rail/packs/flow/templates/code.md +0 -14
- context_rail-3.2.0/src/context_rail/packs/scrum/skills/code-map/SKILL.md +0 -35
- context_rail-3.2.0/src/context_rail/packs/scrum/templates/code.md +0 -14
- context_rail-3.2.0/src/context_rail/packs/video/profiles/implementer.md +0 -34
- context_rail-3.2.0/src/context_rail/packs/video/skills/code-map/SKILL.md +0 -35
- context_rail-3.2.0/src/context_rail/packs/video/templates/code.md +0 -14
- context_rail-3.2.0/src/context_rail/packs/waterfall/skills/code-map/SKILL.md +0 -35
- context_rail-3.2.0/src/context_rail/packs/waterfall/skills/review-checklist/SKILL.md +0 -22
- context_rail-3.2.0/src/context_rail/packs/waterfall/skills/test-first/SKILL.md +0 -20
- context_rail-3.2.0/src/context_rail/packs/waterfall/templates/code.md +0 -14
- context_rail-3.2.0/src/context_rail.egg-info/PKG-INFO +0 -307
- {context_rail-3.2.0 → context_rail-3.3.0}/LICENSE +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/setup.cfg +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/__main__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/client.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/context/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/context/operating.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/core/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/core/defaults.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/core/result.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/doctor/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/doctor/checks.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/doctor/gitconfig.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/codegen.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/confirmation.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/actions.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/adapters.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/checks.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/common.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/budget.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/checkpoint.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/closeout.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/merge.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/records.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/review.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/dispatch/review_records.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/docs.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/doctor.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/maintenance.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/mcp.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/measure.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/migrate.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/packs.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/reports.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/reshape.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/sync.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/ui.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/handlers/versions.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/mcp_schema.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/gateway/mcp_server.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/budgets.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/gates.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/lifecycle.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/measurement.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/merge.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/packs.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/relations.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/rights.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/structure.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/timestamps.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/triage.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/kernel/triage_patch.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/actions.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/compiler.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/errors.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/execution.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/fields.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/metadata.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/operating.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/placement.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/policy.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/presentation.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/model/primitives.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/layout.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/skills/test-first/SKILL.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/actor.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/charter.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/check.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/goal.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/item.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/note.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/policy.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/record.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/scope.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/vision.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/wont.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/basic/templates/work-order.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/layout.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/skills/test-first/SKILL.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/surface.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/actor.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/charter.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/check.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/goal.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/item.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/note.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/policy.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/record.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/scope.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/vision.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/wont.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/flow/templates/work-order.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/layout.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/skills/test-first/SKILL.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/actor.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/charter.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/check.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/goal.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/item.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/note.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/policy.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/record.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/scope.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/vision.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/wont.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/scrum/templates/work-order.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/layout.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/actor.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/charter.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/check.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/goal.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/item.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/note.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/policy.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/record.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/scene.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/scope.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/shot.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/vision.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/wont.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/video/templates/work-order.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/layout.yaml +0 -0
- {context_rail-3.2.0/src/context_rail/packs/video → context_rail-3.3.0/src/context_rail/packs/waterfall}/skills/test-first/SKILL.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/surface.yaml +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/actor.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/charter.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/check.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/deliverable.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/goal.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/item.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/note.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/policy.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/record.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/scope.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/vision.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/wont.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/packs/waterfall/templates/work-order.md +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/body_merge.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/control.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/git_sync.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/merge.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/protocol.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/runner/run.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/adapters.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/doc.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/frontmatter_edit.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/gitattributes.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/github_sync.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/legacy.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/lock.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/measure.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/migration.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/packs.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/placement.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/sync.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/versions.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/store/write.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/__init__.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/api.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/readmodels.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/server.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/snapshot.py +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/static/assets/index-BdWPYrJo.js +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/static/assets/index-C6LhOr0x.css +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/static/favicon.svg +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail/ui/static/index.html +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail.egg-info/dependency_links.txt +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail.egg-info/entry_points.txt +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail.egg-info/requires.txt +0 -0
- {context_rail-3.2.0 → context_rail-3.3.0}/src/context_rail.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: context-rail
|
|
3
|
+
Version: 3.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
|
+
[](https://pypi.org/project/context-rail/)
|
|
31
|
+
[](https://pypi.org/project/context-rail/)
|
|
32
|
+
[](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/LICENSE)
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
**Keep your AI agents on the rails.** Context Rail turns your project into a
|
|
37
|
+
shared workspace where AI agents do the work and you stay in charge of what
|
|
38
|
+
matters.
|
|
39
|
+
|
|
40
|
+
Building with AI agents is fast, until it isn't. Agents forget what was
|
|
41
|
+
decided, lose track of what is done, skip the tests and change things nobody
|
|
42
|
+
asked for. The bigger the project, the worse it gets.
|
|
43
|
+
|
|
44
|
+
Context Rail gives every project one source of truth that lives in your git
|
|
45
|
+
repo. A lead agent plans and hands out the work. Each helper agent sees only
|
|
46
|
+
what its job needs. Nothing counts as done until it is proven, and the big
|
|
47
|
+
calls wait for a human yes.
|
|
48
|
+
|
|
49
|
+
## What you get
|
|
50
|
+
|
|
51
|
+
- **Agents that stay focused.** Each agent gets a short brief for its role
|
|
52
|
+
instead of the whole project. Less noise, fewer wrong turns.
|
|
53
|
+
- **You approve what matters.** The project's scope, its quality bar and
|
|
54
|
+
anything irreversible wait for a human. Change the rules, and Context Rail
|
|
55
|
+
asks again.
|
|
56
|
+
- **"Done" means proven.** Work only reaches done when its checks pass. When
|
|
57
|
+
proof is missing, Context Rail tells you which command produces it.
|
|
58
|
+
- **Every agent works in its own sandbox.** Each job runs in a separate git
|
|
59
|
+
worktree and lands only after review, as a clean fast-forward merge.
|
|
60
|
+
- **Your project stays yours.** Everything is plain Markdown and JSON in your
|
|
61
|
+
repo. No server, no account, no lock-in.
|
|
62
|
+
- **One tool for any kind of project.** Kanban, sprints, phase gates or video
|
|
63
|
+
production: pick a template and the same engine runs it.
|
|
64
|
+
|
|
65
|
+
## Try it in 5 minutes
|
|
66
|
+
|
|
67
|
+
You need Python 3.11+ and git.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
python -m pip install context-rail # Windows: py -m pip install context-rail
|
|
71
|
+
cd your-project
|
|
72
|
+
rail init --pack basic # sets up the workspace and walks you through the project brief
|
|
73
|
+
rail change add task "Write the first task"
|
|
74
|
+
rail overview # your daily starting page
|
|
75
|
+
rail serve ui # the local web view
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`rail init` creates a `context-rail/` folder in your project and asks a few
|
|
79
|
+
questions about what you are building. If it reports that approval is missing,
|
|
80
|
+
approve the brief yourself:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
rail --actor human approve charter --confirm "APPROVE charter" --confirmer "Your Name"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
To let agents pick up the work, install the Factory `droid` CLI (or point
|
|
87
|
+
`RAIL_DROID_BIN` at it).
|
|
88
|
+
|
|
89
|
+
## How a day looks
|
|
90
|
+
|
|
91
|
+
1. **See where things stand.** `rail overview` shows progress, what is next
|
|
92
|
+
and what is blocked.
|
|
93
|
+
2. **Approve the plan.** Nothing runs until a human approves the brief.
|
|
94
|
+
Working alone? Solo mode skips the ceremony; the quality checks still apply.
|
|
95
|
+
3. **Hand out work.** `rail loop dispatch` gives an agent one task, a focused
|
|
96
|
+
brief and its own sandbox.
|
|
97
|
+
4. **Prove it.** The checks you chose run against the agent's work.
|
|
98
|
+
5. **Review and merge.** A different actor reviews, and `rail loop merge`
|
|
99
|
+
lands only approved work.
|
|
100
|
+
|
|
101
|
+
## Works for any kind of project
|
|
102
|
+
|
|
103
|
+
Pick a template when you start with `rail init --pack <name>`:
|
|
104
|
+
|
|
105
|
+
| Template | Best for | How work flows |
|
|
106
|
+
|---|---|---|
|
|
107
|
+
| `basic` | Getting started, small projects | todo → doing → done |
|
|
108
|
+
| `flow` | Work that arrives all the time, no sprints | backlog → ready → building → review → shipped |
|
|
109
|
+
| `scrum` | Teams that work in sprints | goal → scope → sprint → story → task |
|
|
110
|
+
| `waterfall` | Projects with distinct phases | planned → designing → building → testing → done |
|
|
111
|
+
| `video` | Video and content production | scene → shot, each shot: storyboard → generating → review → approved → published |
|
|
112
|
+
|
|
113
|
+
Want your own words or steps? Copy a template and make it yours with
|
|
114
|
+
`rail ops pack create --name <name> --from basic`. Renaming things never needs
|
|
115
|
+
re-approval; changing the rules does.
|
|
116
|
+
|
|
117
|
+
## Build any project from six building blocks
|
|
118
|
+
|
|
119
|
+
Every Context Rail project, whatever its shape, is built from the same six
|
|
120
|
+
building blocks. The engine knows only these; a template gives them the names
|
|
121
|
+
your team already uses. Each section below shows two pictures: how the blocks
|
|
122
|
+
relate, and how a project runs through them. Colors are the same everywhere:
|
|
123
|
+
yellow policy, blue item, green check, gray record, pink note, purple actor.
|
|
124
|
+
|
|
125
|
+
### How the blocks relate
|
|
126
|
+
|
|
127
|
+
```mermaid
|
|
128
|
+
flowchart TD
|
|
129
|
+
P["policy<br/>the charter: rules and who decides"]
|
|
130
|
+
G{"gate"}
|
|
131
|
+
I["item<br/>the work<br/>not_started → active → done<br/>blocked · dropped"]
|
|
132
|
+
C["item<br/>a container"]
|
|
133
|
+
D["item<br/>a dependency"]
|
|
134
|
+
K["check<br/>a command, a file, evidence,<br/>a review or a human sign-off"]
|
|
135
|
+
R["record<br/>append-only history"]
|
|
136
|
+
N["note<br/>context"]
|
|
137
|
+
A["actor<br/>cto · implementer · reviewer"]
|
|
138
|
+
|
|
139
|
+
P -- "defines the gates" --> G
|
|
140
|
+
K -- "verifies: fresh and passing" --> I
|
|
141
|
+
K -- "proof" --> G
|
|
142
|
+
R -- "approved review" --> G
|
|
143
|
+
G -- "opens the finished status" --> I
|
|
144
|
+
I -- "part_of: builds the tree,<br/>drives focus and progress" --> C
|
|
145
|
+
I -- "depends_on: unfinished means blocked" --> D
|
|
146
|
+
I -- "owned_by" --> A
|
|
147
|
+
A -- "writes" --> R
|
|
148
|
+
R -- "about" --> I
|
|
149
|
+
N -- "about: feeds the agent brief" --> I
|
|
150
|
+
|
|
151
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
152
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
153
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
154
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
155
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
156
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
157
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
158
|
+
class P cPolicy
|
|
159
|
+
class I,C,D cItem
|
|
160
|
+
class K cCheck
|
|
161
|
+
class R cRecord
|
|
162
|
+
class N cNote
|
|
163
|
+
class A cActor
|
|
164
|
+
class G cGate
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
The **policy** decides which gates exist. A **gate** keeps an **item** out of
|
|
168
|
+
its finished status until its **checks** pass and a review **record** approves
|
|
169
|
+
it. An unfinished `depends_on` blocks the item, and `part_of` builds the tree
|
|
170
|
+
that decides focus and progress. **Notes** give agents their context, and
|
|
171
|
+
**records** keep the history.
|
|
172
|
+
|
|
173
|
+
### How a project runs
|
|
174
|
+
|
|
175
|
+
```mermaid
|
|
176
|
+
flowchart LR
|
|
177
|
+
S1["1 Approve<br/>policy"] --> S2["2 Plan<br/>item"] --> S3["3 Dispatch<br/>actor"] --> S4["4 Work<br/>record"] --> S5["5 Check<br/>check"] --> S6["6 Review<br/>record"] --> S7{"7 Gate"} --> S8["8 Finish<br/>item"]
|
|
178
|
+
|
|
179
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
180
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
181
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
182
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
183
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
184
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
185
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
186
|
+
class S1 cPolicy
|
|
187
|
+
class S2,S8 cItem
|
|
188
|
+
class S3 cActor
|
|
189
|
+
class S4,S6 cRecord
|
|
190
|
+
class S5 cCheck
|
|
191
|
+
class S7 cGate
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
1. A human approves the charter; nothing runs before that.
|
|
195
|
+
2. The CTO agent plans work under the container in focus.
|
|
196
|
+
3. An implementer agent gets one item, a brief built from notes, and its own git worktree.
|
|
197
|
+
4. The run is written down as a record.
|
|
198
|
+
5. The item's checks run in that worktree. A failed run gets one retry, then escalates to you.
|
|
199
|
+
6. A different actor reviews the work.
|
|
200
|
+
7. The gate opens only with fresh, passing checks and an approved review.
|
|
201
|
+
8. The item finishes, the work merges as a fast-forward, and progress updates in your daily digest.
|
|
202
|
+
|
|
203
|
+
### Example: a video production
|
|
204
|
+
|
|
205
|
+
```mermaid
|
|
206
|
+
flowchart TD
|
|
207
|
+
CH["charter · policy"]
|
|
208
|
+
GO["film goal · item"]
|
|
209
|
+
SC["scene · container item<br/>focus: the active scene"]
|
|
210
|
+
SH["shot · the unit of work<br/>draft → storyboard → generating<br/>→ review → approved → published"]
|
|
211
|
+
AS["asset · item<br/>example: a character model"]
|
|
212
|
+
GT{"item_done gate"}
|
|
213
|
+
QC["quality check · check"]
|
|
214
|
+
RV["review · record"]
|
|
215
|
+
RN["render run · execution record<br/>running → succeeded or failed"]
|
|
216
|
+
NT["vision, style guide · note"]
|
|
217
|
+
IM["implementer · actor"]
|
|
218
|
+
RE["reviewer · actor"]
|
|
219
|
+
|
|
220
|
+
SC -- "part_of" --> GO
|
|
221
|
+
SH -- "part_of" --> SC
|
|
222
|
+
SH -- "depends_on (example)" --> AS
|
|
223
|
+
CH -- "defines" --> GT
|
|
224
|
+
QC -- "verifies" --> SH
|
|
225
|
+
QC --> GT
|
|
226
|
+
RE -- "writes" --> RV
|
|
227
|
+
RV -- "about" --> SH
|
|
228
|
+
RV --> GT
|
|
229
|
+
GT -- "opens approved" --> SH
|
|
230
|
+
SH -- "owned_by" --> IM
|
|
231
|
+
SH -- "render, once approved" --> RN
|
|
232
|
+
NT -- "about" --> SH
|
|
233
|
+
|
|
234
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
235
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
236
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
237
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
238
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
239
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
240
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
241
|
+
class CH cPolicy
|
|
242
|
+
class GO,SC,SH,AS cItem
|
|
243
|
+
class QC cCheck
|
|
244
|
+
class RV,RN cRecord
|
|
245
|
+
class NT cNote
|
|
246
|
+
class IM,RE cActor
|
|
247
|
+
class GT cGate
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
```mermaid
|
|
251
|
+
flowchart LR
|
|
252
|
+
V1["1 Approve<br/>charter"] --> V2["2 Start scene<br/>scene"] --> V3["3 Storyboard<br/>shot"] --> V4["4 Generate<br/>run record"] --> V5["5 Check<br/>quality check"] --> V6["6 Review<br/>review record"] --> V7{"7 Approve"} --> V8["8 Render<br/>render run"] --> V9["9 Publish<br/>shot"]
|
|
253
|
+
|
|
254
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
255
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
256
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
257
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
258
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
259
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
260
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
261
|
+
class V1 cPolicy
|
|
262
|
+
class V2,V3,V9 cItem
|
|
263
|
+
class V4,V6,V8 cRecord
|
|
264
|
+
class V5 cCheck
|
|
265
|
+
class V7 cGate
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
The shot is the unit of work, and the scene in production is the focus. A shot
|
|
269
|
+
reaches approved only through the `item_done` gate. Progress counts approved
|
|
270
|
+
shots per scene; render runs show up as execution progress and never count as
|
|
271
|
+
finished work.
|
|
272
|
+
|
|
273
|
+
### Example: vibe coding in sprints
|
|
274
|
+
|
|
275
|
+
```mermaid
|
|
276
|
+
flowchart TD
|
|
277
|
+
CH["charter · policy"]
|
|
278
|
+
SR["sprint · container item<br/>focus: the active sprint"]
|
|
279
|
+
ST["story · the unit of work<br/>todo → doing → review → done"]
|
|
280
|
+
BG["bug · item<br/>reported → fixing →<br/>verifying → closed"]
|
|
281
|
+
GT{"item_done gate"}
|
|
282
|
+
TS["tests · check"]
|
|
283
|
+
RP["repro-check + acceptance · check"]
|
|
284
|
+
RV["review · record"]
|
|
285
|
+
NT["vision, conventions · note"]
|
|
286
|
+
IM["implementer agent · actor<br/>own git worktree"]
|
|
287
|
+
RE["reviewer · actor<br/>never the implementer"]
|
|
288
|
+
|
|
289
|
+
ST -- "part_of" --> SR
|
|
290
|
+
BG -- "part_of" --> SR
|
|
291
|
+
CH -- "defines" --> GT
|
|
292
|
+
TS -- "verifies" --> ST
|
|
293
|
+
RP -- "verifies" --> BG
|
|
294
|
+
TS --> GT
|
|
295
|
+
RP --> GT
|
|
296
|
+
RE -- "writes" --> RV
|
|
297
|
+
RV -- "about" --> ST
|
|
298
|
+
RV --> GT
|
|
299
|
+
GT -- "opens done / closed" --> ST
|
|
300
|
+
GT --> BG
|
|
301
|
+
ST -- "owned_by" --> IM
|
|
302
|
+
NT -- "about: feeds every brief" --> ST
|
|
303
|
+
|
|
304
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
305
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
306
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
307
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
308
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
309
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
310
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
311
|
+
class CH cPolicy
|
|
312
|
+
class SR,ST,BG cItem
|
|
313
|
+
class TS,RP cCheck
|
|
314
|
+
class RV cRecord
|
|
315
|
+
class NT cNote
|
|
316
|
+
class IM,RE cActor
|
|
317
|
+
class GT cGate
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
```mermaid
|
|
321
|
+
flowchart LR
|
|
322
|
+
Q1["1 Approve<br/>charter"] --> Q2["2 Start sprint<br/>sprint"] --> Q3["3 Plan<br/>story"] --> Q4["4 Build<br/>run record"] --> Q5["5 Test<br/>tests"] --> Q6["6 Review<br/>review record"] --> Q7{"7 Gate"} --> Q8["8 Merge<br/>story done"] --> Q9["9 Close sprint<br/>sprint"]
|
|
323
|
+
|
|
324
|
+
classDef cPolicy fill:#fde68a,stroke:#b45309,color:#111
|
|
325
|
+
classDef cItem fill:#bfdbfe,stroke:#1d4ed8,color:#111
|
|
326
|
+
classDef cCheck fill:#bbf7d0,stroke:#15803d,color:#111
|
|
327
|
+
classDef cRecord fill:#e5e7eb,stroke:#4b5563,color:#111
|
|
328
|
+
classDef cNote fill:#fbcfe8,stroke:#be185d,color:#111
|
|
329
|
+
classDef cActor fill:#ddd6fe,stroke:#6d28d9,color:#111
|
|
330
|
+
classDef cGate fill:#fff,stroke:#111,color:#111
|
|
331
|
+
class Q1 cPolicy
|
|
332
|
+
class Q2,Q3,Q8,Q9 cItem
|
|
333
|
+
class Q4,Q6 cRecord
|
|
334
|
+
class Q5 cCheck
|
|
335
|
+
class Q7 cGate
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
The story is the unit of work, and the running sprint is the focus. A story
|
|
339
|
+
reaches done only with passing tests and an approved review; a bug also needs
|
|
340
|
+
its `repro-check` and `acceptance` checks before it closes. A sprint closes only
|
|
341
|
+
when every story in it is finished, and progress counts finished stories per
|
|
342
|
+
sprint.
|
|
343
|
+
|
|
344
|
+
## Code graph
|
|
345
|
+
|
|
346
|
+
For code projects, Context Rail reads your git checkout and builds a graph of
|
|
347
|
+
files, functions and who calls whom. It lives in a local cache, not in the
|
|
348
|
+
store, and rebuilds from git. When you dispatch an agent, the work order
|
|
349
|
+
carries a short `code area`: the files and symbols the item mentions, plus their
|
|
350
|
+
callers. At review, the reviewer sees which functions the diff changed, what
|
|
351
|
+
reaches them, and which tests cover them. `rail why src/app.py:total` answers
|
|
352
|
+
for a file or a function the same way it answers for an item.
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
rail ops codegraph setup # check the provider and build the first snapshot
|
|
356
|
+
rail ops codegraph status # provider, coverage and freshness
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
It is on by default for code packs and off for the video pack. Choose a
|
|
360
|
+
provider in `rail.yaml`:
|
|
361
|
+
|
|
362
|
+
```yaml
|
|
363
|
+
code_graph: builtin # builtin | graphify | gitnexus | none
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
or pass `--code-graph graphify` (or `gitnexus`, `builtin`, `none`) to
|
|
367
|
+
`rail init`. For an external provider, init probes it once and reports the
|
|
368
|
+
readiness line at the end; a missing tool does not fail the init.
|
|
369
|
+
|
|
370
|
+
`builtin` needs no install. `graphify` (`uv tool install "graphifyy>=0.9.100,<0.10"`,
|
|
371
|
+
Apache-2.0) and `gitnexus` (`npm install -g gitnexus`, Node 22.18+ or 24.11+,
|
|
372
|
+
PolyForm Noncommercial) are optional upgrades. Override a binary with
|
|
373
|
+
`RAIL_GRAPHIFY_BIN` or `RAIL_GITNEXUS_BIN`. A store made before the code graph,
|
|
374
|
+
with hand-written `code` notes, moves over once with
|
|
375
|
+
`rail --actor human ops codegraph adopt`; it rewrites only the profiles and
|
|
376
|
+
skills you have not edited.
|
|
377
|
+
|
|
378
|
+
The rail never installs an external tool. If the configured tool is missing or
|
|
379
|
+
broken, dispatch falls back to `builtin` and says why in the work order.
|
|
380
|
+
`rail ops codegraph setup` caches its readiness check; `status`, the overview,
|
|
381
|
+
approval and `rail ops doctor` read that cache without starting a process.
|
|
382
|
+
GitNexus is indexed in an isolated mirror under the local cache, so it never
|
|
383
|
+
writes `.gitnexus`, `.claude` or a GitNexus section into your checkout, and
|
|
384
|
+
`GITNEXUS_HOME` keeps its registry out of your home directory.
|
|
385
|
+
|
|
386
|
+
## Use it your way
|
|
387
|
+
|
|
388
|
+
- **Command line.** `rail` works for you and your agents alike. Every answer
|
|
389
|
+
is one JSON reply that agents read easily.
|
|
390
|
+
- **Any MCP client.** `rail serve mcp` plugs Context Rail into AI tools that
|
|
391
|
+
speak MCP.
|
|
392
|
+
- **Local web UI.** `rail serve ui` shows Flow, Plan and Records views. It runs
|
|
393
|
+
on your machine only and is protected by a token.
|
|
394
|
+
- **Quick by default.** A small background helper keeps everyday commands fast
|
|
395
|
+
and stops itself after 10 idle minutes.
|
|
396
|
+
|
|
397
|
+
## For engineers
|
|
398
|
+
|
|
399
|
+
- **Files are the truth.** The store is Markdown, JSON records and `rail.yaml`
|
|
400
|
+
in your repo. SQLite is only a cache under the git dir; delete it and the
|
|
401
|
+
next command rebuilds it.
|
|
402
|
+
- **One write path.** CLI, MCP and UI all go through validate → authorize →
|
|
403
|
+
lock → atomic write → record → index.
|
|
404
|
+
- **Fail closed.** An unknown pack key, manifest schema or policy field is
|
|
405
|
+
refused, never guessed.
|
|
406
|
+
- **Agents never read `pack.yaml`.** A compiler turns the pack into one model,
|
|
407
|
+
and agents ask `rail next`, `rail show`, `rail why` and `rail model`.
|
|
408
|
+
- **No lost updates, safe retries.** Every write carries the etag it read, and
|
|
409
|
+
every retry carries an idempotency key that returns the same record.
|
|
410
|
+
- **Project shape is data.** Six primitives, eight relations and five status
|
|
411
|
+
categories are fixed; sprints, phases and scenes are pack data, not engine
|
|
412
|
+
code.
|
|
413
|
+
|
|
414
|
+
The full picture, with the architecture, the operating model and every
|
|
415
|
+
command, is in
|
|
416
|
+
[How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md).
|
|
417
|
+
|
|
418
|
+
## Learn more
|
|
419
|
+
|
|
420
|
+
- [How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md): architecture, operating model, commands, surfaces
|
|
421
|
+
- [User guide](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-guide.html): diagrams and a zero-to-daily walkthrough
|
|
422
|
+
- [Interactive engine graph](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/context-rail-v3-engine-graph.html)
|
|
423
|
+
- [Agent onboarding kit](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/agent-onboarding/README.md): set up any agent harness
|
|
424
|
+
- [Operator skills](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/skills/README.md): drop-in skills for your agents
|
|
425
|
+
- [Upgrading from v1/v2](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#upgrading-a-v1v2-store)
|
|
426
|
+
|
|
427
|
+
## Contributing
|
|
428
|
+
|
|
429
|
+
```bash
|
|
430
|
+
python -m pip install -e .[test]
|
|
431
|
+
python -m pytest -q -m "not slow and not perf"
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
The test lanes, speed budgets and working rules are in
|
|
435
|
+
[How Context Rail works](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/docs/how-it-works.md#development)
|
|
436
|
+
and [AGENTS.md](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/AGENTS.md).
|
|
437
|
+
|
|
438
|
+
## License
|
|
439
|
+
|
|
440
|
+
MIT. See [LICENSE](https://github.com/nguyenhoanhson797/Context-Rail/blob/master/LICENSE).
|