Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/22c3327c4a716afd # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-mv#1002 (code only) closed derived `22c3327c4a716afd` #1002 Imported from GitHub aien-dev/omega-mv#1002 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `474197e4fa0207e0e2fb3c0494594a975f5031fa` · Head `3b11c54e07adde0ac6bb2662d0c99e90da99b57d` ### Apply it ``` git checkout -b patch-22c3327c4a716afd 474197e4fa0207e0e2fb3c0494594a975f5031fa curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/22c3327c4a716afd.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 1002 3b11c54e07adde0ac6bb2662d0c99e90da99b57d ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1002,"url":"https://github.com/aien-dev/omega-mv/pull/1002","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:12Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index be65a11da..700fbd7c2 100644 --- a/.crumb +++ b/.crumb @@ -42,80 +42,80 @@ "children": [ { "digest": "9f19f11674ca5dfc3c9c3ae35fe6106557aee9583210da13d257e1b9d88e052c", - "last_commit": "6d7b8838", + "last_commit": "d863780eb", "name": "calibration", "purpose": "Directory calibration. Purpose not yet described by a human." }, { "digest": "04e29f5d9ae8a6cd51274c7db61c1950eb61bc1b31d3218ac7b3429fab226454", - "last_commit": "3a163bc5", + "last_commit": "9920aab14", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae", - "last_commit": "6d7b8838", + "last_commit": "30bb116cc", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { "digest": "c0668c8969cceab0f03ac6ab352ae579c8b473a9ec743d80c89fc187b769c12c", - "last_commit": "22011cbc", + "last_commit": "22011cbc9", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, { "digest": "91240540c9ee1e700d416b426016045616cbdde56d6ba81d64fedb801fbfdc2d", - "last_commit": "3a163bc5", + "last_commit": "9920aab14", "name": "native", "purpose": "Handwritten .om units of omega-mv that are not part of the seed ladder: the ORIG-4 shadow adviso" }, { "digest": "cd4b85a7affc81e19b0ff45eb80ba33534d9f6aee672a3afdd6480e0dbb7f77f", - "last_commit": "f09ab0a8", + "last_commit": "474197e4f", "name": "neuralese", "purpose": "Bounded untrusted representation envelopes and explicit checked Omega decoding; learned extensio" }, { "digest": "c73d74e9c743c8b541ec2418e815095d748e2e15d0b89857d683dbd5b76b3bf9", - "last_commit": "613765d2", + "last_commit": "613765d2b", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, { - "digest": "c48e49ac936f1ca243f52f7464c9503249e1c057a7fd64d405c369efda42ca69", - "last_commit": "6d7b8838", + "digest": "18cd9ce64969204d94b2c93ffa14e83324eebdc71b2c8b468bcaa0b02eee19cf", + "last_commit": "1b9e0b553", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "0b45b3b8037fb89222c06563d9cde31caf762b9751994fafa603e1c84d350d91", - "last_commit": "3a163bc5", + "last_commit": "9920aab14", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "52b6d20a3bcf5d1f87ba57298618bbfefea29df48d67e6c7c18f9b65db5c1f01", - "last_commit": "089d6325", + "digest": "0a1bedfebbcc0e923a70af1b3537bc5af1f45a79c527e517aace0bf4c5287dcf", + "last_commit": "1b9e0b553", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "c9c0eb6fcb03f5be2576714a9b49e2ead49190277059fcbbd253f49db07c047d", - "last_commit": "22011cbc", + "last_commit": "22011cbc9", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:a43a79d2fdd8aca741af8621df8616353e542a3125cf82ed20dd211b3b7c5ca1", - "compiled_at": "2026-10-31T10:52:10Z", + "children_root": "sha256:4e9a2616f1e6d97483b7a19e1307f08be3211a35f678e2fa9fc4431b6eb4d0c2", + "compiled_at": "2026-10-31T12:25:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:9ad5f63dc481f60c32817462805398bf08689b2bda39d4d5cc8390be49d4f5ac", + "digest": "sha256:3e6920173e0c20fa6635373b1662f5ba5bdcfe913361e7e3da8ceb509d7f9f62", "evidence_files": 14989, "evidence_root": "sha256:90148c46bbc2cd096c96064273ac90d63efb54260fe285e18d84429cdf657830", "files": 23227, - "generated_at_commit": "f09ab0a8710d9497f749cee1226c8fef031105ab", - "source_tree": "sha256:330abed41861279b8690b6884c5c6d9e4e5acef214c86af4e678e92f3f378e44" + "generated_at_commit": "1b9e0b5530e5956f8967940fb001d632f0e61859", + "source_tree": "sha256:c653a756cdc759c2efaf070b9c920b46849e8614bce673b8d9bdf1be42a79df2" }, "owner_lane": "", "provenance": { diff --git a/spec/.crumb b/spec/.crumb index 95dbe69e2..39741ad38 100644 --- a/spec/.crumb +++ b/spec/.crumb @@ -20,14 +20,14 @@ } ], "children_root": "sha256:6834a3241647d3a098283d4eafedbdb1428dfa4d834f9ed5f22025b6d2303093", - "compiled_at": "2026-10-30T18:10:55Z", + "compiled_at": "2026-10-31T12:25:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:c48e49ac936f1ca243f52f7464c9503249e1c057a7fd64d405c369efda42ca69", + "digest": "sha256:18cd9ce64969204d94b2c93ffa14e83324eebdc71b2c8b468bcaa0b02eee19cf", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 86, - "generated_at_commit": "76a6ceeefb359cc68f58f87898f5b3a46c0686fc", - "source_tree": "sha256:47262c75fb3e4d6dfbc8ea9504f5893d95a78c5cfcbf184d767541e0c09246c2" + "generated_at_commit": "1b9e0b5530e5956f8967940fb001d632f0e61859", + "source_tree": "sha256:16d68c407eb47bb504cac08596e2a93b8cf790aa9229d41bf78fd426f223a9fc" }, "owner_lane": "", "provenance": { diff --git a/spec/empirical-optimizer.md b/spec/empirical-optimizer.md index 798ed1d98..d53dc7a9a 100644 --- a/spec/empirical-optimizer.md +++ b/spec/empirical-optimizer.md @@ -68,7 +68,7 @@ The best choice depends on shape and core class together. A rule of the form | failure probability | Beta posterior from verification refusals and wrong results; any failure excludes the arm | | verification cost | measured, ns, per arm | | recompute cost | synthesis + verification ns | -| contention | H3 cost over H1 cost for the same job. The quietest core is chosen per phase, so the two tables may come from different cores of the same class | +| contention | H3 cost over H1 cost for the same job. The quietest core is chosen per phase, so the two tables may come from different cores of the same class. Only cores in the process's affinity mask are candidates; a core class with no allowed core is absent from the run | | quality | exact: output digest equal to the reference's | | transfer cost | not measured: one shared-memory CPU, no device transfer in this operation | @@ -122,7 +122,13 @@ EI = E[max(0, log2 cost(chosen) − log2 cost(competitor))] the fastest of three chunks of that run's calls. - **Budget:** exploration may not exceed 5% of chosen work plus 0.5 ms. A measurement starts only below that line, so the total can overshoot it by - at most one probe. The receipt checks this. + at most one probe. The receipt checks this over the whole held-out run of a + core class, because H1, H2 and H3 share one online model: no measurement + may start at or over the line, and the total may exceed the line by no more + than the last charge. A held-out group that measures nothing inherits the + previous group's overshoot and is judged against that charge, not against + zero. A self-test that does no timing drives `rx_cm_decide` through exactly + that sequence on every run. The first Spark runs used 10% plus 20 ms, then 10% plus 2 ms. The online learner then failed the 5%-under-the-fixed-rule criterion (0.953 of the rule on X925 H2), and the budget was tightened to 5% plus 0.5 ms after seeing diff --git a/tests/.crumb b/tests/.crumb index 408382c84..2cfdee8e1 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -271,8 +271,8 @@ "purpose": "Reservoir tests (omega#440): Gate 1 simulator and readout checks against an independent binary64" }, { - "digest": "891ced287901fa14a10e93dce7dae2ada551f7b69752098f957d1471bff4d072", - "last_commit": "f5c9bd89a", + "digest": "bd7d40c4941f8820fb03ff558b323e41a80edf02caf0068baf7307ed855dcaa5", + "last_commit": "1b9e0b553", "name": "runtime", "purpose": "Directory tests/runtime. Purpose not yet described by a human." }, @@ -307,15 +307,15 @@ "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:4e202b52b2c80d88dc93220a0c00cda479e52c2e63f847fbb30b9b1f426294f5", - "compiled_at": "2026-10-31T08:45:51Z", + "children_root": "sha256:de9b552720cd8a79c9152deabd8c8087c756688d8a849af5e987373f2d0c512d", + "compiled_at": "2026-10-31T12:25:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:52b6d20a3bcf5d1f87ba57298618bbfefea29df48d67e6c7c18f9b65db5c1f01", + "digest": "sha256:0a1bedfebbcc0e923a70af1b3537bc5af1f45a79c527e517aace0bf4c5287dcf", "evidence_files": 74, "evidence_root": "sha256:9aa38bf7dcfa5eb3499356a0a2a1dd7704fedfae2d16822a7c9e1400f3a72723", "files": 2047, - "generated_at_commit": "c11e0a66f739f9a810dec0a4ce2ec3a6fe2016ef", - "source_tree": "sha256:8ac1eaf198cb82bbd8cde3c8a8cc3b1a7be9466812042730cad83e19b3d1bf51" + "generated_at_commit": "1b9e0b5530e5956f8967940fb001d632f0e61859", + "source_tree": "sha256:642df6ca0dad60e320b57318643b02c41ac8bf9b6cfef4a3a03586260d8f289b" }, "owner_lane": "", "provenance": { diff --git a/tests/runtime/.crumb b/tests/runtime/.crumb index fea74978d..32871f3ba 100644 --- a/tests/runtime/.crumb +++ b/tests/runtime/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-30T18:10:55Z", + "compiled_at": "2026-10-31T12:25:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:891ced287901fa14a10e93dce7dae2ada551f7b69752098f957d1471bff4d072", + "digest": "sha256:bd7d40c4941f8820fb03ff558b323e41a80edf02caf0068baf7307ed855dcaa5", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 70, - "generated_at_commit": "76a6ceeefb359cc68f58f87898f5b3a46c0686fc", - "source_tree": "sha256:b977b69dd76bf6b829b20fcb4add6288f332c137cfef21815cc78a7feb92a918" + "generated_at_commit": "1b9e0b5530e5956f8967940fb001d632f0e61859", + "source_tree": "sha256:95a4f85487a355d9a5b1e8315c3b6131ce63b079bc10579dea6d3543735e6f6a" }, "owner_lane": "", "provenance": { diff --git a/tests/runtime/rx_empirical_optimizer.c b/tests/runtime/rx_empirical_optimizer.c index 3b6e5dadc..3961d1bb3 100644 --- a/tests/runtime/rx_empirical_optimizer.c +++ b/tests/runtime/rx_empirical_optimizer.c @@ -243,6 +243,7 @@ typedef struct { static CoreClass g_class[RX_CM_CORES]; static char g_cpus_desc[256]; +static cpu_set_t g_allowed; /* the affinity mask the test started with: the only cpus it may use */ static void discover(void) { g_class[RX_CM_CORE_X925] = (CoreClass){ .name = "Cortex-X925", .meter = "cpu_p", @@ -251,8 +252,12 @@ static void discover(void) { .cache_bytes = 512u << 10 }; g_class[RX_CM_CORE_OTHER] = (CoreClass){ .name = "other", .meter = NULL, .cache_bytes = 1u << 20 }; + CPU_ZERO(&g_allowed); + if (sched_getaffinity(0, sizeof g_allowed, &g_allowed) != 0) + for (int c = 0; c < 64; c++) CPU_SET(c, &g_allowed); long n = sysconf(_SC_NPROCESSORS_CONF); for (long c = 0; c < n && c < 64; c++) { + if (!CPU_ISSET((int)c, &g_allowed)) continue; /* taskset/cgroup: not ours to time on */ char path[128]; snprintf(path, sizeof path, "/sys/devices/system/cpu/cpu%ld/regs/identification/midr_el1", c); FILE *fp = fopen(path, "r"); @@ -520,7 +525,7 @@ static void pressure_on(int timed) { long n = sysconf(_SC_NPROCESSORS_CONF); g_press_n = 0; for (long c = n - 1; c >= 0 && g_press_n < PRESS_THREADS; c--) { - if ((int)c == timed) continue; + if ((int)c == timed || !CPU_ISSET((int)c, &g_allowed)) continue; g_press_arg[g_press_n] = (PressArg){ (int)c, g_press_n }; if (pthread_create(&g_press[g_press_n], NULL, press_main, &g_press_arg[g_press_n]) == 0) g_press_n++; @@ -725,14 +730,42 @@ static RxCmFeatures features(const Job *j, uint32_t core, uint32_t pressure, uin typedef struct { uint64_t measures, selects, fallbacks, touched_ineligible; uint64_t explore_ps; - uint64_t max_extra_ps; /* largest single exploration charge */ } LearnStats; +/* The online exploration budget, audited per core class over H1, H2 and H3: + * the online model's counters run across all three. The rule the learner + * spends by: a measurement starts only while spent exploration is under + * explore_frac of chosen work plus the allowance. */ +typedef struct { + uint64_t started_over; /* measurements started at or over the line */ + uint64_t last_extra_ps; /* the latest exploration charge since the counters were reset */ +} BudgetAudit; + +static double budget_line(const RxCostModel *m, const RxCmPolicy *p) { + return p->explore_frac * (double)m->work_ps + (double)p->explore_allow_ps; +} + +/* Before a measurement runs, with the counters the policy decided on. */ +static void audit_start(BudgetAudit *a, const RxCostModel *m, const RxCmPolicy *p) { + if ((double)m->explore_ps >= budget_line(m, p)) a->started_over++; +} + +/* After a group of jobs. Every measurement started under the line and the + * line only grows with chosen work, so spent exploration minus the latest + * charge is still under it: the total exceeds the line by less than that one + * charge. A group that measured nothing is held to the charge that last + * crossed the line, which an earlier group may have made. */ +static int audit_over(const BudgetAudit *a, const RxCostModel *m, const RxCmPolicy *p) { + return a->started_over != 0 || m->explore_ps < a->last_extra_ps || + (double)(m->explore_ps - a->last_extra_ps) >= budget_line(m, p); +} + /* One job for an online learner: decide, run what it decided, learn from - * those runs only. Returns the policy's cost in table terms (ps). */ + * those runs only. Returns the policy's cost in table terms (ps). `audit` + * is NULL where the budget is not judged (training). */ static double learner_job(RxCostModel *m, const RxCmPolicy *p, const Job *j, uint32_t core, uint32_t pressure, uint32_t *current, const uint64_t *table, - LearnStats *s) { + LearnStats *s, BudgetAudit *audit) { RxCmFeatures f = features(j, core, pressure, *current); RxCmDecision d; rx_cm_decide(m, p, &f, 1, &d); @@ -745,12 +778,13 @@ static double learner_job(RxCostModel *m, const RxCmPolicy *p, const Job *j, uin * quarter of the calls. The probe is the exploration cost. */ uint32_t a = d.measure[0], b = d.measure[1]; uint32_t probe = j->calls / 4u < 3u ? 3u : j->calls / 4u; + if (audit) audit_start(audit, m, p); uint64_t ta = time_arm_chunked(a, j, j->calls), tb = time_arm_chunked(b, j, probe); RxCmObservation oa = { ta, ta == 0 }, ob = { tb, tb == 0 }; rx_cm_observe(m, &f, a, &oa); rx_cm_observe(m, &f, b, &ob); rx_cm_charge(m, ta * j->calls, tb * probe); - if (tb * probe > s->max_extra_ps) s->max_extra_ps = tb * probe; + if (audit) audit->last_extra_ps = tb * probe; *current = ta <= tb ? a : b; s->measures++; s->explore_ps += table[b] * probe; @@ -766,6 +800,50 @@ static double learner_job(RxCostModel *m, const RxCmPolicy *p, const Job *j, uin return (double)table[d.arm] * j->calls; } +/* The audit on a fixed sequence through the cost model's own decisions, no + * timing: H1 measures until its last probe ends over the line, H2 is refused + * every measurement and runs chosen work only, so it measures nothing while + * the total is still over the line. Neither is a violation; a measurement + * started over the line and exploration charged without a measurement are. */ +static void budget_audit_selftest(const RxCmPolicy *p) { + RxCostModel m; + rx_cm_init(&m, N_ARMS); + Job j = { 64, 64, 1, 1, 0 }; + RxCmFeatures f = features(&j, 0, 0, ARM_REF); + f.eligible = (1u << ARM_REF) | (1u << ARM_U2); + const uint64_t work = 100000000ull, extra = 400000000ull; /* 0.1 ms chosen, 0.4 ms probed */ + BudgetAudit a = { 0, 0 }; + uint32_t measured = 0; + for (uint32_t i = 0; i < 8; i++) { + RxCmDecision d; + rx_cm_decide(&m, p, &f, 1, &d); + if (d.action != RX_CM_MEASURE) break; + audit_start(&a, &m, p); + rx_cm_charge(&m, work, extra); + a.last_extra_ps = extra; + measured++; + } + CHECK(measured > 0 && (double)m.explore_ps >= budget_line(&m, p), + "budget self-test: H1 measured %u and ends over the line", measured); + CHECK(!audit_over(&a, &m, p), "budget self-test: H1 within its budget"); + uint32_t h2_measured = 0; + for (uint32_t i = 0; i < 4; i++) { + RxCmDecision d; + rx_cm_decide(&m, p, &f, 1, &d); + if (d.action == RX_CM_MEASURE) h2_measured++; + rx_cm_charge(&m, work, 0); + } + CHECK(h2_measured == 0 && (double)m.explore_ps >= budget_line(&m, p), + "budget self-test: H2 measured %u and stays over the line", h2_measured); + CHECK(!audit_over(&a, &m, p), "budget self-test: a group that measured nothing is held to the last charge"); + BudgetAudit over = a; + audit_start(&over, &m, p); + CHECK(audit_over(&over, &m, p), "budget self-test: a measurement started over the line is caught"); + RxCostModel unmeasured = m; + rx_cm_charge(&unmeasured, 0, extra / 2u); + CHECK(audit_over(&a, &unmeasured, p), "budget self-test: exploration charged with no measurement is caught"); +} + static uint32_t frozen_choice(const RxCostModel *m, const RxCmPolicy *p, const Job *j, uint32_t core, uint32_t pressure, RxCmDecision *out) { RxCmFeatures f = features(j, core, pressure, ARM_REF); @@ -921,7 +999,7 @@ static void train_class(RxCostModel *m, uint32_t k) { truth_table_tap(&jobs[i], table); for (uint32_t a = 0; a < N_ARMS; a++) if (g_eligible & (1u << a)) R.train_cost[k][a] += (double)table[a] * jobs[i].calls; - learner_job(m, &g_train_policy, &jobs[i], k, 0, ¤t, table, &s); + learner_job(m, &g_train_policy, &jobs[i], k, 0, ¤t, table, &s, NULL); } } R.train_jobs[k] = 2 * n; @@ -1292,13 +1370,12 @@ static int cmp_d(const void *a, const void *b) { } static void heldout(const RxCostModel *durable, uint32_t k, uint32_t dist, Job *jobs, uint32_t n, - RxCostModel *online) { + RxCostModel *online, BudgetAudit *audit) { DistResult *D = &R.d[k][dist]; uint32_t pressure = dist == D_H3 ? 1u : 0u; LearnStats s; memset(&s, 0, sizeof s); uint32_t current = ARM_REF; - uint64_t explore_before = online->explore_ps, work_before = online->work_ps; double contention[MAX_JOBS]; uint32_t n_cont = 0; if (pressure) pressure_on(g_class[k].timed); @@ -1318,7 +1395,7 @@ static void heldout(const RxCostModel *durable, uint32_t k, uint32_t dist, Job * uint32_t choice[4] = { dispatch_rule(j->N), ARM_REF, R.best_static[k], fz }; for (uint32_t p = 0; p < 4; p++) D->cost[p] += (double)table[choice[p]] * j->calls; D->cost[P_ORACLE] += (double)table[oracle] * j->calls; - D->cost[P_ONLINE] += learner_job(online, &g_online_policy, j, k, pressure, ¤t, table, &s); + D->cost[P_ONLINE] += learner_job(online, &g_online_policy, j, k, pressure, ¤t, table, &s, audit); if (dist < D_H3) for (uint32_t p = 0; p < 4; p++) g_choice[k][dist][p][i] = choice[p]; coverage(durable, j, k, pressure, table, &D->cov_n, &D->cov_in80, &D->cov_in95); @@ -1331,14 +1408,7 @@ static void heldout(const RxCostModel *durable, uint32_t k, uint32_t dist, Job * D->fallbacks = s.fallbacks; D->explore_ps = s.explore_ps; R.touched_ineligible += s.touched_ineligible; - (void)explore_before; - (void)work_before; - /* The rule the learner spends by: a measurement starts only while spent - * exploration is under explore_frac of chosen work plus the allowance, so - * the total can exceed that line by at most one measurement. */ - double line = g_online_policy.explore_frac * (double)online->work_ps + - (double)g_online_policy.explore_allow_ps; - if ((double)online->explore_ps > line + (double)s.max_extra_ps) R.explore_budget_violations++; + if (audit_over(audit, online, &g_online_policy)) R.explore_budget_violations++; if (n_cont) { qsort(contention, n_cont, sizeof(double), cmp_d); D->contention_median = contention[n_cont / 2]; @@ -1650,6 +1720,7 @@ int main(void) { g_train_policy.explore_allow_ps = 200000000000ull; g_online_policy.explore_frac = 0.05; /* held-out: 5% of chosen work */ g_online_policy.explore_allow_ps = 500000000ull; /* plus 0.5 ms to get started */ + budget_audit_selftest(&g_online_policy); printf("[*] arms: synthesize, verify in a forked child\n"); setup_arms(); @@ -1686,13 +1757,14 @@ int main(void) { place_quiet(k); RxCostModel online = durable; online.explore_ps = online.work_ps = 0; + BudgetAudit audit = { 0, 0 }; /* runs with the online counters, across H1, H2, H3 */ uint32_t n1 = unseen_shapes(g_h1, 60, 7000u + k); uint32_t n2 = thin_mix(g_h2, 60, 8000u + k); - heldout(&durable, k, D_H1, g_h1, n1, &online); + heldout(&durable, k, D_H1, g_h1, n1, &online, &audit); place_quiet(k); - heldout(&durable, k, D_H2, g_h2, n2, &online); + heldout(&durable, k, D_H2, g_h2, n2, &online, &audit); place_quiet(k); - heldout(&durable, k, D_H3, g_h1, n1, &online); + heldout(&durable, k, D_H3, g_h1, n1, &online, &audit); if (g_class[k].n) { place_quiet(k); replay(k, D_H1, g_h1, n1); ```