M10.9d: watermark coalescing, budgets v2, evo-load action ids
Foundation / checks (client) (push) Successful in 14s
Foundation / checks (checks) (push) Successful in 16s
Foundation / checks (deploy) (push) Successful in 15s
Foundation / checks (network) (push) Successful in 18s
Foundation / checks (postgres) (push) Successful in 1m34s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (tsan) (push) Successful in 5m44s
Foundation / server-image (push) Successful in 1m0s
Foundation / postgres-tools (push) Successful in 1m38s
Foundation / image (push) Successful in 2m34s

- IntentLimits::watermark_coalesce (evo-server: every 4, coalesce 4); ADR-0092 amendment.
- m10 load-report splits poll/replicate and commit-tick/other-tick maxima.
- Budgets v2: work p95 <= 25 ms over all ticks, commit ticks <= 50 ms (ADR-0097);
  moving the commit off the tick is a recorded follow-up.
- evo-load: time-based action ids, duplicate_actions, receipts before outcomes;
  drill ramps at 500 ms and judges by v2.
- Refresh the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-08 18:00:41 -04:00
co-authored by Claude Opus 5.5
parent 1b266b12be
commit 9f9a93d4c8
12 changed files with 267 additions and 28 deletions
+6 -4
View File
@@ -17,7 +17,8 @@ std::expected<IntentAdmission, IntentConfigError> IntentAdmission::create(Intent
if (limits.intent_window == 0 || limits.intent_window > 64 || limits.window_ticks == 0 ||
limits.max_intents_per_window == 0 || limits.max_actions_per_window == 0 ||
limits.max_unresolved == 0 || limits.max_unresolved > 4096 || limits.max_sessions == 0 ||
limits.max_sessions > 1024 || limits.max_finals == 0 || limits.watermark_every == 0)
limits.max_sessions > 1024 || limits.max_finals == 0 || limits.watermark_every == 0 ||
limits.watermark_coalesce == 0)
return std::unexpected(IntentConfigError::invalid);
IntentAdmission admission{limits};
admission.sessions_.reserve(limits.max_sessions);
@@ -209,9 +210,10 @@ IntentAdmission::simulated(const AdmissionFacts& facts) {
s.watermark = s.pending.front().sequence;
s.pending.pop_front();
}
const bool changed = s.watermark != s.sent_watermark;
const bool repeat = facts.server_tick < s.sent_at_tick ||
facts.server_tick - s.sent_at_tick >= limits_.watermark_every;
const auto since = facts.server_tick < s.sent_at_tick ? limits_.watermark_every
: facts.server_tick - s.sent_at_tick;
const bool changed = s.watermark != s.sent_watermark && since >= limits_.watermark_coalesce;
const bool repeat = since >= limits_.watermark_every;
if (changed || repeat) {
s.sent_watermark = s.watermark;
s.sent_at_tick = facts.server_tick;