Run a non-blocking TLS 1.3 session server inside evo-server's loop: environment views come from the region's own field/terrain stores with an explicitly empty organism presentation; admitted intentions ride the next synthetic input (content unchanged) and return a durable no-effect outcome from the host's final acknowledgement, or not_committed when dropped. Sessions are bound to their connection, epochs close stale sessions, and connections have bounded output, input rate and deadlines. SessionClient and evo-client --connect consume one single-use grant per Hello (refusals before admission keep it), reset to a fresh baseline on every session, keep stale views visible and report in-flight intentions as unknown after loss. evo-dev-session generates dev credentials, grant bundles and runs a restart probe. The dev deployment gains a drill-time, loopback-only listener with an optional Secret, enforced by the policy check, and tools/ops/session-drill.sh. Protocol v1 gains IntentOutcome and the capacity close reason before any deployment. ADR-0083 records the maintainer-confirmed decisions; M8-dev/stage remains not passed and no cluster change was made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
797 B
C++
23 lines
797 B
C++
#pragma once
|
|
#include "evo/network/dev_credentials.hpp"
|
|
#include "evo/network/tls_channel.hpp"
|
|
#include "network_test.hpp"
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
namespace evo::network_test {
|
|
inline constexpr const char* server_name = "dev-region.evolution.test";
|
|
// Throwaway credentials from the same generator operators use (dev only).
|
|
struct Pki {
|
|
explicit Pki(const char* name = server_name) {
|
|
const auto made = network::generate_dev_credentials(
|
|
network::DeploymentEnvironment::dev, name, 30, std::chrono::system_clock::now());
|
|
CHECK(made);
|
|
authority = made->authority_pem;
|
|
server = {made->server_certificate_pem, made->server_key_pem};
|
|
}
|
|
std::string authority;
|
|
network::ServerCredentials server;
|
|
};
|
|
} // namespace evo::network_test
|