feat(research): add L2 Ricci microstructure validation lane#1242
Draft
neuron7xLab wants to merge 22 commits into
Draft
feat(research): add L2 Ricci microstructure validation lane#1242neuron7xLab wants to merge 22 commits into
neuron7xLab wants to merge 22 commits into
Conversation
…hardening Augments PR #1242 in place (no clobber). Addresses the falsification audit: KERNEL (critical): the fallback kernel computed UNWEIGHTED hop-count shortest paths + a UNIFORM transport measure on a FIXED topology, so curvature was a constant 0.20512821 on every snapshot (empirically proven) — vacuous; every null bit air. Repaired to be microstructure-sensitive: * per-edge metric = absolute price gap (snapshot-varying); * weighted shortest paths (weight="weight"); * size-weighted (volume) transport measure; * exact W1 via POT emd2 (== prior linprog to 1e-9) + cached all-pairs distances (~100x faster, makes the battery tractable). Curvature now varies across snapshots (std ~0.25); INV-RC1 (kappa<=1) holds. KERNEL_VERSION recorded in the artifact. SOURCE HONESTY: ALLOWED_SOURCES = {LOBSTER_LICENSED_L2, BINANCE_FUTURES_DEPTH}; source carried through verbatim, never relabelled. Manifest now records venue, snapshot_count, session_window_utc, collector_version, collector_sha256. NULLS: default is iaaft (perturbs the sizes the kernel consumes), not the mean-invariant timestamp shuffle; added size_permutation_within_side and block_bootstrap, each documenting the pathway it destroys. ARTIFACT HARDENING: + kernel_version, source, config_sha256, collector_sha256, dirty_git (schema const false), seed, observed_count, null_mean, null_std, forbidden_claims_absent (schema const true). Forbidden statuses (ALPHA_FOUND/MARKET_SIGNAL_PROVEN/PRODUCTION_READY/PHYSICS_CONFIRMED) are schema-rejected. PRE-EXISTING #1242 BUGS FIXED: DataFrameSchemaError raised pandera SchemaError positionally (TypeError -> red tests) — now a dedicated single-message error; removed a type:ignore (debt-ratchet); regenerated claims_hashes for C-RICCI-MICROSTRUCTURE-V1; added a reasoned claim-boundary allowlist entry for the T3 disclaimer. CI: ricci-microstructure-gate.yml verifies the COMMITTED artifact fast (the 25-min 1000-surrogate run is the reproducibility capsule, not the PR gate) and fails on relabelled source, dirty_git, forbidden status, or sha mismatch. CLAIMS.md C-RICCI row reworded: T3, not alpha/production/physics/trading, honest source. 22 lane tests (kernel invariant/anti-invariant, null consumption, source passthrough, dirty-git/forbidden rejection). ruff+black+mypy --strict clean. The measured artifact is committed in a follow-up commit so it is generated on this clean tree (dirty_git=false). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ion (V2 task 6) seed_stability() aggregates the per-seed artifacts (1337/2026/7719) into one fail-closed verdict: SUPPORTED only if every seed is SUPPORTED and consistent, else demoted to the least-supportive observed status. bonferroni() corrects a family of per-null p-values. 4 tests added (consistency, fail-closed demotion, all-pass-supported, clamped correction). Committed now so the in-flight seed runs observe a clean tree (dirty_git=false). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
⊛ CLAUDE CODE AUTONOMOUS EXECUTION ORDER / PR #1242 Owner authorization: full autonomous execution is granted for this PR scope. Do not stop at shallow fixes. Execute the complete research-engineering closure loop until the PR is objectively merge-ready or explicitly blocked by an external constraint that must be reported with evidence. Operational mode:
Hard scope:
Mandatory execution tasks: A. Source/provenance honesty
B. Kernel validity
C. Null-model validity
D. Statistical gate
E. Artifact/reproducibility capsule
F. CI/release gates
G. Hygiene and integration
Required final report before marking ready:
Merge readiness rule:
If blocked:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a minimal
ricci_microstructure_v1research lane for falsifiable Ollivier-Ricci L2 microstructure experiments.Implemented:
geosync-research ingest --data data/l2_manifest.jsongeosync-research run --line ricci_microstructure_v1 --config CONFIG --data DATA --out artifacts/runs/geosync-research verify RUN_IDGraphRicciCurvature.OllivierRiccip_value < 0.01 AND abs(cliffs_delta) >= 0.147HYPOTHESIS_NOT_SUPPORTEDExplicit non-claims
This PR does not claim alpha, production readiness, proven market physics, or validated edge.
Allowed statuses only:
SUPPORTEDHYPOTHESIS_NOT_SUPPORTEDINVALIDForbidden statuses remain forbidden:
ALPHA_FOUNDMARKET_SIGNAL_PROVENPRODUCTION_READYPHYSICS_CONFIRMEDKnown incompleteness
make release-gateis not rewired in this PR.requirements.lockis not regenerated after adding Typer/package surface.Local verification performed outside repo clone
A minimal extracted test harness passed locally for:
ricciCurvatureAcceptance gate still required before merge
Keep this as a draft until real LOBSTER substrate, lockfile regeneration, supply-chain evidence, and release-gate wiring are complete.