tracebook-sim 0.2.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.
- tracebook_sim-0.2.0/CHANGELOG.md +105 -0
- tracebook_sim-0.2.0/CODE_OF_CONDUCT.md +22 -0
- tracebook_sim-0.2.0/CONTRIBUTING.md +65 -0
- tracebook_sim-0.2.0/LICENSE +21 -0
- tracebook_sim-0.2.0/MANIFEST.in +15 -0
- tracebook_sim-0.2.0/PKG-INFO +627 -0
- tracebook_sim-0.2.0/PROJECT_PLAN.md +41 -0
- tracebook_sim-0.2.0/QUICKSTART.md +95 -0
- tracebook_sim-0.2.0/README.md +534 -0
- tracebook_sim-0.2.0/SECURITY.md +25 -0
- tracebook_sim-0.2.0/SUPPORT.md +19 -0
- tracebook_sim-0.2.0/docs/api-stability.md +23 -0
- tracebook_sim-0.2.0/docs/architecture.md +127 -0
- tracebook_sim-0.2.0/docs/commands.md +156 -0
- tracebook_sim-0.2.0/docs/event-replay.md +77 -0
- tracebook_sim-0.2.0/docs/logo.png +0 -0
- tracebook_sim-0.2.0/docs/performance.md +136 -0
- tracebook_sim-0.2.0/docs/release.md +69 -0
- tracebook_sim-0.2.0/examples/advanced_profiling_check.py +298 -0
- tracebook_sim-0.2.0/examples/data/sample_events.jsonl +5 -0
- tracebook_sim-0.2.0/examples/full_simulation_demo.py +355 -0
- tracebook_sim-0.2.0/examples/magic_trace_integration_demo.py +298 -0
- tracebook_sim-0.2.0/pyproject.toml +28 -0
- tracebook_sim-0.2.0/setup.cfg +4 -0
- tracebook_sim-0.2.0/setup.py +136 -0
- tracebook_sim-0.2.0/src/tracebook/__init__.py +38 -0
- tracebook_sim-0.2.0/src/tracebook/_version.py +3 -0
- tracebook_sim-0.2.0/src/tracebook/benchmarks/__init__.py +1 -0
- tracebook_sim-0.2.0/src/tracebook/benchmarks/runner.py +234 -0
- tracebook_sim-0.2.0/src/tracebook/core/__init__.py +0 -0
- tracebook_sim-0.2.0/src/tracebook/core/matching_engine.py +497 -0
- tracebook_sim-0.2.0/src/tracebook/core/order.py +436 -0
- tracebook_sim-0.2.0/src/tracebook/core/orderbook.py +1038 -0
- tracebook_sim-0.2.0/src/tracebook/core/price_level.py +309 -0
- tracebook_sim-0.2.0/src/tracebook/core/replay.py +173 -0
- tracebook_sim-0.2.0/src/tracebook/events/__init__.py +21 -0
- tracebook_sim-0.2.0/src/tracebook/events/cli.py +83 -0
- tracebook_sim-0.2.0/src/tracebook/events/market_replay.py +587 -0
- tracebook_sim-0.2.0/src/tracebook/profiling/__init__.py +0 -0
- tracebook_sim-0.2.0/src/tracebook/profiling/magic_trace_wrapper.py +595 -0
- tracebook_sim-0.2.0/src/tracebook/profiling/performance_monitor.py +615 -0
- tracebook_sim-0.2.0/src/tracebook/profiling/trace_analyzer.py +534 -0
- tracebook_sim-0.2.0/src/tracebook/profiling/trace_visualizer.py +475 -0
- tracebook_sim-0.2.0/src/tracebook/py.typed +1 -0
- tracebook_sim-0.2.0/src/tracebook/simulation/__init__.py +0 -0
- tracebook_sim-0.2.0/src/tracebook/simulation/order_generator.py +960 -0
- tracebook_sim-0.2.0/src/tracebook/simulation/simulation_engine.py +701 -0
- tracebook_sim-0.2.0/src/tracebook/utils/__init__.py +0 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/__init__.py +0 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/dashboard.py +698 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/web/__init__.py +1 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/web/app.js +146 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/web/index.html +66 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/web/styles.css +312 -0
- tracebook_sim-0.2.0/src/tracebook/visualization/web_server.py +258 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/PKG-INFO +627 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/SOURCES.txt +85 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/dependency_links.txt +1 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/entry_points.txt +6 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/not-zip-safe +1 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/requires.txt +50 -0
- tracebook_sim-0.2.0/src/tracebook_sim.egg-info/top_level.txt +1 -0
- tracebook_sim-0.2.0/tests/__init__.py +0 -0
- tracebook_sim-0.2.0/tests/benchmarks/__init__.py +0 -0
- tracebook_sim-0.2.0/tests/benchmarks/microbench.py +126 -0
- tracebook_sim-0.2.0/tests/conftest.py +10 -0
- tracebook_sim-0.2.0/tests/test_artifact_schemas.py +335 -0
- tracebook_sim-0.2.0/tests/test_audit_hardening.py +343 -0
- tracebook_sim-0.2.0/tests/test_benchmark_runner_json_output.py +101 -0
- tracebook_sim-0.2.0/tests/test_benchmark_scenarios.py +58 -0
- tracebook_sim-0.2.0/tests/test_concurrency_contracts.py +61 -0
- tracebook_sim-0.2.0/tests/test_dashboard_demo_construction.py +270 -0
- tracebook_sim-0.2.0/tests/test_invariants.py +253 -0
- tracebook_sim-0.2.0/tests/test_lifecycle_hardening.py +88 -0
- tracebook_sim-0.2.0/tests/test_market_event_replay.py +353 -0
- tracebook_sim-0.2.0/tests/test_metrics_honesty.py +52 -0
- tracebook_sim-0.2.0/tests/test_orderbook_edge_contracts.py +172 -0
- tracebook_sim-0.2.0/tests/test_orderbook_semantics.py +367 -0
- tracebook_sim-0.2.0/tests/test_public_api.py +12 -0
- tracebook_sim-0.2.0/tests/test_release_metadata.py +79 -0
- tracebook_sim-0.2.0/tests/test_replay.py +208 -0
- tracebook_sim-0.2.0/tests/test_self_trade_prevention.py +175 -0
- tracebook_sim-0.2.0/tests/test_simulation_benchmarks.py +273 -0
- tracebook_sim-0.2.0/tests/test_simulation_event_metrics.py +86 -0
- tracebook_sim-0.2.0/tests/test_tick_grid.py +163 -0
- tracebook_sim-0.2.0/tests/test_v020_integrity.py +212 -0
- tracebook_sim-0.2.0/tests/test_web_frontend.py +151 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `tracebook` will be documented here.
|
|
4
|
+
|
|
5
|
+
The project follows [Keep a Changelog](https://keepachangelog.com/) conventions.
|
|
6
|
+
|
|
7
|
+
## Unreleased
|
|
8
|
+
|
|
9
|
+
## 0.2.0 - 2026-07-10
|
|
10
|
+
|
|
11
|
+
Trust, installability, and real-data workflow release.
|
|
12
|
+
|
|
13
|
+
- Renamed the Python distribution to `tracebook-sim` because the `tracebook`
|
|
14
|
+
project name on PyPI belongs to an unrelated package. The import namespace and
|
|
15
|
+
existing `tracebook-*` console commands remain unchanged.
|
|
16
|
+
- Added `tracebook-replay` and the `tracebook.events` API for normalized CSV,
|
|
17
|
+
JSON, and JSONL order-event replay across multiple symbols. The strict mode
|
|
18
|
+
fails with event context; lenient mode records rejections and continues.
|
|
19
|
+
- Kept imported source order ids stable across replacement and later cancellation,
|
|
20
|
+
added configurable self-trade policy, and added optional trade output carrying
|
|
21
|
+
both source and engine ids.
|
|
22
|
+
- Made replacement an atomic cancel-and-new transaction with callbacks delivered
|
|
23
|
+
after unlocking, and preserved the original owner so replacement cannot bypass
|
|
24
|
+
either self-trade-prevention policy.
|
|
25
|
+
- Detached accepted orders, lookup results, trades, and callback payloads from
|
|
26
|
+
internal mutable state so callers cannot corrupt price levels or trade history.
|
|
27
|
+
- Tightened existing-order validation: ids, sides, order types, owners, timestamps,
|
|
28
|
+
prices, and quantities are type-checked without lossy integer coercion, and
|
|
29
|
+
malformed submissions return structured rejections.
|
|
30
|
+
- Added `clear` to deterministic event logs so recording and replay retain the
|
|
31
|
+
identical final book after a reset. Recorded submissions now retain an
|
|
32
|
+
externally supplied partial remaining quantity as well, and recording now
|
|
33
|
+
requires a pristine book with no earlier non-resting activity.
|
|
34
|
+
- Made pro-rata FOK preflight mirror level-wide `CANCEL_INCOMING` execution.
|
|
35
|
+
- Made fallback profiling collect configured matching functions through a real
|
|
36
|
+
Python profiling hook and emit completed calls and raw events.
|
|
37
|
+
- Made live frontend state atomic across depth, quote, trades, and statistics;
|
|
38
|
+
corrected chronological trade-direction coloring.
|
|
39
|
+
- Made the optional dashboard command keep `--help` and `--version` usable from
|
|
40
|
+
a core install and report the exact dashboard-extra install command otherwise.
|
|
41
|
+
- Separated achieved new-order rate from total event rate, made simulation metric
|
|
42
|
+
collection and batch ingestion configuration effective, and hardened cleanup
|
|
43
|
+
for failed or interrupted simulation and web sessions. Registered simulation
|
|
44
|
+
completion callbacks now receive the result artifact instead of being inert.
|
|
45
|
+
- Added PEP 561 `py.typed` metadata, Python 3.12/3.13 CI, a 75% coverage gate,
|
|
46
|
+
wheel-installed CLI smoke tests, package metadata checks, and a PyPI Trusted
|
|
47
|
+
Publishing release workflow.
|
|
48
|
+
- Added a dependency-free live order-book web frontend (`tracebook-web`): a
|
|
49
|
+
static HTML/CSS/JS page served by a stdlib HTTP server, backed by a background
|
|
50
|
+
simulation, showing a live depth ladder, top-of-book quote, engine metrics,
|
|
51
|
+
and a trade tape. It is loopback-only by default and ships in wheel/sdist.
|
|
52
|
+
|
|
53
|
+
## 0.1.1 - 2026-07-02
|
|
54
|
+
|
|
55
|
+
Patch release from an adversarial QA pass: eight confirmed bugs fixed, each with a regression test.
|
|
56
|
+
|
|
57
|
+
- Required an empty book for `start_recording()` (QA found silent replay divergence): the event log captures only operations from the recording point on, so recording a book with pre-existing resting liquidity would replay to a different result (or crash on a later cancel of a pre-existing order). `start_recording()` now raises if any orders are resting.
|
|
58
|
+
- Stopped firing user callbacks while a lock is held (a deadlock vector found in QA): `replace_order` now submits the replacement with the book lock released, and `PerformanceMonitor.record_order_processing` fires alert callbacks after releasing the monitor lock. `replace_order` is now documented as cancel-then-new (its callbacks are lock-free like every other submission).
|
|
59
|
+
- Bounded the matching engine's trade history (found leaking in QA): `trades` is now a capped deque (retaining the recent tail for `get_recent_trades`) instead of an unbounded list, so a long-running book no longer grows memory per fill; `total_trades` remains the cumulative count.
|
|
60
|
+
- Hardened `MagicTraceSession.stop()` (found in QA): it now checks `poll()` before signalling, tolerates a self-exited child (magic-trace runs with a duration cap), always reaps the process, and marks the session inactive in a `finally` — previously a self-exited child raised `ProcessLookupError`, wedging the session and leaving a zombie.
|
|
61
|
+
- Fixed two tick-snapping matching bugs found in QA: an incoming limit whose price was within half a tick of a resting order could rest beside it and lock the book (the match decision used the raw price while resting prices were snapped), and a positive sub-half-tick price could snap to `0.0` and rest/execute for free. Incoming prices are now snapped onto the tick grid before validation and matching, and a price that snaps to a non-positive tick is rejected. The property-based invariants now fuzz off-grid prices.
|
|
62
|
+
|
|
63
|
+
## 0.1.0 - 2026-07-02
|
|
64
|
+
|
|
65
|
+
First tagged alpha release. Consolidates the full alpha development history.
|
|
66
|
+
|
|
67
|
+
- Enabled `check_untyped_defs` in the mypy baseline (still `mypy src/tracebook` clean) and fixed the untyped-body issues it surfaced (nullable thread handles and an optional trace-file guard).
|
|
68
|
+
- Published a local benchmark baseline covering every scenario, including the newer ones, in `docs/performance.md`.
|
|
69
|
+
- Added benchmark scenarios: `deep_book` (deep resting liquidity), `high_cancellation` (heavier cancel/replace mix), `pro_rata_cancellation` (pro-rata with lifecycle events), and `multi_symbol` (independent books per symbol). `BenchmarkScenario` gained a `symbols` field threaded through to the simulation.
|
|
70
|
+
- Added artifact-level schema tests that lock the structure of the public JSON outputs (benchmark report, simulation results, and the replay `EventLog`), round-tripped through `json` the way the CLIs write them, so a refactor cannot silently change the output contract.
|
|
71
|
+
- Extended the mypy type-check baseline to the whole `src/tracebook` package and widened the CI gate to `mypy src/tracebook`. Fixed a real type-contract gap (the `OrderGenerator` ABC now declares the `order_factory`/`price_model` attributes its subclasses set and the stream assigns), made `SimulationConfig.symbols` a non-optional field with a default factory, and annotated the profiling/dashboard/simulation collections and implicit-`Optional` parameters.
|
|
72
|
+
- Established a mypy type-check baseline on the `core` package and enforce it in CI (initially `mypy src/tracebook/core`, clean). Added the annotations to get there, guarded `infer_price_decimals` against non-int `Decimal` exponents, and restored `mypy` as a dev dependency.
|
|
73
|
+
- Added a trusted fast path for orders built by the book's own factory: since the factory already validates side/type/price/quantity/owner and uses the book symbol with a fresh id, the `add_*`/`submit_*` methods skip the redundant book-level re-validation, symbol re-normalization, factory-id reconciliation, and a resting-state index lookup. Cut `add_deep` ~26% and `match` ~19%. The public `add_order`/`submit_order` (which accept externally built orders) still fully validate.
|
|
74
|
+
- Dropped `numba` as a dependency and removed the standalone `algorithms/{fifo,pro_rata}.py` analysis helpers, which were never wired into the live matching path. With `Order`/`Trade`/`PriceLevel` all plain Python, nothing on the order-book path used Numba; the package now imports and runs with Numba absent (verified with the import blocked).
|
|
75
|
+
- Made `Order` and `Trade` plain `__slots__` classes instead of Numba `jitclass` types. Profiling the per-order path showed the jitclass was about half the cost (`inspect`-based argument binding on every construction plus field-access boxing, all paid because the matching loop is pure Python); this roughly tripled `add_deep` and `match` throughput. Numba is no longer used on the order-book path.
|
|
76
|
+
- Made the FIFO match loop copy-free: it now iterates by repeatedly taking the O(1) price-level head instead of copying the entire level per aggressive order, so matching against a deep level is flat (O(1) per match) rather than O(level size). Verified by the `match` microbenchmark (now flat in level size) and a deep-sweep FIFO-order test.
|
|
77
|
+
- Replaced the price-level index's O(n) Python linear-scan insert and `list.remove` with `bisect` (per-side key), removing the Python-loop cost from level insert/removal. A local comparison against `sortedcontainers.SortedList` (command, machine, and Python cited in `docs/performance.md`) found `bisect` + list faster for realistic level counts, so no sorted-container dependency was added.
|
|
78
|
+
- Made in-level order removal O(1) by keying each price level's orders with an insertion-ordered dict (preserving FIFO order), replacing the previous O(n) linear scan. Moving `PriceLevel` off the Numba `jitclass` also removed per-access boundary cost from the pure-Python matching loop, substantially speeding up matching. Added a deterministic operation microbenchmark (`tests/benchmarks/microbench.py`) and before/after numbers in `docs/performance.md`.
|
|
79
|
+
- Added self-trade prevention: orders carry an optional `owner` id, and `OrderBook(self_trade_policy=...)` supports `CANCEL_RESTING` and `CANCEL_INCOMING` (default `NONE`). Both policies keep the book uncrossed, FOK fillability mirrors each policy (own liquidity excluded, and `CANCEL_INCOMING` stops at the first same-owner order so a FOK never partially executes), and the policy plus owners are captured in the replay log. Exported `SelfTradePolicy` and `NO_OWNER`.
|
|
80
|
+
- Made replay fail fast on a malformed or incompatible log: a hard-rejected submission (via a new `OrderResult.accepted` flag) or a cancel that finds no order now raises instead of diverging silently; soft outcomes such as an unfillable FOK still replay faithfully.
|
|
81
|
+
- Computed rolling throughput with an O(1) running window total instead of re-summing the deque on every order.
|
|
82
|
+
- Made `infer_price_decimals` use the tick's exact decimal representation so fine or scientific-notation tick sizes no longer collapse canonical prices to whole numbers.
|
|
83
|
+
- Added deterministic record/replay: `OrderBook.start_recording()`/`stop_recording()` capture a serializable `EventLog`, and `replay()` reconstructs the identical trade sequence and final book state (also across a JSON round-trip). Exported `EventLog` and `replay` from the package root.
|
|
84
|
+
- Reported throughput as a rolling one-second window rate instead of a lifetime cumulative average, so the dashboard shows an instantaneous rate.
|
|
85
|
+
- Removed the synchronous psutil sweep from the order-processing hot path; alerts and summaries now read the background-sampled resource snapshot.
|
|
86
|
+
- Attributed a replacement that crosses the book to matching latency rather than lifecycle-event latency, so replace-heavy scenarios no longer hide matching cost.
|
|
87
|
+
- Made `replace_order` atomic: an invalid replacement is rejected before the original is cancelled, and a replacement that fails to submit after cancellation restores the original resting order, so a replace never destroys liquidity.
|
|
88
|
+
- Bounded the order-id replay guard so long-running books no longer leak memory (most-recent-N window, configurable via `_seen_id_cap`).
|
|
89
|
+
- Keyed price levels by integer ticks (configurable `tick_size`, default `0.01`); prices now snap to a canonical grid, removing the float-identity hazard of dict-keying on raw prices.
|
|
90
|
+
- Consolidated execution pricing to a single rule (matches fill at the resting/maker price) and removed the unused JIT `match_orders_fifo` helper and the divergent timestamp-based `calculate_match_price`.
|
|
91
|
+
- Added property-based matching invariants (quantity conservation, no crossed book, level consistency) and tick-grid tests; added `hypothesis` as a dev dependency.
|
|
92
|
+
- Moved package code under the `tracebook` namespace.
|
|
93
|
+
- Added structured order submission results and richer order book lifecycle APIs.
|
|
94
|
+
- Added event-based simulation with new, cancel, and replace events.
|
|
95
|
+
- Added reproducible benchmark runner and local performance baseline docs.
|
|
96
|
+
- Added dashboard demo simulation support.
|
|
97
|
+
- Added GitHub Actions CI, packaging metadata, and open-source project templates.
|
|
98
|
+
- Reworked the README and docs into an artifact-first professional repo front door.
|
|
99
|
+
- Added release guidance, architecture docs, command docs, and richer package metadata.
|
|
100
|
+
- Added a source distribution manifest for docs, examples, tests, and project metadata.
|
|
101
|
+
- Hardened symbol, enum, numeric, duplicate-order-id, dashboard host, and magic-trace artifact validation.
|
|
102
|
+
- Made simulation lifecycle replacement IDs thread-safe and documented analyzer output as not yet collected.
|
|
103
|
+
- Refreshed local benchmark sample numbers from the current benchmark runner.
|
|
104
|
+
- Removed the unused mypy dev dependency/config until typed-package support has a real passing baseline.
|
|
105
|
+
- Added compile and dependency consistency checks to CI and clarified dependency grouping.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Code Of Conduct
|
|
2
|
+
|
|
3
|
+
This project should be a place where people can do careful technical work without needless friction.
|
|
4
|
+
|
|
5
|
+
## Expected Behavior
|
|
6
|
+
|
|
7
|
+
- Be respectful and specific.
|
|
8
|
+
- Assume good intent, but accept correction when impact differs from intent.
|
|
9
|
+
- Critique code and ideas, not people.
|
|
10
|
+
- Keep disagreements focused on evidence, tradeoffs, and project goals.
|
|
11
|
+
- Make space for new contributors to ask basic questions.
|
|
12
|
+
|
|
13
|
+
## Unacceptable Behavior
|
|
14
|
+
|
|
15
|
+
- Harassment, threats, insults, or discriminatory language.
|
|
16
|
+
- Publishing private information without consent.
|
|
17
|
+
- Repeatedly derailing issues or pull requests.
|
|
18
|
+
- Bad-faith demands for unpaid support.
|
|
19
|
+
|
|
20
|
+
## Enforcement
|
|
21
|
+
|
|
22
|
+
Maintainers may edit, hide, or remove comments; close issues; reject pull requests; or block users when behavior harms the project. If you need to report conduct privately, contact the maintainer through the GitHub profile for `Taz33m`.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping make `tracebook` better. This project is early alpha, so the best contributions are focused, tested, and honest about behavior.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
python -m venv venv
|
|
9
|
+
source venv/bin/activate
|
|
10
|
+
pip install -e ".[dev,dashboard]"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Local Checks
|
|
14
|
+
|
|
15
|
+
Run these before opening a pull request:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python -m black --check src tests examples install_deps.py test_system.py
|
|
19
|
+
python -m flake8 src tests examples install_deps.py test_system.py
|
|
20
|
+
python -m pytest --cov=tracebook --cov-report=term-missing --cov-fail-under=75
|
|
21
|
+
python test_system.py
|
|
22
|
+
tracebook-benchmark --scenario smoke --duration 1 --throughput 50 --seed 1337 --warmup-seconds 0.01 --output benchmark_results/local-smoke.json
|
|
23
|
+
tracebook-dashboard --demo-simulation --help
|
|
24
|
+
tracebook-replay examples/data/sample_events.jsonl --output /tmp/tracebook-replay.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
For packaging changes, also run:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python -m build --sdist --wheel --outdir dist
|
|
31
|
+
python -m twine check dist/*
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Normalized feed adapters should emit `tracebook.MarketEvent` values and keep
|
|
35
|
+
venue-specific parsing, sequence checks, and assumptions outside the core replay
|
|
36
|
+
engine. Include a small fixture and strict rejection tests with each adapter.
|
|
37
|
+
|
|
38
|
+
The command reference in `docs/commands.md` is the source of truth for reviewer-facing smoke paths.
|
|
39
|
+
|
|
40
|
+
## Pull Requests
|
|
41
|
+
|
|
42
|
+
- Keep changes scoped to one clear theme.
|
|
43
|
+
- Add or update tests for user-visible behavior.
|
|
44
|
+
- Keep performance claims tied to a reproducible benchmark command and machine context.
|
|
45
|
+
- Prefer public APIs under `tracebook.*`; do not reintroduce old `src/core` style imports.
|
|
46
|
+
- If a change affects matching semantics, include a small example in the PR description.
|
|
47
|
+
|
|
48
|
+
## Commit Identity
|
|
49
|
+
|
|
50
|
+
GitHub contributor attribution depends on the commit author email being verified on your GitHub account. Check before committing:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
git config user.name
|
|
54
|
+
git config user.email
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Reporting Bugs
|
|
58
|
+
|
|
59
|
+
Please include:
|
|
60
|
+
|
|
61
|
+
- Python version and OS
|
|
62
|
+
- install command used
|
|
63
|
+
- minimal code or CLI command that reproduces the issue
|
|
64
|
+
- expected vs actual behavior
|
|
65
|
+
- relevant benchmark JSON when reporting performance regressions
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tazeem Mahashin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include CHANGELOG.md
|
|
4
|
+
include CODE_OF_CONDUCT.md
|
|
5
|
+
include CONTRIBUTING.md
|
|
6
|
+
include PROJECT_PLAN.md
|
|
7
|
+
include QUICKSTART.md
|
|
8
|
+
include SECURITY.md
|
|
9
|
+
include SUPPORT.md
|
|
10
|
+
|
|
11
|
+
recursive-include docs *.md *.png
|
|
12
|
+
recursive-include examples *.py *.jsonl
|
|
13
|
+
recursive-include tests *.py
|
|
14
|
+
recursive-include src/tracebook/visualization/web *.html *.css *.js
|
|
15
|
+
include src/tracebook/py.typed
|