feat: boundaries#7
Merged
Merged
Conversation
Signed-off-by: Patrick Lee Scott <pat@patscott.io>
patrickleet
added a commit
that referenced
this pull request
May 29, 2026
Per the locked spec (Decision #6), KnativeBus implements only Bus and NOT BusConsumer — Knative is a GitOps/HTTP transport with no in-process consume loop: - produce: send/publish POST a binary-mode CloudEvent to a broker-ingress URL ({ingress_base}/{namespace}/{broker}); publish targets the service's own {source}-events broker, send targets a downstream {commands_broker}. A message without an id is rejected (CloudEvents mandates `id`). - consume = deploy-time artifacts: manifests(&plan, &subscriptions) renders role-based Broker + per-name Trigger YAML — own {source}-commands broker + command triggers if it handles commands, own {source}-events broker if publishes_events, and a Trigger per subscribed event on its producer's broker, with /cloudevent/<type> subscriber URIs. A .local(addr) builder switches subscribers to a kubefwd address. Adds the per-type /cloudevent/{type} route to cloud_events_router (Decision #7) and reqwest (optional, default-features off) under the http feature for the POST. Four tests: produce round-trips through a local cloud_events_router into dispatch_message; missing id rejected; manifests render brokers/triggers; pure-consumer (publishes_events=false) owns no broker and uses the local subscriber URI. Implements [[tasks/build-transport-bus-facade]] Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
patrickleet
added a commit
that referenced
this pull request
May 30, 2026
Per the locked spec (Decision #6), KnativeBus implements only Bus and NOT BusConsumer — Knative is a GitOps/HTTP transport with no in-process consume loop: - produce: send/publish POST a binary-mode CloudEvent to a broker-ingress URL ({ingress_base}/{namespace}/{broker}); publish targets the service's own {source}-events broker, send targets a downstream {commands_broker}. A message without an id is rejected (CloudEvents mandates `id`). - consume = deploy-time artifacts: manifests(&plan, &subscriptions) renders role-based Broker + per-name Trigger YAML — own {source}-commands broker + command triggers if it handles commands, own {source}-events broker if publishes_events, and a Trigger per subscribed event on its producer's broker, with /cloudevent/<type> subscriber URIs. A .local(addr) builder switches subscribers to a kubefwd address. Adds the per-type /cloudevent/{type} route to cloud_events_router (Decision #7) and reqwest (optional, default-features off) under the http feature for the POST. Four tests: produce round-trips through a local cloud_events_router into dispatch_message; missing id rejected; manifests render brokers/triggers; pure-consumer (publishes_events=false) owns no broker and uses the local subscriber URI. Implements [[tasks/build-transport-bus-facade]] Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.