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 adoption workflow standard
cyh75d963adc635
diff --git a/docs/plans/scenario-testing-standard-repo.md b/docs/plans/scenario-testing-standard-repo.mdindex 8bb021647..360715fcc 100644--- a/docs/plans/scenario-testing-standard-repo.md+++ b/docs/plans/scenario-testing-standard-repo.md@@ -7,7 +7,7 @@This is the right short-term shape for proving the model, but it is not the right long-term shape if we want:- cross-project reuse-- a dedicated subagent focused on testing-system design+- a dedicated testing-owner agent focused on testing-system design- stable templates and conventions that are not tied to Vibe Remote release cadence- a shared standard that other repositories can adopt without inheriting Vibe Remote-specific assumptions@@ -83,6 +83,7 @@ scenario-testing-standard/├── templates/│ ├── capability-spec.md│ ├── scenario-catalog.md+│ ├── dependency-observation.md│ ├── harness-design.md│ └── pr-checklist.md├── examples/@@ -223,6 +224,6 @@ The right long-term shape is:- a standalone `scenario-testing-standard` repository- docs-first, template-first-- subagent-ready but not subagent-only+- testing-owner-agent-ready but not agent-only- examples from Vibe Remote, but not owned by Vibe Remote- optional reference harness primitives only after repeated reuse proves the needdiff --git a/standards/scenario-testing/ADOPTION.md b/standards/scenario-testing/ADOPTION.mdnew file mode 100644index 000000000..b25b0100a--- /dev/null+++ b/standards/scenario-testing/ADOPTION.md@@ -0,0 +1,209 @@+# Adoption Workflow++This document describes how a testing-owner agent should adopt this standard in a new project.++The goal is not to start by writing tests.+The goal is to build a reusable capability map, scenario catalog, harness boundary, and reality-feedback loop that the project can keep extending.++## Mission++The testing-owner agent is responsible for turning product behavior into durable testing assets.++Its job is to:++- understand the product before proposing tests+- map user-visible capabilities before mapping files+- turn high-value user journeys into scenario catalogs+- define reusable harness boundaries and fake/contract responsibilities+- absorb real-world feedback back into the test system++## Required Outputs++An adoption pass should normally leave behind:++- a capability map+- at least one capability spec+- at least one scenario catalog with stable IDs+- a harness boundary inventory+- reusable fake/probe primitives where needed+- a dependency observation log for reality feedback+- explicit manual gaps for what cannot yet be automated++## Phase 1: Understand The Product++Start from the product, not the code.++The testing-owner agent should answer:++- what is the product trying to help the user accomplish+- what design philosophy or quality bar is visible in the product+- which user journeys are core to product trust+- which failures would be most damaging even if local unit tests pass++Recommended evidence sources:++- product docs+- setup guides+- top-level architecture docs+- onboarding flows+- recent bug reports and manual regression habits++Primary output:++- a short product and capability summary that uses user-visible language++## Phase 2: Build The Capability Map++List the product in terms of capabilities, not modules.++Examples of good capability language:++- IM-driven backend auth recovery+- scheduled result delivery+- attachment upload and delivery+- session resumption across retries++Examples of poor starting points:++- auth service+- controller refactor+- slack adapter++Primary output:++- a capability map with rough priority and risk++## Phase 3: Build The Scenario Catalog++For each target capability, enumerate the meaningful user journeys.++The initial catalog should include:++- happy paths+- validation and negative paths+- recovery and retry paths+- concurrency or re-entry paths+- known historical regressions++Scenario definitions should use:++- `Given`+- `When`+- `Then`+- stable scenario ID+- automation layer target++Primary output:++- a scenario catalog with stable IDs++## Phase 4: Define The Boundary Model++Before building tests, define what belongs inside the service boundary and what should be faked or contract-tested.++Typical boundary questions:++- what user-visible flow should the scenario drive for real+- which external systems should be replaced with fakes+- which boundaries need contract tests instead of idealized mocks+- which behaviors are too risky or expensive to automate and must stay smoke/manual++Primary outputs:++- harness boundary inventory+- fake vs contract vs smoke decision list++## Phase 5: Build Reusable Harness Primitives++Do not start with one-off mocks per scenario.++Start by extracting reusable primitives such as:++- event probes+- fake transports or fake clients+- fake process handles+- state stores+- expectation helpers+- capability-specific harness wrappers++Rule:++- generic primitives belong in shared harness core+- capability-specific logic belongs in a thin harness layer+- scenario tests should compose these pieces, not redefine them++Primary outputs:++- reusable harness primitives+- first closed-loop scenario coverage for the capability++## Phase 6: Maintain A Reality Feedback Loop++Do not let the harness stay frozen at idealized behavior.++When real-world verification reveals that a dependency behaves differently from the current fake or assumption:++1. capture the observed behavior+2. identify which capability and scenario IDs are affected+3. decide whether this is:+ - a product rule+ - a dependency contract+ - a code bug+ - a fake/harness gap+4. update the fake, contract fixture, or scenario definition+5. add or update regression coverage++Examples:++- a CLI requires runtime restart after OAuth before it becomes usable+- a vendor SDK emits auth failures through metadata instead of exceptions+- a callback flow needs an additional verification step before user-visible success++Primary output:++- an updated dependency observation log plus changed tests and scenarios++## Fake Maturity Model++Treat fakes as assets with maturity levels.++### Ideal Fake++Built from the expected product behavior.+Useful for bootstrapping.+Not sufficient long-term on its own.++### Contract Fake++Built from official docs, protocol guarantees, or wire-level evidence.+Useful when the dependency has a stable documented contract.++### Observed Fake++Updated based on verified runtime behavior from manual regression, production incidents, or targeted reproductions.+This is the preferred long-term shape for high-risk dependencies.++Rule:++High-value capabilities should evolve away from purely ideal fakes.++## Ongoing Responsibilities++After initial adoption, the testing-owner agent should keep doing four things:++1. keep the capability map current+2. keep scenario catalogs ahead of feature work and bug fixes+3. push repeated manual regressions into reusable scenario coverage+4. keep dependency behavior models aligned with reality++## Definition Of Done For Adoption++Adoption is not complete when a project merely has one scenario test.++Adoption is complete enough to be useful when:++- the project has a capability map+- at least one high-risk capability has a scenario catalog+- at least one reusable harness layer exists+- reality feedback can be recorded and replayed into tests+- PR authors can point to scenario IDs and evidence layersdiff --git a/standards/scenario-testing/AGENTS.md b/standards/scenario-testing/AGENTS.mdindex 42248e009..ef961eb6c 100644--- a/standards/scenario-testing/AGENTS.md+++ b/standards/scenario-testing/AGENTS.md@@ -35,10 +35,12 @@ The goal is to add a reusable middle layer that answers:Overview and intended reuse model.- `STANDARD.md`The core methodology and testing pyramid.+- `ADOPTION.md`+ The onboarding workflow for a testing-owner agent adopting this standard in a new project.- `WORKFLOW.md`The day-to-day workflow for feature work, bug fixes, reviews, and CI.- `templates/`- Reusable templates for capability specs, scenario catalogs, and PR checklists.+ Reusable templates for capability specs, scenario catalogs, dependency observations, and PR checklists.- `examples/`Concrete project mappings. These explain how one repo applies the standard without redefining the standard itself.@@ -46,12 +48,22 @@ The goal is to add a reusable middle layer that answers:For a project adopting this standard, the normal outputs are:+- a product and capability summary+- a capability map- a capability spec- a scenario catalog with stable IDs+- a harness boundary inventory- a reusable scenario harness layer+- a dependency observation log- project-specific reference scenarios- PR/CI rules that enforce the standard+## Starting Rule++When adopting this standard in a new repository, start with `ADOPTION.md` before changing tests.++Use `WORKFLOW.md` only after the adoption baseline exists.+## Non-Goals- inventing a heavy generic workflow engine up frontdiff --git a/standards/scenario-testing/README.md b/standards/scenario-testing/README.mdindex 704202c74..e762fdacf 100644--- a/standards/scenario-testing/README.md+++ b/standards/scenario-testing/README.md@@ -41,9 +41,11 @@ Each capability owns:## Package Layout- `AGENTS.md`- Entry instructions for future agents or subagents working on this standard.+ Entry instructions for a future testing-owner agent or a human owner adopting this standard.- `STANDARD.md`The testing model and terminology.+- `ADOPTION.md`+ The onboarding workflow for introducing this standard into a new project.- `WORKFLOW.md`The recommended development and review process.- `templates/`@@ -53,15 +55,18 @@ Each capability owns:## How To Adopt It In A Project-1. Define capabilities in user-visible terms.-2. Create a scenario catalog with stable IDs.-3. Build a lightweight harness layer with reusable fakes and probes.-4. Map the project's existing tests into:+1. Understand the product and summarize its core capabilities in user-visible terms.+2. Build a capability map and prioritize the high-risk flows.+3. Create scenario catalogs with stable IDs.+4. Define the harness boundary and decide what is fake, contract, and smoke/manual.+5. Build a lightweight harness layer with reusable fakes and probes.+6. Map the project's existing tests into:- unit- contract- scenario- smoke/manual-5. Make scenario coverage part of feature and bug-fix delivery.+7. Maintain a dependency observation log so real-world behavior keeps updating the harness.+8. Make scenario coverage part of feature and bug-fix delivery.## Why It Is Package-Shaped@@ -70,5 +75,5 @@ This directory is structured so it can later be moved into its own repository wiThe intended future is:- a standalone repo for the standard-- a dedicated subagent that helps teams apply it+- a dedicated testing-owner agent that helps teams apply it- one or more project adapters or examples layered on topdiff --git a/standards/scenario-testing/STANDARD.md b/standards/scenario-testing/STANDARD.mdindex 675ec1626..2f6a18453 100644--- a/standards/scenario-testing/STANDARD.md+++ b/standards/scenario-testing/STANDARD.md@@ -119,6 +119,15 @@ Examples:- fake persistence store- probes for sent messages, state transitions, refresh hooks+Treat fakes as assets with explicit maturity:++- `ideal fake`+ - bootstraps expected behavior quickly+- `contract fake`+ - models documented or wire-level dependency guarantees+- `observed fake`+ - models verified runtime behavior discovered through reproductions, incidents, or manual regression+Recommended layering:- generic core primitives@@ -177,6 +186,8 @@ Good harnesses:- capture transcripts and terminal outputs- are cheap to extend+High-risk capabilities should evolve away from purely ideal fakes over time.+### Avoid- giant one-off mocks per test@@ -184,7 +195,20 @@ Good harnesses:- harnesses that mirror the production implementation too closely- full E2E infrastructure when a service-boundary scenario would do-## 6. Delivery Standard+## 6. Reality Feedback Rule++Scenario harnesses must absorb verified reality, not only idealized assumptions.++When runtime behavior disproves the current fake or scenario model:++1. record the observation+2. classify it as product rule, dependency contract, code bug, or fake gap+3. update the harness, contract fixtures, or scenario catalog as needed+4. preserve it as regression coverage where the capability risk justifies it++This is how scenario tests become more trustworthy over time instead of drifting away from real behavior.++## 7. Delivery StandardEvery feature or bug fix that changes a capability must update the relevant testing evidence.diff --git a/standards/scenario-testing/WORKFLOW.md b/standards/scenario-testing/WORKFLOW.mdindex 742836487..81392fe32 100644--- a/standards/scenario-testing/WORKFLOW.md+++ b/standards/scenario-testing/WORKFLOW.md@@ -1,5 +1,19 @@# Workflow+## Project Adoption Workflow++When bringing this standard into a new project, do not start with individual tests.++Start with `ADOPTION.md`, then establish:++1. a product and capability summary+2. a capability map+3. at least one scenario catalog with stable IDs+4. a harness boundary inventory+5. a dependency observation log++Only after that baseline exists should feature and bug-fix workflows rely on scenario coverage as a delivery rule.+## Feature WorkflowWhen adding a feature:@@ -10,6 +24,7 @@ When adding a feature:4. Implement the smallest relevant unit and contract tests.5. Add or update at least one closed-loop scenario.6. Record any residual manual checks.+7. Update the dependency observation log if the change was driven by real-world behavior not previously modeled.## Bug Fix Workflow@@ -19,7 +34,8 @@ When fixing a bug:2. Map the bug to an existing scenario ID, or create a new regression scenario ID.3. Add the narrow unit/contract test if the root cause is local.4. Add or update the scenario test that proves the user journey now closes.-5. Document why the previous test layers did not catch it.+5. Record whether the fix required updating an observed fake, contract fixture, or dependency assumption.+6. Document why the previous test layers did not catch it.## Review Workflow@@ -30,6 +46,8 @@ Reviewers should ask:3. Does the PR update the right layer of evidence?4. If the bug was flow-level, where is the scenario coverage?5. What remains intentionally manual?+6. Did the change reveal a dependency behavior the harness did not previously model?+7. If so, where was that knowledge recorded?PR authors should include in the PR body:@@ -49,6 +67,20 @@ Projects adopting this standard should evolve toward:CI does not need to run all scenario suites at once on day one.It does need a path toward capability-aware regression gates.+## Reality Feedback Workflow++When manual regression, smoke validation, or production behavior disagrees with the current harness:++1. capture the observation in the dependency observation log+2. identify affected capability and scenario IDs+3. decide whether the change belongs in:+ - a fake+ - a contract fixture+ - the scenario catalog+ - the manual runbook+4. update the relevant automated evidence+5. keep the fake aligned with observed behavior for high-risk paths+## Change ManagementAvoid introducing the standard as a single giant migration.diff --git a/standards/scenario-testing/templates/dependency-observation.md b/standards/scenario-testing/templates/dependency-observation.mdnew file mode 100644index 000000000..2189e5f62--- /dev/null+++ b/standards/scenario-testing/templates/dependency-observation.md@@ -0,0 +1,41 @@+# Dependency Observation++- Dependency:+- Capability:+- Related scenario IDs:+- Date observed:+- Evidence source:+ - manual regression+ - targeted reproduction+ - production incident+ - contract trace++## Previous Assumption++What the harness, fake, or team previously assumed.++## Observed Behavior++What the dependency actually did.++## Classification++Choose one:++- product rule+- dependency contract+- code bug+- fake or harness gap++## Required Updates++- capability spec:+- scenario catalog:+- fake / harness behavior:+- contract fixture:+- regression coverage:+- manual runbook:++## Resolution Notes++Describe what changed and what remains manual.