Implement M9.6 narrow secure dev-session protocol
Add protocol v1: versioned, bounded frames (Hello, Welcome, Intent, IntentResult, environment/organism views, Close) carrying session, epoch and commit watermark, with an explicit little-endian canonical codec, a header-first FrameReader, seeded mutation tests and a libFuzzer target. SessionAdmission enforces world/region scope, grant lifetime and skew, single-use grants, one session per subject, epoch, replay, tick window and per-session rate. Dev identity is a 108-byte HMAC-SHA256 grant (PSA) that cannot be created or verified outside the dev environment. Transport security is TLS 1.3 only via pinned Mbed TLS 4.1.1 LTS with TLS 1.2, DTLS, tickets and PSK compiled out, AEAD suites, ECDHE groups and a pinned dev CA. Opt-in EVO_BUILD_NETWORK, new network CI suite. Sockets and region integration follow in M9.7. ADR-0082 records the decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ option(EVO_BUILD_ECS_EXPERIMENT "Build the isolated EnTT comparison (explicit pr
|
||||
option(EVO_BUILD_POSTGRES "Build the isolated Linux PostgreSQL persistence adapter" OFF)
|
||||
option(EVO_BUILD_CLIENT_PROBE "Build the isolated M9.1 SDL dependency probe" OFF)
|
||||
option(EVO_BUILD_CLIENT "Build the native M9 engineering client" OFF)
|
||||
option(EVO_BUILD_NETWORK "Build the M9.6 dev session protocol and TLS adapter (explicit Mbed TLS preparation required)" OFF)
|
||||
set(EVO_SANITIZER "none" CACHE STRING "none, address (ASan/UBSan), or thread")
|
||||
set_property(CACHE EVO_SANITIZER PROPERTY STRINGS none address thread)
|
||||
include(cmake/ProjectOptions.cmake)
|
||||
@@ -92,6 +93,19 @@ target_link_libraries(evo_region_checkpoint PUBLIC evo::region_lease evo::proces
|
||||
evo_owned_target(evo_region_checkpoint)
|
||||
|
||||
include(CTest)
|
||||
if(EVO_BUILD_CLIENT OR EVO_BUILD_NETWORK)
|
||||
# SDL-free client value contracts (M9.3-M9.5), shared by the client and the dev
|
||||
# session codec. They copy read-only world/biology views, never the reverse.
|
||||
add_library(evo_client_controls STATIC src/client/camera/camera.cpp src/client/input/input.cpp)
|
||||
target_include_directories(evo_client_controls PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
evo_owned_target(evo_client_controls)
|
||||
add_library(evo_client_views STATIC src/client/views/environment_view.cpp src/client/views/organism_view.cpp)
|
||||
target_link_libraries(evo_client_views PUBLIC evo::world evo::biology)
|
||||
evo_owned_target(evo_client_views)
|
||||
endif()
|
||||
if(EVO_BUILD_NETWORK)
|
||||
include(cmake/Network.cmake)
|
||||
endif()
|
||||
if(EVO_BUILD_CLIENT_PROBE OR EVO_BUILD_CLIENT)
|
||||
include(cmake/ClientProbe.cmake)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user