Skip to content

feat(broker): register fbuild consumer payload-protocol 0x7EB1 - #440

Merged
zackees merged 1 commit into
mainfrom
feat/register-fbuild-payload-protocol
Jun 13, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/register-fbuild-payload-protocol

Conversation

@zackees

@zackees zackees commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reserve 0x7EB1 in the registered-consumer payload-protocol range (0x7000..=0x7EFF) for FastLED/fbuild's opaque Frame v1 request/response lane.
  • Sits alongside the existing zccache (0x7A63) and clud (0x7C4C) consumer registrations; FBUILD_PAYLOAD_PROTOCOL is re-exported from broker::protocol.
  • Extends the frozen consumer-registry test with the new ID (range/first-party/private-use assertions + pairwise distinctness).

This is the one-line registry PR required by the fbuild v1 broker adoption (#437 / FastLED/fbuild). fbuild pins the same value on its side with register_payload_protocol!.

Test plan

  • soldr cargo test -p running-process --lib broker::protocol::registry (4 passed)

Refs: #437

🤖 Generated with Claude Code

Reserve 0x7EB1 in the registered-consumer range (0x7000..=0x7EFF) for
FastLED/fbuild's opaque Frame v1 request/response lane, alongside the
existing zccache (0x7A63) and clud (0x7C4C) registrations. Re-export
FBUILD_PAYLOAD_PROTOCOL from broker::protocol and extend the frozen
consumer-registry test.

Refs: #437

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zackees
zackees merged commit 232a5f5 into main Jun 13, 2026
40 checks passed
@zackees
zackees deleted the feat/register-fbuild-payload-protocol branch June 13, 2026 15:38
zackees added a commit to FastLED/fbuild that referenced this pull request Jun 13, 2026
…g-process#437) (#559)

Add the `fbuild-broker` crate implementing v1 broker daemon discovery and
version negotiation for the fbuild daemon, behind a `RUNNING_PROCESS_DISABLE=1`
rollback to the legacy direct loopback-HTTP path.

Inventory (docs/running-process/inventory.md) determined the JSON encoding
lane: a single internal request/response model (`BrokerRequest`/`BrokerResponse`)
serializes to JSON on the direct path and to a prost envelope (carrying the
verbatim JSON payload) on the broker `Frame` lane, so the daemon keeps one body
parser. Golden-message parity tests assert the two encodings stay in lock-step.

- Bump running-process 4.2.0 -> 4.3.0, enable `client-async` (fbuild-daemon is
  a tokio runtime; uses `AsyncBrokerSession::adopt`); `core` stays on for
  containment.
- Pin consumer payload-protocol id 0x7EB1 via `register_payload_protocol!`
  (const-asserts registered-consumer range + first-party non-collision).
  Upstream documentary constant tracked in zackees/running-process#440.
- Register ServiceDefinition (SHARED_BROKER local + EXPLICIT_INSTANCE
  "ci-trusted" for CI) and publish a CacheManifest covering all seven cache
  roots (artifact/index/temp/log/lock/runtime/config).
- Typed broker refusals via `RefusalKind`.
- Surface live broker adoption facts through `fbuild daemon running-process`.

14 fbuild-broker tests pass (protocol round-trip, JSON/prost parity,
ServiceDefinition validation for both isolations, CacheManifest round-trip,
disable-env rollback, unreachable-broker Connect classification).

Refs: #510, zackees/running-process#437, zackees/running-process#440

Co-authored-by: Claude Opus 4.7 <[email protected]>
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