Skip to main content
Version: Next

November 27, 2026 (docs: rotating headline outcome)

docs: the green end of the landing page headline cycles through outcomes ("continuous improvement.", "higher OEE.", "stable processes.", "less downtime.", "lower energy use.", "process mining.") with a short slide and fade. The headline keeps the height of the longest outcome, so the page does not jump; screen readers get the first outcome only, and with reduced motion turned on the words swap without the slide.

November 24, 2026 (release pipeline fix)

ci: releases tag through the GitHub Releases API instead of git push (a pushed tag on a commit that changes workflow files is refused for the workflow token; that broke 0.0.95's tag), and the next version also counts the versions already on PyPI, so a published but untagged version is never uploaded again.

November 24, 2026 (docs: landing page eyebrow and headline)

docs: the line above the landing page headline reads "Timeseries · Manufacturing · Continuous Improvement" instead of "Python · pandas · open source", and the headline reads "Turn machine signals into continuous improvement."

November 24, 2026 (Python 3.13 to 3.15)

python: ts-shape now needs Python 3.13 or later and is tested on 3.13, 3.14 and 3.15; Python 3.11 and 3.12 are dropped (their SPEC 0 support window has ended; pip keeps installing the last release that supports them). The dependency floors move to the first releases with Python 3.13 wheels: numpy 2.1, scipy 1.14.1, pandas 2.2.3; extras pyarrow 18.0, scikit-learn 1.5.2, PyYAML 6.0.2, psycopg2-binary 2.9.10. ci: the test matrix is Python 3.13, 3.14 and 3.15; lint, docs, the minimum-dependency run and the package build run on 3.13. internal: deprecation markers use warnings.deprecated (Python 3.13) instead of typing_extensions; text files are read and written as UTF-8 explicitly; black, ruff and mypy target Python 3.13.

November 24, 2026 (docs: green, version dropdown)

docs: the landing page leads with five real-world examples instead of a big logo, one per domain, each set in an everyday plant situation with plant tag names, units, shift times and dates: why film extrusion line 2 stopped over two days (stops attributed to the alarm that rises before them, with no alarm mapping; OEE per day), which dryer temperature loops need retuning (loops found and diagnosed from raw PLC tags, step responses), extruder melt temperature drift caught by SPC run rules against last week's in-control shift, energy per part of an injection moulding machine per half hour from its kWh meter and shot counter, and what drives a dryer temperature (Granger causality against look-alike tags). The data comes from ts-shape's plant simulators; each chart is ts-shape output (scripts/landing_examples.py runs the code shown under the chart), interactive (hover), with a data table and a light and a dark palette. docs: the site's main colour is green (green-700 in light mode, readable on white; green-400 in dark mode); the logo's chart line, the social card and the favicons of the site follow. API kind badges: classes green, properties and attributes teal. docs: the version dropdown is always in the top bar (a pill next to the GitHub icon): released versions newest first, Next, the changelog and all GitHub releases; in pull-request and local builds it shows Next. The light/dark switch stays (system, light, dark).

November 24, 2026 (deprecation policy and report)

docs: deprecation policy (naming.md): deprecated names are removed only in 1.0, after at least 3 months and one minor release of warnings, with a release candidate (FutureWarning, no twin columns) at least 4 weeks before. Nothing is removed now. docs: "Deprecated names" page, generated from the code on every docs build (scripts/deprecation_report.py): 628 entries today (aliases, renamed keywords, keyword-only arguments, attributes, twin columns, moved modules and names). keyword_only records its parameters for it. fix: dir(ts_shape) and tab completion no longer show importlib, logging, version, NullHandler, PackageNotFoundError and TYPE_CHECKING.

November 24, 2026 (profilers: one pack; check_signals)

refactor: the machine profilers are one pack, ts_shape.events.profiling (cycles, stops, changeovers, handshakes, orders, curves, settings, control_loops; runner = profile_cycles + CLI, units = profile_units, result, _base). They were in the package root (cycle_profile, unit_profiles, _profile_result), events.production and events.engineering. Old module paths and the old pack attributes forward with a DeprecationWarning (utils.deprecation.moved_module / moved_attribute); top-level imports are unchanged; event-log output is unchanged. CLI: python -m ts_shape.events.profiling. refactor: ts_shape.profile() -> ts_shape.check_signals(), ProfileReport -> SignalReport, module ts_shape.profiling -> ts_shape.signals.report (also exported from ts_shape.signals). The old names are deprecated aliases; summary() starts with "ts-shape signal check:". docs: Module reference > Profiling (old URLs redirect); the guide is "Signal semantics and data checks".

November 24, 2026 (docs: Docusaurus)

docs: the site is built with Docusaurus (website/) instead of MkDocs Material, which is in maintenance mode and does not work with MkDocs 2. Pages stay plain Markdown in docs/ with the same URLs; the navigation is website/sidebars.ts; search is local (no external service). docs: scripts/gen_ref_pages.py renders the API reference from the docstrings with griffe2md (Google style, members in source order, init merged into the class); every object keeps its #ts_shape.module.Object anchor and cross-references link across pages. It also writes changelog.md and license.md. All are git-ignored. ci: the docs job and the Pages build run the generator, then npm ci && npm run build (broken links and anchors fail the build); the Pages artifact is website/build. Renovate updates website/package.json. docs: site style -- brand orange from the logo (darker in light mode for readable links), a light-mode logo, a landing page (the former doc home is /overview/), self-hosted Inter / JetBrains Mono, matched One Light / One Dark code themes, lighter tables, hideable auto-collapsing sidebar, last-updated dates. docs: API reference pages -- kind badges (class / method / classmethod / property ...) with a link to the source lines, signatures marked as such, Parameters / Returns / Raises labels, inline types as code links, doctest examples fenced as code (they rendered as quotes), and undocumented members left out as before. Body text is 15px. docs: Mermaid diagrams (data model, event log, pipeline, OEE loss tree) and KaTeX formulas (SPC sigma/EWMA/CUSUM, Cp/Cpk/Pp/Ppk/Cpm, Hotelling T2 limits, MTBF/MTTR/Weibull, OEE, Little's law, GUM, setpoint decay); overview pages with detector cards per module category; pages tagged by standard (ISO 22400, ISO 50001, AIAG, Nelson, GUM, OCEL, XES, ...) with /tags/; llms.txt and llms-full.txt; a redirect for the one old MkDocs URL that no longer exists (/reference/SUMMARY/). Builds use Rspack/SWC (about 85 s -> 32 s). docs: 32 topic tags (oee, downtime, drift, traceability, process-control, predictive-maintenance, ...) next to the standards; every module and guide page has at least one, so each page links on average 10 related pages through its tags (was 1). /tags/ is "Topics and standards". docs: versioned docs. On every release the docs job snapshots the newest release of each minor line from its git tag (.github/scripts/ docs_versions.py): newest at the root, older lines at /X.Y/, unreleased main at /next/, with a version dropdown. Nothing is committed; versions start with the first release that ships the script. The docs job now runs after the release tag is pushed. build: the docs extra is griffe2md + black; mkdocs, mkdocs-material, mkdocs-gen-files, mkdocs-literate-nav and mkdocstrings are dropped.

November 24, 2026 (unit profilers: modular)

refactor: one profiler base (_ProfilerBase / _UnitProfiler) with shared records, verdicts, caching and a one-pass SignalIndex; restart points, cycle assignment, robust scale and counter roles are shared helpers. Every table and summary stays identical on the simulated machines. feat: profilers declare PROFILE_KIND / PROFILE_TABLES / PROFILE_OPTIONS / PROFILE_ORDER / NEEDS_CYCLES; profile_units.PROFILERS is built from the classes (run_profiler runs one); the invariants harness covers every profiler, the control loops included. feat: the profilers' event-log rules and archetypes are declared once in eventlog/profiler_rules.py (evaluation_window rule shared). feat: profile_units saves handshake_records (it was left out). fix: signature_evidence row order no longer changes between runs. fix: counter roles -- the good + bad = total identity is searched before aliases (with little scrap the good count equals the total in most cycles and was taken for an alias, so no bad counter was ever found); two rarely moving counters are no longer aliases; the lag belongs to the counter it was found on and is applied in the right direction (a bad count reported late lands on its cycle); settings use the aligned count. fix: OrderProfileEvents raises on duplicate order_ids in the plan. fix: changeovers end within the new variant's block, start-ups end at the next stop or changeover (no overlap, no double-counted lost time); a recording without any restart no longer crashes the start-up profiler; last_signal names a signal that never settled; a signal read less than once per cycle is left out with a DataQualityWarning. fix: stop and changeover evidence uses baseline windows of the same length as the units, outside every stop / changeover (a long window collected any steady event); held states are tested on the first 120 s of a stop; each signature reports the evidence of the test that made it one; potential_rank ranks by potential as documented. fix: handshake waits are resolved when the resolution is below half the wait (the rule was twice too strict). fix: curve signatures -- no crash on a signal that starts mid-recording, the shift-tolerant residual no longer wraps around (spike recall up), milestones computed once per variant, clustering bounded to 500 cycles per signal, patterns ranked by lost time. fix: setting impact -- the cycle the change falls in belongs to neither side; "other setting" looks at the compared cycles; recipe parameters are listed, not tested (left out of the BH correction); a held setting needs a 10-cycle median hold (the extra 50-cycle rule is gone). fix: control loops -- setpoints and process values are told apart on their own readings (hold time), so on-change logging works (0 of 15 simulated plants before, 15 of 15 now); the grid follows the most often read signal; any unused signal can be the output; a setpoint's first reading is not a step. fix: cycle profile -- the anchor coverage gate is a quarter (was half) of the best candidate: with many stops and changeovers the part counter lost to a changeover signal; the variant is chosen by the adjusted eta squared and, within 90 % of the best, the fewest values (a fixture id changing with every block no longer wins over the article). perf: signal_inventory, curve_profiles and the report helpers group the frame once instead of filtering it per signal. All nine unit profilers on a 3.1 M-row, 240-signal export (cycle profile reused): 218 s before this round, 12 s now (scrap 101 s -> 5 s, start-ups 44 s -> 1 s, settings 43 s -> 1 s). test: shared profiler tests (empty frame, tz-aware vs naive, coarse polling, registry, save/load contents, a failing profiler), one regression test per fix and a scale test (-m scale, ~2 M rows).

November 23, 2026 (unit profilers: handshakes, curves, settings)

feat: HandshakeProfileEvents -- request/answer pairs learned from edges (four- / two-phase), fixed timers vs waits on the partner, a wait register with potential and cycle-time share. feat: CurveSignatureEvents -- golden curves per variant and analog signal, time-warped between the standard cycle's milestones; per-cycle deviation score, phase and direction; in-run anomalies clustered per signal into fault patterns, warm-up runs after a restart kept apart. feat: SettingImpactEvents -- held settings found mapping-free; before/after tests of every change on cycle time, segments, scrap and energy within the running variant, confounders and confidence; a Theil-Sen register. feat: profile_units runs "handshakes", "curves" and "settings". feat: ControlLoopProfileEvents -- control loops found without names (setpoint = stepping signal, process value = the follower, output = the signal reacting at once), step metrics, IAE and saturation, diagnosis oscillating / sluggish / ok and a health rank; profile_units "loops". feat: make_control_loops -- PI loops on first-order plants with dead time (good / oscillating / sluggish tuning) and look-alike distractors.

November 23, 2026 (unit profilers: orders and scrap)

feat: order_profiling.counter_roles -- total / good / bad counters from the per-cycle identity good + bad = total (lag up to 3 cycles), aliases, energy-like counters; counts at a cycle boundary belong to the ending cycle. feat: OrderProfileEvents -- the order signal found with identify_objects (an identifier held over many cycles, else the variant); per order run and stop time, speed vs the variant's best, good / scrap counts and attainment against an optional plan; order_register per variant. feat: ScrapProfileEvents -- NOK cycles from the learned bad counter and a scrap Pareto of their context (stop, after stop / changeover, long / short cycle, analog deviation, curve-shape anomaly, rare events) by enrichment against good cycles. feat: profile_units runs "orders" (with plan=) and "scrap".

November 23, 2026 (unit profilers: run losses)

Mapping-free profilers built like the cycle profiler, on its cycles. feat: StopProfileEvents -- stops (pause cycles, micro-stops = long cycles; on a line without a cycle the off-periods of a discovered run signal), their causes learned by enrichment of the events before each stop (first-out signature, held state, or unexplained; analog consequences and stop markers excluded), data holes as unknown time; stop_records, stop_signatures (lost time, MTTR, MTBF, potential), signature_evidence, evaluation_window, summary. feat: ChangeoverProfileEvents -- variant changes split into changeover and ramp-up, the learned standard step sequence (changing ids folded into one step), segment register with potential, external_possible hint, from -> to matrix. feat: StartupProfileEvents -- restarts after pauses and changeovers, lost time, running bands of every analog signal and which one is last back in its band. feat: ts_shape.unit_profiles.profile_units runs the cycle profile once and every unit profiler on it; results in ProfileResult / UnitProfilesResult (save / load, one folder per profiler). CycleProfileResult is now a ProfileResult; cycle_profile.cycle_tables builds the cycle tables from a prepared frame and profile. feat: CycleProfileEvents read-only accessors for the unit profilers: units, events_frame, signal_specs, variant_limits, cycle_anchor, variant_signal, resolution_seconds, evaluation_reason. feat: make_plc_cycles options stop_causes / stop_probability, changeover_steps, rampup_cycles (mould temperature), handshake_partner, order_size / scrap_probability, setting_changes, energy and curve_faults (default data unchanged), with truth columns; new make_line_stops.

November 19, 2026 (field test: review follow-ups)

fix: ScrapEvents.scrap_cost matches float part numbers (1001.0) to cost keys (1001) again. fix: ToleranceDeviationEvents raises for swapped limits only when most measurements see upper < lower; limits that step at different times warn. fix: run_mask reads text "0"/"1"/"true"/"false"/"on"/"off" as bools. fix: DutyCycleEvents: the data_end hold is known time, not unknown. fix: OEEEvents.oee: a running day without counter rows has 0 parts and 0 % performance (not NaN). fix: FailurePredictionEvents.remaining_useful_life accepts degradation_rate=0 again (direction from the data). fix: compact_frame keeps the uuid and value_* columns and leaves non-numeric value_integer text as it is. fix: identify_objects label vetoes never apply to a label that names an id ("Part number", "RFID Tag ID", "Werkstück-Nr"); fewer veto words. fix: personal-data patterns treat _ - . and digits as word boundaries (User_ID, Username) and no longer match AnalogInput, Benutzeroberfläche, "User defined" or "Bediener-Taste"; the number of excluded signals is reported. fix: a counter that resets once a shift is not typed as a running timer. fix: CycleTimeEvents does not warn about missed pulses for a trigger logged on change; state_mask warns only for a text state compared with a numeric signal, and a set of states on a boolean run signal works like a single state. fix: profile() bounds asset holes by sampled signals only; metadata extra fields no longer rename config columns, flags accept on/enabled/aktiv; read_workbook skips empty leading rows and reads date cells; zip exports skip _MACOSX members and are opened once per call; the blank-id check runs once per signal; highlight_issues checks only the thresholds given; recipe phases compare as text; custom value_column columns keep their role.

November 19, 2026 (field test: metadata, profiling, loading)

feat: MetadataJsonLoader.from_workbook (an .xlsx datapoint list, read with the standard library -- loader.metadata.workbook.read_workbook) and from_flat_frame (config.* columns nested back into config; other top-level fields such as is_enabled kept); delivering() (enabled and not archived), units(), scaling(). Records keep their extra top-level fields. feat: apply_scaling(dataframe, metadata) -- opt-in raw x factor + offset for numeric datapoints; a scaling on text / bool datapoints warns and is not applied (the library never scales on its own). feat: UnitConverter understands plant spellings (min1, 1/min, rpm, Kw, KWh, kVA, grdC ...) and register_unit_alias(). feat: profile(metadata=..., exclude=...) adds a label column and leaves out personal-data signals by label; identify_objects(labels=...) vetoes an identifier whose label names a time / clock value, a quantity or a measurement (LABEL_VETOES); values stay the evidence. fix: counter typing rejects a running timer (rises at a clock rate -- seconds, ms, ... -- and resets), so tiCycle-like timers are continuous. fix: personal-data exclusion (utils.personal.PERSONAL_DATA_PATTERNS) is case-insensitive and covers German and English labels (Bedienpersonal, Mitarbeiter, Werker, operator, login ...); prepare_signals keeps two datapoints that share a label apart ("label [uuid]") instead of merging them. fix: profile(): "possibly stuck" needs at least 10 minutes and reports the duration in s / min / h; a hole in which no signal logged anything is one "data hole" issue (uuid "(asset)") instead of a logging-gaps warning per signal; a polling period most sampled signals share is reported as a "shared polling clock" note. feat: ParquetLoader reads a .zip export in place; stream_by_time_range(..., chunk, signal_uuids, compact) yields slices for run_chunked; new compact_frame() (uuid as category, nullable dtypes, empty columns dropped); an end before the start raises. fix: cycle profile: _summary no longer raises "Encountered all NA values" on a variant without a variance contribution (one cycle, identical totals); time_resolution_seconds falls back to the polling grid of change-encoded rows instead of 0; a view whose resolution is at least a quarter of the median cycle is not evaluable (reason "anchor_below_resolution").

November 19, 2026 (field test: configuration checks)

Wrong configurations fail loudly or warn with a reason. feat: utils.validate -- check_keys (did-you-mean), check_order, check_levels_ordered, check_choice, check_known_names, check_positive, check_non_negative, suggest. fix: ValueError instead of a silently computed result for: an unknown recipe criterion key or min > max (RecipePhaseAdherenceEvents); an unknown distribution or source key (MeasurementUncertaintyEvents. type_b_uncertainty; "gaussian", "uniform", "arcsine" are accepted spellings); unknown shift names (TargetEvents.compare_to_target, ShiftReportEvents.shift_targets); an empty cost table (ScrapEvents. scrap_cost); swapped limits (ToleranceDeviationEvents, CapabilityTrending Events, SignalQualityEvents.detect_out_of_range); a direction other than above/below or empty levels (ThresholdMonitoringEvents.multi_level_ threshold); degradation_rate 0 and equal warning / critical thresholds (FailurePredictionEvents); negative min_rise / min_fall (WarmUpCoolDown Events), negative hours (ReliabilityEvents.reliability_at, which now also takes a scalar); a period that ends before it starts (PeriodSummaryEvents. compare_periods, ParquetLoader); a negative emission factor or a scope other than 1/2 (CarbonIntensityEvents); fewer than two calibration points (CalibrationValidationEvents.calibration_curve); a malformed line_config (ContinuousProcessAlignmentEvents, now documented in init); an unknown threshold metric (ShiftHandoverEvents.highlight_issues). fix: DataQualityWarning for: recipe phases that never occur; parts without a cost (costed at 0); emission-factor uuids not in the data; an identifier signal (part, order, batch, recipe ...) holding only empty text. feat: CarbonIntensityEvents signal_kind ("interval" default, "meter", "power", "auto"): a power reading is integrated over time (not held across a logging outage) and a cumulative meter read as increments. The default still sums the readings, and warns when a source looks like a meter or a power reading (sampled at most once a minute or logged on change), naming the signal_kind to pass. fix: StatisticalProcessControlEvents warns when the moving-range sigma is below 0.1 x the reference standard deviation (held values) and when more than 25 % of the points lie beyond 3 sigma. fix: DesignSpaceEvents.fit_hull raises a ValueError naming the constant parameters instead of scipy's QhullError; detect_excursions / boundary_proximity fit the default box (with a warning) instead of depending on call order. fix: EnvironmentalCompensationEvents: a constant environment window is left out of sensitivity() with a warning; compensated_signal() raises a clear ValueError; detect_correlation skips constant windows. env_uuid is a required keyword argument. fix: SignalSpecs.override raises KeyError for a uuid without a spec (pass add=True to add one). MetadataJsonLoader.get_by_label raises for a duplicate label; new get_all_by_label and duplicate_labels. fix: run_chunked with source and target swapped raises a short TypeError (no frame repr); Pipeline suggests the closest method name. feat: LambdaDetector.to_event_log labels an unregistered rule from its own RuleSpec without changing the global taxonomy. feat: CrossSignalAnalytics accepts long-format frames. docs: the energy normalize() methods say they read raw time/value exports.

November 19, 2026 (field test: core KPIs)

Findings of the 0.0.88 field test on five plant exports. fix: a value column left at its default (value_column, value_column_) whose signal has no values there while exactly one other value_* column holds them is replaced by that column before the call, with a DataQualityWarning naming the argument to pass (all detectors; a specs= SignalSpecs is followed first). A counter in value_double is now counted instead of returning 0 / an empty frame. Columns passed by the caller are never replaced. Behaviour change: results that used to be empty are now computed. feat: utils.coerce.run_mask / run_bool -- one run-signal convention: run_states={...} (values that mean running, ints match floats) or value_range=(low, high); a signal that is not a bool or 0/1 warns without a mapping. New run_states / value_range on OEEEvents (availability, performance, oee), RuntimeAccountingEvents, MicroStopEvents, DutyCycleEvents, BottleneckDetectionEvents, LongDowntimeEvents (run_states), IdleEnergyDetectionEvents and EnergyEfficiencyEvents.idle_energy_waste; MachineStateEvents uses the same helper and now also warns for a mode number with more than the levels 0/1. Idle-energy methods no longer raise "Need to pass bool-like values" on a mode or text state. feat: DowntimeEvents / ShiftHandoverEvents running_value / stopped_value accept a set of values (e.g. {2}); a text value that never occurs in a signal with values warns. fix: PartProductionEvents (all methods) and QualityEvents.quality_by_part with a numeric part number (part and counter in the same column) no longer raise KeyError; part_number is text ("4711", not 4711.0) via the new utils.normalize.id_text. fix: CycleTimeEvents counts a 0/1 pulse in any column on its rising edges (no longer on both edges), and warns when a polled trigger sees most pulses in a single sample (pulses shorter than the polling interval are missed and cycles merge). feat: OEEEvents.performance / oee parts_per_cycle (ideal parts = run time / ideal cycle time x parts per cycle); the above-100 % warning names it. ideal_cycle_time and parts_per_cycle must be > 0. fix: OEEEvents: a day without parts has quality_pct NaN (undefined), a day without run time performance_pct NaN, zero planned time availability_pct NaN -- not 0 %. oee() no longer fills missing components with 0; oee_pct is NaN when a component is undefined and 0 when availability is 0. oee() gains value_column (quality counters), value_column_counter and value_column_state, forwarded to the components. fix: DutyCycleEvents.duty_cycle_by_window (time-weighted) splits each interval at the window boundaries (on + off time never exceed the window) and gains max_gap ("auto": the signal's inferred max_gap) and an unknown_seconds column: time inside a gap or after a missing value is neither on nor off.

November 18, 2026 (profile quality)

feat: cycle anchor support needs phase locking (mean resultant length >= 0.7, count 0.8-1.5x); candidates ranked by coverage_ratio first; polled anchors use the poll period as sigma floor. feat: contribution_register bootstrap intervals (potential_ci_seconds, variance_contribution_ci_factor); detect_cycle_influencers p_value, q_value (Benjamini-Hochberg), is_significant; analog features over a comparable window (variant P10 from the cycle start). feat: CycleProfileEvents(analog_levels=k | "auto") -- learned analog levels. feat: cycle_profile -- recurring_events, sequence_variants, cycle_sequences, process_graph, parts_per_cycle, parallel_lanes, curve_bands/scores/flagged, cycle_time_check tables; summary["confidence"]; case_log (XES columns); benchmark_profiles over BENCHMARK_SCENARIOS. feat: make_plc_cycles options parts_per_cycle, reported_cycle_time, alt_sequence_probability, shape_fault_probability, parallel_lane, poll_period (defaults unchanged).

November 18, 2026

Mapping-free cycle time profiling. feat: CycleProfileEvents (events.production.cycle_profiling) -- profiles the raw signals of one PLC without a role mapping: signals become events by their inferred kind, the cycle anchor is discovered (support ranking; a heartbeat never wins), variants found by eta squared, cycles classified robustly per variant (pause / long / short / normal), standard view, segments that add up to the cycle, contribution register (potential = median - P10, spread, skew, bimodality, variance contribution summing to 1), influencers (Mann-Whitney AUC), one record per cycle at one timestamp. Methods: signal_events, cycle_anchor_candidates, evaluation_window, standard_view, segment_durations, contribution_register, cycle_time_statistics, detect_cycle_influencers, cycle_records, detect_unusual_cycles. See docs/modules/production/cycle-profiling.md. feat: ts_shape.cycle_profile -- profile_cycles(timeseries, metadata) on the raw frame of AzureBlobParquetLoader and a metadata loader's table (labels only, Worker signals dropped); CycleProfileResult.save/load; CLI python -m ts_shape.cycle_profile; tables["cycle_events"] places every event in its cycle with offset_seconds / phase_ratio (event heatmaps); Streamlit dashboard in examples/cycle_profiling/dashboard.py. feat: make_plc_cycles -- synthetic PLC (step chain, handshakes, counter, article, pressure, heartbeat) with ground truth of long, short and pause cycles. feat: CycleTimeEvents.cycle_time_statistics adds p10_seconds, p90_seconds, mad_seconds; CycleTimeEvents.detect_unusual_cycles (robust two-sided bounds on the log cycle time). feat: CycleProfileEvents(time_resolution=...) -- polled signals: standard-view events within one sample period form a milestone (standard_view.milestone, evaluation_window.time_resolution_seconds); is_bimodal needs a spread of more than two resolution steps; anchor ties on the CV (2 decimals) go to the event with more occurrences. Found on the Desma 356 pilot (13 s poll). change: CycleTimeEvents.cycle_time_trend -- the stable band is relative, stable_band_ratio=0.01 of the part median (was a fixed +-0.5 s), so a 5 s and a 300 s cycle are judged alike.

October 26, 2026 (round 25)

Change flags, cycles, usage links. feat: eventlog.objects: ObjectSpec.delta_column (default "is_delta") -- on a signal with both True and False flags (hold + repeat), a flagged same-value reading is a re-setup and starts a new presence; change-only (all True) and unflagged signals unchanged. feat: eventlog.objects: ObjectSpec.cycle_uuid / cycle_value_column -- presences bounded by the machine cycle the scan falls in. feat: eventlog.objects: uses={child: {parent: qualifier}} on detect_objects, derive_o2o, relate, attach_objects -- made_from / made_with / made_by links to every overlapping parent presence; where_used/where_from follow them. feat: identify_objects reads is_delta (exact change instants, same-value re-setups, constant id-like setups become identifiers); new columns cycle_uuid and uses, ObjectReport.uses(); to_event_log passes uses(). docs: object signal variant matrix (continuous, discrete, batch, plastics). See docs/migration.md.

October 26, 2026 (round 24)

identify_objects: materials that change once a day. change: a parent with 1-3 changes in the child's span nests a batch or lot when every change meets a child change and the product of their chances times the pairs tried (Tarone-Bonferroni) is <= 1 %, with strong containment; also through the batch's work order; a finer co-changing material replaces a recipe. Ids changed by the clock (shift boundary or midnight) nest nothing. change: types: tops_unique_chain, holds_batches, long_number facts; a batch holds no batches. Held-out type accuracy 0.891 -> 0.898, nesting 0.95/0.95 -> 0.98/0.95; once-a-day materials 0.83/0.68 -> 0.93/0.93. feat: opt-in generator options material_changes_per_day and continuous_process (_object_signals.generate); default data unchanged. See docs/migration.md.

October 24, 2026 (round 23)

identify_objects nesting for coarsely polled materials; traceability leftovers. change: nesting tests each change on the window its sampling leaves open (keep-alive reads are exact, a polled material's change may lie up to one period before it is seen); a parent holding the child in the strong sense needs 5 % by chance; a serial's batch that nests in a material beats a package or lot. Held-out nesting 0.93/0.93 -> 0.95/0.95, never-seen 0.96/0.89 -> 0.99/0.94, materials polled every 30 min 0.54/0.50 -> 0.82/0.82. feat: opt-in generator option material_poll (_object_signals.generate); default data unchanged. fix: integral numeric item ids render without ".0" (Routing item_id / to_intervals oid, MultiProcess handover_log item_id, serial objects in every traceability event log). feat: handovers take from_id_uuid (the cell of a station shared by parallel cells); without it a DataQualityWarning names the station. fix: a handover from a station not in processes warns (once per call). feat: MultiProcess build_timeline / lead_time / parallel_activity / handover_log get source_uuid (last column); handover events link the handover signal as asset. Event ids unchanged (LabelRule.eid_omit). See docs/migration.md.

October 24, 2026 (round 22)

identify_objects: business partners, nesting recall. fix: a pool that changes only with an order (held or stamped, no production structure) is its business partner -- customer of a sales order, supplier of a purchase order -- not a recipe or material. feat: more business-partner prefixes (CU-, KND, KUNDE, DEB; SUPP, SUPPL, VDR, V-, LIEF, KRED). change: nesting finds a batch's mistyped material (tool-like, never revisited), prefers the material over a 1:1 recipe, reads serial-typed batches as batches and nests serials whose batch is polled coarsely. Held-out nesting 0.83/0.77 -> 0.93/0.93. See docs/migration.md.

October 23, 2026 (round 21)

Traceability audit. feat: MultiProcess lead_time / parallel_activity / handover_log convert to event logs (start/end/duration_seconds, systime added; serial + stations). feat: exclude= (misreads, values, callable) on the traceability classes; default unchanged. fix: lead_time ends at the latest visit end (parallel visits). fix: routing samples without item or step value end the visit (no "" item, no "State nan"). fix: handover_log takes the item before the trigger; a missing reading holds. fix: no crash on missing timestamps; ties keep input order; MultiProcess warns about missing signals; timeline log attributes carry the station. See docs/migration.md.

October 23, 2026 (round 20, part N)

New: object analytics. feat: ObjectReport.to_event_log / hierarchy(); to_object_specs(namespace=, attributes=); attribute_of column. feat: presence_events (enter/leave traces per object); object_kpis, wip_over_time, carrier_loops, attach_counts. feat: genealogy: where_used, where_from, lineage; EventLog.filter_by_object_type, filter_by_time; ObjectNotFoundError. feat: traceability classes link serial/station objects in event logs (ids unchanged); to_intervals(); interval_end= option. change: the object lifecycle no longer merges touching presences at different stations. See docs/migration.md.

October 23, 2026 (round 20)

Correct object handling. change: interval events link to every object they overlap; scope= keeps links within a line or station; a warning names unscoped fan-out. change: PLC misreads (NOREAD, #N/A, 0, 65535, ...) are no longer objects and no longer split presences (ObjectSpec.exclude, default "misreads"). change: default o2o is the declared hierarchy only (co_occurs is opt-in); hierarchy= takes signal-level edges with several parents. fix: identify_objects no longer crashes on ids like T3-0000123; nesting rebuilt (production parent plus new packing_parent_uuid). feat: MachineStateEvents(run_states=...) for text states, with a warning when text states have no mapping. perf: detect_objects groups the frame by uuid once. See docs/migration.md.

October 22, 2026 (round 19 follow-up)

feat: identify_objects reports the setup group (recipe, tool or fixture) when the data cannot separate them, instead of a low-confidence guess.

October 22, 2026 (round 19)

New: find and classify object-identifier signals. fix: compatibility with pandas 3.1 feat: identify_objects(dataframe) screens every uuid for values that identify physical objects (serial, batch, lot, material, recipe, orders, tools, fixtures, carriers, RFID tags, machines, stations, locations, operators, customers/suppliers, handling units) from the values and their behaviour only; ObjectReport.to_object_specs() feeds detect_objects. feat: make_object_signals() generates a labelled benchmark frame. See docs/guides/object-identification.md.

October 21, 2026 (round 18)

Databricks open-range fix; memory at 10M-100M rows. fix: DatabricksUnityParquetLoader open ranges floor to the folder granularity of hour_pattern (a mid-day start no longer skips its day). perf: detectors that read only their own signals keep only those rows (about 40 % less memory over the input and about half the time at 10M rows); results and warnings unchanged. perf: to_event_log builds ids and activities in chunks: 100M-row inputs peak at about 7.4 GB, 1.5-2x faster; ids and tables byte-identical. See docs/migration.md.

October 21, 2026 (round 17, part J)

Second audit: loaders, transforms, features, performance loss. fix: performance loss splits cycles at window/shift edges (no run time above the window, no false slow periods). fix: PowerIntegrator calendar windows (W/MS/ME) use true bounds (no negative kWh); total coverage counts missing meters. change: DataHarmonizer no longer extends a signal past its first/last sample; feat: sampling="first"|"interpolate". fix: TimeWindowedFeatureTable right-labeled bounds and empty windows; partial cycles at data start; Granger Bonferroni (p_value_adjusted); not_match filters keep NA; exact integer sum/range. fix: loaders: naive bounds are UTC everywhere; S3 proxy hours and trim; no duplicates without {H}; ParquetLoader and energy loaders trim rows; float value_double; epoch units inferred; metadata loader robustness. See docs/migration.md.

October 21, 2026 (round 17, part I)

Second audit: event log, pipeline, context, signals. fix: event ids include caller-bound objects (logs with objects= get new ids); XES start before complete; concat keeps type/qualifier variants; per-detector severity thresholds (isolation forest, IQR); severity text ignores case; NaT-timestamp rows dropped with a warning; empty XES frame. fix: ValueMapper reads mapping keys as text ("007" != "7"). fix: pipeline class/static steps keep their detector id and check kwargs; steps get private copies; run_stream matches run step by step. feat: init__/method__ kwarg prefixes in Pipeline.detect. fix: signal inference: one gap no longer hides gaps, slow counters are counters; windows("W"/"ME") start at start; intervals() stop at the last sample past max_gap; uuid_column= on the primitives. See docs/migration.md.

October 21, 2026 (round 16)

DST-day windows; more chunkable methods. fix: on tz-aware data, daily windows on a DST change are measured over their real length (23 h / 25 h): time shares, percentages, rates, ends, durations and window membership in threshold, micro-stop, duty-cycle, inventory, flow, disturbance, bottleneck, asset-health, sensor-drift, multi-sensor, material balance, line balancing, performance loss and control-loop methods. Other windows are unchanged bit for bit. feat: stream.CONDITIONAL (chunkable with an explicit argument: detect_gaps, coverage_by_period, detect_flatline, changeover_window); calendar chunks "W" / "MS" for weekly / monthly summaries; micro_stop_frequency chunkable. fix: chunked results across slice borders for detect_changeover with min_duration, changeover_window and micro_stop_impact; interpolation_candidates is no longer chunkable. See docs/migration.md.

October 21, 2026 (round 15)

Chunked processing for data larger than memory. feat: run_chunked / iter_chunked run a detector slice by slice (one day by default) with the same result as the in-memory call; time_range_source loads one slice per call; Pipeline.run_stream runs a pipeline the same way. feat: NotChunkableError for methods that need the whole signal; ts_shape.stream.SUPPORT lists the chunkable methods. No change to existing behavior. See docs/guides/chunked-processing.md.

October 18, 2026 (round 14)

Audit leftovers. change: demand_by_period counts periods without orders as zero demand (empty_periods="drop" for the former view); spikes and seasonality follow. fix: lead times pair orders and deliveries one-to-one per identifier; edge windows in coverage_by_period; aliasing ignores timestamps of missing values; half-open degradation and health baselines; a zero is not an extra oscillation crossing; signals= mappings get the signal warnings. feat: abs-rate twins in rate_statistics; power column in calibration_curve; interval_count and micro_stop_count twins. See docs/migration.md.

October 18, 2026 (round 13)

Audit fixes: engineering, quality and maintenance results; robustness. fix: control-loop error integrals and output saturation, threshold time above, steady-state statistics, warm-up overshoot, rate-of-change and slope startup intervals, startup stability are time-weighted / bounded correctly. fix: tolerance lag, flatline runs, anomaly windows, sub-millisecond sampling, data gaps (> min_gap, median-based default), calendar windows in calibration and environmental checks, asset-health recovery direction, integer powers. change: one severity table for severity_level and the event log. fix: missing machine states are unknown time; duty cycle honours data_end; naive data_end on tz-aware frames; missing value columns raise; no inf variance ratios; object-dtype numbers in feature tools. feat: DataQualityWarning when a signal's values are in another value column. change: operating-state intervals end at the next change; micro-stop patterns use shift_1..3 and keep a night shift together; cycle_quality_check tolerance and deviation in percent. change: names follow docs/naming.md: min_duration, n_sigma, value_column_, dataframe_, signal_uuid; *_seconds, _count, *_factor and lower-case capability columns (old names kept, deprecated). docs: constructor Args for 54 classes; roadmap, loaders, settling time, event-log attributes corrected. See docs/migration.md.

October 17, 2026 (round 12)

Oscillations with a deadband, EnPI baseline without idle windows, windowed descriptive features. change: SetpointChangeEvents oscillation_count / oscillation_freq_hz count crossings of a deadband around the setpoint; control_quality_metrics uses the settle band (tol / settle_pct) by default, deadband=0 restores the former count. fix: the EnPI regression baseline leaves windows without output out of the fit and warns (DataQualityWarning); window_offset(Timedelta) is a fixed duration on pandas 2.2 as on pandas 3. feat: DescriptiveFeatures.compute_windowed: one row per time window with the features of every signal; empty windows are NaN (counts 0). See docs/migration.md.

October 16, 2026 (round 11)

Typed API, docs that run, coverage gate 93. feat: top-level imports are typed; deprecated names are visible to type checkers; transforms, features, ValueMapper, PipelineResult and the warnings/errors are top-level exports; loaders have redacting reprs. perf: scipy and scikit-learn are imported lazily; list_detectors does not import modules. fix: PostgreSQL loaders name the psycopg2 driver (SQLAlchemy 2.1), escape the password and take db_port / db_driver; discover_motifs applies an exclusion zone between motifs; startup by slope with repeated index labels; empty multi-signal startup results keep their columns; DatapointDB with an empty device. docs: every python block on the docs pages runs as a test; new module pages and guides (context, ML features, maintenance, energy); runnable class examples. See docs/migration.md. chore: coverage floor 82 -> 93.

October 15, 2026 (round 10)

Fast at 10 and 100 million rows; results unchanged. perf: detector construction copies, sorts and converts only what it must (no full-column text conversion, sort skipped on sorted input); 100M-row frames no longer run out of memory. perf: per-run and per-row Python loops in 19 detector modules replaced by numpy (utils.runs); O(n log w) rolling moments; setpoint KPIs share one window gather; STOMP matrix profile; vectorized DTW with LB_Keogh pruning; faster profile, to_event_log (same event ids), tolerance deviation and apply_ranges. change: ChangePointEvents defaults to method="auto" (PELT up to 20,000 samples, binary segmentation above). fix: setpoint KPIs no longer fail on duplicate index labels. chore: benchmarks/run.py and a scaling check in CI (pytest -m scale). See docs/migration.md.

October 15, 2026 (round 9)

KPIs match their textbook definitions. fix: durations and counter increments are split at shift, hour and day boundaries (downtime, availability trend, shift handover, runtime, micro stops, OEE, per-shift quality); OEE across midnight is correct; days without state data are NaN; performance above 100 % warns instead of being clipped. fix: PerformanceLoss counts parts; time_to_settle is the last band entry; overshoot/undershoot are percent (ratio twins added); period roll-ups recompute from summed bases; EnPI/SEC rolling baselines are ratios of sums; stockout prediction is refill-aware. fix: SPC individuals limits, rules and CUSUM use MR-bar/1.128 (sigma_method="std" keeps the old sigma); real moving-range and EWMA charts; Cp/Cpk within sigma, Pp/Ppk overall and per-window sigma. feat: utils.time_accounting; micro-stop performance_loss_pct; reference tests for KPIs in tests/reference. See docs/migration.md.

October 15, 2026 (round 8)

Legacy code and tooling removed. change: requires pandas>=2.2.2 and numpy>=2.0; a CI job tests these floors and results match pandas 3 (calendar-day windows on DST days, DST flooring, mixed UTC offsets, clustering). fix: deprecation warnings point at the caller and are no longer hidden; apply_ranges / segment_by_cut compare times in one unit; numeric columns named like times are no longer converted to datetimes; hour folders are UTC in every loader. change: logged data problems are DataQualityWarnings; text in numeric columns is reported; recipe duration_s, downtime_minutes input and old attribute names warn; loader time ranges are start / end (old start_timestamp / start_time keywords warn). See docs/migration.md. fix: CUSUM counts a repeated sample once. chore: setup.py, MANIFEST.in, requirements files, dead scripts and dead code removed; duplicated helpers merged; one source of tool versions; CI runs once per PR commit; per-job release permissions; examples linted; a ts-shape deprecation fails the test suite.

October 14, 2026 (round 7)

Robust and consistent behavior for every public function. fix: wrong results: CrossSignalAnalytics.lead_lag named the wrong leader; PatternRecognition dropped the timezone, ignored row order and mixed signals; event ids collided across machines so concat dropped events; ValueMapper/ContextEnricher dropped columns and codes; build_paths missed the last hour; boolean and string change filters missed edges; fill_gaps(max_gap) measured gaps wrongly; lead_times could be negative; reliability and stockout returned inf. fix: crashes on empty, single-row, all-NaN, text-time, nullable and pyarrow input across transforms, features, signals, profile, pipeline, event log and detectors; a missing column raises ColumnNotFoundError everywhere. change: canonical parameter names (value_column, time_column, uuid_column, window) outside the detectors; old names deprecated. No data gives NaN or None, unknown mapping codes are kept. See docs/migration.md. feat: max_gap on detect_flatline, threshold_with_hysteresis and on_off_intervals; contract tests for every public function; the invariant harness checks determinism, input mutation, row order, output sanity, all-NaN, single-row and duplicate timestamps.

October 14, 2026 (round 6)

Maturity of the existing functions: same numbers for any data source, fast on real data sizes, proven against references, traceable outputs. fix: results no longer depend on how the data was loaded. Nullable, pyarrow and text-number columns are converted once (utils.normalize): 52 methods gave different numbers (counter totals counted the first reading as production, downtime per shift was 0) and 172 crashed. Rows with the same timestamp are ordered by uuid. perf: shift reports, maintenance trend fits, routing, warmup and stockout methods are vectorized: 10-300x faster on 200k rows (nok_by_shift 59 s -> 1.3 s, remaining_useful_life 55 s -> 0.2 s). fix: DST fall-back nights no longer crash window flooring (floor_local); duplicate timestamps no longer give infinite rates; single-row and constant inputs, all-null/boolean string columns, and window <= 0 in oscillation detection are handled. fix: capability trending uses the spec in force in each window; energy methods with weekly/month-end windows report the real window (and energy_per_unit / carbon_intensity_per_unit no longer return empty or raise); downtime and shift handover read boolean run signals (was 100% downtime); flow_constraint_analytics applies its thresholds; from_shift_data matches string dates; detect_outlier_sensor needs three sensors to name an outlier. fix: group counter totals add up to the signal total (counter_by_group): every shift/day/operator/part/batch boundary lost one increment, and alternating operators or parts were double counted (609 parts reported on a 360-part counter). FlowConstraintEvents intervals end at the next change. change: KPIs carry their basis (run/planned/excluded seconds, parts, resets); every duration has a *_seconds column; seven summary methods return a DataFrame (as_frame=False deprecated). See docs/migration.md. test: reference tests for SPC rules 1-8, Cp/Cpk (Montgomery), GUM, Weibull (Lieblein-Zelen) and energy values; property tests; harness dtypes check; examples/ and docstring examples run in the test suite. types: strict mypy flags for the whole library, no exemptions. fix: cycles, period cutters and object detection verified against hand-built scenarios. Cycles: correct pairing for back-to-back and nested markers, deterministic cycle_uuid, one half-open boundary rule. Segments: the last period keeps its data, boundary samples are cut once, segment_by_cut is no longer one piece off. Objects: empty readings end a presence, change-encoded ids last to the data end, hand-over events link once, pm4py export round-trips. All three are 10-100x faster. feat: severity_level (info/warn/critical) next to every categorical severity, so detectors can be filtered together; detector labels stay. fix: lag_profile windows without speed data are NaN (was the lag at min_speed); CriticalParameterRankingEvents needs no long-format frame; TimeWindowedFeatureTable takes window (freq deprecated). docs: the site is cut from 139 to 106 pages (14k to 6k lines) and rewritten in plain language; every example runs.

October 14, 2026 (round 5)

Correct by default. Results change wherever data has counter resets, change-encoded signals, uneven sampling or several signals per frame; the old behavior stays one argument away. Full list: docs/migration.md ("Correct by default"). change: correct defaults: handle_resets=True, interval_end="next_change", time_weighted=True, group_by_uuid=True, slope_per="second", missing_as_zero=False, handle_refills=True, SPC include_severity=True, regex=False for substring filters, trim_to_range=True in loaders, best_and_worst_shifts returns a DataFrame, batch_transition_matrix returns a long from/to/count table (layout="wide" for the matrix). change: full precision: detectors no longer round results. fix: machine_running_pct is 0-100 (was a 0-1 ratio; see machine_running_ratio). fix: nothing is skipped silently: loaders take errors="warn"|"raise" and name unreadable objects; non-numeric values, malformed specs, failed fits and untestable windows warn with DataQualityWarning; a missing value column raises ColumnNotFoundError naming it. fix: flatline detection ignores single samples of regularly sampled signals. change: deprecated (removed in a future major release): OrderTraceabilityEvents, a single tolerance_uuid (upper/lower limits now work one-sided), station_map, adapt(legacy=), integer window in correlation, as_frame=False. Every deprecation message says "removed in the next major release". feat: OutlierDetectionEvents(signal_uuids=...); parquet extra; [all] installs every optional feature. build: setuptools-scm reads its config (builds were versioned 0.0.0); releases publish after the full CI suite, choose their version with a Release-Bump / Release-As commit trailer, and are tagged only after the upload succeeded; CI builds and checks the package; Python 3.14 is fully supported; Development Status: Beta. types: the mypy quarantine is empty; every module is type-checked. policy: every merge publishes the next patch version; renamed names keep working with a warning and are removed only in a major release.

October 14, 2026 (round 4)

fix: SPC rules follow Nelson (1984) / Western Electric: rule 8 = 8 in a row with none within 1 sigma (was within), rule 3 = 6 points, rule 4 = 14 points, rules 5/6 count outer zones per side, rule 2 uses the center line; rules no longer mutate the input; vectorized == per-rule results. fix: detectors do what their signatures and docs promise (28 items across production, quality, engineering, energy, development, loaders, features): ignored parameters now work or warn (slope_window, max_cycle_gap on every CycleTimeEvents method, idle_threshold per shift, interval_end on long-downtime gap counting and recipe phases, value_column in process alignment, ...); silently overridden ones warn (settle_pct vs tol, state_map vs station_map); tolerance deviations keep values and single samples; takt adherence uses strict > and ignores counter resets; golden batch phases compare like with like; hour-folder loaders include the end hour; NaN instead of None/0.0 for undefined ratios. Opt-in: time- weighted time_in_range, slope per second in drift detection, trim_to_range in loaders, regex=False for substring matching. Every result change is listed in docs/migration.md. docs: every public parameter is documented (guard test). change: consistent input checks for every detector (Base.init_subclass + utils.signal_checks): a signal uuid that is not in a non-empty frame emits DataQualityWarning naming the available uuids (one per call, not per internal sub-call); a missing time or uuid column raises ColumnNotFoundError (a ValueError) instead of a bare KeyError. change: parameters follow docs/naming.md: time_column (was column_name), window (freq/period/resample), window_size (integer row counts), n_sigma, lower_limit/upper_limit, warning/critical_threshold, include_initial, only_*, signal_uuids, run_state_uuid, value_column_ in energy. Old keywords work with a DeprecationWarning. Optional arguments are keyword-only (positional use warns). event_uuid defaults are ":" and unique (outlier_event -> quality:outlier, ...). tests/test_naming.py lints every detector signature. fix: rising-edge detection on an object column of Python bools (~True is -2, truthy) counted every True sample as a cycle end in CycleTimeEvents.cycle_time_by_part and LineThroughputEvents.takt_adherence / cycle_quality_check. change: one name per concept (docs/naming.md). Detector classes end in Events (DowntimeTracking -> DowntimeEvents, OEECalculator -> OEEEvents, 16 classes); event classes drop calculate_/compute_/process_ verbs (14 methods, e.g. calculate_oee -> oee, find_gaps -> detect_gaps) and use _statistics / _by_window suffixes. Old names are deprecated aliases that warn and are removed only in a future major release; the event log resolves them (taxonomy.resolve). See docs/migration.md. fix: every detector output now carries the canonical columns of its shape (intervals start/end/duration_seconds/uuid/source_uuid, summaries start/end/duration_seconds, points systime/uuid/source_uuid): 276 of 277 harness-callable methods conform, up from 78. Columns were only added, never removed or renamed. The taxonomy declares the shape each method really returns (69 corrected). Empty results keep the full column set; six methods that returned frames without columns now return the schema. The invariant harness checks shape and empty_schema for every method. fix: weekly / month-end windows ('W', 'ME', ...) reported the bin's last day as start; windows now span their real [start, end). fix: night shifts are one (date, shift) row: production_day=True is the default (False keeps calendar-date grouping, which split a night across two rows that each mixed two nights); downtime_by_shift, performance_by_shift and setup_durations gained the option. fix: CapabilityTrendingEvents.capability_forecast subtracted the window index twice, understating windows_to_threshold for later windows. add: ShiftReporting.best_and_worst_shifts(as_frame=True); the dict default emits a FutureWarning. add: ReliabilityEvents (events/maintenance/reliability.py) -- reliability KPIs from a failure-state signal (fault bit or status codes), built on signals.primitives.intervals so states hold until the next change and logging gaps (max_gap) are no data: failure_events (interval), mtbf_mttr (MTBF, ISO 22400 MTBF, MTTR, availability, failure rate; overall or per DST-correct calendar window), weibull_fit (censored MLE: beta, eta, MTTF, B10, failure pattern) and reliability_at (conditional reliability and hazard). test: ISO 22400 OEE reference example (A x P x Q = 59.375 %).

October 14, 2026

add: ChangePointEvents (events/quality/change_point.py) -- offline change-point detection: exact PELT (Killick et al. 2012) and binary segmentation in plain numpy, Gaussian mean or mean+variance costs, BIC penalty; detect_change_points (point) and segment_statistics (interval). add: MultivariateSPCEvents (events/quality/multivariate_spc.py) -- Hotelling T² with Phase I (beta) and Phase II (F) limits on a reference period, per-variable contributions, and out-of-control runs with the top contributor. Signals aligned backward with an optional max_gap. fix: Gauge R&R follows the AIAG average-and-range method: AV subtracts the repeatability share EV^2/(nr) (a negative radicand gives AV = 0), and AV and PV use K2/K3 = 1/d2 (g = 1) instead of the large-sample d2. Before, AV and PV were overstated (2 appraisers: by 25 %), and so were GRR and %GRR. Checked against the AIAG worksheet constants. add: EnergyPerformanceIndicatorEvents.enpi_vs_baseline(baseline="regression") -- ISO 50006 energy baseline energy = a + b*units fitted on a fixed baseline period (baseline_period= or the first baseline_window windows); adds expected_energy_kwh and energy_savings_kwh. Default unchanged. docs: every page now shows only names that exist (NumericFilter, OutlierDetection, MetadataLoader, S3ProxyParquetLoader, NumericCalc and wrong module paths replaced with the real API); tests/docs checks every ts_shape import and attribute in the docs' code blocks. CI builds the docs with mkdocs build --strict (38 warnings fixed). Python 3.14 classifier; README and the development guide describe the real CI/release pipeline. fix: eventlog static-shape event ids hashed the export time, so re-exporting the same detector output gave different ocel:eid values; they are now stable (ported from the open PR #60). add: ts_shape.eventlog.describe("Class.method"), has_override() and clear_overrides(); severity is coerced to the info/warn/critical vocabulary (low/minor -> info, medium/major/warning -> warn, high/alarm/error -> critical; anything else warns and becomes ). add: ts_shape.signals -- SignalSpec / SignalSpecs (dict/YAML round trip), infer_specs() with per-field reasons, and spec-driven primitives: intervals, increments, per_window, align, windows, shift_windows. add: ts_shape.profile(df) -- per-signal data-quality and semantics report (gaps, resets, duplicates, NaT, missing values, mixed value columns, change-encoded and possibly-stuck signals) with .summary() / .issues(). add: recovered unmerged work from earlier sessions: AssetHealthIndexEvents, ProductionScheduleAdherenceEvents, RootCauseCorrelationEvents (Aug 10 entry below), PowerIntegrator (Aug 20 entry below), and the four inline-metrology quality modules MeasurementUncertaintyEvents (GUM type A/B, combined/expanded uncertainty, budget), EnvironmentalCompensationEvents (correlation, sensitivity, compensation, exceedance), CalibrationValidationEvents (linearity, calibration curve, recalibration need, stability) and SamplingResolutionEvents (quantization, effective resolution, aliasing, jitter). All are registered in the taxonomy and covered by the invariant harness (260 methods). fix: PowerIntegrator daily windows on DST days (23 h / 25 h) and AssetHealthIndexEvents.maintenance_forecast timezone. build: lean core install (pandas, numpy, scipy); loader backends are the extras [s3], [azure], [api], [sql], [postgres], [yaml], [all]. add: specs= on MachineStateEvents and DowntimeTracking (defaults follow the signal's spec; explicit arguments win). add: registry-wide invariant harness (tests/invariants) pinned to a ratchet baseline, and hypothesis property tests for the primitives. fix: 36 frequency defaults such as window="5m" crashed resample on pandas 3 ('m' is no longer an offset); now "5min". CycleExtractor durations accept any pandas duration string. fix: OEECalculator daily summaries are tz-aware with real day lengths (23 h / 25 h on DST days); BottleneckDetectionEvents, warmup_consistency and demand spikes keep the timezone. fix: MachineStateEvents accepts an empty frame; ToleranceDeviationEvents groups events on the actual signal only (other uuids split or merged them).

October 13, 2026

Weekly screen of the non-production packs (see docs/gap_screening_other_packs.md). fix: CycleExtractor -- every process_* method returned cycle_end=NaT and is_complete=False; cycles now open on rising edges / step entries, never close at themselves, keep a tz-aware systime and ignore other uuids. fix: ToleranceDeviationEvents applied each measurement the next (future) tolerance; capability indices use the latest limits, a single tolerance is one-sided, and one measurement raises. fix: ControlLoopHealthEvents / DisturbanceRecoveryEvents align PV with the setpoint in force (backward as-of) instead of SP-left / nearest. fix: FailurePredictionEvents.remaining_useful_life no longer reports RUL 0 for a trend moving away from the threshold; NaN samples are skipped. fix: LeadTimeAnalysisEvents matches deliveries by order id when present. fix: EnergyEfficiencyEvents.efficiency_comparison summed raw counter readings. fix: tz-aware systime is preserved across quality/engineering/maintenance/ supplychain events (no more naive-UTC .values); DateTimeFilter accepts naive bounds on tz-aware columns. fix: MaterialBalanceEvents reported a zero-input window with output as balanced. fix: OutlierDetectionEvents -- zscore ignores NaN, MAD=0 falls back to mean absolute deviation, IsolationForest skips NaN. fix: SPC CUSUM with sigma 0/NaN returns no shifts (warning); steady-state windows with <2 samples are no longer "steady"; demand empty periods are not zero demand and calendar periods work in seasonality_summary. fix: setpoint oscillation crossings through an exact zero counted once; detect_startup_adaptive no longer flags a flat idle signal; track_startup_phases advances through non-overlapping phases. add: opt-in handle_resets (energy per-unit/EnPI/carbon/SEC, TimeGroupedStatistics 'diff'), handle_refills (inventory consumption_rate), interval_end="next_change" (threshold, signal quality, degradation, vibration, steady state, segments, low stock, correlation breakdown, time_above_threshold), time_weighted (material balance, idle energy), max_gap (error_integrals), missing_as_zero (material balance), group_by_uuid (outlier detection, boolean/string edge filters, TimeGroupedStatistics), inclusive (DateTimeFilter), ambiguous/nonexistent (TimezoneShift). Defaults unchanged. add: helpers utils.counters.counter_per_window, utils.intervals.interval_end_times, utils.time_weighted.time_weighted_resample. add: Base warns (DataQualityWarning) on NaT timestamps. fix: data_completeness / coverage_by_period use each window's real length (DST days are 23 h / 25 h); auto min_gap ignores duplicate timestamps. fix: lag_correlation / rolling_correlation lag and window in time on the regular grid instead of rows after dropna(). fix: detect_flatline starts a run at its first stuck sample; opt-in interval_end="next_change" for deadband historians. fix: GaugeRepeatabilityEvents.repeatability uses within operator x part ranges when operator_column is set. fix: overshoot_metrics undershoot is measured after the setpoint is reached. add: detect_warmup / detect_cooldown max_pause; detect_startup_adaptive baseline_window is now honoured (default None keeps the sample lookback).

August 20, 2026

add: PowerIntegrator (ts_shape.transform.calculator.power_integration) -- the missing kW -> kWh step. The events.energy detectors aggregate their input with sum(), i.e. they assume energy deltas in kWh; feeding an instantaneous active-power tag (e.g. *.Total_Active_Power-kW) in directly produced a number that scaled with the logging rate rather than with consumption, and a plain mean() was a sample-count average that over-weighted bursts. PowerIntegrator.energy_by_window integrates properly -- each sample weighted by how long it was valid, segments split at window boundaries (a hold from 00:55 to 01:05 books 5 minutes to each hour), locf or linear interpolation, max_gap to drop logging outages instead of billing phantom energy, power_unit for W/kW/MW tags, and per-signal integration before summing (energy adds across machines, power does not). Reports coverage per window and omits unmeasured windows rather than reporting them as 0 kWh. to_energy_deltas emits the result in the standard ts-shape schema so the energy pack can consume it; segment_energy exposes the per-sample audit trail. Exported at the top level as ts_shape.PowerIntegrator.

August 10, 2026

add: AssetHealthIndexEvents (events.maintenance.asset_health_index) -- fuses several degradation signals into one weighted 0-100 asset health index using the same drift/variance/trend penalty model as DegradationDetectionEvents.health_score. health_index reports the dominant failure mode and a confidence level (share of configured signal weight that had data); health_events emits warning/critical crossings; signal_contributions ranks the signals by the health they cost the asset; maintenance_forecast extrapolates to a critical threshold and withholds a date when the trend fit is weaker than min_confidence. Closes gap 3.1 of the manufacturing-operations research doc. add: ProductionScheduleAdherenceEvents (events.production.schedule_adherence) -- joins a planned schedule (start/end/planned_qty/order_id) against actual production from a monotonic counter. adherence_by_period reports adherence %, deviation units, an ahead/on_track/behind/critical_behind band, and the units/hour needed to recover in the time left in the period; deviation_events emits the breaches; adherence_summary rolls the horizon up weighted by planned quantity. Actuals are reset-aware by default (handle_resets=True). add: RootCauseCorrelationEvents (events.correlation.root_cause_correlation) -- directed, event-driven counterpart to AnomalyCorrelationEvents: takes another detector's events and ranks candidate signals by lagged correlation with the event onsets. Only non-negative lags are searched (a cause precedes its effect) and the winning lag's p-value is Bonferroni-corrected for the lag scan, so noise scanned over many lags is not promoted to a root cause. rank_causes / top_cause / lag_profile.

July 31, 2026

add: OEECalculator.calculate_oee now threads handle_resets to its performance and quality components and max_gap to its availability/performance components. Previously the top-level OEE could not benefit from reset handling, so a day with a counter reset silently dragged OEE toward zero; and availability booked a logging/overnight gap (last state = running) as run time. calculate_availability and calculate_performance gained a max_gap kwarg. Output schema unchanged. add: opt-in max_gap on RuntimeAccountingEvents.runtime_summary, runtime_per_window, and operating_hours_meter -- a gap to the next sample longer than max_gap is treated as a logging outage and excluded, so it no longer inflates run time, utilization, or the hour meter. fix: LineThroughputEvents.throughput_oee honored the documented availability_threshold parameter, which was previously accepted but ignored. A window now counts as available when its part count reaches availability_threshold x target_rate; the new default 0.0 reproduces the old "produced anything" behaviour. throughput_oee also gained handle_resets (threaded to count_parts). add: opt-in infer_dwell_from_next on the traceability timelines (OrderTraceabilityEvents.build_timeline / current_status / station_dwell_statistics, RoutingTraceabilityEvents.build_routing_timeline / station_statistics, MultiProcessTraceabilityEvents.build_timeline / station_statistics). A station that logs an identifier once on arrival otherwise reports a per-station dwell of 0; when set, each visit's end is the identifier's next station arrival (in multi_process, only for sequential visits -- parallel/overlapping visits keep their own span). Default unchanged. add: opt-in production_day extended to the remaining shift-grouping methods that share _assign_shift -- ScrapTracking.scrap_by_shift, ReworkTracking (rework_by_shift, rework_rate), QualityTracking (nok_by_shift, daily_quality_summary), OperatorPerformanceTracking.production_by_operator -- so an overnight shift is one contiguous (date, shift) group. Default (raw calendar date) unchanged. add: opt-in max_gap on DowntimeTracking.downtime_by_shift / availability_trend and max_cycle_gap on CycleTimeTracking.cycle_time_by_part and PerformanceLossTracking (performance_by_shift, slow_periods, performance_trend). A duration taken as next-time minus time otherwise bridges logging gaps and stoppages: a logger outage is booked as uptime, and a lunch break becomes one giant "cycle" that reads as a huge speed loss. Durations above the cap are excluded as "no data". Default (None) unchanged. add: opt-in time_weighted on BottleneckDetectionEvents.station_utilization (and detect_bottleneck / shifting_bottleneck / throughput_constraint_summary) and DutyCycleEvents.duty_cycle_per_window. resample().mean() averages sample counts, so on change-encoded/irregular signals a station up all hour but logged once reads 50-100% by row count; time_weighted weights each sample by the gap to the next sample. Default (sample mean) unchanged. fix: LineThroughputEvents.cycle_quality_check returned inf/NaN deviations when the expected cycle time was zero (explicit, or a degenerate zero median); it now returns the typed empty frame. add: ts_shape.utils.shifts (assign_shift, production_dates) -- shared shift assignment plus a "production day" that attributes an overnight shift's post-midnight readings to the shift's start date. Grouping a night shift (22:00->06:00) by raw calendar date splits it across two dates and, within a date, spans the whole day so last - first sweeps in other shifts' output (a night shift could report ~750% of target). add: opt-in production_day=True on TargetTracking.compare_to_target, ShiftReporting.shift_production, and ShiftHandover.generate_report so overnight shifts group as one contiguous interval. Default (calendar date) unchanged. add: opt-in require_all_stations=True on LineBalancingEvents.balance_metrics so a fully stopped station stays in the denominator (a dead station previously read as a perfectly balanced line); adds a stations_missing column. add: opt-in count_initial_active=False on AlarmManagementEvents.alarm_frequency to ignore an alarm already active at the start of the data window. add: ts_shape.utils.intervals.state_intervals -- shared helper that collapses a state signal into intervals and closes each one at the next transition when interval_end="next_change". The previous "end at the last sample carrying the state" logic collapses to zero duration on change-encoded (is_delta) signals -- one row per transition -- so downtime, micro-stop and duty-cycle analyses silently reported nothing on the library's normal data shape. add: opt-in interval_end="next_change" (with an optional data_end bound for the final open interval) on MachineStateEvents.detect_run_idle / state_quality_metrics and LongDowntimeEvents.detect_long_downtime, and as a constructor option on MicroStopEvents and DutyCycleEvents. Default ("last_sample") is unchanged. On change-encoded signals this recovers micro-stop lost time, multi-hour downtimes, and on/off durations that previously read as zero. (Traceability dwell shares the collapse but has distinct cross-station semantics and is a separate follow-up.) add: ts_shape.utils.counters (counter_quantity, counter_increments, count_resets) -- shared reset-aware handling for monotonic production counters that reset to zero at a shift/part change or PLC restart. A naive last - first loses all production in a window where a reset happened. add: opt-in handle_resets=True across the production pack so the reset-aware behaviour shipped in PartProductionTracking is available everywhere a quantity is derived from a counter: OEECalculator (calculate_performance, calculate_quality), LineThroughputEvents.count_parts, TargetTracking, ScrapTracking, ReworkTracking, QualityTracking, BatchTrackingEvents, OperatorPerformanceTracking, ContinuousProcessAlignment.segment_by_cut, ShiftReporting, ShiftHandover, and PeriodSummary. Default behaviour and column sets are unchanged; when enabled the result gains a resets column. For the by-reason / by-part methods this also corrects the over-count that last - first produces when categories alternate over a non-contiguous group. fix: DowntimeTracking.downtime_by_reason booked running time as downtime (it diffed timestamps after filtering to stopped rows, so a stop lasted until the next stop). Duration is now computed on the full state timeline before filtering, mirroring downtime_by_shift. fix: QualityTracking.daily_quality_summary returned NaN rates for a zero-total day (0/0); both rate divisions are now guarded to 0.0. fix: LineThroughputEvents.throughput_oee produced NaN/inf performance when the target rate was zero (flat counter or explicit 0); it now reports 0. fix: ShiftReporting.shift_targets produced inf achievement_pct for a zero target; now guarded to 0.0, matching ShiftHandover. add: ChangeoverEvents.detect_changeover gained include_initial (default True preserves the current behaviour of emitting the first reading; pass False to report only real value changes and drop the synthetic leading event). docs: docs/production_gap_screening.md -- a full functional-gap screen of the production pack, with the remaining themes (interval-duration on change-encoded signals, gap-spanning durations, time-weighted utilisation, overnight-shift attribution) lined out as scoped follow-ups.

June 2, 2026

changed: event-log output now trims entirely-empty extra columns. The 9 canonical core columns (ocel:eid, ocel:activity, ocel:timestamp, ts_shape:start_timestamp, ts_shape:duration_s, ts_shape:detector, ts_shape:pack, ts_shape:severity, ts_shape:value) are always emitted, so every event log keeps an identical append-friendly core schema; per-detector extras (: passthroughs, standard-attr extensions) are dropped when all-empty instead of shipped full of NaN. add: align_columns(logs) -- reindex multiple EventLogs' events tables to their shared column union (core first, extras sorted) so each frame exposes an identical column set before appending/stacking. concat(...) already unions columns on merge; this is for callers stacking frames themselves. changed: event-log exporters renamed for a consistent to_event_log family: to_flat_df -> to_event_log_xes, to_ocel_tables -> to_event_log_ocel. The old names remain as deprecated aliases (DeprecationWarning) for back-compat.

May 20, 2026

add: Pipeline -- the single declarative orchestrator for ts-shape. Chains transform and detector steps into one reusable definition: .transform() steps replace the working signal; .detect() steps store named event results. Supports $input/$prev sentinels for multi-DataFrame wiring, run_steps() for intermediates, describe() for previews, and PipelineResult.to_event_log() for combined OCEL export. BREAKING: removed FeaturePipeline (features.segment_analysis.feature_pipeline); Pipeline replaces it. Migration: FeaturePipeline(df)...run() becomes Pipeline()...run(df); .add_step(Cls.method, **kw) and .add_instance_step(Cls, call='method', **kw) both become .transform(Cls, 'method', **kw); .add_lambda_step(fn) becomes .transform(fn). $input/$prev sentinels and run_steps() are unchanged. add: UnitConverter -- engineering unit conversion (transform), a thin wrapper around the pint library. Optional extra: pip install ts-shape[units]. add: RuntimeAccountingEvents -- operating-hours accounting (total run time, start count, longest run, utilization, per-window runtime, hour-meter). add: LineBalancingEvents -- line balancing & takt analysis (station cycle times, balance efficiency/delay, smoothness index, theoretical minimum stations, Yamazumi station-loading table). add: FlowMetricsEvents -- flow analytics (time-weighted WIP, throughput, FIFO lead time, Little's Law consistency check, Process Cycle Efficiency). add: ts_shape.make_timeseries() -- public synthetic-data generator for trying detectors and transforms without real data or loaders. add: ts_shape.list_detectors() -- programmatic catalog of every top-level class, grouped by pack/category. add: Base.repr -- detector and instance classes now print a useful summary (row count + configured uuid/value_column). changed: OutlierDetectionEvents emits the canonical point shape (systime, uuid, source_uuid) via events/_output.py -- completes the May 14 output standardization. uuid carries the event id, source_uuid the source signal. changed: event detectors validate their configured UUID up front (Base._validate_uuid) -- a typo'd UUID now raises a clear error listing the available UUIDs instead of silently returning empty results. fix: DatapointAPI HTTP requests now send a timeout (default 30s) so an unresponsive server can no longer hang the loader. fix: TimescaleDBDataAccess uses bound SQL parameters instead of f-string interpolation. fix: CycleExtractor uses Base's sorted, defensive copy -- it no longer mutates the caller's DataFrame. fix: README quick-start and pack examples corrected to match real constructor signatures (SPC, ToleranceDeviationEvents, DataIntegratorHybrid, TimeGroupedStatistics).

May 14, 2026

BREAKING: event-detector outputs standardized across all packs (quality, production, engineering, maintenance, supplychain, energy, correlation). Every public DataFrame-returning method now emits one of three canonical shapes: point (systime), interval (start, end, duration_seconds), or summary (start, end, duration_seconds + aggregate columns).

Column renames applied uniformly: start_time, gap_start, window_start, period_start, disturbance_start -> start end_time, gap_end, window_end, period_end, disturbance_end -> end severity_score, severity_level -> severity OEECalculator: date -> start + end + duration_seconds (86400)

New helpers in src/ts_shape/events/_output.py (empty_event_df, finalize_point_df, finalize_interval_df, finalize_summary_df) define the canonical column constants and empty-frame schema.

ts_shape.eventlog.adapters.adapt no longer probes legacy column name variants -- it expects the canonical names. The taxonomy registry has been updated (severity_field="severity"). See docs/guides/eventlog.md for the simplified shape table.

Downstream code asserting old column names must be updated.

Sep 09, 2025

add: Azure blob storage container loader add: Metadata JSON loader added changed: development guide

Apr 06, 2025

add: quickstart guide added to docs

Dec 26, 2024

add: mkdocs material deployment with gh actions

Dec 25, 2024

add: pdoc docs exchanged with mkdocs material autodoc

Dec 23, 2024

add: library rename add: library structure change. loader, transform, feature, context, events

Dec 20, 2024

fix: closes #7

Nov 16, 2024

add: dev state docs for combine/integrator.py add: dev state for combine/integrator.py add: metadata loader improved

Nov 4, 2024

add: stats classes improved + feature table class added

Oct 29, 2024

add: timescaledb loader adjusted

Oct 28, 2024

add: loader classes adjusted add: classes for timestamp_converter added add: classes for s3, timescaledb, timezone_shift added

Oct 27, 2024

add: docs for time_stats added add: time_stats for numeric value columns added

Sep 11, 2024

add: methods refactored to execute without an instance

Sep 9, 2024

add: cycle methods refined and splitted to cycle processor and extractor

Sep 8, 2024

add: cycle method and metadata loader including tests for numeric filters add: additional methods added

Aug 25, 2024

fix: docs re-created fix: docs add: parquet loader, timestamp, string, numeric and boolean stats methods

May 4, 2024

change: typings added, first test added change: package folder moved init: pypi package structure for timeseries-shaper / internal project for my master thesis