Changelog¶
All notable changes to Jitterbug are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
Added¶
- Database sources: ClickHouse (
clickhouseextra, SQL), InfluxDB 2 (influxextra, Flux), InfluxDB 3 (newinfluxdb3extra, SQL or InfluxQL) and DuckDB (newduckdbextra, SQL over Parquet/CSV globs, attached SQLite/PostgreSQL databases and object storage).analyze,validate,inspect,visualizeandreplaytake a source URI in place of the file (clickhouse://host/db,influxdb2://host?org=ORG,influxdb3://host/db,duckdb:,duckdb:///path.db) with--queryor--query-file, or a named profile from the newsources:section of the configuration file with--source NAME. Query results go through the same column mapping, units, row policies,--seriesand--group-byas files; datetime time columns load without--time-unit, and InfluxDB results default to_time/_value(Flux) ortime(InfluxDB 3).inspectreports the source, the query and the columns. Passwords and tokens are read only from environment variables (CLICKHOUSE_PASSWORD,INFLUXDB_V2_TOKEN,INFLUX_TOKEN, or the variable named bypassword_env/token_env); a URI or profile holding one is rejected, client errors and log records are redacted, and the dataset metadata records the source kind, host/database and query text, never a secret. Python:SourceConfig,DataLoader.load_from_source/load_series_from_source,JitterbugAnalyzer.analyze_from_source/analyze_series_from_source,jitterbug.io.sources. Seedocs/DATA_SOURCES.md.
Changed¶
DataLoader.load_from_influxdbruns through the new database source layer: its errors are redacted,input.seriesapplies, and aninput.time_column/rtt_columnmapping is honored instead of being replaced by_time/_value.- Configuration validation errors no longer echo the offending input value
(
hide_input_in_errors), so that a rejected secret is never printed back.
Deprecated¶
data_processing.min_samples_per_interval,data_processing.outlier_detectionanddata_processing.outlier_threshold. No code has ever read them: they were accepted, validated and documented, but no minimum number of samples per interval and no outlier filtering was ever applied. They are still accepted through 2.x, with no effect; setting one now emits aDeprecationWarningand a log warning. They are removed in 3.0.jitterbug config --template,JitterbugConfig.to_fileand themetadata.configof result files leave them out unless they were set explicitly, and README andexamples/no longer show them.
2.6.0 - 2026-11-26¶
Added¶
- Change point revisions in the online mode (
streaming.revise_change_points,--revise-change-pointsonstreamandreplay; off by default,bocpdback end with themaprule). When the MAP rule refines the last change point withinmin_time_elapsed, arevisionevent (start_epochthe new epoch,revised_fromthe old one) replaces the dropped refinement; the open period's provisional verdict is emitted again on the revised boundary and its final verdict uses it. State changes keep theirid(the first-reported epoch) and get an update with the newchange_epochandrevised_from.StreamingEventandStateChangeEventgain arevised_fromfield,nullelsewhere. On the paper dataset: 8 revisions, 13 instead of 8 reference boundaries in the right bin, mean offset 15.2 instead of 18.1 min, 19 instead of 20 within 30 min, no verdict changed.scoreapplies revisions and addsrevisions,revision_shift_min_*,revision_lag_min_*,provisional_superseded*,boundaries_within_5minandboundary_offset_min_*;score_state_changesaddsstate_changes_revised.tools/boundary_revisions.pyprints the comparison table ofdocs/ONLINE_MODE.md. - Flexible input. A new
inputconfiguration section (InputConfig) sets the time, RTT, source and destination column names; the time unit (s,ms,us,ns, ISO 8601 strings withiso, orautoto infer it); the RTT unit (ms,us,s,ns, converted to milliseconds); and explicit row policies for duplicate timestamps (keep,first,min,error), out-of-range RTTs (drop,error) and unsorted rows (sort,error). The defaults are the previous behavior.analyze,validate,visualizeandreplaytake--time-column,--rtt-column,--time-unitand--rtt-unit, which override the configuration file;validatealso takes--config. Seedocs/INPUT_FORMATS.md. - TSV input (
.tsv,.tab), and CSV files separated by tabs or semicolons (the separator is detected from the header, or set withinput.delimiter). - Generic JSON lines input: one flat object per line, mapped like CSV columns.
.json/.jsonl/.ndjsonfiles are read as scamper output when they contain scamper ping or bookkeeping records and as generic JSON lines otherwise;--format scamperand--format jsonlforce one reader. - gzip (
.gz), bzip2 (.bz2) and xz (.xz) compressed input and output, like.zst, with the standard library only. - Multi-series input.
input.group_by(--group-byonanalyze) names the columns that identify a series (source,destinationor any raw column such as a probe id); each series is loaded with the row policies applied on its own and analyzed separately, and a series too short to analyze is reported as skipped with its reason. Grouped JSON output is one document with aserieslist of{key, result}or{key, skipped_reason}entries; CSV and Parquet gain leading key columns; the console prints one row per series.input.series(--series NAME=VALUEonanalyze,validate,visualizeandreplay) keeps only matching rows. Python:DataLoader.load_series,JitterbugAnalyzer.analyze_series_from_file/analyze_series_from_dataframe/save_series_results. Single-series output is unchanged. A file holding several paths with neither setting is still analyzed as one series, now with a warning naming how many there are and the--group-bythat separates them (metadata["source_destination_pairs"]counts the (source, destination) pairs). Each grouped dataset records its key inmetadata["series_key"]. Seedocs/INPUT_FORMATS.md. jitterbug inspect FILE: a dry run of loading that reports the format and compression, the column mapping and units in effect (including whattime_unit: autoinferred), how many rows each row policy would drop or reorder, and the series in the file with their sample counts, time ranges, median sampling interval, largest gap and duplicate timestamps;--jsonfor machine-readable output.- State changes in the online mode:
jitterbug.streaming.StateChangeTrackerfollows either back end and reports transitions of the path betweenbaselineandcongested, firstsuspectedfrom the latency jump of the new period's first closed bin (streaming.state_change_bins), thenconfirmedorretractedby the provisional and final verdicts, with a stable id, timestamps and the evidence.jitterbug stream --state-changesprints them as JSON lines (--events nonefor those alone),--on-state-change CMDruns a command per change with the JSON on stdin, andjitterbug replayreports their counts and lead times. On the paper dataset every suspected change is confirmed, 30 min (KS) or 2.5 h (dispersion) before the provisional verdict. Both back ends gain a read-onlyopen_period_bins(); their events are unchanged. Seedocs/ONLINE_MODE.md. context7.jsonat the repository root so Context7 indexesdocs/andexamples/.- More input formats on the reader registry (see
docs/INPUT_FORMATS.md): Parquet (.parquet,.pq) and Arrow IPC/Feather (.arrow,.feather,.ipc,.arrows) through the newparquetextra (pyarrow; also inall), with columns mapped by theinputsettings and timestamp-typed time columns read without--time-unit(the extra also covers the existing--output-format parquet, which needed pyarrow installed by hand); RIPE Atlas ping results (--format atlas), as the API's JSON array or one result per line, with timeouts and errors counted in the metadata; andping -D/fping -Dtext output (--format ping|fping), which is an error without the-Dtimestamps. Files with several destinations or Atlas probes are one series unless--group-byor--seriesseparates them (--group-by prb_id,msm_id,destinationfor Atlas,--group-by destinationfor ping and fping), with a warning that says so..jsonfiles holding Atlas results,.txt/.logfiles holding ping or fping output, and Parquet/Arrow files with any name (by their magic bytes) are detected automatically; JSON arrays of flat objects now load as generic JSON lines. Compressed Parquet and Arrow files (rtts.parquet.gz) are rejected, as compressed Parquet output already was. jitterbug stream --format ping|fpingreadsping -D/fping -Doutput directly (ping -D host | jitterbug stream --format ping); reply lines without a timestamp are skipped with one warning. The default,--format csv, is unchanged.- The documentation site serves
/llms.txtand/llms-full.txt, generated by themkdocs-llmstxtplugin (thedocsdependency group).llms.txtindexes the guides and the API reference;llms-full.txtis those pages in one file. The README links both. - PyPI project URLs for the PAM 2022 paper (
Paper), the changelog (Changelog), andllms.txt. Keywords also cover latency, round-trip time, congestion inference, change-point detection, and network measurement.
Changed¶
- Loading is split into readers (
jitterbug.io.readers, one per format, registered by name and extension) and a single normalizer (jitterbug.io.normalize) that applies the column mapping, units and row policies;DataLoader.load_from_dataframeis a thin wrapper around it.--formatlists the registered formats (csv,tsv,json,scamper,jsonl). Error messages for a missing column now list the columns that exist, and an infinite time or one outside the years 1–9999 is aValueErrornaming the column instead of anOverflowError. Dataset metadata gainstime_column,time_unit,time_unit_inferred,rtt_unit,duplicate_rowsandduplicates_removed(anddelimiterorinvalid_lines, depending on the reader). - A
.json/.jsonlfile without any scamper record is now read as generic JSON lines instead of failing with "No valid RTT measurements". CITATION.cffhas a top-levelrepository-code, an abstract, and keywords. The code URL was nested under the author, which Citation File Format does not allow on a person. Zenodo copies the abstract and keywords into the software record's description and subjects.- Locked dependency releases that fix the vulnerabilities
pip-auditand Dependabot flag: Pillow 13.0.0, tornado 6.6.1, soupsieve 4.1, filelock 4.2.10, and virtualenv 21.14.13. The first four no longer install on Python 3.10 (see Removed).
Removed¶
- Python 3.11 or newer is required (was 3.10). Python 3.10 reached end of life in
October 2026, and the fixed releases of Pillow (13.0.0), tornado (6.6), soupsieve
(4.0.0) and filelock (4.2.1) no longer install on it, so the Python 3.10 fork of the
lockfile kept every open Dependabot alert alive (Pillow through the
visualizationextra, tornado and soupsieve throughjupyter, filelock throughbcpand thedevgroup). The lockfile now resolves those packages to fixed releases only. CI tests 3.11–3.13, and ruff targetspy311(datetime.UTCreplacestimezone.utc). The lockfile covers Python 3.11.5 and newer ([tool.uv] environments), because soupsieve 4 needs 3.11.5; emscripten is left out of it, since torch has no wheels there.
2.5.0 - 2026-10-09¶
Added¶
- Jitter dispersion in the online mode.
JitterAnalyzer.compute_causal_jitter_dispersionapplies the offline filters (moving IQR, moving average) as trailing windows, so a value never depends on later bins; the series is the offline one delayed by 6 bins at the default orders and the threshold keeps its meaning. Both online back ends now followjitter_analysis.methodfor provisional and final verdicts (the config default,jitter_dispersion, included; 2.4.0 always used the KS test online). A provisional verdict with dispersion waits until the open period holds 12 dispersion values.jitterbug streamandjitterbug replaytake--method;tools/replay_online.pytoo. On the paper dataset BCP + causal dispersion recovers 14 of the 15 reference periods of the paper's dispersion output with none spurious, like the offline pipeline, with no provisional flips; pinned intests/test_paper_regression.py(TestOnlineDispersionReplay) and in the back ends table ofdocs/ONLINE_MODE.md.
Changed¶
- The online mode no longer forces the KS test: with the default configuration it uses jitter
dispersion, like
jitterbug analyze. Pass--method ks_test(or setjitter_analysis.method) for the 2.4.0 behavior.
2.4.0 - 2026-10-09¶
Added¶
- Online (streaming) mode.
jitterbug.streaming.OnlineJitterbugconsumes RTT samples one at a time and emits change points and congestion verdicts as events: causal minimum-RTT bins feed the Bayesian online change point detector ofbayesian-changepoint1.2 (bcpextra), a change point is declared when the MAP run length drops, and each period gets a provisional verdict (latency jump + KS test on the samples so far) and a final one when the next change point closes it. Settings are thestreamingsection ofJitterbugConfig(StreamingConfig); the bin width, latency jump threshold, significance level and device come from the shared sections.jitterbug streaminfers congestion fromepoch,rttlines on a file or standard input (--follow,--events) and prints JSON events;jitterbug replayruns a recorded dataset through the online pipeline and scores it against a reference (--reference,--output). On the paper dataset it recovers 14 of the 15 reference congestion periods with none spurious, like the offline pipeline, and reports congestion onsets 15 min after they start (median; 90 min max); pinned intests/test_paper_regression.py(TestOnlineReplay). Seedocs/ONLINE_MODE.md. Tools:tools/replay_online.py(replay and score,--sweep, a flag for every online setting) andtools/prefix_experiment.py(how retrospective the offline pipeline is). -
A second online back end,
streaming.backend: window(jitterbug stream --backend window): the offline sequential pipeline rerun on a trailing window (window_hours, default 72) everyrerun_every_binsclosed bins, emitting a change point once it has been placed within two bins of the same spot instable_runsconsecutive reruns, and final verdicts as a contiguous chain whose boundaries are the emitted change points. It works with any detector and jitter method and needs no new algorithm, at about 0.1 s per bin with BCP on the paper dataset. Events carryjitter_methodandjitter_metric.docs/ONLINE_MODE.mdcompares the two back ends (table produced bytools/compare_online_backends.py, the 4-bin-cadence row pinned intests/test_paper_regression.py);jitterbug.streaming.create_online_analyzerpicks the back end, andtwo_period_verdictis the decision rule both share. -
Runtime comparison across releases (
docs/PERFORMANCE.md) and the script that produces it (tools/benchmark_versions.py). On the paper dataset with BCP + KS, 2.3.0 takes 2.8 s against 16.6 s for 1.0.0 (the gain comes frombayesian-changepoint1.2); with ruptures + KS, 2.1 and later are 1.5× faster than 2.0 thanks to the CSV loader (the same holds with jitter dispersion). Raw measurements inexamples/network_analysis/benchmarks/. The runtime table indocs/ALGORITHM_USAGE.mdnow shows measured numbers. docs/PERFORMANCE.mdcredits the Bayesian change point library work behind the BCP numbers (hildensia/bayesian_changepoint_detection #50, #76, #96, #100, #103, #106), with Jitterbug's BCP + KS runtime and results for each library version it used. The README links the library's upstream repository and documentation instead of the fork.docs/PERFORMANCE.mdcorrection: Jitterbug 2.0 with BCP 1.0 did not "take more than an hour" because of the library alone. On the CPU it takes 118 s (34 periods); the hour was on Apple's MPS, which BCP 1.0 picked by default.tools/benchmark_versions.py run --hide-mpsmeasures the CPU case.
2.3.0 - 2026-09-24¶
Added¶
- Zstandard (
.zst) input and output. A path ending in.zstis decompressed on read (jitterbug analyze rtts.csv.zst; the extension before.zstpicks the format) and compressed on write (--output results.json.zst,results.csv.zst, and the same inResultExporterandJitterbugAnalyzer.save_results). Newzstdextra (zstandard, only needed before Python 3.14, which hascompression.zstd), included inall..parquet.zstis rejected, since Parquet is already compressed. Seedocs/INPUT_FORMATS.md.
Changed¶
- Text inputs and outputs (CSV, scamper JSON, JSON and CSV results) are read and written as UTF-8 instead of the platform's default encoding.
2.2.0 - 2026-09-24¶
Added¶
- Non-sequential (clustering) analysis mode:
analysis_mode: clustering/jitterbug analyze --mode clustering. Minimum-RTT intervals are clustered by (minimum RTT, jitter IQR) with a Gaussian mixture (components chosen by BIC), k-means, or k-means with the silhouette-best k (clustering.algorithm,--clustering-algorithm); every cluster is compared with the lowest-latency one by latency jump and a KS test on raw jitter, wherever its intervals fall in time; a temporal smoothing (clustering.min_period_intervals, default 2) merges the per-interval verdicts into periods. Output is the usualCongestionInferenceResult, with aclusteringsummary in the metadata. On the PAM 2022 dataset the GMM recovers 15 of the 15 reference congestion periods; its 2 extra periods are at the two ends of the data, where the minimum RTT is elevated but the sequential reference cannot give a verdict (sequential BCP + KS: 14/15, 0 extra). Newclusteringextra (scikit-learn), included inall; guide indocs/CLUSTERING_MODE.md. The sequential mode stays the default and is unchanged. - Clustering mode:
clustering.min_ks_statistic(default 0.1) requires the KS statistic, not only the p-value, to show a jitter change. Clusters pool thousands of samples, so the p-value is significant for negligible differences (p < 1e-49 for every cluster of the PAM 2022 dataset, including one at the baseline's latency, whose statistic is 0.088; the congested clusters are at 0.21–0.32).clustering.latency_threshold(default:latency_jump.threshold) sets a latency threshold for this mode alone. Results on the PAM 2022 dataset are unchanged. - Documentation site built with MkDocs (Material theme): the guides in
docs/, an API reference generated from the docstrings, and the README, changelog, contributing guide and citation included from the root files. CI builds it with--strictand validatesCITATION.cffon every PR;.github/workflows/pages.ymlpublishes it to GitHub Pages frommain. Newdocsdependency group. - The documentation is online at https://estcarisimo.github.io/jitterbug/: README badge,
the
Documentationproject URL (shown on PyPI from the next release) and the repository website point to it.
Changed¶
- American English is now a documented convention (
AGENTS.md,CONTRIBUTING.md, the review brief). Existing British spellings in docs, comments, the changelog and one test name (test_unrecognizable_content_is_an_error) were corrected; no public function, method, option or message changed. - README: the extras table lists
jupyter.
2.1.1 - 2026-09-23¶
Added¶
.github/workflows/publish.yml: publishing a GitHub release uploads the tag's sdist and wheel to PyPI with Trusted Publishing (OpenID Connect, no stored token), after checking that the version matches the tag and smoke-testing the wheel, then attaches both files to the release. A manual run uploads an existing tag to TestPyPI or PyPI.
Changed¶
- README links and the figure use absolute GitHub URLs, so they work on the PyPI project page.
- First release on PyPI:
pip install jitterbug-inference. README (with a PyPI badge),docs/INSTALLATION.md,AGENTS.mdinstall instructions updated accordingly. CODE_OF_CONDUCT.md: incidents are reported privately through GitHub (maintainer profile, the repository's private reporting form, GitHub's Report content); the document no longer lists an email address.
2.1.0 - 2026-09-23¶
Maintenance release: the project is back to a maintainable state, with CI, a
protected main, tests, and only the components that work. Jitterbug is now a
library plus a CLI with two change point detectors (ruptures and the paper's
Bayesian bcp, now installed from PyPI as bayesian-changepoint); the REST API,
Docker image, experimental detectors and plotly dashboards described in 2.0.0 are
gone (see Removed). Python 3.10 or newer is required. The distribution is renamed
jitterbug-inference; installation is from GitHub, there is no PyPI release yet.
Added¶
- CLI tests for
validate(metrics table,--verbose, contract violations, missing file),config --template(YAML/JSON to stdout and round trip through a file) and the error paths ofanalyze(bad input, unknown method), completing the CLI coverage item of the roadmap. docs/INPUT_FORMATS.md: the input contract (columns, units, ordering, what is dropped and why) for CSV, scamper JSON, DataFrames and InfluxDB, linked from the README.- Unit tests for
analysis/(latency jumps, jitter dispersion, KS test, the congestion state machine) andio/(CSV, DataFrame, scamper JSON, format inference, mocked InfluxDB, validation, the JSON/CSV/summary exporters) on small synthetic series. Coverage 23 % → 84 %; CI now fails below 75 %. tests/test_paper_regression.py: golden counts for both detectors on the PAM 2022 dataset (ruptures + jitter dispersion: 22 periods / 11 congested; BCP + KS test: 34 / 14) and overlap-based agreement with the paper's reference intervals (11/15 and 13/15 recovered, no spurious detections). A dedicated CI job runs the Bayesian half with thebcpextra; Linux resolves torch from the CPU wheel index.tests/test_cli.py::test_visualize_writes_the_standard_plots: first test of the visualization code path (headless,MPLBACKEND=Agg).bcp_deviceoption inchange_point_detection(defaultcpu). The Bayesian library picks a GPU when it sees one, and on Apple Silicon that made the paper's configuration take over half an hour; on CPU it takes about two minutes. The value is validated (cpu,cudaormps), and a test with a mocked backend checks that it reaches both the likelihood and the detection call.get_available_algorithms()now reports only the detectors whose packages are installed (importlib.util.find_spec), with tests.- Continuous integration on GitHub Actions: ruff lint and format checks, mypy
(blocking since #19),
pip-auditover the locked dependency set, tests on Python 3.10–3.13 (Ubuntu) and 3.12 (macOS) with a CLI smoke test on the bundled PAM 2022 dataset, and a build job that installs the wheel in a clean environment. (#4) tests/test_cli.py: first tests for the command-line interface, run through Typer'sCliRunner. (#5)- Extras
rbeastandadtkfor the corresponding change point back ends, which the code already supported but no extra declared.bayesianis kept as a deprecated alias ofbcp. (#5) - Pre-commit configuration (ruff plus file hygiene hooks), Dependabot for GitHub
Actions and Python dependencies, and a committed
uv.lock. (#4) - Community and policy files:
SECURITY.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md,AGENTS.md,CITATION.cff,CODEOWNERS, issue and pull request templates.
Changed¶
- The
bcpextra now installs the Bayesian library from PyPI asbayesian-changepoint>=1.2(the import namebayesian_changepoint_detectionis unchanged), replacing the unmaintained upstream release and the git dependency used during development.gitis no longer needed to install any extra, and a wheel of Jitterbug no longer carries a direct URL dependency. The new release fixes the offline segment likelihoods and the detection performance: on the PAM 2022 dataset the paper's configuration (--algorithm bcp --method ks_test) runs in about four seconds end to end (under one second of detection) instead of two minutes, and yields 28 periods / 14 congested (was 34 / 14), recovering 14 of the paper's 15 congested intervals (was 13) with no spurious detections. Golden values, the example plots and summaries, and the timing notes in the docs are updated. The detector no longer passestruncate=-40, deprecated in 1.2; the exact sum is as fast and matches the truncated one to 1e-12 on the paper dataset. - The distribution is now named
jitterbug-inference([project] name); the import package and thejitterbugcommand are unchanged.jitterbugon PyPI belongs to an unrelated project, so this is the name a future PyPI release will use.jitterbug.__version__reads the metadata of the new distribution name. -
docs/INSTALLATION.mdrewritten: install from a clone with uv or pip, or directly from GitHub withpip install "jitterbug-inference[...] @ git+..."; the extras table; notes on thebcpextra; verification commands; a troubleshooting table of symptoms that actually occur. It anddocs/ALGORITHM_USAGE.mdsaidpip install jitterbug[...], which installs the unrelated project. -
README:
jitterbug visualizeis back in Usage (it was left out while broken, #7) anddocs/VISUALIZATION_USAGE.mdis in the documentation table; coverage figure refreshed. - Build backend requirement raised to
uv_build>=0.12.14,<0.13(Dependabot). Building from source with an olderuvCLI still works: it fetches the backend from PyPI. examples/README.mdandexamples/network_analysis/README.mdrewritten to match the directory: setup withuv sync --extra ..., the script and the notebooks as the two entry points, the dataset described (dates, sizes, what the paper found and what Jitterbug recovers), and the reference CSV layout explained. The example scripts no longer patchsys.path;results/and the benchmark outputs are ignored by git.- Code review policy: PRs are reviewed by an independent, fresh-context session
following
.github/REVIEW.md(today a Claude Sonnet subagent) instead of GitHub Copilot; merge requiresAPPROVEon the final commit.AGENTS.md,CONTRIBUTING.mdand the PR template updated. - Input validation happens once, at the edge, in
DataLoader.load_from_dataframe(CSV and InfluxDB go through it too): rows with a missing epoch or RTT, a non-positive RTT, or an RTT aboveMAX_RTT_MS(10 s) are dropped with a warning and counted inmetadata["dropped_rows"]; unsorted rows are sorted (stable) with a warning instead of being rejected; a non-numeric cell is aValueErrornaming the column and value. Before, the first bad row surfaced as a Pydantic error from inside the loading loop. The loop itself is vectorized: the bundled dataset loads in 0.1 s instead of 1 s. -
The scamper JSON reader applies the same RTT bounds per response: a
pingresponse with an RTT of 0 (a timeout) or above 10 s no longer makes the whole file fail with a Pydantic error; it is dropped with a warning and counted inmetadata["dropped_responses"]. -
Dependency floors raised to releases that support Python 3.10 (
numpy>=1.24,pandas>=2.0,scipy>=1.10,pydantic>=2.5,pydantic-settings>=2.1,ruptures>=1.1.9,typer>=0.12,rich>=13);clickandrequestswere declared but never imported and are no longer dependencies. banditruns in the CI lint job (clean at the time of writing).- mypy passes with
disallow_untyped_defson the whole package and is now a blocking CI check. Pydantic models usemodel_config = ConfigDict(...)/SettingsConfigDictandmodel_dump()instead of the deprecatedclass Config/.dict(); the two remaining test warnings are from third-party libraries. - README rewritten in the project's canonical layout: features, quick start, usage,
configuration, architecture, development, example output, citation. The table of
contents, the duplicated installation sections and the
pip install jitterbuginstructions are gone; every command was run before being documented. The REST API, Docker andvisualizecommand are not documented until they work (#6, #7). - Python 3.10 or newer is required (was 3.8). (#4)
- All temporary ruff ignores are gone except
B008(Typer'sOption(...)defaults):pathlibeverywhere (Path.open,/,mkdir,iterdir),raise ... frominside everyexcept, collapsed nested conditions, no line over 100 characters.tools/scripts no longer patchsys.pathto a directory that does not exist. Behavior unchanged (CLI output on the bundled dataset is identical). pyproject.tomlis the single source of packaging metadata;setup.py,requirements.txt,requirements-new.txtandinstall_dev.share gone. The build backend isuv_build. Development tools live in thedevdependency group, souv syncinstalls them. (#5)jitterbug.__version__and the API's reported version are read from package metadata instead of hard-coded strings. (#5)- Code style is enforced by ruff (line length 100) instead of black, isort and flake8;
type annotations use the Python 3.10 syntax (
X | None,list[str]). (#4) - The Docker image installs from
pyproject.toml. (#5)
Fixed¶
- A file with an unknown extension whose content is not text raises the documented
ValueError("Cannot infer format ...")instead of leakingUnicodeDecodeError. load_from_influxdbcomputed epochs asastype(int) / 1e9, which assumes nanosecond timestamps; pandas 3 parses_timeat microsecond resolution, so every epoch was 1000× too small. The conversion is now resolution-independent. Found by running the mocked InfluxDB tests in CI, where theinfluxextra is absent (a stub module now stands in for it).verbose: truein a configuration file had no effect from the CLI: the command installs a logging handler before reading the file, and the analyzer's secondbasicConfigwas a no-op. The analyzer now sets thejitterbuglogger level.- The two analysis notebooks in
examples/run again: they importedrequests(no longer a dependency), read fields that do not exist on the result models (start_time,confidence_score,jitter_ratio,ks_statistic), and their "REST API" sections exercised the server removed in this release. Executed end to end withnbconvertbefore committing. - Change point timestamps are timezone-aware UTC, like the measurements they come from.
They used to be naive local time, so
start_timestamp/end_timestampin results files and the CLI table depended on the machine's timezone (the epochs were always right). The CLI table columns are now labeledStart (UTC)/End (UTC). DataLoader.validate_data()returns plain Python numbers and booleans (it used to return numpy scalars, whichjson.dumpsrejects); CSV datasets recordsource: csvand the file path in their metadata;.jsonlis recognized as scamper JSON.jitterbug analyzeandjitterbug visualizeno longer overwrite thealgorithm,method,thresholdandoutput_formatvalues of a--configfile with the CLI's own defaults; a flag now overrides the file only when it is given explicitly. A wrong--algorithmvalue is rejected with Pydantic's message instead of failing later.jitterbug visualizeworks again: it now writes the five matplotlib figures throughJitterbugPlotter.save_all_plotsand prints the summary. It used to abort with'CongestionInference' object has no attribute 'timestamp'(#7). The--static-only/--interactive-onlyflags are gone;--prefixis new. When the analysis yields no inferences the confidence heatmap is an empty placeholder instead of animshowerror, so the command still writes its five files.- Time axes in every plot use matplotlib's automatic date locator and concise formatter instead of one labeled tick per hour, which produced an unreadable axis on multi-day series.
- The Bayesian detector no longer swallows exceptions and returns "no change points";
a failure is raised as
RuntimeErrorwith the cause attached. JitterbugAnalyzer.analyze()returns the samemetadatakeys (total_measurements,min_intervals,change_points) on its early-return paths as on the full path. (#3)- Test suite: eight assertions that had drifted from the code, and five tests that failed during the last fifteen minutes of every hour. (#3)
Removed¶
examples/basic_analysis.py(synthetic two-hour series on which nothing is detected) andexamples/output_formats_demo.py(600 lines, crashed on a PyYAML argument, still used Pydantic v1.dict()).examples/network_analysis/basic_analysis.pyis the script example.- The
influxfile format:--format influxand.flux/.influxfiles were routed to a placeholder that raisedNotImplementedError. Loading from an InfluxDB server throughDataLoader.load_from_influxdb()is unchanged. Format inference now fails with a clear message instead of guessinginfluxfor anything it does not recognize. - Dead code in
analysis/:LatencyJumpAnalyzer.analyze_detailed,CongestionInferenceAnalyzer._apply_inference_logicand_post_process_inferencesimplemented alternative rules that nothing called. - The plotly dashboard and interactive modules (
visualization/dashboard.py,visualization/interactive.py), theplotlydependency,examples/visualization_demo.pyand the generatedinteractive_bcp_ks/timeline.html. They had no tests, the dashboard crashed on every real result (#7), and the demo called a method that does not exist.docs/VERSION_COMPARISON.md, a 1.x-versus-2.x page that described all of the removed components as features, is gone too. - The experimental
torch,rbeastandadtkdetectors and their extras. None of them was evaluated in the paper;torchwas a heuristic rather than a trained model, andrbeast/adtksilently fell back to an internal statistical method when their package was missing while still labeling the output with the back end's name. The detectors are nowruptures(default) andbcp.algorithms.pyshrinks from 1 215 to 318 lines;examples/interactive_algorithm_selector.pyand the stale plots for the removed detectors are gone, andexamples/network_analysis/plots/was regenerated (BCP 14/15, ruptures 11/15, unchanged). - The REST API server and the Docker image.
jitterbug.api, theapiextra, theDockerfile,docker-compose.yml, the entrypoint script,docs/DOCKER.mdand the two related examples are gone. The server had not been able to start since the 2.0 rewrite (create_app()raised on import and/analyzecalled a method that did not exist, #6), had no tests, and the Docker image's only entrypoint was that server. Jitterbug is a library and a CLI; wrap it in your own service if you need HTTP. - The DockerHub push, PyPI publish and Codecov upload jobs from CI; none of them had working credentials. (#4)
- The
print-based smoke scriptstest_algorithms.pyandexamples/test_new_implementation.py, replaced by real tests. (#5)
2.0.0 - 2025-07-19¶
Complete rewrite of the PAM 2022 framework: Pydantic models, five change point detection back ends (ruptures, BCP, PyTorch, Rbeast, ADTK), CSV/JSON/InfluxDB input, Typer CLI, optional REST API and visualization modules. See the pull request.
1.0.0 - 2024-03-18¶
Original implementation accompanying the paper Jitterbug: A new framework for jitter-based congestion inference (PAM 2022).