Reject redundant resolution controls

This commit is contained in:
Meta Vens 2026-08-18 03:18:50 +02:00
commit 8d5ded1613
5 changed files with 84 additions and 8 deletions

View file

@ -119,6 +119,15 @@ async fn main() -> anyhow::Result<()> {
.and_then(|value| value.parse::<usize>().ok())
.filter(|value| (1..=31).contains(value))
.unwrap_or_default();
let fairness_stress_budget = std::env::var("GHOSTLIGHT_LIVE_FIRE_STRESS_BUDGET")
.ok()
.and_then(|value| value.parse::<u8>().ok())
.filter(|value| (1..=32).contains(value))
.unwrap_or(1);
let stress_provider_parallelism = std::env::var("GHOSTLIGHT_LIVE_FIRE_PROVIDER_PARALLELISM")
.ok()
.and_then(|value| value.parse::<u8>().ok())
.filter(|value| (1..=32).contains(value));
let max_rejected_pulses_per_wave =
std::env::var("GHOSTLIGHT_LIVE_FIRE_MAX_REJECTED_PULSES_PER_WAVE")
.ok()
@ -370,20 +379,39 @@ async fn main() -> anyhow::Result<()> {
let sustained_budgets = if fairness_stress_waves == 0 {
vec![4_u8, 8, 4]
} else {
vec![1_u8; fairness_stress_waves]
vec![fairness_stress_budget; fairness_stress_waves]
};
for (wave_index, budget) in sustained_budgets.into_iter().enumerate() {
if let Some(provider_parallelism) = stress_provider_parallelism
&& advanced.resolution_policy.provider_parallelism != provider_parallelism
{
let control = kernel
.command(WorldCommand::SetResolutionBudget {
.command(WorldCommand::SetProviderParallelism {
expected_revision: advanced.revision,
expected_resolution_epoch: advanced.resolution_policy.resolution_epoch,
active_cell_budget: budget,
expected_provider_configuration_epoch: advanced
.resolution_policy
.provider_configuration_epoch,
provider_parallelism,
})
.await?;
advanced = match control {
CommandResult::ResolutionUpdated { campaign, .. } => campaign,
_ => anyhow::bail!("resolution budget change did not commit at a safe boundary"),
_ => anyhow::bail!("provider parallelism change used the world commit path"),
};
}
for (wave_index, budget) in sustained_budgets.into_iter().enumerate() {
if advanced.resolution_policy.active_cell_budget != budget {
let control = kernel
.command(WorldCommand::SetResolutionBudget {
expected_revision: advanced.revision,
expected_resolution_epoch: advanced.resolution_policy.resolution_epoch,
active_cell_budget: budget,
})
.await?;
advanced = match control {
CommandResult::ResolutionUpdated { campaign, .. } => campaign,
_ => anyhow::bail!("resolution budget change did not commit at a safe boundary"),
};
}
let mut rejected_pulses_for_wave = 0;
let sustained_output = loop {
let trace_start = model_calls.lock().expect("live-fire trace lock").len();
@ -595,6 +623,8 @@ async fn main() -> anyhow::Result<()> {
"sustained_background_subject_ids":background_subject_ids,
"sustained_detail_focus_subject_ids":detail_focus_subject_ids,
"fairness_stress_waves":fairness_stress_waves,
"fairness_stress_budget":fairness_stress_budget,
"stress_provider_parallelism":stress_provider_parallelism,
"max_rejected_pulses_per_wave":max_rejected_pulses_per_wave,
"rejected_wave_pulses":rejected_wave_pulses,
"fairness_missing_subject_ids":fairness_missing_subject_ids,

View file

@ -261,6 +261,11 @@ fn execute(
} => {
require_revision(&campaign, expected_revision)?;
require_resolution_epoch(&campaign, expected_resolution_epoch)?;
if campaign.resolution_policy.active_cell_budget == active_cell_budget {
return Err(KernelError::Invalid(
"resolution budget command does not change the active cell budget".into(),
));
}
let previous_epoch = campaign.resolution_policy.resolution_epoch;
campaign.resolution_policy.active_cell_budget = active_cell_budget;
campaign.resolution_policy.pending_active_cell_budget = None;
@ -290,6 +295,11 @@ fn execute(
actual: campaign.resolution_policy.provider_configuration_epoch,
});
}
if campaign.resolution_policy.provider_parallelism == provider_parallelism {
return Err(KernelError::Invalid(
"provider parallelism command does not change provider configuration".into(),
));
}
campaign.resolution_policy.provider_parallelism = provider_parallelism;
crate::resolution::validate_policy(&campaign.resolution_policy)
.map_err(|error| KernelError::Invalid(error.to_string()))?;
@ -4194,6 +4204,15 @@ mod tests {
assert_eq!(campaign.resolution_policy.active_cell_budget, 3);
assert_eq!(campaign.resolution_policy.resolution_epoch, 1);
assert_eq!(receipt.previous_resolution_epoch, 0);
let unchanged = kernel
.command(WorldCommand::SetResolutionBudget {
expected_revision: 0,
expected_resolution_epoch: 1,
active_cell_budget: 3,
})
.await
.unwrap_err();
assert!(unchanged.to_string().contains("does not change"));
assert!(
kernel
.command(WorldCommand::SetResolutionBudget {
@ -4249,6 +4268,15 @@ mod tests {
assert_eq!(campaign.resolution_policy.provider_parallelism, 4);
assert_eq!(campaign.resolution_cover, Some(cover));
assert_eq!(receipt.operation, "set_provider_parallelism");
let unchanged = kernel
.command(WorldCommand::SetProviderParallelism {
expected_revision: 0,
expected_provider_configuration_epoch: 1,
provider_parallelism: 4,
})
.await
.unwrap_err();
assert!(unchanged.to_string().contains("does not change"));
assert!(
kernel
.command(WorldCommand::SetProviderParallelism {

View file

@ -555,6 +555,14 @@ cost at 247,578 prompt tokens and only 34.54% cache hits. Prompt/context work
should therefore target Interpreter permissions and stable-prefix layout before
shrinking the Persona stream.
Resolution control is edge-triggered. `active_cell_budget` owns
`resolution_epoch`; provider parallelism owns only
`provider_configuration_epoch`. An unchanged control value is rejected without
persistence, epoch movement, or cover invalidation. Acceptance harnesses issue
either control only when its value actually differs, so repeated strategic
ticks preserve the previous cover, leases, and churn history. Stress runs may
select cell budget and provider parallelism independently.
The run also exposes the next authority gap. Institution postures, population
migration, clocks, and history changed canonically, but most Gestalt activities
remain attributed attempts recorded as events. Over many ticks this can repeat

View file

@ -252,6 +252,16 @@ atomically on one overlong posture, demonstrating its higher tail risk. Budget
4 is fastest; budget 8 is the best action-per-token point and reaches the global
consequence cap.
The first fairness profile accidentally sent `SetResolutionBudget(1)` before
every tick. The kernel accepted the redundant command, incremented
`resolution_epoch`, and discarded cover leases each time. The runtime now
rejects unchanged budget and provider-parallelism controls without persistence;
the harness only sends a real change. Use `GHOSTLIGHT_LIVE_FIRE_STRESS_BUDGET`
and `GHOSTLIGHT_LIVE_FIRE_PROVIDER_PARALLELISM` independently for the next
profiles. Rerun the long budget-one case before treating its cache or churn
numbers as the lease-preserving baseline; its agency/fairness result remains
valid.
Do not call setting-wide material agency finished yet. Most population output
is still an attributed `gestalt_activity` attempt stored as history. The long
run became repetitive around ferry loading and shelter requests because no

View file

@ -267,6 +267,6 @@ data_flow:
- If state grows faster than understanding, cut it back.
current_status:
summary: GhostlightDungeon production remains on the verified Starfire release. Multiresolution pressure now proves a strict refugee callback, two-person multi-destination diaspora across nested leaves, 24-of-24 low-budget fairness with rejected-pulse recovery, and the 1/4/8/32 scale matrix. Budget 8 gives the best prompt efficiency and reaches the consequence cap; budget 4 is fastest. Production state remains untouched.
next_action: Map and implement strategic outcome ownership after attributed cell attempts. Preserve Interpreter non-authority while allowing validated offscreen work to change typed resources, bargains, relationships, obligations, and pressures atomically. Then compress Interpreter permission/context layout and rerun budget 4/8 plus the 24-tick fairness profile.
summary: GhostlightDungeon production remains on the verified Starfire release. Multiresolution pressure proves a strict refugee callback, nested multi-destination diaspora, 24-of-24 low-budget fairness with rejected-pulse recovery, and the 1/4/8/32 scale matrix. It also exposed and fixed redundant resolution controls that were manufacturing epochs and discarding leases. Production state remains untouched.
next_action: Rerun lease-preserving long profiles at budgets 1, 4, and 8 with independent provider parallelism, then map strategic outcome ownership after attributed cell attempts. Preserve Interpreter non-authority while allowing validated offscreen work to change typed resources, bargains, relationships, obligations, and pressures atomically.
gestalt_population: Gestalt Personas own shared population baselines; persistent member deltas own named individuality; WorldKernel materialization and approval-gated fission preserve lineage and identity. Presence projection is limited to nearby active leaves and exact-location dormant members. Simulation cells are derived covers only.