M11.1: time-based rate conversion (ADR-0099, segment 1)
Foundation / checks (deploy) (push) Successful in 3m27s
Foundation / checks (ecs) (push) Successful in 1m51s
Foundation / checks (client) (push) Successful in 12m31s
Foundation / checks (network) (push) Successful in 13m30s
Foundation / checks (tsan) (push) Canceled after 8m42s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 27m37s
Foundation / checks (postgres) (push) Canceled after 15m9s
Foundation / checks (deploy) (push) Successful in 3m27s
Foundation / checks (ecs) (push) Successful in 1m51s
Foundation / checks (client) (push) Successful in 12m31s
Foundation / checks (network) (push) Successful in 13m30s
Foundation / checks (tsan) (push) Canceled after 8m42s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 27m37s
Foundation / checks (postgres) (push) Canceled after 15m9s
Rates are stored per second in their integer base units and converted at the tick boundary with no carried state: costs round up, capacities down (maintainer decision), error below one unit per tick. per_second_from_per_tick is the migration's exact inverse (x20 at 50 ms) and refuses inexact values. New rate-contracts test. No biology uses it yet; genome v2, development v2 and process fields follow. Refresh the dev session window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -60,7 +60,7 @@ target_include_directories(evo_world PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
target_compile_features(evo_world PUBLIC cxx_std_23)
|
||||
evo_owned_target(evo_world)
|
||||
|
||||
add_library(evo_accounting STATIC src/accounting/ledger.cpp)
|
||||
add_library(evo_accounting STATIC src/accounting/ledger.cpp src/accounting/rates.cpp)
|
||||
add_library(evo::accounting ALIAS evo_accounting)
|
||||
target_include_directories(evo_accounting PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_compile_features(evo_accounting PUBLIC cxx_std_23)
|
||||
@@ -464,6 +464,11 @@ if(BUILD_TESTING)
|
||||
evo_owned_target(evo-ledger-tests)
|
||||
add_test(NAME ledger-contracts COMMAND evo-ledger-tests)
|
||||
set_tests_properties(ledger-contracts PROPERTIES TIMEOUT 60)
|
||||
add_executable(evo-rate-tests tests/rate_tests.cpp)
|
||||
target_link_libraries(evo-rate-tests PRIVATE evo::accounting)
|
||||
evo_owned_target(evo-rate-tests)
|
||||
add_test(NAME rate-contracts COMMAND evo-rate-tests)
|
||||
set_tests_properties(rate-contracts PROPERTIES TIMEOUT 60)
|
||||
add_executable(evo-tests tests/simulation_tests.cpp)
|
||||
target_link_libraries(evo-tests PRIVATE evo::simulation)
|
||||
evo_owned_target(evo-tests)
|
||||
|
||||
Reference in New Issue
Block a user