ci: give the checks job headroom and trim producer tests
Foundation / checks (ecs) (push) Successful in 2m29s
Foundation / checks (deploy) (push) Successful in 5m29s
Foundation / checks (network) (push) Successful in 23m57s
Foundation / checks (client) (push) Successful in 24m50s
Foundation / checks (tsan) (push) Successful in 47m40s
Foundation / checks (postgres) (push) Successful in 1h22m11s
Foundation / checks (checks) (push) Successful in 1h49m20s
Foundation / postgres-tools (push) Successful in 1m13s
Foundation / server-image (push) Successful in 3m45s
Foundation / image (push) Successful in 6m1s

Run 469 failed only the checks job, at exactly its 90-minute limit; full
checks runs had grown from 67 to 78 minutes through M12 and every step
passes locally. The limit is now 120 minutes. The producer test checks dark
and brighter light on the capture rule instead of growing two extra
histories, and the trace test takes over the grown population.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-19 23:21:29 -04:00
co-authored by Claude Opus 5.5
parent b73ccbae9a
commit 2efb01d1a3
5 changed files with 36 additions and 21 deletions
+12 -19
View File
@@ -367,21 +367,10 @@ void producers() {
audit(*joint);
}
require(joint->state().captured_light().value > 0, "nested owner stopped capturing");
// Without light nothing is captured, and a producer forages as before.
auto dark = grow_producers(0);
require(dark.captured == 0 && dark.population->state().captured_light().value == 0,
"a dark region captured light");
// Same history until the plan, then capture scales exactly with irradiance. (These
// producers always touch food, so they hold still in any light; the light-driven
// holding-still branch is not observable in this rich fixture.)
auto bright = grow_producers(cellular_light_trial_irradiance * 20);
require(bright.child == trial.child && bright.captured == 20 * trial.captured &&
bright.still == trial.still && dark.still == trial.still,
"capture did not scale with irradiance or light changed the controller");
// Dark and brighter light are checked on the capture rule itself
// (photosynthesis-contracts); a third grown history would only repeat it here.
std::cout << "producers: plan " << trial.plan << ", child " << trial.child << ", captured "
<< trial.captured << " pJ over " << trial.lit_ticks << " lit ticks (bright "
<< bright.captured << ", still intents " << bright.still << " vs dark " << dark.still
<< ")\n";
<< trial.captured << " pJ over " << trial.lit_ticks << " lit ticks\n";
}
// A full habitat refuses new deposits: bubbles are counted skipped, never deferred.
@@ -433,17 +422,21 @@ std::uint64_t first_wildlife(CellularEnvironment& value) {
return 0;
}
void traces() {
// A closed probe finds when wildlife first exists; the traced source starts after it,
// so infall neither changes that history nor fills the habitat beforehand.
// A closed region grows the first wildlife; the traced owner then takes over that exact
// population with a source starting on its next tick, so infall neither changes that
// history nor fills the habitat beforehand.
auto probe = environment(founders(), config());
const auto genome = first_wildlife(*probe);
require(genome != 0, "no wildlife for joint traces");
const auto& grown = probe->state();
auto value = environment(
founders(),
checked(CellularLives::restore(grown.snapshot(), grown.world(), grown.region(),
grown.frame(), grown.tick()),
"grown copy"),
config({source(1, 0, 15, energy_and_carbon(1ULL << 40, 1ULL << 40), probe->tick() + 1)},
13));
require(first_wildlife(*value) == genome && value->tick() == probe->tick(),
"a not-yet-active source changed the region's history");
require(value->state().snapshot() == grown.snapshot() && value->tick() == probe->tick(),
"the traced owner did not take over the grown history");
require(!prepare_environment_interval(*value, header(*value, 8)),
"active controlled cells entered an unattended interval");
for (unsigned tick = 0; tick < cellular_linger_ticks + 10; ++tick)