Contributions should preserve TradingChassis Core as a deterministic, Runtime-agnostic library.
Terminology: Definitions and related terms match the canonical terminology.
- Core owns canonical Events, State reduction, Strategy evaluation boundary,
candidate reconciliation, Risk Engine (policy), Execution Control plan/apply,
and
CoreStepResult. - Core does not own Runtime orchestration, Venue Adapters, dispatch lifecycle, or deployment/config wiring.
From core:
python -m pip install -e ".[dev]"Run before opening a PR:
python examples/core_step_quickstart.py
python -m pytest -q
python -m build- Core accepts canonical Events through
EventStreamEntryandprocess_event_entry/process_canonical_event. - Core returns deterministic
CoreStepResult; Runtime dispatches. - Do not introduce Runtime imports.
- Pydantic models are the source of truth for contract structure.
- Add Event models in
tradingchassis_core/core/domain/types.py. - Register canonical category handling in
core/domain/event_model.py. - Update canonical reduction behavior in
core/domain/processing.py.
- Update
core/domain/processing_step.pyfor deterministic flow changes. - Keep reconciliation/policy/apply transitions explicit and side-effect-safe.
- Implement policy checks in
core/risk/and wire throughevaluate_policy_intent. - Keep Risk Engine admission as policy-only; no dispatch/Runtime side effects.
- Update plan/apply stages in
core/domain/execution_control_plan.pyandcore/domain/execution_control_apply.py. - Preserve
ControlSchedulingObligationas non-canonical output.
- Update
tradingchassis_core/__init__.pyfor intentional public exports only. - Sync docs in
README.mdanddocs/reference/public-api.md.
- Package remains Core-only and deterministic.
- Public API changes are intentional and tested.
- Quickstart still runs via public imports.
-
python -m pytest -qpasses. -
python -m buildsucceeds. - README/docs/changelog updated to match behavior.