Ratify M10.1 timing and workload budgets with session traces
Foundation / checks (deploy) (push) Successful in 1m0s
Foundation / checks (ecs) (push) Successful in 3m34s
Foundation / checks (network) (push) Successful in 8m8s
Foundation / checks (client) (push) Successful in 14m49s
Foundation / checks (tsan) (push) Successful in 7m35s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 16m18s
Foundation / checks (checks) (push) Canceled after 29m27s

ADR-0089 records the maintainer-ratified 50 ms tick, 1 s flush with final
outcomes p95 <= 1.5 s, responsiveness targets and reference hardware, plus
derived scheduling, sequence, identity, baseline, queue/byte/work budgets and the
exact/tolerant determinism contract (schemas/network/m10-budgets-v1.md). Adds
SessionClient traffic counters, `evo-dev-session trace` and a reproducible trace
script; development-reference results are in M10_TIMING_TRACES. Records that
genome v1 and metabolism rates are per tick, so the quantum fixes biology rates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-03 12:29:58 -04:00
co-authored by Claude Opus 5.5
parent 6152d58fa6
commit 819137c1df
15 changed files with 557 additions and 12 deletions
+11
View File
@@ -17,6 +17,7 @@ struct SessionClient::Impl {
SessionClientConfig config;
std::size_t next_grant{};
std::uint64_t unreachable{};
ClientTraffic traffic;
SessionPhase phase{SessionPhase::backoff};
Step step{Step::handshake};
Clock::time_point retry_at{}, deadline{}, last_received{}, last_sent{}, polled_at{};
@@ -100,6 +101,9 @@ struct SessionClient::Impl {
}
const FrameView v{f.type, f.payload};
last_received = now;
const auto bytes = frame_header_bytes + f.payload.size();
++traffic.frames;
traffic.bytes += bytes;
if (step == Step::awaiting_welcome) {
if (f.type == MessageType::close) {
const auto reason = decode_close(v);
@@ -135,6 +139,8 @@ struct SessionClient::Impl {
return false;
}
view = d->first;
++traffic.environment_views;
traffic.environment_view_bytes += bytes;
return true;
}
case MessageType::organism_view: {
@@ -144,6 +150,8 @@ struct SessionClient::Impl {
disconnect(now, std::nullopt);
return false;
}
++traffic.organism_views;
traffic.organism_view_bytes += bytes;
return true;
}
case MessageType::intent_result: {
@@ -327,6 +335,9 @@ std::optional<Welcome> SessionClient::welcome() const noexcept {
std::optional<ViewHeader> SessionClient::latest_view() const noexcept {
return impl_->view;
}
ClientTraffic SessionClient::traffic() const noexcept {
return impl_->traffic;
}
std::uint64_t SessionClient::unreachable_attempts() const noexcept {
return impl_->unreachable;
}