lockcast 0.11.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. lockcast/__init__.py +3 -0
  2. lockcast/__main__.py +5 -0
  3. lockcast/a4band.py +32 -0
  4. lockcast/amsub.py +47 -0
  5. lockcast/calib.py +165 -0
  6. lockcast/calib_v10.json +213 -0
  7. lockcast/calib_v5.json +63 -0
  8. lockcast/calib_v6.json +64 -0
  9. lockcast/calib_v7.json +69 -0
  10. lockcast/calib_v8.json +88 -0
  11. lockcast/calib_v9.json +196 -0
  12. lockcast/cli.py +625 -0
  13. lockcast/clock.py +37 -0
  14. lockcast/dupprobe.py +191 -0
  15. lockcast/ed25519.py +89 -0
  16. lockcast/engine.py +1123 -0
  17. lockcast/enumundo.py +46 -0
  18. lockcast/extract.py +161 -0
  19. lockcast/fillfactor.py +113 -0
  20. lockcast/hostbench.py +129 -0
  21. lockcast/idxsplit.py +167 -0
  22. lockcast/intent.py +182 -0
  23. lockcast/lag.py +32 -0
  24. lockcast/license_pubkey.txt +1 -0
  25. lockcast/licensing.py +166 -0
  26. lockcast/locks.py +110 -0
  27. lockcast/model.py +844 -0
  28. lockcast/notwin.py +220 -0
  29. lockcast/pace.py +194 -0
  30. lockcast/pgconn.py +84 -0
  31. lockcast/policy.py +82 -0
  32. lockcast/probe.py +261 -0
  33. lockcast/profile.py +673 -0
  34. lockcast/queueint.py +30 -0
  35. lockcast/report/__init__.py +15 -0
  36. lockcast/report/common.py +61 -0
  37. lockcast/report/html.py +142 -0
  38. lockcast/report/jsonout.py +7 -0
  39. lockcast/report/markdown.py +90 -0
  40. lockcast/report/sarif.py +47 -0
  41. lockcast/report/text.py +76 -0
  42. lockcast/rewrite.py +938 -0
  43. lockcast/runner.py +462 -0
  44. lockcast/sqlsplit.py +227 -0
  45. lockcast/synth.py +650 -0
  46. lockcast/tune.py +868 -0
  47. lockcast/twin.py +890 -0
  48. lockcast/verify.py +129 -0
  49. lockcast-0.11.0.dist-info/METADATA +374 -0
  50. lockcast-0.11.0.dist-info/RECORD +53 -0
  51. lockcast-0.11.0.dist-info/WHEEL +4 -0
  52. lockcast-0.11.0.dist-info/entry_points.txt +2 -0
  53. lockcast-0.11.0.dist-info/licenses/LICENSE +21 -0
lockcast/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """lockcast: forecast how long a Postgres migration will block production, before it runs."""
2
+
3
+ __version__ = "0.11.0"
lockcast/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
lockcast/a4band.py ADDED
@@ -0,0 +1,32 @@
1
+ """A4 union interval: engine [lo, hi] ∪ [F·exp(−h), F·exp(+h)].
2
+
3
+ `H` is frozen from dev leave-one-out. None means
4
+ the freeze has not been written yet; ranges stay at the engine interval.
5
+ """
6
+ from __future__ import annotations
7
+ import math
8
+
9
+ # Frozen after the preregistration; do not edit by hand.
10
+ H: float | None = 0.48736426446749126
11
+ H_SOURCE = "frozen"
12
+
13
+
14
+ def interval(f: float, lo: float | None, hi: float | None, h: float | None = None) -> tuple[float, float]:
15
+ h = H if h is None else h
16
+ if f <= 0:
17
+ return (lo if lo is not None else 0.0, hi if hi is not None else 0.0)
18
+ if h is None:
19
+ return (lo if lo is not None else f, hi if hi is not None else f)
20
+ a, b = f * math.exp(-h), f * math.exp(h)
21
+ if lo is None or hi is None:
22
+ return a, b
23
+ return min(lo, a), max(hi, b)
24
+
25
+
26
+ def expand_episodes(episodes, h: float | None = None) -> None:
27
+ h = H if h is None else h
28
+ if h is None:
29
+ return
30
+ for ep in episodes or []:
31
+ lo, hi = interval(ep.seconds, getattr(ep, "lo", None), getattr(ep, "hi", None), h)
32
+ ep.lo, ep.hi = lo, hi
lockcast/amsub.py ADDED
@@ -0,0 +1,47 @@
1
+ """M5c measured-row pricing for hash/BRIN substitutes.
2
+
3
+ A hash or BRIN stand-in is priced as (measured substitute bytes / measured rows) × production rows,
4
+ on a twin whose count(*) is within 2% of the request. This is not L.json × (twin_hash / twin_btree)
5
+ and not a fitted multiplier. Hash bytes follow row count, not key width.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ MIN_TWIN_ROWS = 10_000 # below this, hash bucket rounding is too noisy; do not substitute
10
+ ROW_TOL = 0.02
11
+
12
+
13
+ def within(got: int, want: int, tol: float = ROW_TOL) -> bool:
14
+ if want <= 0:
15
+ return got == 0
16
+ return abs(got - want) / want <= tol
17
+
18
+
19
+ def bytes_at_production(measured_bytes: int, measured_rows: int, prod_rows: int) -> float:
20
+ if measured_rows <= 0:
21
+ raise ValueError("measured_rows must be positive")
22
+ return float(measured_bytes) / float(measured_rows) * float(prod_rows)
23
+
24
+
25
+ def _norm(s: str) -> str:
26
+ return "".join(ch for ch in s if ch not in " ()").lower()
27
+
28
+
29
+ def _has(use, attr, key: str) -> bool:
30
+ return any(_norm(x if isinstance(x, str) else x[0]) == _norm(key) for x in getattr(use, attr, []) or [])
31
+
32
+
33
+ def eligible_forms(candidate, uses_on_table: list, col_stats: dict | None) -> list[str]:
34
+ """Which access methods can replace a one-key btree for this workload. Multi-key and INCLUDE stay btree."""
35
+ keys = list(getattr(candidate, "keys", None) or [])
36
+ if len(keys) != 1 or getattr(candidate, "include", None):
37
+ return []
38
+ key = keys[0]
39
+ forms = []
40
+ if any(_has(u, "eq", key) for u in uses_on_table) and not any(
41
+ _has(u, a, key) for u in uses_on_table for a in ("rng", "order", "group", "minmax")):
42
+ forms.append("hash")
43
+ corr = (col_stats or {}).get("correlation")
44
+ if corr is not None and abs(float(corr)) >= 0.95 and any(_has(u, "rng", key) for u in uses_on_table) and not any(
45
+ _has(u, a, key) for u in uses_on_table for a in ("order", "group")):
46
+ forms.append("brin")
47
+ return forms
lockcast/calib.py ADDED
@@ -0,0 +1,165 @@
1
+ """v5 duration calibration, fitted on development data only (see v5/run/calibrate.py).
2
+
3
+ A forecast from the twin ladder is multiplied by a per-class factor that may grow with how much of
4
+ the touched table does not fit in shared_buffers:
5
+
6
+ log(k) = a[class] + b[class] * overflow, overflow = max(0, heap - shared_buffers) / heap
7
+
8
+ and its interval is re-widened with the class's cross-validated residual spread. Parameters live in
9
+ ``calib_v5.json``; with no file (or ``LOCKCAST_CALIB=off``) forecasts are unchanged (v4 behaviour).
10
+ """
11
+ from __future__ import annotations
12
+
13
+ import json
14
+ import math
15
+ import os
16
+ import re
17
+ from pathlib import Path
18
+
19
+ Z90 = 1.64485
20
+ _PATH = Path(__file__).with_name("calib_v10.json") # v10: v9 + dml factor, exact evidence, dup probe
21
+
22
+
23
+ def classify(sql: str) -> str:
24
+ s = " ".join(re.sub(r"--[^\n]*", "", sql or "").upper().split())
25
+ if not s:
26
+ return "other"
27
+ if "CONCURRENTLY" in s and ("CREATE" in s and "INDEX" in s or s.startswith("REINDEX")):
28
+ return "cic"
29
+ if re.match(r"^CREATE (UNIQUE )?INDEX", s):
30
+ return "unique" if " UNIQUE " in f" {s} " else "create_index"
31
+ if s.startswith("REINDEX") or s.startswith("CLUSTER") or s.startswith("VACUUM FULL") or "VACUUM (FULL" in s:
32
+ return "rebuild"
33
+ if s.startswith("ALTER TABLE"):
34
+ if "FOREIGN KEY" in s or "REFERENCES" in s or "VALIDATE CONSTRAINT" in s:
35
+ return "fk_validate" if ("FOREIGN KEY" in s or "VALIDATE" in s) else "other"
36
+ if re.search(r"ADD (CONSTRAINT \S+ )?(UNIQUE|PRIMARY KEY)", s):
37
+ return "unique"
38
+ if re.search(r"ADD (CONSTRAINT \S+ )?CHECK", s) or "SET NOT NULL" in s:
39
+ return "check"
40
+ if " TYPE " in s or "SET DATA TYPE" in s or re.search(r"ADD (COLUMN )?\S+ .*(DEFAULT|GENERATED|SERIAL)", s):
41
+ return "rewrite"
42
+ return "other"
43
+ if s.startswith("UPDATE") or s.startswith("DELETE") or s.startswith("INSERT"):
44
+ return "dml"
45
+ if s.startswith("REFRESH MATERIALIZED VIEW") or s.startswith("CREATE MATERIALIZED VIEW"):
46
+ return "mv"
47
+ return "other"
48
+
49
+
50
+ _cache: dict | None = None
51
+
52
+
53
+ def params() -> dict | None:
54
+ global _cache
55
+ if os.environ.get("LOCKCAST_CALIB", "").lower() in ("off", "0", "none"):
56
+ return None
57
+ if _cache is None:
58
+ alt = os.environ.get("LOCKCAST_CALIB_FILE")
59
+ p = Path(alt) if alt else _PATH
60
+ try:
61
+ _cache = json.loads(p.read_text()) if p.exists() else {}
62
+ except (OSError, ValueError):
63
+ _cache = {} # a damaged calibration file must not stop a check
64
+ if not isinstance(_cache, dict):
65
+ _cache = {}
66
+ return _cache or None
67
+
68
+
69
+ def overflow(profile: dict | None, table: str) -> float:
70
+ if not profile or not table:
71
+ return 0.0
72
+ t = (profile.get("tables") or {}).get(table) or {}
73
+ heap = float(t.get("heap_bytes") or 0) + float(t.get("index_bytes") or 0) * 0.0
74
+ if heap <= 0:
75
+ return 0.0
76
+ try:
77
+ from .profile import setting_bytes
78
+ sb = setting_bytes(profile, "shared_buffers", 128 << 20)
79
+ except Exception:
80
+ sb = 128 << 20
81
+ return max(0.0, heap - sb) / heap
82
+
83
+
84
+ def factor(cls: str, ovf: float, p: dict | None = None) -> tuple[float, float | None]:
85
+ """(multiplier, sigma or None) for a class."""
86
+ p = p if p is not None else params()
87
+ if not p:
88
+ return 1.0, None
89
+ c = (p.get("classes") or {}).get(cls) or (p.get("classes") or {}).get("_default")
90
+ if not c:
91
+ return 1.0, None
92
+ return math.exp(float(c.get("a", 0.0)) + float(c.get("b", 0.0)) * ovf), c.get("sigma")
93
+
94
+
95
+ def main_table(fc) -> str:
96
+ best, bt = "", -1.0
97
+ for t, v in (getattr(fc, "tuples_prod", None) or {}).items():
98
+ n = float(v.get("read") or 0) + float(v.get("written") or 0)
99
+ if n > bt:
100
+ best, bt = t, n
101
+ return best
102
+
103
+
104
+ def physics_factor(v: dict, seconds: float, ph: dict | None) -> tuple[float, list[str]]:
105
+ """v7 calibrated physics terms (parameters fitted on development data only, see v7/run/calibrate7.py).
106
+
107
+ F4 partial index: the build of a partial index is a full heap scan plus a sort of the matching rows only, so the
108
+ ladder's intercept (fixed per-statement overhead) is not scaled; the per-row part is: t = a + b * work
109
+ is replaced by t0 * work_prod / work_twin when ``partial_prop`` is set (no intercept), or kept.
110
+ F3 index sort: the sort is n log n, not linear in n: the share ``s`` of the build that is sorting grows by
111
+ ln(n_prod) / ln(n_twin). ``s`` depends on the key kind (collatable text keys sort with strcoll and dominate).
112
+ F2 table rewrite: a rewrite writes the whole table and its indexes again; on production it cannot go faster than
113
+ the host's rewrite throughput R (bytes of WAL per second, measured on development rewrites):
114
+ t >= wal_bytes / R.
115
+ """
116
+ if not ph or not v or seconds <= 0:
117
+ return seconds, []
118
+ notes = []
119
+ f = seconds
120
+ if v.get("index") and v.get("partial") and ph.get("partial_prop") and v.get("work_twin"):
121
+ alt = (v.get("t0s") or 0.0) * (v.get("work_prod") or 0.0) / max(v["work_twin"], 1e-9)
122
+ if alt > 0:
123
+ f = f * alt / max(v.get("pred") or f, 1e-9)
124
+ notes.append("partial index: per-row cost scaled without the fixed overhead")
125
+ if v.get("index") and (v.get("n_twin") or 0) > 1 and (v.get("n_prod") or 0) > v["n_twin"]:
126
+ sh = float(ph.get("s_text" if v.get("text_key") else "s_fixed") or 0.0)
127
+ if sh > 0:
128
+ g = math.log(v["n_prod"]) / math.log(max(v["n_twin"], 2.0))
129
+ f *= 1.0 + sh * (g - 1.0)
130
+ notes.append(f"index sort grows n log n (sort share {sh:.2f}, x{1.0 + sh * (g - 1.0):.2f})")
131
+ if v.get("rewrote") and ph.get("rewrite_bps") and (v.get("wal") or 0) > 0:
132
+ floor = float(v["wal"]) / float(ph["rewrite_bps"])
133
+ if floor > f:
134
+ notes.append(f"table rewrite of {v['wal'] / 1e9:.2f} GB at the host's rewrite rate: {floor:.1f} s")
135
+ f = floor
136
+ return f, notes
137
+
138
+
139
+ def apply(fcs, profile: dict | None) -> None:
140
+ """Calibrate statement forecasts in place; keep the raw values for audit/CV."""
141
+ p = params()
142
+ for fc in fcs:
143
+ fc.raw_seconds, fc.raw_lo, fc.raw_hi = fc.seconds, fc.lo, fc.hi
144
+ if p and p.get("physics") and not fc.error and fc.seconds > 0:
145
+ f2, notes = physics_factor(getattr(fc, "v7", None) or {}, fc.seconds, p["physics"])
146
+ if f2 != fc.seconds:
147
+ r = f2 / fc.seconds
148
+ fc.seconds, fc.lo, fc.hi = f2, fc.lo * r, fc.hi * r
149
+ fc.notes.extend(notes)
150
+ fc.calib_class = classify(fc.sql)
151
+ fc.calib_table = main_table(fc)
152
+ fc.calib_overflow = overflow(profile, fc.calib_table)
153
+ if not p or fc.error or fc.seconds <= 0:
154
+ fc.calib_k = 1.0
155
+ continue
156
+ k, sigma = factor(fc.calib_class, fc.calib_overflow, p)
157
+ fc.calib_k = k
158
+ fc.seconds = fc.seconds * k
159
+ if sigma:
160
+ # keep at least the ladder's own spread
161
+ raw_sig = math.log(max(fc.raw_hi, 1e-9) / max(fc.raw_seconds, 1e-9)) / Z90 if fc.raw_seconds > 0 else 0.0
162
+ sig = max(float(sigma), raw_sig)
163
+ fc.lo, fc.hi = fc.seconds * math.exp(-Z90 * sig), fc.seconds * math.exp(Z90 * sig)
164
+ else:
165
+ fc.lo, fc.hi = fc.lo * k, fc.hi * k
@@ -0,0 +1,213 @@
1
+ {
2
+ "model": "M3",
3
+ "classes": {
4
+ "_default": {
5
+ "a": -0.046703526652465716,
6
+ "b": -0.01756345494356586,
7
+ "sigma": 0.6625814340761099
8
+ },
9
+ "create_index": {
10
+ "a": 0.02044381668009909,
11
+ "b": -0.01756345494356586,
12
+ "sigma": 0.5252148709147768
13
+ },
14
+ "unique": {
15
+ "a": 0.07558845241018008,
16
+ "b": -0.01756345494356586,
17
+ "sigma": 0.1768863667036391
18
+ },
19
+ "rewrite": {
20
+ "a": -0.07601015456802657,
21
+ "b": -0.01756345494356586,
22
+ "sigma": 0.48634647181181323
23
+ },
24
+ "check": {
25
+ "a": -0.37179184394787657,
26
+ "b": -0.01756345494356586,
27
+ "sigma": 0.6625814340761099
28
+ },
29
+ "fk_validate": {
30
+ "a": 0.07259294489569831,
31
+ "b": -0.01756345494356586,
32
+ "sigma": 0.7257338936775137
33
+ },
34
+ "dml": {
35
+ "a": -0.13346987093436574,
36
+ "b": -0.01756345494356586,
37
+ "sigma": 0.431802931175498
38
+ },
39
+ "other": {
40
+ "a": -0.05410223227033714,
41
+ "b": -0.01756345494356586,
42
+ "sigma": 1.335330217860266
43
+ },
44
+ "rebuild": {
45
+ "a": -0.09877914668734881,
46
+ "b": -0.01756345494356586,
47
+ "sigma": 0.498229123295042
48
+ },
49
+ "mv": {
50
+ "a": -0.36395018225236103,
51
+ "b": -0.01756345494356586,
52
+ "sigma": 0.6625814340761099
53
+ }
54
+ },
55
+ "borderline_band_lo": 0.8,
56
+ "remeasure_band": 0.8,
57
+ "remeasure_runs": 3,
58
+ "physics": {},
59
+ "fitted_on": [
60
+ "shop_bloated_pg17",
61
+ "shop_fresh_pg17_v7",
62
+ "shop_half_pg17",
63
+ "v4_holdout_seen",
64
+ "v5_holdout_seen",
65
+ "v6_holdout_seen"
66
+ ],
67
+ "lodo_mean_within30": 0.791206523095068,
68
+ "nested_lodo_mean_within30": 0.7726306717018792,
69
+ "probe": {
70
+ "ratio": {},
71
+ "n": {
72
+ "check": 10,
73
+ "fk": 4,
74
+ "not_null": 4
75
+ },
76
+ "band_lo": 0.2,
77
+ "band_hi": 5.0,
78
+ "cap_s": 25.0,
79
+ "cap_margin": 3.0,
80
+ "reps": 2,
81
+ "sigma": 0.3,
82
+ "detect_fail": false,
83
+ "rw": {
84
+ "band_lo": 0.3,
85
+ "band_hi": 3.0,
86
+ "cap_margin": 1.5,
87
+ "reps": 2,
88
+ "min_ratio": 1.25,
89
+ "lb_factor": 1.0
90
+ },
91
+ "ratio_v9_disabled": {
92
+ "check": 2.9204777581451316,
93
+ "fk": 2.6479986859251667,
94
+ "not_null": 3.3027093972736363
95
+ }
96
+ },
97
+ "fullsize": {
98
+ "band_lo": 0.4,
99
+ "band_hi": 2.5,
100
+ "budget_fraction": 0.05,
101
+ "budget_margin": 0.95,
102
+ "min_fraction": 0.5,
103
+ "reps": 3,
104
+ "max_reps": 7,
105
+ "spread": 0.15,
106
+ "k": {
107
+ "_default": 0.9723,
108
+ "other": 1.1164,
109
+ "create_index": 0.9462,
110
+ "dml": 0.8767,
111
+ "rewrite": 1.0215,
112
+ "unique": 1.0387,
113
+ "rebuild": 0.9218
114
+ },
115
+ "sigma": 0.15,
116
+ "fitted_on": "dev: v5/v6/v8 burned held-out + dev corpus (v9/run/dev/full_*.jsonl), v9/run/fit_full9.py",
117
+ "remeasure_band": [
118
+ 0.7,
119
+ 1.0
120
+ ],
121
+ "remeasure_min_runs": 5
122
+ },
123
+ "ub": {
124
+ "z": 1.0,
125
+ "sigma": {
126
+ "full": 0.2253,
127
+ "twin": 0.3238,
128
+ "probe": 0.3,
129
+ "exact": 0.006
130
+ },
131
+ "fitted_on": "dev: v5/v6/v8 burned held-out + dev corpus (v9/run/dev/full_*.jsonl), v9/run/fit_full9.py",
132
+ "table": [
133
+ [
134
+ 0.0,
135
+ 6,
136
+ 2
137
+ ],
138
+ [
139
+ 0.25,
140
+ 4,
141
+ 3
142
+ ],
143
+ [
144
+ 0.5,
145
+ 2,
146
+ 4
147
+ ],
148
+ [
149
+ 0.75,
150
+ 2,
151
+ 5
152
+ ],
153
+ [
154
+ 1.0,
155
+ 1,
156
+ 7
157
+ ],
158
+ [
159
+ 1.25,
160
+ 0,
161
+ 8
162
+ ],
163
+ [
164
+ 1.5,
165
+ 0,
166
+ 10
167
+ ],
168
+ [
169
+ 1.75,
170
+ 0,
171
+ 12
172
+ ],
173
+ [
174
+ 2.0,
175
+ 0,
176
+ 14
177
+ ],
178
+ [
179
+ 2.25,
180
+ 0,
181
+ 15
182
+ ],
183
+ [
184
+ 2.5,
185
+ 0,
186
+ 18
187
+ ],
188
+ [
189
+ 2.75,
190
+ 0,
191
+ 18
192
+ ],
193
+ [
194
+ 3.0,
195
+ 0,
196
+ 18
197
+ ]
198
+ ]
199
+ },
200
+ "remeasure_rowwrite": true,
201
+ "remeasure_band2": 0.9,
202
+ "remeasure_runs2": 3,
203
+ "dup": {
204
+ "cap_s": 20.0,
205
+ "sample_rows": 400000
206
+ },
207
+ "v10": {
208
+ "dml_twin_factor": 1.0,
209
+ "note": "dml twin factor 1.19 tried on dev and reverted to v9 (see dev_decisions); exact sigma for pg_sleep; dup probe caps",
210
+ "dev_decisions_2026_11_28": "dev-only (burned v9/v8/v6 sets, internal fit scripts): probe replacement disabled (timed-out probes saturated at cap x ratio, twin closer: within30 twin 7/8 vs probe 2/8); dml class factor back to v9 (twin dml over-forecast median x0.84 with x1.19); ub z=1.0 with v9 sigmas (FA 9/115, miss 0 on 115+ dev safe)",
211
+ "dev_decisions_round2": "round 2 dev (burned v10-r1 79 + v9 12 cases, final code ca02772): acc 0.917, FA 7/57, miss 0, fails 7/7, within30 0.92, coverage 0.98; z sweep FA+4*miss with earlier dev (v9/v8/v6, 115 safe) keeps z=1.0; exact (pg_sleep) sigma 0.02 -> 0.006 = dev rms 0.005 (fit10.py) + margin; 0.7-1.0 full re-measure band fired on 4 dev cases, changed no verdict (kept: costs ~2 runs, no harm)"
212
+ }
213
+ }
lockcast/calib_v5.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "model": "M2",
3
+ "classes": {
4
+ "_default": {
5
+ "a": -0.003713024187516283,
6
+ "b": 0.0,
7
+ "sigma": 0.42157039845986
8
+ },
9
+ "create_index": {
10
+ "a": 0.05310278495566245,
11
+ "b": 0.0,
12
+ "sigma": 0.258159793979882
13
+ },
14
+ "unique": {
15
+ "a": 0.10314545725072549,
16
+ "b": 0.0,
17
+ "sigma": 0.15
18
+ },
19
+ "rewrite": {
20
+ "a": -0.041866349610710264,
21
+ "b": 0.0,
22
+ "sigma": 0.1588041381041435
23
+ },
24
+ "check": {
25
+ "a": -0.18848955585869198,
26
+ "b": 0.0,
27
+ "sigma": 0.4225390500291105
28
+ },
29
+ "fk_validate": {
30
+ "a": 0.1247313927658877,
31
+ "b": 0.0,
32
+ "sigma": 0.5643575420534095
33
+ },
34
+ "dml": {
35
+ "a": -0.08910620280903533,
36
+ "b": 0.0,
37
+ "sigma": 0.43129131963867706
38
+ },
39
+ "other": {
40
+ "a": 0.006005388553171839,
41
+ "b": 0.0,
42
+ "sigma": 1.2039649388157634
43
+ },
44
+ "rebuild": {
45
+ "a": -0.05035697246230806,
46
+ "b": 0.0,
47
+ "sigma": 0.15
48
+ },
49
+ "mv": {
50
+ "a": -0.3460544903103252,
51
+ "b": 0.0,
52
+ "sigma": 0.3848511474340381
53
+ }
54
+ },
55
+ "borderline_band_lo": 0.0,
56
+ "fitted_on": [
57
+ "shop_bloated_pg17",
58
+ "shop_fresh_pg17",
59
+ "shop_half_pg17",
60
+ "v4_holdout_seen"
61
+ ],
62
+ "lodo_mean_within30": 0.7586978381096028
63
+ }
lockcast/calib_v6.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "model": "M0",
3
+ "classes": {
4
+ "_default": {
5
+ "a": 0.0,
6
+ "b": 0.0,
7
+ "sigma": 0.6419668025628783
8
+ },
9
+ "create_index": {
10
+ "a": 0.0,
11
+ "b": 0.0,
12
+ "sigma": 0.5131667040309804
13
+ },
14
+ "unique": {
15
+ "a": 0.0,
16
+ "b": 0.0,
17
+ "sigma": 0.3517751071638876
18
+ },
19
+ "rewrite": {
20
+ "a": 0.0,
21
+ "b": 0.0,
22
+ "sigma": 0.45003389334598015
23
+ },
24
+ "check": {
25
+ "a": 0.0,
26
+ "b": 0.0,
27
+ "sigma": 0.6316934387506475
28
+ },
29
+ "fk_validate": {
30
+ "a": 0.0,
31
+ "b": 0.0,
32
+ "sigma": 0.6486876883138447
33
+ },
34
+ "dml": {
35
+ "a": 0.0,
36
+ "b": 0.0,
37
+ "sigma": 0.4417144374841995
38
+ },
39
+ "other": {
40
+ "a": 0.0,
41
+ "b": 0.0,
42
+ "sigma": 1.2649414939440111
43
+ },
44
+ "rebuild": {
45
+ "a": 0.0,
46
+ "b": 0.0,
47
+ "sigma": 0.4972724013222453
48
+ },
49
+ "mv": {
50
+ "a": 0.0,
51
+ "b": 0.0,
52
+ "sigma": 0.6419668025628783
53
+ }
54
+ },
55
+ "borderline_band_lo": 0.85,
56
+ "fitted_on": [
57
+ "shop_bloated_pg17",
58
+ "shop_fresh_pg17_v6",
59
+ "shop_half_pg17",
60
+ "v4_holdout_seen",
61
+ "v5_holdout_seen"
62
+ ],
63
+ "lodo_mean_within30": 0.7118236012353659
64
+ }
lockcast/calib_v7.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "model": "M3",
3
+ "classes": {
4
+ "_default": {
5
+ "a": -0.046703526652465716,
6
+ "b": -0.01756345494356586,
7
+ "sigma": 0.6625814340761099
8
+ },
9
+ "create_index": {
10
+ "a": 0.02044381668009909,
11
+ "b": -0.01756345494356586,
12
+ "sigma": 0.5252148709147768
13
+ },
14
+ "unique": {
15
+ "a": 0.07558845241018008,
16
+ "b": -0.01756345494356586,
17
+ "sigma": 0.1768863667036391
18
+ },
19
+ "rewrite": {
20
+ "a": -0.07601015456802657,
21
+ "b": -0.01756345494356586,
22
+ "sigma": 0.48634647181181323
23
+ },
24
+ "check": {
25
+ "a": -0.37179184394787657,
26
+ "b": -0.01756345494356586,
27
+ "sigma": 0.6625814340761099
28
+ },
29
+ "fk_validate": {
30
+ "a": 0.07259294489569831,
31
+ "b": -0.01756345494356586,
32
+ "sigma": 0.7257338936775137
33
+ },
34
+ "dml": {
35
+ "a": -0.13346987093436574,
36
+ "b": -0.01756345494356586,
37
+ "sigma": 0.431802931175498
38
+ },
39
+ "other": {
40
+ "a": -0.05410223227033714,
41
+ "b": -0.01756345494356586,
42
+ "sigma": 1.335330217860266
43
+ },
44
+ "rebuild": {
45
+ "a": -0.09877914668734881,
46
+ "b": -0.01756345494356586,
47
+ "sigma": 0.498229123295042
48
+ },
49
+ "mv": {
50
+ "a": -0.36395018225236103,
51
+ "b": -0.01756345494356586,
52
+ "sigma": 0.6625814340761099
53
+ }
54
+ },
55
+ "borderline_band_lo": 0.9,
56
+ "remeasure_band": 0.9,
57
+ "remeasure_runs": 3,
58
+ "physics": {},
59
+ "fitted_on": [
60
+ "shop_bloated_pg17",
61
+ "shop_fresh_pg17_v7",
62
+ "shop_half_pg17",
63
+ "v4_holdout_seen",
64
+ "v5_holdout_seen",
65
+ "v6_holdout_seen"
66
+ ],
67
+ "lodo_mean_within30": 0.791206523095068,
68
+ "nested_lodo_mean_within30": 0.7726306717018792
69
+ }