Switch the engineering client to M10 sessions (M10.5c)
Foundation / checks (checks) (push) Successful in 32m47s
Foundation / checks (client) (push) Failing after 10m1s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (network) (push) Successful in 11m18s
Foundation / checks (postgres) (push) Successful in 40m20s
Foundation / checks (tsan) (push) Successful in 7m46s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
Foundation / checks (checks) (push) Successful in 32m47s
Foundation / checks (client) (push) Failing after 10m1s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (network) (push) Successful in 11m18s
Foundation / checks (postgres) (push) Successful in 40m20s
Foundation / checks (tsan) (push) Successful in 7m46s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
evo-client's remote mode now runs over RegionSessionClient (QUIC, session v2): snapshot-fed environment and organism views, the camera following the server's view until the user moves it and then driving the interest, intention records with a simulated state, and reconnects with the next grant of a bundle. The launcher reads 160-byte M10 grants and defaults to the dev route. - quic::resolve_ipv4 shared by the client and evo-session-probe - evo-session-probe grants: owner-only bundles of 1-64 grants - evo-server --m10-max-grant-lifetime (dev only, 60..3600 s) - presets client-network/client-package build QUIC; msquic links the CRT fully static; msquic.dll and msquic/OpenSSL licences in the Windows package - client-remote-session test against a loopback region - ADR-0093/0091/0086 amendments, M10_CLIENT_SESSIONS guide, validation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,11 +9,13 @@
|
||||
|
||||
// M9.8c launcher model (toolkit- and network-independent). Validates what the user
|
||||
// typed, loads the two credential files within bounds, and tracks the connect flow.
|
||||
// M10.5c (ADR-0093): grant records are M10 session grants (network::session_grant_bytes),
|
||||
// issued by `evo-session-probe grants`; the default endpoint is the dev route (ADR-0087).
|
||||
// Error texts are fixed: they never contain file contents, grant bytes or keys, and
|
||||
// nothing here is persisted or logged.
|
||||
namespace evo::client {
|
||||
inline constexpr std::size_t grant_record_bytes = 108; // network::dev_grant_bytes.
|
||||
inline constexpr std::size_t max_grant_records = 64; // As issued by evo-dev-session.
|
||||
inline constexpr std::size_t grant_record_bytes = 160; // network::session_grant_bytes.
|
||||
inline constexpr std::size_t max_grant_records = 64; // As issued by the probe.
|
||||
inline constexpr std::size_t max_authority_bytes = 65536; // One small PEM CA.
|
||||
inline constexpr std::size_t max_field_bytes = 1024; // Every text field.
|
||||
using GrantRecord = std::array<std::uint8_t, grant_record_bytes>;
|
||||
@@ -35,7 +37,7 @@ enum class LaunchError : std::uint8_t {
|
||||
[[nodiscard]] std::string_view launch_error_text(LaunchError error) noexcept;
|
||||
|
||||
struct ConnectForm {
|
||||
std::string endpoint{"127.0.0.1:17400"}, server_name{"dev-region.evolution.test"};
|
||||
std::string endpoint{"void.aeternalisgames.com:7400"}, server_name{"dev-region.evolution.test"};
|
||||
std::string authority_path, grants_path;
|
||||
};
|
||||
struct Endpoint {
|
||||
@@ -45,6 +47,7 @@ struct Endpoint {
|
||||
struct ConnectMaterial {
|
||||
Endpoint endpoint;
|
||||
std::string server_name, authority_pem;
|
||||
std::string authority_path; // The same CA as a file (the QUIC stack loads it too).
|
||||
std::vector<GrantRecord> grants;
|
||||
};
|
||||
// "host:port", "[ipv6]:port" or "a.b.c.d:port"; plain DNS host names only.
|
||||
@@ -56,7 +59,7 @@ enum class ConnectSignal : std::uint8_t {
|
||||
welcome, // A session was opened.
|
||||
lost, // Transport/TLS failure or deadline before a Close.
|
||||
refused, // Closed as unauthenticated/expired/duplicate: this grant cannot work.
|
||||
not_ready, // Closed as server_shutdown/capacity: the server will retry later.
|
||||
not_ready, // Closed as shutdown/capacity: the session retries later with the next grant.
|
||||
exhausted // No unused grant remains.
|
||||
};
|
||||
enum class LaunchPhase : std::uint8_t { choosing, fixture, connecting, connected, failed };
|
||||
|
||||
@@ -9,17 +9,19 @@
|
||||
namespace evo::client {
|
||||
enum class OutcomeState : std::uint8_t {
|
||||
sent, // Queued to the server; no reply yet.
|
||||
admitted, // Accepted for scheduling; not yet durable.
|
||||
admitted, // Accepted for scheduling; not yet simulated or 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).
|
||||
unknown, // The connection ended first; the outcome is not known (final).
|
||||
simulated // M10 realtime intention: the region simulated its tick (final; never
|
||||
// durable, ADR-0092).
|
||||
};
|
||||
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.
|
||||
std::uint64_t tick{}, commit_sequence{}; // Intended/simulated tick; commit when durable.
|
||||
};
|
||||
class OutcomeLog {
|
||||
public:
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -139,4 +140,7 @@ class MessageReassembler {
|
||||
std::vector<std::uint8_t> buffer_;
|
||||
};
|
||||
[[nodiscard]] std::vector<std::uint8_t> frame_message(std::span<const std::uint8_t> payload);
|
||||
// The endpoint takes a numeric address (the pinned server name is checked separately):
|
||||
// looks a host name up once, IPv4 only, blocking. A numeric address comes back unchanged.
|
||||
[[nodiscard]] std::optional<std::string> resolve_ipv4(const std::string& host);
|
||||
} // namespace evo::network::quic
|
||||
|
||||
Reference in New Issue
Block a user