feat(prune): R1 prune-reconcile pure core — (owned ∩ present) − referenced
Add REAPER-free/filesystem-free prune orphan-set core + additive BankBook::referencedPaths() union query, with full unit coverage.
This commit is contained in:
@@ -214,6 +214,18 @@ target_link_libraries(bank_book PUBLIC bank_model)
|
||||
add_library(owned_manifest STATIC src/owned_manifest.cpp)
|
||||
target_include_directories(owned_manifest PUBLIC src)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2g''') Pure prune_reconcile library — NO REAPER, NO SWELL, NO filesystem. The
|
||||
# Phase R (Reclaim) Wave-1 safety-critical decision: given the files present
|
||||
# in the bank folder, the union of files referenced across every bank, and the
|
||||
# owned-file manifest, compute the orphan set (owned ∩ present) − referenced.
|
||||
# Mirror of view_mode_model::reconcile one level down (files, not GUIDs). Small
|
||||
# pure function; R2/R3 wrap the two ends (folder enumeration + deletion) in the
|
||||
# shell. Standalone — depends only on the standard library.
|
||||
# ---------------------------------------------------------------------------
|
||||
add_library(prune_reconcile STATIC src/prune_reconcile.cpp)
|
||||
target_include_directories(prune_reconcile PUBLIC src)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2g) Pure realtime_record library — NO REAPER, NO SWELL. The M8 realtime-record
|
||||
# logic: capture scope + FX-tap point -> I_RECMODE / I_RECMODE_FLAGS values,
|
||||
@@ -338,6 +350,10 @@ add_executable(owned_manifest_tests tests/test_owned_manifest.cpp)
|
||||
target_link_libraries(owned_manifest_tests PRIVATE owned_manifest)
|
||||
add_test(NAME owned_manifest_tests COMMAND owned_manifest_tests)
|
||||
|
||||
add_executable(prune_reconcile_tests tests/test_prune_reconcile.cpp)
|
||||
target_link_libraries(prune_reconcile_tests PRIVATE prune_reconcile bank_book)
|
||||
add_test(NAME prune_reconcile_tests COMMAND prune_reconcile_tests)
|
||||
|
||||
add_executable(app_version_tests tests/test_app_version.cpp)
|
||||
target_link_libraries(app_version_tests PRIVATE app_version)
|
||||
add_test(NAME app_version_tests COMMAND app_version_tests)
|
||||
|
||||
Reference in New Issue
Block a user