Skip to content

refactor(sensorservice): modernize service runtime - #19

Open
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-05-sensorservice-measurementsfrom
codex/sensorbox-refactor-06-sensorservice-runtime
Open

refactor(sensorservice): modernize service runtime#19
Foxpace wants to merge 1 commit into
codex/sensorbox-refactor-05-sensorservice-measurementsfrom
codex/sensorbox-refactor-06-sensorservice-runtime

Conversation

@Foxpace

@Foxpace Foxpace commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Refactors the foreground measurement runtime around explicit configuration and session state.

What was added

  • A MeasurementConfig model for service startup options.
  • Updated service controller and foreground MeasurementService lifecycle handling.
  • Notification updates driven by the new runtime state.
  • Removal of the legacy MeasurementStates enum.

How it works

The controller builds a typed configuration and starts the service. MeasurementService uses that configuration to create measurements, updates the shared session store as the lifecycle changes, and keeps the foreground notification synchronized with the active recording state.

Stack position

Layer 6 of 31 in the SensorBox refactor stack. Review this PR against its configured base to see only this layer.

Validation

  • Full stack: ./gradlew test — BUILD SUCCESSFUL (160 tasks)

@Foxpace Foxpace changed the title codex/sensorbox refactor 06 sensorservice runtime refactor(sensorservice): modernize service runtime Aug 15, 2026
@Foxpace
Foxpace marked this pull request as ready for review August 15, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant