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
omega-mv / src / physics0 / regime / pd0_regime.h
| 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* PD-0 dev-only regime switch (adaptive-intelligence milestone 3, gap G3 / C2). |
| 18 | * World side (links the generator). The seal-1 world and generator are untouched: this file |
| 19 | * redraws the world's constants from the SAME declared ranges (pd0_gen_init) with a seed derived from |
| 20 | * (world seed, regime), so truth stays hidden behind the guard and the learner only sees records. |
| 21 | * Regime 0 is the world as built; regime r >= 1 is a new draw. Not part of any sealed run. */ |
| 22 | #ifndef PD0_REGIME_H |
| 23 | #define PD0_REGIME_H |
| 24 | #define PD0_WORLD_IMPL 1 |
| 25 | #include "physics0/pd0_world.h" |
| 26 | |
| 27 | /* Redraw the constants for `regime` (>= 1) and renew the step/episode budget (dev: budgets are per regime). |
| 28 | * Any open episode is abandoned. The hash chain and noise streams continue. |
| 29 | * Returns 0 ok, -1 if no valid draw was found. *max_change_ppm (may be NULL) receives the largest relative change of any |
| 30 | * constant in parts per million (0 when the level has no declared constants: L0 and NULL). */ |
| 31 | int pd0_world_switch_regime(pd0_world *w, int level, uint32_t regime, int64_t *max_change_ppm); |
| 32 | #endif |