CB-520: split ReplyInbox into explicit own/release and publish halves #9

Closed
ltms wants to merge 1 commits from worker/cb-520-inbox-produce-consume-split-825963-3 into main
Owner

Splits the reply inbox port so publishing no longer implies consuming/owning.

  • ReplyInbox gains explicit own(target) / release(target) lifecycle methods.
  • InMemoryReplyInbox enforces ownership: peek/ack only operate on owned targets; publish works for any target.
  • AmqpReplyInbox only attaches a manual-ack consumer on own; publish sends to the queue without consuming.
  • SessionManager now notifies acquire listeners; Bridged wires replyInbox.own on acquire and replyInbox.release on release.
  • Tests updated to own targets before draining; contract test updated and adds coverage proving publish does not attach a consumer and that release cancels the consumer.

mvn clean install from bridged/: Tests run: 360, Failures: 0, Errors: 0, Skipped: 0.

The AMQP contract tests were updated but could not be executed here (Docker/testcontainers unavailable; excluded by default-excludes profile per CB-521).

Splits the reply inbox port so publishing no longer implies consuming/owning. - `ReplyInbox` gains explicit `own(target)` / `release(target)` lifecycle methods. - `InMemoryReplyInbox` enforces ownership: `peek`/`ack` only operate on owned targets; `publish` works for any target. - `AmqpReplyInbox` only attaches a manual-ack consumer on `own`; `publish` sends to the queue without consuming. - `SessionManager` now notifies acquire listeners; `Bridged` wires `replyInbox.own` on acquire and `replyInbox.release` on release. - Tests updated to own targets before draining; contract test updated and adds coverage proving publish does not attach a consumer and that release cancels the consumer. `mvn clean install` from `bridged/`: Tests run: 360, Failures: 0, Errors: 0, Skipped: 0. The AMQP contract tests were updated but could not be executed here (Docker/testcontainers unavailable; excluded by `default-excludes` profile per CB-521).
ltms added 1 commit 2026-08-04 17:56:03 +02:00
ltms closed this pull request 2026-08-13 16:01:32 +02:00
ltms deleted branch worker/cb-520-inbox-produce-consume-split-825963-3 2026-08-13 16:01:32 +02:00
Some checks are pending
CI / build (pull_request) Successful in 1m22s

Pull request closed

Sign in to join this conversation.