Complete M7.5 durable batch outcomes and commit resolution
ADR-0063: manifest v2 (360 bytes) binds a per-tick validation trace object and a canonical decision block by SHA-256. Publication replays the trace from the committed predecessor's verified payload and requires every report and the candidate bytes, derives deaths deterministically, uploads payload and trace with verified read-back, then sends manifest and decisions to one fenced statement. RegionBatch seals at a terminal transition or 64 ticks and refuses ticks until durable confirmation. Schema v5 records the checkpoint, its decisions and outbox rows atomically; a unique index keeps one terminal outcome per actor (EVL08), triggers make commits/decisions immutable (EVL09), an exact retry of a committed ID returns the original receipt, changed bytes conflict, and read-only resolve_region_commit answers committed/absent/ conflict. Outbox pending/acknowledge give idempotent at-least-once delivery. Recovery reconciles durable deaths with restored lifecycle (and archive deaths for the lineage profile). Validated: Windows CTest 58/58; Linux GCC Debug/Release, clang-tidy and ASan/UBSan CTest 58/58 each; PostgreSQL suites Release, analysis, ASan (lost response, committed-after-timeout, terminated orphan retry, changed bytes, repeated/partial/reordered decisions, gap, outbox redelivery, history quarantine); five mutations each caught. No Docker/Gitea CI, process kill, broker or deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -78,7 +78,7 @@ target_include_directories(evo_region_lease PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/
|
||||
target_compile_features(evo_region_lease PUBLIC cxx_std_23)
|
||||
evo_owned_target(evo_region_lease)
|
||||
# Portable checkpoint manifest codec and environmental-v1 payload validation.
|
||||
add_library(evo_region_checkpoint STATIC src/persistence/region_checkpoint.cpp)
|
||||
add_library(evo_region_checkpoint STATIC src/persistence/region_checkpoint.cpp src/persistence/region_batch.cpp)
|
||||
add_library(evo::region_checkpoint ALIAS evo_region_checkpoint)
|
||||
target_link_libraries(evo_region_checkpoint PUBLIC evo::region_lease evo::processes)
|
||||
evo_owned_target(evo_region_checkpoint)
|
||||
@@ -123,6 +123,11 @@ if(BUILD_TESTING)
|
||||
evo_owned_target(evo-lineage-region-tests)
|
||||
add_test(NAME lineage-region-contracts COMMAND evo-lineage-region-tests)
|
||||
set_tests_properties(lineage-region-contracts PROPERTIES TIMEOUT 60)
|
||||
add_executable(evo-region-batch-tests tests/region_batch_tests.cpp)
|
||||
target_link_libraries(evo-region-batch-tests PRIVATE evo::region_checkpoint)
|
||||
evo_owned_target(evo-region-batch-tests)
|
||||
add_test(NAME region-batch-contracts COMMAND evo-region-batch-tests)
|
||||
set_tests_properties(region-batch-contracts PROPERTIES TIMEOUT 60)
|
||||
add_executable(evo-region-checkpoint-tests tests/region_checkpoint_tests.cpp)
|
||||
target_link_libraries(evo-region-checkpoint-tests PRIVATE evo::region_checkpoint)
|
||||
evo_owned_target(evo-region-checkpoint-tests)
|
||||
|
||||
Reference in New Issue
Block a user