Share replication encoding per interest; fix dev retained builds
Foundation / checks (deploy) (push) Successful in 3m26s
Foundation / checks (ecs) (push) Successful in 1m54s
Foundation / checks (client) (push) Successful in 12m36s
Foundation / checks (network) (push) Successful in 13m35s
Foundation / checks (tsan) (push) Successful in 7m48s
Foundation / checks (checks) (push) Successful in 32m51s
Foundation / checks (postgres) (push) Successful in 46m20s
Foundation / postgres-tools (push) Successful in 1m35s
Foundation / image (push) Successful in 2m32s
Foundation / server-image (push) Successful in 4m14s

ADR-0097. The second evolution-dev load drill (image 7952185d) held 20
sessions with client budgets met (response p95 111 ms, outcome p95 about
1.2 s, 20 Hz, no starvation) but the server over its own: tick work p99
48-70 ms (25 ms budget), session layer 1.2-2.0 ms per session at p99
(0.5 ms budget), governor refusing and shedding to level 3 to little
effect. ReplicationServer::tick re-encoded every environment cell and
organism for each session. Sessions with the same requested interest
(no perception predicate) now share one encoding per tick; markers stay
per session. Locally 21 sessions: about 970 us -> 360 us per tick.
The drill now waits for two consecutive calm reports before the bots.

The dev overlay's REGION_RETAINED listed the deployed build itself
(61df6a1, f88bee2), which the deploy policy refuses (CI deploy failed on
those commits); it now lists only the other builds, keeping 6c96629e,
the build of the region head. Refreshes the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-08 15:03:45 -04:00
co-authored by Claude Opus 5.5
parent 9409d65947
commit 46b6358606
7 changed files with 187 additions and 41 deletions
+7 -4
View File
@@ -112,14 +112,17 @@ say "enabling synthetic inputs in $ns (drill-time override, restored on exit)"
"${k[@]}" set env -n "$ns" deployment/evo-region REGION_INPUTS=development-v1 > /dev/null
pod="$(ready_pod "$before" 240)" || fail "no Ready evo-region pod with synthetic inputs"
drill_pod="$pod"
# Warm up: wait for a full governor window and a calm report (refusing=0 shed=0).
# Warm up: two consecutive calm reports (refusing=0 shed=0, about 10 s apart), so the
# governor's window no longer holds the restart's first ticks when the bots arrive (the
# second reference run met one calm report, then a refusal at the first login).
calm=""
for _ in $(seq 1 60); do
sleep 3
last="$("${k[@]}" logs -n "$ns" --since=15s "$pod" 2> /dev/null | grep "m10 load-report" | tail -1)"
case "$last" in *"refusing=0 shed=0"*) calm=1; break ;; esac
last2="$("${k[@]}" logs -n "$ns" --since=25s "$pod" 2> /dev/null | grep "m10 load-report" | tail -2)"
last="$(echo "$last2" | tail -1)"
[ "$(echo "$last2" | grep -c "refusing=0 shed=0")" = 2 ] && { calm=1; break; }
done
[ -n "$calm" ] || fail "the region did not report calm within 3 minutes of starting: $last"
[ -n "$calm" ] || fail "the region did not report calm twice within 3 minutes of starting: $last"
say "region calm: $last"
say "running evo-load against $connect"
set +e