rdmbair15m5-changelog-20260915-2158-replicantdb-m4-governor-quiesce
rdmbair15m5-changelog-20260915-2158-replicantdb-m4-governor-quiesce
Implemented governor.json configuration loader and
SQLite page cache release at level 4 (quiesce) in
ReplicantDB (FEAT-20260905-06 & FEAT-20260905-07) with 100% pass
rate across all 1,247 tests.
Scope
- Hosts:
rdmsm4x(canonical dev root),rdmbair15m5(worker execution) - Targets:
ReplicantDBCore,ReplicantDBDaemon,ReplicantDBTests
Files Touched
Sources/ReplicantDBCore/Database.swift:- Added
RooDatabase.releaseMemory() -> Int32invokingsqlite3_db_release_memory(db)andPRAGMA shrink_memory;on serializedqueue.
- Added
Sources/ReplicantDBCore/FileIndexer.swift:- Wired
database.releaseMemory()whendecision.effective == .quiesceat crawl start boundary and at batch boundary checkpoints.
- Wired
Sources/ReplicantDBCore/TimeMachineIndexer.swift:- Wired
database.releaseMemory()whendecision.effective == .quiesceat bundle boundary and snapshot boundary checkpoints.
- Wired
Sources/ReplicantDBCore/PressureLadder.swift:- Implemented
PressureThresholds: Codablewith custom default-filling deserializer. - Implemented
GovernorConfigFilesupporting nested/flat thresholds,hostRole,honorFleetDirectives,maxLevelOnAC, andquietHours. - Implemented
GovernorConfigurationLoaderwith hot-reloading via modification date checks, custom environment path support, and hub escape-hatch refusal. - Added
PressureLadder.updateConfigurationandisGovernorEnabled. - Wired
GovernorConfigurationLoaderintoIndexPressureController.
- Implemented
Sources/ReplicantDBDaemon/DaemonService.swift:- Wired
database.releaseMemory()inapplyDirective,admitOrAccumulate, andrunMaintenancePass(start & mid-pass) on level 4 quiesce. - Exposed
governorConfigLoaderparameter inDaemonService.init.
- Wired
Tests/ReplicantDBTests/GovernorConfigAndQuiesceMemoryTests.swift:- 11 new unit tests covering configuration loading, hot reloading,
escape hatch refusal on hub, escape hatch honor on spoke, quiet hours
evaluation,
IndexPressureControllersync,RooDatabase.releaseMemory(),FileIndexerquiesce pause, andDaemonServicedirective hold cache release.
- 11 new unit tests covering configuration loading, hot reloading,
escape hatch refusal on hub, escape hatch honor on spoke, quiet hours
evaluation,
Commands Run & Verification Evidence
swift test --filter 'AdaptiveBackoff|CooperativeQuiesce|GovernedFileIndexer|GovernorTelemetry|GovernorConfigAndQuiesceMemory':- 108 tests executed, 0 failures (100% pass) in 3.465s.
swift test(full ReplicantDB suite):- 1,247 tests executed, 0 failures (100% pass) in 237.001s.
git commit -m 'feat(governor): implement governor.json loader and level 4 SQLite cache release (FEAT-20260905-06, FEAT-20260905-07)':- Commit SHA:
beee1f5on canonicalrdmsm4x:~/dev/apps/replicantDB.
- Commit SHA:
ticket comment FEAT-20260905-06andticket comment FEAT-20260905-07:- Recorded verification evidence on canonical ticketing system.
How to Undo
git checkout 756ea05onrdmsm4x:~/dev/apps/replicantDB.