feat: complete reliable coordination adapter
Some checks failed
tamq-ci / test (push) Failing after 5s
Some checks failed
tamq-ci / test (push) Failing after 5s
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
25113f463e
commit
6d2ccc7760
30 changed files with 2553 additions and 144 deletions
|
|
@ -47,6 +47,15 @@ def test_broker_collects_worker_followup_lines_until_empty(tmp_path, monkeypatch
|
|||
assert row["body"] == (
|
||||
"Review this\nContext: AUTH-WP-4.\nReply with accepted or blocked."
|
||||
)
|
||||
events = store.protocol_events()
|
||||
assert [event["event_type"] for event in events] == [
|
||||
"worker.block_started",
|
||||
"message.accepted",
|
||||
"worker.block_closed",
|
||||
]
|
||||
assert events[-1]["message_id"] == row["message_id"]
|
||||
assert events[-1]["outcome"] == "accepted"
|
||||
assert events[-1]["detail"] == '{"line_count":3,"reason":"empty_line"}'
|
||||
|
||||
|
||||
def test_new_worker_address_flushes_previous_block(tmp_path, monkeypatch):
|
||||
|
|
@ -81,6 +90,10 @@ def test_worker_cmd_is_inert_but_operator_cmd_changes_mode(tmp_path):
|
|||
broker.inspect_operator_line("cMD: MODE=TRIGGER")
|
||||
assert store.endpoint("ep")["delivery_mode"] == "trigger"
|
||||
assert notices[-1] == "From:tamq: Mode set to trigger."
|
||||
command_events = store.protocol_events(event_type="command.applied")
|
||||
assert len(command_events) == 1
|
||||
assert command_events[0]["delivery_mode"] == "trigger"
|
||||
assert command_events[0]["provenance"] == "operator_input"
|
||||
|
||||
|
||||
def test_operator_command_names_are_case_insensitive(tmp_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue