pi-mega-compact 0.20.55 → 0.20.56

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.
@@ -0,0 +1,34 @@
1
+ /**
2
+ * config/vector-cortex-cosfp-real.ts — COS-FP-R real-corpus FP validation flag.
3
+ *
4
+ * Extracted from vector-cortex.ts so that barrel stays under the 300-line soft
5
+ * limit (soft-as-hard gate), exactly as vector-cortex-cosfp.ts and the other
6
+ * per-sprint flag siblings were. Gating the real-corpus L2 cosine false-positive
7
+ * validation: the `scripts/cosine-fp/real-bench.mjs` execution harness that runs
8
+ * only when a consented donated corpus exists, the execution-time report rows,
9
+ * and the evidence record. A pure-local, consent-gated tool (SECURITY_PRIVACY
10
+ * §Lifecycle/§Consent + EVAL-REDACT-002) — it never reads real session/ledger
11
+ * bytes without an explicit per-session consent record.
12
+ *
13
+ * The split is mechanical: COSINE_FP_REAL_ENABLED is byte-identical in name,
14
+ * semantics, and default to the sibling flag convention (positive, default ON),
15
+ * and vector-cortex.ts re-exports it so every existing
16
+ * `from "./config/vector-cortex.js"` import keeps resolving unchanged.
17
+ *
18
+ * Pi-agnostic, dependency-free (PREVENT-PI-004 / PREVENT-011).
19
+ */
20
+ import { sprintFlag } from "./vector-cortex-flag.js";
21
+ /**
22
+ * COS-FP-R — real-corpus L2 cosine FP validation against donated sessions.
23
+ * Default ON. `MEGACOMPACT_COSINE_FP_REAL=0` disables and is byte-identical to
24
+ * the predecessor: `scripts/cosine-fp/real-bench.mjs` is inert (nothing
25
+ * executes, no writes), no real-corpus report rows or evidence are written, and
26
+ * no threshold is adopted. When ON (default), execution still only proceeds when
27
+ * a valid consented corpus exists under `scripts/cosine-fp/corpus/` — absent
28
+ * corpus is the normative `no_corpus` pre-donation state, not a failure. Corpus
29
+ * bytes are read only for sessions with an explicit, append-only, revocable
30
+ * consent record (SECURITY_PRIVACY §Lifecycle/§Consent). This flag MUST also be
31
+ * a dashboard SETTINGS toggle (visible in config UI, never in EXCLUDED_SETTINGS).
32
+ * The harness performs only local filesystem reads (PREVENT-PI-004).
33
+ */
34
+ export const COSINE_FP_REAL_ENABLED = () => sprintFlag("MEGACOMPACT_COSINE_FP_REAL");
@@ -34,6 +34,8 @@ export { ENC_0F_ENABLED } from "./vector-cortex-enc0f.js";
34
34
  export { ENC_0G_ENABLED } from "./vector-cortex-enc0g.js";
35
35
  // COS-FP-A synthetic FP harness flag extracted to vector-cortex-cosfp.ts.
36
36
  export { COSINE_FP_BENCH_ENABLED } from "./vector-cortex-cosfp.js";
37
+ // COS-FP-R real-corpus FP validation flag extracted to vector-cortex-cosfp-real.ts.
38
+ export { COSINE_FP_REAL_ENABLED } from "./vector-cortex-cosfp-real.js";
37
39
  export { ENC_1A_ENABLED } from "./vector-cortex-enc1a.js";
38
40
  export { ENC_1B_ENABLED, ENC_1B_MAX_EMBEDDING_DIM, ENC_1B_EMBEDDING_DIM_ENV, ENC_1B_EMBEDDING_HEADERS_ENV, ENC_1B_ALLOW_REMOTE_EMBEDDER_ENV, ENC_1B_ENCODER_NATIVE_ENV, } from "./vector-cortex-enc1b.js";
39
41
  export { ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, } from "./vector-cortex-enc2budget.js";
package/dist/config.js CHANGED
@@ -114,4 +114,4 @@ export const NEW_UI = () => ragEnabled("MEGACOMPACT_NEW_UI");
114
114
  // default ON, `=0`/`_DISABLED` off. Re-exported from src/config/vector-cortex.ts
115
115
  // so root consumers share one source of truth.
116
116
  // ---------------------------------------------------------------------------
117
- export { VC0A_ENABLED, VC0B_ENABLED, VC1A_ENABLED, VC0C_ENABLED, VC1B_ENABLED, VC1C_ENABLED, VC2A_ENABLED, VC2B_ENABLED, VC2C_ENABLED, VC3A_ENABLED, VC3B_ENABLED, VC3C_ENABLED, VC4A_ENABLED, VC4B_ENABLED, VC4C_ENABLED, VC5A_ENABLED, VC5B_ENABLED, VC5C_ENABLED, VC6A_ENABLED, VC6B_ENABLED, VC6C_ENABLED, VC7A_ENABLED, VC7B_ENABLED, VC7C_ENABLED, VC8A_ENABLED, VC8B_ENABLED, VC8C_ENABLED, VC9A_ENABLED, VC9B_ENABLED, VC9C_ENABLED, VC9D_ENABLED, PCC_ENABLED, ML5A_ENABLED, ML5B_ENABLED, ML5C_ENABLED, ML5D_ENABLED, ML5E_ENABLED, DEDUP_ATTR_ENABLED, ENC_0A_ENABLED, ENC_0B_ENABLED, ENC_0C_ENABLED, ENC_0D_ENABLED, ENC_0E_ENABLED, ENC_0F_ENABLED, ENC_0G_ENABLED, ENC_1A_ENABLED, ENC_1B_ENABLED, ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, COSINE_FP_BENCH_ENABLED, BREAKER_WINDOW_MS, BREAKER_MIN_ATTEMPTS, BREAKER_PERF_FAILURES, BREAKER_PERF_FAILURE_RATE, BREAKER_CORRECTNESS_FAILURES, BREAKER_COOLDOWN_MS, BREAKER_PROBE_COUNT, BREAKER_RETRY_BASE_MS, BREAKER_RETRY_CAP_MS, BREAKER_RETRY_JITTER, BREAKER_HYSTERESIS_FAILURE_RATE, BREAKER_HYSTERESIS_BUDGET_P95_MS, BREAKER_MIN_HEALTHY_RESIDENCE_MS, } from "./config/vector-cortex.js";
117
+ export { VC0A_ENABLED, VC0B_ENABLED, VC1A_ENABLED, VC0C_ENABLED, VC1B_ENABLED, VC1C_ENABLED, VC2A_ENABLED, VC2B_ENABLED, VC2C_ENABLED, VC3A_ENABLED, VC3B_ENABLED, VC3C_ENABLED, VC4A_ENABLED, VC4B_ENABLED, VC4C_ENABLED, VC5A_ENABLED, VC5B_ENABLED, VC5C_ENABLED, VC6A_ENABLED, VC6B_ENABLED, VC6C_ENABLED, VC7A_ENABLED, VC7B_ENABLED, VC7C_ENABLED, VC8A_ENABLED, VC8B_ENABLED, VC8C_ENABLED, VC9A_ENABLED, VC9B_ENABLED, VC9C_ENABLED, VC9D_ENABLED, PCC_ENABLED, ML5A_ENABLED, ML5B_ENABLED, ML5C_ENABLED, ML5D_ENABLED, ML5E_ENABLED, DEDUP_ATTR_ENABLED, ENC_0A_ENABLED, ENC_0B_ENABLED, ENC_0C_ENABLED, ENC_0D_ENABLED, ENC_0E_ENABLED, ENC_0F_ENABLED, ENC_0G_ENABLED, ENC_1A_ENABLED, ENC_1B_ENABLED, ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, COSINE_FP_BENCH_ENABLED, COSINE_FP_REAL_ENABLED, BREAKER_WINDOW_MS, BREAKER_MIN_ATTEMPTS, BREAKER_PERF_FAILURES, BREAKER_PERF_FAILURE_RATE, BREAKER_CORRECTNESS_FAILURES, BREAKER_COOLDOWN_MS, BREAKER_PROBE_COUNT, BREAKER_RETRY_BASE_MS, BREAKER_RETRY_CAP_MS, BREAKER_RETRY_JITTER, BREAKER_HYSTERESIS_FAILURE_RATE, BREAKER_HYSTERESIS_BUDGET_P95_MS, BREAKER_MIN_HEALTHY_RESIDENCE_MS, } from "./config/vector-cortex.js";
@@ -69,5 +69,6 @@ export const VECTOR_CORTEX_SETTINGS = {
69
69
  boolDirect("MEGACOMPACT_ENC_1B", "ENC-1b ONNX runtime backend + embedder API settings", "ENC-1b completes the embedder API Settings surface (dim / headers / allow-remote persisted to the per-repo .mega-compact.env) and surfaces the ONNX runtime selection knob (MEGACOMPACT_ENCODER_NATIVE) as a toggle plus the current effective backend + demotion reason. OFF = no new GET fields, no writer branch, no new Settings rows or toggle (byte-identical ENC-1a predecessor).", true),
70
70
  boolDirect("MEGACOMPACT_ENC_2BUDGET", "ENC-2a operator-configurable native install-budget knob", "ENC-2a exposes the runtime operator knob MEGACOMPACT_NATIVE_ORT_BUDGET_MIB (default 300 MiB, clamp 8192) as a dashboard Settings field. The knob gates budgetOk in the encoder runtime decision (decision.ts installBudgetMib + runtime-select.ts selectRuntimeBackend). Persisted to the per-repo .mega-compact.env via the setup-configure writer branch; the GET status route surfaces the persisted value AND the effective integer installBudgetMib() resolves to (so the dashboard shows the runtime's actual operand). OFF = no new GET fields, no writer branch, no new Settings rows (byte-identical ENC-1b predecessor).", true),
71
71
  boolDirect("MEGACOMPACT_COSINE_FP_BENCH", "COS-FP-A Synthetic FP Bench", "Synthetic FP harness + L2 cosine threshold calibration (COS-FP-A): drives the deterministic synthetic-corpus grid sweep (scripts/cosine-fp/bench.mjs) that measures L2 cosine false-positive rates and emits a recommended default, and serves the reader-only GET /api/cosine-fp-report. Synthetic-corpus-only — never reads real session/ledger bytes. OFF = bench inert, endpoint 404s, no report write, L2_COSINE plain MEGACOMPACT_L2_THRESHOLD (byte-identical predecessor).", true),
72
+ boolDirect("MEGACOMPACT_COSINE_FP_REAL", "COS-FP-R Real-Corpus Validation", "Real-corpus L2 cosine FP validation (COS-FP-R): runs the real-corpus grid sweep (scripts/cosine-fp/real-bench.mjs) against donated, consent-approved sessions only (SECURITY_PRIVACY Lifecycle/Consent), scoring FP/FN with Wilson intervals + session-grouped bootstrap, and appends CI-backed per-content-type recommendations to the cosine-threshold report. Runs only when a valid consented corpus exists; absent corpus = no_corpus (normative pre-donation state, nothing written). OFF = script inert, nothing executes, no writes (byte-identical predecessor).", true),
72
73
  ],
73
74
  };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * config/vector-cortex-cosfp-real.ts — COS-FP-R real-corpus FP validation flag.
3
+ *
4
+ * Extracted from vector-cortex.ts so that barrel stays under the 300-line soft
5
+ * limit (soft-as-hard gate), exactly as vector-cortex-cosfp.ts and the other
6
+ * per-sprint flag siblings were. Gating the real-corpus L2 cosine false-positive
7
+ * validation: the `scripts/cosine-fp/real-bench.mjs` execution harness that runs
8
+ * only when a consented donated corpus exists, the execution-time report rows,
9
+ * and the evidence record. A pure-local, consent-gated tool (SECURITY_PRIVACY
10
+ * §Lifecycle/§Consent + EVAL-REDACT-002) — it never reads real session/ledger
11
+ * bytes without an explicit per-session consent record.
12
+ *
13
+ * The split is mechanical: COSINE_FP_REAL_ENABLED is byte-identical in name,
14
+ * semantics, and default to the sibling flag convention (positive, default ON),
15
+ * and vector-cortex.ts re-exports it so every existing
16
+ * `from "./config/vector-cortex.js"` import keeps resolving unchanged.
17
+ *
18
+ * Pi-agnostic, dependency-free (PREVENT-PI-004 / PREVENT-011).
19
+ */
20
+ import { sprintFlag } from "./vector-cortex-flag.js";
21
+ /**
22
+ * COS-FP-R — real-corpus L2 cosine FP validation against donated sessions.
23
+ * Default ON. `MEGACOMPACT_COSINE_FP_REAL=0` disables and is byte-identical to
24
+ * the predecessor: `scripts/cosine-fp/real-bench.mjs` is inert (nothing
25
+ * executes, no writes), no real-corpus report rows or evidence are written, and
26
+ * no threshold is adopted. When ON (default), execution still only proceeds when
27
+ * a valid consented corpus exists under `scripts/cosine-fp/corpus/` — absent
28
+ * corpus is the normative `no_corpus` pre-donation state, not a failure. Corpus
29
+ * bytes are read only for sessions with an explicit, append-only, revocable
30
+ * consent record (SECURITY_PRIVACY §Lifecycle/§Consent). This flag MUST also be
31
+ * a dashboard SETTINGS toggle (visible in config UI, never in EXCLUDED_SETTINGS).
32
+ * The harness performs only local filesystem reads (PREVENT-PI-004).
33
+ */
34
+ export const COSINE_FP_REAL_ENABLED = () => sprintFlag("MEGACOMPACT_COSINE_FP_REAL");
@@ -34,6 +34,8 @@ export { ENC_0F_ENABLED } from "./vector-cortex-enc0f.js";
34
34
  export { ENC_0G_ENABLED } from "./vector-cortex-enc0g.js";
35
35
  // COS-FP-A synthetic FP harness flag extracted to vector-cortex-cosfp.ts.
36
36
  export { COSINE_FP_BENCH_ENABLED } from "./vector-cortex-cosfp.js";
37
+ // COS-FP-R real-corpus FP validation flag extracted to vector-cortex-cosfp-real.ts.
38
+ export { COSINE_FP_REAL_ENABLED } from "./vector-cortex-cosfp-real.js";
37
39
  export { ENC_1A_ENABLED } from "./vector-cortex-enc1a.js";
38
40
  export { ENC_1B_ENABLED, ENC_1B_MAX_EMBEDDING_DIM, ENC_1B_EMBEDDING_DIM_ENV, ENC_1B_EMBEDDING_HEADERS_ENV, ENC_1B_ALLOW_REMOTE_EMBEDDER_ENV, ENC_1B_ENCODER_NATIVE_ENV, } from "./vector-cortex-enc1b.js";
39
41
  export { ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, } from "./vector-cortex-enc2budget.js";
@@ -114,4 +114,4 @@ export const NEW_UI = () => ragEnabled("MEGACOMPACT_NEW_UI");
114
114
  // default ON, `=0`/`_DISABLED` off. Re-exported from src/config/vector-cortex.ts
115
115
  // so root consumers share one source of truth.
116
116
  // ---------------------------------------------------------------------------
117
- export { VC0A_ENABLED, VC0B_ENABLED, VC1A_ENABLED, VC0C_ENABLED, VC1B_ENABLED, VC1C_ENABLED, VC2A_ENABLED, VC2B_ENABLED, VC2C_ENABLED, VC3A_ENABLED, VC3B_ENABLED, VC3C_ENABLED, VC4A_ENABLED, VC4B_ENABLED, VC4C_ENABLED, VC5A_ENABLED, VC5B_ENABLED, VC5C_ENABLED, VC6A_ENABLED, VC6B_ENABLED, VC6C_ENABLED, VC7A_ENABLED, VC7B_ENABLED, VC7C_ENABLED, VC8A_ENABLED, VC8B_ENABLED, VC8C_ENABLED, VC9A_ENABLED, VC9B_ENABLED, VC9C_ENABLED, VC9D_ENABLED, PCC_ENABLED, ML5A_ENABLED, ML5B_ENABLED, ML5C_ENABLED, ML5D_ENABLED, ML5E_ENABLED, DEDUP_ATTR_ENABLED, ENC_0A_ENABLED, ENC_0B_ENABLED, ENC_0C_ENABLED, ENC_0D_ENABLED, ENC_0E_ENABLED, ENC_0F_ENABLED, ENC_0G_ENABLED, ENC_1A_ENABLED, ENC_1B_ENABLED, ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, COSINE_FP_BENCH_ENABLED, BREAKER_WINDOW_MS, BREAKER_MIN_ATTEMPTS, BREAKER_PERF_FAILURES, BREAKER_PERF_FAILURE_RATE, BREAKER_CORRECTNESS_FAILURES, BREAKER_COOLDOWN_MS, BREAKER_PROBE_COUNT, BREAKER_RETRY_BASE_MS, BREAKER_RETRY_CAP_MS, BREAKER_RETRY_JITTER, BREAKER_HYSTERESIS_FAILURE_RATE, BREAKER_HYSTERESIS_BUDGET_P95_MS, BREAKER_MIN_HEALTHY_RESIDENCE_MS, } from "./config/vector-cortex.js";
117
+ export { VC0A_ENABLED, VC0B_ENABLED, VC1A_ENABLED, VC0C_ENABLED, VC1B_ENABLED, VC1C_ENABLED, VC2A_ENABLED, VC2B_ENABLED, VC2C_ENABLED, VC3A_ENABLED, VC3B_ENABLED, VC3C_ENABLED, VC4A_ENABLED, VC4B_ENABLED, VC4C_ENABLED, VC5A_ENABLED, VC5B_ENABLED, VC5C_ENABLED, VC6A_ENABLED, VC6B_ENABLED, VC6C_ENABLED, VC7A_ENABLED, VC7B_ENABLED, VC7C_ENABLED, VC8A_ENABLED, VC8B_ENABLED, VC8C_ENABLED, VC9A_ENABLED, VC9B_ENABLED, VC9C_ENABLED, VC9D_ENABLED, PCC_ENABLED, ML5A_ENABLED, ML5B_ENABLED, ML5C_ENABLED, ML5D_ENABLED, ML5E_ENABLED, DEDUP_ATTR_ENABLED, ENC_0A_ENABLED, ENC_0B_ENABLED, ENC_0C_ENABLED, ENC_0D_ENABLED, ENC_0E_ENABLED, ENC_0F_ENABLED, ENC_0G_ENABLED, ENC_1A_ENABLED, ENC_1B_ENABLED, ENC_2BUDGET_ENABLED, ENC_2BUDGET_NATIVE_ORT_BUDGET_ENV, ENC_2BUDGET_MAX_MIB, ENC_2BUDGET_DEFAULT_MIB, COSINE_FP_BENCH_ENABLED, COSINE_FP_REAL_ENABLED, BREAKER_WINDOW_MS, BREAKER_MIN_ATTEMPTS, BREAKER_PERF_FAILURES, BREAKER_PERF_FAILURE_RATE, BREAKER_CORRECTNESS_FAILURES, BREAKER_COOLDOWN_MS, BREAKER_PROBE_COUNT, BREAKER_RETRY_BASE_MS, BREAKER_RETRY_CAP_MS, BREAKER_RETRY_JITTER, BREAKER_HYSTERESIS_FAILURE_RATE, BREAKER_HYSTERESIS_BUDGET_P95_MS, BREAKER_MIN_HEALTHY_RESIDENCE_MS, } from "./config/vector-cortex.js";
@@ -318,5 +318,11 @@ export const VECTOR_CORTEX_SETTINGS: SettingGroup = {
318
318
  "Synthetic FP harness + L2 cosine threshold calibration (COS-FP-A): drives the deterministic synthetic-corpus grid sweep (scripts/cosine-fp/bench.mjs) that measures L2 cosine false-positive rates and emits a recommended default, and serves the reader-only GET /api/cosine-fp-report. Synthetic-corpus-only — never reads real session/ledger bytes. OFF = bench inert, endpoint 404s, no report write, L2_COSINE plain MEGACOMPACT_L2_THRESHOLD (byte-identical predecessor).",
319
319
  true,
320
320
  ),
321
+ boolDirect(
322
+ "MEGACOMPACT_COSINE_FP_REAL",
323
+ "COS-FP-R Real-Corpus Validation",
324
+ "Real-corpus L2 cosine FP validation (COS-FP-R): runs the real-corpus grid sweep (scripts/cosine-fp/real-bench.mjs) against donated, consent-approved sessions only (SECURITY_PRIVACY Lifecycle/Consent), scoring FP/FN with Wilson intervals + session-grouped bootstrap, and appends CI-backed per-content-type recommendations to the cosine-threshold report. Runs only when a valid consented corpus exists; absent corpus = no_corpus (normative pre-donation state, nothing written). OFF = script inert, nothing executes, no writes (byte-identical predecessor).",
325
+ true,
326
+ ),
321
327
  ],
322
328
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mega-compact",
3
- "version": "0.20.55",
3
+ "version": "0.20.56",
4
4
  "description": "Layered, local, vector-backed context compressor for pi — supersede/collapse/cluster compaction with deduped inline recall.",
5
5
  "type": "module",
6
6
  "license": "BSD-3-Clause",
@@ -0,0 +1,37 @@
1
+ /**
2
+ * config/vector-cortex-cosfp-real.ts — COS-FP-R real-corpus FP validation flag.
3
+ *
4
+ * Extracted from vector-cortex.ts so that barrel stays under the 300-line soft
5
+ * limit (soft-as-hard gate), exactly as vector-cortex-cosfp.ts and the other
6
+ * per-sprint flag siblings were. Gating the real-corpus L2 cosine false-positive
7
+ * validation: the `scripts/cosine-fp/real-bench.mjs` execution harness that runs
8
+ * only when a consented donated corpus exists, the execution-time report rows,
9
+ * and the evidence record. A pure-local, consent-gated tool (SECURITY_PRIVACY
10
+ * §Lifecycle/§Consent + EVAL-REDACT-002) — it never reads real session/ledger
11
+ * bytes without an explicit per-session consent record.
12
+ *
13
+ * The split is mechanical: COSINE_FP_REAL_ENABLED is byte-identical in name,
14
+ * semantics, and default to the sibling flag convention (positive, default ON),
15
+ * and vector-cortex.ts re-exports it so every existing
16
+ * `from "./config/vector-cortex.js"` import keeps resolving unchanged.
17
+ *
18
+ * Pi-agnostic, dependency-free (PREVENT-PI-004 / PREVENT-011).
19
+ */
20
+
21
+ import { sprintFlag } from "./vector-cortex-flag.js";
22
+
23
+ /**
24
+ * COS-FP-R — real-corpus L2 cosine FP validation against donated sessions.
25
+ * Default ON. `MEGACOMPACT_COSINE_FP_REAL=0` disables and is byte-identical to
26
+ * the predecessor: `scripts/cosine-fp/real-bench.mjs` is inert (nothing
27
+ * executes, no writes), no real-corpus report rows or evidence are written, and
28
+ * no threshold is adopted. When ON (default), execution still only proceeds when
29
+ * a valid consented corpus exists under `scripts/cosine-fp/corpus/` — absent
30
+ * corpus is the normative `no_corpus` pre-donation state, not a failure. Corpus
31
+ * bytes are read only for sessions with an explicit, append-only, revocable
32
+ * consent record (SECURITY_PRIVACY §Lifecycle/§Consent). This flag MUST also be
33
+ * a dashboard SETTINGS toggle (visible in config UI, never in EXCLUDED_SETTINGS).
34
+ * The harness performs only local filesystem reads (PREVENT-PI-004).
35
+ */
36
+ export const COSINE_FP_REAL_ENABLED = (): boolean =>
37
+ sprintFlag("MEGACOMPACT_COSINE_FP_REAL");
@@ -64,6 +64,8 @@ export { ENC_0F_ENABLED } from "./vector-cortex-enc0f.js";
64
64
  export { ENC_0G_ENABLED } from "./vector-cortex-enc0g.js";
65
65
  // COS-FP-A synthetic FP harness flag extracted to vector-cortex-cosfp.ts.
66
66
  export { COSINE_FP_BENCH_ENABLED } from "./vector-cortex-cosfp.js";
67
+ // COS-FP-R real-corpus FP validation flag extracted to vector-cortex-cosfp-real.ts.
68
+ export { COSINE_FP_REAL_ENABLED } from "./vector-cortex-cosfp-real.js";
67
69
  export { ENC_1A_ENABLED } from "./vector-cortex-enc1a.js";
68
70
  export {
69
71
  ENC_1B_ENABLED,
package/src/config.ts CHANGED
@@ -203,6 +203,7 @@ export {
203
203
  ENC_2BUDGET_MAX_MIB,
204
204
  ENC_2BUDGET_DEFAULT_MIB,
205
205
  COSINE_FP_BENCH_ENABLED,
206
+ COSINE_FP_REAL_ENABLED,
206
207
  BREAKER_WINDOW_MS,
207
208
  BREAKER_MIN_ATTEMPTS,
208
209
  BREAKER_PERF_FAILURES,