Add M9.8c launcher, legend, labelled inspector and click selection
Toolkit-independent launcher, selection, label and outcome-log models with bounded inputs and fixed error text; Dear ImGui overlay in the native adapter with toolkit-first event routing and capture; engineering panels for fixture vs dev region, legend, inspector, session outcomes, notices and dialog. Additive SessionClient::unreachable_attempts() bounds unreachable connects. Docs, CI targets and validation evidence updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <deque>
|
||||
|
||||
// M9.8c bounded intention history for the session panel (toolkit-independent). It is
|
||||
// the inspectable record; notifications may expire, this keeps the latest entries.
|
||||
// Values are copied from session events; nothing here is authority.
|
||||
namespace evo::client {
|
||||
enum class OutcomeState : std::uint8_t {
|
||||
sent, // Queued to the server; no reply yet.
|
||||
admitted, // Accepted for scheduling; not yet durable.
|
||||
rejected, // IntentResult other than admitted (final).
|
||||
durable, // Committed with no biological effect (final).
|
||||
not_committed, // The carrying input was dropped (final).
|
||||
unknown // The connection ended first; the outcome is not known (final).
|
||||
};
|
||||
struct OutcomeEntry {
|
||||
std::uint64_t sequence{};
|
||||
OutcomeState state{};
|
||||
std::uint8_t detail{}; // IntentStatus code for rejections.
|
||||
std::uint64_t tick{}, commit_sequence{}; // For durable outcomes.
|
||||
};
|
||||
class OutcomeLog {
|
||||
public:
|
||||
static constexpr std::size_t capacity = 64;
|
||||
// Updates the entry for `sequence` (newest match) or appends one, evicting the oldest.
|
||||
void record(OutcomeEntry entry);
|
||||
[[nodiscard]] const std::deque<OutcomeEntry>& entries() const noexcept {
|
||||
return entries_;
|
||||
}
|
||||
[[nodiscard]] std::uint64_t evicted() const noexcept {
|
||||
return evicted_;
|
||||
}
|
||||
|
||||
private:
|
||||
std::deque<OutcomeEntry> entries_;
|
||||
std::uint64_t evicted_{};
|
||||
};
|
||||
} // namespace evo::client
|
||||
Reference in New Issue
Block a user