rdmbair15m5-changelog-20260921-1645-replicantdb-m4-live-governor-popover-appintents
rdmbair15m5-changelog-20260921-1645-replicantdb-m4-live-governor-popover-appintents
ReplicantDB M4 milestone completed: integrated live adaptive governor telemetry and safe pause/resume directive controls into MenuBarExtra popover, wired App Intents search and review queue routing to desktop AppState, verified 1,462 tests green, and achieved universal2 compilation with 4-way fleet parity.
Scope
- Hosts:
rdmbair15m5(working tree),rdmsm4x(canonical source root),git.ecs0.net, GitHub backup. - Target:
/Users/richh/dev/apps/replicantDB
Changes Summary
- Live Governor Telemetry in MenuBar Popover:
- Implemented
MenuBarGovernorTelemetryBuilderinSources/ReplicantDBCore/MenuBarGovernorTelemetry.swiftenforcing fixed-width, anti-jitter telemetry representation. - Built
governorTelemetrySectionandsignalCellinSources/replicantDB/ReplicantDBMenuBarPopoverView.swiftdisplaying dynamic pressure ladder badges (L0 Nominal to L4 Quiesce/Hold) and a 2x3 fixed grid for signals S1 Thermal, S2 Power/Battery (AC/LPM/Batt%), S3 Memory pressure, S6 Agent load, S7 Load Ratio EMA, and S8 Fleet Directive. - Added safe host-scoped pause and resume directive buttons writing
QuiesceDirectivewith TTL and host attribution toLocalDirectiveStore. - Wired reference-counted
.onAppear/.onDisappearlive telemetry timer loop inAppState.
- Implemented
- App Intents Search & Desktop AppState Wiring:
- Added
searchFilesFTS(query:limit:)toRooDatabase. - Added
SearchFilesIntentExecutioninSources/ReplicantDBCore/ReplicantDBAppIntentsModels.swifthandling full-text search query execution and missing file filtering. - Implemented
@MainActor final class ReplicantDBAppIntentRouterinSources/replicantDB/ReplicantDBAppIntentRouter.swiftbuffering and routing destinations (.search(query),.reviewQueue,.fleetStatus) across cold starts. - Updated
SearchFilesIntentandOpenReviewQueueIntentinSources/replicantDB/ReplicantDBAppIntents.swiftto route throughReplicantDBAppIntentRouter.
- Added
- Test Hardening & Universal2 Verification:
- Added
Tests/ReplicantDBTests/MenuBarPopoverTelemetryTests.swift(5 unit tests covering nominal, thermal, battery LPM, memory warning/critical, and fleet budget hold states). - Added
testSearchFilesIntentExecutionFiltersAndFormatsinTests/ReplicantDBTests/AppIntentsSurfaceTests.swift. - Verified full test suite: 1,462 tests across 135 suites passed with 0 failures (100% green) in 242.96 seconds.
- Executed
./build.sh --dev: compiled universal Mach-O slices (arm64+x86_64 cascadelake), signed with local Apple Development identity, and extracted App Intents metadata todist/ReplicantDB.app/Contents/Resources/Metadata.appintents/extract.actionsdata. - Executed
scripts/verify_build_contract.zsh --dev: passed all modular ECS, architecture, naming, and MCP safety contract assertions.
- Added
- Safety & Fleet Parity:
- Production safety preserved:
/Users/richh/Library/Application Support/replicantDB/replicantdb.sqlite(19.7 GB / 627,660 rows) remained untouched; all test harnesses used isolated temporary databases. - Commits
80437bbandbddfd57pushed togit.ecs0.net:git/apps/replicantDB.gitand GitHub backuprdmsm4x-dev-apps-replicantdb.git. - Canonical root
rdmsm4x:~/dev/apps/replicantDBfast-forwarded tobddfd57clean.
- Production safety preserved:
Verification Evidence
swift test→ Executed 1462 tests, with 0 failures (0 unexpected) in 242.958 (243.088) seconds../build.sh --dev→ rc=0 (Universal2 slices verified via lipo, App Intents metadata extracted).scripts/verify_build_contract.zsh --dev→ rc=0.git statusonrdmbair15m5andrdmsm4x→ working trees clean, 4-way parity synchronized.
Rollback
- Revert commits
bddfd57and80437bb:git revert bddfd57 80437bb.