Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
docs(testing): add scenario catalog ids
cyh4925ce77d586
diff --git a/docs/regression/AUTH_SETUP_SCENARIO_CATALOG.md b/docs/regression/AUTH_SETUP_SCENARIO_CATALOG.mdnew file mode 100644index 000000000..1dc9e0c7a--- /dev/null+++ b/docs/regression/AUTH_SETUP_SCENARIO_CATALOG.md@@ -0,0 +1,93 @@+# Auth Setup Scenario Catalog++## Capability++`IM-driven backend auth recovery`++## Scenarios++### `AUTH-SETUP-001 Codex device auth happy path`++- Type: happy path+- Layer: scenario+- Given:+ An IM user starts Codex setup.+- When:+ Codex emits the device URL and code, the external login completes, and verification succeeds.+- Then:+ The user sees the login instructions, runtime refresh runs, and the user gets a success message.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_codex_device_auth_scenario_reaches_terminal_success`++### `AUTH-SETUP-002 Claude manual callback happy path`++- Type: happy path+- Layer: scenario+- Given:+ An IM user starts Claude setup in manual callback mode.+- When:+ The user replies with `authorizationCode#state` and Claude completion succeeds.+- Then:+ The user sees the callback instructions, runtime refresh runs, and the user gets a success message.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_claude_manual_callback_scenario_accepts_plain_reply_and_completes`++### `AUTH-SETUP-003 OpenCode direct key happy path`++- Type: happy path+- Layer: scenario+- Given:+ An IM user starts OpenCode direct-key setup.+- When:+ The user replies with a valid credential.+- Then:+ The key is installed, runtime refresh runs, stale sessions are cleared, and the user gets a success message.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_opencode_direct_key_scenario_installs_key_and_refreshes_runtime`++### `AUTH-SETUP-101 OpenCode plain chat is ignored while waiting for a credential`++- Type: negative path+- Layer: scenario+- Given:+ OpenCode setup is waiting for a credential reply.+- When:+ The user sends a normal chat message instead of a credential.+- Then:+ The message is not consumed as setup input and the flow keeps waiting.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_opencode_waiting_key_scenario_ignores_plain_chat`++### `AUTH-SETUP-201 Re-entering setup replaces the active flow`++- Type: recovery / retry+- Layer: scenario+- Given:+ A setup flow is already active for the same user and backend.+- When:+ The user starts setup again.+- Then:+ The old flow is canceled and terminated, and a fresh flow replaces it.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_codex_reentry_scenario_replaces_existing_flow`++### `AUTH-SETUP-202 Failed verification emits the reset path`++- Type: recovery / retry+- Layer: scenario+- Given:+ The setup process exits but login verification fails.+- When:+ The service evaluates the failed verification result.+- Then:+ The user gets a failure message with the reset/auth-setup action.+- Current test:+ `tests/test_agent_auth_setup_scenarios.py::test_codex_failure_scenario_emits_reset_path`++## Next High-Priority Gaps++- `AUTH-SETUP-102` wrong Claude callback format keeps the flow active+- `AUTH-SETUP-103` wrong user cannot submit code into someone else's flow+- `AUTH-SETUP-203` setup timeout emits a recoverable terminal state+- `AUTH-SETUP-204` success path refreshes runtime and clears stale sessions before next user turn+- `AUTH-SETUP-205` concurrent backend flows in one channel do not steal each other's repliesdiff --git a/docs/regression/MESSAGE_DELIVERY_SCENARIO_CATALOG.md b/docs/regression/MESSAGE_DELIVERY_SCENARIO_CATALOG.mdnew file mode 100644index 000000000..bfd28fbe7--- /dev/null+++ b/docs/regression/MESSAGE_DELIVERY_SCENARIO_CATALOG.md@@ -0,0 +1,40 @@+# Message Delivery Scenario Catalog++## Capability++`scheduled result delivery`++## Scenarios++### `MESSAGE-DELIVERY-001 Scheduled result finalizes its delivery anchor`++- Type: happy path+- Layer: scenario+- Given:+ A scheduled turn emits a normal result into its target channel.+- When:+ The dispatcher sends the result.+- Then:+ The sent message becomes the finalized scheduled anchor.+- Current test:+ `tests/test_message_delivery_scenarios.py::test_scheduled_result_delivery_scenario_finalizes_anchor`++### `MESSAGE-DELIVERY-002 Delivery override sends to the parent target but finalizes the source thread`++- Type: happy path+- Layer: scenario+- Given:+ A scheduled result is configured to deliver into the parent channel from a thread-scoped source context.+- When:+ The dispatcher sends the result.+- Then:+ The message is delivered to the override target while finalizing the original source-thread anchor metadata.+- Current test:+ `tests/test_message_delivery_scenarios.py::test_scheduled_result_delivery_override_scenario_uses_parent_channel_target`++## Next High-Priority Gaps++- `MESSAGE-DELIVERY-101` hidden message types should not leak a visible message+- `MESSAGE-DELIVERY-102` attachment upload failures preserve the text result path+- `MESSAGE-DELIVERY-201` Discord long-result splitting preserves the first chunk as scheduled anchor+- `MESSAGE-DELIVERY-202` quick-reply delivery keeps the primary message id stablediff --git a/docs/regression/README.md b/docs/regression/README.mdindex b4921976c..2987ec0ea 100644--- a/docs/regression/README.md+++ b/docs/regression/README.md@@ -8,6 +8,7 @@ It complements the existing automated `E2E` flow instead of replacing it:- `E2E testing` keeps using scripts and pytest for automatable scenarios.- multi-step auth/setup journeys should add a focused scenario harness case; see `AUTH_SETUP_SCENARIOS.md`+- capability scenario IDs and current catalog coverage live next to regression docs, for example `AUTH_SETUP_SCENARIO_CATALOG.md` and `MESSAGE_DELIVERY_SCENARIO_CATALOG.md`- `Regression testing` is for human-triggered checks on real IM platforms.## Setupdiff --git a/standards/scenario-testing/STANDARD.md b/standards/scenario-testing/STANDARD.mdindex 78c66f237..675ec1626 100644--- a/standards/scenario-testing/STANDARD.md+++ b/standards/scenario-testing/STANDARD.md@@ -158,6 +158,12 @@ Each scenario entry should describe:- automation layer- current test owner+Every scenario-backed automated test should expose the scenario ID in a searchable form, preferably:++- test docstring+- test metadata/decorator+- or a nearby scenario mapping constant+## 5. Harness Design Rules### Preferred Designdiff --git a/tests/test_agent_auth_setup_scenarios.py b/tests/test_agent_auth_setup_scenarios.pyindex 96b5845d8..ccc13be90 100644--- a/tests/test_agent_auth_setup_scenarios.py+++ b/tests/test_agent_auth_setup_scenarios.py@@ -13,6 +13,7 @@ from tests.scenario_harness.core import ScenarioExpect, ScenarioRunner, Scenarioclass AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):async def test_codex_failure_scenario_emits_reset_path(self):+ """Scenario: AUTH-SETUP-202"""harness = AuthSetupScenarioHarness()fake_process = FakeProcess()runner = ScenarioRunner(harness)@@ -47,6 +48,7 @@ class AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):ScenarioExpect.flow_missing(harness, "C1:codex")async def test_codex_reentry_scenario_replaces_existing_flow(self):+ """Scenario: AUTH-SETUP-201"""harness = AuthSetupScenarioHarness()first_process = FakeProcess()second_process = FakeProcess()@@ -79,6 +81,7 @@ class AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):ScenarioExpect.text_contains(harness, "starting codex", index=1)async def test_codex_device_auth_scenario_reaches_terminal_success(self):+ """Scenario: AUTH-SETUP-001"""harness = AuthSetupScenarioHarness()fake_process = FakeProcess()runner = ScenarioRunner(harness)@@ -124,6 +127,7 @@ class AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):ScenarioExpect.flow_missing(harness, "C1:codex")async def test_claude_manual_callback_scenario_accepts_plain_reply_and_completes(self):+ """Scenario: AUTH-SETUP-002"""harness = AuthSetupScenarioHarness()fake_client = object()completion_released = asyncio.Event()@@ -183,6 +187,7 @@ class AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):ScenarioExpect.flow_missing(harness, "C1:claude")async def test_opencode_direct_key_scenario_installs_key_and_refreshes_runtime(self):+ """Scenario: AUTH-SETUP-003"""harness = AuthSetupScenarioHarness()runner = ScenarioRunner(harness)harness.service._resolve_opencode_provider = AsyncMock(return_value="opencode")@@ -220,6 +225,7 @@ class AgentAuthSetupScenarioTests(unittest.IsolatedAsyncioTestCase):ScenarioExpect.flow_missing(harness, "C1:opencode")async def test_opencode_waiting_key_scenario_ignores_plain_chat(self):+ """Scenario: AUTH-SETUP-101"""harness = AuthSetupScenarioHarness()runner = ScenarioRunner(harness)harness.service._resolve_opencode_provider = AsyncMock(return_value="opencode")diff --git a/tests/test_message_delivery_scenarios.py b/tests/test_message_delivery_scenarios.pyindex ad5b3b47b..174cb8bd9 100644--- a/tests/test_message_delivery_scenarios.py+++ b/tests/test_message_delivery_scenarios.py@@ -13,6 +13,7 @@ from tests.scenario_harness.message_delivery import MessageDeliveryHarnessclass MessageDeliveryScenarioTests(unittest.IsolatedAsyncioTestCase):async def test_scheduled_result_delivery_scenario_finalizes_anchor(self):+ """Scenario: MESSAGE-DELIVERY-001"""harness = MessageDeliveryHarness(platform="slack")harness.context.platform_specific = {"turn_source": "scheduled",@@ -30,6 +31,7 @@ class MessageDeliveryScenarioTests(unittest.IsolatedAsyncioTestCase):self.assertEqual(harness.finalized_calls, [("C123", None, "msg-1")])async def test_scheduled_result_delivery_override_scenario_uses_parent_channel_target(self):+ """Scenario: MESSAGE-DELIVERY-002"""harness = MessageDeliveryHarness(platform="slack", thread_id="171717.123")harness.context.platform_specific = {"turn_source": "scheduled",