Repository navigation
Releases
Lacuna v0.14.3
Lacuna v0.14.3
Lacuna v0.14.3 is a correctness patch from the website documentation pass over v0.14.2, which reran
every documented example against the published packages and reported where behavior and
documentation disagreed. It preserves every v0.13 and v0.14 public signature, the schema-v1 result
envelope, c14n-v1 identities, and deterministic RNG streams.
Two corrections change a reported value and carry a new method version. The rest fix inputs that
were documented as supported and failed, or that were accepted and misread.
Advisory: CSV time columns and quantile observation counts
Slash-separated CSV dates were read day-first. lacuna signal in v0.14.2 documented ISO 8601
time text but passed anything else to format inference. 02/01/2025 became 2 January, so a
month-first file was misdated without an error. v0.14.3 rejects text that is not ISO 8601. If you
ran lacuna signal in v0.14.2 on a CSV whose time column was not ISO text, rerun it after
converting the column.
The quantile observation count pooled horizons. v0.14.2 moved the headline spread and
monotonicity of signal.quantiles and signal.bucket_returns to one horizon but kept reporting
n_observations over every horizon. In method version 3 the count describes the headline horizon,
as signal.ic already did. Per-horizon tables are unchanged.
Results that change
| Method | Version | What changed |
|---|---|---|
signal.quantiles, signal.bucket_returns |
method 3 | n_observations counts headline-horizon rows only |
signal.quantiles |
method 3 | An empty headline horizon is reported as QUANTILE_HEADLINE_HORIZON_EMPTY, not under the BUCKET_ code |
bias.asof_join |
method 2 | No value changes from v0.14.2; the version its v0.14.2 changes owed |
bias.revision_diagnostics |
method 2 | String and categorical revisions are rejected; float and Duration revisions are accepted |
bias.asof_join results from v0.14.2 report method version 1 although the tolerance validation,
the revision rules, and the computed future_matches were already in effect. Version 2 identifies
that behavior from v0.14.3 on.
Fixes
- Duration in as-of joins.
bias.asof_joinworks onDurationtime and revision columns, as
documented. Every such call failed with a Polars cast error. Evidence records durations as
ISO 8601 text such asP1D. - Bare label frames.
ic,quantiles,bucket_returns, anddecayaccept
labels.frametogether with a non-defaultinstrument=; v0.14.2 fixed this forLabelResult
input only. missing="raise"with delisting returns.forward_returns(missing="raise")accepts the null
exit price on a row that carries a delisting return, so the two options can be combined.- Integer horizon policy.
lc.audit(policies={"inference_horizon": 5})reads the"5D"
horizon, asSignalStudy.auditdoes. It matched nothing, which made the horizon rulesUNKNOWN
and kept the zero-purge warning from firing.
Migration
Inputs that are now rejected:
lacuna signal: CSV time text that is notYYYY-MM-DDorYYYY-MM-DD,Tor a space, then
HH:MM[:SS[.fraction]]with an optionalZor numeric UTC offset.bias.revision_diagnostics: string or categoricalrevisioncolumns (cast to an integer or an
ordered Enum).
Results to read differently:
- Code that reads
n_observationsfromquantilesorbucket_returnswith multi-horizon labels
gets the headline horizon's count. The total over horizons is the sum of the per-horizon tables;
matched_rows_before_policystill covers every matched row. - Code that looks for
BUCKET_HEADLINE_HORIZON_EMPTYin aquantilesresult must look for
QUANTILE_HEADLINE_HORIZON_EMPTY.
Closed without a code change
fit_decayrecordsroot_entropyonly when resampling runs. A result that stops at a support
or direction gate draws no random numbers; the signal guide now says so.regime.analysisstays at method version 1: its v0.14.2 change added a recorded parameter and a
warning and changed no value.lacuna-optionsvalidate_chainaccepts an input column nameddelta_bucket; the collision
check is indelta_buckets, as the 0.2.2 changelog states.
lacuna-options
Unchanged at 0.2.2. It remains compatible with lacuna-quant>=0.13,<0.15.
Verification
Each fix has a regression test that fails on v0.14.2. Three benchmark output checksums change and
are recorded in the performance guide: signal.quantiles (the count correction), and
bias.asof_join.reference and workflow.standard_audit.strategy (the recorded bias.asof_join
method version). No audit finding state or score changes in the benchmark workflow.
Lacuna v0.14.2
Lacuna v0.14.2
Lacuna v0.14.2 is a correctness patch from a documentation-driven review of v0.14.1. It fixes
results that mixed different estimands, findings that passed on evidence that could not establish
safety, and inputs that failed with raw Polars errors or were silently ignored. It preserves every
v0.13 and v0.14 public signature, the schema-v1 result envelope, c14n-v1 identities, and
deterministic RNG streams.
Unlike v0.14.1, this patch increments analytical method versions, because several corrections
change numbers. Every changed result is identified by the method or rule version listed below.
Advisory: rerun multi-horizon studies and regenerate audits
Headline metrics pooled horizons. With multi-horizon labels, the top-level metrics of
signal.ic, signal.quantiles, and signal.bucket_returns in v0.14.1 and earlier averaged every
(period, horizon) row. Mean IC, the information ratio, the t-statistic, the mean top-minus-bottom
spread, and the monotonicity metrics therefore mixed different horizons, and the headline
monotonicity came from the first horizon in text order ("10D" before "5D"). In v0.14.2 a
headline describes exactly one horizon: the first in a LabelResult's declared order, recorded as
headline_horizon, which is the horizon SignalStudy.audit infers on by default. Per-horizon
tables and single-horizon results are unchanged.
QUANTILE_MONOTONICITY scored the wrong horizon. The audit rule read that headline metric, so
with horizons such as ("5D", "10D") it scored 10D while the audit inferred on 5D. Rule
version 2 reads the audit's inference_horizon. Audits from earlier versions record rule version 1
for this rule; regenerate them rather than reinterpreting stored results.
Membership turnover used a different bucket rule from quantile returns. quantiles and
bucketize have assigned balanced buckets by midpoint position since v0.10.0, while turnover kept
flooring the rank. When a period's size was not a multiple of the quantile count, a boundary
instrument sat in different buckets for returns and for turnover. signal.turnover (method
version 2) now uses the same rule. Rank turnover and signal autocorrelation are unchanged.
Results that change
| Method or rule | Version | What changed |
|---|---|---|
signal.ic.*, signal.quantiles, signal.bucket_returns |
method 2 | Headline metrics describe one horizon; horizon tables are ordered by length |
signal.turnover |
method 2 | Membership buckets use the balanced midpoint rule |
signal.decay |
method 2 | ic_decay column n_periods_right is renamed n_spread_periods; ordered by horizon length |
signal.neutralize |
method 2 | intercept=False keeps every level of the first categorical; the first level was left un-demeaned |
validation.sharpe_inference |
method 2 | Adds a deflated-Sharpe finding when a trial family is supplied |
cv.walk_forward |
method 2 | Calendar mode over Date times keeps the final fully covered window |
events.event_response |
method 2 | Carries the windows' warning, failure, and unknown findings |
regime.quantile_regimes |
method 2 | Source availability is reported separately from threshold fitting |
bias.survivorship_diagnostics, bias.universe_drift |
method 2 | UNKNOWN instead of PASS when no delisting or only one snapshot is observed |
QUANTILE_MONOTONICITY |
rule 2 | Scores the audit's inference horizon |
PURGED_VALIDATION_SUPPLIED |
rule 2 | Accepts CPCV evidence; warns on an unpurged split; records that split identity is unverified |
Fixes
- Renamed identifier column.
SignalStudy(instrument="ticker")no longer breaksic,
quantiles,bucket_returns,decay, andaudit. missing="raise".labels.forward_returns(missing="raise")rejected end-of-sample
censoring and so failed on every finite panel. It now rejects only null source prices and labels
whose entry and exit bars exist without a defined return.- CPCV in the audit.
SignalStudy.audit(split=...)accepts aCombinatorialSplitResult. - Selection-deflated Sharpe. With
trial_sharpes,sharpe_inferencereports
DEFLATED_SHARPE_SUPPORTEDorDEFLATED_SHARPE_UNCERTAIN. The PSR finding alone let the best of
many null strategies show only a pass; it now records that it is not adjusted for selection. - As-of joins.
bias.asof_joinvalidatestoleranceagainst the time column's units instead
of panicking inside Polars, rejects revision columns that sort lexicographically, and computes
future_matchesfrom the joined output. - Unearned passes. Survivorship, universe-drift, and regime findings no longer pass when the
data cannot establish the claim. - Event studies.
event_responseno longer drops the overlap, censoring, lookahead, and
price-adjustment findings of its windows. - Validation inputs.
bootstrap(expected_block_length=0)raises instead of using the default;
multiple_testingon anExperimentRegistrychecks the p-value range;parameter_surfaceno
longer discardsselection_sample_id;PurgedKFoldvalidates its integer parameters. - Adapters and CLI. Mapped optional columns absent from the data are skipped and recorded
instead of raising a Polars error.lacuna signalreads ISO dates in CSV time columns. - Seeds.
event_responseandfit_decayrecord a caller-supplied seed inmetadata.seed. - Cost disclosures.
stress,break_even_cost, andcapacity_curvewarn that Sharpe and CAGR
use only periods containing a trade.BorrowCostModeldocuments that it holds no position state.
Migration
Inputs that are now rejected:
bias.asof_join: a bare number astoleranceon Date, Datetime, or Duration time (pass a
timedeltaor a string such as"30d"); duration strings with uppercase or calendar units
("30D","1mo"); fractional tolerances on integer time; string or categoricalrevision
columns (cast to an integer or an ordered Enum).PurgedKFold: NumPy integers, floats, and strings forn_splitsandembargo(passint).validation.bootstrap:expected_block_lengthof zero or less.validation.parameter_surface: aselection_sample_idthat differs fromsample_idwithout
selected_parameters.adapters.from_duckdb:collect=False, which was silently ignored.signal.ic: infinite signal or label values anywhere in the input, not only on matched rows.
Results to read differently:
- A bare multi-horizon label frame, as opposed to a
LabelResult, declares no horizon order. Its
headline metrics are null with anUNKNOWNfinding; read the per-horizon tables or pass the
LabelResult. - A standalone
run_auditover multi-horizon quantile evidence needs aninference_horizon
policy, orQUANTILE_MONOTONICITYisUNKNOWN.SignalStudy.auditsets it for you. - Code that reads
ic_decay["n_periods_right"]must readn_spread_periods. labels.forward_returns(missing="raise")no longer raises on the censored tail; the earlier
documentation described that behavior as intended.
Packaging
Wheels no longer include the private lacuna._migration_benchmark module. It is release and CI
tooling, not runtime code, and it remains in the repository and the source distribution. The public
lacuna.benchmark module and the lacuna bench command are unchanged.
lacuna-options 0.2.2
The extension has its own corrections. validate_chain rejects Decimal columns with a contract
error instead of a raw Polars error. delta_buckets keeps distinct labels for edges closer than
0.01. Derived columns and the residual output no longer overwrite same-named input columns, so
re-validating an already validated frame requires dropping the derived columns first. It remains
compatible with lacuna-quant>=0.13,<0.15.
Verification
Each behavior change has a regression test, and all but one fail on v0.14.1: the exact-zero event
response at offset 0 hardens a residual that was reported but not reproduced. The suite ran with
every optional dependency installed, and the SignalStudy.audit null-calibration guard is
unchanged. Ten benchmark output checksums change because of the corrections and are recorded in the
performance guide; interleaved local timings show no material slowdown.
Open items
Items found in the same review and deliberately left for separate changes are listed in the
roadmap under "Open follow-ups from the 0.14.1 review". They include audit-profile coverage of event
studies, declaration-rule scoring, and append-only enforcement in the experiment registry.
Lacuna v0.14.1
Lacuna v0.14.1
Lacuna v0.14.1 is a correctness patch. It fixes signal-audit inference that could pass an
uninformative signal, and three smaller defects that turned missing or degenerate evidence into
apparently valid results. It preserves every v0.13 and v0.14 public signature, the schema-v1 result
envelope, c14n-v1 identities, and deterministic RNG streams.
Advisory: regenerate signal audits
SignalStudy.audit in 0.1.0 through 0.14.0 bootstrapped every (date, horizon) IC row as one
stationary series. That pooled different horizon estimands, counted each date once per horizon for
IC_PERIOD_SUPPORT, and resampled overlapping multi-period labels as though adjacent IC values were
nearly independent. In null simulations with a persistent signal that has no predictive power, the
95% interval excluded zero in about a quarter of runs, and BOOTSTRAP_INTERVAL could report PASS.
v0.14.1 infers on one declared horizon, which is the first study horizon unless
policies={"inference_horizon": ...} selects another, and resamples only periods whose half-open
label intervals are disjoint. Across 1,000 null simulations the corrected interval excluded zero in
5.8% (1D) and 6.3% (5D) of runs against a nominal 5%, and it still detected a planted signal in every
simulated run at both horizons.
Audits produced by earlier versions remain identifiable: they record rule version 1 for
IC_DEFINED, IC_PERIOD_SUPPORT, BOOTSTRAP_INTERVAL, and HORIZON_DECAY_COVERAGE, and v0.14.1
records rule version 2. Rerun affected studies rather than reinterpreting stored audits.
Fixes
- Audit IC inference.
IC_DEFINEDandIC_PERIOD_SUPPORTread the declared horizon's IC
summary and areUNKNOWNfor multi-horizon IC evidence without a matchinginference_horizon
policy.BOOTSTRAP_INTERVALwarns instead of passing below 30 resampled periods and isUNKNOWN
without a sample count. - Zero-length labels.
labels.forward_returnsrejects a horizon that exits at the entry
observation from the same price field. Since 0.1.0,entry="next_close"with a1Dhorizon,
includingSignalStudy's default horizons, silently produced all-zero labels and an entirely
undefined 1D IC.next_closenow requires horizons of at least2D. - Decay coverage.
HORIZON_DECAY_COVERAGEcounts only horizons with a defined mean IC and
reports the undefined ones. Since 0.1.0, a horizon with no defined IC still contributed to a
three-horizonPASS. - Robustness failure policy.
continuous_perturbationpropagates constraint-callback exceptions
underfailure_policy="raise". Since 0.2.0 they were always recorded as rejections.
Migration
- A close-observed
SignalStudyusingentry="next_close"must drop the1Dhorizon or use
entry="next_open"; the call now raisesMethodContractErrorinstead of producing zero labels. - Audits over multi-horizon studies evaluate the first declared horizon. Pass
policies={"inference_horizon": "5D"}to choose another declared horizon. - Short studies can move from
PASStoWARNonIC_PERIOD_SUPPORTandBOOTSTRAP_INTERVAL,
because dates are no longer counted once per horizon and overlapping labels are no longer
resampled as independent observations.
Verification
New fixed-seed statistical guards run the complete SignalStudy.audit path under the null, and
cover block and within-date permutation, DSR selection deflation, and IID, circular, and stationary
bootstrap coverage. Each guard pairs the method with the naive alternative it must beat. The bundle
verifier's hostile-archive, trust-contract, digest, identity, and canonical-encoding rejections, and
every vendor and backtest adapter declaration rejection, now have explicit tests.
lacuna-options 0.2.1 is unchanged and remains compatible with lacuna-quant>=0.13,<0.15.
Lacuna v0.14.0
Lacuna v0.14.0
Lacuna v0.14 is an admission-gated performance and memory-hardening release. It preserves every
v0.13 public signature, result table, analytical method version, schema-v1 result envelope,
c14n-v1 identity, and deterministic RNG stream. Rust is shipped only where a complete public call
beats the optimized reference and reproduces that result in nightly and exact-SHA release evidence.
Shipped native paths
- Grouped Spearman IC crosses a checked, contiguous NumPy/PyO3 bulk-copy boundary. Python still
validates inputs, owns group/tie/null semantics, constructs findings and provenance, and keeps a
directly testable NumPy reference. - Built-in mean/Sharpe PBO/CSCV workloads dispatch to the single-threaded Rust partition reducer at
512 or more combinations. Python retains combination enumeration, tie policy, safety limits,
projection, and result construction. Custom or unsupported work stays on the reference path.
Both kernels use one native thread, carry exact structural/differential tests, and are exercised by
the same Linux cp311-abi3 wheel under Python 3.11, 3.12, 3.13, and 3.14. The release matrix also
smoke-tests Linux x86_64/aarch64, macOS arm64, and Windows x86_64 wheels.
Optimized without Rust
- Cost stress, capacity, and break-even analysis now use period/component sufficient statistics and
exact scaling identities instead of rescanning every trade for every point. - CPCV assembly, Pearson permutation testing, bucketization, multi-lag membership turnover,
prior-only regime thresholds, event windows and clustered response inference, diagnostic
portfolio allocation, universe transitions, and c14n-v1 fingerprints use exact NumPy or Polars
plans after their native candidates failed materiality or end-to-end admission. - Event-response and diagnostic-projection workloads receive the largest reductions by removing
repeated path materialization and Python group loops; their statistical and portfolio semantics
are unchanged.
The temporary CPCV native spike was removed after achieving only 1.158× over the optimized
reference, below the required 1.5× full-call gate. Shared resampling remains Python because
unchanged Python-owned RNG/index generation accounts for nearly all measured latency; no native RNG
or scheduler was introduced.
Foundations, evidence, and deferred work
- Private execution budgets bound bootstrap workspace and record fixed/batch allocation estimates,
external pool observations, selected backend, andnative_threads=1. - Exact streaming c14n-v1 avoids whole-frame/list intermediates while retaining byte-identical
prefixes and digests. c14n-v2 and public carrier redesign remain explicitly blocked for this
release. - The native-migration sidecar records seven alternating measurements after two warm-ups, process
RSS, Python-traced memory, copy/workspace/projection bytes, effective dimensions, thread settings,
exact checksums, complete structural comparison, declared numerical tolerances, and a mechanical
admission decision in isolated processes. Grouped IC is exact; the PBO nightly comparison checks
17,163 finite values with maximum absolute error1.67e-16against a1e-12tolerance while
retaining the differing exact checksums as evidence. - Arrow C Data/PyCapsule borrowing, native RNG or scheduling, Rayon, public compact carriers,
approximate quantiles, and any semantic method change remain deferred.
Release assurance
The release workflow has a non-publishing manual mode that accepts an exact commit SHA plus expected
core and extension versions, runs Python/Rust/docs/statistical/native/ABI/target-wheel gates, and
writes a checksummed release-preflight.json. It has no PyPI identity-token permission. A
v0.14.0 tag must point to main, match all source versions, have a successful CI gate, and find a
successful preflight manifest for the exact same SHA. It then repeats the checks and rebuilds every
artifact before GitHub and PyPI publication.
CI and the rehearsal also run pinned cargo-audit 0.22.2 against the current RustSec database and
reject vulnerable, unmaintained, unsound, or yanked dependencies in the locked Rust graph.
lacuna-options 0.2.1 ships afterward with no API or analytical change. Its dependency widens to
lacuna-quant>=0.13,<0.15, and the same extension wheel is verified against both supported core
minor lines.
Install
python -m pip install --upgrade lacuna-quant
lacuna doctor --strictOptional research dependencies and the separately versioned options extension remain explicit:
python -m pip install "lacuna-quant[statistics,report,pandas]"
python -m pip install --upgrade lacuna-optionsThe PyPI project named lacuna is unrelated to this repository. The distribution is
lacuna-quant; Python code continues to use import lacuna.
Lacuna v0.13.0
Lacuna v0.13.0
Lacuna v0.13 establishes the project on PyPI without changing its Python import API, command-line
interface, analytical methods, result schema, or evidence semantics.
Highlights
- The core distribution is now
lacuna-quant; existing code continues to useimport lacuna, and
the command remainslacuna. - PyPI publication uses GitHub OIDC Trusted Publishing from protected
pypiandpypi-options
environments. No long-lived PyPI credential is stored in the repository. - Only the complete archive-verified release set is published: four target-smoke-tested stable-ABI
core wheels and the core source distribution, followed by the options wheel and source
distribution. - A final clean Python 3.13 environment installs
lacuna-quant==0.13.0and
lacuna-options==0.2.0from PyPI, then reruns native, schema, CLI, diagnostics, and extension
smoke checks. lacuna doctornow fails an ambiguous installation where another distribution namedlacuna
is present besidelacuna-quant.- The
0.13public API fixture explicitly inherits every0.1through0.12contract with no new
imports or changed signatures. Analysis-result schema version 1 and every analytical method
version are unchanged. - Core and extension artifacts are MIT-only. Earlier releases retain the grants under which they
were originally distributed.
Install
python -m pip install lacuna-quant
lacuna doctor --strictOptional research dependencies and the separately versioned options extension remain explicit:
python -m pip install "lacuna-quant[statistics,report,pandas]"
python -m pip install lacuna-optionsThe PyPI project named lacuna is unrelated to this repository. If you previously installed a
Lacuna GitHub Release wheel whose distribution metadata was lacuna, migrate with:
python -m pip uninstall lacuna lacuna-options
python -m pip install --upgrade lacuna-quant lacuna-optionsInstalling both lacuna and lacuna-quant is unsupported because both distributions own the
lacuna import path.
The GitHub Release still carries all seven verified distributions, SHA256SUMS, and GitHub
provenance attestations. Lacuna remains pre-1.0; the external v1 readiness requirement for real use
on independent research stacks is unchanged.
Lacuna v0.12.0
Lacuna v0.12.0
Lacuna v0.12 completes the Alphalens-inspired interoperability milestone without coupling Lacuna to
Alphalens or weakening its explicit timing and evidence contracts.
Highlights
- Generic
FactorPanelSchemaandFactorPanelSemanticsdeclarations for Polars, Arrow, and optional
named pandas MultiIndex panels. - Strict preservation of extra columns and row order with visible copy/materialization evidence and
no implicit filtering, joins, bucketing, labels, or statistics. - A migration guide that maps IC, grouped IC, buckets, turnover, event analysis, diagnostic
portfolios, and reports while documenting timing, availability, exposure, and inference
differences. - A frozen numerical compatibility fixture pinned to Alphalens Reloaded commit
f0a07c22, with no
runtime dependency or copied implementation. - Expanded QA: zero-skip full-extra testing, affected-extra and wheel matrices, real pinned-Chromium
Plotly smoke, 500-simulation release calibration, and a same-runner 15% legacy benchmark guard. - Fail-closed reproducibility-bundle verification now reports damaged ZIP members through a concise
ReportErrorinstead of exposing a Python traceback.
Lacuna remains pre-1.0. Diagnostic portfolio projections do not compound returns or simulate
holdings, orders, fills, cash, or costs. Event analysis defaults to availability-time anchoring.
Install the checksummed core and optional extension wheels attached to this GitHub Release. The
PyPI distribution named lacuna is unrelated to this project.
Lacuna v0.9.0
Lacuna v0.9.0
Lacuna v0.9.0 is the migration and operational-hardening milestone. It does not add another
analytical method. It makes the released contracts easier to preserve, diagnose, measure, install,
and review before the project considers a stable 1.0 declaration.
Highlights
- A published persisted-artifact compatibility manifest defines the current read boundary for
AnalysisResultschema v1 (0.1-0.9), bundle v1 (0.7-0.9), and standardized audit profile
v1 (0.8-0.9). - The tagged-fixture corpus records exact SHA-256 and Git blob identities from prior releases.
Regression tests prove that the retained result fixture is byte-identical acrossv0.1.0through
v0.8.0, then validate and semantically round-trip every artifact through the current readers. AuditProfile.from_dict(...)/from_json(...)and standalone
BundleManifest.from_dict(...)/from_json(...)provide strict, non-executing reads with
fail-closed version, field, duplicate-key, non-finite, and nested-contract validation.lacuna.diagnose_installation()returns a versioned immutable health report with stable codes for
package/distribution/native identity, Python and wheel support, dependency metadata, packaged
schemas, and runtime configuration.lacuna doctor --json --strictis now an automation gate. Failures return nonzero by default;
strict mode also rejects warnings. It reads no research data, performs no network or file writes,
redacts configured paths, and never discovers or activates plugins.- Benchmark artifact v5 adds one real integrated strategy workload spanning forward labels, signal
IC, purged K-fold, stationary bootstrap, cost stress, point-in-time joins, vendor/backtest
adapters, and standardized-audit composition. Repeated output checksums and traced memory are
enforced. - The initial v5 profile found the declared cost surface and point-in-time join dominate the smoke
workload, with no accidental repeated cross-phase call. Production semantics remain unchanged
instead of adding an unevidenced optimization. - A complete Python API surface and versioned reference-coverage manifest enumerate all 65 root
exports and 18 supported submodules. Contract tests require implementation exports, cumulative
API fixtures, human symbol sections, and semantic design routes to agree exactly.
Compatibility and trust boundary
Core 0.9.0 is additive over every published 0.1.x through 0.8.x Python contract. Persisted
format versions remain independent of the package version: current identity migrations validate
the existing format rather than silently rewriting it. Strict standalone manifest parsing does not
replace full .lacuna archive verification.
Diagnostic PASS means the installed runtime contract is healthy; it does not certify a research
result. Bundle digest verification establishes integrity, not publisher authenticity. Benchmark
timings are environment evidence, not universal latency promises. Adapter declarations still
remain caller-supplied evidence rather than vendor or methodology certification.
The separately versioned options extension advances to 0.1.3 only to expand its compatible core
range to lacuna>=0.5,<0.10. Its exact 0.1.x exports, signatures, and analytical semantics are
unchanged and rerun through property, coverage, profile-integration, packaging, and clean joint-
installation gates.
Distribution
This release is distributed through GitHub because the lacuna name on PyPI belongs to an unrelated
project. The release contains four target-smoke-tested CPython 3.11 stable-ABI core wheels, one
universal options wheel, both source distributions, SHA256SUMS, and GitHub provenance for every
distribution. Each core wheel must pass the strict installation diagnostic gate on its target.
The v1 readiness audit finds no remaining internal implementation row. 1.0.0 is still blocked by
the technical specification's explicit requirement for real users applying Lacuna to independent
research stacks. No independent testers were available for 0.9, so this release makes no such
claim and does not convert maintainer/CI evidence into external validation.
See the
changelog,
persisted-artifact compatibility reference,
installation diagnostics guide,
performance evidence,
Python API surface,
and
v1 readiness ledger.
Lacuna v0.8.0
Lacuna v0.8.0
Lacuna v0.8.0 is the cross-phase standardized-audit milestone. Results from signal diagnostics,
temporal validation, experiments, robustness, regimes, costs, point-in-time checks, adapters,
plugins, and the options extension can now enter one versioned review without erasing their distinct
methodology or pretending they form one universal quality score.
Highlights
lacuna.standard_audit(...)andrun_standard_audit(...)provide built-insignal,strategy,
andoptionsprofiles over every released result method family.- Each capability is explicitly
required,optional, ornot_applicablefor the selected scope.
Missing required evidence isUNKNOWN; evidence supplied to an inapplicable row is a visible
scope warning. - Coverage findings mean only that accepted evidence is present. Domain findings are propagated
with their original state, severity, category, message, method/finding identity, thresholds, and
structured evidence. - Standardized reports expose category coverage, the complete requirement matrix, every supplied
result in an evidence inventory, and the original domain-finding table. They intentionally omit
robustness_scoreand identify their score model asnull. AuditProfile.to_dict()has a published profile-v1 JSON Schema in both source and wheel resources,
a frozen strategy fixture, and an additive exact0.8.xPython API contract.AnalysisResult.from_dict(...)andfrom_json(...)add a strict current-schema reader that
rejects duplicate keys, non-finite constants, unsupported schemas, field drift, bad states/
severities, invalid UTC timestamps, and invalid versions without executing content.lacuna audit --scope ... --evidence NAME=PATHcomposes bounded named result JSON, writes JSON,
Markdown, or HTML, honors safe overwrite and finding exit policies, and can create a deterministic
.lacunabundle containing the audit plus its named evidence.- The executable vendor/backtester example, real options-extension integration, CLI/bundle tests,
installed-wheel smoke, and release archive verifier cover the complete new boundary.
Compatibility and trust boundary
Core 0.8.0 is additive over every published 0.1.x through 0.7.x Python contract. The original
lacuna.audit(...) and SignalStudy.audit(...) signal-score signatures and semantics remain frozen;
the cross-phase profile is a separate additive API.
Result schema, profile schema/version, source method versions, and bundle version remain independent.
Reading result/profile/bundle data never discovers or activates plugins. Adapter evidence preserves
declared source/backtest semantics but does not certify archive completeness or rerun methodology.
Bundle SHA-256 verification establishes artifact integrity, not truth, authorship, recomputation, or
future profitability.
The separately versioned options extension advances to 0.1.2 only to expand its compatible core
range to lacuna>=0.5,<0.9 and add integration evidence under the required options-profile
capability. Its exact 0.1.x source API is unchanged.
Distribution
This release is distributed through GitHub because the lacuna name on PyPI belongs to an unrelated
project. The release contains four target-smoke-tested CPython 3.11 stable-ABI core wheels, one
universal options wheel, both source distributions, SHA256SUMS, and GitHub provenance for every
distribution.
The v1 readiness ledger now records standardized audit as released. 0.9 remains the migration and
operational-hardening boundary, and 1.0.0 remains blocked until every stable-contract row is
evidenced—including independent users applying Lacuna to real research stacks.
See the
changelog,
standardized-audit reference,
profile schema,
and
v1 readiness ledger.
Lacuna v0.7.0
Lacuna v0.7.0
Lacuna v0.7.0 is the portable-evidence milestone. An immutable audit can now become a deterministic,
checksummed .lacuna archive whose structure and artifact integrity are independently verifiable
without extraction, rendering, plugin activation, or code execution.
Highlights
AuditReport.bundle(...)andlacuna.create_bundle(...)package canonical JSON,
escaped Markdown/self-contained HTML, resolved configuration and environment summaries, and
optional namedAnalysisResult, provenance, and invocation evidence.lacuna.verify_bundle(...)andlacuna bundle verifyvalidate canonical paths, regular
non-executable file types, bounded sizes/counts, exact member set, canonical ZIP/JSON encoding,
report identity, artifact-set SHA-256, and every member SHA-256.- A published bundle-manifest v1 JSON Schema is available in the repository and installed wheel,
with a persisted migration fixture and a frozen additive core0.7.xAPI contract. - Supplemental metadata redacts credential-shaped keys, URL credentials/query/fragment, and
machine-specific absolute paths while retaining a value-free redaction log. Canonical reports and
named evidence fail closed instead of being silently rewritten. - Markdown reports now escape source-derived HTML metacharacters so hostile finding text remains
text in downstream renderers. lacuna signal --bundle study.lacunacreates a report and portable archive in one file workflow;
clean-wheel release tests exercise creation, verification, and the packaged schema.
Reproducibility and trust boundary
Bundle v1 claims identifiable reproducibility only: declared artifact bytes are internally
consistent with their manifest. It does not claim authorship, input availability, recomputability,
numerical reproduction, or cross-machine bitwise reproduction. SHA-256 is not a signature; use the
GitHub provenance attached to release distributions or another trusted channel to establish origin.
The writer adds no source datasets, arbitrary files, lockfiles, credentials, environment variables,
plugins, pickle, or executable content automatically. The verifier enforces 256 members, 16 MiB per
member, 64 MiB total, and a 64 MiB archive, and rejects traversal, drive paths, duplicates, links,
executable modes, encryption, compression, comments, extra members, and noncanonical encodings.
Compatibility and distribution
Core 0.7.0 is additive over every published 0.1.x through 0.6.x Python contract. The embedded
audit result remains schema version 1; bundle layout compatibility is selected independently by
bundle_version=1.
The separately versioned options extension advances to 0.1.1 only to expand its compatible core
range to lacuna>=0.5,<0.8; its exact 0.1.x source and public API are unchanged and re-run through
the property, coverage, packaging, and joint-install gates.
This release is distributed through GitHub because the lacuna name on PyPI belongs to an unrelated
project. The release contains four target-smoke-tested CPython 3.11 stable-ABI core wheels, one
universal options wheel, both source distributions, SHA256SUMS, and GitHub provenance for every
distribution.
The v1 readiness ledger records the remaining work candidly: cross-phase standardized audit is the
candidate 0.8 milestone, migration/operational hardening is the candidate 0.9 milestone, and
1.0.0 still requires independent users applying Lacuna to real research stacks.
See the
changelog,
bundle v1 reference,
and
v1 readiness ledger.
Lacuna v0.6.0
Lacuna v0.6.0
Lacuna v0.6.0 completes the optional-integration milestone. External data, backtest artifacts,
estimator cross-validation, and third-party code now cross explicit, evidenced boundaries without
expanding the core runtime dependency surface.
Highlights
- DuckDB result ingestion through an Arrow record-batch stream without pandas or Lacuna-generated
SQL, including explicit legacy-reader evidence. - A dependency-free scikit-learn cross-validation bridge over frozen walk-forward, purged, or CPCV
folds, with original Lacuna interval evidence retained. - Immutable vendor schemas declaring availability, revisions, timezones, price adjustment, and
identifier semantics. - Generic return, trade, and position adapters that require gross/net, compounding, timing, delay,
price, cost, borrow, calendar, session, missing-instrument, and delisting assumptions. - Metadata-only Python entry-point discovery, conflict-safe selection, and explicit trusted-code
activation with protocol-major and capability negotiation. - A separately packaged
lacuna-options0.1.0distribution for validated option chains, carry
forwards, log-forward moneyness, absolute-delta buckets, and empirical IV residuals. - Independent frozen core
0.6.xand options0.1.xexport/signature contracts; real DuckDB and
scikit-learn integration tests; options property/adversarial tests; and clean joint-wheel smoke.
Trust and methodology boundaries
Plugin discovery does not import target modules. Activation is a deliberate in-process trust
decision and is not a sandbox. Vendor and backtest adapters translate declared artifacts; they do
not certify point-in-time truth, run a backtest, or invent methodology. The DuckDB adapter accepts an
already executed trusted result and never constructs SQL.
The initial options extension does not claim a universal IV solver, Greeks model, SVI calibration,
arbitrage repair, or delta-hedged attribution. Those require explicit model, exercise, settlement,
curve, dividend, calendar, and numerical contracts.
Compatibility and distribution
The core change is additive over every published 0.1.x through 0.5.x contract. The extension has
its own 0.1.x version and supports lacuna>=0.5,<0.7; publishing both in one GitHub Release does
not couple their future version numbers.
This release is distributed through GitHub because the lacuna name on PyPI belongs to an unrelated
project. The release contains four target-smoke-tested CPython 3.11 stable-ABI core wheels, one
universal options wheel, both source distributions, SHA256SUMS, and GitHub provenance for every
distribution.
The full implementation record is in the
changelog. Exact adapter, plugin,
trust, materialization, and compatibility contracts are in the
adapter/plugin guide
and the
options extension guide.