Repository navigation
Description
?## Scope
Track fbuild adoption of the upstream running-process v1 broker work.
Source tracker: zackees/running-process#242
Upstream phase gates:
- Phase 2.5: Extract BackendHandle abstraction (foundation for broker) zackees/running-process#232 - Phase 2.5 BackendHandle
- Phase 4: running-process-broker-v1 binary + Hello negotiation + perf-guard CI zackees/running-process#235 - Phase 4 broker client helper
- Phase 7: Default-off → default-on rollout (process discipline) zackees/running-process#238 - Phase 7 default-on rollout discipline
- Phase 8: Remove escape hatch (RUNNING_PROCESS_USE_BROKER=off) zackees/running-process#239 - Phase 8 escape-hatch removal
Related local context:
- Migrate all subprocess spawns to running-process; eliminate direct std::process / tokio::process usage #141 tracks broader subprocess migration to
running-process. - Daemon teardown hardening: process containment + socket lingering + console events #32 tracks daemon teardown hardening and process containment.
- Those are adjacent lifecycle/process-management issues, not this full broker adoption tracker.
Adoption checklist
- Adopt
running_process::broker::BackendHandleonce Phase 2.5 ships, replacing bespoke daemon probe / recovery / version-match wrappers where applicable. - Ship a
fbuild-daemon.servicedeffile in installers/packages at the platform paths defined byrunning-process, with the intended isolation mode declared. - Wire broker-client integration through
running_process::broker::client::connect_to_backendonce Phase 4 ships, including Hello-skip and broker fallback behavior. - Honor
RUNNING_PROCESS_DISABLE=1as the broker escape hatch while Phase 7 rollout is active. - Test both broker-mode and direct-daemon-mode paths.
- Document the broker default mode and escape hatch in the
fbuildREADME/docs. - Phase 7: stage default-off to default-on per the upstream rollout gate.
- Phase 8: remove the escape hatch only as part of the coordinated release wave tracked by Cross-cutting: Per-consumer broker adoption tracking (clud / zccache / fbuild / soldr-daemon) zackees/running-process#242.
Notes
zackees/fbuild is not visible to the GitHub connector; the accessible fbuild repository is FastLED/fbuild. Keep running-process#242 updated if the canonical repo mapping changes.
Minimal working path status
- PR feat: stub running-process broker adoption #529 added the fbuild running-process service metadata seam, platform service-definition path helper, direct fallback mode, and
RUNNING_PROCESS_DISABLE=1diagnostic surface. - PR feat: stub running-process broker adoption #529 added
crates/fbuild-daemon/running-process/fbuild-daemon.servicedef.textproto.inas the packager template stub. - PR feat: add running-process daemon diagnostics #530 added diagnostics-only
fbuild daemon running-process --jsonandfbuild daemon servicedef --jsonpreviews for service metadata, service-definition path, daemon binary candidate/existence, current direct-fallback mode, and deferred broker items. - Stubbed: encode and install the binary
fbuild.servicedefin installers/packages at the platform running-process service directory. - Stubbed: active
BackendHandleendpoint-response probing; fbuild still uses the direct loopback HTTP daemon endpoint for this slice. - Stubbed:
running_process::broker::client::connect_to_backend/ Hello-skip broker path. - Deferred: broker-mode vs direct-daemon-mode integration tests and three-OS acceptance.
- Deferred: Phase 7 default-on rollout and Phase 8 escape-hatch removal.
Current minimal policy
Current-regime fbuild work is satisfied by #529 and #530: fbuild exposes the running-process service metadata seam, direct fallback mode, service-definition template path, and diagnostics-only fbuild daemon running-process --json / fbuild daemon servicedef --json previews.
Everything else stays stubbed for now: binary .servicedef encoding/install, active BackendHandle, running_process::broker::client::connect_to_backend, the broker/direct integration matrix, full lint/dylint, and broad three-OS acceptance. Reopen or split follow-up issues only when stable broker APIs are worth pinning for fbuild.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
feat: stub running-process broker adoption
zackees commentedon Jun 9, 2026
Merged the minimal running-process adoption slice.
PR: #529
Merge SHA:
edb861bac0216fa63a66b6c84d244b88962b444aWhat landed:
fbuild_paths::running_processRUNNING_PROCESS_DISABLE=1diagnostic surfacefbuild-daemon.servicedef.textproto.intemplate stub for future package/install renderingCritical Windows-local checks run:
git diff --checksoldr cargo test -p fbuild-paths running_process -- --nocapturesoldr cargo check -p fbuild-clisoldr cargo fmt -p fbuild-paths -p fbuild-cli -- --check#510 remains open. Stubbed/deferred items are now listed in this issue body: binary
fbuild.servicedefpackage install, activeBackendHandleprobing,connect_to_backend/ Hello-skip broker path, broker/direct integration tests, three-OS acceptance, and Phase 7/8 rollout/removal.zackees commentedon Jun 9, 2026
Updated this tracker with the current minimal policy.
For fbuild, the next small useful slice is diagnostics-only: add a
fbuild daemon running-process --json/fbuild daemon servicedef --jsonpreview that reports the computed service metadata, service-definition path, daemon candidate path/existence, and current direct-fallback mode.Still stubbed/deferred: binary
.servicedefencoding/install, activeBackendHandle,running_process::broker::client::connect_to_backend, broker/direct integration matrix, full lint/dylint, and broad three-OS acceptance. Functional broker adoption should wait until stable broker APIs are worth pinning.zackees commentedon Jun 9, 2026
Current-regime fbuild slice is complete.
Merged PRs:
fbuild daemon running-process --jsonplusfbuild daemon servicedef --jsonalias, reporting service metadata, service-definition path, daemon binary candidate/existence, direct-fallback mode, and deferred broker items.Focused Windows host checks for #530:
soldr rustfmt --edition 2021 crates\fbuild-cli\src\cli\args.rs crates\fbuild-cli\src\cli\daemon_cmd.rs crates\fbuild-cli\src\cli\tests.rsgit diff --checksoldr cargo test -p fbuild-paths running_process -- --nocapturesoldr cargo test -p fbuild-cli daemon_running_process -- --nocapturesoldr cargo test -p fbuild-cli daemon_servicedef -- --nocapturesoldr cargo check -p fbuild-clisoldr cargo run -p fbuild-cli -- daemon running-process --jsonsoldr cargo run -p fbuild-cli -- daemon servicedef --jsonClosing this tracker as satisfied under the current minimal regime. Deferred/stubbed by design: binary
.servicedefencoding/install, activeBackendHandle,connect_to_backend, broker/direct integration matrix, full lint/dylint, and broad three-OS acceptance. Those remain visible on zackees/running-process#242 and should be split/reopened only when stable broker APIs are worth pinning for fbuild.chore(deps): bump running-process to 4.2.0 and note broker backend SDK (
feat(broker): adopt running-process v1 broker session (zackees/runnin…
feat(daemon): install running-process fbuild.servicedef on startup (#592