Let cellular sessions use the DEV grant ceiling
Foundation / checks (ecs) (push) Successful in 2m18s
Foundation / checks (deploy) (push) Successful in 3m50s
Foundation / checks (tsan) (push) Successful in 9m44s
Foundation / checks (client) (push) Successful in 16m45s
Foundation / checks (network) (push) Successful in 19m6s
Foundation / checks (checks) (push) Successful in 42m3s
Foundation / checks (postgres) (push) Successful in 44m10s
Foundation / postgres-tools (push) Successful in 1m8s
Foundation / image (push) Successful in 3m20s
Foundation / server-image (push) Successful in 3m25s

The cellular profile refused --m10-max-grant-lifetime and the Deployment never
passed it, so playtest grants were capped at the 300 s default. The cellular
bridge now applies the DEV-only ceiling like lineage, and the Deployment passes
the overlay's ceiling (4 h in DEV) to both profiles. Recorded in ADR-0123.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-14 12:14:45 -04:00
co-authored by Claude Opus 5.5
parent e803a1e182
commit 1675bb688d
5 changed files with 22 additions and 7 deletions
+7
View File
@@ -64,6 +64,13 @@ class CellularBridge {
config.control.epoch = 1; config.control.epoch = 1;
config.control.max_sessions = 512; config.control.max_sessions = 512;
config.transport.limits.max_connections = 576; config.transport.limits.max_connections = 576;
if (options.max_grant_lifetime != 0) {
// As for lineage (M10.5c): a longer DEV ceiling lets a playtest outlive the 300 s
// default; never outside dev.
if (config.control.environment != network::DeploymentEnvironment::dev)
return fail("error m10-grant-lifetime");
config.control.max_grant_lifetime = options.max_grant_lifetime;
}
const auto life_routes = parse_life_owner_routes(options); const auto life_routes = parse_life_owner_routes(options);
if (!life_routes || life_routes->empty()) if (!life_routes || life_routes->empty())
return fail("error cellular-life-routes"); return fail("error cellular-life-routes");
+2 -2
View File
@@ -328,8 +328,8 @@ std::optional<Options> parse(int argc, char** argv) {
if (o.profile == "cellular" && if (o.profile == "cellular" &&
(!server_app::m10_available || !o.m10.complete() || o.primitive_session.any() || (!server_app::m10_available || !o.m10.complete() || o.primitive_session.any() ||
o.synthetic || !o.crash_point.empty() || o.session.any() || !o.m10.area.empty() || o.synthetic || !o.crash_point.empty() || o.session.any() || !o.m10.area.empty() ||
!o.m10.handoff_key.empty() || !o.m10.neighbours.empty() || o.m10.max_grant_lifetime != 0 || !o.m10.handoff_key.empty() || !o.m10.neighbours.empty() || !o.m10.load_governor ||
!o.m10.load_governor || o.host.flush_interval != 1000ms || o.drain != 10000ms)) o.host.flush_interval != 1000ms || o.drain != 10000ms))
return std::nullopt; return std::nullopt;
if (std::ranges::find(o.host.retained_builds, o.host.build) == o.host.retained_builds.end()) if (std::ranges::find(o.host.retained_builds, o.host.build) == o.host.retained_builds.end())
o.host.retained_builds.push_back(o.host.build); o.host.retained_builds.push_back(o.host.build);
@@ -66,12 +66,12 @@ spec:
--m10-environment "$REGION_SESSION" --session-window "$REGION_SESSION_WINDOW") --m10-environment "$REGION_SESSION" --session-window "$REGION_SESSION_WINDOW")
grant=(--m10-max-grant-lifetime "$REGION_M10_MAX_GRANT_LIFETIME") grant=(--m10-max-grant-lifetime "$REGION_M10_MAX_GRANT_LIFETIME")
fi fi
# Lineage keeps its 20 s drain and overlay grant ceiling. The cellular # Lineage keeps its 20 s drain. Both profiles take the overlay grant ceiling;
# profile (M11.3) fixes its own 10 s drain and 300 s grant ceiling and # the cellular profile (M11.3) fixes its own 10 s drain and needs the
# needs the world's --life-route catalog, one entry per region. # world's --life-route catalog, one entry per region.
profile=(--profile lineage "${grant[@]}" --drain-ms 20000) profile=(--profile lineage "${grant[@]}" --drain-ms 20000)
if [ "$REGION_PROFILE" = cellular ]; then if [ "$REGION_PROFILE" = cellular ]; then
profile=(--profile cellular) profile=(--profile cellular "${grant[@]}")
for route in $REGION_LIFE_ROUTES; do profile+=(--life-route "$route"); done for route in $REGION_LIFE_ROUTES; do profile+=(--life-route "$route"); done
fi fi
exec /usr/local/bin/evo-server "${profile[@]}" "${retained[@]}" "${inputs[@]}" \ exec /usr/local/bin/evo-server "${profile[@]}" "${retained[@]}" "${inputs[@]}" \
@@ -12,7 +12,7 @@ spec:
env: env:
- {name: REGION_SESSION, value: "dev"} - {name: REGION_SESSION, value: "dev"}
- {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"} - {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"}
- {name: REGION_SESSION_WINDOW, value: "dev-20261014T134541-22680:1791996341"} - {name: REGION_SESSION_WINDOW, value: "dev-20261014T161445-31126:1792005285"}
- {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"} - {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"}
ports: ports:
# QUIC (ADR-0090): UDP only; nothing listens on TCP 7400. # QUIC (ADR-0090): UDP only; nothing listens on TCP 7400.
@@ -131,3 +131,11 @@ Regions 1, 2 and 3 stay in the stores untouched and unserved; rules 1-4 regions
cannot be migrated to rules 5. An account whose life is still active in region 3 cannot be migrated to rules 5. An account whose life is still active in region 3
(no ending was recorded there, since region 3 ran a pre-v37 image) is routed to (no ending was recorded there, since region 3 ran a pre-v37 image) is routed to
region 3, which is no longer served, so playtests use fresh accounts. region 3, which is no longer served, so playtests use fresh accounts.
## Later DEV change (2026-10-14): cellular grant ceiling
At the maintainer's request for playtests longer than five minutes, the cellular
profile now honours `--m10-max-grant-lifetime` (DEV only, 60-14400 s), and the
region Deployment passes the overlay ceiling to both profiles. DEV's route overlay
already sets 14400 s (4 h), so cellular grants may now last up to 4 hours. The
300 s default still applies wherever no ceiling is configured.