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
refactor(agents): rename the built-in backend id from avibe to vibey (#2383)
Call White8ab824a834a3
diff --git a/config/v2_config.py b/config/v2_config.pyindex b9bdd6f0c..e80c59bab 100644--- a/config/v2_config.py+++ b/config/v2_config.py@@ -2828,8 +2828,8 @@ class ModelHubAgentSupplyConfig:@classmethoddef default(cls, backend: str, *, mode: Literal["hub", "direct"]) -> "ModelHubAgentSupplyConfig":- if backend == "avibe":- return cls(backend="avibe", mode="hub", menu_kind="fixed")+ if backend == "vibey":+ return cls(backend="vibey", mode="hub", menu_kind="fixed")if backend == "opencode":return cls(backend="opencode",@@ -2877,8 +2877,8 @@ class ModelHubAgentSupplyConfig:raise ValueError("Config 'model_hub.agents.backend' is invalid")if not isinstance(mode, str) or mode not in {"hub", "direct"}:raise ValueError("Config 'model_hub.agents.mode' is invalid")- if backend == "avibe" and mode != "hub":- raise ValueError("Config 'model_hub.agents.avibe.mode' must be hub")+ if backend == "vibey" and mode != "hub":+ raise ValueError("Config 'model_hub.agents.vibey.mode' must be hub")expected_menu_kind = "open" if backend == "opencode" else "fixed"if not isinstance(menu_kind, str) or menu_kind != expected_menu_kind:raise ValueError("Config 'model_hub.agents.menu_kind' is invalid for backend")@@ -3014,27 +3014,27 @@ class ModelHubConfig:default_factory=lambda: {backend: ModelHubAgentSupplyConfig.default(backend, mode="hub")for backend in MODEL_HUB_BACKENDS- if backend != "avibe"+ if backend != "vibey"})# Fresh configs and explicit Start/Stop consume the default. Disk observers# retain a pending false marker until lock-owning startup commits promotion;# an unrelated save must not acknowledge an upgrade it did not perform.runtime_default_applied: bool = True- # Not persisted, like ``V2Config.load_warnings``. True while the Avibe- # entry was never supplied: a fresh install, or a file written before the- # Avibe Agent existed. The empty entry standing in waits for its starting- # supply (see ``ModelHubService._seed_avibe``), and until that seed, or any+ # Not persisted, like ``V2Config.load_warnings``. True while the Vibey+ # entry was never supplied: a fresh install, or a file written before+ # Vibey existed. The empty entry standing in waits for its starting+ # supply (see ``ModelHubService._seed_vibey``), and until that seed, or any# other edit, touches it, ``to_payload`` keeps it absent, so an unrelated# write cannot record an empty supply as the user's choice.- avibe_supply_pending: ClassVar[bool] = False+ vibey_supply_pending: ClassVar[bool] = Falsedef __post_init__(self) -> None:# Existing in-process config producers may still supply the released# three-backend shape, just like older on-disk configurations.- if "avibe" not in self.agents:- self.agents["avibe"] = ModelHubAgentSupplyConfig.default("avibe", mode="hub")- self.avibe_supply_pending = True+ if "vibey" not in self.agents:+ self.agents["vibey"] = ModelHubAgentSupplyConfig.default("vibey", mode="hub")+ self.vibey_supply_pending = True@staticmethoddef source_eligible_for_backend(@@ -3117,7 +3117,7 @@ class ModelHubConfig:)agents = {}for backend in MODEL_HUB_BACKENDS:- if backend == "avibe" and backend not in agents_payload:+ if backend == "vibey" and backend not in agents_payload:# Supplied by ``__post_init__``, which marks it pending.continueif backend not in agents_payload:@@ -3176,8 +3176,8 @@ class ModelHubConfig:return configdef to_payload(self) -> dict:- unseeded = self.avibe_supply_pending and self.agents["avibe"] == ModelHubAgentSupplyConfig.default(- "avibe", mode="hub"+ unseeded = self.vibey_supply_pending and self.agents["vibey"] == ModelHubAgentSupplyConfig.default(+ "vibey", mode="hub")return {"enabled": self.enabled,@@ -3186,7 +3186,7 @@ class ModelHubConfig:"agents": {backend: self.agents[backend].to_payload()for backend in MODEL_HUB_BACKENDS- if not (backend == "avibe" and unseeded)+ if not (backend == "vibey" and unseeded)},}diff --git a/core/agent_core/__init__.py b/core/agent_core/__init__.pyindex df3a8068c..2d3e62e5e 100644--- a/core/agent_core/__init__.py+++ b/core/agent_core/__init__.py@@ -3,6 +3,6 @@Layers: ``ai`` (provider adapters), ``agent`` (loop), ``harness`` (transcript andcontext management), ``tools`` (coding tools). This package knows nothing aboutIM platforms, the controller, Watch, or Model Hub's HTTP surface; the backend-adapter in ``modules/agents/avibe/`` supplies those through the interfaces here.+adapter in ``modules/agents/vibey/`` supplies those through the interfaces here.Shapes follow ``docs/plans/agent-core-contracts/``."""diff --git a/core/controller.py b/core/controller.pyindex cacd9e615..2fd3b604d 100644--- a/core/controller.py+++ b/core/controller.py@@ -317,11 +317,11 @@ class Controller:# Background task for cleanupself.cleanup_task: Optional[asyncio.Task] = None- self.avibe_model_supply_task: Optional[asyncio.Task] = None- from modules.agents.avibe.recovery import AvibeRecovery+ self.vibey_model_supply_task: Optional[asyncio.Task] = None+ from modules.agents.vibey.recovery import VibeyRecovery- # The single owner of the Avibe Agent's settlement outside a Turn.- self.avibe_recovery = AvibeRecovery(self)+ # The single owner of Vibey's settlement outside a Turn.+ self.vibey_recovery = VibeyRecovery(self)self.trace_retention_task: Optional[asyncio.Task] = Noneself._trace_retention_executor: Optional[Any] = Noneself._trace_retention_cancel_event: Optional[threading.Event] = None@@ -381,12 +381,12 @@ class Controller:selections.append((backend, model))return selections- def _reconcile_avibe_agent_model(self) -> None:- """Give the built-in Avibe Agent its catalog's first model while it has none.+ def _reconcile_vibey_agent_model(self) -> None:+ """Give the built-in Vibey Agent its catalog's first model while it has none.- An Avibe Agent without a model cannot run a turn, so this only makes an+ A Vibey Agent without a model cannot run a turn, so this only makes anunrunnable Agent runnable. Decided under the store's write lock, it never- replaces a model the user chose. It runs whenever the Avibe catalog+ replaces a model the user chose. It runs whenever the Vibey catalogchanges (``backend_catalog_changed``) and at every start, so a hand-off afailed write or an exit lost heals on the next one. No built-in existswhen a user Agent already holds the name.@@ -394,15 +394,15 @@ class Controller:from vibe.authorization import instance_owner_context- models = self.model_hub_service.store.load().agents["avibe"].models+ models = self.model_hub_service.store.load().agents["vibey"].modelsif not models:returnstore = self.vibe_agent_store- avibe = store.get_builtin_default_agent_for_backend("avibe", enabled_only=False)- if avibe is None or str(avibe.model or "").strip():+ vibey = store.get_builtin_default_agent_for_backend("vibey", enabled_only=False)+ if vibey is None or str(vibey.model or "").strip():returnstore.update(- avibe.name,+ vibey.name,model=models[0].id,only_if_model_unset=True,user_context=instance_owner_context(),@@ -413,12 +413,12 @@ class Controller:from config.v2_config import V2Config- if backend == "avibe":+ if backend == "vibey":try:- self._reconcile_avibe_agent_model()+ self._reconcile_vibey_agent_model()except Exception:# The catalog change stands; the next start reconciles again.- logger.warning("Avibe Agent model reconciliation failed", exc_info=True)+ logger.warning("Vibey Agent model reconciliation failed", exc_info=True)try:latest = V2Config.load()except FileNotFoundError:@@ -431,20 +431,20 @@ class Controller:if callable(adopt_catalog):await adopt_catalog()- async def _seed_avibe_model_supply(self) -> None:- """Seed the Avibe Agent's Model Hub entry from existing Sources, then reconcile its model."""+ async def _seed_vibey_model_supply(self) -> None:+ """Seed Vibey's Model Hub entry from existing Sources, then reconcile its built-in Agent's model."""model_hub_service = getattr(self, "model_hub_service", None)if model_hub_service is None:returntry:- await model_hub_service.seed_avibe_supply()+ await model_hub_service.seed_vibey_supply()except Exception:- logger.warning("Avibe Agent starting model supply failed", exc_info=True)+ logger.warning("Vibey starting model supply failed", exc_info=True)try:- self._reconcile_avibe_agent_model()+ self._reconcile_vibey_agent_model()except Exception:- logger.warning("Avibe Agent model reconciliation failed", exc_info=True)+ logger.warning("Vibey Agent model reconciliation failed", exc_info=True)def get_native_session_service(self):if self.native_session_service is None:@@ -811,7 +811,7 @@ class Controller:def _init_agents(self):from core.session_activities import SessionActivityRegistry- from modules.agents.avibe import AvibeAgent+ from modules.agents.vibey import VibeyAgentfrom modules.agents.claude_agent import ClaudeAgentfrom modules.agents.codex import CodexAgentfrom modules.agents.opencode import OpenCodeAgent@@ -839,7 +839,7 @@ class Controller:except Exception as e:logger.error(f"Failed to initialize OpenCode agent: {e}")# Built in: always registered, never unregistered.- self.agent_service.register(AvibeAgent(self))+ self.agent_service.register(VibeyAgent(self))def _setup_callbacks(self):"""Setup callback connections between modules"""@@ -1116,12 +1116,12 @@ class Controller:platforms.add("")await self._restore_active_polls_or_raise(platforms)- async def _recover_avibe_agent_runtime_state(self) -> None:- """Settle what the previous process left of the Avibe Agent's work (T2, T3 admission, J5).+ async def _recover_vibey_agent_runtime_state(self) -> None:+ """Settle what the previous process left of Vibey's work (T2, T3 admission, J5).- ``avibe_recovery`` is the single owner, retrying until every Session has settled.+ ``vibey_recovery`` is the single owner, retrying until every Session has settled."""- await self.avibe_recovery.start()+ await self.vibey_recovery.start()async def _on_im_ready(self, *, platform: str) -> None:"""Restore transport-owned state only after that transport can deliver."""@@ -1251,10 +1251,10 @@ class Controller:try:# Off the readiness path: on a first start the seed may wait for a# models.dev copy, and nothing below needs it.- if getattr(self, "avibe_model_supply_task", None) is None:- self.avibe_model_supply_task = asyncio.create_task(self._seed_avibe_model_supply())+ if getattr(self, "vibey_model_supply_task", None) is None:+ self.vibey_model_supply_task = asyncio.create_task(self._seed_vibey_model_supply())except Exception as e:- logger.error("Failed to start the Avibe Agent's model supply seed: %s", e, exc_info=True)+ logger.error("Failed to start Vibey's model supply seed: %s", e, exc_info=True)try:if self.cleanup_task is None or self.cleanup_task.done():@@ -1288,13 +1288,13 @@ class Controller:if coordinator is not None:coordinator.restore_migration_blocks()- # recovery.md: T2 before T4. The Avibe Agent hands the commands a restart left running+ # recovery.md: T2 before T4. Vibey hands the commands a restart left running# to their Watches first, so the interruption notice of their Turn can say so instead# of asking for a resend. Best effort: its single owner retries what it could not settle.try:- await self._recover_avibe_agent_runtime_state()+ await self._recover_vibey_agent_runtime_state()except Exception:- logger.exception("Failed to recover the Avibe Agent's runtime state")+ logger.exception("Failed to recover Vibey's runtime state")recover_deliveries = getattr(self.session_turns,@@ -2418,15 +2418,15 @@ class Controller:passself.cleanup_task = None- async def _cancel_avibe_model_supply_task() -> None:- task = getattr(self, "avibe_model_supply_task", None)+ async def _cancel_vibey_model_supply_task() -> None:+ task = getattr(self, "vibey_model_supply_task", None)if task is not None and not task.done():task.cancel()try:await taskexcept asyncio.CancelledError:pass- self.avibe_model_supply_task = None+ self.vibey_model_supply_task = Noneasync def _cancel_trace_retention_task() -> None:cancel_event = getattr(self, "_trace_retention_cancel_event", None)@@ -2472,7 +2472,7 @@ class Controller:logger.debug(f"Internal dispatch server status write skipped: {e}")_stop_loop_coroutine(_cancel_cleanup_task(), "Idle cleanup task")- _stop_loop_coroutine(_cancel_avibe_model_supply_task(), "Avibe Agent model supply seed")+ _stop_loop_coroutine(_cancel_vibey_model_supply_task(), "Vibey model supply seed")# Retention cancellation is cooperative at a delete-batch boundary;# wait for that bounded join instead of abandoning the worker after# the generic five-second cleanup timeout.@@ -2496,10 +2496,10 @@ class Controller:if show_git_checkpoint_service is not None:show_git_checkpoint_service.stop()- # The Avibe Agent's recovery retries end with the service; the next start recovers again.- avibe_recovery = getattr(self, "avibe_recovery", None)- if avibe_recovery is not None:- _stop_loop_coroutine(avibe_recovery.stop(), "Avibe Agent recovery")+ # Vibey's recovery retries end with the service; the next start recovers again.+ vibey_recovery = getattr(self, "vibey_recovery", None)+ if vibey_recovery is not None:+ _stop_loop_coroutine(vibey_recovery.stop(), "Vibey recovery")try:codex_agent = self.agent_service.agents.get("codex")diff --git a/core/handlers/model_hub/migration.py b/core/handlers/model_hub/migration.pyindex 2439f98da..aa2b9e51a 100644--- a/core/handlers/model_hub/migration.py+++ b/core/handlers/model_hub/migration.py@@ -143,9 +143,9 @@ class MigrationHost(Protocol):def _save_config(self, config: ModelHubConfig) -> ModelHubConfig: ...- async def _seed_avibe(self, config: ModelHubConfig) -> bool: ...+ async def _seed_vibey(self, config: ModelHubConfig) -> bool: ...- async def _announce_avibe_seed(self) -> None: ...+ async def _announce_vibey_seed(self) -> None: ...def _carry_agent_selections(self, config: ModelHubConfig, backend: Any) -> None: ...@@ -1866,10 +1866,10 @@ async def _prepare_takeover(source = ModelHubSourceConfig.from_payload(replacement)updated.sources = [source if value.id == source.id else value for value in updated.sources]_ensure_takeover_placement(updated, source, item.backend)- # Now on the Hub, it is new to the Avibe Agent, which reaches every+ # Now on the Hub, it is new to Vibey, which reaches every# Hub Source: placed like a new Source (a pending entry is seeded# below instead).- host._apply_source_placement(updated, source, ("avibe",))+ host._apply_source_placement(updated, source, ("vibey",))else:updated.sources.append(source)host._apply_source_placement(updated, source)@@ -1882,9 +1882,9 @@ async def _prepare_takeover("store_backend": item.backend, "store_routing": item.native_store_routing or "",} if item.native_store_revision else {}),}- if updated.avibe_supply_pending:+ if updated.vibey_supply_pending:# Once every Source of the batch is in place, reused identities too.- await host._seed_avibe(updated)+ await host._seed_vibey(updated)backends = sorted({item.backend for item in [*(consented or selected), *retained_keys]})native_before = _native_auth_snapshot(host, tuple(backends))# Copy-only keeps the Avibe-saved native key; Hub launches shadow it.@@ -2086,8 +2086,8 @@ async def _resume_takeover(# Save the decision without projecting staged grants into CPA.# sync_sources is a runtime write, not a config-only operation.host._save_config(updated)- if previous.avibe_supply_pending and not updated.avibe_supply_pending:- await host._announce_avibe_seed()+ if previous.vibey_supply_pending and not updated.vibey_supply_pending:+ await host._announce_vibey_seed()host._engine_synced = Falsehost._reconcile_native_auth(tuple(record["backends"]))# This durable marker precedes any credential exposure to CPA.diff --git a/core/handlers/model_hub/provenance.py b/core/handlers/model_hub/provenance.pyindex 0f1e4bdc1..3cdbe11af 100644--- a/core/handlers/model_hub/provenance.py+++ b/core/handlers/model_hub/provenance.py@@ -56,7 +56,7 @@ class ServedHopHeaderTooLarge(ValueError):class PreparedGatewayRouteConflict(ValueError):- """An Avibe launch would replace another request's still-owned route."""+ """A Vibey launch would replace another request's still-owned route."""@dataclass(frozen=True)@@ -1483,14 +1483,14 @@ class TurnCorrelationRegistry:else:exact = self._exact_turn(backend, token)if exact is None:- if backend == "avibe":+ if backend == "vibey":# A consumer launch without a tracked turn still needs# its alias and primary origin bound to this credential.return self._route_credential(key, scope, prepared)return tokenroute_turn_id = exact[0]existing = scope.prepared_routes.get(route_turn_id)- if backend == "avibe" and existing is not None and existing != prepared:+ if backend == "vibey" and existing is not None and existing != prepared:trace = self._readable_trace(route_turn_id, backend)if (trace is None@@ -1499,7 +1499,7 @@ class TurnCorrelationRegistry:or trace.pending_attemptsor trace.recovery_requests):- raise PreparedGatewayRouteConflict("Avibe route is still owned or its alias changed")+ raise PreparedGatewayRouteConflict("Vibey route is still owned or its alias changed")# Keep the turn's attempt history and outcome. Only the launch# snapshot changes; old credentials can route but cannot claim# this newly prepared identity.@@ -1845,7 +1845,7 @@ class TurnCorrelationRegistry:or trace.gateway_model_id is None):return None- if backend == "avibe":+ if backend == "vibey":if credential.route != scope.prepared_routes.get(turn_id):# A superseded credential must not poison the successor# even when malformed JSON fails before body attribution.@@ -1966,8 +1966,8 @@ class TurnCorrelationRegistry:resolved_model_id: str,via_mapping: bool,) -> None:- if backend == "avibe":- raise ValueError("avibe attempts require the hub channel")+ if backend == "vibey":+ raise ValueError("vibey attempts require the hub channel")token = self.credentials(backend, process_scope, turn_id)normalized_turn_id = str(turn_id or "").strip()if not normalized_turn_id:@@ -2082,8 +2082,8 @@ class TurnCorrelationRegistry:trace = self._traces.get(turn_id)if trace is None or trace.outcome_frozen:return- if trace.agent == "avibe" and channel != "hub":- raise ValueError("avibe attempts require the hub channel")+ if trace.agent == "vibey" and channel != "hub":+ raise ValueError("vibey attempts require the hub channel")# Admission supersedes earlier supply failures, not their attempt history.trace.model_supply_state = Nonetrace.blockers = []diff --git a/core/handlers/model_hub/request.py b/core/handlers/model_hub/request.pyindex e33618ef9..085baf681 100644--- a/core/handlers/model_hub/request.py+++ b/core/handlers/model_hub/request.py@@ -95,7 +95,7 @@ def _plain_history(value: Any) -> Any:def without_opaque_history(request: Mapping[str, Any]) -> Mapping[str, Any]:- """Copy a request's history for an unverified/different Avibe hop origin."""+ """Copy a request's history for an unverified/different Vibey hop origin."""payload = dict(request)for field in ("messages", "input", "contents"):diff --git a/core/handlers/model_hub/service.py b/core/handlers/model_hub/service.pyindex dd2e403aa..1221733df 100644--- a/core/handlers/model_hub/service.py+++ b/core/handlers/model_hub/service.py@@ -1105,7 +1105,7 @@ class ModelHubService:self.requested_model_override = requested_model_overrideself.selected_agent_override = selected_agent_overrideself.named_agents_override = named_agents_override- # The built-in Agents' models for the Avibe starting supply; the+ # The built-in Agents' models for Vibey's starting supply; the# controller owns those Agent rows.self.builtin_agent_models_override = builtin_agent_models_overrideself.cli_present_override = cli_present_override@@ -2481,10 +2481,10 @@ class ModelHubService:number += 1config.sources.append(source)self._apply_source_placement(config, source)- seeded = config.avibe_supply_pending and await self._seed_avibe(config)+ seeded = config.vibey_supply_pending and await self._seed_vibey(config)await self._commit_synced(previous, config)if seeded:- await self._announce_avibe_seed()+ await self._announce_vibey_seed()def _apply_source_placement(self,@@ -2495,15 +2495,15 @@ class ModelHubService:"""Add a new Source to eligible backend defaults without editing overrides.A subscription serves a fixed catalog, so it joins only the backends whose- menu that catalog serves (OpenCode and the Avibe Agent reach every+ menu that catalog serves (OpenCode and Vibey reach everyvendor), ahead of the API keys there. API keys stay open to everyeligible backend, appended."""for backend in backends:- if backend == "avibe" and config.avibe_supply_pending:+ if backend == "vibey" and config.vibey_supply_pending:# Its seed places every Source at once, once the mutation's- # Sources are final (see _seed_avibe).+ # Sources are final (see _seed_vibey).continueagent = config.agents[backend]if not self._eligible_for_agent(source, backend) or source.id in agent.sources.order:@@ -2534,8 +2534,8 @@ class ModelHubService:backend not in _NATIVE_VENDOR_BACKENDS.values()or _NATIVE_VENDOR_BACKENDS.get(source.vendor) == backend):- # A backend that is no one vendor's client (OpenCode, the Avibe- # Agent) reaches every vendor, and the vendor's own Agent serves its+ # A backend that is no one vendor's client (OpenCode, Vibey)+ # reaches every vendor, and the vendor's own Agent serves its# subscription even when the catalog is ahead of the backend's menu.return Trueif not agent.models or not any(not model.retired for model in source.models):@@ -4849,7 +4849,7 @@ class ModelHubService:# Suppliers speak first, models.dev fills what they left unsaid, and# an unstated ladder falls back to the tiers the backend's request# protocol accepts, unless models.dev says the model cannot reason.- # Avibe has no native protocol pin and must not receive guessed tiers.+ # Vibey has no native protocol pin and must not receive guessed tiers.enrichment = ({field: match[field] for field in _MODELS_DEV_CANDIDATE_FIELDS}if match is not None@@ -4862,7 +4862,7 @@ class ModelHubService:display_name = display_name or (match or {}).get("display_name")if not reasoning_efforts and match is not None:reasoning_efforts = list(match["reasoning_efforts"])- if backend != "avibe" and not reasoning_efforts and enrichment.get("supports_reasoning") is not False:+ if backend != "vibey" and not reasoning_efforts and enrichment.get("supports_reasoning") is not False:request_protocol = _FIXED_BACKEND_PROTOCOLS.get(backend) or native_protocol_for_model_id(model_id)@@ -5048,7 +5048,7 @@ class ModelHubService:logger.warning("Model Hub CLI presence refresh failed", exc_info=True)def _cli_present(self, backend: BackendName) -> bool:- if backend == "avibe":+ if backend == "vibey":return Falseif self.cli_present_override is None:return False@@ -5138,8 +5138,8 @@ class ModelHubService:checked=[model.id for model in agent.models],)- async def _seed_avibe(self, config: ModelHubConfig) -> bool:- """Give a pending Avibe entry its starting supply, in place; whether it took.+ async def _seed_vibey(self, config: ModelHubConfig) -> bool:+ """Give a pending Vibey entry its starting supply, in place; whether it took.Its Sources are every existing one this backend may use, placed as anewly created Source would be. Its models are the built-in Agents'@@ -5152,16 +5152,16 @@ class ModelHubService:that adds several seeds from all of them."""- agent = config.agents["avibe"]- if not any(self._eligible_for_agent(source, "avibe") for source in config.sources):+ agent = config.agents["vibey"]+ if not any(self._eligible_for_agent(source, "vibey") for source in config.sources):return False# Seeded rows keep the models.dev metadata they are written with, so a# seed with no copy cached fetches one in the foreground, bounded; a# foreground fetch already running (the startup warm-up) is shared.await asyncio.to_thread(self._ensure_models_dev_copy)- config.avibe_supply_pending = False+ config.vibey_supply_pending = Falsefor source in config.sources:- self._apply_source_placement(config, source, ("avibe",))+ self._apply_source_placement(config, source, ("vibey",))# A starting model is one a placed Source's own inventory lists; a# route, passthrough included, is no evidence.listed = {@@ -5191,33 +5191,33 @@ class ModelHubService:described = self._models_dev_descriptions(model_ids)rows = []for model_id in model_ids:- candidate = self._provider_candidate(config, "avibe", model_id, described.get(model_id))+ candidate = self._provider_candidate(config, "vibey", model_id, described.get(model_id))if candidate is not None:rows.append(candidate[0])agent.models = rowsreturn True- async def _announce_avibe_seed(self) -> None:- """Announce a committed seed as the Avibe catalog change it is.+ async def _announce_vibey_seed(self) -> None:+ """Announce a committed seed as the Vibey catalog change it is.Like every catalog mutation it ends in ``_refresh_backend_catalog``,- whose owner reconciles the Avibe Agent's model. The seed is already+ whose owner reconciles the built-in Vibey Agent's model. The seed is alreadycommitted, so a failed announcement is logged; the next start reconciles."""try:- await self._refresh_backend_catalog("avibe")+ await self._refresh_backend_catalog("vibey")except Exception: # noqa: BLE001 - the committed supply stands- logger.warning("Model Hub: the Avibe Agent's seeded catalog was not announced", exc_info=True)+ logger.warning("Model Hub: Vibey's seeded catalog was not announced", exc_info=True)- async def seed_avibe_supply(self) -> list[str]:- """Seed a pending Avibe entry from the Sources that existed at startup.+ async def seed_vibey_supply(self) -> list[str]:+ """Seed a pending Vibey entry from the Sources that existed at startup.Source creation seeds a pending entry in its own mutation; this covers- Sources that predate the Avibe Agent. Returns the seeded model ids.+ Sources that predate Vibey. Returns the seeded model ids."""- if not self.store.load().avibe_supply_pending:+ if not self.store.load().vibey_supply_pending:return []# Seeded rows are written once and then kept, so a first models.dev copy# is worth one bounded foreground fetch, off the loop and outside the@@ -5226,20 +5226,20 @@ class ModelHubService:await asyncio.to_thread(self._ensure_models_dev_copy)async with self._mutation_lock:previous = self.store.load()- if not previous.avibe_supply_pending:+ if not previous.vibey_supply_pending:return []config = self._clone_config(previous)- if not await self._seed_avibe(config):+ if not await self._seed_vibey(config):return []try:# An engine that is not up must not undo the seed: the config is# saved first, and the engine takes it on its next demand.await self._commit_synced(previous, config, rollback_on_sync_failure=False)except ModelHubError:- if self.store.load().avibe_supply_pending:+ if self.store.load().vibey_supply_pending:raise- await self._announce_avibe_seed()- return [model.id for model in config.agents["avibe"].models]+ await self._announce_vibey_seed()+ return [model.id for model in config.agents["vibey"].models]def _ensure_models_dev_copy(self) -> None:"""Fetch models.dev in the foreground, bounded, when no copy is cached.@@ -5254,10 +5254,10 @@ class ModelHubService:if not self.models_dev_catalog():load_models_dev_catalog()except Exception as exc: # noqa: BLE001 - optional metadata never fails a seed- logger.info("Avibe Agent seed has no models.dev metadata: %s", type(exc).__name__)+ logger.info("Vibey seed has no models.dev metadata: %s", type(exc).__name__)async def set_agent_mode(self, backend: str, mode: object) -> dict:- if mode not in {"hub", "direct"} or (backend == "avibe" and mode != "hub"):+ if mode not in {"hub", "direct"} or (backend == "vibey" and mode != "hub"):raise ModelHubError("mode_switch_blocked")# A mode is a launch input like any other: running work finishes in the@@ -6691,7 +6691,7 @@ class ModelHubService:),}- if backend == "avibe":+ if backend == "vibey":reason = _google_admission_skip_reason(source.protocol, source.protocol, resolved_model, False)if reason is not None:raise _InvocationUnsupported(reason)@@ -7396,7 +7396,7 @@ class ModelHubService:backendfor backend, agent in previous.agents.items()if agent.mode == "hub"- and (backend != "avibe" or agent.models)+ and (backend != "vibey" or agent.models))if hub_backends:raise ModelHubError(@@ -8060,7 +8060,7 @@ class ModelHubService:):raise _InvocationPlanChangedattempt_request = request- if backend == "avibe":+ if backend == "vibey":reason = _google_admission_skip_reason(getattr(request, "protocol", None), source.protocol, model_id, stream,)@@ -8232,7 +8232,7 @@ class ModelHubService:decision,(),(),- HopOrigin(source.vendor, source.protocol, source_model_id) if backend == "avibe" else None,+ HopOrigin(source.vendor, source.protocol, source_model_id) if backend == "vibey" else None,)if decision.action == "fallback" or (decision.action == "surface"@@ -8368,7 +8368,7 @@ class ModelHubService:engine_prepared = False# An entirely unsupported Google request must not reconcile the engine# or custody. Supported hops drain the journal in demand preparation.- google_preflight = backend == "avibe" and getattr(request, "protocol", None) == "google"+ google_preflight = backend == "vibey" and getattr(request, "protocol", None) == "google"if not google_preflight and self.revocations.list():try:await self._ensure_engine_synced()@@ -8439,7 +8439,7 @@ class ModelHubService:if source is None or target_model is None:raise AssertionError("runnable hop must have an exact identity")verification_pending = source.verification_pending- origin = HopOrigin(source.vendor, source.protocol, target_model) if backend == "avibe" else None+ origin = HopOrigin(source.vendor, source.protocol, target_model) if backend == "vibey" else Noneif source.supply_channel == "native_cli":self._emit_switch(agent=event_agent,@@ -8481,7 +8481,7 @@ class ModelHubService:)try:- if backend == "avibe":+ if backend == "vibey":reason = _google_admission_skip_reason(getattr(request, "protocol", None), source.protocol, target_model, stream,)diff --git a/core/handlers/model_hub/turn_gateway.py b/core/handlers/model_hub/turn_gateway.pyindex 9b68ae9cd..e08f6b82d 100644--- a/core/handlers/model_hub/turn_gateway.py+++ b/core/handlers/model_hub/turn_gateway.py@@ -524,7 +524,7 @@ class ModelHubTurnGateway:) -> tuple[str, str]:if backend not in MODEL_HUB_BACKENDS:raise ModelHubError("mapping_target_unavailable", status=409)- if backend == "avibe" and turn_id:+ if backend == "vibey" and turn_id:# The caller may read EOF before the previous handler's owned# teardown exits. Drain already-settled responses, not live model# work; the registry still refuses any remaining overlap.@@ -1106,7 +1106,7 @@ class ModelHubTurnGateway:writes to the response."""- if not stream or protocol != "anthropic" or request.match_info["backend"] == "avibe":+ if not stream or protocol != "anthropic" or request.match_info["backend"] == "vibey":yieldreturnresolution_ended = asyncio.get_running_loop().create_future()diff --git a/core/handlers/settings_handler.py b/core/handlers/settings_handler.pyindex 60501ad31..f25acd479 100644--- a/core/handlers/settings_handler.py+++ b/core/handlers/settings_handler.py@@ -7,7 +7,6 @@ from typing import Optionalfrom modules.agents import get_agent_display_namefrom modules.agents.catalog import (AGENT_BACKENDS,- builtin_agent_name_for_backend,display_name_for_backend,implicit_default_rank,is_builtin_backend,@@ -547,7 +546,7 @@ class SettingsHandler(BaseHandler):def _routing_agent_name(self, backend: str) -> str:"""A backend choice routes to that backend's built-in Agent, under whatever name the row holds."""store = getattr(self.controller, "vibe_agent_store", None)- return store.routing_name_for_backend(backend) if store is not None else builtin_agent_name_for_backend(backend)+ return store.routing_name_for_backend(backend) if store is not None else backenddef _resolve_route_backend(self, agent_name: Optional[str]) -> Optional[str]:if not agent_name:diff --git a/core/services/session_fork.py b/core/services/session_fork.pyindex f352dd1ce..f0ad69afa 100644--- a/core/services/session_fork.py+++ b/core/services/session_fork.py@@ -378,8 +378,8 @@ def reserve_forked_session("fork_created_at": now,})- if source_backend == "avibe":- # The Avibe Agent's context is the source's rows up to the anchor, resolved+ if source_backend == "vibey":+ # Vibey's context is the source's rows up to the anchor, resolved# once now so later rows never enter the prefix (C-5 section 4). With no# running Turn the anchor is the whole context, as a native fork keeps the# whole settled session: a silent or stopped Turn shows no row to name.diff --git a/core/session_turns.py b/core/session_turns.pyindex ccc15af5e..fd8bb2770 100644--- a/core/session_turns.py+++ b/core/session_turns.py@@ -211,8 +211,8 @@ _EXECUTION_ROUTING_KEYS = _FLUSH_REBUILT_KEYS | frozenset(SCHEDULED_TARGET_AGENT_KEY = "scheduled_target_agent_name"# Runtimes bound to the controller process: an accepted Turn cannot survive a-# service restart. ``avibe`` runs its loop in this process.-_NON_RESTORABLE_RUNTIME_BACKENDS = frozenset({"claude", "codex", "avibe"})+# service restart. ``vibey`` runs its loop in this process.+_NON_RESTORABLE_RUNTIME_BACKENDS = frozenset({"claude", "codex", "vibey"})_MAX_AUTOMATIC_UNKNOWN_START_REPLAYS = 1_MAX_PREWRITE_START_ATTEMPTS = 3# A lost Turn whose running commands recovery handed to Watches (recovery.md T2) getsdiff --git a/core/vibe_agents.py b/core/vibe_agents.pyindex 6b88802b5..498f6a7a8 100644--- a/core/vibe_agents.py+++ b/core/vibe_agents.py@@ -20,7 +20,6 @@ from config import pathsfrom modules.agents.catalog import (AGENT_BACKENDS,BUILTIN_AGENT_BACKENDS,- builtin_agent_name_for_backend,display_name_for_backend,implicit_default_rank,is_builtin_backend,@@ -903,8 +902,9 @@ class VibeAgentStore:def require_reference(self, name: str) -> VibeAgent:"""Resolve a durable Agent reference, including a disabled archive.- Routing saved while built-in Agents were named after their backend holds that- backend id: when no Agent has the name, it means the backend's built-in Agent.+ Routing can hold a backend id, for example while the built-in has the next free name+ because a user's Agent holds the id: when no Agent has the name, it means the backend's+ built-in Agent."""agent = self.get(name)@@ -917,7 +917,7 @@ class VibeAgentStore:"""The Agent name a backend choice routes to: its built-in Agent's, whatever the row is called."""agent = self.get_builtin_default_agent_for_backend(backend, enabled_only=False)- return agent.name if agent is not None else builtin_agent_name_for_backend(backend)+ return agent.name if agent is not None else backenddef require_reference_by_id(self, agent_id: str) -> VibeAgent:"""Resolve a durable Agent identity across rename/archive operations."""@@ -1696,9 +1696,8 @@ class VibeAgentStore:if current is not None:return self._write_builtin_state(current, metadata={**current.metadata, **metadata})# An always-enabled backend needs its own row: when another Agent holds the- # catalog's name for it, the built-in takes the next free one.- base = builtin_agent_name_for_backend(backend)- name = self._free_agent_name(base) if is_builtin_backend(backend) else base+ # backend's name, the built-in takes the next free one.+ name = self._free_agent_name(backend) if is_builtin_backend(backend) else backendagent_name = str(name).strip()existing = self.get(agent_name)if existing:diff --git a/core/watches.py b/core/watches.pyindex 5da8460d1..5c247651b 100644--- a/core/watches.py+++ b/core/watches.py@@ -3111,7 +3111,7 @@ class ManagedWatchService:def agent_jobs_dir() -> Path:- """Where the Avibe Agent's jobs live (plan section 5.3): the adapter's ``LocalJobHost`` hosts them here."""+ """Where Vibey's jobs live (plan section 5.3): the adapter's ``LocalJobHost`` hosts them here."""return paths.get_state_dir() / "agent_core" / "jobs"diff --git a/docs/plans/agent-core-contracts/backend-registration.md b/docs/plans/agent-core-contracts/backend-registration.mdindex 359c19d2d..fcd3b5248 100644--- a/docs/plans/agent-core-contracts/backend-registration.md+++ b/docs/plans/agent-core-contracts/backend-registration.md@@ -1,20 +1,20 @@# C-8 Backend registration-Adding `avibe` touches every place that lists backends. Today those lists are literals scattered through the tree,+Adding `vibey` touches every place that lists backends. Today those lists are literals scattered through the tree,and they mean two different things. This contract makes the difference explicit.## 1. Two sets| Set | Members | Meaning || --- | --- | --- |-| **Agent backends** | `claude`, `codex`, `opencode`, `avibe` | anything an Avibe Agent can run on: catalog, routing, settings, Model Hub supply and routes, turn provenance, Agent Run targets, IM agent pickers |+| **Agent backends** | `claude`, `codex`, `opencode`, `vibey` | anything an Avibe Agent can run on: catalog, routing, settings, Model Hub supply and routes, turn provenance, Agent Run targets, IM agent pickers || **Native CLI backends** | `claude`, `codex`, `opencode` | backends that are an external CLI: CLI path discovery, CLI auth and OAuth setup, native session listing and resume, CLI process restart, Model Hub launch overlays for native CLIs |-`avibe` has no CLI, CLI auth, native session store, or native fork. It must never be added to a native-CLI list, and+`vibey` has no CLI, CLI auth, native session store, or native fork. It must never be added to a native-CLI list, andit must be added to every agent-backend list.-`avibe` is also the one **built-in** backend (`AgentBackendDescriptor.builtin`, owner decision 2026-10-06): part of the-platform, so it is always enabled. It has no `agents.avibe` config section and no enable switch, the controller+`vibey` is also the one **built-in** backend (`AgentBackendDescriptor.builtin`, owner decision 2026-10-06): part of the+platform, so it is always enabled. It has no `agents.vibey` config section and no enable switch, the controllerregisters it at startup and never unregisters it, and its built-in Agent cannot be disabled. Registry order is displayorder, and the built-in backend comes first. Being listed first does not make it the default: any fallback that picksa backend or Agent nobody chose ranks it last ([`avibe-agent-always-on.md`](../avibe-agent-always-on.md)).diff --git a/docs/plans/agent-core-contracts/context.md b/docs/plans/agent-core-contracts/context.mdindex a3906e4e1..cc619dc60 100644--- a/docs/plans/agent-core-contracts/context.md+++ b/docs/plans/agent-core-contracts/context.md@@ -328,8 +328,8 @@ mechanically, and stops after its fourth overflow.## 9. What the adapter suppliesThe loop takes a `ContextConfig` (`harness/context.py`); without one, no context management runs and an overflow-ends the run `context_exhausted`, as in P1. The adapter supplies the following; the Avibe Agent's are in-`modules/agents/avibe` (`agent.py`, `context.py`, `store.py`), and every Turn of it runs with a `ContextConfig`.+ends the run `context_exhausted`, as in P1. The adapter supplies the following; Vibey's are in+`modules/agents/vibey` (`agent.py`, `context.py`, `store.py`), and every Turn of it runs with a `ContextConfig`.- The limits (§1): the route's capabilities come from the Model Hub model definition the user edits(`context_window`, `max_output_tokens`; `input_limit` stays unknown until Model Hub stores one, so `L_in = W`), and@@ -358,7 +358,7 @@ ends the run `context_exhausted`, as in P1. The adapter supplies the following;The SQLite store and the adapter's implement it, and one contract suite runs the same tests on them and on thein-memory store the engine tests use (`tests/test_transcript_store_contract.py`).- The full environment block (C-7 §8) on the first input after a checkpoint: the summarized inputs that carried it- are gone. The Avibe Agent works out an+ are gone. Vibey works out aninput's environment delta against the inputs the projected context keeps, so the input carries every field thecontext no longer shows, and forgets what it sent when a checkpoint commits.- The one user-visible text of context management, through `vibe/i18n`: when a run ends `context_exhausted`, the stopdiff --git a/docs/plans/agent-core-contracts/hop-resolution.schema.json b/docs/plans/agent-core-contracts/hop-resolution.schema.jsonindex 148c049fb..3a12923e7 100644--- a/docs/plans/agent-core-contracts/hop-resolution.schema.json+++ b/docs/plans/agent-core-contracts/hop-resolution.schema.json@@ -2,7 +2,7 @@"$schema": "http://json-schema.org/draft-07/schema#","$id": "agent-core/hop-resolution.schema.json","title": "HopResolution",- "description": "C-6 answer to 'how should the avibe backend call model M now'. Produced by Model Hub; consumed by the adapter, which builds C-2 ModelEndpoint from it. The token is in-memory only.",+ "description": "C-6 answer to 'how should the vibey backend call model M now'. Produced by Model Hub; consumed by the adapter, which builds C-2 ModelEndpoint from it. The token is in-memory only.","type": "object","required": ["backend",@@ -19,11 +19,11 @@"additionalProperties": false,"properties": {"backend": {- "const": "avibe"+ "const": "vibey"},"requested_model": {"type": "string",- "description": "Caller-facing model id from the Avibe Agent settings."+ "description": "Caller-facing model id from the Vibey Agent's settings."},"protocol": {"$ref": "message.schema.json#/definitions/Protocol",@@ -120,10 +120,10 @@},"examples": [{- "backend": "avibe",+ "backend": "vibey","requested_model": "claude-opus-5-5","protocol": "anthropic",- "base_url": "http://127.0.0.1:47311/avibe/v1",+ "base_url": "http://127.0.0.1:47311/vibey/v1","token": "<in-memory>","runtime_model": "claude-opus-5-5","source_id": "src_anthropic_main",diff --git a/docs/plans/agent-core-contracts/model-hub-consumer.md b/docs/plans/agent-core-contracts/model-hub-consumer.mdindex a739fa838..e8876c324 100644--- a/docs/plans/agent-core-contracts/model-hub-consumer.md+++ b/docs/plans/agent-core-contracts/model-hub-consumer.md@@ -1,6 +1,6 @@# C-6 Model Hub consumer extension-What the Avibe Agent needs from Model Hub. Owned by Model Hub (`../model-hub-contracts/`); this file states the+What Vibey needs from Model Hub. Owned by Model Hub (`../model-hub-contracts/`); this file states theconsumer's requirements, and the Model Hub lane lands the change in both places.## 1. Today@@ -17,15 +17,15 @@ consumer's requirements, and the Model Hub lane lands the change in both places.1. **`google` protocol.** Gemini `generateContent` / `streamGenerateContent` joins the protocol vocabulary and gets agateway frontend under the backend prefix.-2. **Backend id `avibe`** in every Model Hub enum that lists backends (C-8).-3. **Hop resolution** for the `avibe` backend returns `HopResolution` (`hop-resolution.schema.json`) through the Model+2. **Backend id `vibey`** in every Model Hub enum that lists backends (C-8).+3. **Hop resolution** for the `vibey` backend returns `HopResolution` (`hop-resolution.schema.json`) through the ModelHub runtime router: the primary hop's protocol, the gateway URL for that protocol, the token, the runtime model,and capabilities. A capability Model Hub does not know is `null`, never guessed; `input_limit` is `null` until ModelHub stores one. The agent treats unknown values conservatively (C-2). It resolves once per run and again after aretryable error.-4. **Served-hop report.** Every gateway response for `avibe` carries `x-avibe-served-hop`: compact, ASCII-escaped JSON+4. **Served-hop report.** Every gateway response for `vibey` carries `x-avibe-served-hop`: compact, ASCII-escaped JSONwith exactly `provider`, `api`, `model`, taken from the winning attempt (Source vendor, Source protocol, upstream- target) and sent before the first model byte. The gateway does not commit early keepalive headers for `avibe`;+ target) and sent before the first model byte. The gateway does not commit early keepalive headers for `vibey`;other backends are unchanged. The same origin is recorded on `TurnProvenance.served`. An `api` different from thefrontend protocol means the gateway converted. The agent records it as the message `origin` (C-1). The header value is at most 4096 bytes; a hop whose origin cannot be represented within that limit isrefused before invocation with a controlled local error (no model call, no header). Identifiers are never truncated.diff --git a/docs/plans/agent-core-contracts/recovery.md b/docs/plans/agent-core-contracts/recovery.mdindex dca6d4043..744f61309 100644--- a/docs/plans/agent-core-contracts/recovery.md+++ b/docs/plans/agent-core-contracts/recovery.md@@ -30,7 +30,7 @@ at-least-once, and that is stated where it applies.## Delivery (adapter wave)-D1 and D2 are withdrawn (owner decision, 2026-10-03, PR #2345). The Avibe Agent delivers each committed response+D1 and D2 are withdrawn (owner decision, 2026-10-03, PR #2345). Vibey delivers each committed responsethrough the same emit path as the other backends: splitting, file upload, failure handling, and narration settingsare the dispatcher's. The one difference is persistence: the response row already exists, so the dispatcher writesits display columns instead of inserting a second row (`transcript.md` §2). A crash or send failure between commitdiff --git a/docs/plans/agent-core-contracts/transcript.md b/docs/plans/agent-core-contracts/transcript.mdindex 4e3287919..e876d37ce 100644--- a/docs/plans/agent-core-contracts/transcript.md+++ b/docs/plans/agent-core-contracts/transcript.md@@ -1,6 +1,6 @@# C-5 Transcript rows-The Avibe Agent's model context is stored in the existing `messages` and `agent_events` tables; there is no other+Vibey's model context is stored in the existing `messages` and `agent_events` tables; there is no othercopy (plan §5.1). Row payload shapes: [`transcript-rows.schema.json`](transcript-rows.schema.json).## 1. Membership and order@@ -87,7 +87,7 @@ The child Session's metadata already records its parent as top-level keys `fork_- `anchor_seq` is resolved once, when the fork is reserved, as the largest `context_seq` in the source Session amongrows at or before the anchor message, and persisted as the top-level metadata key `fork_source_context_seq`. Rowsthat receive a `context_seq` later can never move into or out of the prefix. A released fork without that key- (forked from a non-`avibe` Session) has no Avibe Agent context to inherit and starts empty.+ (forked from a non-`vibey` Session) has no Vibey context to inherit and starts empty.- The child's context = the source's context rows with `context_seq <= anchor_seq` (recursively through the source'sown fork), then the child's rows.- The child's `context_seq` continues from `anchor_seq + 1`, so the combined order stays total.diff --git a/docs/plans/avibe-agent-always-on.md b/docs/plans/avibe-agent-always-on.mdindex c9af41425..292627aef 100644--- a/docs/plans/avibe-agent-always-on.md+++ b/docs/plans/avibe-agent-always-on.md@@ -1,16 +1,16 @@-# Avibe Agent is the built-in backend+# Vibey is the built-in backend## Owner decision (2026-10-06)-The Avibe Agent is Avibe's own agent and takes part in the platform's core operation. It is listed first in every+Vibey (then the Avibe Agent) is Avibe's own agent and takes part in the platform's core operation. It is listed first in everybackend list, it is always enabled, and it cannot be turned off.## Change contract-- **One descriptor fact.** `AgentBackendDescriptor.builtin` marks the built-in backend (`avibe`).+- **One descriptor fact.** `AgentBackendDescriptor.builtin` marks the built-in backend (`vibey`).`BUILTIN_AGENT_BACKENDS` and `is_builtin_backend()` derive from it; the generated UI catalog projects it as`builtin`. No consumer special-cases the id.-- **Order.** `AGENT_BACKEND_REGISTRY` lists `avibe` first, and registry order is the one display order:+- **Order.** `AGENT_BACKEND_REGISTRY` lists `vibey` first, and registry order is the one display order:Settings → Backends, the Models page routes (`MODEL_HUB_BACKENDS` is now the registry order, whose ordering had noprocessing meaning), the Agent create picker, the Agents page groups and filter, the Global prompts tabs (the UI's`BACKEND_ORDER`, derived from the catalog; the separate `agentOrder` is gone), and IM routing pickers. Native@@ -21,8 +21,8 @@ backend list, it is always enabled, and it cannot be turned off.(`resolve_effective_default_agent`, `_effective_default_agent`), the per-principal fallback(`resolve_usable_default_agent`), the archived default's replacement after its same-backend preference, and theIM routing modal's fallback selection.-- **Always on, by construction.** `agents.avibe` no longer exists: `AvibeAgentConfig`, its compat projection and every- branch reading it are removed. A config written by an earlier build loads unchanged otherwise and drops the key on+- **Always on, by construction.** The built-in backend has no `agents.<id>` section: `AvibeAgentConfig` (pre-release+ `agents.avibe`), its compat projection and every branch reading it are removed. A config written by an earlier build loads unchanged otherwise and drops the key onits next save. The controller registers the adapter at startup and never unregisters it; runtime renewal is a no-opfor it.- **Built-in Agent.** `get_builtin_default_agent_for_backend` is the one owner of built-in identity: the row the store@@ -31,19 +31,18 @@ backend list, it is always enabled, and it cannot be turned off.`builtin_default`, `lock_delete`, `backend_enabled`) are a projection only the store writes: `create` and `update`drop them from caller metadata and keep the row's own. `ensure_builtin_default_agents` always includes the built-inbackend, restores the markers of whatever row the lookup names and re-enables it, so the row exists and is enabled- when controller startup's sync returns (Model Hub seeds the Avibe supply onto it next). Without such a row it is- created at the catalog's `builtin_agent_name` (`vibey`), or at the next free name (`vibey-2`) when a user's Agent- holds `vibey`; a row an earlier build created as `avibe` stays the built-in. `VibeAgentStore.update` refuses to- disable it (`agent_always_enabled`); its model, effort, prompt and description stay editable.+ when controller startup's sync returns (Model Hub seeds the Vibey supply onto it next). Without such a row it is+ created at its backend id (`vibey`), or at the next free name (`vibey-2`) when a user's Agent holds `vibey`.+ `VibeAgentStore.update` refuses to disable it (`agent_always_enabled`); its model, effort, prompt and description stay editable.- **Backend choices route to the built-in.** A routing picker that chooses a backend saves that backend's built-inAgent's name (`VibeAgentStore.routing_name_for_backend`), never the backend id; a saved backend id that names noAgent resolves to the backend's built-in Agent.-- **Refusals.** `POST /api/config` with `agents.avibe` returns 400 (`errors.builtinBackendConfig`, in the configured+- **Refusals.** `POST /api/config` with `agents.vibey` returns 400 (`errors.builtinBackendConfig`, in the configuredlanguage); `PATCH /api/agents/<built-in name>` (`vibey` on a fresh install) with `enabled: false` returns 400`agent_always_enabled`; the CLI reports the same code.- **UI.** The built-in backend shows a "Built-in" badge where other backends have their enable switch, in the list andon its page. The built-in Agent's enable switch is locked on. Users meet the backend as Vibey (the catalog's- `display_name`), drawn with the mascot mark (`BACKEND_BRAND_MARKS.avibe`).+ `display_name`), drawn with the mascot mark (`BACKEND_BRAND_MARKS.vibey`).- **Model Hub cannot supply.** `hub_supply_block(backend, hub_config)` (`config/v2_config.py`) is the one owner of whythe Model Hub leaves a backend no model to run on now. The shared model gate and the adapter's preflight render itscopy (`hub_supply_refusal`), `get_backend_connection` reports such a backend unready, and `GET /api/config` carries@@ -56,11 +55,11 @@ backend list, it is always enabled, and it cannot be turned off.## Known by design-- The setup wizard lists only native CLIs here. Its Avibe Agent card (built-in, model picker, providers destination)+- The setup wizard lists only native CLIs here. Its Vibey card (built-in, model picker, providers destination)is a follow-up owner decision, delivered separately as `feat/avibe-agent-setup-wizard`.- The setup wizard keeps its own native setup sequence (Claude Code, Codex, OpenCode: `nativeOrder`). It is anordered onboarding flow, not a backend list: its intro geometry is indexed and its first ready backend decides thedefault Agent after setup, which this lane leaves unchanged.- The Agents page detail panel mirrors `is_builtin_default_agent` from the Agent's `source` and markers;`setupTargets.isBuiltinAgent` reads the markers, which callers can no longer write.-- Making the Avibe Agent the default for new chats is a separate owner decision.+- Making Vibey the default for new chats is a separate owner decision.diff --git a/docs/plans/avibe-agent-core.md b/docs/plans/avibe-agent-core.mdindex 825a7358a..970fac9d4 100644--- a/docs/plans/avibe-agent-core.md+++ b/docs/plans/avibe-agent-core.md@@ -9,8 +9,8 @@ Status: **Approved direction, contracts in draft** · 2026-10-02## 0. Decision summaryAvibe builds its own first-party Agent in Python, inside this repository, as a fourth backend next to Claude Code,-Codex, and OpenCode. Its backend id is `avibe`; users meet it as "Vibey", its built-in Agent is `vibey`, and the-catalog owns both names. "Avibe Agent" remains the engine's name in these plans. It reaches models through+Codex, and OpenCode. Its backend id is `vibey`, which is also its built-in Agent's name, and users meet it as "Vibey"+(renamed from `avibe` before release). "Avibe Agent" remains the engine's name in these plans. It reaches models throughModel Hub in each vendor's native protocol, and Avibe can steer, fork, resume, and manage its context directly.Sourcing, by layer:@@ -71,7 +71,7 @@ sits below the product boundary Avibe must own: loop semantics, persistence, and## 4. Architecture```-modules/agents/avibe/ backend adapter: BaseAgent implementation, event → MessageOutput,+modules/agents/vibey/ backend adapter: BaseAgent implementation, event → MessageOutput,transcript store over messages/agent_events, Watch-backed job host,question/permission bridge, Model Hub hop resolutioncore/agent_core/@@ -85,7 +85,7 @@ docs/plans/agent-core-contracts/ frozen shapes (§5)````core/agent_core/` knows nothing about IM platforms, the controller, Watch, or Model Hub's HTTP surface beyond a-`ModelEndpoint` value; `modules/agents/avibe/` is the only package that touches controller state.+`ModelEndpoint` value; `modules/agents/vibey/` is the only package that touches controller state.One turn: `AgentRequest` → the adapter resolves the hop from Model Hub → the engine's `run()` yields typed events →the adapter commits each context entry to Avibe's tables, then delivers it to the surfaces from the committed row →@@ -106,7 +106,7 @@ payload.| C-5 | Transcript rows: what each context entry stores, `context_seq`, projection, fork by reference | adapter ↔ `harness` | `transcript.md`, `transcript-rows.schema.json` || C-6 | Model Hub consumer extension: `google` protocol, hop resolution, served-hop report | Model Hub → adapter | `model-hub-consumer.md`, `hop-resolution.schema.json` || C-7 | Tools: Pi's surface plus the owner's additions; output governance; job handle | `tools` → `agent`, adapter | `tools.md`, `job.schema.json` |-| C-8 | Backend registration: the catalog as the one declaration, and which sets must include `avibe` | catalog → every backend list | `backend-registration.md` |+| C-8 | Backend registration: the catalog as the one declaration, and which sets must include `vibey` | catalog → every backend list | `backend-registration.md` || C-9 | Context management: projection tiers, trigger, cut point, checkpoint, overflow ladder, guards | `harness` → `agent`, adapter | `context.md`; row shapes in `transcript-rows.schema.json` |### 5.1 Transcript storage@@ -342,7 +342,7 @@ Properties; the test suites enumerate cases.| --- | --- | --- | --- || P0 | docs | this plan, the evaluation, and the contract drafts | owner approval; `pr-delivery-loop` gates || P1 | Model Hub extension: `core/handlers/model_hub/`, Model Hub contracts, UI types · `ai`: `core/agent_core/ai/` · `agent`: `core/agent_core/agent/` · `tools`: `core/agent_core/tools/` | C-1, C-2, C-3, C-6, C-7 frozen on `master` first | each lane in its own worktree and PR; the control points it owns pass |-| P2 | adapter: `modules/agents/avibe/`, catalog, config, and UI registration (i18n strings; any new UI element needs an approved `design.pen` frame first) · transcript and Watch `job` target: `core/agent_core/harness/`, `storage/`, `core/watches.py` | C-4, C-5, C-8 frozen | A1, A3, A7, A10, A11; Incus smoke on one platform |+| P2 | adapter: `modules/agents/vibey/`, catalog, config, and UI registration (i18n strings; any new UI element needs an approved `design.pen` frame first) · transcript and Watch `job` target: `core/agent_core/harness/`, `storage/`, `core/watches.py` | C-4, C-5, C-8 frozen | A1, A3, A7, A10, A11; Incus smoke on one platform || P3 | context management as the main v1 investment; loaded skills listed by name across checkpoints; MCP client; permissions through the question UI (pending questions live in the controller process while Workbench answers arrive through `vibe/ui_server.py`, so this needs the controller IPC path, not the in-memory `QuestionUIHandler` alone) | C-9 frozen | A4; A12 baseline recorded || P4 | regression and acceptance | Incus four-platform regression; owner checklist | A6; default-agent decision |diff --git a/docs/plans/model-hub-contracts/README.md b/docs/plans/model-hub-contracts/README.mdindex b40cbe6ec..5d98a33ea 100644--- a/docs/plans/model-hub-contracts/README.md+++ b/docs/plans/model-hub-contracts/README.md@@ -2,7 +2,7 @@Status: **contract_version 12**, 2026-10-02: Google protocol vocabulary and Geminigateway frontend, with API/config-only Source admission. See-[`google-protocol.md`](google-protocol.md) and [`avibe-consumer.md`](avibe-consumer.md).+[`google-protocol.md`](google-protocol.md) and [`vibey-consumer.md`](vibey-consumer.md).The approved routing contract is`../model-hub-routing-modes.md`, including the owner-approved Empty Route Inheritancecorrection `352486374`; API-key-only scope remains unchanged.@@ -113,7 +113,7 @@ No underlying engine expansion or OAuth alias substitution is part of this changSources.8. Direct mode and a Native hop are distinct. Direct bypasses Gateway for the backend;Native is one configured hop inside Gateway mode.-9. The `avibe` backend is Hub-only and never consumes a native CLI Source or launch+9. The `vibey` backend is Hub-only and never consumes a native CLI Source or launchoverlay. Its empty catalog added on upgrade changes no existing backend intent.Response origin is captured at admission and shared with the recorded attempt.@@ -249,9 +249,9 @@ revision; the discovering lane does not reinterpret or edit the contract in plac| `opencode-overlay.md` | Stable OpenCode provider/model identifiers and effective-hop overlay behavior. || `adapter-interface.py` | Adapter protocol, observation, credential, discovery, invocation, cleanup, and classification boundary. || `mirror-registry.json` | Executable authority/mirror registry and terminal contract version. |-| `avibe-consumer.md` | C-6 launch projection, capability authority, served-hop response headers, and delivery boundaries. |+| `vibey-consumer.md` | C-6 launch projection, capability authority, served-hop response headers, and delivery boundaries. || `google-protocol.md` | Google API/config admission, native gateway paths, discovery, stream facts, and pinned-engine translation boundary. |-| `avibe-boundary-matrix.json` | Executable Avibe backend/channel audit: all declared schema shapes, runtime admission owners, and Hub-only refusal cases. |-| `hop-resolution.schema.json` | Ephemeral in-process Avibe consumer result, including gateway-only credentials and nullable capabilities. |+| `vibey-boundary-matrix.json` | Executable Vibey backend/channel audit: all declared schema shapes, runtime admission owners, and Hub-only refusal cases. |+| `hop-resolution.schema.json` | Ephemeral in-process Vibey consumer result, including gateway-only credentials and nullable capabilities. || `hop-origin.schema.json` | Non-secret response origin shared by the HTTP response header and provenance attempt. || `README.md` | This ownership, version-closure, and contract-index document. |diff --git a/docs/plans/model-hub-contracts/agent-chain.schema.json b/docs/plans/model-hub-contracts/agent-chain.schema.jsonindex c3398c3db..9aa131a61 100644--- a/docs/plans/model-hub-contracts/agent-chain.schema.json+++ b/docs/plans/model-hub-contracts/agent-chain.schema.json@@ -8,7 +8,7 @@"additionalProperties": false,"properties": {"contract_version": { "const": 12 },- "backend": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "backend": { "enum": ["claude", "codex", "opencode", "vibey"] },"model_id": { "type": "string" },"manual_override": {"description": "Normalized nonempty manual override, or null for inherited routing. Valid empty saved values and preview inputs normalize to null without a read-time write. Preview reports normalized draft intent. Nonempty equality with generated hops never determines intent; there is no empty-disable state.",@@ -162,7 +162,7 @@},"allOf": [{- "if": { "properties": { "backend": { "const": "avibe" } }, "required": ["backend"] },+ "if": { "properties": { "backend": { "const": "vibey" } }, "required": ["backend"] },"then": { "properties": { "chain": { "items": { "properties": { "channel": { "const": "hub" } } } } } }},{diff --git a/docs/plans/model-hub-contracts/agent-supply.schema.json b/docs/plans/model-hub-contracts/agent-supply.schema.jsonindex f54bdd37c..922909878 100644--- a/docs/plans/model-hub-contracts/agent-supply.schema.json+++ b/docs/plans/model-hub-contracts/agent-supply.schema.json@@ -7,7 +7,7 @@"required": ["backend", "mode", "menu_kind"],"additionalProperties": false,"properties": {- "backend": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "backend": { "enum": ["claude", "codex", "opencode", "vibey"] },"cli_present": {"type": "boolean","description": "Server-authoritative fact that this backend's configured CLI executable is present on the Avibe host. It does not prove login, process readiness, or Source health. OPTIONAL in the reusable schema and REQUIRED on AgentSupply API payloads."@@ -353,11 +353,11 @@"then": { "properties": { "menu_kind": { "const": "open" } } }},{- "if": { "properties": { "backend": { "enum": ["claude", "codex", "avibe"] } }, "required": ["backend"] },+ "if": { "properties": { "backend": { "enum": ["claude", "codex", "vibey"] } }, "required": ["backend"] },"then": { "properties": { "menu_kind": { "const": "fixed" } } }},{- "if": { "properties": { "backend": { "const": "avibe" } }, "required": ["backend"] },+ "if": { "properties": { "backend": { "const": "vibey" } }, "required": ["backend"] },"then": { "properties": { "mode": { "const": "hub" }, "cli_present": { "const": false } } }},{diff --git a/docs/plans/model-hub-contracts/api-response.schema.json b/docs/plans/model-hub-contracts/api-response.schema.jsonindex 3e789ad14..b4264fa82 100644--- a/docs/plans/model-hub-contracts/api-response.schema.json+++ b/docs/plans/model-hub-contracts/api-response.schema.json@@ -114,7 +114,7 @@"required": ["backend", "menu_model", "source_id", "model_id", "position"],"additionalProperties": false,"properties": {- "backend": {"enum": ["claude", "codex", "opencode", "avibe"]},+ "backend": {"enum": ["claude", "codex", "opencode", "vibey"]},"menu_model": {"type": "string", "minLength": 1},"source_id": {"type": "string", "pattern": "^src_[a-z0-9]{8,}$"},"model_id": {"type": "string", "minLength": 1},@@ -126,7 +126,7 @@"required": ["backend", "menu_model"],"additionalProperties": false,"properties": {- "backend": {"enum": ["claude", "codex", "opencode", "avibe"]},+ "backend": {"enum": ["claude", "codex", "opencode", "vibey"]},"menu_model": {"type": "string", "minLength": 1}}},@@ -135,7 +135,7 @@"required": ["backend", "menu_model", "source_id", "model_id", "position"],"additionalProperties": false,"properties": {- "backend": {"enum": ["claude", "codex", "opencode", "avibe"]},+ "backend": {"enum": ["claude", "codex", "opencode", "vibey"]},"menu_model": {"type": "string", "minLength": 1},"source_id": {"type": "string", "pattern": "^src_[a-z0-9]{8,}$"},"model_id": {"type": "string", "minLength": 1},@@ -147,7 +147,7 @@"required": ["backend", "model_id", "agents"],"additionalProperties": false,"properties": {- "backend": {"enum": ["claude", "codex", "opencode", "avibe"]},+ "backend": {"enum": ["claude", "codex", "opencode", "vibey"]},"model_id": {"type": "string", "minLength": 1},"agents": {"type": "array", "items": {"type": "string", "minLength": 1}, "uniqueItems": true}}@@ -308,7 +308,7 @@"additionalProperties": false,"allOf": [{- "if": { "properties": { "backend": { "const": "avibe" } }, "required": ["backend"] },+ "if": { "properties": { "backend": { "const": "vibey" } }, "required": ["backend"] },"then": { "properties": { "mode": { "const": "hub" } } }},{@@ -340,7 +340,7 @@}],"properties": {- "backend": {"enum": ["claude", "codex", "opencode", "avibe"]},+ "backend": {"enum": ["claude", "codex", "opencode", "vibey"]},"mode": {"enum": ["hub", "direct"]},"catalog_models": {"type": "array",diff --git a/docs/plans/model-hub-contracts/api.md b/docs/plans/model-hub-contracts/api.mdindex 13ef88970..bf4b26393 100644--- a/docs/plans/model-hub-contracts/api.md+++ b/docs/plans/model-hub-contracts/api.md@@ -28,11 +28,11 @@ The shared envelope and every versioned nested contract carry `contract_version`terminal value. Supported persisted config shapes and historical TurnProvenanceremain readable; ephemeral envelopes use only the terminal version.-The backend vocabulary includes `avibe`. It is always Hub mode, has no native CLI+The backend vocabulary includes `vibey`. It is always Hub mode, has no native CLI(`cli_present: false`), and accepts no `native_cli` Source. Its runtime consumerAPI and `x-avibe-served-hop` response header are specified in-[`avibe-consumer.md`](avibe-consumer.md); these are not new management endpoints.-The empty Avibe catalog added for older configurations does not hold the shared+[`vibey-consumer.md`](vibey-consumer.md); these are not new management endpoints.+The empty Vibey catalog added for older configurations does not hold the sharedruntime open. Once models are configured it participates in the runtime Stop guard.## Route tablediff --git a/docs/plans/model-hub-contracts/google-protocol.md b/docs/plans/model-hub-contracts/google-protocol.mdindex 7682f2bae..dc513d193 100644--- a/docs/plans/model-hub-contracts/google-protocol.md+++ b/docs/plans/model-hub-contracts/google-protocol.md@@ -37,9 +37,9 @@ A user-requested saved-model probe uses a Gemini `contents` request.## Consumer and transport`ModelHubLaunch.to_hop_resolution()` and the runtime router return `protocol: "google"`-and the gateway frontend Base URL ending in `/avibe/v1beta`. Required+and the gateway frontend Base URL ending in `/vibey/v1beta`. Required`request_headers`, gateway token, runtime model, Source identity, provider identity-and nullable capabilities have exactly the same owners as in `avibe-consumer.md`.+and nullable capabilities have exactly the same owners as in `vibey-consumer.md`.The gateway accepts:@@ -64,7 +64,7 @@ The engine remains v7.3.16 at upstream `c404af96` with the existing Avibe patch.### Pinned-engine limitations and admission skips-For **Avibe streaming only**, a Google frontend request cannot admit an+For **Vibey streaming only**, a Google frontend request cannot admit an`openai_responses` Source hop: the pinned CPA Responses/Codex-to-Gemini translatordoes not emit `finishReason` for `response.completed`. Before transport/recoveryadmission, skip that hop with stable reason@@ -76,7 +76,7 @@ is fabricated. If all selectable hops were skipped without an upstream attempt,return local HTTP 422 with that same machine reason and no served-hop header.If actual upstream attempts failed too, ordinary exhaustion still owns the turn.-For **Avibe Google-frontend requests**, buffered or streaming, a selected original+For **Vibey Google-frontend requests**, buffered or streaming, a selected originalmodel id containing `:` is also unsupported: CPA splits the decoded Google actionon every colon, so percent-encoding does not preserve that identity. Skip exactlythat hop with reason `google_model_path_unsupported` before transport, recovery@@ -89,7 +89,7 @@ An explicit Agent probe still tests only its selected hop: an unsupportedGoogle model returns the same controlled 422 reason instead of retrying apermanent local limitation as a changed route.-Saved-Source probes are an explicit exception to the Avibe-only consumer+Saved-Source probes are an explicit exception to the Vibey-only consumerscope: they test one exact inventory model with a buffered request in theSource's protocol. A Google Source model containing `:` returns local HTTP 422with `google_model_path_unsupported`, not an upstream/model failure. It does not@@ -98,7 +98,7 @@ credential, meter usage, or attach a served origin. The internal `opencode`adapter-dispatch marker does not make this Model Hub operation a native CLI call.One pure predicate owns the two engine limitations, from frontend protocol,-Source protocol, original model id and streaming mode. Avibe routing/Agent+Source protocol, original model id and streaming mode. Vibey routing/Agentprobes and saved-Source probes explicitly apply it before engine preparationand to the locked, revalidated snapshot immediately before adapter admission.A request already known to be unsupported at preflight does not start/reconcile@@ -137,7 +137,7 @@ the v11 response-origin policy: `x-avibe-served-hop` comes only from the immutabadmitted invocation that actually supplied the response. Pre-admission/localfailures have no origin header.-Avibe fallback compares each admitted hop with the launch's primary origin.+Vibey fallback compares each admitted hop with the launch's primary origin.For a different or unverifiable origin, Google `contents[].parts` lose opaquesignatures and visible thought text becomes ordinary text; tool arguments andresults are user data and remain intact. Same-origin requests retain signatures.diff --git a/docs/plans/model-hub-contracts/guard-refusal.schema.json b/docs/plans/model-hub-contracts/guard-refusal.schema.jsonindex ac8441c88..668fdd760 100644--- a/docs/plans/model-hub-contracts/guard-refusal.schema.json+++ b/docs/plans/model-hub-contracts/guard-refusal.schema.json@@ -90,7 +90,7 @@"required": ["backend", "menu_model", "source_id", "model_id", "position"],"additionalProperties": false,"properties": {- "backend": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "backend": { "enum": ["claude", "codex", "opencode", "vibey"] },"menu_model": { "type": "string", "minLength": 1 },"source_id": { "type": "string", "pattern": "^src_[a-z0-9]{8,}$" },"model_id": { "type": "string", "minLength": 1 },@@ -102,7 +102,7 @@"required": ["backend", "model_id", "agents"],"additionalProperties": false,"properties": {- "backend": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "backend": { "enum": ["claude", "codex", "opencode", "vibey"] },"model_id": { "type": "string", "minLength": 1 },"agents": {"type": "array",diff --git a/docs/plans/model-hub-contracts/hop-resolution.schema.json b/docs/plans/model-hub-contracts/hop-resolution.schema.jsonindex fc938afd5..ae73b8a1c 100644--- a/docs/plans/model-hub-contracts/hop-resolution.schema.json+++ b/docs/plans/model-hub-contracts/hop-resolution.schema.json@@ -7,7 +7,7 @@"required": ["backend", "requested_model", "protocol", "base_url", "token", "runtime_model", "source_id", "provider", "request_headers", "capabilities"],"additionalProperties": false,"properties": {- "backend": { "const": "avibe" },+ "backend": { "const": "vibey" },"requested_model": { "type": "string" },"protocol": { "$ref": "source.schema.json#/properties/protocol" },"base_url": { "type": "string", "format": "uri" },diff --git a/docs/plans/model-hub-contracts/probe-result.schema.json b/docs/plans/model-hub-contracts/probe-result.schema.jsonindex 1de930514..371ea43c6 100644--- a/docs/plans/model-hub-contracts/probe-result.schema.json+++ b/docs/plans/model-hub-contracts/probe-result.schema.json@@ -8,7 +8,7 @@"additionalProperties": false,"properties": {"contract_version": { "const": 12 },- "backend": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "backend": { "enum": ["claude", "codex", "opencode", "vibey"] },"channel": { "enum": ["hub", "native_cli"] },"reachable": { "type": "boolean" },"source_id": { "type": "string", "pattern": "^src_[a-z0-9]{8,}$" },@@ -33,7 +33,7 @@},"allOf": [{- "if": { "properties": { "backend": { "const": "avibe" } }, "required": ["backend"] },+ "if": { "properties": { "backend": { "const": "vibey" } }, "required": ["backend"] },"then": { "properties": { "channel": { "const": "hub" } } }},{diff --git a/docs/plans/model-hub-contracts/resolution-event.schema.json b/docs/plans/model-hub-contracts/resolution-event.schema.jsonindex e54d20ccf..209eef14c 100644--- a/docs/plans/model-hub-contracts/resolution-event.schema.json+++ b/docs/plans/model-hub-contracts/resolution-event.schema.json@@ -10,7 +10,7 @@"id": { "type": "string" },"ts": { "type": "string", "format": "date-time" },"agent": {- "enum": ["claude", "codex", "opencode", "avibe", "system"],+ "enum": ["claude", "codex", "opencode", "vibey", "system"],"description": "The discovering backend, or system for a source-scoped non-turn operation. system is never valid for backend-scoped supply_interrupted. Mirrors the backend vocabulary with the one declared extra system."},"kind": {@@ -84,7 +84,7 @@"then": {"required": ["agent", "model_id", "severity"],"properties": {- "agent": { "enum": ["claude", "codex", "opencode", "avibe"] },+ "agent": { "enum": ["claude", "codex", "opencode", "vibey"] },"model_id": { "type": "string" },"severity": { "const": "action_required" },"from_source": { "type": "null" },diff --git a/docs/plans/model-hub-contracts/source.schema.json b/docs/plans/model-hub-contracts/source.schema.jsonindex 03a0464fc..242aaf0b6 100644--- a/docs/plans/model-hub-contracts/source.schema.json+++ b/docs/plans/model-hub-contracts/source.schema.json@@ -453,7 +453,7 @@"additionalProperties": false,"properties": {"backend": {- "enum": ["claude", "codex", "opencode", "avibe"]+ "enum": ["claude", "codex", "opencode", "vibey"]},"menu_model": {"type": "string",diff --git a/docs/plans/model-hub-contracts/turn-provenance.schema.json b/docs/plans/model-hub-contracts/turn-provenance.schema.jsonindex 92e997628..c8f0e6b4c 100644--- a/docs/plans/model-hub-contracts/turn-provenance.schema.json+++ b/docs/plans/model-hub-contracts/turn-provenance.schema.json@@ -50,7 +50,7 @@"description": "When the FSM settled the turn."},"agent": {- "enum": ["claude", "codex", "opencode", "avibe"],+ "enum": ["claude", "codex", "opencode", "vibey"],"description": "Backend identifier. Mirrors AgentSupply.backend exactly."},"requested_model_id": {@@ -302,7 +302,7 @@},"allOf": [{- "if": { "properties": { "agent": { "const": "avibe" } }, "required": ["agent"] },+ "if": { "properties": { "agent": { "const": "vibey" } }, "required": ["agent"] },"then": {"properties": {"failed_attempts": { "items": { "properties": { "channel": { "const": "hub" } } } },diff --git a/docs/plans/model-hub-contracts/avibe-boundary-matrix.json b/docs/plans/model-hub-contracts/vibey-boundary-matrix.jsonsimilarity index 97%rename from docs/plans/model-hub-contracts/avibe-boundary-matrix.jsonrename to docs/plans/model-hub-contracts/vibey-boundary-matrix.jsonindex d36e41c16..3d5ce9f28 100644--- a/docs/plans/model-hub-contracts/avibe-boundary-matrix.json+++ b/docs/plans/model-hub-contracts/vibey-boundary-matrix.json@@ -20,7 +20,7 @@"schema": "probe-result.schema.json", "pointer": "", "backend": "backend","policy": "hub-only", "runtime": "ModelHubService.probe_agent -> inspected runnable hop","runtime_cases": ["probe"],- "refusals": [{"fixture": "probe", "path": ["backend"], "value": "avibe"}]+ "refusals": [{"fixture": "probe", "path": ["backend"], "value": "vibey"}]},{"schema": "turn-provenance.schema.json", "pointer": "", "backend": "agent",@@ -67,7 +67,7 @@{"schema": "source.schema.json", "pointer": "/properties/adopted_by/items", "backend": "backend","policy": "reference", "runtime": "ModelHubService Source adoption -> effective_model_route",- "notes": "Source.supply_channel is source-global, not the channel of a reference. Avibe references are created only through eligible Hub routes."+ "notes": "Source.supply_channel is source-global, not the channel of a reference. Vibey references are created only through eligible Hub routes."},{"schema": "resolution-event.schema.json", "pointer": "", "backend": "agent",@@ -77,7 +77,7 @@{"schema": "migration-scan.schema.json", "pointer": "/properties/items/items", "backend": "backend","policy": "native-only", "runtime": "ModelHubService native migration scanner",- "refusals": [{"fixture": "migration", "path": ["backend"], "value": "avibe"}]+ "refusals": [{"fixture": "migration", "path": ["backend"], "value": "vibey"}]}]}diff --git a/docs/plans/model-hub-contracts/avibe-consumer.md b/docs/plans/model-hub-contracts/vibey-consumer.mdsimilarity index 88%rename from docs/plans/model-hub-contracts/avibe-consumer.mdrename to docs/plans/model-hub-contracts/vibey-consumer.mdindex 8a215035b..4959dce08 100644--- a/docs/plans/model-hub-contracts/avibe-consumer.md+++ b/docs/plans/model-hub-contracts/vibey-consumer.md@@ -1,4 +1,4 @@-# Avibe Agent consumer+# Vibey consumerChange contract for C-6, 2026-10-02. This is the Model Hub producer contract forthe consumer requirements in docs PR #2333. Backend registration and the Agent@@ -8,48 +8,48 @@ adapter remain C-8 work.`ModelHubRuntimeRouter.resolve_hop(requested_model, *, process_scope, turn_id=None)`returns the serialized `HopResolution` in `hop-resolution.schema.json`. It calls-the existing `resolve("avibe", ...)`; `ModelHubLaunch.to_hop_resolution()` projects+the existing `resolve("vibey", ...)`; `ModelHubLaunch.to_hop_resolution()` projectsthat launch. There is no second planner, credential store, or upstream client.-The backend id is `avibe`. It has a fixed catalog (ordinary editable model rows),+The backend id is `vibey`. It has a fixed catalog (ordinary editable model rows),no native protocol pin, no native CLI, and no Direct mode. Until its starting-supply is seeded, the Avibe row is pending: a fresh configuration, or one written-before the Avibe Agent existed, reads an empty Hub row that writes leave absent.+supply is seeded, the Vibey row is pending: a fresh configuration, or one written+before Vibey existed, reads an empty Hub row that writes leave absent.The seed runs once, when a Source it can place exists: in the background afterthe service reports ready for Sources that already exist (so a first models.devfetch never delays startup), and otherwise inside the mutation that creates thefirst eligible Source, API key, OAuth, or native takeover alike, once thatmutation's Sources are final, so no restart is needed. Its source order becomes every existing eligible Source, placed exactly as-a newly created Source would be (like OpenCode, Avibe reaches every vendor, so a+a newly created Source would be (like OpenCode, Vibey reaches every vendor, so asubscription joins it whether or not a starting model matches, ahead of the APIkeys), and its catalog becomes the models the built-inClaude, Codex, and OpenCode Agents run, in that order, that one of those Sourceslists, deduplicated and added as the picker adds a provider model (models.devmetadata included). None qualifying leaves the catalog empty; no model is picked-on the user's behalf. An Avibe Agent without a model cannot run a turn, so the+on the user's behalf. A Vibey Agent without a model cannot run a turn, so thebuilt-in one takes its catalog's first model while it has none: one controllerrule, decided under the Agent store's write lock so a chosen model stands, run-on every Avibe catalog change (`_refresh_backend_catalog`, which each seed also+on every Vibey catalog change (`_refresh_backend_catalog`, which each seed alsoannounces) and at every start, so a lost hand-off heals on the next start. Aseed with no models.dev copy cached first fetches one in the foreground, bounded,so its rows usually carry the limits the Agent budgets with; a starting model isone a placed Source's own non-retired inventory lists, never a passthrough route. A native Source that later moves-to the Hub joins Avibe like a new Source.+to the Hub joins Vibey like a new Source.Where a user Agent already holds the name and no built-in exists, only thesupply is seeded.The persisted row then belongs to the user and is never seeded again. Existingbackend modes, model metadata, routes, source order, and runtime intent remain-unchanged. An empty Avibe catalog does not prevent an explicit runtime Stop.+unchanged. An empty Vibey catalog does not prevent an explicit runtime Stop.The primary currently selected hop owns `protocol`, `provider` (the Source's vendor-identity), and `source_id`. `base_url` is the loopback gateway's `/avibe/v1` API root;+identity), and `source_id`. `base_url` is the loopback gateway's `/vibey/v1` API root;the consumer appends `messages`, `chat/completions`, or `responses` according to`protocol`. `runtime_model` is the exact prepared request model; the route credentialretains the caller's catalog alias through remapping and failover. The token isin-memory only and excluded from the launch repr. `request_headers` is a requiredmap (empty when unused) carrying any gateway correlation metadata; it is neveromitted. The caller supplies a Session-specific process scope-and the current Avibe turn id for durable turn provenance, then retires the scope+and the current Vibey turn id for durable turn provenance, then retires the scopethrough the existing router lifecycle when the consumer shuts down.Planning capabilities retain the requested catalog row's authority, including for@@ -67,7 +67,7 @@ The consumer resolves once per run and again after a retryable failure. Failoverrecovery, Source health, and credentials remain owned by Model Hub.Candidate admission also preserves this capability authority: Source metadata-first, then exact catalog metadata. Avibe never receives the native-backend+first, then exact catalog metadata. Vibey never receives the native-backendprotocol/model-family default reasoning ladder. An undeclared ladder is empty;undeclared boolean/numeric capabilities remain null.@@ -76,7 +76,7 @@ undeclared boolean/numeric capabilities remain null.The prepared route credential retains the immutable primary `(provider, api,model)` from launch, including untracked launches without a turn id. This origintravels as in-memory request metadata, never as upstream JSON or a caller-supplied-header. Each revalidated Avibe attempt compares its admitted origin against that+header. Each revalidated Vibey attempt compares its admitted origin against thatoriginal primary, including fallback, credential refresh, and recovery walks.If any origin component differs, or the primary origin cannot be verified, the@@ -107,12 +107,12 @@ Native route-conflict and ambiguity rules are unchanged.## Hub-only boundary audit-`avibe-boundary-matrix.json` is the executable audit table. It lists every schema+`vibey-boundary-matrix.json` is the executable audit table. It lists every schemathat declares a backend discriminator, its runtime owner, and the refusal cases.Tests discover discriminator sites and run the listed schema/runtime refusals;adding a new shape without a policy fails the audit.-| Boundary | Avibe invariant |+| Boundary | Vibey invariant || --- | --- || Supply/config/catalog | Hub mode; no CLI presence, Direct mode, or native protocol pin || Source order/manual route | Native Sources rejected by the shared eligibility owner |@@ -121,11 +121,11 @@ adding a new shape without a policy fails the audit.| Terminal/local failures | Hub producer or null local attribution, never native CLI || Recovery | Reuses the same Hub admission and attempt slots; live annotation adds no channel || Guard/adoption/event references | Reference or diagnostic identity, not a separate transport grant |-| Native migration scan | Avibe absent; released native shapes remain unchanged |+| Native migration scan | Vibey absent; released native shapes remain unchanged |## Response origin-Every Avibe model response that the gateway serves carries the response header+Every Vibey model response that the gateway serves carries the response header`x-avibe-served-hop`. Its value is compact ASCII-escaped JSON:```json@@ -136,25 +136,25 @@ The exact object is `hop-origin.schema.json`. The provider and protocol arecaptured from the Source snapshot used at attempt admission, and the model is theconfigured upstream target of that attempt. The same immutable `HopOrigin` travelswith `ResolvedInvocation` and the request's `AttemptIdentity`; successful settlement-stores it as the required `TurnProvenance.served.origin` for Avibe. Historical and-native records may omit origin; Avibe has no pre-v11 historical record.+stores it as the required `TurnProvenance.served.origin` for Vibey. Historical and+native records may omit origin; Vibey has no pre-v11 historical record.Failed/canceled attempts can also retain that snapshot, without implying success.For a turn making several model requests, each response header names its ownrequest's hop; the turn-level `served` retains the last successful attempt underthe existing settlement rules.Headers are committed after resolution reaches the engine's first-output barrier-and before any response bytes. Avibe never takes the early Anthropic keepalive+and before any response bytes. Vibey never takes the early Anthropic keepalivepath, whose headers could otherwise leave before a fallback hop is known.Native CLI keepalive and HTTP-status behavior remain unchanged. Buffered and-streaming Avibe responses use the same origin header, including tool-only answers.+streaming Vibey responses use the same origin header, including tool-only answers.The header identifies the producer; a later stream error is still terminal anddoes not certify a successful response.Local errors before a serving hop exists have no origin header; they cannotclaim an upstream producer.The exact header value is bounded to **4096 ASCII bytes**, including JSON syntax-and escapes (excluding the header name and HTTP framing). Every Avibe hop is+and escapes (excluding the header name and HTTP framing). Every Vibey hop ischecked against this bound at invocation admission, including fallback andcredential-refresh attempts. An oversized value is refused with HTTP `422` andmachine error `served_hop_too_large`, before invoking that hop: no attempt, Source@@ -188,8 +188,8 @@ The header needs no upstream credentials and is never forwarded upstream.- Released-shape loading: old modes/routes/capabilities survive without mutation;the new row is empty Hub, and native-cli Sources remain ineligible.-- Starting supply (MH-AVIBE-007): an unrelated write keeps the unseeded row absent;- the seed places existing Sources for Avibe alone and keeps only routable Agent+- Starting supply (MH-VIBEY-007): an unrelated write keeps the unseeded row absent;+ the seed places existing Sources for Vibey alone and keeps only routable Agentmodels; a second start leaves the persisted row, including removed Sources, alone.- Real loopback gateway requests through the existing service, with hermetic enginefixtures: primary protocol resolution, cross-protocol failover, non-ASCII origin,@@ -200,7 +200,7 @@ The header needs no upstream credentials and is never forwarded upstream.capability field, and served identity/origin field from real produced values.Native records from each supported persisted generation still load without anorigin. The terminal response table crosses result carrier, body availability,- upstream/local cause, primary/fallback hop, and native/Avibe backend.+ upstream/local cause, primary/fallback hop, and native/Vibey backend.- Cross-origin histories are checked at engine admission across all three existingfrontends, same/different protocol fallback, recovery, and launch-time configchanges. Same-origin and native histories retain their payloads.@@ -213,5 +213,5 @@ The header needs no upstream credentials and is never forwarded upstream.The v11 consumer introduced the three existing protocols. The v12 extension in[`google-protocol.md`](google-protocol.md) adds the Google runtime/engine frontendtogether with the vocabulary, while preserving the origin delivery rules. There are-no new UI elements in this lane. C-8 owns enabling the Avibe backend card and its+no new UI elements in this lane. C-8 owns enabling the Vibey backend card and itsHub-only presentation; `cli_present` truthfully remains false here.diff --git a/modules/agents/avibe/__init__.py b/modules/agents/avibe/__init__.pydeleted file mode 100644index 697951e42..000000000--- a/modules/agents/avibe/__init__.py+++ /dev/null@@ -1,5 +0,0 @@-"""The Avibe Agent backend (``avibe``): Avibe's own agent loop as a ``BaseAgent``."""--from modules.agents.avibe.agent import AvibeAgent--__all__ = ["AvibeAgent"]diff --git a/modules/agents/catalog.py b/modules/agents/catalog.pyindex a93310993..f33bee916 100644--- a/modules/agents/catalog.py+++ b/modules/agents/catalog.py@@ -6,7 +6,7 @@ from dataclasses import asdict, dataclassfrom typing import Final, LiteralNativeCliBackend = Literal["opencode", "claude", "codex"]-AgentBackend = Literal[NativeCliBackend, "avibe"]+AgentBackend = Literal[NativeCliBackend, "vibey"]@dataclass(frozen=True)@@ -23,8 +23,6 @@ class AgentBackendDescriptor:id: strdisplay_name: strconfig_key: str- # The name the store creates the backend's built-in Agent under (``@name``, ``--agent name``).- builtin_agent_name: strdefault_cli: str | Nonedefault_enabled: boollatest_probe: tuple[str, str] | None@@ -49,11 +47,10 @@ class AgentBackendDescriptor:# Registry order is the order every backend list shows: the built-in backend first.AGENT_BACKEND_REGISTRY: Final[dict[str, AgentBackendDescriptor]] = {- "avibe": AgentBackendDescriptor(- id="avibe",+ "vibey": AgentBackendDescriptor(+ id="vibey",display_name="Vibey",- config_key="avibe",- builtin_agent_name="vibey",+ config_key="vibey",default_cli=None,default_enabled=True,latest_probe=None,@@ -70,7 +67,6 @@ AGENT_BACKEND_REGISTRY: Final[dict[str, AgentBackendDescriptor]] = {id="opencode",display_name="OpenCode",config_key="opencode",- builtin_agent_name="opencode",default_cli="opencode",default_enabled=True,latest_probe=("github", "sst/opencode"),@@ -80,7 +76,6 @@ AGENT_BACKEND_REGISTRY: Final[dict[str, AgentBackendDescriptor]] = {id="claude",display_name="Claude Code",config_key="claude",- builtin_agent_name="claude",default_cli="claude",default_enabled=True,latest_probe=("npm", "@anthropic-ai/claude-code"),@@ -90,7 +85,6 @@ AGENT_BACKEND_REGISTRY: Final[dict[str, AgentBackendDescriptor]] = {id="codex",display_name="Codex",config_key="codex",- builtin_agent_name="codex",default_cli="codex",default_enabled=False,latest_probe=("npm", "@openai/codex"),@@ -171,11 +165,6 @@ def implicit_default_rank(name: str) -> int:return 1 if is_builtin_backend(name) else 0-def builtin_agent_name_for_backend(name: str) -> str:- """Return the name of *name*'s built-in Agent."""- return get_agent_backend_descriptor(name).builtin_agent_name--def display_name_for_backend(name: str) -> str:"""Return the user-facing display name for *name*."""if name in AGENT_BACKEND_REGISTRY:diff --git a/modules/agents/model_hub.py b/modules/agents/model_hub.pyindex 8f75014f5..ae767a607 100644--- a/modules/agents/model_hub.py+++ b/modules/agents/model_hub.py@@ -105,7 +105,7 @@ class ModelHubLaunch:"""Project C-6 from the same launch that owns routing and credentials."""if (- self.backend != "avibe" or self.channel != "hub"+ self.backend != "vibey" or self.channel != "hub"or not self.protocol or not self.provider or not self.source_idor not self.gateway_base_url or not self.gateway_token):@@ -230,7 +230,7 @@ def bind_persisted_launch(context: Any, payload: object) -> ModelHubLaunch | Nonif (backend not in MODEL_HUB_BACKENDSor channel not in {"native_cli", "hub"}- or (backend == "avibe" and channel != "hub")+ or (backend == "vibey" and channel != "hub")or not isinstance(source_id, str)or not source_idor not isinstance(target_model, str)@@ -261,7 +261,7 @@ def claude_settings_for_launch(base_settings: str, launch: ModelHubLaunch | Nonekeeps the user's own Claude preferences while the Hub owns the connection."""- if launch is None or launch.backend == "avibe" or launch.channel != "hub":+ if launch is None or launch.backend == "vibey" or launch.channel != "hub":return base_settingssettings = json.loads(base_settings)connection_env = build_claude_hub_env({}, launch)@@ -307,7 +307,7 @@ async def resolve_model_hub_launch()_hold_unrunnable_input(context, failure)raise failure from None- if backend == "avibe":+ if backend == "vibey":raise ModelHubError("engine_down", status=503, turn_outcome=ENGINE_DOWN_TURN_OUTCOME)return ModelHubLaunch(backend=backend,@@ -431,7 +431,7 @@ def build_claude_hub_env() -> dict[str, str]:"""Return Claude environment overrides for the resolved Hub launch."""- if launch.backend == "avibe" or launch.channel == "direct":+ if launch.backend == "vibey" or launch.channel == "direct":return dict(base_env)if launch.channel == "hub":if not launch.gateway_base_url or not launch.gateway_token:@@ -485,7 +485,7 @@ def build_codex_hub_launch() -> tuple[list[str], dict[str, str] | None]:"""Return app-server global overrides and environment for a Hub turn."""- if launch.backend == "avibe" or launch.channel != "hub" or not launch.gateway_base_url or not launch.gateway_token:+ if launch.backend == "vibey" or launch.channel != "hub" or not launch.gateway_base_url or not launch.gateway_token:return list(base_args), Noneif model_catalog_path is None:raise ValueError("Codex Model Hub launches require a provider-safe model catalog")@@ -581,7 +581,7 @@ class ModelHubRuntimeRouter:*,verified_oauth: bool = False,) -> bool:- if backend == "avibe":+ if backend == "vibey":return Falseruntime_config = getattr(load_config_or_default().agents, backend)cli_path = str(getattr(runtime_config, "cli_path", "") or "").strip()@@ -1019,7 +1019,7 @@ class ModelHubRuntimeRouter:) -> ModelHubLaunch:requested_model = str(requested_model or "").strip()config = config if config is not None else self.service.store.load()- if backend == "avibe" and (+ if backend == "vibey" and (config.agents[backend].mode != "hub" or self.turn_gateway is None):# An in-process consumer requires the routing gateway, including@@ -1121,7 +1121,7 @@ class ModelHubRuntimeRouter:gateway_request_model_id=runtime_model,primary_origin=(HopOrigin(source.vendor, source.protocol, target_model)- if backend == "avibe" else None+ if backend == "vibey" else None),)if self.turn_gateway is None:@@ -1172,10 +1172,10 @@ class ModelHubRuntimeRouter:process_scope: str,turn_id: Optional[str] = None,) -> dict[str, Any]:- """Resolve the Avibe Agent endpoint without any native CLI overlay."""+ """Resolve Vibey's endpoint without any native CLI overlay."""launch = await self.resolve(- "avibe", requested_model, process_scope=process_scope, turn_id=turn_id,+ "vibey", requested_model, process_scope=process_scope, turn_id=turn_id,)return launch.to_hop_resolution()diff --git a/modules/agents/vibey/__init__.py b/modules/agents/vibey/__init__.pynew file mode 100644index 000000000..8762b7f57--- /dev/null+++ b/modules/agents/vibey/__init__.py@@ -0,0 +1,5 @@+"""Vibey, the built-in backend (``vibey``): Avibe's own agent loop as a ``BaseAgent``."""++from modules.agents.vibey.agent import VibeyAgent++__all__ = ["VibeyAgent"]diff --git a/modules/agents/avibe/agent.py b/modules/agents/vibey/agent.pysimilarity index 96%rename from modules/agents/avibe/agent.pyrename to modules/agents/vibey/agent.pyindex a5aa5867f..3efd76026 100644--- a/modules/agents/avibe/agent.py+++ b/modules/agents/vibey/agent.py@@ -1,4 +1,4 @@-"""``AvibeAgent``: the Avibe Agent engine (``core.agent_core``) as an Avibe backend.+"""``VibeyAgent``: the Avibe Agent engine (``core.agent_core``) as the ``vibey`` backend.One Turn is one ``Agent.run`` (plan section 4). The adapter@@ -11,12 +11,12 @@ One Turn is one ``Agent.run`` (plan section 4). The adapterof persisting a second row (``MessageOutput.persisted_row_id``);* steers the running loop with P1 deliveries and lets a refused steer fall backto the P3 queue; Stop aborts the run;-* runs every Turn with C-9 context management (``AvibeContextHost``), within+* runs every Turn with C-9 context management (``VibeyContextHost``), withinthe route's Model Hub limits;* before any run of a Session in this process, under the Session writer lock,settles open tool calls (T2) and admits accepted inputs that were neverconsumed (T3); at startup it settles every Session's open calls eagerly. The- Turn a restart interrupted is settled by the Turn owner (T4; ``avibe`` is a+ Turn a restart interrupted is settled by the Turn owner (T4; ``vibey`` is aprocess-bound runtime)."""@@ -76,17 +76,17 @@ from core.native_dispatch_phase import mark_backend_dispatch_attemptedfrom core.processing_indicator import STOPPED_REACTION_EMOJIfrom core.reply_enhancer import strip_silent_blocksfrom core.skill_observability import accept_catalog-from modules.agents.avibe.context import (- AvibeContextHost,+from modules.agents.vibey.context import (+ VibeyContextHost,budgeted,mark_skill_loads,)-from modules.agents.avibe.errors import error_text-from modules.agents.avibe.media import MediaSnapshots-from modules.agents.avibe.models import HubModelRouter, ProviderFactory, registry_providers, selection_from_hop-from modules.agents.avibe.prompt import EnvironmentValue, current_environment, system_prompt-from modules.agents.avibe.store import AdapterTranscriptStore-from modules.agents.avibe.tools import ToolSuite, local_tool_suite+from modules.agents.vibey.errors import error_text+from modules.agents.vibey.media import MediaSnapshots+from modules.agents.vibey.models import HubModelRouter, ProviderFactory, registry_providers, selection_from_hop+from modules.agents.vibey.prompt import EnvironmentValue, current_environment, system_prompt+from modules.agents.vibey.store import AdapterTranscriptStore+from modules.agents.vibey.tools import ToolSuite, local_tool_suitefrom modules.agents.base import AGENT_RUNTIME_TURN_KEY, AgentRequest, BaseAgentfrom modules.agents.catalog import display_name_for_backendfrom modules.im.base import FileAttachment@@ -104,7 +104,7 @@ from storage.models import agent_events, agent_sessions, message_deliveries, meslogger = logging.getLogger(__name__)-BACKEND = "avibe"+BACKEND = "vibey"# Final responses whose empty text is explained by the stop itself (loop-control.md section 2)._EXPLAINED_STOPS = ("refusal", "safety")_COMPLETED = ("completed", "ended_by_hook")@@ -157,7 +157,7 @@ class _Run:@propertydef native_turn_id(self) -> str:- """``avibe:<adapter instance>:<turn>``: the instance that runs the Turn, for steer reconcile."""+ """``vibey:<adapter instance>:<turn>``: the instance that runs the Turn, for steer reconcile."""return f"{BACKEND}:{self.instance}:{self.turn_id}"@@ -172,8 +172,8 @@ class _SessionRuntime:holders: int = 0-class AvibeAgent(BaseAgent):- """Backend ``avibe``: the first-party agent loop over Avibe's own transcript rows."""+class VibeyAgent(BaseAgent):+ """Backend ``vibey``: the first-party agent loop over Avibe's own transcript rows."""name = BACKEND@@ -199,7 +199,7 @@ class AvibeAgent(BaseAgent):)self._providers = providers or registry_providers(media_loader=self.media)# C-9: the Session parts a checkpoint carries (context.md section 9).- self.context_host = AvibeContextHost(self._engine, environment=self._environment)+ self.context_host = VibeyContextHost(self._engine, environment=self._environment)self._tool_suite = tool_suite# Per-Session state lives only while a caller holds the Session (``_held``);# the last holder retires it, together with the store's per-Session state.@@ -244,7 +244,7 @@ class AvibeAgent(BaseAgent):# Raised during or after settlement (its emits, or a failure notice): the# shared owner's fallback releases the runtime gate, so it must see it.raise- logger.exception("Avibe Agent turn failed for Session %s", session_id)+ logger.exception("Vibey turn failed for Session %s", session_id)turn.settled = Trueawait self._fail(request, "generic", f"turn failed: {error}", cause=error)finally:@@ -363,7 +363,7 @@ class AvibeAgent(BaseAgent):Sessions with accepted inputs no run consumed. Each runs the same resume a Turnruns (T2 and T3, no model call). A Session a run holds is skipped: its own resumesettles it. J5 pruning follows a pass that settled everything. Never reports- success over a failure; ``AvibeRecovery`` owns the retries.+ success over a failure; ``VibeyRecovery`` owns the retries."""candidates = await asyncio.to_thread(self._recovery_candidates)unsettled: list[str] = []@@ -374,7 +374,7 @@ class AvibeAgent(BaseAgent):try:await self._resume(runtime)except Exception:- logger.exception("Avibe Agent could not settle Session %s outside a Turn", session_id)+ logger.exception("Vibey could not settle Session %s outside a Turn", session_id)unsettled.append(session_id)if not unsettled:await self._prune_settled_jobs()@@ -385,7 +385,7 @@ class AvibeAgent(BaseAgent):def _schedule_recovery(self) -> None:"""Hand what this Turn could not settle to the process's recovery owner."""- recovery = getattr(self.controller, "avibe_recovery", None)+ recovery = getattr(self.controller, "vibey_recovery", None)if recovery is not None:recovery.ensure()@@ -395,7 +395,7 @@ class AvibeAgent(BaseAgent):returnif self._prune_task is not None and not self._prune_task.done():return- self._prune_task = asyncio.create_task(self._prune_settled_jobs(), name="avibe-agent-job-prune")+ self._prune_task = asyncio.create_task(self._prune_settled_jobs(), name="vibey-agent-job-prune")async def _prune_settled_jobs(self) -> None:"""J5: remove finished jobs whose call has a durable result and whose Watch settled."""@@ -405,9 +405,9 @@ class AvibeAgent(BaseAgent):if suite.prune is not None:removed = await asyncio.to_thread(suite.prune, self._job_call_settled)if removed:- logger.info("Avibe Agent pruned %d settled job(s)", len(removed))+ logger.info("Vibey pruned %d settled job(s)", len(removed))except Exception:- logger.exception("Avibe Agent job pruning failed")+ logger.exception("Vibey job pruning failed")def _job_call_settled(self, meta: Any) -> bool:"""Whether the job's tool call has a durable ``tool_result`` row (the adapter's half of J5).@@ -466,7 +466,7 @@ class AvibeAgent(BaseAgent):request.target_session_id, request.text, request.files, request.input_metadata)except Exception:- logger.exception("Avibe Agent could not prepare a steer for Session %s", request.target_session_id)+ logger.exception("Vibey could not prepare a steer for Session %s", request.target_session_id)return steer_result(SteerOutcome.REFUSED, reason="preparation_failed")if run.agent is not None and await run.agent.steer(AgentInput(message_id, message)):run.accepted_steers.add(request.attempt_id)@@ -675,7 +675,7 @@ class AvibeAgent(BaseAgent):except Exception:# The rows stay accepted and unconsumed: the recovery owner admits them (T3)# without waiting for the Session's next message.- logger.exception("Avibe Agent could not admit returned inputs for Session %s", run.session_id)+ logger.exception("Vibey could not admit returned inputs for Session %s", run.session_id)self._schedule_recovery()# --- resume (recovery.md T2, T3) -------------------------------------------@@ -706,7 +706,7 @@ class AvibeAgent(BaseAgent):except Exception:# The input is admitted regardless (T3 never drops one): a recovered input whose# sender facts cannot be rebuilt must not stop every later Turn of the Session.- logger.exception("Avibe Agent could not rebuild sender facts for input %s", delivery.get("id"))+ logger.exception("Vibey could not rebuild sender facts for input %s", delivery.get("id"))return Noneasync def _settle_left_open(self, runtime: _SessionRuntime) -> None:@@ -719,7 +719,7 @@ class AvibeAgent(BaseAgent):await self._settle_open_calls(runtime)except Exception:# The calls stay open, and the recovery owner settles them once this Turn releases the Session.- logger.exception("Avibe Agent could not settle the calls a run left open in Session %s", runtime.session_id)+ logger.exception("Vibey could not settle the calls a run left open in Session %s", runtime.session_id)self._schedule_recovery()async def _settle_open_calls(self, runtime: _SessionRuntime) -> None:@@ -883,7 +883,7 @@ class AvibeAgent(BaseAgent):return {row_id: moment for row_id, created in rows if (moment := instant(created)) is not None}def _unconsumed_inputs(self, session_id: str) -> list[tuple[str, str, list[FileAttachment], dict[str, Any]]]:- """Inputs accepted into an ``avibe`` Turn but never consumed, in acceptance order.+ """Inputs accepted into a ``vibey`` Turn but never consumed, in acceptance order.Only Turns this backend ran count, so history from an earlier backend of thesame Session never enters the context.@@ -969,7 +969,7 @@ class AvibeAgent(BaseAgent):continueexcept OSError:# Unreadable now: listed by path, as the native backends pass every attachment.- logger.warning("Avibe Agent lists an image it could not snapshot: %s", attachment.local_path)+ logger.warning("Vibey lists an image it could not snapshot: %s", attachment.local_path)size = f", {attachment.size} bytes" if attachment.size else ""listed.append(f"- File: {attachment.local_path} ({attachment.mimetype}{size})")body = message or ""@@ -1078,7 +1078,7 @@ class AvibeAgent(BaseAgent):try:watches = list_watches()except Exception:- logger.debug("Avibe Agent could not list Watches", exc_info=True)+ logger.debug("Vibey could not list Watches", exc_info=True)return []lines = []for watch in watches:@@ -1108,7 +1108,7 @@ class AvibeAgent(BaseAgent):output=MessageOutput(completes_turn=False, completes_run=False, persisted_row_id=row_id),)except Exception:- logger.exception("Avibe Agent could not show narration %s", row_id)+ logger.exception("Vibey could not show narration %s", row_id)async def _emit_tool_started(self, run: _Run, event: ToolStarted) -> None:call = run.tool_calls.get(event.tool_call_id)@@ -1123,7 +1123,7 @@ class AvibeAgent(BaseAgent):status_label=formatter.format_toolcall_label(event.name, arguments, get_relative_path=relative),)except Exception:- logger.exception("Avibe Agent could not show tool %s", event.name)+ logger.exception("Vibey could not show tool %s", event.name)def _on_response(self, session_id: str, row_id: str, message: AssistantMessage) -> None:"""A response committed for the Session's run: keep what its delivery and tool events need."""@@ -1148,7 +1148,7 @@ class AvibeAgent(BaseAgent):try:note(run.request.context, total=total)except Exception:- logger.debug("Avibe Agent token note failed", exc_info=True)+ logger.debug("Vibey token note failed", exc_info=True)async def _fail(self,@@ -1181,7 +1181,7 @@ class AvibeAgent(BaseAgent):async def _fail_preflight(self, request: AgentRequest, error: BaseException) -> None:from modules.agents.model_hub import hub_supply_refusal, launch_refusal_copy- logger.warning("Avibe Agent could not resolve its model route: %s", error)+ logger.warning("Vibey could not resolve its model route: %s", error)language = self._language()# Every route runs through the Model Hub: when it is disabled or its gateway is off, that explains the failure.refusal = (@@ -1319,7 +1319,7 @@ class AvibeAgent(BaseAgent):return sorted(candidates)def _sessions_with_unconsumed_inputs(self) -> list[str]:- """Sessions with inputs accepted into an ``avibe`` Turn that no run consumed (T3)."""+ """Sessions with inputs accepted into a ``vibey`` Turn that no run consumed (T3)."""with self._engine.connect() as conn:return sorted(conn.execute(diff --git a/modules/agents/avibe/context.py b/modules/agents/vibey/context.pysimilarity index 95%rename from modules/agents/avibe/context.pyrename to modules/agents/vibey/context.pyindex 854f6127c..59d2947fa 100644--- a/modules/agents/avibe/context.py+++ b/modules/agents/vibey/context.py@@ -1,6 +1,6 @@-"""What the Avibe Agent supplies to C-9 context management (``agent-core-contracts/context.md`` sections 7 and 9).+"""What Vibey supplies to C-9 context management (``agent-core-contracts/context.md`` sections 7 and 9).-``AvibeContextHost`` is the loop's ``ContextHost``:+``VibeyContextHost`` is the loop's ``ContextHost``:* ``earlier_record`` is the short hint a checkpoint carries in ``<earlier-record>``:where the earlier messages are stored and how far they go, one runnable example@@ -26,7 +26,7 @@ from sqlalchemy.engine import Enginefrom core.agent_core.harness.context import StateRequest, displayfrom core.agent_core.tools.base import Tool, ToolContext, ToolResult, ToolSpec-from modules.agents.avibe.prompt import EnvironmentValue, render_environment+from modules.agents.vibey.prompt import EnvironmentValue, render_environment#: The tags of the block ``vibe skill load`` writes for each skill it loads (``render_skill_content``)._SKILL_TAG = re.compile(r'<skill_content name="([^"]*)"[^>]*>|</skill_content>')@@ -58,8 +58,8 @@ def budgeted(selection: Any) -> Any:return _replace(selection, capabilities=_replace(capabilities, max_output_tokens=output_budget(capabilities)))-class AvibeContextHost:- """The loop's ``ContextHost`` for the Avibe Agent."""+class VibeyContextHost:+ """The loop's ``ContextHost`` for Vibey."""def __init__(self, engine: Engine, *, environment: Callable[[str], Mapping[str, EnvironmentValue]]) -> None:self._engine = enginediff --git a/modules/agents/avibe/errors.py b/modules/agents/vibey/errors.pysimilarity index 93%rename from modules/agents/avibe/errors.pyrename to modules/agents/vibey/errors.pyindex c02ddde8b..833a380d4 100644--- a/modules/agents/avibe/errors.py+++ b/modules/agents/vibey/errors.py@@ -2,7 +2,7 @@``AgentError.kind`` is the engine's stable discriminator (loop-control.md section 6);``AgentError.message`` is diagnostic detail and is never shown as display copy.-Every kind maps to one ``vibe/i18n`` key under ``avibeAgent.error``.+Every kind maps to one ``vibe/i18n`` key under ``vibeyAgent.error``."""from __future__ import annotations@@ -47,8 +47,8 @@ _REASON_KEYS: dict[str, str] = {def error_key(kind: Optional[str], *, reason: Optional[str] = None) -> str:"""The i18n key for an error kind, falling back to the run reason, then to generic copy."""name = _KIND_KEYS.get(kind or "") or _REASON_KEYS.get(reason or "") or "generic"- return f"avibeAgent.error.{name}"+ return f"vibeyAgent.error.{name}"def error_text(kind: Optional[str], lang: str, *, reason: Optional[str] = None) -> str:- return i18n_t(error_key(kind, reason=reason), lang, backend=display_name_for_backend("avibe"))+ return i18n_t(error_key(kind, reason=reason), lang, backend=display_name_for_backend("vibey"))diff --git a/modules/agents/avibe/media.py b/modules/agents/vibey/media.pysimilarity index 98%rename from modules/agents/avibe/media.pyrename to modules/agents/vibey/media.pyindex b8eaa946b..96e489516 100644--- a/modules/agents/avibe/media.py+++ b/modules/agents/vibey/media.py@@ -1,4 +1,4 @@-"""Images in the Avibe Agent's context: immutable snapshots over ``media_objects``.+"""Images in Vibey's context: immutable snapshots over ``media_objects``.An ``ImageBlock`` names a ``media_objects`` token whose bytes never change for acommitted block (C-1, C-2 ``MediaLoader``). Every image the agent puts into itsdiff --git a/modules/agents/avibe/models.py b/modules/agents/vibey/models.pysimilarity index 95%rename from modules/agents/avibe/models.pyrename to modules/agents/vibey/models.pyindex 3c3a100be..2294533a1 100644--- a/modules/agents/avibe/models.py+++ b/modules/agents/vibey/models.py@@ -1,6 +1,6 @@-"""Model routing for the Avibe Agent over Model Hub hop resolution (C-2, C-6).+"""Model routing for Vibey over Model Hub hop resolution (C-2, C-6).-Model Hub answers "how should the ``avibe`` backend call model M now" with a+Model Hub answers "how should the ``vibey`` backend call model M now" with a``HopResolution`` (``ModelHubRuntimeRouter.resolve_hop``). ``selection_from_hop``turns it into the loop's ``ModelEndpoint`` and ``ModelCapabilities`` and keepsunknown capabilities ``None``; the loop applies the conservative defaults.@@ -46,8 +46,8 @@ def selection_from_hop(hop: Mapping[str, Any], *, gateway_base_url: Optional[strbuilt from; a ``google`` hop needs it, because its ``base_url`` is the``/v1beta`` Gemini surface and the agent speaks Chat to ``/v1``."""- if hop.get("backend") != "avibe":- raise HopResolutionError(f"hop resolved for backend {hop.get('backend')!r}, not avibe")+ if hop.get("backend") != "vibey":+ raise HopResolutionError(f"hop resolved for backend {hop.get('backend')!r}, not vibey")protocol = hop.get("protocol")if protocol not in PROTOCOLS:raise HopResolutionError(f"hop protocol {protocol!r} is not supported")@@ -132,7 +132,7 @@ class HubModelRouter:try:await close()except Exception:- logger.warning("Avibe Agent could not close its %s provider adapter", protocol, exc_info=True)+ logger.warning("Vibey could not close its %s provider adapter", protocol, exc_info=True)def registry_providers(*, media_loader: Any, client: Any = None) -> ProviderFactory:diff --git a/modules/agents/avibe/prompt.py b/modules/agents/vibey/prompt.pysimilarity index 99%rename from modules/agents/avibe/prompt.pyrename to modules/agents/vibey/prompt.pyindex f30731b45..6c8777180 100644--- a/modules/agents/avibe/prompt.py+++ b/modules/agents/vibey/prompt.py@@ -1,4 +1,4 @@-"""The Avibe Agent's system prompt and the environment block of each consumed input.+"""Vibey's system prompt and the environment block of each consumed input.The system prompt is stable so providers can cache it: Pi's coding-agent framingand tool snippets, then Avibe's injected sections. Facts that change (cwd, date,diff --git a/modules/agents/avibe/recovery.py b/modules/agents/vibey/recovery.pysimilarity index 86%rename from modules/agents/avibe/recovery.pyrename to modules/agents/vibey/recovery.pyindex eeca21c91..c7c7465d7 100644--- a/modules/agents/avibe/recovery.py+++ b/modules/agents/vibey/recovery.py@@ -1,8 +1,8 @@-"""The single owner of the Avibe Agent's settlement outside a Turn.+"""The single owner of Vibey's settlement outside a Turn.Settlement outside a Turn is T2 (open tool calls), T3 admission (accepted inputsno run consumed), and J5 (pruning settled jobs). The controller holds one-``AvibeRecovery`` and so at most one recovery task, whose passes run on the+``VibeyRecovery`` and so at most one recovery task, whose passes run on theadapter the controller registered at startup. Every pass re-derives itscandidates from the rows, so a retry picks up whatever the last pass leftunsettled.@@ -23,7 +23,7 @@ RETRY_DELAYS_S = (5.0, 30.0, 120.0)RETRY_PERIOD_S = 600.0-class AvibeRecovery:+class VibeyRecovery:def __init__(self, controller: Any) -> None:self._controller = controllerself._task: Optional[asyncio.Task] = None@@ -48,13 +48,13 @@ class AvibeRecovery:await self.stop()unsettled = await self._pass()if unsettled and not self.retrying:- self._task = asyncio.create_task(self._retry(), name="avibe-agent-recovery")+ self._task = asyncio.create_task(self._retry(), name="vibey-agent-recovery")return unsettleddef ensure(self) -> None:"""A Turn could not settle something (a returned input it failed to admit): retry it."""if not self.retrying:- self._task = asyncio.create_task(self._retry(), name="avibe-agent-recovery")+ self._task = asyncio.create_task(self._retry(), name="vibey-agent-recovery")async def stop(self) -> None:"""Stop retrying (service stop); the next start recovers again."""@@ -72,13 +72,13 @@ class AvibeRecovery:async with self._lock:unsettled = await self._pass()if not unsettled:- logger.info("Avibe Agent recovery settled every Session")+ logger.info("Vibey recovery settled every Session")return- logger.error("Avibe Agent recovery could not settle Sessions %s; retrying", ", ".join(unsettled))+ logger.error("Vibey recovery could not settle Sessions %s; retrying", ", ".join(unsettled))async def _pass(self) -> list[str]:try:- return await self._controller.agent_service.agents["avibe"].recover_runtime_state()+ return await self._controller.agent_service.agents["vibey"].recover_runtime_state()except Exception:- logger.exception("Avibe Agent recovery pass failed")+ logger.exception("Vibey recovery pass failed")return ["*"]diff --git a/modules/agents/avibe/store.py b/modules/agents/vibey/store.pysimilarity index 99%rename from modules/agents/avibe/store.pyrename to modules/agents/vibey/store.pyindex c9c749830..b0635a7ce 100644--- a/modules/agents/avibe/store.py+++ b/modules/agents/vibey/store.py@@ -27,7 +27,7 @@ from sqlalchemy.engine import Enginefrom core.agent_core.harness.projection import context_viewfrom core.agent_core.harness.store import ContextEntryfrom core.agent_core.messages import AssistantMessage, ToolResultMessage, UserMessage-from modules.agents.avibe.prompt import (+from modules.agents.vibey.prompt import (EnvironmentValue,displayed_environment,environment_delta,diff --git a/modules/agents/avibe/tools.py b/modules/agents/vibey/tools.pysimilarity index 98%rename from modules/agents/avibe/tools.pyrename to modules/agents/vibey/tools.pyindex 05b0369d4..72a04d606 100644--- a/modules/agents/avibe/tools.py+++ b/modules/agents/vibey/tools.py@@ -1,4 +1,4 @@-"""The Avibe Agent's tools: Pi's coding tools over a Watch-backed job host (C-7).+"""Vibey's tools: Pi's coding tools over a Watch-backed job host (C-7).``ToolSuite`` is the adapter's whole dependency on ``core.agent_core.tools``:the job host, the tools built over the loop's tracking wrapper (``Agent.jobs``,diff --git a/storage/agent_transcript.py b/storage/agent_transcript.pyindex 111594b7a..44d75980e 100644--- a/storage/agent_transcript.py+++ b/storage/agent_transcript.py@@ -93,8 +93,8 @@ CONTEXT_VISIBILITY = "context"AUDIT_VISIBILITY = "audit"AuditKind = Literal["attempt", "checkpoint_turn"]_AUDIT_EVENT_TYPE: dict[str, str] = {"attempt": "model_attempt", "checkpoint_turn": "context_checkpoint_turn"}-# Only the Avibe Agent writes context rows; the Session's routed backend may change mid-Turn.-CONTEXT_WRITER = "avibe"+# Only Vibey writes context rows; the Session's routed backend may change mid-Turn.+CONTEXT_WRITER = "vibey"PAYLOAD_VERSION = 1PayloadKind = Literal["compaction", "context_edit", "agent_state"]diff --git a/tests/e2e/test_model_hub_google.py b/tests/e2e/test_model_hub_google.pyindex 58a64e83b..ca0877c48 100644--- a/tests/e2e/test_model_hub_google.py+++ b/tests/e2e/test_model_hub_google.py@@ -20,7 +20,7 @@ from modules.agents.model_hub import ModelHubRuntimeRouterfrom tests.e2e.drivers.mock_llm_upstream import _buffered_response, _stream_framesfrom tests.e2e.test_model_hub_runtime import _isolated_engine_adapterfrom tests.scenario_harness.model_hub import MemoryModelHubStore, service_for-from tests.test_model_hub_avibe_consumer import _avibe_service+from tests.test_model_hub_vibey_consumer import _vibey_servicefrom tests.test_model_hub_google import GOOGLE_RESPONSE, _server, _ssefrom tests.test_model_hub_l3 import _source@@ -70,13 +70,13 @@ async def test_real_google_frontend_uses_pinned_engine_and_reports_serving_origisource.credential_ref = adapter.state_store.store_api_key("synthetic-google-integration", vendor="custom", protocol=protocol, base_url=source.base_url,)- config = _avibe_service(tmp_path, [source]).store.config+ config = _vibey_service(tmp_path, [source]).store.configservice = service_for(tmp_path, MemoryModelHubStore(config), adapter)await service.runtime_start()gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:real-google", turn_id="real-google")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:real-google", turn_id="real-google")# The upstream determines the primary frontend. Ask the same# admitted gateway for Google to exercise CPA's conversion.base = hop["base_url"].rsplit("/", 1)[0]diff --git a/tests/e2e/test_model_hub_google_chat.py b/tests/e2e/test_model_hub_google_chat.pyindex 561615d00..7aae9339b 100644--- a/tests/e2e/test_model_hub_google_chat.py+++ b/tests/e2e/test_model_hub_google_chat.py@@ -5,7 +5,7 @@ round trip or the exact finish/usage fields a Chat consumer must interpret.Only the Gemini upstream is a fixture; router, gateway, adapter and CPA are real.This is a characterization of CPA c404af96, including its lossy behavior, notan assertion that it is a lossless substitute for a native Google adapter.-It extends MH-AVIBE-001/002 with Google-primary/Chat-ingress evidence, without+It extends MH-VIBEY-001/002 with Google-primary/Chat-ingress evidence, withoutclaiming coverage of their CLI-overlay or cross-hop-failover cases."""@@ -26,7 +26,7 @@ from core.run_settlement import SETTLED_BY_TERMINAL_RESULTfrom modules.agents.model_hub import ModelHubRuntimeRouterfrom tests.e2e.test_model_hub_runtime import _isolated_engine_adapterfrom tests.scenario_harness.model_hub import MemoryModelHubStore, service_for-from tests.test_model_hub_avibe_consumer import _avibe_service+from tests.test_model_hub_vibey_consumer import _vibey_servicefrom tests.test_model_hub_google import _server, _ssefrom tests.test_model_hub_l3 import _source@@ -92,17 +92,17 @@ async def _chat_gateway(tmp_path, monkeypatch, upstream, *, model="gemini-3-pro-source.credential_ref = adapter.state_store.store_api_key("synthetic-google-chat-key", vendor="custom", protocol="google", base_url=root,)- config = _avibe_service(tmp_path, [source]).store.config+ config = _vibey_service(tmp_path, [source]).store.configservice = service_for(tmp_path, MemoryModelHubStore(config), adapter)await service.runtime_start()gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:hop = await router.resolve_hop(- "menu-alias", process_scope="avibe:chat-gemini", turn_id="chat-gemini",+ "menu-alias", process_scope="vibey:chat-gemini", turn_id="chat-gemini",)assert hop["protocol"] == "google"- assert hop["base_url"].endswith("/avibe/v1beta")+ assert hop["base_url"].endswith("/vibey/v1beta")# The frontend is a caller choice; do not append Chat's route# to the native /v1beta base returned for the Google primary.endpoint = hop["base_url"].rsplit("/", 1)[0] + "/v1/chat/completions"@@ -204,7 +204,7 @@ async def test_chat_google_tool_round_trip_loses_signature_but_explicit_carrier_):"""Replay the actual first response, not a fake that supplies CPA's missing fields.- The separate input-carrier control complements MH-AVIBE-005: it proves+ The separate input-carrier control complements MH-VIBEY-005: it proveswhether the Hub strips a signature when the frontend differs but theprovider/api/model origin is unchanged, without claiming a failover test."""diff --git a/tests/fixtures/model_hub/released_pre_avibe_consumer.json b/tests/fixtures/model_hub/released_pre_vibey_consumer.jsonsimilarity index 100%rename from tests/fixtures/model_hub/released_pre_avibe_consumer.jsonrename to tests/fixtures/model_hub/released_pre_vibey_consumer.jsondiff --git a/tests/scenarios/INDEX.yaml b/tests/scenarios/INDEX.yamlindex e5adbcbf8..c75c79d1e 100644--- a/tests/scenarios/INDEX.yaml+++ b/tests/scenarios/INDEX.yaml@@ -49,7 +49,7 @@ capabilities:unit_or_contract_tests:- tests/test_model_hub_api.py- tests/test_model_hub_admission.py- - tests/test_model_hub_avibe_consumer.py+ - tests/test_model_hub_vibey_consumer.py- tests/test_model_hub_config.py- tests/test_model_hub_legacy_opencode_migration.py- tests/test_model_hub_persisted_migration.pydiff --git a/tests/scenarios/model_hub/catalog.yaml b/tests/scenarios/model_hub/catalog.yamlindex eefef499d..06a77d840 100644--- a/tests/scenarios/model_hub/catalog.yaml+++ b/tests/scenarios/model_hub/catalog.yaml@@ -4,7 +4,7 @@ capability:name: Model Hub configured routes and turn outcomescanonical_tests:- tests/test_model_hub_api.py- - tests/test_model_hub_avibe_consumer.py+ - tests/test_model_hub_vibey_consumer.py- tests/test_model_hub_config.py- tests/test_model_hub_legacy_opencode_migration.py- tests/test_member_management_parity.py@@ -111,73 +111,73 @@ status_legend:expected_fail: falsepriority: falsescenarios:- - id: MH-AVIBE-001- name: Avibe resolves the primary native protocol and nullable alias capabilities without a CLI overlay+ - id: MH-VIBEY-001+ name: Vibey resolves the primary native protocol and nullable alias capabilities without a CLI overlaystatus: coveredkind: compatibilitylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_hop_resolution_uses_primary_protocol_and_alias_capabilities- - id: MH-AVIBE-002- name: Avibe receives the actual served hop before consuming a cross-protocol fallback response+ test: tests/test_model_hub_vibey_consumer.py::test_hop_resolution_uses_primary_protocol_and_alias_capabilities+ - id: MH-VIBEY-002+ name: Vibey receives the actual served hop before consuming a cross-protocol fallback responsestatus: coveredkind: recoverylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_failover_origin_is_available_before_body_and_matches_served_attempt+ test: tests/test_model_hub_vibey_consumer.py::test_failover_origin_is_available_before_body_and_matches_served_attemptrelated_tests:- - tests/test_model_hub_avibe_consumer.py::test_terminal_response_origin_follows_its_carrier- - tests/test_model_hub_avibe_consumer.py::test_origin_header_limit_is_checked_before_each_avibe_hop- - tests/test_model_hub_avibe_consumer.py::test_served_hop_transport_bound_does_not_restrict_native_clients- - tests/test_model_hub_avibe_consumer.py::test_slow_anthropic_resolution_waits_to_publish_origin_and_keeps_source_snapshot- - tests/test_model_hub_avibe_consumer.py::test_concurrent_responses_keep_their_own_origin- - id: MH-AVIBE-003- name: Released three-backend configs gain only an empty Avibe Hub row without changing existing routes+ - tests/test_model_hub_vibey_consumer.py::test_terminal_response_origin_follows_its_carrier+ - tests/test_model_hub_vibey_consumer.py::test_origin_header_limit_is_checked_before_each_vibey_hop+ - tests/test_model_hub_vibey_consumer.py::test_served_hop_transport_bound_does_not_restrict_native_clients+ - tests/test_model_hub_vibey_consumer.py::test_slow_anthropic_resolution_waits_to_publish_origin_and_keeps_source_snapshot+ - tests/test_model_hub_vibey_consumer.py::test_concurrent_responses_keep_their_own_origin+ - id: MH-VIBEY-003+ name: Released three-backend configs gain only an empty Vibey Hub row without changing existing routesstatus: coveredkind: compatibilitylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_released_config_adds_only_empty_avibe_supply- - id: MH-AVIBE-007- name: The Avibe Agent starts once with the user's Sources and built-in Agent models, seeded when its first Source exists+ test: tests/test_model_hub_vibey_consumer.py::test_released_config_adds_only_empty_vibey_supply+ - id: MH-VIBEY-007+ name: Vibey starts once with the user's Sources and built-in Agent models, seeded when its first Source existsstatus: coveredkind: compatibilitylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_avibe_agent_predating_its_supply_starts_with_the_users_providers_and_models+ test: tests/test_model_hub_vibey_consumer.py::test_vibey_agent_predating_its_supply_starts_with_the_users_providers_and_modelsrelated_tests:- - tests/test_model_hub_avibe_consumer.py::test_fresh_install_seeds_avibe_with_its_first_source- - tests/test_model_hub_native_takeover.py::test_takeover_seeds_a_pending_avibe_entry_from_its_whole_batch- - tests/test_avibe_backend_registration.py::test_avibe_agent_runs_its_catalogs_first_model_until_it_has_one- - tests/test_avibe_backend_registration.py::test_a_lost_avibe_model_hand_off_heals_on_the_next_start+ - tests/test_model_hub_vibey_consumer.py::test_fresh_install_seeds_vibey_with_its_first_source+ - tests/test_model_hub_native_takeover.py::test_takeover_seeds_a_pending_vibey_entry_from_its_whole_batch+ - tests/test_vibey_backend_registration.py::test_vibey_agent_runs_its_catalogs_first_model_until_it_has_one+ - tests/test_vibey_backend_registration.py::test_a_lost_vibey_model_hand_off_heals_on_the_next_start- tests/test_controller_im_ready.py::test_runtime_services_start_when_post_update_notification_fails- - id: MH-AVIBE-004- name: Avibe refuses native CLI sources and Direct mode+ - id: MH-VIBEY-004+ name: Vibey refuses native CLI sources and Direct modestatus: coveredkind: validationlayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_native_cli_and_direct_are_not_avibe_channels+ test: tests/test_model_hub_vibey_consumer.py::test_native_cli_and_direct_are_not_vibey_channelsrelated_tests:- - tests/test_model_hub_avibe_consumer.py::test_avibe_candidate_capabilities_survive_catalog_admission_without_guesses- - tests/test_model_hub_avibe_contract_matrix.py::test_avibe_matrix_covers_every_declared_backend_shape- - tests/test_model_hub_avibe_contract_matrix.py::test_avibe_channel_matrix_rejects_impossible_shapes_without_changing_native- - tests/test_model_hub_avibe_contract_matrix.py::test_avibe_runtime_matrix_refuses_native_admission- - tests/test_model_hub_api.py::test_runtime_stop_protects_configured_avibe_models+ - tests/test_model_hub_vibey_consumer.py::test_vibey_candidate_capabilities_survive_catalog_admission_without_guesses+ - tests/test_model_hub_vibey_contract_matrix.py::test_vibey_matrix_covers_every_declared_backend_shape+ - tests/test_model_hub_vibey_contract_matrix.py::test_vibey_channel_matrix_rejects_impossible_shapes_without_changing_native+ - tests/test_model_hub_vibey_contract_matrix.py::test_vibey_runtime_matrix_refuses_native_admission+ - tests/test_model_hub_api.py::test_runtime_stop_protects_configured_vibey_models- tests/test_model_hub_api.py::test_runtime_stop_returns_explicit_not_started_state- - id: MH-AVIBE-005- name: Avibe failover strips opaque history only for a different or unverified origin+ - id: MH-VIBEY-005+ name: Vibey failover strips opaque history only for a different or unverified originstatus: coveredkind: compatibilitylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_failover_strips_opaque_history_only_when_origin_changes+ test: tests/test_model_hub_vibey_consumer.py::test_failover_strips_opaque_history_only_when_origin_changesrelated_tests:- - tests/test_model_hub_avibe_consumer.py::test_opaque_history_uses_launch_snapshot_without_requiring_turn_attribution- - tests/test_model_hub_avibe_consumer.py::test_opaque_history_origin_survives_recovery_walks- - tests/test_model_hub_avibe_consumer.py::test_native_history_is_not_scrubbed_by_avibe_origin_policy- - id: MH-AVIBE-006- name: Sequential Avibe retries replace a completed route without losing turn provenance+ - tests/test_model_hub_vibey_consumer.py::test_opaque_history_uses_launch_snapshot_without_requiring_turn_attribution+ - tests/test_model_hub_vibey_consumer.py::test_opaque_history_origin_survives_recovery_walks+ - tests/test_model_hub_vibey_consumer.py::test_native_history_is_not_scrubbed_by_vibey_origin_policy+ - id: MH-VIBEY-006+ name: Sequential Vibey retries replace a completed route without losing turn provenancestatus: coveredkind: recoverylayer: contract- test: tests/test_model_hub_avibe_consumer.py::test_sequential_avibe_retry_replaces_route_and_retains_served_provenance+ test: tests/test_model_hub_vibey_consumer.py::test_sequential_vibey_retry_replaces_route_and_retains_served_provenancerelated_tests:- - tests/test_model_hub_avibe_consumer.py::test_avibe_route_replacement_refuses_overlap_without_poisoning_current_request+ - tests/test_model_hub_vibey_consumer.py::test_vibey_route_replacement_refuses_overlap_without_poisoning_current_request- id: MH-CODEX-ROUTING-001name: Shared Codex authentication stays stable while concurrent aliases route and settle independentlystatus: covereddiff --git a/tests/test_agent_backend_catalog.py b/tests/test_agent_backend_catalog.pyindex ef93320f5..62672dfbd 100644--- a/tests/test_agent_backend_catalog.py+++ b/tests/test_agent_backend_catalog.py@@ -7,7 +7,6 @@ from modules.agents.catalog import (NATIVE_CLI_BACKENDS,DEFAULT_AGENT_BACKEND,agent_backend_catalog_payload,- builtin_agent_name_for_backend,default_cli_for_backend,default_enabled_for_backend,display_name_for_backend,@@ -23,7 +22,7 @@ from vibe import apidef test_agent_catalog_is_backend_management_source_of_truth() -> None:# The built-in backend leads every backend list; the default backend is unchanged.- assert AGENT_BACKENDS == ("avibe", "opencode", "claude", "codex")+ assert AGENT_BACKENDS == ("vibey", "opencode", "claude", "codex")assert DEFAULT_AGENT_BACKEND == "opencode"for backend in NATIVE_CLI_BACKENDS:@@ -34,23 +33,19 @@ def test_agent_catalog_is_backend_management_source_of_truth() -> None:assert default_cli_for_backend(backend)assert latest_probe_for_backend(backend) is not Noneassert not is_builtin_backend(backend)- # A native backend's built-in Agent keeps the backend's own name.- assert builtin_agent_name_for_backend(backend) == backendassert display_name_for_backend("opencode") == "OpenCode"assert display_name_for_backend("claude") == "Claude Code"assert default_enabled_for_backend("codex") is False- assert is_agent_backend("avibe")- # Users meet the built-in backend as Vibey; its id stays ``avibe``.- assert display_name_for_backend("avibe") == "Vibey"- assert builtin_agent_name_for_backend("avibe") == "vibey"- assert is_builtin_backend("avibe")- assert default_enabled_for_backend("avibe")- assert default_cli_for_backend("avibe") is None- assert latest_probe_for_backend("avibe") is None- assert not supports_runtime_refresh("avibe")- assert not supports_web_oauth("avibe")- assert not supports_install("avibe")+ assert is_agent_backend("vibey")+ assert display_name_for_backend("vibey") == "Vibey"+ assert is_builtin_backend("vibey")+ assert default_enabled_for_backend("vibey")+ assert default_cli_for_backend("vibey") is None+ assert latest_probe_for_backend("vibey") is None+ assert not supports_runtime_refresh("vibey")+ assert not supports_web_oauth("vibey")+ assert not supports_install("vibey")assert not is_agent_backend("unknown")assert not supports_runtime_refresh("unknown")assert not supports_web_oauth("unknown")@@ -62,11 +57,34 @@ def test_agent_backend_catalog_payload_exposes_public_metadata() -> None:assert [item["id"] for item in payload] == list(AGENT_BACKENDS)assert [item["builtin"] for item in payload] == [True, False, False, False]- assert [item["builtin_agent_name"] for item in payload] == ["vibey", "opencode", "claude", "codex"]assert payload[1]["settings_route"] == "/settings/backends/opencode"assert payload[1]["capabilities"]["supports_runtime_refresh"] is True+def test_avibe_names_the_workbench_platform_and_no_agent_backend() -> None:+ """``avibe`` is the product and the Workbench platform id; the built-in backend is ``vibey``.++ One token meaning both a platform and a backend let one Session row carry platform=avibe and+ backend=avibe, and made the built-in the only backend whose Agent was not named after its id.+ """+ from config.platform_registry import WORKBENCH_PLATFORM_ID, supported_platform_set++ def strings(value):+ if isinstance(value, dict):+ for item in value.values():+ yield from strings(item)+ elif isinstance(value, (list, tuple)):+ for item in value:+ yield from strings(item)+ elif isinstance(value, str):+ yield value++ assert WORKBENCH_PLATFORM_ID == "avibe" and "avibe" in supported_platform_set()+ assert not is_agent_backend("avibe")+ assert not any("avibe" in value for value in strings(agent_backend_catalog_payload()))+ assert [item["id"] for item in agent_backend_catalog_payload() if item["builtin"]] == ["vibey"]++def test_api_exposes_agent_backend_catalog() -> None:payload = api.get_agent_backend_catalog()@@ -76,15 +94,15 @@ def test_api_exposes_agent_backend_catalog() -> None:@pytest.mark.parametrize("lang", ["en", "zh"])def test_copy_about_the_built_in_names_it_from_the_catalog(lang) -> None:"""Renaming the built-in is one catalog value: every message that names it takes that value."""- from modules.agents.avibe.errors import error_text+ from modules.agents.vibey.errors import error_textfrom vibe.i18n import t- name = display_name_for_backend("avibe")+ name = display_name_for_backend("vibey")for kind in ("aborted", "UnsupportedModelRoute", "ProviderProtocolViolation", None):text = error_text(kind, lang)assert name in text and "{backend}" not in text and "Avibe Agent" not in textfor key in ("errors.modelHubDisabled", "errors.modelGatewayOff", "errors.builtinBackendConfig"):- text = t(key, lang, backend=name, section="agents.avibe")+ text = t(key, lang, backend=name, section="agents.vibey")assert name in text and "{backend}" not in textalways_on = t("error.agentLifecycle.agent_always_enabled.message", lang, agent="vibey")assert "Avibe Agent" not in always_on and "`vibey`" in always_ondiff --git a/tests/test_agent_service.py b/tests/test_agent_service.pyindex 6fd4858a1..0d979962a 100644--- a/tests/test_agent_service.py+++ b/tests/test_agent_service.py@@ -369,9 +369,9 @@ def test_model_selection_is_required_before_any_backend_dispatch(backend, model,@pytest.mark.parametrize(("backend", "hub_switch", "gateway_enabled", "refusal"),[- ("avibe", "1", False, "The model gateway is off, so Vibey has no model to run on"),- ("avibe", "1", True, "Select a model"),- ("avibe", "0", True, "Model Hub is disabled on this instance, so Vibey has no model to run on"),+ ("vibey", "1", False, "The model gateway is off, so Vibey has no model to run on"),+ ("vibey", "1", True, "Select a model"),+ ("vibey", "0", True, "Model Hub is disabled on this instance, so Vibey has no model to run on"),# A native backend runs direct without the Hub: choosing a model is still the fix.("codex", "0", True, "Select a model"),],diff --git a/tests/test_agent_transcript.py b/tests/test_agent_transcript.pyindex 1b76f434e..5eb7ace25 100644--- a/tests/test_agent_transcript.py+++ b/tests/test_agent_transcript.py@@ -57,7 +57,7 @@ def _session(conn, session_id: str, scope_id: str, metadata: dict | None = None)conn.exec_driver_sql("insert into agent_sessions (id, scope_id, agent_name, agent_backend, agent_variant, session_anchor, ""workdir, native_session_id, status, visibility, pinned, agent_status, metadata_json, created_at, "- "updated_at, last_active_at) values (?, ?, 'avibe', 'avibe', 'avibe', ?, '/tmp', ?, 'active', "+ "updated_at, last_active_at) values (?, ?, 'vibey', 'vibey', 'vibey', ?, '/tmp', ?, 'active', ""'foreground', 0, 'idle', ?, ?, ?, ?)",(session_id, scope_id, session_id, session_id, json.dumps(metadata or {}), NOW, NOW, NOW),)@@ -107,7 +107,7 @@ def _accepted_turn(conn, session_id: str, scope_id: str, body: str, turn_id: strnow=NOW,)claimed = message_deliveries.claim_start_batch(- conn, turn_id=turn_id, session_id=session_id, backend="avibe", deliveries=[delivery], dispatch_text=body+ conn, turn_id=turn_id, session_id=session_id, backend="vibey", deliveries=[delivery], dispatch_text=body)assert message_deliveries.bind_native_start(conn,@@ -288,7 +288,7 @@ async def test_an_audit_row_is_kept_outside_the_context(engine, kind, event_typeentry = await store.consume_input("ses_main", consumed, _user("go"))payload = {"version": 1, "usage": {"input_tokens": 9, "output_tokens": 0, "cache_read_tokens": 0, "cache_write_tokens": 0}, "error": "rate_limit: busy"}- row_id = await store.append_audit("ses_main", kind, payload, agent_name="avibe")+ row_id = await store.append_audit("ses_main", kind, payload, agent_name="vibey")assert list(await store.load("ses_main")) == [entry]with engine.connect() as conn:diff --git a/tests/test_backend_connection.py b/tests/test_backend_connection.pyindex c594c9511..de2323d23 100644--- a/tests/test_backend_connection.py+++ b/tests/test_backend_connection.py@@ -433,7 +433,7 @@ def _store_hub_credential(source):return store-def test_avibe_connection_uses_hub_supply_without_any_native_probe(hub_connection, monkeypatch):+def test_vibey_connection_uses_hub_supply_without_any_native_probe(hub_connection, monkeypatch):"""The new backend has no CLI; the existing native cases cannot protect that boundary."""from core import backend_restart@@ -442,12 +442,12 @@ def test_avibe_connection_uses_hub_supply_without_any_native_probe(hub_connectiomonkeypatch.setattr(api, "resolve_cli_path", forbidden)monkeypatch.setattr(backend_restart, "pending_native_backends", forbidden)- empty = asyncio.run(api.get_backend_connection("avibe"))+ empty = asyncio.run(api.get_backend_connection("vibey"))assert empty["installed"] and empty["enabled"]assert empty["auth"] == "none" and not empty["ready"]- _place_hub_source(hub_connection, "avibe", _hub_source())- response = ui_server.app.test_client().get("/api/backend/avibe/connection")+ _place_hub_source(hub_connection, "vibey", _hub_source())+ response = ui_server.app.test_client().get("/api/backend/vibey/connection")assert response.status_code == 200state = response.get_json()assert state["ready"] and state["entry_eligible"]@@ -456,13 +456,13 @@ def test_avibe_connection_uses_hub_supply_without_any_native_probe(hub_connectio# With the Model Hub disabled on the instance, or its gateway turned off, the built-in backend# stays enabled with nothing to run on, whatever source is saved.monkeypatch.setenv("VIBE_MODEL_HUB_ENABLED", "0")- disabled = asyncio.run(api.get_backend_connection("avibe"))+ disabled = asyncio.run(api.get_backend_connection("vibey"))assert disabled["enabled"] and disabled["auth"] == "none"assert not disabled["ready"] and not disabled["entry_eligible"]monkeypatch.setenv("VIBE_MODEL_HUB_ENABLED", "1")hub_connection.config.model_hub.enabled = Falsehub_connection.config.save()- stopped = asyncio.run(api.get_backend_connection("avibe"))+ stopped = asyncio.run(api.get_backend_connection("vibey"))assert stopped["enabled"] and stopped["auth"] == "none"assert not stopped["ready"] and not stopped["entry_eligible"]diff --git a/tests/test_backend_failure_retry.py b/tests/test_backend_failure_retry.pyindex 38c8a33f8..047365ee5 100644--- a/tests/test_backend_failure_retry.py+++ b/tests/test_backend_failure_retry.py@@ -183,7 +183,7 @@ def test_restart_notice_names_the_watch_running_the_command_and_offers_no_retry(from vibe.ui_server import appsession_id, notice = _restart_failure_notice(- tmp_path, backend="avibe", before_restart=_hand_over_the_open_command+ tmp_path, backend="vibey", before_restart=_hand_over_the_open_command)assert "watch_job_1" in notice["text"] and "重新发送" not in notice["text"]diff --git a/tests/test_backend_registration_contract.py b/tests/test_backend_registration_contract.pyindex 36fa01a9a..2139f1498 100644--- a/tests/test_backend_registration_contract.py+++ b/tests/test_backend_registration_contract.py@@ -53,7 +53,7 @@ PYTHON_DECLARATIONS = {("core/handlers/model_hub/service.py", "Tuple", frozenset({"claude", "codex"})): (3, "native_subset", "Backends with bundled model lists."),("core/services/session_fork.py", "Set", frozenset({"codex", "opencode"})): (1, "native_subset", "Native forks that can trim a running turn."),("core/services/skills.py", "Dict", NATIVE): (1, "native", "askill native CLI ids."),- ("core/session_turns.py", "Set", frozenset({"claude", "codex", "avibe"})): (1, "agent_subset", "Runtimes whose accepted turns cannot survive a service restart (process-bound, including Avibe's in-process loop)."),+ ("core/session_turns.py", "Set", frozenset({"claude", "codex", "vibey"})): (1, "agent_subset", "Runtimes whose accepted turns cannot survive a service restart (process-bound, including Avibe's in-process loop)."),("core/vibe_agents.py", "Dict", NATIVE): (1, "native", "Native recommendations; Avibe uses its configured Hub catalog."),("modules/im/telegram.py", "Set", frozenset({"claude", "codex"})): (1, "native_subset", "Native subagent routing controls."),("scripts/incus_tenant.py", "Dict", NATIVE): (1, "native", "Bootstrap config with backend-specific fields."),diff --git a/tests/test_controller_im_ready.py b/tests/test_controller_im_ready.pyindex 6120c8208..eff5e5ea1 100644--- a/tests/test_controller_im_ready.py+++ b/tests/test_controller_im_ready.py@@ -35,16 +35,16 @@ def test_runtime_services_start_when_post_update_notification_fails() -> None:controller.runtime_work_supervisor = SimpleNamespace(activate=AsyncMock())seed_started = []- async def seed_avibe_supply():+ async def seed_vibey_supply():# A first start may wait on models.dev; startup must not wait with it.seed_started.append(True)await asyncio.Event().wait()controller.model_hub_service = SimpleNamespace(recover_runtime_intent=AsyncMock(),- seed_avibe_supply=seed_avibe_supply,+ seed_vibey_supply=seed_vibey_supply,)- controller.avibe_model_supply_task = None+ controller.vibey_model_supply_task = Nonecontroller._get_idle_cleanup_timeouts = Mock(return_value=(0, 0))controller.cleanup_task = Nonecontroller.trace_retention_task = None@@ -226,15 +226,15 @@ def test_runtime_owner_recovery_isolates_optional_model_hub_failure(assert "Model Hub runtime recovery failed" in caplog.text[email protected]("avibe_recovery_fails", [False, True])-def test_runtime_owner_recovery_settles_avibe_tool_calls_before_turns(avibe_recovery_fails: bool) -> None:[email protected]("vibey_recovery_fails", [False, True])+def test_runtime_owner_recovery_settles_vibey_tool_calls_before_turns(vibey_recovery_fails: bool) -> None:# recovery.md: T2 before T4. A Turn the restart interrupted is reported only after its# running command became a Watch, so the notice can say so instead of asking for a resend.order: list[str] = []- async def avibe_pass() -> list[str]:- order.append("avibe T2")- if avibe_recovery_fails:+ async def vibey_pass() -> list[str]:+ order.append("vibey T2")+ if vibey_recovery_fails:raise OSError("jobs directory unreadable")return []@@ -243,7 +243,7 @@ def test_runtime_owner_recovery_settles_avibe_tool_calls_before_turns(avibe_recoreturn []controller = Controller.__new__(Controller)- controller.avibe_recovery = SimpleNamespace(start=AsyncMock(side_effect=avibe_pass))+ controller.vibey_recovery = SimpleNamespace(start=AsyncMock(side_effect=vibey_pass))controller.session_turns = SimpleNamespace(recover_durable_delivery_state=AsyncMock(side_effect=turns_pass),recover_persisted_agent_run_queue=AsyncMock(return_value=[]),@@ -255,7 +255,7 @@ def test_runtime_owner_recovery_settles_avibe_tool_calls_before_turns(avibe_recoasyncio.run(controller._recover_runtime_owners())# Best effort, as before: the Avibe pass retries on its own and never blocks the delivery owners.- assert order == ["avibe T2", "Turn T4"]+ assert order == ["vibey T2", "Turn T4"]assert controller._delivery_recovery_complete.is_set()diff --git a/tests/test_im_backend_registration.py b/tests/test_im_backend_registration.pyindex e4673e4fd..ded8d2c4c 100644--- a/tests/test_im_backend_registration.py+++ b/tests/test_im_backend_registration.py@@ -30,10 +30,10 @@ def _options(payload):@pytest.mark.asyncio@pytest.mark.parametrize("platform", ["slack", "discord", "feishu"])-async def test_agent_picker_includes_avibe_but_native_resume_excludes_it(platform):+async def test_agent_picker_includes_vibey_but_native_resume_excludes_it(platform):routing = dict(- channel_id="fixture-channel", registered_backends=["codex", "avibe"],- current_backend="avibe", current_routing=None,+ channel_id="fixture-channel", registered_backends=["codex", "vibey"],+ current_backend="vibey", current_routing=None,opencode_agents=[], opencode_models={}, opencode_default_config={},claude_agents=[], claude_models=[], codex_agents=[], codex_models=[],)@@ -57,10 +57,10 @@ async def test_agent_picker_includes_avibe_but_native_resume_excludes_it(platforbot._send_card_to_channel = AsyncMock()await bot.open_routing_modal(trigger_id=None, **routing)options = list(_options(bot._send_card_to_channel.await_args.args[1]))- avibe = next(option for option in options if option["value"] == "avibe")- assert "Vibey" in json.dumps(avibe)+ vibey = next(option for option in options if option["value"] == "vibey")+ assert "Vibey" in json.dumps(vibey)- bot._controller = SimpleNamespace(agent_service=SimpleNamespace(agents={"codex": object(), "avibe": object()}))+ bot._controller = SimpleNamespace(agent_service=SimpleNamespace(agents={"codex": object(), "vibey": object()}))await bot.open_resume_session_modal(trigger_id=None, sessions=[], channel_id="fixture-channel", thread_id=None, host_message_ts=None,)@@ -73,4 +73,4 @@ async def test_agent_picker_includes_avibe_but_native_resume_excludes_it(platforelse:values = [option["value"] for option in _options(bot._send_card_to_channel.await_args.args[1])]assert "codex" in values- assert "avibe" not in values+ assert "vibey" not in valuesdiff --git a/tests/test_message_handler_typing.py b/tests/test_message_handler_typing.pyindex 07aa7df16..2eafc2a14 100644--- a/tests/test_message_handler_typing.py+++ b/tests/test_message_handler_typing.py@@ -706,23 +706,23 @@ class MessageHandlerTypingTests(unittest.IsolatedAsyncioTestCase):{"id": "agent-default", "name": "default", "backend": "codex"},)- async def test_avibe_message_prefix_never_reads_native_codex_subagents(self):+ async def test_vibey_message_prefix_never_reads_native_codex_subagents(self):"""C-8: the native prefix dispatcher must not treat a new backend as Codex."""controller = _StubController(platform="slack", ack_mode="reaction", typing_result=True)agent = controller.resolve_vibe_agent_for_context(None)- agent.backend = "avibe"+ agent.backend = "vibey"agent.model = "team-model"- controller.resolve_agent_for_context = lambda _context: "avibe"+ controller.resolve_agent_for_context = lambda _context: "vibey"controller.resolve_vibe_agent_for_context = lambda *_args, **_kwargs: agenthandler = MessageHandler(controller)handler.set_session_handler(_StubSessionHandler())- context = MessageContext(user_id="U1", channel_id="C1", message_id="avibe-prefix", platform="slack")+ context = MessageContext(user_id="U1", channel_id="C1", message_id="vibey-prefix", platform="slack")with patch("modules.agents.subagent_router.load_codex_subagent") as load_native:await handler.handle_user_message(context, "reviewer: inspect the change")load_native.assert_not_called()backend, request = controller.agent_service.requests[0]- self.assertEqual(backend, "avibe")+ self.assertEqual(backend, "vibey")self.assertEqual(request.vibe_agent_model, "team-model")self.assertEqual(request.message, "reviewer: inspect the change")self.assertIsNone(request.subagent_name)diff --git a/tests/test_model_hub_api.py b/tests/test_model_hub_api.pyindex cc2ba9d60..ad8203b20 100644--- a/tests/test_model_hub_api.py+++ b/tests/test_model_hub_api.py@@ -1045,19 +1045,19 @@ def test_runtime_stop_requires_native_backends_to_be_direct(tmp_path):assert adapter.stop_runtime_calls == 0-def test_runtime_stop_protects_configured_avibe_models(tmp_path):+def test_runtime_stop_protects_configured_vibey_models(tmp_path):# The new empty Hub row must not strand old installations in the runtime,# but adding a consumer model makes its engine dependency real.service, store, adapter = _service(tmp_path)for backend in ("claude", "codex", "opencode"):store.config.agents[backend].mode = "direct"- store.config.agents["avibe"].models = [ModelHubBackendModelConfig(id="agent-model")]+ store.config.agents["vibey"].models = [ModelHubBackendModelConfig(id="agent-model")]with pytest.raises(ModelHubError) as exc_info:asyncio.run(service.runtime_stop())assert exc_info.value.code == "runtime_in_use"- assert exc_info.value.data == {"backends": ["avibe"]}+ assert exc_info.value.data == {"backends": ["vibey"]}assert adapter.stop_runtime_calls == 0@@ -4485,7 +4485,7 @@ def test_agents_endpoint_projects_cli_presence_from_runtime(tmp_path):"claude": True,"codex": True,"opencode": False,- "avibe": False,+ "vibey": False,}@@ -4875,7 +4875,7 @@ def test_agents_endpoint_projects_each_enabled_named_agent_live(tmp_path):"claude": [("pm", "claude-sonnet-4-6"), ("reviewer", "claude-opus-4-6")],"codex": [("codex", "gpt-5.3-codex")],"opencode": [],- "avibe": [],+ "vibey": [],}[backend]store.config.agents["claude"].routes["claude-sonnet-4-6"] = ModelHubRouteConfig(hops=[diff --git a/tests/test_model_hub_config.py b/tests/test_model_hub_config.pyindex 6a1b88094..ae4c5222a 100644--- a/tests/test_model_hub_config.py+++ b/tests/test_model_hub_config.py@@ -2746,7 +2746,7 @@ def test_legacy_configs_stay_direct_while_fresh_configs_default_to_gateway():legacy = V2Config.from_payload(payload)assert {legacy.model_hub.agents[backend].mode for backend in ("claude", "codex", "opencode")} == {"direct"}- assert legacy.model_hub.agents["avibe"].mode == "hub"+ assert legacy.model_hub.agents["vibey"].mode == "hub"assert {agent.mode for agent in default_config().model_hub.agents.values()} == {"hub"}assert default_config().model_hub.enabled is Trueassert default_config().model_hub.runtime_default_applied is True@@ -3167,7 +3167,7 @@ def test_invalid_empty_route_key_keeps_v2_recovery_fence(tmp_path, backend, bad_assert "model_hub" in loaded.recovered_sectionsassert loaded.model_hub.sources == []assert all(loaded.model_hub.agents[backend].mode == "direct" for backend in ("claude", "codex", "opencode"))- assert loaded.model_hub.agents["avibe"].mode == "hub"+ assert loaded.model_hub.agents["vibey"].mode == "hub"assert path.read_bytes() == before# #2079: the fence is on the recovered section, not on every save.loaded.save(config_path=path)diff --git a/tests/test_model_hub_google.py b/tests/test_model_hub_google.pyindex f0643db9f..dd35b65ee 100644--- a/tests/test_model_hub_google.py+++ b/tests/test_model_hub_google.py@@ -33,7 +33,7 @@ from core.handlers.model_hub.turn_gateway import ModelHubTurnGatewayfrom core.handlers.model_hub.request import ModelHubRequestfrom core.handlers.model_hub.service import ModelHubErrorfrom modules.agents.model_hub import ModelHubRuntimeRouter-from tests.test_model_hub_avibe_consumer import _avibe_service, _validate+from tests.test_model_hub_vibey_consumer import _vibey_service, _validatefrom tests.test_model_hub_l3 import InvokeHandle, LiveInvokeHandle, _outcome, _sourcefrom vibe.model_hub_runtime.adapter import CLIProxyEngineAdapterfrom vibe.model_hub_runtime.client import EngineClient, EngineClientError, EngineConnection, probe_models@@ -308,7 +308,7 @@ async def test_google_router_gateway_failover_preserves_visible_history_and_origfallback.protocol = "google"fallback.models[0].id = primary.models[0].idraw = _sse(GOOGLE_RESPONSE) if stream else json.dumps(GOOGLE_RESPONSE).encode()- service = _avibe_service(tmp_path, [primary, fallback], handles=[+ service = _vibey_service(tmp_path, [primary, fallback], handles=[InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error")),LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=fallback.id), (raw,)),])@@ -325,9 +325,9 @@ async def test_google_router_gateway_failover_preserves_visible_history_and_origplain["contents"][0]["parts"][0] = {"text": "Visible thought"}plain["contents"][0]["parts"][1].pop("thoughtSignature")try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:google", turn_id="turn-google")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:google", turn_id="turn-google")_validate("hop-resolution.schema.json", hop)- assert hop["base_url"].endswith("/avibe/v1beta")+ assert hop["base_url"].endswith("/vibey/v1beta")action = "streamGenerateContent?alt=sse" if stream else "generateContent"async with aiohttp.ClientSession() as client:async with client.post(@@ -440,11 +440,11 @@ async def test_google_discovery_does_not_follow_redirects_with_credentials():])async def test_google_local_errors_are_native_and_never_admit_a_hop(tmp_path, suffix, payload, token_valid, status):"""Native endpoint/query/body validation shares all pre-admission no-origin rules."""- service = _avibe_service(tmp_path, [_source("src_google001", "Google", vendor="custom", protocol="google")], handles=[])+ service = _vibey_service(tmp_path, [_source("src_google001", "Google", vendor="custom", protocol="google")], handles=[])gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:google-errors", turn_id="turn-invalid")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:google-errors", turn_id="turn-invalid")async with aiohttp.ClientSession() as client:async with client.post(f'{hop["base_url"]}/models/{hop["runtime_model"]}{suffix}', json=payload,@@ -463,7 +463,7 @@ async def test_google_local_errors_are_native_and_never_admit_a_hop(tmp_path, suasync def test_google_saved_source_probe_speaks_the_declared_protocol(tmp_path):"""Add-time discovery is not inference; an explicit model test is and needs Gemini's body."""- service = _avibe_service(tmp_path, [_source("src_google001", "Google", vendor="custom", protocol="google")], handles=[+ service = _vibey_service(tmp_path, [_source("src_google001", "Google", vendor="custom", protocol="google")], handles=[InvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id="src_google001")),])result = await service.probe_source("src_google001", {"model": "shared-model"})@@ -492,7 +492,7 @@ async def test_google_skips_unsupported_hops_before_admission(blocked = _source("src_blocked01", "Blocked", vendor="custom", protocol=protocol, model_id=model_id)good = _source("src_google001", "Google", vendor="custom", protocol="google", model_id="gemini-fixture")raw = _sse(GOOGLE_RESPONSE) if stream else json.dumps(GOOGLE_RESPONSE).encode()- service = _avibe_service(tmp_path, [blocked, good] if working_fallback else [blocked], handles=[+ service = _vibey_service(tmp_path, [blocked, good] if working_fallback else [blocked], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=good.id), (raw,)),])gateway = ModelHubTurnGateway(service)@@ -536,12 +536,12 @@ async def test_google_skips_unsupported_hops_before_admission(@pytest.mark.parametrize(("backend", "protocol", "model_id"), [("codex", "google", "shared-model"),("codex", "google", "fixture:free"),- ("avibe", "openai_chat", "fixture:free"),+ ("vibey", "openai_chat", "fixture:free"),])async def test_other_frontends_and_native_paths_keep_their_admission_policy(tmp_path, backend, protocol, model_id):"""The Google limitations must not silently broaden to native/other frontends."""source = _source("src_blocked01", "Native", protocol="openai_responses", model_id=model_id)- service = _avibe_service(tmp_path, [source], handles=[+ service = _vibey_service(tmp_path, [source], handles=[InvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=source.id)),])await service.resolve(@@ -555,20 +555,20 @@ async def test_google_unsupported_model_skip_keeps_next_model_on_the_same_source"""The colon restriction belongs to the exact hop, not the Source's healthy inventory."""source = _source("src_google001", "Google", vendor="custom", protocol="google", model_id="fixture:free")source.models.append(ModelHubModelConfig(id="safe-model", provenance="discovered"))- service = _avibe_service(tmp_path, [source], handles=[+ service = _vibey_service(tmp_path, [source], handles=[InvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=source.id)),])service.revocations.add("src_retired01", "cred_retired01")- service.store.config.agents["avibe"].routes["menu-alias"] = ModelHubRouteConfig((+ service.store.config.agents["vibey"].routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(source.id, "fixture:free"),ModelHubRouteHopConfig(source.id, "safe-model"),))result = await service.resolve(- backend="avibe", model_id="menu-alias",+ backend="vibey", model_id="menu-alias",request=ModelHubRequest({"contents": []}, protocol="google"), stream=False,)assert result.model_id == "safe-model"- assert service.adapter.invocations == [(source.id, "safe-model", "avibe")]+ assert service.adapter.invocations == [(source.id, "safe-model", "vibey")]assert service.revocations.list() == []@@ -577,7 +577,7 @@ async def test_google_unsupported_model_skip_keeps_next_model_on_the_same_sourceasync def test_google_unsupported_model_refusal_precedes_engine_work(tmp_path, caller, pending_revocation):"""Local skips must not start an engine or alter custody before refusing."""source = _source("src_google001", "Google", vendor="custom", protocol="google", model_id="fixture:free")- service = _avibe_service(tmp_path, [source])+ service = _vibey_service(tmp_path, [source])if pending_revocation:service.revocations.add("src_retired01", "cred_retired01")pending = service.revocations.list()@@ -587,10 +587,10 @@ async def test_google_unsupported_model_refusal_precedes_engine_work(tmp_path, cservice._ensure_engine_synced = AsyncMock(wraps=service._ensure_engine_synced)with pytest.raises(ModelHubError) as refused:if caller == "agent_probe":- await service.probe_agent("avibe", "menu-alias")+ await service.probe_agent("vibey", "menu-alias")else:await service.resolve(- backend="avibe", model_id="menu-alias",+ backend="vibey", model_id="menu-alias",request=ModelHubRequest({"contents": []}, protocol="google"), stream=False,)assert refused.value.code == "google_model_path_unsupported"diff --git a/tests/test_model_hub_native_takeover.py b/tests/test_model_hub_native_takeover.pyindex 716aa3b21..548355d54 100644--- a/tests/test_model_hub_native_takeover.py+++ b/tests/test_model_hub_native_takeover.py@@ -93,8 +93,8 @@ def test_oauth_is_not_exposed_until_native_cleanup_and_mode_commit(monkeypatch,@pytest.mark.parametrize("batch", ["two new Sources", "a reused native Source", "a reused native Source after the seed"])-def test_takeover_seeds_a_pending_avibe_entry_from_its_whole_batch(monkeypatch, tmp_path, batch):- """MH-AVIBE-007: a takeover seeds Avibe once its Sources are final.+def test_takeover_seeds_a_pending_vibey_entry_from_its_whole_batch(monkeypatch, tmp_path, batch):+ """MH-VIBEY-007: a takeover seeds Avibe once its Sources are final.A batch importing several Sources seeds from all of them, so a startingmodel only a later Source serves still arrives; a native Source converted@@ -124,9 +124,9 @@ def test_takeover_seeds_a_pending_avibe_entry_from_its_whole_batch(monkeypatch,store.config.agents["claude"].sources.order = [native.id]selections = [("claude", "claude-opus-5-5")]if batch == "a reused native Source after the seed":- store.config.avibe_supply_pending = False+ store.config.vibey_supply_pending = Falseelse:- assert store.config.avibe_supply_pending+ assert store.config.vibey_supply_pendingservice.builtin_agent_models_override = lambda: selectionsannounced = []@@ -146,14 +146,14 @@ def test_takeover_seeds_a_pending_avibe_entry_from_its_whole_batch(monkeypatch,source.id for model in starting for source in store.config.sourcesif source.supply_channel == "hub" and any(item.id == model for item in source.models)]- avibe = store.config.agents["avibe"]- assert not store.config.avibe_supply_pending+ vibey = store.config.agents["vibey"]+ assert not store.config.vibey_supply_pendingif batch == "a reused native Source after the seed":# Placed like a new Source; the user's catalog is not seeded again.- assert (avibe.sources.order, avibe.models, announced) == (serving, [], [])+ assert (vibey.sources.order, vibey.models, announced) == (serving, [], [])return- assert (avibe.sources.order, [model.id for model in avibe.models]) == (serving, starting)- assert announced == ["avibe"]+ assert (vibey.sources.order, [model.id for model in vibey.models]) == (serving, starting)+ assert announced == ["vibey"]def test_failure_after_possible_rotation_retains_current_owner_and_retries(monkeypatch, tmp_path):diff --git a/tests/test_model_hub_resolution.py b/tests/test_model_hub_resolution.pyindex c50824429..e475e6fb7 100644--- a/tests/test_model_hub_resolution.py+++ b/tests/test_model_hub_resolution.py@@ -456,7 +456,7 @@ def test_hub_subscription_is_cross_backend_eligible_and_origin_unrestricted():config.agents["codex"].sources.order = [source.id]assert all(ModelHubConfig.source_eligible_for_backend(source, backend) for backend in AGENT_BACKENDS)- assert allowed_origins(source) == ("avibe", "opencode", "claude", "codex")+ assert allowed_origins(source) == ("vibey", "opencode", "claude", "codex")resolution = resolve_model_hub_turn(config, "codex", "shared-model")assert resolution.source is sourcediff --git a/tests/test_model_hub_runtime_default_upgrade.py b/tests/test_model_hub_runtime_default_upgrade.pyindex 92add2901..b84f83e84 100644--- a/tests/test_model_hub_runtime_default_upgrade.py+++ b/tests/test_model_hub_runtime_default_upgrade.py@@ -23,7 +23,7 @@ def legacy_payload(tmp_path, *, enabled=False):payload["model_hub"].pop("runtime_default_applied")payload["model_hub"]["enabled"] = enabled# A released config predates the Avibe entry (a fresh one leaves it unwritten too).- payload["model_hub"]["agents"].pop("avibe", None)+ payload["model_hub"]["agents"].pop("vibey", None)for backend in ("claude", "codex", "opencode"):payload["model_hub"]["agents"][backend]["mode"] = "direct"# Synthetic state proves the upgrade does not clear credentials or change@@ -48,7 +48,7 @@ def read_config(path):def assert_no_native_change(original, upgraded):assert upgraded["agents"] == original["agents"]- # The Avibe row stays absent until startup seeds it (MH-AVIBE-007).+ # The Avibe row stays absent until startup seeds it (MH-VIBEY-007).assert upgraded["model_hub"]["agents"] == original["model_hub"]["agents"]assert upgraded["model_hub"]["sources"] == original["model_hub"]["sources"]assert {key: value for key, value in upgraded.items() if key != "model_hub"} == {@@ -137,7 +137,7 @@ def test_legacy_omissions_never_consent_to_native_takeover(tmp_path, shape):assert loaded.model_hub.runtime_default_applied is Trueexpected = {"claude": "hub" if shape == "missing-backend" else "direct",- "codex": "direct", "opencode": "direct", "avibe": "hub",+ "codex": "direct", "opencode": "direct", "vibey": "hub",}assert {name: agent.mode for name, agent in loaded.model_hub.agents.items()} == expectedassert read_config(path)["agents"] == original["agents"]@@ -158,7 +158,7 @@ def test_runtime_stop_after_upgrade_survives_subsequent_loads(tmp_path):assert loaded.model_hub.enabled is Falseassert loaded.model_hub.runtime_default_applied is Trueassert all(loaded.model_hub.agents[backend].mode == "direct" for backend in ("claude", "codex", "opencode"))- assert loaded.model_hub.agents["avibe"].mode == "hub"+ assert loaded.model_hub.agents["vibey"].mode == "hub"assert path.read_bytes() == persistedassert len(list(path.parent.glob("config.json.bak-*"))) == 1@@ -233,7 +233,7 @@ def test_invalid_marker_is_strict_and_disk_recovery_does_not_activate(tmp_path,assert loaded.model_hub.enabled is Falseassert all(loaded.model_hub.agents[backend].mode == "direct" for backend in ("claude", "codex", "opencode"))- assert loaded.model_hub.agents["avibe"].mode == "hub"+ assert loaded.model_hub.agents["vibey"].mode == "hub"assert "model_hub" in loaded.recovered_sectionsassert loaded.load_warningsassert path.read_bytes() == original@@ -254,7 +254,7 @@ def test_malformed_optional_section_is_not_upgraded_or_rewritten(tmp_path, bad_hloaded = V2Config.load(config_path=path)assert loaded.model_hub.enabled is Falseassert all(loaded.model_hub.agents[backend].mode == "direct" for backend in ("claude", "codex", "opencode"))- assert loaded.model_hub.agents["avibe"].mode == "hub"+ assert loaded.model_hub.agents["vibey"].mode == "hub"assert loaded.load_warnings and not loaded.whole_config_recoveryassert path.read_bytes() == original@@ -267,7 +267,7 @@ def test_whole_config_recovery_does_not_apply_fresh_install_defaults(tmp_path, rassert loaded.whole_config_recoveryassert loaded.model_hub.enabled is Falseassert all(loaded.model_hub.agents[backend].mode == "direct" for backend in ("claude", "codex", "opencode"))- assert loaded.model_hub.agents["avibe"].mode == "hub"+ assert loaded.model_hub.agents["vibey"].mode == "hub"assert loaded.load_warningsassert path.read_bytes() == rawdiff --git a/tests/test_model_hub_source_probe.py b/tests/test_model_hub_source_probe.pyindex cd5d0c1e3..57792dc14 100644--- a/tests/test_model_hub_source_probe.py+++ b/tests/test_model_hub_source_probe.py@@ -51,7 +51,7 @@ def test_probe_invokes_selected_source_even_without_agent_routes_and_isolates_faasync def scenario():result = (await service.create_source(_draft(protocol=protocol)))["source"]for agent in store.config.agents.values():- if agent.backend != "avibe":+ if agent.backend != "vibey":agent.mode = "direct"agent.sources.order = []source_id = result["id"]diff --git a/tests/test_model_hub_avibe_consumer.py b/tests/test_model_hub_vibey_consumer.pysimilarity index 90%rename from tests/test_model_hub_avibe_consumer.pyrename to tests/test_model_hub_vibey_consumer.pyindex eb01b23d6..9938a23f8 100644--- a/tests/test_model_hub_avibe_consumer.py+++ b/tests/test_model_hub_vibey_consumer.py@@ -111,17 +111,17 @@ def _assert_mandatory_fields(schema_name, payload):assert missing.value.message == f"'{field}' is a required property"-def _avibe_service(tmp_path, sources, *, handles=()):+def _vibey_service(tmp_path, sources, *, handles=()):service = _service(tmp_path, sources=sources, live_handles=list(handles))_canonicalize_fixed_test_routes(service)- agent = service.store.config.agents["avibe"]+ agent = service.store.config.agents["vibey"]agent.models = [ModelHubBackendModelConfig(id="menu-alias")]agent.sources.order = [source.id for source in sources if source.supply_channel == "hub"]agent.routes["menu-alias"] = ModelHubRouteConfig(tuple(ModelHubRouteHopConfig(source.id, source.models[0].id)for source in sources if source.supply_channel == "hub"))- service.store.requested_models["avibe"] = "menu-alias"+ service.store.requested_models["vibey"] = "menu-alias"return service@@ -202,7 +202,7 @@ def _signed_history(protocol):@pytest.mark.parametrize("protocol", PROTOCOL_ENDPOINTS)@pytest.mark.parametrize("change", ["same_origin", "provider", "api", "model"])async def test_failover_strips_opaque_history_only_when_origin_changes(tmp_path, protocol, change):- """MH-AVIBE-005: the engine must never receive primary-signed history at another origin.+ """MH-VIBEY-005: the engine must never receive primary-signed history at another origin.Origin-report tests alone do not inspect the outgoing history at admission.Source identity alone is not origin identity; preserve ordinary tool data.@@ -215,7 +215,7 @@ async def test_failover_strips_opaque_history_only_when_origin_changes(tmp_path,protocol=fallback_protocol if change == "api" else protocol,model_id="another-model" if change == "model" else "shared-model",)- service = _avibe_service(tmp_path, [primary, fallback], handles=[+ service = _vibey_service(tmp_path, [primary, fallback], handles=[InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error")),LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=fallback.id), (b"{}",)),])@@ -224,7 +224,7 @@ async def test_failover_strips_opaque_history_only_when_origin_changes(tmp_path,gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:opaque", turn_id="turn-opaque")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:opaque", turn_id="turn-opaque")common = {"model": hop["runtime_model"], "stream": False, "temperature": 0.25}async with aiohttp.ClientSession() as client:async with client.post(@@ -257,13 +257,13 @@ async def test_failover_strips_opaque_history_only_when_origin_changes(tmp_path,@pytest.mark.parametrize("turn_id", ["turn-snapshot", None])@pytest.mark.parametrize("origin_state", ["unchanged", "changed", "unverified"])async def test_opaque_history_uses_launch_snapshot_without_requiring_turn_attribution(tmp_path, turn_id, origin_state):- """MH-AVIBE-005: config reload and untracked calls cannot invent primary provenance.+ """MH-VIBEY-005: config reload and untracked calls cannot invent primary provenance.A fallback-only case cannot catch snapshot recomputation at HTTP arrival orloss of the route credential when no dispatched turn is being tracked."""primary = _source("src_primary01", "Primary", vendor="anthropic", protocol="anthropic")- service = _avibe_service(tmp_path, [primary], handles=[+ service = _vibey_service(tmp_path, [primary], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS), (b"{}",)),])signed, plain = _signed_history("anthropic")@@ -271,10 +271,10 @@ async def test_opaque_history_uses_launch_snapshot_without_requiring_turn_attribrouter = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:if origin_state == "unverified":- base, token = await gateway.endpoint("avibe", process_scope="avibe:unverified")+ base, token = await gateway.endpoint("vibey", process_scope="vibey:unverified")base_url, model = f"{base}/v1", "menu-alias"else:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:snapshot", turn_id=turn_id)+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:snapshot", turn_id=turn_id)base_url, model, token = hop["base_url"], hop["runtime_model"], hop["token"]if origin_state == "changed":service.store.config.sources[0].vendor = "custom"@@ -296,14 +296,14 @@ async def test_opaque_history_uses_launch_snapshot_without_requiring_turn_attrib@pytest.mark.asyncio@pytest.mark.parametrize("recovered_hop", ["primary", "fallback"])async def test_opaque_history_origin_survives_recovery_walks(tmp_path, recovered_hop):- """MH-AVIBE-005: retries keep the launch origin and never mutate signed input.+ """MH-VIBEY-005: retries keep the launch origin and never mutate signed input.Single-walk failover misses both a fresh resolver walk trusting its new firstcandidate and a destructive scrub leaking back into same-origin recovery."""primary = _source("src_primary01", "Primary", vendor="anthropic", protocol="anthropic")fallback = _source("src_fallback01", "Fallback", vendor="custom", protocol="anthropic")- service = _avibe_service(tmp_path, [primary, fallback], handles=[+ service = _vibey_service(tmp_path, [primary, fallback], handles=[InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=503, source_id=primary.id)),InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=503, source_id=fallback.id)),LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS), (b"{}",)),@@ -317,7 +317,7 @@ async def test_opaque_history_origin_survives_recovery_walks(tmp_path, recoveredwaits.append(delay)clock["now"] += timedelta(seconds=delay)if recovered_hop == "fallback":- service.store.config.agents["avibe"].routes["menu-alias"] = ModelHubRouteConfig((+ service.store.config.agents["vibey"].routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(fallback.id, "shared-model"),))@@ -326,7 +326,7 @@ async def test_opaque_history_origin_survives_recovery_walks(tmp_path, recoveredgateway = ModelHubTurnGateway(service, now=lambda: clock["now"])router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:recovery", turn_id="turn-recovery")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:recovery", turn_id="turn-recovery")async with aiohttp.ClientSession() as client:async with client.post(f'{hop["base_url"]}/messages',@@ -349,7 +349,7 @@ async def test_opaque_history_origin_survives_recovery_walks(tmp_path, recovered@pytest.mark.asyncio@pytest.mark.parametrize("backend", ["claude", "codex", "opencode"])-async def test_native_history_is_not_scrubbed_by_avibe_origin_policy(tmp_path, backend):+async def test_native_history_is_not_scrubbed_by_vibey_origin_policy(tmp_path, backend):"""Native callers have no primary-origin metadata; their existing policy stays intact."""protocol = {"claude": "anthropic", "codex": "openai_responses", "opencode": "openai_chat"}[backend]primary = _source("src_primary01", "Primary", protocol=protocol)@@ -371,8 +371,8 @@ async def test_native_history_is_not_scrubbed_by_avibe_origin_policy(tmp_path, b@pytest.mark.asyncio@pytest.mark.parametrize("metadata", ["unknown", "source", "catalog"])-async def test_avibe_candidate_capabilities_survive_catalog_admission_without_guesses(tmp_path, metadata):- """MH-AVIBE-001: candidate -> persisted catalog -> launch preserves authority.+async def test_vibey_candidate_capabilities_survive_catalog_admission_without_guesses(tmp_path, metadata):+ """MH-VIBEY-001: candidate -> persisted catalog -> launch preserves authority.Hand-populated launch fixtures never exercise the candidate model-familydefault, which must not invent a reasoning ladder for a relay model.@@ -380,22 +380,22 @@ async def test_avibe_candidate_capabilities_survive_catalog_admission_without_gusource = _source("src_primary01", "Primary", protocol="openai_chat", model_id="claude-unknown")if metadata == "source":source.models[0].reasoning_efforts = ["high"]- service = _avibe_service(tmp_path, [source])- service.store.config.agents["avibe"].models = []- service.store.config.agents["avibe"].routes = {}+ service = _vibey_service(tmp_path, [source])+ service.store.config.agents["vibey"].models = []+ service.store.config.agents["vibey"].routes = {}service.models_dev_catalog = lambda: ({"fixture": {"models": {"claude-unknown": {"reasoning": True, "reasoning_options": [{"type": "effort", "values": ["medium"]}],}}}}if metadata == "catalog" else {})- candidate, = service.agent_model_candidates("avibe")["providers"]+ candidate, = service.agent_model_candidates("vibey")["providers"]desired = {key: value for key, value in candidate.items() if key != "suppliers"}- await service.set_agent_models("avibe", [], [desired])+ await service.set_agent_models("vibey", [], [desired])gateway = ModelHubTurnGateway(service)try:hop = await ModelHubRuntimeRouter(service=service, turn_gateway=gateway).resolve_hop(- "claude-unknown", process_scope="avibe:candidate", turn_id="turn-candidate",+ "claude-unknown", process_scope="vibey:candidate", turn_id="turn-candidate",)assert hop["protocol"] == "openai_chat"assert hop["capabilities"]["reasoning_efforts"] == {@@ -409,8 +409,8 @@ async def test_avibe_candidate_capabilities_survive_catalog_admission_without_gu@pytest.mark.asyncio@pytest.mark.parametrize("late_request", ["malformed", "valid"])-async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenance(tmp_path, late_request):- """MH-AVIBE-006: a retryable partial response can resolve a new hop in one turn.+async def test_sequential_vibey_retry_replaces_route_and_retains_served_provenance(tmp_path, late_request):+ """MH-VIBEY-006: a retryable partial response can resolve a new hop in one turn.One-request failover never re-prepares a route, so it misses the nativeone-launch assumption marking an otherwise successful Avibe turn ambiguous.@@ -419,7 +419,7 @@ async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenanfallback = _source("src_fallback01", "Fallback", model_id="next-model")late = _source("src_late00001", "Late continuation", model_id="late-model")partial = b'event: content_block_delta\ndata: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"partial"}}\n\n'- service = _avibe_service(tmp_path, [primary, fallback, late], handles=[+ service = _vibey_service(tmp_path, [primary, fallback, late], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error",source_id=primary.id, stream_started=True,@@ -431,7 +431,7 @@ async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenanrouter = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)turn_id = "turn-sequential"try:- initial = await router.resolve_hop("menu-alias", process_scope="avibe:retry", turn_id=turn_id)+ initial = await router.resolve_hop("menu-alias", process_scope="vibey:retry", turn_id=turn_id)async with aiohttp.ClientSession() as client:async with client.post(f'{initial["base_url"]}/messages',@@ -440,7 +440,7 @@ async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenan) as response:assert response.status == 200assert b"partial" in await response.read()- retry = await router.resolve_hop("menu-alias", process_scope="avibe:retry", turn_id=turn_id)+ retry = await router.resolve_hop("menu-alias", process_scope="vibey:retry", turn_id=turn_id)assert retry["source_id"] == fallback.idasync with client.post(f'{retry["base_url"]}/responses',@@ -452,7 +452,7 @@ async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenanorigin = json.loads(response.headers[SERVED_HOP_HEADER])# A late old credential must not arm/poison the retry's attribution,# even if the request is invalid before the model is parsed.- service.store.config.agents["avibe"].routes["menu-alias"] = ModelHubRouteConfig((+ service.store.config.agents["vibey"].routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(late.id, "late-model"),))async with client.post(@@ -481,11 +481,11 @@ async def test_sequential_avibe_retry_replaces_route_and_retains_served_provenan@pytest.mark.asyncio-async def test_avibe_route_replacement_refuses_overlap_without_poisoning_current_request(tmp_path):- """MH-AVIBE-006: a new launch cannot take an in-flight request's turn identity."""+async def test_vibey_route_replacement_refuses_overlap_without_poisoning_current_request(tmp_path):+ """MH-VIBEY-006: a new launch cannot take an in-flight request's turn identity."""primary = _source("src_primary01", "Primary", vendor="anthropic", protocol="anthropic")fallback = _source("src_fallback01", "Fallback", protocol="anthropic", model_id="next-model")- service = _avibe_service(tmp_path, [primary, fallback], handles=[+ service = _vibey_service(tmp_path, [primary, fallback], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=primary.id), (b"{}",)),])entered, release = asyncio.Event(), asyncio.Event()@@ -502,7 +502,7 @@ async def test_avibe_route_replacement_refuses_overlap_without_poisoning_currentrouter = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)turn_id = "turn-overlap"try:- first = await router.resolve_hop("menu-alias", process_scope="avibe:overlap", turn_id=turn_id)+ first = await router.resolve_hop("menu-alias", process_scope="vibey:overlap", turn_id=turn_id)async with aiohttp.ClientSession() as client:pending = asyncio.create_task(client.post(f'{first["base_url"]}/messages',@@ -511,11 +511,11 @@ async def test_avibe_route_replacement_refuses_overlap_without_poisoning_current))try:await asyncio.wait_for(entered.wait(), 2)- service.store.config.agents["avibe"].routes["menu-alias"] = ModelHubRouteConfig((+ service.store.config.agents["vibey"].routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(fallback.id, "next-model"),))with pytest.raises(ModelHubError) as conflict:- await router.resolve_hop("menu-alias", process_scope="avibe:overlap", turn_id=turn_id)+ await router.resolve_hop("menu-alias", process_scope="vibey:overlap", turn_id=turn_id)assert conflict.value.status == 409finally:release.set()@@ -533,13 +533,13 @@ async def test_avibe_route_replacement_refuses_overlap_without_poisoning_currentawait gateway.close()-def test_released_config_adds_only_empty_avibe_supply():- """MH-AVIBE-003: preserve shipped native rows and add an empty Hub consumer."""- released = json.loads((FIXTURES / "released_pre_avibe_consumer.json").read_text())+def test_released_config_adds_only_empty_vibey_supply():+ """MH-VIBEY-003: preserve shipped native rows and add an empty Hub consumer."""+ released = json.loads((FIXTURES / "released_pre_vibey_consumer.json").read_text())before = copy.deepcopy(released)config = ModelHubConfig.from_payload(released)assert released == before- assert set(config.agents) == {"claude", "codex", "opencode", "avibe"}+ assert set(config.agents) == {"claude", "codex", "opencode", "vibey"}for backend in ("claude", "codex", "opencode"):agent = config.agents[backend]original = before["agents"][backend]@@ -558,8 +558,8 @@ def test_released_config_adds_only_empty_avibe_supply():assert config.agents["codex"].models[0].max_output_tokens == 4096assert config.agents["codex"].models[0].supports_tools is Falseassert config.agents["opencode"].menu.checked == []- avibe = config.agents["avibe"]- assert (avibe.mode, avibe.menu_kind, avibe.models, avibe.sources.order, avibe.routes) == (+ vibey = config.agents["vibey"]+ assert (vibey.mode, vibey.menu_kind, vibey.models, vibey.sources.order, vibey.routes) == ("hub", "fixed", [], [], {},)assert config.enabled is before["enabled"]@@ -638,10 +638,10 @@ def _seed_service(tmp_path, payload, selections):# provider model.([], []),])-async def test_avibe_agent_predating_its_supply_starts_with_the_users_providers_and_models(+async def test_vibey_agent_predating_its_supply_starts_with_the_users_providers_and_models(tmp_path, selections, seeded,):- """MH-AVIBE-007: one seed from the Sources and Agent models the user already has.+ """MH-VIBEY-007: one seed from the Sources and Agent models the user already has.A config written before the Avibe Agent existed has Sources that were neverplaced for it, so its picker offered no provider model at all.@@ -659,7 +659,7 @@ async def test_avibe_agent_predating_its_supply_starts_with_the_users_providers_# An unrelated write ahead of the seed (a startup reconcile, a settings# save) must not record the empty placeholder as the user's entry.store.save(store.load())- assert "avibe" not in store.payload["agents"]+ assert "vibey" not in store.payload["agents"]async def engine_not_started(_bindings):# Startup seeds before the engine is up; the seed must not depend on it.@@ -668,27 +668,27 @@ async def test_avibe_agent_predating_its_supply_starts_with_the_users_providers_service.adapter.sync_sources = engine_not_startedothers = {backend: store.payload["agents"][backend] for backend in agents}- assert await service.seed_avibe_supply() == seeded- avibe = store.payload["agents"]["avibe"]+ assert await service.seed_vibey_supply() == seeded+ vibey = store.payload["agents"]["vibey"]# Every Source Avibe may use joins, subscriptions ahead of keys, whether or# not a starting model matches: like OpenCode, it reaches every vendor.- assert avibe["sources"]["order"] == [SEED_SUBSCRIPTION.id, *SEED_KEYS]- assert [model["id"] for model in avibe["models"]] == seeded+ assert vibey["sources"]["order"] == [SEED_SUBSCRIPTION.id, *SEED_KEYS]+ assert [model["id"] for model in vibey["models"]] == seededassert {backend: store.payload["agents"][backend] for backend in agents} == othersif "claude-opus-5-5" in seeded:- row = next(model for model in avibe["models"] if model["id"] == "claude-opus-5-5")+ row = next(model for model in vibey["models"] if model["id"] == "claude-opus-5-5")assert (row["origin"], row["display_name"], row["context_window"], row["max_output_tokens"]) == ("provider", "Claude Opus 5.5", 1_000_000, 128_000,)- candidates = service.agent_model_candidates("avibe")+ candidates = service.agent_model_candidates("vibey")listed = {model.id for source in (SEED_ANTHROPIC, SEED_RESPONSES, SEED_CHAT, SEED_SUBSCRIPTION) for model in source.models}assert {candidate["id"] for candidate in candidates["providers"]} == listed - set(seeded)assert [candidate["id"] for candidate in candidates["in_list"]] == seeded# The persisted entry is the user's: a Source they removed stays removed.- avibe["sources"]["order"].remove(SEED_CHAT.id)+ vibey["sources"]["order"].remove(SEED_CHAT.id)kept = copy.deepcopy(store.payload)- assert await service.seed_avibe_supply() == []+ assert await service.seed_vibey_supply() == []assert store.payload == kept@@ -702,42 +702,42 @@ async def test_avibe_agent_predating_its_supply_starts_with_the_users_providers_# catalog still reaches the picker.(SEED_SUBSCRIPTION, [("codex", "gpt-6-astra")], []),])-async def test_fresh_install_seeds_avibe_with_its_first_source(tmp_path, first, selections, seeded):- """MH-AVIBE-007: on a fresh install the first eligible Source seeds Avibe at once.+async def test_fresh_install_seeds_vibey_with_its_first_source(tmp_path, first, selections, seeded):+ """MH-VIBEY-007: on a fresh install the first eligible Source seeds Avibe at once.A seed with no Source to place is not a seed: counted as done, it wouldleave every later Source without starting models, and skipping the pendingentry at placement would leave the first Source out until a restart."""service, store, announced = _seed_service(tmp_path, ModelHubConfig().to_payload(), selections)- assert "avibe" not in store.payload["agents"]+ assert "vibey" not in store.payload["agents"]- assert await service.seed_avibe_supply() == []+ assert await service.seed_vibey_supply() == []native = copy.deepcopy(SEED_NATIVE)await service._commit_new_source_locked(native)- assert "avibe" not in store.payload["agents"]+ assert "vibey" not in store.payload["agents"]assert announced == []await service._commit_new_source_locked(copy.deepcopy(first))- avibe = store.payload["agents"]["avibe"]- assert avibe["sources"]["order"] == [first.id]- assert [model["id"] for model in avibe["models"]] == seeded- assert announced == ["avibe"]- assert {candidate["id"] for candidate in service.agent_model_candidates("avibe")["providers"]} == (+ vibey = store.payload["agents"]["vibey"]+ assert vibey["sources"]["order"] == [first.id]+ assert [model["id"] for model in vibey["models"]] == seeded+ assert announced == ["vibey"]+ assert {candidate["id"] for candidate in service.agent_model_candidates("vibey")["providers"]} == ({model.id for model in first.models} - set(seeded))# Seeded once: a later Source is placed like any other, and nothing re-seeds.await service._commit_new_source_locked(copy.deepcopy(SEED_CHAT))- avibe = store.payload["agents"]["avibe"]- assert avibe["sources"]["order"] == [first.id, SEED_CHAT.id]- assert [model["id"] for model in avibe["models"]] == seeded- assert announced == ["avibe"]+ vibey = store.payload["agents"]["vibey"]+ assert vibey["sources"]["order"] == [first.id, SEED_CHAT.id]+ assert [model["id"] for model in vibey["models"]] == seeded+ assert announced == ["vibey"]@pytest.mark.asyncioasync def test_the_first_source_seed_fetches_a_models_dev_copy_when_none_is_cached(tmp_path, monkeypatch):- """MH-AVIBE-007: seeded rows keep the metadata they are written with.+ """MH-VIBEY-007: seeded rows keep the metadata they are written with.On a fresh install the first Source can arrive before any models.dev copyis cached, so the seed fetches one first rather than writing rows without@@ -755,19 +755,19 @@ async def test_the_first_source_seed_fetches_a_models_dev_copy_when_none_is_cachmonkeypatch.setattr("vibe.models_dev_catalog.load_models_dev_catalog", fetch_first_copy)await service._commit_new_source_locked(copy.deepcopy(SEED_ANTHROPIC))- [row] = store.payload["agents"]["avibe"]["models"]+ [row] = store.payload["agents"]["vibey"]["models"]assert (row["id"], row["context_window"], row["max_output_tokens"]) == ("claude-opus-5-5", 1_000_000, 128_000)-def test_native_cli_and_direct_are_not_avibe_channels(tmp_path):- """MH-AVIBE-004: neither invalid persisted state nor routing can select a CLI."""+def test_native_cli_and_direct_are_not_vibey_channels(tmp_path):+ """MH-VIBEY-004: neither invalid persisted state nor routing can select a CLI."""native = _source("src_native001", "Native", channel="native_cli", vendor="anthropic", protocol="anthropic")- service = _avibe_service(tmp_path, [native])+ service = _vibey_service(tmp_path, [native])config = service.store.load()- assert not ModelHubConfig.source_eligible_for_backend(native, "avibe")- agent = config.agents["avibe"]+ assert not ModelHubConfig.source_eligible_for_backend(native, "vibey")+ agent = config.agents["vibey"]agent.routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(native.id, "shared-model"),))- chain = service.agent_chain("avibe", "menu-alias")+ chain = service.agent_chain("vibey", "menu-alias")assert chain["current"] is Noneassert chain["supply_state"] == "interrupted"with pytest.raises(ValueError, match="ineligible"):@@ -777,7 +777,7 @@ def test_native_cli_and_direct_are_not_avibe_channels(tmp_path):with pytest.raises(ValueError, match="must be hub"):ModelHubConfig.from_payload(config.to_payload())assert bind_persisted_launch(SimpleNamespace(), {- "backend": "avibe", "channel": "native_cli", "source_id": native.id, "target_model": "shared-model",+ "backend": "vibey", "channel": "native_cli", "source_id": native.id, "target_model": "shared-model",}) is None@@ -785,11 +785,11 @@ def test_native_cli_and_direct_are_not_avibe_channels(tmp_path):@pytest.mark.parametrize("protocol", PROTOCOL_ENDPOINTS)@pytest.mark.parametrize("known", [False, True])async def test_hop_resolution_uses_primary_protocol_and_alias_capabilities(tmp_path, protocol, known):- """MH-AVIBE-001: the launch boundary owns protocol, identity and planning metadata."""+ """MH-VIBEY-001: the launch boundary owns protocol, identity and planning metadata."""source = _source("src_primary01", "Primary", protocol=protocol, model_id="upstream-model")- service = _avibe_service(tmp_path, [source])+ service = _vibey_service(tmp_path, [source])if known:- service.store.config.agents["avibe"].models[0] = ModelHubBackendModelConfig(+ service.store.config.agents["vibey"].models[0] = ModelHubBackendModelConfig(id="menu-alias", context_window=128000, max_output_tokens=4096,input_modalities=["text", "image"], supports_tools=True, supports_reasoning=False,reasoning_efforts=["high"],@@ -797,11 +797,11 @@ async def test_hop_resolution_uses_primary_protocol_and_alias_capabilities(tmp_pgateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:test", turn_id="turn-hop")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:test", turn_id="turn-hop")_validate("hop-resolution.schema.json", hop)assert hop["protocol"] == protocolassert hop["provider"] == "openai"- assert hop["base_url"].endswith("/avibe/v1")+ assert hop["base_url"].endswith("/vibey/v1")assert hop["runtime_model"] == "upstream-model"assert hop["source_id"] == source.idassert hop["capabilities"] == {@@ -814,18 +814,18 @@ async def test_hop_resolution_uses_primary_protocol_and_alias_capabilities(tmp_p"reasoning_efforts": [],}_assert_mandatory_fields("hop-resolution.schema.json", hop)- launch = await router.resolve("avibe", "menu-alias", process_scope="avibe:test", turn_id="turn-hop")+ launch = await router.resolve("vibey", "menu-alias", process_scope="vibey:test", turn_id="turn-hop")assert hop["token"] not in repr(launch)assert build_claude_hub_env({"PATH": "/fixture"}, launch) == {"PATH": "/fixture"}assert build_codex_hub_launch(["fixture"], {}, launch) == (["fixture"], None)assert claude_settings_for_launch("{}", launch) == "{}"assert service.list_agents()[-1]["cli_present"] is Falsewith pytest.raises(ModelHubError):- await service.set_agent_mode("avibe", "direct")+ await service.set_agent_mode("vibey", "direct")with pytest.raises(ModelHubError):- await ModelHubRuntimeRouter(service=service).resolve("avibe", "menu-alias")+ await ModelHubRuntimeRouter(service=service).resolve("vibey", "menu-alias")with pytest.raises(ModelHubError):- await resolve_model_hub_launch(SimpleNamespace(), "avibe", "menu-alias")+ await resolve_model_hub_launch(SimpleNamespace(), "vibey", "menu-alias")finally:await gateway.close()@@ -834,7 +834,7 @@ async def test_hop_resolution_uses_primary_protocol_and_alias_capabilities(tmp_p@pytest.mark.parametrize("protocol", PROTOCOL_ENDPOINTS)@pytest.mark.parametrize("delivery", ["buffered", "stream", "settled"])async def test_failover_origin_is_available_before_body_and_matches_served_attempt(tmp_path, protocol, delivery):- """MH-AVIBE-002: HTTP headers identify the same fallback attempt that is persisted."""+ """MH-VIBEY-002: HTTP headers identify the same fallback attempt that is persisted."""stream = delivery == "stream"fallback_protocol = "openai_responses" if protocol != "openai_responses" else "anthropic"first = _source("src_primary01", "Primary", vendor="custom", protocol=protocol)@@ -843,14 +843,14 @@ async def test_failover_origin_is_available_before_body_and_matches_served_attem)answer = b"{}" if delivery == "settled" else _body(protocol, stream)success = _outcome(RawOutcomeKind.SUCCESS, source_id=second.id, stream_started=stream)- service = _avibe_service(tmp_path, [first, second], handles=[+ service = _vibey_service(tmp_path, [first, second], handles=[InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error", source_id=first.id)),InvokeHandle(success) if delivery == "settled" else LiveInvokeHandle(success, (answer,)),])gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:test", turn_id="turn-fallback")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:test", turn_id="turn-fallback")async with aiohttp.ClientSession() as client:async with client.post(f'{hop["base_url"]}/{PROTOCOL_ENDPOINTS[protocol]}',@@ -899,7 +899,7 @@ async def test_failover_origin_is_available_before_body_and_matches_served_attem@pytest.mark.asyncio[email protected]("backend", ["avibe", "claude", "codex", "opencode"])[email protected]("backend", ["vibey", "claude", "codex", "opencode"])@pytest.mark.parametrize("fallback", [False, True])@pytest.mark.parametrize("failure,carrier,body_available,cause,expected_status,has_producer",@@ -917,7 +917,7 @@ async def test_terminal_response_origin_follows_its_carrier(tmp_path, monkeypatch, backend, fallback, failure, carrier, body_available, cause,expected_status, has_producer,):- """MH-AVIBE-002: response origin follows evidence, not the last attempted hop.+ """MH-VIBEY-002: response origin follows evidence, not the last attempted hop.The old buffered-only test missed the error carrier. The feasible terminalmatrix separates upstream errors from local endings, including local delivery@@ -925,7 +925,7 @@ async def test_terminal_response_origin_follows_its_carrier("""source = _source("src_primary01", "Primary", vendor="anthropic", protocol="anthropic",- model_id="模型/β" if backend == "avibe" else "shared-model",+ model_id="模型/β" if backend == "vibey" else "shared-model",)outcomes = {"upstream_terminal": _outcome(RawOutcomeKind.HTTP_ERROR, status=400, code="invalid_request_error", source_id=source.id),@@ -944,7 +944,7 @@ async def test_terminal_response_origin_follows_its_carrier(handles.insert(0, InvokeHandle(_outcome(RawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error", source_id=first.id,)))- service = _avibe_service(tmp_path, sources, handles=handles)+ service = _vibey_service(tmp_path, sources, handles=handles)observed_carriers = []resolve = service.resolve_with_recovery@@ -982,9 +982,9 @@ async def test_terminal_response_origin_follows_its_carrier(launch = await router.resolve(backend, service.store.requested_models[backend], process_scope=f"{backend}:test", turn_id=turn_id,)- protocol = "anthropic" if backend in {"avibe", "claude"} else "openai_responses"+ protocol = "anthropic" if backend in {"vibey", "claude"} else "openai_responses"# Avibe's frontend uses the primary's protocol; fallback can differ.- if backend == "avibe":+ if backend == "vibey":protocol = launch.protocolheaders = {"Authorization": f"Bearer {launch.gateway_token}"}if launch.gateway_request_metadata:@@ -997,7 +997,7 @@ async def test_terminal_response_origin_follows_its_carrier() as response:assert response.status == expected_statusorigin = None- if backend == "avibe" and has_producer:+ if backend == "vibey" and has_producer:origin = json.loads(response.headers[SERVED_HOP_HEADER])assert origin == {"provider": "anthropic", "api": "anthropic", "model": "模型/β"}else:@@ -1021,7 +1021,7 @@ async def test_terminal_response_origin_follows_its_carrier(assert record["outcome"] == ("exhausted" if failure == "exhaustion" else "failed_terminal")if cause == "upstream":assert record["terminal_error"]["source_id"] == source.id- if backend == "avibe":+ if backend == "vibey":assert record["terminal_error"]["origin"] == originelse:assert "origin" not in record["terminal_error"]@@ -1043,8 +1043,8 @@ async def test_terminal_response_origin_follows_its_carrier(pytest.param("a" * 4045, False, id="one-over"),pytest.param("模" * 1350, False, id="unicode-expansion"),])-async def test_origin_header_limit_is_checked_before_each_avibe_hop(tmp_path, model_id, allowed, fallback):- """MH-AVIBE-002: transport bounds must reject a hop before any upstream work.+async def test_origin_header_limit_is_checked_before_each_vibey_hop(tmp_path, model_id, allowed, fallback):+ """MH-VIBEY-002: transport bounds must reject a hop before any upstream work.Short-ID cases cannot expose client header parse failure or a fallback bypass.Persisted-shape acceptance is independent of the Avibe transport restriction.@@ -1059,14 +1059,14 @@ async def test_origin_header_limit_is_checked_before_each_avibe_hop(tmp_path, moRawOutcomeKind.HTTP_ERROR, status=429, code="rate_limit_error", source_id=first.id,)))handles.append(LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=target.id), (b"{}",)))- service = _avibe_service(tmp_path, sources, handles=handles)+ service = _vibey_service(tmp_path, sources, handles=handles)reloaded = ModelHubConfig.from_payload(service.store.config.to_payload())assert reloaded.sources[-1].models[0].id == model_id- assert reloaded.agents["avibe"].routes["menu-alias"].hops[-1].model_id == model_id+ assert reloaded.agents["vibey"].routes["menu-alias"].hops[-1].model_id == model_idgateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)try:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:test", turn_id="turn-header-bound")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:test", turn_id="turn-header-bound")async with aiohttp.ClientSession() as client:async with client.post(f'{hop["base_url"]}/{PROTOCOL_ENDPOINTS[hop["protocol"]]}',@@ -1110,7 +1110,7 @@ async def test_slow_anthropic_resolution_waits_to_publish_origin_and_keeps_sourcmonkeypatch.setattr("core.handlers.model_hub.turn_gateway._EARLY_STREAM_COMMIT_SECONDS", 0.001)source = _source("src_primary01", "Primary", vendor="anthropic", protocol="anthropic")answer = _body("anthropic", True)- service = _avibe_service(tmp_path, [source], handles=[+ service = _vibey_service(tmp_path, [source], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, stream_started=True), (answer,)),])entered, release = asyncio.Event(), asyncio.Event()@@ -1127,7 +1127,7 @@ async def test_slow_anthropic_resolution_waits_to_publish_origin_and_keeps_sourcrouter = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)task = Nonetry:- hop = await router.resolve_hop("menu-alias", process_scope="avibe:test", turn_id="turn-slow")+ hop = await router.resolve_hop("menu-alias", process_scope="vibey:test", turn_id="turn-slow")async with aiohttp.ClientSession() as client:task = asyncio.create_task(client.post(f'{hop["base_url"]}/messages', headers={"x-api-key": hop["token"]},@@ -1162,14 +1162,14 @@ async def test_concurrent_responses_keep_their_own_origin(tmp_path):"""Interleaving requests must not borrow a gateway-wide 'last served' hop."""first = _source("src_primary01", "First", vendor="openai", protocol="openai_chat", model_id="model-one")second = _source("src_second001", "Second", vendor="anthropic", protocol="anthropic", model_id="model-two")- service = _avibe_service(tmp_path, [first, second], handles=[+ service = _vibey_service(tmp_path, [first, second], handles=[LiveInvokeHandle(_outcome(RawOutcomeKind.SUCCESS, source_id=source.id, stream_started=True),(_body(source.protocol, True),),)for source in (first, second)])- agent = service.store.config.agents["avibe"]+ agent = service.store.config.agents["vibey"]agent.models.append(ModelHubBackendModelConfig(id="second-alias"))agent.routes["menu-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(first.id, "model-one"),))agent.routes["second-alias"] = ModelHubRouteConfig((ModelHubRouteHopConfig(second.id, "model-two"),))@@ -1189,7 +1189,7 @@ async def test_concurrent_responses_keep_their_own_origin(tmp_path):pending = Nonetry:hops = [- await router.resolve_hop(alias, process_scope=f"avibe:session-{index}", turn_id=f"turn-{index}")+ await router.resolve_hop(alias, process_scope=f"vibey:session-{index}", turn_id=f"turn-{index}")for index, alias in enumerate(("menu-alias", "second-alias"))]async with aiohttp.ClientSession() as client:diff --git a/tests/test_model_hub_avibe_contract_matrix.py b/tests/test_model_hub_vibey_contract_matrix.pysimilarity index 84%rename from tests/test_model_hub_avibe_contract_matrix.pyrename to tests/test_model_hub_vibey_contract_matrix.pyindex c27d7058a..7d6717f34 100644--- a/tests/test_model_hub_avibe_contract_matrix.py+++ b/tests/test_model_hub_vibey_contract_matrix.py@@ -1,4 +1,4 @@-"""MH-AVIBE-004: schemas cannot certify a transport Avibe cannot use.+"""MH-VIBEY-004: schemas cannot certify a transport Avibe cannot use.Positive Hub payloads miss illegal discriminator/channel combinations. Theproducer-owned audit table drives refusals and must cover newly declared shapes.@@ -17,10 +17,10 @@ from config.v2_config import ModelHubRouteConfig, ModelHubRouteHopConfigfrom core.handlers.model_hub.service import ModelHubErrorfrom core.handlers.model_hub.turn_gateway import ModelHubTurnGatewayfrom modules.agents.model_hub import ModelHubRuntimeRouter-from tests.test_model_hub_avibe_consumer import CONTRACTS, _avibe_service, _source+from tests.test_model_hub_vibey_consumer import CONTRACTS, _vibey_service, _source-MATRIX = json.loads((CONTRACTS / "avibe-boundary-matrix.json").read_text())["boundaries"]+MATRIX = json.loads((CONTRACTS / "vibey-boundary-matrix.json").read_text())["boundaries"]def _schema(row):@@ -41,9 +41,9 @@ def _fixture(kind):"origin": {"provider": "anthropic", "api": "anthropic", "model": "fixture-model"},}if kind == "supply":- return {"backend": "avibe", "mode": "hub", "menu_kind": "fixed", "cli_present": False}+ return {"backend": "vibey", "mode": "hub", "menu_kind": "fixed", "cli_present": False}if kind == "catalog":- return {"backend": "avibe", "mode": "hub", "catalog_models": []}+ return {"backend": "vibey", "mode": "hub", "catalog_models": []}if kind == "probe":# Start from a valid native response so no Hub latency constraint can# accidentally reject the Avibe/native pairing for an unrelated cause.@@ -54,7 +54,7 @@ def _fixture(kind):}if kind == "chain":return {- "contract_version": 12, "backend": "avibe", "model_id": "fixture-model",+ "contract_version": 12, "backend": "vibey", "model_id": "fixture-model","manual_override": None, "route_origin": "automatic","chain": [{"source_id": "src_fixture01", "model_id": "fixture-model", "channel": "hub","health": "healthy", "runnable": True, "reason": None, "retry_at": None}],@@ -67,7 +67,7 @@ def _fixture(kind):}return {"contract_version": 12, "turn_id": "turn-fixture", "ts": "2026-10-02T07:00:00Z",- "agent": "avibe", "requested_model_id": "fixture-model", "outcome": kind,+ "agent": "vibey", "requested_model_id": "fixture-model", "outcome": kind,"failed_attempts": [{**identity, "reason": "rate_limited"}] if kind == "exhausted" else [],"served": identity if kind == "served" else None,"terminal_error": (@@ -79,13 +79,13 @@ def _fixture(kind):}-def test_avibe_matrix_covers_every_declared_backend_shape():+def test_vibey_matrix_covers_every_declared_backend_shape():def declared(node, pointer=""):if not isinstance(node, dict):returnfor field in ("backend", "agent"):enum = node.get("properties", {}).get(field, {}).get("enum", [])- if {"claude", "codex", "opencode", "avibe"} & set(enum):+ if {"claude", "codex", "opencode", "vibey"} & set(enum):yield pointer, field# Traverse shape definitions, not if/then discriminator constraints.for field in ("properties", "definitions", "$defs"):@@ -118,7 +118,7 @@ def test_avibe_matrix_covers_every_declared_backend_shape():for row in MATRIX for refusal in row.get("refusals", [])],)-def test_avibe_channel_matrix_rejects_impossible_shapes_without_changing_native(row, refusal):+def test_vibey_channel_matrix_rejects_impossible_shapes_without_changing_native(row, refusal):validator = _schema(row)payload = _fixture(refusal["fixture"])validator.validate(payload)@@ -134,7 +134,7 @@ def test_avibe_channel_matrix_rejects_impossible_shapes_without_changing_native(validator.validate(invalid)-def test_avibe_local_terminal_and_pre_admission_cancel_remain_nullable():+def test_vibey_local_terminal_and_pre_admission_cancel_remain_nullable():row = next(row for row in MATRIX if row["schema"] == "turn-provenance.schema.json")validator = _schema(row)payload = _fixture("failed_terminal")@@ -150,10 +150,10 @@ def test_avibe_local_terminal_and_pre_admission_cancel_remain_nullable():@pytest.mark.asyncio@pytest.mark.parametrize("case", [case for row in MATRIX for case in row.get("runtime_cases", [])])-async def test_avibe_runtime_matrix_refuses_native_admission(tmp_path, case):+async def test_vibey_runtime_matrix_refuses_native_admission(tmp_path, case):"""Admission, not just serialization, must refuse impossible transports."""native = _source("src_native001", "Native", channel="native_cli", vendor="anthropic", protocol="anthropic")- service = _avibe_service(tmp_path, [native])+ service = _vibey_service(tmp_path, [native])gateway = ModelHubTurnGateway(service)router = ModelHubRuntimeRouter(service=service, turn_gateway=gateway)route = ModelHubRouteConfig((ModelHubRouteHopConfig(native.id, "shared-model"),))@@ -162,18 +162,18 @@ async def test_avibe_runtime_matrix_refuses_native_admission(tmp_path, case):# The recording boundary must not let an accidental future caller# manufacture native Avibe provenance after normal routing refused.if case == "native_attempt":- with pytest.raises(ValueError, match="avibe.*hub"):+ with pytest.raises(ValueError, match="vibey.*hub"):gateway.correlation.begin_native_attempt(- backend="avibe", process_scope="avibe:matrix", turn_id="turn-matrix",+ backend="vibey", process_scope="vibey:matrix", turn_id="turn-matrix",requested_model_id="menu-alias", source_id=native.id,resolved_model_id="shared-model", via_mapping=False,)else:await gateway.endpoint(- "avibe", process_scope="avibe:matrix", turn_id="turn-matrix",+ "vibey", process_scope="vibey:matrix", turn_id="turn-matrix",requested_model_id="menu-alias", source_id=native.id, resolved_model_id="shared-model",)- with pytest.raises(ValueError, match="avibe.*hub"):+ with pytest.raises(ValueError, match="vibey.*hub"):gateway.correlation.begin_attempt("turn-matrix", source_id=native.id, resolved_model_id="shared-model",channel="native_cli", via_mapping=False,@@ -181,23 +181,23 @@ async def test_avibe_runtime_matrix_refuses_native_admission(tmp_path, case):else:with pytest.raises(ModelHubError) as refusal:if case == "mode":- await service.set_agent_mode("avibe", "direct")+ await service.set_agent_mode("vibey", "direct")elif case == "source_order":- await service.set_agent_sources("avibe", {"order": [native.id]})+ await service.set_agent_sources("vibey", {"order": [native.id]})elif case == "route_write":- await service.set_agent_chain("avibe", "menu-alias", route.to_payload())+ await service.set_agent_chain("vibey", "menu-alias", route.to_payload())else:# Corrupt in-process route still cannot bypass live# admission (persisted config rejects it on load).- service.store.config.agents["avibe"].routes["menu-alias"] = route+ service.store.config.agents["vibey"].routes["menu-alias"] = routeif case == "probe":- await service.probe_agent("avibe", "menu-alias")+ await service.probe_agent("vibey", "menu-alias")elif case == "resolve_hop":- await router.resolve_hop("menu-alias", process_scope="avibe:matrix")+ await router.resolve_hop("menu-alias", process_scope="vibey:matrix")elif case in {"resolve", "recovery"}:service.recovery.window_seconds = 120 if case == "recovery" else 0await service.resolve_with_recovery(- backend="avibe", model_id="menu-alias", request={}, stream=False,+ backend="vibey", model_id="menu-alias", request={}, stream=False,)else:raise AssertionError(f"Unhandled runtime boundary: {case}")diff --git a/tests/test_processing_indicator_reaction.py b/tests/test_processing_indicator_reaction.pyindex b8eacbc96..0c7ef76f8 100644--- a/tests/test_processing_indicator_reaction.py+++ b/tests/test_processing_indicator_reaction.py@@ -260,10 +260,10 @@ class WorkbenchAckModeTests(unittest.IsolatedAsyncioTestCase):svc = ProcessingIndicatorService(controller)context = MessageContext(user_id="u1", channel_id="ses_1", message_id="msg_user", platform="avibe")- handle = await svc.start(context, "avibe")+ handle = await svc.start(context, "vibey")# The ack message is the indicator from the start: nothing is deferred to the runtime gate.- self.assertEqual(published, [svc._get_ack_text("avibe")])- await svc.promote_reaction_to_running(handle, agent_name="avibe")+ self.assertEqual(published, [svc._get_ack_text("vibey")])+ await svc.promote_reaction_to_running(handle, agent_name="vibey")return handle, publishedasync def test_every_ack_mode_starts_with_the_ack_message_and_no_downgrade_warning(self):diff --git a/tests/test_session_delivery_fsm.py b/tests/test_session_delivery_fsm.pyindex 412689324..91a1efc69 100644--- a/tests/test_session_delivery_fsm.py+++ b/tests/test_session_delivery_fsm.py@@ -4200,7 +4200,7 @@ def test_start_write_ambiguity_replays_once_after_restart(managers) -> None:assert turns[1]["state"] == "starting"[email protected]("backend", ["codex", "avibe"])[email protected]("backend", ["codex", "vibey"])def test_accepted_turn_of_a_process_bound_backend_without_runtime_settles_and_releases_queue(managers, backend: str) -> None:diff --git a/tests/test_session_fork.py b/tests/test_session_fork.pyindex 52ca04665..e2acd0e41 100644--- a/tests/test_session_fork.py+++ b/tests/test_session_fork.py@@ -201,11 +201,11 @@ def test_reserve_forked_session_copies_row_and_applies_overrides(tmp_path: Path)assert metadata["fork_trim_latest_running_turn"] is False-def test_reserve_forked_avibe_session_records_its_context_anchor(tmp_path: Path) -> None:+def test_reserve_forked_vibey_session_records_its_context_anchor(tmp_path: Path) -> None:# The Avibe Agent's context is the source's rows up to the anchor (C-5 section 4):# resolved once at reservation, so rows the source commits later never enter the prefix.db_path = tmp_path / "vibe.sqlite"- source_id = _seed_source_session(db_path, tmp_path, backend="avibe")+ source_id = _seed_source_session(db_path, tmp_path, backend="vibey")engine = create_sqlite_engine(db_path)try:with engine.begin() as conn:@@ -233,7 +233,7 @@ def test_reserve_forked_avibe_session_records_its_context_anchor(tmp_path: Path)finally:engine.dispose()metadata = json.loads(row["metadata_json"])- assert result.fork.source_backend == "avibe"+ assert result.fork.source_backend == "vibey"# With no running Turn the child inherits the whole settled context, as a native fork does.assert metadata["fork_source_context_seq"] == 4diff --git a/tests/test_settings_handler.py b/tests/test_settings_handler.pyindex cdee4e616..9faaca998 100644--- a/tests/test_settings_handler.py+++ b/tests/test_settings_handler.py@@ -622,7 +622,7 @@ def test_gather_routing_modal_data_hides_disabled_backends() -> None:data = asyncio.run(handler._gather_routing_modal_data(context))- assert data.registered_backends == ["avibe", "opencode"]+ assert data.registered_backends == ["vibey", "opencode"]assert server.calls == ["current_server","agents:/tmp/workspace",@@ -646,7 +646,7 @@ def test_gather_routing_modal_data_falls_back_to_visible_backend_when_current_is# Listed first, the built-in backend is still not the fallback while another is enabled.assert data.current_backend == "opencode"- assert data.registered_backends == ["avibe", "opencode", "codex"]+ assert data.registered_backends == ["vibey", "opencode", "codex"]assert data.opencode_agents == [{"name": "build"}]assert server.calls == ["current_server",diff --git a/tests/test_telegram_bot.py b/tests/test_telegram_bot.pyindex 1586b1843..02f5f0f87 100644--- a/tests/test_telegram_bot.py+++ b/tests/test_telegram_bot.py@@ -1355,7 +1355,7 @@ def test_routing_state_marks_current_backend_in_first_row() -> None:_, keyboard = bot._render_routing_state(state)assert [button.callback_data for button in keyboard.buttons[0]] == [- "tg_route:backend:avibe",+ "tg_route:backend:vibey","tg_route:backend:opencode","tg_route:backend:claude",]@@ -1459,7 +1459,7 @@ def test_routing_callback_backend_switches_without_nested_picker() -> None:edit_mock.assert_awaited_once()[email protected]("extra_backend", ["avibe", "extra"])[email protected]("extra_backend", ["vibey", "extra"])def test_routing_state_keeps_backend_picker_entry_for_extra_backends(extra_backend) -> None:bot = TelegramBot(TelegramConfig(bot_token="123456:test-token"))state = SimpleNamespace(@@ -1478,18 +1478,18 @@ def test_routing_state_keeps_backend_picker_entry_for_extra_backends(extra_backe)text, keyboard = bot._render_routing_state(state)- if extra_backend == "avibe":+ if extra_backend == "vibey":assert "Vibey" in textassert [button.callback_data for button in keyboard.buttons[0]] == [- "tg_route:backend:avibe",+ "tg_route:backend:vibey","tg_route:backend:opencode","tg_route:backend:claude",]assert keyboard.buttons[1][0].callback_data == "tg_route:field:backend"[email protected]("extra_backend", ["avibe", "extra"])[email protected]("extra_backend", ["vibey", "extra"])def test_routing_callback_backend_picker_can_select_extra_backend(extra_backend) -> None:bot = TelegramBot(TelegramConfig(bot_token="123456:test-token"))context = MessageContext(diff --git a/tests/test_transcript_store_contract.py b/tests/test_transcript_store_contract.pyindex fb16270eb..5aa68651d 100644--- a/tests/test_transcript_store_contract.py+++ b/tests/test_transcript_store_contract.py@@ -23,7 +23,7 @@ from core.agent_core.ai.provider import Done, ProviderErrorfrom core.agent_core.harness.context import ContextConfig, request_tokensfrom core.agent_core.harness.store import TranscriptStorefrom core.agent_core.messages import AssistantMessage, ToolCallBlock, ToolResultMessage, Usage, text, usage_to_dict-from modules.agents.avibe.store import AdapterTranscriptStore+from modules.agents.vibey.store import AdapterTranscriptStorefrom storage import agent_events_service, messages_servicefrom storage.agent_transcript import SQLiteTranscriptStore, resolve_fork_anchor_seqfrom storage.db import create_sqlite_engine@@ -138,7 +138,7 @@ def _session(conn, session_id: str, scope_id: str, metadata: dict | None = None)conn.exec_driver_sql("insert into agent_sessions (id, scope_id, agent_name, agent_backend, agent_variant, session_anchor, ""workdir, native_session_id, status, visibility, pinned, agent_status, metadata_json, created_at, "- "updated_at, last_active_at) values (?, ?, 'avibe', 'avibe', 'avibe', ?, '/tmp', ?, 'active', "+ "updated_at, last_active_at) values (?, ?, 'vibey', 'vibey', 'vibey', ?, '/tmp', ?, 'active', ""'foreground', 0, 'idle', ?, ?, ?, ?)",(session_id, scope_id, session_id, session_id, json.dumps(metadata or {}), NOW, NOW, NOW),)diff --git a/tests/test_ui_api.py b/tests/test_ui_api.pyindex 4a9c2d47e..fd3d4f3f8 100644--- a/tests/test_ui_api.py+++ b/tests/test_ui_api.py@@ -3999,7 +3999,7 @@ def test_vibe_agent_api_rejects_non_boolean_enabled(tmp_path, monkeypatch):@pytest.mark.parametrize(("backends", "expected"),- [(list(AGENT_BACKENDS), "opencode"), (["claude", "avibe"], "claude"), ([], "vibey")],+ [(list(AGENT_BACKENDS), "opencode"), (["claude", "vibey"], "claude"), ([], "vibey")],)def test_builtin_default_agent_uses_first_enabled_backend_when_no_default_exists(tmp_path, monkeypatch, backends, expected@@ -4014,7 +4014,7 @@ def test_builtin_default_agent_uses_first_enabled_backend_when_no_default_existsstore.close()-def test_a_default_nobody_chose_is_not_the_built_in_avibe_agent(tmp_path, monkeypatch):+def test_a_default_nobody_chose_is_not_the_built_in_vibey_agent(tmp_path, monkeypatch):"""With the chosen default disabled, new chats fall back to an enabled Agent, as before Avibe was built in."""from core.vibe_agents import resolve_effective_default_agent@@ -4041,8 +4041,8 @@ def test_archiving_the_default_never_hands_new_chats_to_the_built_in_agent(tmp_pstore = VibeAgentStore()try:store.create(- name="avibe", backend="avibe", source="builtin",- metadata={**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "avibe"},+ name="vibey", backend="vibey", source="builtin",+ metadata={**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "vibey"},)store.create(name="omega", backend="claude")store.create(name="zeta", backend="opencode")@@ -4056,7 +4056,7 @@ def test_archiving_the_default_never_hands_new_chats_to_the_built_in_agent(tmp_pstore.close()-def test_the_built_in_avibe_agent_cannot_be_disabled_and_stays_editable(tmp_path, monkeypatch):+def test_the_built_in_vibey_agent_cannot_be_disabled_and_stays_editable(tmp_path, monkeypatch):"""Turning it off would turn off the backend; its model, prompt and metadata stay editable."""from core.vibe_agents import AgentAlwaysEnabledError@@ -4074,7 +4074,7 @@ def test_the_built_in_avibe_agent_cannot_be_disabled_and_stays_editable(tmp_pathassert updated["agent"]["model"] == "team-model"assert store.require("vibey").enabled is True# Any other Avibe Agent is an ordinary Agent.- store.create(name="helper", backend="avibe")+ store.create(name="helper", backend="vibey")assert api.update_vibe_agent("helper", {"enabled": False})["agent"]["enabled"] is Falsefinally:store.close()@@ -4108,7 +4108,7 @@ def test_callers_cannot_forge_or_strip_built_in_markers(tmp_path, monkeypatch, emonkeypatch.setenv("AVIBE_HOME", str(tmp_path / ".vibe_remote"))forged = {"builtin": True, "builtin_default": True, "lock_delete": True, "backend_enabled": True, "note": "kept"}- created = api.create_vibe_agent({"name": "helper", "backend": "avibe", "metadata": forged})+ created = api.create_vibe_agent({"name": "helper", "backend": "vibey", "metadata": forged})assert created["agent"]["metadata"] == {"note": "kept"}updated = api.update_vibe_agent("helper", {"metadata": forged, "enabled": enabled})diff --git a/tests/test_ui_server_fastapi.py b/tests/test_ui_server_fastapi.pyindex 8eab2c6f2..9bc94335b 100644--- a/tests/test_ui_server_fastapi.py+++ b/tests/test_ui_server_fastapi.py@@ -2098,7 +2098,7 @@ def test_config_routes_redact_platform_and_gateway_secrets(monkeypatch, tmp_path@pytest.mark.parametrize(("hub_switch", "gateway_enabled", "blocks"),- [("1", True, {}), ("1", False, {"avibe": "gateway_off"}), ("0", True, {"avibe": "hub_disabled"})],+ [("1", True, {}), ("1", False, {"vibey": "gateway_off"}), ("0", True, {"vibey": "hub_disabled"})],)def test_config_api_carries_why_the_model_hub_leaves_a_backend_no_model(monkeypatch, tmp_path, hub_switch, gateway_enabled, blocks):"""The Backends page shows the server's answer; it keeps no rule of its own."""@@ -2121,11 +2121,11 @@ def test_config_api_carries_why_the_model_hub_leaves_a_backend_no_model(monkeypa@pytest.mark.parametrize(("method", "path", "body", "code"),[- ("post", "/api/config", {"agents": {"avibe": {"enabled": False}}}, None),+ ("post", "/api/config", {"agents": {"vibey": {"enabled": False}}}, None),("patch", "/api/agents/vibey", {"enabled": False}, "agent_always_enabled"),],)-def test_requests_to_turn_off_the_built_in_avibe_agent_fail_with_a_client_error(+def test_requests_to_turn_off_the_built_in_vibey_agent_fail_with_a_client_error(monkeypatch, tmp_path, method, path, body, code):"""It has no switch: a request to turn it off is refused instead of silently ignored."""@@ -2150,7 +2150,7 @@ def test_requests_to_turn_off_the_built_in_avibe_agent_fail_with_a_client_error(assert "always enabled" in payload["error"]else:assert payload["code"] == code and payload["message"]- assert "avibe" not in api.config_to_payload(api.load_config())["agents"]+ assert "vibey" not in api.config_to_payload(api.load_config())["agents"]store = VibeAgentStore()try:assert store.require("vibey").enabled is Truediff --git a/tests/test_avibe_agent.py b/tests/test_vibey_agent.pysimilarity index 97%rename from tests/test_avibe_agent.pyrename to tests/test_vibey_agent.pyindex 5951d6b64..fce4e192b 100644--- a/tests/test_avibe_agent.py+++ b/tests/test_vibey_agent.py@@ -1,4 +1,4 @@-"""Avibe Agent backend adapter (``modules/agents/avibe``) over Avibe's real rows.+"""Avibe Agent backend adapter (``modules/agents/vibey``) over Avibe's real rows.Properties, each through the adapter's real boundaries (the transcript store ona temporary SQLite database, the Delivery rows, and the shared outbound@@ -37,9 +37,9 @@ from core.agent_core.messages import AssistantMessage, TextBlock, ToolCallBlock,from core.agent_core.tools.base import JobStatus, ToolResultfrom core.message_dispatcher import ConsolidatedMessageDispatcherfrom core.services.agent_steering import ActiveSteerTarget, SteerOutcome, SteerRequest-from modules.agents.avibe import AvibeAgent-from modules.agents.avibe.errors import _KIND_KEYS, error_key-from modules.agents.avibe.tools import ToolSuite, local_tool_suite+from modules.agents.vibey import VibeyAgent+from modules.agents.vibey.errors import _KIND_KEYS, error_key+from modules.agents.vibey.tools import ToolSuite, local_tool_suitefrom modules.agents.base import AgentRequestfrom modules.agents.model_hub import ModelHubLaunchfrom modules.im import MessageContext@@ -53,7 +53,7 @@ from tests.agent_core.fakes import ORIGIN, FakeJobHost, FakeTool, ScriptedProvidfrom vibe.i18n import t as i18n_tNOW = "2026-10-02T00:00:00.000000Z"-SESSION = "ses_avibe"+SESSION = "ses_vibey"@pytest.fixture()@@ -175,7 +175,7 @@ class _Controller:self.hub_protocol = "anthropic"# The Model Hub model definition's limits (C-9 takes W, L_in, and O from them).self.hub_limits = {"context_window": 32000, "max_output_tokens": 4096}- self.agent: Optional[AvibeAgent] = None+ self.agent: Optional[VibeyAgent] = Noneself.agent_service = SimpleNamespace(mark_runtime_turn_started=self._native_start,release_runtime_turn=lambda context, **_kw: self.released.append(_turn(context)),@@ -221,7 +221,7 @@ class _Controller:target_model=requested_model,runtime_model=requested_model,source_id="src_test",- gateway_base_url="http://hub.invalid/avibe",+ gateway_base_url="http://hub.invalid/vibey",gateway_token="hub-token",**self.hub_limits,supports_tools=True,@@ -235,7 +235,7 @@ class _Controller:turn_id = _turn(context)target = ActiveSteerTarget("runtime", turn_id, context, None, self.agent)# Outside a run (a crash simulation), the identity a previous process's adapter bound.- native = self.agent.steering_native_turn_id(target) or f"avibe:previous-process:{turn_id}"+ native = self.agent.steering_native_turn_id(target) or f"vibey:previous-process:{turn_id}"self.started.append(native)with self.engine.begin() as conn:turn = message_deliveries.get_turn(conn, turn_id)@@ -261,7 +261,7 @@ def _context(platform: str, session_id: str, *, turn_id: str, delivery_id: str)platform=platform,platform_specific={"agent_session_id": session_id,- "agent_session_target": {"id": session_id, "agent_backend": "avibe"},+ "agent_session_target": {"id": session_id, "agent_backend": "vibey"},"workbench_session_id": session_id if platform == "avibe" else None,"platform": platform,"turn_token": turn_id,@@ -297,9 +297,9 @@ class _Harness:self.agent = self.new_agent()self._turns = 0- def new_agent(self) -> AvibeAgent:+ def new_agent(self) -> VibeyAgent:"""A fresh adapter over the same rows: what a restarted process starts with."""- agent = AvibeAgent(+ agent = VibeyAgent(self.controller,engine=self.engine,providers=self.providers,@@ -347,7 +347,7 @@ class _Harness:now=NOW,)message_deliveries.claim_start_batch(- conn, turn_id=turn_id, session_id=self.session_id, backend="avibe", deliveries=[delivery], dispatch_text=body+ conn, turn_id=turn_id, session_id=self.session_id, backend="vibey", deliveries=[delivery], dispatch_text=body)context = _context(self.platform, self.session_id, turn_id=turn_id, delivery_id=delivery_id)return AgentRequest(@@ -431,7 +431,7 @@ def _insert_session(conn, session_id: str, scope_id: str, metadata: Optional[dicconn.exec_driver_sql("insert into agent_sessions (id, scope_id, agent_name, agent_backend, agent_variant, session_anchor, ""workdir, native_session_id, status, visibility, pinned, agent_status, metadata_json, created_at, "- "updated_at, last_active_at) values (?, ?, 'avibe', 'avibe', 'avibe', ?, '/tmp', ?, 'active', "+ "updated_at, last_active_at) values (?, ?, 'vibey', 'vibey', 'vibey', ?, '/tmp', ?, 'active', ""'foreground', 0, 'idle', ?, ?, ?, ?)",(session_id, scope_id, session_id, session_id, json.dumps(metadata or {}), NOW, NOW, NOW),)@@ -464,13 +464,13 @@ async def test_a_turn_commits_its_context_once_and_shows_the_reply_once(assert "date:" not in environment.text and "timezone:" not in environment.text# The steer identity existed when the Turn owner bound the native start.[native] = harness.controller.started- assert native.startswith("avibe:") and native.endswith(f":{_turn(request.context)}")+ assert native.startswith("vibey:") and native.endswith(f":{_turn(request.context)}")# A10: every request is the context rebuilt from the tables at that point.assert [request_.messages for request_ in harness.provider.requests] == [project(rows[:1]).messages,project(rows[:3]).messages,]- assert harness.provider.requests[0].endpoint.base_url == "http://hub.invalid/avibe/v1"+ assert harness.provider.requests[0].endpoint.base_url == "http://hub.invalid/vibey/v1"# One row per response: the dispatcher wrote its display into the committed rows, never a copy.[result] = harness.rows("result")[narration] = harness.rows("assistant")@@ -551,7 +551,7 @@ async def test_committed_rows_keep_the_agent_that_ran_the_turn(engine, session,harness = _Harness(engine, tmp_path, "avibe", _tool_turn(), tools=[FakeTool("echo", execute=slow)])request = harness.request("list files")- request.vibe_agent_name = "avibe"+ request.vibe_agent_name = "vibey"running = asyncio.create_task(harness.agent.handle_message(request))await started.wait()with engine.begin() as conn:@@ -578,12 +578,12 @@ async def test_committed_rows_keep_the_agent_that_ran_the_turn(engine, session,))}- assert names == {"avibe"}+ assert names == {"vibey"}with engine.connect() as conn:backends = set(conn.execute(select(agent_events.c.backend).where(agent_events.c.session_id == SESSION, agent_events.c.context_seq.is_not(None))).scalars())- assert backends == {"avibe"}+ assert backends == {"vibey"}async def test_the_environment_names_at_most_twenty_watches_without_their_commands(@@ -1092,7 +1092,7 @@ async def test_a_google_hop_is_called_over_chat_at_the_gateway_prefix(engine, se[request] = harness.provider.requestsassert asked == ["openai_chat"]assert (request.endpoint.protocol, request.endpoint.base_url, request.endpoint.provider) == (- "openai_chat", "http://hub.invalid/avibe/v1", "test-provider"+ "openai_chat", "http://hub.invalid/vibey/v1", "test-provider")assert harness.controller.terminals[-1]["is_error"] is False@@ -1124,8 +1124,8 @@ async def test_a_failed_run_shows_localized_copy_and_a_refusal_shows_its_explanaawait harness.agent.handle_message(harness.request("say something unsafe"))sent = harness.controller.im_client.sent- empty_copy = i18n_t("avibeAgent.error.emptyResponse", language)- refusal_copy = i18n_t("avibeAgent.error.refusal", language)+ empty_copy = i18n_t("vibeyAgent.error.emptyResponse", language)+ refusal_copy = i18n_t("vibeyAgent.error.refusal", language)# Each failed final carries its own explanation in its row.assert sent == [empty_copy, refusal_copy]assert sorted(row["content_text"] for row in harness.rows("error")) == sorted([empty_copy, refusal_copy])@@ -1329,7 +1329,7 @@ async def test_a_refused_model_route_fails_before_the_input_is_written(raise RuntimeError("no source serves this model")harness.controller.model_hub_runtime = SimpleNamespace(resolve=refuse)- hub = SimpleNamespace(enabled=gateway_enabled, agents={"avibe": SimpleNamespace(mode="hub")})+ hub = SimpleNamespace(enabled=gateway_enabled, agents={"vibey": SimpleNamespace(mode="hub")})harness.controller.model_hub_service = SimpleNamespace(store=SimpleNamespace(load=lambda: hub))request = harness.request("hello")await harness.agent.handle_message(request)@@ -1431,7 +1431,7 @@ async def test_a_silent_final_whose_run_failed_after_its_commit_is_typed_by_its_async def test_a_relative_tool_path_is_shown_under_the_runs_cwd(engine, session, tmp_path, published) -> None:- from modules.agents.avibe.agent import _relative_to+ from modules.agents.vibey.agent import _relative_toproject = tmp_path / "project"shown = _relative_to(str(project))@@ -1514,7 +1514,7 @@ async def test_a_stop_while_the_input_is_prepared_starts_no_run(engine, session,async def test_a_stop_after_the_final_reply_committed_loses_the_race(engine, session, tmp_path, published, monkeypatch) -> None:- import modules.agents.avibe.agent as agent_module+ import modules.agents.vibey.agent as agent_modulefrom core.agent_core.agent.events import MessageCommitted, RunEndedfrom core.agent_core.agent.loop import Agent@@ -1688,7 +1688,7 @@ async def test_a_provider_that_fails_to_close_does_not_fail_a_delivered_turn(assert harness.controller.terminals[-1]["is_error"] is Falseassert closed == ["anthropic"]# Every adapter is closed even when an earlier one fails to close.- from modules.agents.avibe.models import HubModelRouter+ from modules.agents.vibey.models import HubModelRouteradapters = {"anthropic": _Provider([], "anthropic", fails=True), "google": _Provider([], "google", fails=False)}router = HubModelRouter(lambda: None, lambda protocol: adapters[protocol])@@ -1912,7 +1912,7 @@ async def _until(predicate, what: str, timeout: float = 10.0) -> None:_TEXT_STREAMS = {"anthropic": (- "/avibe/v1/messages",+ "/vibey/v1/messages",'data: {"type":"message_start","message":{"usage":{}}}\n\n''data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}\n\n''data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"hi"}}\n\n'@@ -1921,13 +1921,13 @@ _TEXT_STREAMS = {'data: {"type":"message_stop"}\n\n',),"openai_responses": (- "/avibe/v1/responses",+ "/vibey/v1/responses",'data: {"type":"response.output_item.added","output_index":0,"item":{"type":"message","id":"msg_1"}}\n\n''data: {"type":"response.output_text.delta","output_index":0,"delta":"hi"}\n\n''data: {"type":"response.completed","response":{"status":"completed","output":null}}\n\n',),"openai_chat": (- "/avibe/v1/chat/completions",+ "/vibey/v1/chat/completions",'data: {"choices":[{"delta":{"content":"hi"}}]}\n\n''data: {"choices":[{"delta":{},"finish_reason":"stop"}]}\n\n'"data: [DONE]\n\n",@@ -1939,7 +1939,7 @@ _TEXT_STREAMS = {async def test_a_turn_runs_through_the_real_provider_registry(engine, session, tmp_path, published, hub_protocol) -> None:import httpx- from modules.agents.avibe.models import registry_providers+ from modules.agents.vibey.models import registry_providerswire = "openai_chat" if hub_protocol == "google" else hub_protocolpath, body = _TEXT_STREAMS[wire]@@ -2009,7 +2009,7 @@ async def test_bash_runs_with_the_turns_caller_environment(engine, session, tmp_assert seen.get("PATH") and seen.get("HOME")# The Turn's caller provenance, as the other backends give their shells.assert seen[AVIBE_SESSION_ID_ENV] == SESSION- assert seen[AVIBE_CALLER_BACKEND_ENV] == "avibe"+ assert seen[AVIBE_CALLER_BACKEND_ENV] == "vibey"assert {key for key in seen if key in CALLER_CONTEXT_ENV_NAMES} >= {AVIBE_SESSION_ID_ENV, AVIBE_CALLER_BACKEND_ENV}# The Model Hub gateway token stays in the adapter: never in a command's environment.assert "hub-token" not in output@@ -2123,17 +2123,17 @@ async def test_resume_settles_a_reused_call_id_from_the_job_its_own_call_startedawait suite.jobs.kill(current)-def _controller_with(agent: AvibeAgent) -> SimpleNamespace:+def _controller_with(agent: VibeyAgent) -> SimpleNamespace:"""A controller with the registered adapter and its single recovery owner."""- from modules.agents.avibe.recovery import AvibeRecovery+ from modules.agents.vibey.recovery import VibeyRecoverycontroller = SimpleNamespace(- agent_service=SimpleNamespace(agents={"avibe": agent}),+ agent_service=SimpleNamespace(agents={"vibey": agent}),config=SimpleNamespace(platform="avibe", language="en"),im_client=None,settings_manager=SimpleNamespace(),)- controller.avibe_recovery = AvibeRecovery(controller)+ controller.vibey_recovery = VibeyRecovery(controller)return controller@@ -2162,7 +2162,7 @@ async def _two_sessions_with_open_calls(engine, tmp_path, suite) -> tuple[_Harnedef _hand_over_failing_once(monkeypatch) -> list[str]:"""Watch hand-over raises on its first call, as a transient DB or Watch failure would."""import core.watches as watches_module- import modules.agents.avibe.recovery as recovery_module+ import modules.agents.vibey.recovery as recovery_modulecalls: list[str] = []real = watches_module.hand_over_job@@ -2195,7 +2195,7 @@ async def test_recovery_retries_a_session_it_could_not_settle(_hand_over_failing_once(monkeypatch)harness, running, _exited = await _two_sessions_with_open_calls(engine, tmp_path, local_tool_suite())- recovery = _controller_with(harness.new_agent()).avibe_recovery+ recovery = _controller_with(harness.new_agent()).vibey_recoverytry:# The first pass settles ses_b and reports SESSION, never success over a failure.assert await recovery.start() == [SESSION]@@ -2253,13 +2253,13 @@ async def test_applying_saved_config_never_retires_the_built_in_backend(engine,auth._load_backend_runtime_config = lambda _backend: Noneauth._sync_builtin_default_agents = lambda: None- await auth.renew_backend_runtime("avibe", config_save=True)+ await auth.renew_backend_runtime("vibey", config_save=True)- assert controller.agent_service.agents["avibe"] is harness.agent+ assert controller.agent_service.agents["vibey"] is harness.agentasync def test_recovery_admits_a_returned_input_whose_admission_failed(engine, session, tmp_path, published) -> None:- from modules.agents.avibe.recovery import AvibeRecovery+ from modules.agents.vibey.recovery import VibeyRecoverystarted = asyncio.Event()@@ -2269,8 +2269,8 @@ async def test_recovery_admits_a_returned_input_whose_admission_failed(engine, sreturn ToolResult((text("Command aborted"),), is_error=True)harness = _Harness(engine, tmp_path, "avibe", _tool_turn(), tools=[FakeTool("echo", execute=wait_for_cancel)])- harness.controller.avibe_recovery = AvibeRecovery(harness.controller)- harness.controller.agent_service.agents = {"avibe": harness.agent}+ harness.controller.vibey_recovery = VibeyRecovery(harness.controller)+ harness.controller.agent_service.agents = {"vibey": harness.agent}request = harness.request("run it")turn_id = _turn(request.context)running = asyncio.create_task(harness.agent.handle_message(request))@@ -2295,11 +2295,11 @@ async def test_recovery_admits_a_returned_input_whose_admission_failed(engine, s# Stop returns the accepted steer; admitting it fails once.await harness.agent.handle_stop(AgentRequest(**{**request.__dict__, "message": "stop"}))await running- assert failures == [delivery_id] and harness.controller.avibe_recovery.retrying- harness.controller.avibe_recovery._task.cancel()+ assert failures == [delivery_id] and harness.controller.vibey_recovery.retrying+ harness.controller.vibey_recovery._task.cancel()# The owner's next pass admits it, without any Turn, exactly once.- assert await harness.controller.avibe_recovery.start() == []+ assert await harness.controller.vibey_recovery.start() == []admitted = [entry for entry in await harness.context_rows() if entry.row_id == delivery_id]assert len(admitted) == 1@@ -2320,7 +2320,7 @@ async def _remote_turn_with_open_call("""A Workbench Turn (by a remote principal unless ``author_id`` says otherwise) whose response opened a bash call; returns its job id."""from core.vibe_agents import VibeAgentStore- VibeAgentStore().ensure_builtin_default_agent(backend="avibe")+ VibeAgentStore().ensure_builtin_default_agent(backend="vibey")turn_id, delivery_id = f"turn_remote_{id(harness)}", f"dlv_remote_{id(harness)}"metadata = {"resource_user_context": dict(snapshot)} if snapshot is not None else {}with harness.engine.begin() as conn:@@ -2338,13 +2338,13 @@ async def _remote_turn_with_open_call(now=NOW,)message_deliveries.claim_start_batch(- conn, turn_id=turn_id, session_id=SESSION, backend="avibe", deliveries=[delivery],+ conn, turn_id=turn_id, session_id=SESSION, backend="vibey", deliveries=[delivery],dispatch_text="run the release",)context = _context("avibe", SESSION, turn_id=turn_id, delivery_id=delivery_id)harness.controller._native_start(context)await harness.agent.store.consume_input(SESSION, delivery_id, UserMessage((text("run the release"),)))- harness.agent.store.bind_agent(SESSION, "avibe")+ harness.agent.store.bind_agent(SESSION, "vibey")call = ToolCallBlock(id="call_release", name="bash", arguments={"command": "sleep 30"})await harness.agent.store.append_response(SESSION, assistant("", calls=(call,)), final=False)harness.agent.store.bind_agent(SESSION, None)@@ -2374,7 +2374,7 @@ async def test_a_remote_turns_job_watch_carries_its_authorization(engine, sessioawait harness.agent._tools().jobs.hand_over(job_id)watch = _job_watch(job_id)- assert watch.agent_name == "avibe"+ assert watch.agent_name == "vibey"assert watch.metadata["resource_user_context"]["sub"] == "remote-user-1"from core.watches import watch_allows_runtime@@ -2423,7 +2423,7 @@ async def test_startup_recovery_hands_a_job_over_with_its_turns_authorization(assert await agent.recover_runtime_state() == []watch = _job_watch(job_id)- assert watch is not None and watch.agent_name == "avibe"+ assert watch is not None and watch.agent_name == "vibey"for key, expected in authority.items():recorded = watch.metadata.get(key)assert {k: recorded[k] for k in expected} == expected if isinstance(expected, dict) else recorded == expected@@ -2439,7 +2439,7 @@ async def test_the_default_job_host_lives_in_the_watch_jobs_dir(engine, session,from core.watches import agent_jobs_dircontroller = _Controller(engine, "avibe")- suite = AvibeAgent(controller, engine=engine)._tools()+ suite = VibeyAgent(controller, engine=engine)._tools()job_id = await _real_job(suite, "true", call_id="call_true", cwd=tmp_path)try:# vibe stop's stop_all_jobs and the job-Watch sweep both look in this one directory.diff --git a/tests/test_avibe_agent_context.py b/tests/test_vibey_agent_context.pysimilarity index 97%rename from tests/test_avibe_agent_context.pyrename to tests/test_vibey_agent_context.pyindex 3925196e3..553bc6e1d 100644--- a/tests/test_avibe_agent_context.py+++ b/tests/test_vibey_agent_context.py@@ -20,9 +20,9 @@ from core.agent_core.ai.provider import Done, ProviderErrorfrom core.agent_core.harness.context import StateRequest, text_tokensfrom core.agent_core.messages import ToolCallBlock, UserMessage, textfrom core.agent_core.tools.base import ToolResult-from modules.agents.avibe.context import AvibeContextHost, mark_skill_loads+from modules.agents.vibey.context import VibeyContextHost, mark_skill_loadsfrom tests.agent_core.fakes import FakeTool, assistant-from tests.test_avibe_agent import ( # noqa: F401 (fixtures)+from tests.test_vibey_agent import ( # noqa: F401 (fixtures)SESSION,_SCOPES,_Harness,@@ -224,7 +224,7 @@ async def test_a_context_that_cannot_fit_locally_is_never_reported_as_a_source_fassert not harness.provider.requests and not reported # stopped before the provider: no source was involvedassert harness.controller.terminals[-1]["is_error"] is True# The message itself cannot fit, so the notice says that, not that the conversation has grown too long.- assert _texts(harness, "notify") == [f"❌ {i18n_t('avibeAgent.error.inputTooLarge', 'en')}"]+ assert _texts(harness, "notify") == [f"❌ {i18n_t('vibeyAgent.error.inputTooLarge', 'en')}"]async def _failing_commit(harness: _Harness) -> None:@@ -337,7 +337,7 @@ async def test_failed_checkpoints_are_silent_and_a_context_that_then_cannot_fit_# request the last result leaves cannot fit: it ends the Turn with the one notice, and nothing was compacted.assert sum(is_checkpoint(request) for request in harness.provider.requests) == 2assert not [row for row in await harness.context_rows() if row.kind == "compaction"]- assert _texts(harness, "notify") == [f"❌ {i18n_t('avibeAgent.error.contextExhausted', 'zh')}"]+ assert _texts(harness, "notify") == [f"❌ {i18n_t('vibeyAgent.error.contextExhausted', 'zh')}"]# --- the host's parts ------------------------------------------------------------------------------------@@ -353,7 +353,7 @@ async def test_the_earlier_record_hint_names_the_session_its_bound_and_its_fork_"fork_source_context_seq": 3,}_insert_session(conn, "ses_child", _SCOPES["avibe"], metadata)- host = AvibeContextHost(engine, environment=lambda _: {})+ host = VibeyContextHost(engine, environment=lambda _: {})hint = host.earlier_record("ses_child", 7)assert "messages table" in hint and "session_id = 'ses_child'" in hint and "through context_seq 7" in hint# It says plainly what is not there: tool output is re-run, not looked up.@@ -374,7 +374,7 @@ async def test_the_earlier_record_example_runs_through_the_real_read_only_guard(harness = _Harness(engine, tmp_path, "avibe", [[Done(assistant("first reply"))], [Done(assistant("second"))]])await _turn(harness, "the earliest question")await _turn(harness, "a later one")- hint = AvibeContextHost(engine, environment=lambda _: {}).earlier_record(SESSION, 2)+ hint = VibeyContextHost(engine, environment=lambda _: {}).earlier_record(SESSION, 2)(line,) = [line for line in hint.splitlines() if line.startswith("vibe data query ")]argv = shlex.split(line)assert argv[:4] == ["vibe", "data", "query", "--sql"] and len(argv) == 5@@ -387,7 +387,7 @@ async def test_the_earlier_record_example_runs_through_the_real_read_only_guard(def test_the_earlier_record_example_is_left_out_for_an_id_it_could_not_quote():- from modules.agents.avibe.context import example_query+ from modules.agents.vibey.context import example_queryassert example_query("ses_ok-1", 4).startswith('vibe data query --sql "SELECT ')assert example_query("ses'; DROP", 4) is None and example_query('ses"x', 4) is None@@ -404,7 +404,7 @@ async def test_the_state_is_the_environment_core_fields_each_bounded_in_bytes(en"timezone": "Zone/" + "時" * 2_000,"watches": 'wd_1 "CI" command running',}- host = AvibeContextHost(engine, environment=lambda _: fields)+ host = VibeyContextHost(engine, environment=lambda _: fields)(environment,) = await host.render_state(StateRequest(SESSION))lines = environment.splitlines()[1:-1]assert [line.split(": ", 1)[0] for line in lines] == ["cwd", "os", "shell", "date", "timezone"]@@ -414,7 +414,7 @@ async def test_the_state_is_the_environment_core_fields_each_bounded_in_bytes(enasync def test_a_3000_byte_cwd_is_kept_whole_on_every_input_and_in_the_state(engine, session):- from modules.agents.avibe.prompt import current_environment, render_environment+ from modules.agents.vibey.prompt import current_environment, render_environment# The cwd is never cut, only escaped: the model builds absolute paths from it, so a cut one would be false.cwd = "/工作区/" + "/".join(["目录" * 40] * 12) + "/a<b"@@ -422,7 +422,7 @@ async def test_a_3000_byte_cwd_is_kept_whole_on_every_input_and_in_the_state(engassert fields["cwd"] == cwd and len(cwd.encode()) > 2_900shown = cwd.replace("<", "\\u003c")assert f"\ncwd: {shown}\n" in render_environment(fields) # every input- host = AvibeContextHost(engine, environment=lambda _: fields)+ host = VibeyContextHost(engine, environment=lambda _: fields)(environment,) = await host.render_state(StateRequest(SESSION))assert f"\ncwd: {shown}\n" in environment and "…" not in environment@@ -498,7 +498,7 @@ async def test_a_threshold_checkpoint_and_an_overflow_roll_through_the_real_loopreplies."""import httpx- from modules.agents.avibe.models import registry_providers+ from modules.agents.vibey.models import registry_providersserved = json.dumps({"provider": "upstream", "api": "anthropic", "model": "served-model"}, separators=(",", ":"))overflow = json.dumps(diff --git a/tests/test_avibe_backend_registration.py b/tests/test_vibey_backend_registration.pysimilarity index 76%rename from tests/test_avibe_backend_registration.pyrename to tests/test_vibey_backend_registration.pyindex 251964f52..c4f483b79 100644--- a/tests/test_avibe_backend_registration.py+++ b/tests/test_vibey_backend_registration.py@@ -41,13 +41,13 @@ def test_released_config_shapes_preserve_native_settings(tmp_path, fixture):@pytest.mark.parametrize("persisted", [{"enabled": False}, {"enabled": True}, None, "invalid", {"enabled": "false"}])-def test_a_persisted_avibe_switch_loads_as_on_and_leaves_on_the_next_save(tmp_path, sqlite_db_factory, persisted):- """Builds with an Avibe Agent switch wrote ``agents.avibe``; the built-in backend has no switch to honor.+def test_a_persisted_vibey_switch_loads_as_on_and_leaves_on_the_next_save(tmp_path, sqlite_db_factory, persisted):+ """Builds with an Avibe Agent switch wrote ``agents.vibey``; the built-in backend has no switch to honor.Such a build also left its built-in Agent disabled while the switch was off."""payload = _full_config_payload()- payload["agents"]["avibe"] = persisted+ payload["agents"]["vibey"] = persistedpath = tmp_path / "config.json"path.write_text(json.dumps(payload))loaded = V2Config.load(path, persist_migrations=False)@@ -58,47 +58,47 @@ def test_a_persisted_avibe_switch_loads_as_on_and_leaves_on_the_next_save(tmp_pastore = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:store.create(- name="avibe",- backend="avibe",+ name="vibey",+ backend="vibey",source="builtin",- metadata={**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "avibe", "backend_enabled": False},+ metadata={**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "vibey", "backend_enabled": False},enabled=False,)store.ensure_builtin_default_agents(api._enabled_agent_backends_from_config(loaded))- assert store.get("avibe").enabled+ assert store.get("vibey").enabledassert store.get_default_agent_name() == "opencode"finally:store.close()loaded.save(path)saved = json.loads(path.read_text())- assert "avibe" not in saved["agents"]+ assert "vibey" not in saved["agents"]assert saved["agents"]["codex"]["enabled"] is True# Rows an earlier build may have left: (name, backend, source, metadata, enabled).-_BUILT_IN = {**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "avibe", "backend_enabled": True}+_BUILT_IN = {**BUILTIN_DEFAULT_AGENT_METADATA, "backend": "vibey", "backend_enabled": True}_EARLIER_ROWS = {"absent": None,- "disabled": ("avibe", "avibe", "builtin", _BUILT_IN, False),+ "disabled": ("vibey", "vibey", "builtin", _BUILT_IN, False),# Before the markers were the catalog's, a metadata update could strip them, and the row could then be renamed.- "markers-stripped": ("avibe", "avibe", "builtin", {}, False),- "markers-stripped-and-renamed": ("assistant", "avibe", "builtin", {}, False),+ "markers-stripped": ("vibey", "vibey", "builtin", {}, False),+ "markers-stripped-and-renamed": ("assistant", "vibey", "builtin", {}, False),# A user's own Agent already holds the catalog's name for the built-in.- "user-agent-same-backend": ("vibey", "avibe", "user", {}, False),+ "user-agent-same-backend": ("vibey", "vibey", "user", {}, False),"user-agent-other-backend": ("vibey", "claude", "user", {}, True),}@pytest.mark.parametrize("earlier_row", list(_EARLIER_ROWS))@pytest.mark.parametrize("enabled_backends", [[], ["claude"], list(NATIVE_CLI_BACKENDS)])-def test_the_startup_sync_leaves_the_built_in_avibe_agent_enabled(tmp_path, sqlite_db_factory, earlier_row, enabled_backends):+def test_the_startup_sync_leaves_the_built_in_vibey_agent_enabled(tmp_path, sqlite_db_factory, earlier_row, enabled_backends):"""Controller startup runs this sync first; Model Hub then seeds the Avibe supply onto that Agent row.Whatever backends the caller read from config, and whatever an earlier build left, exactly onebuilt-in Avibe Agent exists and is enabled once the sync returns, and the identity lookup namesit. A new one is named by the catalog. A row the store created stays the built-in under any name,- including the ``avibe`` an earlier build gave it; a user's own Agent keeps its name and state.+ including the ``vibey`` an earlier build gave it; a user's own Agent keeps its name and state."""store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:@@ -109,9 +109,9 @@ def test_the_startup_sync_leaves_the_built_in_avibe_agent_enabled(tmp_path, sqliearlier = store.create(name=name, backend=backend, source=source, metadata=metadata, enabled=enabled)store.ensure_builtin_default_agents(enabled_backends)- built_in = [agent for agent in store.list_agents() if agent.backend == "avibe" and is_always_enabled_agent(agent)]+ built_in = [agent for agent in store.list_agents() if agent.backend == "vibey" and is_always_enabled_agent(agent)]assert len(built_in) == 1 and built_in[0].enabled- assert store.get_builtin_default_agent_for_backend("avibe") == built_in[0]+ assert store.get_builtin_default_agent_for_backend("vibey") == built_in[0]if earlier is None:assert built_in[0].name == "vibey"if earlier is not None and earlier.source == "builtin":@@ -124,39 +124,39 @@ def test_the_startup_sync_leaves_the_built_in_avibe_agent_enabled(tmp_path, sqlistore.close()-def test_avibe_agent_can_be_created_listed_selected_and_routed(tmp_path, sqlite_db_factory):+def test_vibey_agent_can_be_created_listed_selected_and_routed(tmp_path, sqlite_db_factory):"""The store and shared run-target resolver must agree on the fourth backend."""store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- blank = store.create(name="unconfigured", backend="avibe")+ blank = store.create(name="unconfigured", backend="vibey")assert blank.model is None # No native model recommendation for an empty Hub catalog.- created = store.create(name="worker-工作助手", backend="avibe", model="team-model", system_prompt="Follow the plan.")+ created = store.create(name="worker-工作助手", backend="vibey", model="team-model", system_prompt="Follow the plan.")store.set_default_agent_name(created.name)assert [(agent.name, agent.backend) for agent in store.list_agents() if agent.id == created.id] == [- ("worker-工作助手", "avibe")+ ("worker-工作助手", "vibey")]config = V2Config.from_payload(_full_config_payload())controller = Controller.__new__(Controller)controller.primary_platform = "slack"controller.sqlite_engine = store.enginecontroller.config = to_app_config(config, resolve_agent_paths=False)- controller.agent_service = SimpleNamespace(agents={"avibe": object()})+ controller.agent_service = SimpleNamespace(agents={"vibey": object()})controller.vibe_agent_store = storecontroller._get_settings_key = lambda context: context.channel_idcontroller.get_settings_manager_for_context = lambda _context: SimpleNamespace(get_channel_routing=lambda _key: RoutingSettings(agent_name=created.name),)context = MessageContext(user_id="test", channel_id="C-test", platform="slack")- assert controller.resolve_agent_for_context(context) == "avibe"+ assert controller.resolve_agent_for_context(context) == "vibey"target = resolve_agent_run_target(context, controller=controller, create_session=False)- assert target.agent_backend == "avibe"+ assert target.agent_backend == "vibey"assert target.agent_name == "worker-工作助手"assert target.model == "team-model"finally:store.close()-def test_avibe_native_operations_are_rejected_before_any_native_probe(monkeypatch):+def test_vibey_native_operations_are_rejected_before_any_native_probe(monkeypatch):"""Expanding Agent registration must not enable the same id on native APIs."""from vibe import cli, global_agents_md@@ -167,20 +167,20 @@ def test_avibe_native_operations_are_rejected_before_any_native_probe(monkeypatcmonkeypatch.setattr(api, "load_config", forbidden)monkeypatch.setattr(api, "_runtime_command_dir", forbidden)monkeypatch.setattr(api, "MigrationFileLock", forbidden)- assert api.start_agent_install_job("avibe")["ok"] is False- assert api.install_agent("avibe")["ok"] is False- assert api.get_backend_runtime("avibe")["ok"] is False- assert api.restart_backend("avibe")["ok"] is False+ assert api.start_agent_install_job("vibey")["ok"] is False+ assert api.install_agent("vibey")["ok"] is False+ assert api.get_backend_runtime("vibey")["ok"] is False+ assert api.restart_backend("vibey")["ok"] is Falsewith pytest.raises(ValueError):- global_agents_md.global_instruction_path("avibe")+ global_agents_md.global_instruction_path("vibey")parser = cli.build_parser()- assert parser.parse_args(["agent", "create", "worker", "--backend", "avibe"]).backend == "avibe"- assert parser.parse_args(["agent", "models", "--backend", "avibe"]).backend == "avibe"+ assert parser.parse_args(["agent", "create", "worker", "--backend", "vibey"]).backend == "vibey"+ assert parser.parse_args(["agent", "models", "--backend", "vibey"]).backend == "vibey"with pytest.raises(SystemExit):- parser.parse_args(["agent", "import", "--from", "avibe", "--all"])+ parser.parse_args(["agent", "import", "--from", "vibey", "--all"])-def test_native_auth_refresh_preserves_enabled_avibe_builtin(tmp_path, sqlite_db_factory, monkeypatch):+def test_native_auth_refresh_preserves_enabled_vibey_builtin(tmp_path, sqlite_db_factory, monkeypatch):"""Native auth refresh synchronizes all built-ins from config, which has no section for the built-in backend."""from core.agent_auth_service import AgentAuthService@@ -188,22 +188,22 @@ def test_native_auth_refresh_preserves_enabled_avibe_builtin(tmp_path, sqlite_dbmonkeypatch.setattr(V2Config, "load", lambda: config)store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- store.ensure_builtin_default_agents(["avibe"])+ store.ensure_builtin_default_agents(["vibey"])service = AgentAuthService(SimpleNamespace(vibe_agent_store=store))service._sync_builtin_default_agents()vibey = store.get("vibey")assert vibey is not None and vibey.enabled- assert vibey.backend == "avibe"+ assert vibey.backend == "vibey"finally:store.close()-def test_avibe_model_options_come_from_configured_hub_catalog(monkeypatch):+def test_vibey_model_options_come_from_configured_hub_catalog(monkeypatch):"""A new backend must not fall through to the OpenCode provider reader."""from config.v2_config import ModelHubBackendModelConfigconfig = V2Config.from_payload(_full_config_payload())- config.model_hub.agents["avibe"].models = [+ config.model_hub.agents["vibey"].models = [ModelHubBackendModelConfig(id="team-model", origin="manual", display_name="Team Model",reasoning_efforts=["low", "high"], supports_reasoning=True,@@ -211,24 +211,24 @@ def test_avibe_model_options_come_from_configured_hub_catalog(monkeypatch):]monkeypatch.setattr(V2Config, "load", lambda: config)monkeypatch.setattr(api, "_opencode_model_options", lambda **_: pytest.fail("native model lookup"))- assert api.agent_model_options("avibe")["models"] == [+ assert api.agent_model_options("vibey")["models"] == [{"value": "team-model", "label": "Team Model", "reasoning_efforts": ["low", "high"]}]- config.model_hub.agents["avibe"].models = []- assert api.agent_model_options("avibe")["models"] == []+ config.model_hub.agents["vibey"].models = []+ assert api.agent_model_options("vibey")["models"] == []def _hub_catalog(*model_ids, origin="provider"):from config.v2_config import ModelHubBackendModelConfig, ModelHubConfigconfig = ModelHubConfig()- config.agents["avibe"].models = [ModelHubBackendModelConfig(id=model_id, origin=origin) for model_id in model_ids]+ config.agents["vibey"].models = [ModelHubBackendModelConfig(id=model_id, origin=origin) for model_id in model_ids]return SimpleNamespace(store=SimpleNamespace(load=lambda: config))[email protected]("avibe", ["seeded", "user-built list", "chosen", "name taken", "empty list"])-def test_avibe_agent_runs_its_catalogs_first_model_until_it_has_one(tmp_path, sqlite_db_factory, avibe):- """MH-AVIBE-007: the Agent rows behind the Hub seed, owned by this process.[email protected]("vibey", ["seeded", "user-built list", "chosen", "name taken", "empty list"])+def test_vibey_agent_runs_its_catalogs_first_model_until_it_has_one(tmp_path, sqlite_db_factory, vibey):+ """MH-VIBEY-007: the Agent rows behind the Hub seed, owned by this process.The built-in native Agents' models feed the seed in backend-name order. AnAvibe Agent without a model cannot run a turn, so it takes its catalog's@@ -238,45 +238,45 @@ def test_avibe_agent_runs_its_catalogs_first_model_until_it_has_one(tmp_path, sq"""store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- if avibe == "name taken":+ if vibey == "name taken":store.create(name="vibey", backend="claude", model="claude-haiku-4-5")- store.ensure_builtin_default_agents(["opencode", "claude", "codex", "avibe"])+ store.ensure_builtin_default_agents(["opencode", "claude", "codex", "vibey"])store.create(name="reviewer", backend="claude", model="claude-sonnet-5-5")for name, model in (("claude", "claude-opus-5-5"), ("codex", "gpt-5.5"), ("opencode", "openai/gpt-6-sol")):store.update(name, model=model)- if avibe == "chosen":+ if vibey == "chosen":store.update("vibey", model="chosen-model")controller = Controller.__new__(Controller)controller.vibe_agent_store = storecontroller.model_hub_service = {"empty list": _hub_catalog(),"user-built list": _hub_catalog("my-relay-model", "gpt-5.5", origin="manual"),- }.get(avibe, _hub_catalog("gpt-5.5", "claude-opus-5-5"))+ }.get(vibey, _hub_catalog("gpt-5.5", "claude-opus-5-5"))assert controller._builtin_agent_models() == [("claude", "claude-opus-5-5"), ("codex", "gpt-5.5"), ("opencode", "openai/gpt-6-sol"),]- controller._reconcile_avibe_agent_model()+ controller._reconcile_vibey_agent_model()assert (store.get("vibey").backend, store.get("vibey").model) == {- "seeded": ("avibe", "gpt-5.5"),- "user-built list": ("avibe", "my-relay-model"),- "chosen": ("avibe", "chosen-model"),+ "seeded": ("vibey", "gpt-5.5"),+ "user-built list": ("vibey", "my-relay-model"),+ "chosen": ("vibey", "chosen-model"),"name taken": ("claude", "claude-haiku-4-5"),- "empty list": ("avibe", None),- }[avibe]+ "empty list": ("vibey", None),+ }[vibey]finally:store.close()-def test_a_lost_avibe_model_hand_off_heals_on_the_next_start(tmp_path, sqlite_db_factory, monkeypatch):- """MH-AVIBE-007: a failed Agent write after a committed seed heals at the next start."""+def test_a_lost_vibey_model_hand_off_heals_on_the_next_start(tmp_path, sqlite_db_factory, monkeypatch):+ """MH-VIBEY-007: a failed Agent write after a committed seed heals at the next start."""store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- store.ensure_builtin_default_agents(["avibe"])+ store.ensure_builtin_default_agents(["vibey"])controller = Controller.__new__(Controller)controller.vibe_agent_store = storehub = _hub_catalog("gpt-5.5")- controller.model_hub_service = SimpleNamespace(store=hub.store, seed_avibe_supply=AsyncMock(return_value=[]))+ controller.model_hub_service = SimpleNamespace(store=hub.store, seed_vibey_supply=AsyncMock(return_value=[]))real_update = store.updatedef locked_database(*args, **kwargs):@@ -284,19 +284,19 @@ def test_a_lost_avibe_model_hand_off_heals_on_the_next_start(tmp_path, sqlite_db# The seed's catalog announcement: its reconciliation fails, the supply stays.monkeypatch.setattr(store, "update", locked_database)- asyncio.run(controller._model_hub_catalog_changed("avibe"))+ asyncio.run(controller._model_hub_catalog_changed("vibey"))assert store.get("vibey").model is Nonemonkeypatch.setattr(store, "update", real_update)- asyncio.run(controller._seed_avibe_model_supply())+ asyncio.run(controller._seed_vibey_model_supply())assert store.get("vibey").model == "gpt-5.5"finally:store.close()@pytest.mark.asyncio-async def test_the_first_model_a_user_adds_makes_the_avibe_agent_runnable(tmp_path, sqlite_db_factory):- """MH-AVIBE-007: any Avibe catalog change reconciles the Agent, not only a seed.+async def test_the_first_model_a_user_adds_makes_the_vibey_agent_runnable(tmp_path, sqlite_db_factory):+ """MH-VIBEY-007: any Avibe catalog change reconciles the Agent, not only a seed.A seed that found no starting model leaves the catalog empty; the model theuser then adds by hand reaches the Agent without a restart, through the@@ -306,7 +306,7 @@ async def test_the_first_model_a_user_adds_makes_the_avibe_agent_runnable(tmp_pastore = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- store.ensure_builtin_default_agents(["avibe"])+ store.ensure_builtin_default_agents(["vibey"])service = _service(tmp_path, sources=[_source("src_relay0001", "Relay", protocol="openai_chat", model_id="relay-model")])_canonicalize_fixed_test_routes(service)controller = Controller.__new__(Controller)@@ -314,10 +314,10 @@ async def test_the_first_model_a_user_adds_makes_the_avibe_agent_runnable(tmp_pacontroller.model_hub_service = serviceservice.backend_catalog_changed = controller._model_hub_catalog_changed- assert await service.seed_avibe_supply() == []+ assert await service.seed_vibey_supply() == []assert store.get("vibey").model is None- candidate, = service.agent_model_candidates("avibe")["providers"]- await service.set_agent_models("avibe", [], [{key: value for key, value in candidate.items() if key != "suppliers"}])+ candidate, = service.agent_model_candidates("vibey")["providers"]+ await service.set_agent_models("vibey", [], [{key: value for key, value in candidate.items() if key != "suppliers"}])assert store.get("vibey").model == "relay-model"finally:store.close()@@ -325,7 +325,7 @@ async def test_the_first_model_a_user_adds_makes_the_avibe_agent_runnable(tmp_pa@pytest.mark.asyncioasync def test_a_starting_model_needs_a_source_that_lists_it(tmp_path, sqlite_db_factory):- """MH-AVIBE-007: a Source's inventory, not a route, decides a starting model.+ """MH-VIBEY-007: a Source's inventory, not a route, decides a starting model.An Anthropic key could pass any model id through, but it lists only Claudemodels: the Codex Agent's ``gpt-6-astra`` is no starting model for Avibe,@@ -336,7 +336,7 @@ async def test_a_starting_model_needs_a_source_that_lists_it(tmp_path, sqlite_dbstore = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- store.ensure_builtin_default_agents(["codex", "avibe"])+ store.ensure_builtin_default_agents(["codex", "vibey"])store.update("codex", model="gpt-6-astra")service = _service(tmp_path, sources=[])service.store.config = ModelHubConfig()@@ -352,8 +352,8 @@ async def test_a_starting_model_needs_a_source_that_lists_it(tmp_path, sqlite_dbasync with service._mutation_lock:await service._commit_new_source_locked(anthropic)- avibe = service.store.load().agents["avibe"]- assert (avibe.sources.order, avibe.models) == ([anthropic.id], [])+ vibey = service.store.load().agents["vibey"]+ assert (vibey.sources.order, vibey.models) == ([anthropic.id], [])assert store.get("vibey").model is Nonefinally:store.close()@@ -363,8 +363,8 @@ async def test_a_starting_model_needs_a_source_that_lists_it(tmp_path, sqlite_dbdef test_choosing_the_built_in_backend_in_an_im_picker_routes_to_its_agent(tmp_path, sqlite_db_factory, name_taken):"""An IM picker chooses a backend; the routing it saves names that backend's built-in Agent.- The built-in is no longer named after its backend id, so saving the id would leave a- reference no Agent answers to, and every message on that channel would fail to resolve.+ While a user's Agent holds ``vibey`` the built-in takes the next free name, so saving the id+ would route the channel to that user's Agent instead of the built-in."""from core.handlers.settings_handler import SettingsHandler@@ -373,7 +373,7 @@ def test_choosing_the_built_in_backend_in_an_im_picker_routes_to_its_agent(tmp_pif name_taken:store.create(name="vibey", backend="claude")store.ensure_builtin_default_agents(["claude"])- built_in = store.get_builtin_default_agent_for_backend("avibe")+ built_in = store.get_builtin_default_agent_for_backend("vibey")assert built_in.name == ("vibey-2" if name_taken else "vibey")saved: dict[str, RoutingSettings] = {}@@ -386,7 +386,7 @@ def test_choosing_the_built_in_backend_in_an_im_picker_routes_to_its_agent(tmp_pcontroller.primary_platform = "slack"controller.sqlite_engine = store.enginecontroller.config = to_app_config(config, resolve_agent_paths=False)- controller.agent_service = SimpleNamespace(agents={"avibe": object(), "claude": object()})+ controller.agent_service = SimpleNamespace(agents={"vibey": object(), "claude": object()})controller.vibe_agent_store = storecontroller.settings_manager = settings_managercontroller._get_settings_key = lambda context: context.channel_id@@ -397,7 +397,7 @@ def test_choosing_the_built_in_backend_in_an_im_picker_routes_to_its_agent(tmp_phandler._get_settings_key = lambda context: context.channel_idhandler._get_settings_manager = lambda context: settings_manager- for backend, expected in (("avibe", built_in.name), ("claude", "claude")):+ for backend, expected in (("vibey", built_in.name), ("claude", "claude")):asyncio.run(handler.handle_routing_update(user_id="U1", channel_id="C-test", backend=backend,opencode_agent=None, opencode_model=None, claude_agent=None, claude_model=None,@@ -411,28 +411,31 @@ def test_choosing_the_built_in_backend_in_an_im_picker_routes_to_its_agent(tmp_pstore.close()[email protected]("user_holds_avibe", [False, True])-def test_routing_saved_as_the_backend_id_still_resolves(tmp_path, sqlite_db_factory, user_holds_avibe):- """Routing saved while the built-in was named ``avibe`` holds that id: it means the built-in.+def test_routing_saved_as_the_backend_id_still_resolves(tmp_path, sqlite_db_factory):+ """Routing that holds a backend id means that backend's built-in Agent, unless an Agent really has the name.- An Agent that really has the name keeps it, as any name lookup does.+ The built-in takes the next free name while a user's Agent holds ``vibey``; once that Agent+ gives the name up, routing saved as ``vibey`` reaches the built-in again."""store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))try:- if user_holds_avibe:- store.create(name="avibe", backend="claude")+ store.create(name="vibey", backend="claude")store.ensure_builtin_default_agents([])- built_in = store.get_builtin_default_agent_for_backend("avibe")- assert built_in.name == "vibey"+ built_in = store.get_builtin_default_agent_for_backend("vibey")+ assert built_in.name == "vibey-2"controller = Controller.__new__(Controller)controller.primary_platform = "slack"controller.vibe_agent_store = storecontroller._get_settings_key = lambda context: context.channel_idcontroller.get_settings_manager_for_context = lambda _context: SimpleNamespace(- get_channel_routing=lambda _key: RoutingSettings(agent_name="avibe"),+ get_channel_routing=lambda _key: RoutingSettings(agent_name="vibey"),)- resolved = controller.resolve_vibe_agent_for_context(MessageContext(user_id="U1", channel_id="C1", platform="slack"))- assert (resolved.name, resolved.backend) == (("avibe", "claude") if user_holds_avibe else ("vibey", "avibe"))+ context = MessageContext(user_id="U1", channel_id="C1", platform="slack")+ resolved = controller.resolve_vibe_agent_for_context(context)+ assert (resolved.name, resolved.backend) == ("vibey", "claude")+ store.rename("vibey", "helper")+ resolved = controller.resolve_vibe_agent_for_context(context)+ assert (resolved.name, resolved.backend) == ("vibey-2", "vibey")with pytest.raises(Exception, match="not found"):store.require_reference("opencode") # A backend with no built-in row names nothing.finally:diff --git a/tests/test_watch_job_target.py b/tests/test_watch_job_target.pyindex fe53d6675..f0878cec6 100644--- a/tests/test_watch_job_target.py+++ b/tests/test_watch_job_target.py@@ -63,7 +63,7 @@ def _job_session():conn.execute(insert(agent_sessions).values(id=SESSION_ID,- agent_backend="avibe",+ agent_backend="vibey",agent_variant="default",session_anchor=SESSION_ID,native_session_id=SESSION_ID,diff --git a/ui/src/App.tsx b/ui/src/App.tsxindex 0874c5796..e50923cb1 100644--- a/ui/src/App.tsx+++ b/ui/src/App.tsx@@ -719,7 +719,7 @@ const settingsRoute = () => (<Route path="backends/opencode" element={<SettingsOpencodeProviderPage />} /><Route path="backends/claude" element={<SettingsClaudeProviderPage />} /><Route path="backends/codex" element={<SettingsCodexProviderPage />} />- <Route path="backends/avibe" element={<SettingsBackendPage backend="avibe" />} />+ <Route path="backends/vibey" element={<SettingsBackendPage backend="vibey" />} /><Routepath="models"element={diff --git a/ui/src/components/onboarding/setupTargets.ts b/ui/src/components/onboarding/setupTargets.tsindex 2a283654e..d2d7c2624 100644--- a/ui/src/components/onboarding/setupTargets.ts+++ b/ui/src/components/onboarding/setupTargets.ts@@ -1,5 +1,4 @@import type { VibeAgentBrief, VibeAgentFull } from '../../context/ApiContext';-import { getBackendUiMeta } from '@/lib/agentBackends';import { ASSISTANT_ORDER, type AssistantId } from './collaborationTimeline';/**@@ -38,7 +37,7 @@ export function setupTargetFor<T extends SetupTargetAgent>(): T | null {const pool = agents.filter((agent) =>agent.backend === backend && agent.enabled && !agent.archived && isBuiltinAgent(agent));- return pool.find((agent) => agent.name === getBackendUiMeta(backend).builtinAgentName)+ return pool.find((agent) => agent.name === backend)?? pool.find((agent) => agent.name === DEFAULT_AGENT_NAME)?? [...pool].sort(byName)[0]?? null;diff --git a/ui/src/components/settings/SettingsBackendsPage.test.tsx b/ui/src/components/settings/SettingsBackendsPage.test.tsxindex 62d262c36..d8e9fef7a 100644--- a/ui/src/components/settings/SettingsBackendsPage.test.tsx+++ b/ui/src/components/settings/SettingsBackendsPage.test.tsx@@ -38,7 +38,7 @@ beforeEach(async () => {await i18n.changeLanguage('en');mocks.api.getConfig.mockResolvedValue({ agents: {} });mocks.api.detectCli.mockImplementation(async (binary: string) => ({ found: true, path: binary }));- mocks.api.mutateConfig.mockResolvedValue({ agents: { avibe: { enabled: true } } });+ mocks.api.mutateConfig.mockResolvedValue({ agents: { vibey: { enabled: true } } });});afterEach(() => {@@ -51,7 +51,7 @@ const renderBackends = () => render(<MemoryRouter initialEntries={['/settings/backends']}><Routes><Route path="/settings/backends" element={<SettingsBackendsPage />} />- <Route path="/settings/backends/avibe" element={<SettingsBackendPage backend="avibe" />} />+ <Route path="/settings/backends/vibey" element={<SettingsBackendPage backend="vibey" />} /></Routes></MemoryRouter></I18nextProvider>,@@ -65,14 +65,14 @@ describe('built-in backend settings', () => {it('lists Avibe first as Built-in with no switch, and its page has no switch or native actions', async () => {renderBackends();- const avibe = await rowOf('Vibey');+ const vibey = await rowOf('Vibey');const rows = [...document.querySelectorAll('.rounded-xl')];expect(rows.map((row) => row.querySelector('span.font-semibold')?.textContent)).toEqual(['Vibey', 'OpenCode', 'Claude Code', 'Codex',]);- expect(within(avibe).getByText('Built-in')).toBeTruthy();- expect(within(avibe).queryByRole('switch')).toBeNull();- expect(within(avibe).queryByTestId('lifecycle-avibe')).toBeNull();+ expect(within(vibey).getByText('Built-in')).toBeTruthy();+ expect(within(vibey).queryByRole('switch')).toBeNull();+ expect(within(vibey).queryByTestId('lifecycle-vibey')).toBeNull();for (const name of ['OpenCode', 'Claude Code', 'Codex']) {const row = await rowOf(name);expect(within(row).getByRole('switch')).toBeTruthy();@@ -80,8 +80,8 @@ describe('built-in backend settings', () => {}await waitFor(() => expect(mocks.api.detectCli).toHaveBeenCalledTimes(3));expect(mocks.api.detectCli.mock.calls.map(([binary]) => binary).sort()).toEqual(['claude', 'codex', 'opencode']);- const configure = within(avibe).getByRole('link', { name: 'Configure' });- expect(configure.getAttribute('href')).toBe('/settings/backends/avibe');+ const configure = within(vibey).getByRole('link', { name: 'Configure' });+ expect(configure.getAttribute('href')).toBe('/settings/backends/vibey');fireEvent.click(configure);await screen.findByRole('heading', { level: 1, name: 'Vibey' });@@ -89,7 +89,7 @@ describe('built-in backend settings', () => {expect(screen.queryByRole('switch')).toBeNull();expect(screen.queryByRole('textbox')).toBeNull();expect(screen.queryByRole('button', { name: /Detect|Install|Restart|Save|Sign in/i })).toBeNull();- expect(screen.queryByTestId('lifecycle-avibe')).toBeNull();+ expect(screen.queryByTestId('lifecycle-vibey')).toBeNull();expect(mocks.api.mutateConfig).not.toHaveBeenCalled();expect(mocks.api.detectCli).toHaveBeenCalledTimes(3);expect(mocks.api.getBackendRuntime).not.toHaveBeenCalled();@@ -101,8 +101,8 @@ describe('built-in backend settings', () => {describe('backend attention', () => {const withoutModel = [{- backend: 'avibe', cli_present: false, mode: 'hub', menu_kind: 'fixed',- named_agents: [{ name: 'avibe', effective_model_id: null, supply_status: null }],+ backend: 'vibey', cli_present: false, mode: 'hub', menu_kind: 'fixed',+ named_agents: [{ name: 'vibey', effective_model_id: null, supply_status: null }],},{backend: 'claude', cli_present: true, mode: 'hub', menu_kind: 'fixed',@@ -113,7 +113,7 @@ describe('backend attention', () => {const modelHubConfig = (enabled: boolean) => ({agents: {},capabilities: { model_hub: { enabled: true } },- agent_supply_blocks: enabled ? {} : { avibe: 'gateway_off' },+ agent_supply_blocks: enabled ? {} : { vibey: 'gateway_off' },});it('flags the always-on backend whose Agent has no model', async () => {@@ -121,9 +121,9 @@ describe('backend attention', () => {mocks.api.getConfig.mockResolvedValue(modelHubConfig(true));renderBackends();- const avibe = await rowOf('Vibey');- expect(await within(avibe).findByText('No model selected')).toBeTruthy();- expect(within(avibe).queryByText('Gateway off')).toBeNull();+ const vibey = await rowOf('Vibey');+ expect(await within(vibey).findByText('No model selected')).toBeTruthy();+ expect(within(vibey).queryByText('Gateway off')).toBeNull();expect(within(await rowOf('Claude Code')).queryByText('No model selected')).toBeNull();});@@ -134,12 +134,12 @@ describe('backend attention', () => {mocks.api.getConfig.mockResolvedValue(modelHubConfig(false));renderBackends();- const avibe = await rowOf('Vibey');- expect(await within(avibe).findByText('Gateway off')).toBeTruthy();- expect(within(avibe).queryByText('No model selected')).toBeNull();+ const vibey = await rowOf('Vibey');+ expect(await within(vibey).findByText('Gateway off')).toBeTruthy();+ expect(within(vibey).queryByText('No model selected')).toBeNull();expect(within(await rowOf('Claude Code')).queryByText('Gateway off')).toBeNull();- fireEvent.click(within(avibe).getByRole('link', { name: 'Configure' }));+ fireEvent.click(within(vibey).getByRole('link', { name: 'Configure' }));expect(await screen.findByText('The model gateway is off, so Vibey has no model to run on.')).toBeTruthy();expect(screen.getByRole('link', { name: 'Open Models page' }).getAttribute('href')).toBe('/settings/models');});@@ -149,15 +149,15 @@ describe('backend attention', () => {it('says Model Hub is disabled when the instance turns it off', async () => {vi.spyOn(modelsApi, 'listAgents').mockResolvedValue(withoutModel);mocks.api.getConfig.mockResolvedValue({- agents: {}, capabilities: { model_hub: { enabled: false } }, agent_supply_blocks: { avibe: 'hub_disabled' },+ agents: {}, capabilities: { model_hub: { enabled: false } }, agent_supply_blocks: { vibey: 'hub_disabled' },});renderBackends();- const avibe = await rowOf('Vibey');- expect(await within(avibe).findByText('Model Hub disabled')).toBeTruthy();+ const vibey = await rowOf('Vibey');+ expect(await within(vibey).findByText('Model Hub disabled')).toBeTruthy();expect(within(await rowOf('Claude Code')).queryByText('Model Hub disabled')).toBeNull();- fireEvent.click(within(avibe).getByRole('link', { name: 'Configure' }));+ fireEvent.click(within(vibey).getByRole('link', { name: 'Configure' }));expect(await screen.findByText('Model Hub is disabled on this instance, so Vibey has no model to run on.')).toBeTruthy();expect(screen.queryByRole('link', { name: 'Open Models page' })).toBeNull();});diff --git a/ui/src/components/settings/models/AgentCard.test.tsx b/ui/src/components/settings/models/AgentCard.test.tsxindex 3da08b7d2..1c2220a33 100644--- a/ui/src/components/settings/models/AgentCard.test.tsx+++ b/ui/src/components/settings/models/AgentCard.test.tsx@@ -79,7 +79,7 @@ describe('backend brand ownership', () => {{ backend: 'claude', label: 'Claude Code' },{ backend: 'codex', label: 'Codex' },{ backend: 'opencode', label: 'OpenCode' },- { backend: 'avibe', label: 'Vibey' },+ { backend: 'vibey', label: 'Vibey' },] as const;for (const { backend } of rows) {locale.addResource(language, 'translation', `settings.models.backends.${backend}`, 'Obsolete localized brand');diff --git a/ui/src/components/settings/models/BackendSupplyModeCard.test.tsx b/ui/src/components/settings/models/BackendSupplyModeCard.test.tsxindex d0d11675f..ee4c7118f 100644--- a/ui/src/components/settings/models/BackendSupplyModeCard.test.tsx+++ b/ui/src/components/settings/models/BackendSupplyModeCard.test.tsx@@ -63,11 +63,11 @@ const renderCard = () =>describe('BackendSupplyModeCard', () => {it('offers the Avibe gateway model link without native configuration scanning or direct mode', async () => {- vi.mocked(modelsApi.listAgents).mockResolvedValue([{ backend: 'avibe', cli_present: false, mode: 'hub', menu_kind: 'fixed' }]);+ vi.mocked(modelsApi.listAgents).mockResolvedValue([{ backend: 'vibey', cli_present: false, mode: 'hub', menu_kind: 'fixed' }]);const setMode = vi.spyOn(modelsApi, 'setAgentMode');render(<MemoryRouter>- <I18nextProvider i18n={i18n}><BackendSupplyModeCard backend="avibe" /></I18nextProvider>+ <I18nextProvider i18n={i18n}><BackendSupplyModeCard backend="vibey" /></I18nextProvider></MemoryRouter>,);const hub = await screen.findByRole('radio', { name: /Gateway mode/ });@@ -85,11 +85,11 @@ describe('BackendSupplyModeCard', () => {])('punctuates the warning and its fix as one %s sentence pair', async (language, banner) => {await i18n.changeLanguage(language);vi.mocked(modelsApi.listAgents).mockResolvedValue([- { backend: 'avibe', cli_present: false, mode: 'hub', menu_kind: 'fixed', sources: { order: [] } },+ { backend: 'vibey', cli_present: false, mode: 'hub', menu_kind: 'fixed', sources: { order: [] } },]);render(<MemoryRouter>- <I18nextProvider i18n={i18n}><BackendSupplyModeCard backend="avibe" /></I18nextProvider>+ <I18nextProvider i18n={i18n}><BackendSupplyModeCard backend="vibey" /></I18nextProvider></MemoryRouter>,);expect((await screen.findByText(banner)).textContent).toBe(banner);diff --git a/ui/src/components/settings/models/SettingsModelsPage.render.test.tsx b/ui/src/components/settings/models/SettingsModelsPage.render.test.tsxindex 1cd061d51..980472eba 100644--- a/ui/src/components/settings/models/SettingsModelsPage.render.test.tsx+++ b/ui/src/components/settings/models/SettingsModelsPage.render.test.tsx@@ -35,8 +35,8 @@ const directAgent = (backend: AgentBackend): AgentSupply => ({menu_kind: backend === 'opencode' ? 'open' : 'fixed',});-const emptyAvibeAgent: AgentSupply = {- backend: 'avibe', cli_present: false, mode: 'hub', menu_kind: 'fixed', catalog_models: [],+const emptyVibeyAgent: AgentSupply = {+ backend: 'vibey', cli_present: false, mode: 'hub', menu_kind: 'fixed', catalog_models: [],};// Named separately from `runtime` so it keeps the arm of `RuntimeManifest` it@@ -267,7 +267,7 @@ const renderPage = (directAgent('claude'),directAgent('codex'),directAgent('opencode'),- emptyAvibeAgent,+ emptyVibeyAgent,]);vi.spyOn(modelsApi, 'getRuntimeStatus').mockResolvedValue(runtimeValue);vi.spyOn(modelsApi, 'listEvents').mockResolvedValue([]);@@ -918,7 +918,7 @@ describe('SettingsModelsPage surface branches', () => {// The in-process catalog is configurable even when empty and without a CLI.// Runtime Stop still depends on whether that catalog actually owns models.- it.each([false, true])('MH-AVIBE-003 derives runtime use from Avibe catalog presence: %s', async (configured) => {+ it.each([false, true])('MH-VIBEY-003 derives runtime use from Avibe catalog presence: %s', async (configured) => {const catalogModel: BackendModel = {id: 'menu-alias', display_name: null, origin: 'manual', models_dev_id: null,context_window: null, max_output_tokens: null, input_modalities: [], output_modalities: [],@@ -926,16 +926,16 @@ describe('SettingsModelsPage surface branches', () => {};renderPage([], [directAgent('claude'), directAgent('codex'), directAgent('opencode'),- { ...emptyAvibeAgent, catalog_models: configured ? [catalogModel] : [] },+ { ...emptyVibeyAgent, catalog_models: configured ? [catalogModel] : [] },]);const stop = vi.spyOn(modelsApi, 'stopRuntime').mockResolvedValue({ ...runtime, enabled: false });const toggle = await screen.findByRole('switch', {name: configured ? /Vibey's models use|Vibey 的模型通过/i : /Turn model gateway off|关闭模型网关/i,});expect((toggle as HTMLButtonElement).disabled).toBe(configured);- const avibeCard = (await screen.findByText('Vibey')).closest('[data-agent-backend]') as HTMLElement;- expect(within(avibeCard).getAllByRole('button', { name: /^Manage models$|^管理模型$/i }).length).toBeGreaterThan(0);- await userEvent.click(within(avibeCard).getByRole('button', { name: /Runtime mode:|运行模式[::]/i }));+ const vibeyCard = (await screen.findByText('Vibey')).closest('[data-agent-backend]') as HTMLElement;+ expect(within(vibeyCard).getAllByRole('button', { name: /^Manage models$|^管理模型$/i }).length).toBeGreaterThan(0);+ await userEvent.click(within(vibeyCard).getByRole('button', { name: /Runtime mode:|运行模式[::]/i }));const modeGroup = await screen.findByRole('group', { name: /Runtime mode|运行模式/i });expect(within(modeGroup).queryByRole('button', { name: /Switch to direct|切到直连/i })).toBeNull();await userEvent.click(within(modeGroup).getByRole('button', { pressed: true }));diff --git a/ui/src/components/settings/models/SettingsModelsPage.tsx b/ui/src/components/settings/models/SettingsModelsPage.tsxindex 46a6d2341..786e2117e 100644--- a/ui/src/components/settings/models/SettingsModelsPage.tsx+++ b/ui/src/components/settings/models/SettingsModelsPage.tsx@@ -1178,7 +1178,7 @@ export const SettingsModelsPage: React.FC = () => {const runtimeSwitchLabel = stopBlocked? supplyRead.kind === 'ready'? builtinHubBackend- ? t('settings.models.shell.toggle.stopAvibeBlocked', { name: getBackendUiMeta(builtinHubBackend).label })+ ? t('settings.models.shell.toggle.stopVibeyBlocked', { name: getBackendUiMeta(builtinHubBackend).label }): t('settings.models.shell.toggle.stopBlocked', { names: hubBackends.join(', ') }): t('settings.models.shell.toggle.stopUnavailable'): runtimeEnableddiff --git a/ui/src/components/settings/models/vendorMeta.ts b/ui/src/components/settings/models/vendorMeta.tsindex cc5b0e29c..2b9653b25 100644--- a/ui/src/components/settings/models/vendorMeta.ts+++ b/ui/src/components/settings/models/vendorMeta.ts@@ -74,7 +74,7 @@ export const BACKEND_IDENTITY_ACCENT = {claude: 'cyan',codex: 'mint',opencode: 'violet',- avibe: 'muted',+ vibey: 'muted',} as const satisfies Record<AgentBackend, Accent>;// The icon is the backend's own, from the one backend visuals table.diff --git a/ui/src/components/settings/shared/useBackendRuntime.test.tsx b/ui/src/components/settings/shared/useBackendRuntime.test.tsxindex 402ee9948..5ddfaa763 100644--- a/ui/src/components/settings/shared/useBackendRuntime.test.tsx+++ b/ui/src/components/settings/shared/useBackendRuntime.test.tsx@@ -52,7 +52,7 @@ const mountRuntime = async () => {describe('persisted backend install paths', () => {it('reads the built-in backend as enabled without a config section and rejects CLI work at the hook boundary', async () => {- const hook = renderHook(() => useBackendRuntime({ backend: 'avibe' }));+ const hook = renderHook(() => useBackendRuntime({ backend: 'vibey' }));await waitFor(() => expect(hook.result.current.loaded).toBe(true));expect(hook.result.current.enabled).toBe(true);expect(hook.result.current.cliPath).toBe('');diff --git a/ui/src/components/shared/RoutingConfigPanel.legacy.test.tsx b/ui/src/components/shared/RoutingConfigPanel.legacy.test.tsxindex 115e7d803..57d41058e 100644--- a/ui/src/components/shared/RoutingConfigPanel.legacy.test.tsx+++ b/ui/src/components/shared/RoutingConfigPanel.legacy.test.tsx@@ -25,22 +25,23 @@ const agent = (name: string, backend: string, source: string): VibeAgentBrief =>describe('RoutingConfigPanel', () => {afterEach(() => { cleanup(); pickerValues.length = 0; });- // Routing saved while the built-in was named after its backend holds the id "avibe".- it('shows a legacy backend-id route as that backend’s built-in Agent', () => {+ // Routing that holds a backend id means that backend's built-in Agent, which takes the+ // next free name (vibey-2) while a user's Agent holds the id.+ it('shows a backend-id route as that backend’s built-in Agent', () => {render(<RoutingConfigPanel- value={{ custom_cwd: '', routing: { agent_name: 'avibe' }, show_message_types: [] }}+ value={{ custom_cwd: '', routing: { agent_name: 'vibey' }, show_message_types: [] }}onChange={() => {}} onBrowseDirectory={() => {}} globalConfig={{}}- vibeAgents={[agent('vibey', 'avibe', 'builtin'), agent('claude', 'claude', 'builtin')]}+ vibeAgents={[agent('vibey-2', 'vibey', 'builtin'), agent('claude', 'claude', 'builtin')]}/>);- expect(pickerValues.at(-1)).toMatchObject({ agent_backend: 'avibe', agent_name: 'vibey', model: 'vibey-model' });+ expect(pickerValues.at(-1)).toMatchObject({ agent_backend: 'vibey', agent_name: 'vibey-2', model: 'vibey-2-model' });});it('prefers an Agent that really has the name', () => {render(<RoutingConfigPanel- value={{ custom_cwd: '', routing: { agent_name: 'avibe' }, show_message_types: [] }}+ value={{ custom_cwd: '', routing: { agent_name: 'vibey' }, show_message_types: [] }}onChange={() => {}} onBrowseDirectory={() => {}} globalConfig={{}}- vibeAgents={[agent('vibey', 'avibe', 'builtin'), agent('avibe', 'claude', 'custom')]}+ vibeAgents={[agent('vibey-2', 'vibey', 'builtin'), agent('vibey', 'claude', 'custom')]}/>);- expect(pickerValues.at(-1)).toMatchObject({ agent_backend: 'claude', agent_name: 'avibe' });+ expect(pickerValues.at(-1)).toMatchObject({ agent_backend: 'claude', agent_name: 'vibey' });});});diff --git a/ui/src/components/shared/RoutingConfigPanel.tsx b/ui/src/components/shared/RoutingConfigPanel.tsxindex 665576d82..0dcf27706 100644--- a/ui/src/components/shared/RoutingConfigPanel.tsx+++ b/ui/src/components/shared/RoutingConfigPanel.tsx@@ -93,8 +93,8 @@ export const RoutingConfigPanel: React.FC<RoutingConfigPanelProps> = ({const { t } = useTranslation();const routedName = value.routing.agent_name;- // Routing saved while built-in Agents were named after their backend holds that- // backend id; with no Agent of that name it means the backend's built-in Agent.+ // Routing can hold a backend id (the built-in takes the next free name while a user's+ // Agent holds the id); with no Agent of that name it means the backend's built-in Agent.const selectedVibeAgent = vibeAgents.find((agent) => agent.name === routedName)?? vibeAgents.find((agent) => !agent.archived && agent.source === 'builtin' && agent.backend === routedName)?? null;diff --git a/ui/src/components/steps/AgentDetection.tsx b/ui/src/components/steps/AgentDetection.tsxindex 2bd91c9fc..0928bbd68 100644--- a/ui/src/components/steps/AgentDetection.tsx+++ b/ui/src/components/steps/AgentDetection.tsx@@ -186,7 +186,7 @@ export const AgentDetection: React.FC<AgentDetectionProps> = ({ data, onNext, ontry {const candidates = vibeAgents.agents.filter((row) => !row.archived && row.backend === backend).sort((left, right) => {- const rank = (name: string) => name === getBackendUiMeta(backend).builtinAgentName ? 0 : name === 'default' ? 1 : 2;+ const rank = (name: string) => name === backend ? 0 : name === 'default' ? 1 : 2;return rank(left.name) - rank(right.name)|| (left.name < right.name ? -1 : left.name > right.name ? 1 : 0);});diff --git a/ui/src/components/visual/BackendIcon.test.tsx b/ui/src/components/visual/BackendIcon.test.tsxindex 6ed7a7b55..1179f217f 100644--- a/ui/src/components/visual/BackendIcon.test.tsx+++ b/ui/src/components/visual/BackendIcon.test.tsx@@ -14,18 +14,18 @@ describe('Vibey mark', () => {afterEach(cleanup);it('is the built-in backend icon, avatar and brand mark', () => {- const vibey = BACKEND_BRAND_MARKS.avibe.path;- const { Icon, Avatar } = getBackendUiMeta('avibe');+ const vibey = BACKEND_BRAND_MARKS.vibey.path;+ const { Icon, Avatar } = getBackendUiMeta('vibey');expect(markPath(render(<Icon size={16} />).container)).toBe(vibey);expect(markPath(render(<Avatar size={16} />).container)).toBe(vibey);- expect(markPath(render(<BackendAvatar backend="avibe" />).container)).toBe(vibey);- expect(markPath(render(<BackendIcon backend="avibe" variant="brand" size={28} />).container)).toBe(vibey);+ expect(markPath(render(<BackendAvatar backend="vibey" />).container)).toBe(vibey);+ expect(markPath(render(<BackendIcon backend="vibey" variant="brand" size={28} />).container)).toBe(vibey);// The Models route card reads the same table.- expect(backendVisual('avibe').Icon).toBe(Icon);+ expect(backendVisual('vibey').Icon).toBe(Icon);});it('follows the text color so it reads on dark and light themes', () => {- const { container } = render(<BackendAvatar backend="avibe" className="size-3.5" />);+ const { container } = render(<BackendAvatar backend="vibey" className="size-3.5" />);const svg = container.querySelector('svg')!;expect(svg.getAttribute('class')).toBe('size-3.5');expect(container.querySelector('path')!.getAttribute('fill')).toBe('currentColor');diff --git a/ui/src/components/visual/backendBrandMarks.ts b/ui/src/components/visual/backendBrandMarks.tsindex ea6ca7695..36d773ee8 100644--- a/ui/src/components/visual/backendBrandMarks.ts+++ b/ui/src/components/visual/backendBrandMarks.ts@@ -1,10 +1,10 @@// Exact authored vectors from avibe-docs/design_desktop.pen.// Source SHA256: 115c69604b50e32823bcead4bd6c9269c8178b58d66a73b2e00db4a06d2caeb3.// Welcome: dAO38 / o2x2l0 / Rxw0c; inset OpenCode: VE60T (also dialog v9S8Li).-// avibe (Vibey): traced from assets/mascot/cloud-tuanzi-logo-mono.png, with the outline+// vibey: traced from assets/mascot/cloud-tuanzi-logo-mono.png, with the outline// thickened inward and the eyes enlarged so the mascot still reads at 14–28px.export const BACKEND_BRAND_MARKS = {- avibe: {+ vibey: {path: "M15.24 10.14C15.07 10.16 14.88 10.23 14.74 10.33C14.59 10.42 14.45 10.6 14.36 10.73C14.27 10.87 14.23 10.97 14.21 11.14C14.18 11.31 14.18 11.59 14.21 11.77C14.23 11.94 14.28 12.04 14.36 12.17C14.45 12.3 14.58 12.45 14.71 12.55C14.83 12.64 14.97 12.7 15.11 12.74C15.25 12.77 15.39 12.79 15.55 12.77C15.71 12.74 15.94 12.66 16.08 12.58C16.22 12.5 16.3 12.44 16.4 12.3C16.49 12.16 16.61 11.92 16.65 11.73C16.69 11.55 16.68 11.34 16.65 11.17C16.62 11 16.54 10.84 16.46 10.7C16.38 10.57 16.26 10.45 16.15 10.36C16.03 10.27 15.92 10.21 15.77 10.17C15.62 10.13 15.41 10.11 15.24 10.14ZM8.35 10.14C8.17 10.17 7.97 10.25 7.82 10.36C7.67 10.47 7.53 10.66 7.45 10.8C7.36 10.93 7.34 10.98 7.32 11.14C7.3 11.3 7.3 11.6 7.32 11.77C7.34 11.93 7.36 11.98 7.45 12.11C7.53 12.24 7.71 12.45 7.82 12.55C7.94 12.65 7.99 12.67 8.14 12.7C8.28 12.74 8.51 12.79 8.7 12.77C8.89 12.74 9.12 12.63 9.26 12.55C9.4 12.46 9.45 12.41 9.54 12.27C9.63 12.13 9.75 11.88 9.79 11.7C9.84 11.53 9.83 11.36 9.79 11.2C9.76 11.04 9.68 10.87 9.61 10.73C9.53 10.6 9.44 10.48 9.32 10.39C9.21 10.29 9.08 10.21 8.92 10.17C8.76 10.13 8.54 10.11 8.35 10.14ZM11.48 2.35C11.1 2.4 10.68 2.56 10.36 2.72C10.04 2.88 9.93 3.24 9.57 3.32C9.22 3.39 8.66 3.15 8.23 3.19C7.8 3.23 7.38 3.34 7.01 3.53C6.63 3.73 6.25 4.06 5.98 4.35C5.7 4.64 5.66 5.04 5.38 5.26C5.1 5.48 4.64 5.46 4.32 5.66C4 5.86 3.7 6.15 3.47 6.45C3.25 6.74 3.08 7.08 2.97 7.42C2.87 7.75 3.03 8.12 2.85 8.45C2.66 8.77 2.1 9.09 1.88 9.36C1.65 9.62 1.59 9.8 1.5 10.01C1.41 10.22 1.35 10.33 1.31 10.61C1.27 10.88 1.21 11.3 1.25 11.67C1.29 12.04 1.56 12.55 1.56 12.83C1.56 13.11 1.34 13.15 1.25 13.36C1.16 13.58 1.07 13.84 1.03 14.11C0.99 14.39 0.98 14.74 1 15.02C1.02 15.3 1.02 15.48 1.16 15.8C1.3 16.13 1.65 16.69 1.84 16.96C2.04 17.23 2.12 17.25 2.35 17.4C2.57 17.55 3.01 17.65 3.19 17.87C3.37 18.09 3.28 18.43 3.41 18.71C3.54 19 3.73 19.32 3.97 19.59C4.21 19.85 4.58 20.14 4.85 20.31C5.12 20.48 5.24 20.55 5.6 20.62C5.96 20.69 6.65 20.75 7.01 20.75C7.36 20.74 7.47 20.5 7.73 20.59C7.99 20.68 8.22 21.1 8.57 21.28C8.93 21.46 9.47 21.62 9.86 21.69C10.25 21.75 10.58 21.72 10.92 21.65C11.26 21.59 11.57 21.28 11.92 21.28C12.28 21.28 12.69 21.59 13.05 21.65C13.4 21.72 13.72 21.72 14.05 21.69C14.38 21.65 14.78 21.53 15.05 21.44C15.32 21.34 15.47 21.23 15.68 21.09C15.88 20.95 16.05 20.65 16.27 20.59C16.5 20.53 16.78 20.72 17.02 20.75C17.27 20.77 17.47 20.78 17.74 20.75C18.01 20.71 18.37 20.63 18.65 20.53C18.93 20.42 19.16 20.29 19.4 20.12C19.64 19.95 19.89 19.75 20.09 19.5C20.29 19.24 20.5 18.9 20.62 18.62C20.75 18.34 20.63 18.04 20.84 17.81C21.05 17.57 21.61 17.41 21.87 17.21C22.14 17.01 22.28 16.81 22.44 16.58C22.59 16.36 22.72 16.12 22.81 15.83C22.91 15.55 22.97 15.13 23 14.86C23.03 14.59 23.01 14.44 22.97 14.21C22.93 13.98 22.87 13.72 22.78 13.49C22.69 13.25 22.41 13.11 22.41 12.8C22.4 12.49 22.7 11.94 22.75 11.61C22.8 11.28 22.75 11.04 22.72 10.8C22.69 10.56 22.69 10.44 22.56 10.17C22.44 9.9 22.2 9.45 21.97 9.17C21.73 8.89 21.31 8.76 21.15 8.48C21 8.2 21.14 7.83 21.03 7.48C20.91 7.13 20.69 6.69 20.47 6.38C20.24 6.08 19.97 5.86 19.65 5.66C19.33 5.47 18.83 5.45 18.56 5.22C18.28 5 18.19 4.56 17.99 4.32C17.8 4.08 17.61 3.94 17.4 3.79C17.18 3.63 16.93 3.5 16.71 3.41C16.49 3.32 16.31 3.26 16.05 3.22C15.8 3.19 15.44 3.17 15.18 3.19C14.91 3.21 14.69 3.38 14.46 3.32C14.23 3.25 14.1 2.97 13.8 2.82C13.5 2.66 13.06 2.46 12.67 2.38C12.29 2.3 11.87 2.29 11.48 2.35ZM4.88 7.32C5.04 7.15 5.2 7.03 5.48 6.91C5.75 6.79 6.28 6.72 6.51 6.6C6.74 6.49 6.73 6.42 6.85 6.23C6.97 6.03 7.06 5.63 7.23 5.41C7.4 5.2 7.65 5.04 7.88 4.94C8.12 4.84 8.39 4.8 8.64 4.82C8.89 4.83 9.16 5 9.39 5.04C9.62 5.07 9.85 5.06 10.01 5.04C10.17 5.01 10.17 5.02 10.36 4.88C10.54 4.74 10.9 4.34 11.11 4.19C11.31 4.05 11.39 4.04 11.58 4C11.76 3.97 12.03 3.96 12.2 3.97C12.38 3.98 12.44 3.99 12.61 4.07C12.78 4.14 13.03 4.28 13.2 4.41C13.38 4.55 13.51 4.78 13.64 4.88C13.77 4.98 13.83 5.01 13.99 5.04C14.15 5.06 14.39 5.07 14.61 5.04C14.83 5 15.07 4.84 15.3 4.82C15.54 4.8 15.77 4.8 16.02 4.91C16.28 5.03 16.65 5.29 16.83 5.51C17.02 5.73 17.04 6.04 17.15 6.23C17.26 6.41 17.27 6.49 17.49 6.6C17.71 6.71 18.18 6.75 18.46 6.88C18.74 7.02 19.02 7.25 19.18 7.42C19.34 7.58 19.39 7.62 19.43 7.88C19.48 8.15 19.44 8.74 19.46 8.98C19.49 9.22 19.51 9.2 19.59 9.32C19.67 9.45 19.8 9.61 19.96 9.73C20.13 9.86 20.39 9.91 20.56 10.08C20.73 10.24 20.91 10.46 21 10.7C21.09 10.94 21.14 11.22 21.09 11.51C21.04 11.81 20.76 12.24 20.68 12.49C20.61 12.73 20.55 12.68 20.65 12.99C20.76 13.29 21.2 13.98 21.31 14.3C21.42 14.62 21.36 14.74 21.34 14.93C21.33 15.11 21.3 15.23 21.22 15.4C21.13 15.56 20.98 15.79 20.84 15.93C20.71 16.06 20.56 16.14 20.4 16.21C20.24 16.28 20.03 16.28 19.87 16.37C19.71 16.45 19.56 16.59 19.46 16.71C19.36 16.83 19.35 16.85 19.28 17.09C19.2 17.33 19.19 17.85 19.03 18.15C18.86 18.45 18.55 18.71 18.31 18.87C18.07 19.03 17.81 19.08 17.59 19.12C17.37 19.16 17.18 19.13 16.99 19.09C16.8 19.05 16.63 18.91 16.43 18.87C16.23 18.83 15.97 18.84 15.8 18.87C15.63 18.9 15.58 18.91 15.4 19.06C15.21 19.21 14.91 19.61 14.68 19.78C14.45 19.94 14.27 20 14.02 20.03C13.76 20.06 13.4 20.03 13.14 19.96C12.89 19.9 12.67 19.69 12.49 19.62C12.3 19.55 12.21 19.53 12.05 19.53C11.88 19.53 11.7 19.54 11.48 19.62C11.26 19.7 10.99 19.93 10.73 20C10.48 20.06 10.17 20.05 9.95 20.03C9.73 20 9.62 20.01 9.39 19.84C9.15 19.67 8.74 19.19 8.54 19.03C8.34 18.86 8.36 18.9 8.2 18.87C8.04 18.84 7.8 18.83 7.57 18.87C7.34 18.91 7.02 19.08 6.82 19.12C6.62 19.16 6.53 19.15 6.35 19.12C6.17 19.09 5.98 19.08 5.76 18.93C5.53 18.78 5.21 18.58 5.01 18.21C4.8 17.84 4.68 17.02 4.54 16.71C4.39 16.4 4.34 16.48 4.13 16.37C3.92 16.25 3.46 16.15 3.25 16.02C3.04 15.9 2.98 15.81 2.88 15.61C2.77 15.42 2.65 15.12 2.63 14.86C2.61 14.6 2.64 14.35 2.75 14.05C2.87 13.75 3.23 13.32 3.32 13.05C3.4 12.78 3.35 12.67 3.28 12.42C3.22 12.18 2.97 11.83 2.91 11.58C2.85 11.32 2.87 11.12 2.94 10.89C3.01 10.66 3.13 10.39 3.32 10.2C3.5 10.01 3.86 9.87 4.04 9.73C4.21 9.59 4.3 9.48 4.38 9.36C4.46 9.24 4.48 9.25 4.5 9.01C4.53 8.78 4.47 8.23 4.54 7.95C4.6 7.67 4.72 7.49 4.88 7.32Z",fill: "currentColor",fillRule: "evenodd",diff --git a/ui/src/components/workbench/AgentsPage.test.tsx b/ui/src/components/workbench/AgentsPage.test.tsxindex ad295f1d4..4b40cdcd7 100644--- a/ui/src/components/workbench/AgentsPage.test.tsx+++ b/ui/src/components/workbench/AgentsPage.test.tsx@@ -237,8 +237,8 @@ describe('AgentsPage contextual selection', () => {// Enabling the Avibe backend creates its built-in Agent before any model is selected.vi.spyOn(modelsApi, 'listAgents').mockResolvedValue([{- backend: 'avibe', cli_present: false, mode: 'hub', menu_kind: 'fixed',- named_agents: [{ name: 'avibe', effective_model_id: null, supply_status: null }],+ backend: 'vibey', cli_present: false, mode: 'hub', menu_kind: 'fixed',+ named_agents: [{ name: 'vibey', effective_model_id: null, supply_status: null }],},{backend: 'codex', cli_present: true, mode: 'hub', menu_kind: 'fixed',@@ -246,20 +246,20 @@ describe('AgentsPage contextual selection', () => {},] as AgentSupply[]);const api = makeApi(vi.fn().mockResolvedValue(listResult([- { ...brief('avibe', 'Default Agent'), backend: 'avibe' },+ { ...brief('vibey', 'Default Agent'), backend: 'vibey' },{ ...brief('codex', ''), model: 'gpt-5' },])));renderPage(api);const row = (name: string) => screen.getAllByText(name).find((node) => node.closest('button'))!.closest('button')!;await waitFor(() => expect(- within(row('avibe')).getByText('settings.models.gateway.agentIssues.modelMissing'),+ within(row('vibey')).getByText('settings.models.gateway.agentIssues.modelMissing'),).toBeTruthy());expect(within(row('codex')).queryByText('settings.models.gateway.agentIssues.modelMissing')).toBeNull();});it('lists, selects and edits a Vibey Agent without a native import option or CLI detail', async () => {- const agent = { ...brief('local-helper', 'before'), backend: 'avibe' };+ const agent = { ...brief('local-helper', 'before'), backend: 'vibey' };const changed = { ...agent, description: 'updated in place' };const updateVibeAgent = vi.fn().mockResolvedValue(fullAgent(changed, 'prompt'));const api = makeApi(@@ -293,7 +293,7 @@ describe('AgentsPage contextual selection', () => {['vibey', 'builtin', { builtin: true, builtin_default: true, lock_delete: true }, true],['local-helper', 'custom', {}, false],])('locks the enable switch of %s only when it is the built-in Vibey', async (name, source, metadata, locked) => {- const agent = { ...brief(name, 'avibe agent'), backend: 'avibe', source };+ const agent = { ...brief(name, 'vibey agent'), backend: 'vibey', source };const full = fullAgent(agent, 'prompt');const api = makeApi(vi.fn().mockResolvedValue(listResult(agent)),diff --git a/ui/src/components/workbench/ChatArchivedReadOnly.test.tsx b/ui/src/components/workbench/ChatArchivedReadOnly.test.tsxindex 317f0ce29..24fd1cd99 100644--- a/ui/src/components/workbench/ChatArchivedReadOnly.test.tsx+++ b/ui/src/components/workbench/ChatArchivedReadOnly.test.tsx@@ -259,26 +259,26 @@ describe('archived Agent display names', () => {});describe('chat avatars', () => {- const vibey = { ...archivedPm, id: 'agt-vibey', name: 'vibey', display_name: 'vibey', backend: 'avibe' };+ const vibey = { ...archivedPm, id: 'agt-vibey', name: 'vibey', display_name: 'vibey', backend: 'vibey' };const claude = { ...archivedPm, id: 'agt-claude', name: 'claude', display_name: 'claude', backend: 'claude' };it('resolves the backend a reply comes from, through an inherited default', () => {const inherits = session({ agent_id: null, agent_name: null, agent_backend: null });- expect(sessionAgentBackend(inherits, [claude, vibey], 'vibey')).toBe('avibe');+ expect(sessionAgentBackend(inherits, [claude, vibey], 'vibey')).toBe('vibey');// A runtime-owned row passes no default, so it borrows no avatar.expect(sessionAgentBackend(inherits, [claude, vibey], null)).toBeNull();- expect(sessionAgentBackend(session({ agent_id: vibey.id, agent_name: 'vibey', agent_backend: null }), [claude, vibey], 'claude')).toBe('avibe');+ expect(sessionAgentBackend(session({ agent_id: vibey.id, agent_name: 'vibey', agent_backend: null }), [claude, vibey], 'claude')).toBe('vibey');expect(sessionAgentBackend(session({ agent_backend: 'claude' }), [claude, vibey], 'vibey')).toBe('claude');});it('draws Vibey in the thinking and transcript bubbles of a session that inherits it', () => {const inherits = session({ agent_id: null, agent_name: null, agent_backend: null });- const thinking = render(<ThinkingBubble session={inherits} agentDisplayName={null} agentBackend="avibe" />);+ const thinking = render(<ThinkingBubble session={inherits} agentDisplayName={null} agentBackend="vibey" />);const message = render(- <MessageRow message={agentWithQuickReplies()} session={inherits} agentBackend="avibe" messageFontSize={13} />,+ <MessageRow message={agentWithQuickReplies()} session={inherits} agentBackend="vibey" messageFontSize={13} />,);- expect(thinking).toContain(BACKEND_BRAND_MARKS.avibe.path);- expect(message).toContain(BACKEND_BRAND_MARKS.avibe.path);+ expect(thinking).toContain(BACKEND_BRAND_MARKS.vibey.path);+ expect(message).toContain(BACKEND_BRAND_MARKS.vibey.path);});});diff --git a/ui/src/components/workbench/FailureRetry.test.tsx b/ui/src/components/workbench/FailureRetry.test.tsxindex 436e4809f..1c1eb6ef7 100644--- a/ui/src/components/workbench/FailureRetry.test.tsx+++ b/ui/src/components/workbench/FailureRetry.test.tsx@@ -57,7 +57,7 @@ describe('failed-turn retry action', () => {...notice,text: '⚠️ 本轮执行被中断——Avibe 服务在它运行期间重启。正在运行的命令已作为 Watch w_1 继续执行,结果会发到这里。',metadata: {- event: 'backend_failure', backend: 'avibe',+ event: 'backend_failure', backend: 'vibey',failure_id: 'turn:interrupted-turn', turn_id: 'interrupted-turn', detached: false,replayed: true, watch_ids: ['w_1'],},diff --git a/ui/src/components/workbench/GlobalPromptsDialog.test.tsx b/ui/src/components/workbench/GlobalPromptsDialog.test.tsxindex 5ed8f2913..575649f4b 100644--- a/ui/src/components/workbench/GlobalPromptsDialog.test.tsx+++ b/ui/src/components/workbench/GlobalPromptsDialog.test.tsx@@ -22,7 +22,7 @@ describe('native global prompts', () => {// Growing the Agent catalog must not invent a native prompt file for Avibe.// The sync payload is as important as the tabs: a hidden target is still a write.it('offers and synchronizes only native backend files', async () => {- const files = ['claude', 'opencode', 'codex', 'avibe'].map((backend) => ({+ const files = ['claude', 'opencode', 'codex', 'vibey'].map((backend) => ({backend, content: 'Instructions', path: `/fixture/${backend}/AGENTS.md`,filename: 'AGENTS.md', exists: true, read_error: false,}));diff --git a/ui/src/components/workbench/NewAgentDialog.test.tsx b/ui/src/components/workbench/NewAgentDialog.test.tsxindex db036e3dd..4dbe03832 100644--- a/ui/src/components/workbench/NewAgentDialog.test.tsx+++ b/ui/src/components/workbench/NewAgentDialog.test.tsx@@ -114,15 +114,15 @@ describe('NewAgentDialog', () => {});it('creates a Vibey Agent through the existing backend and model pickers', async () => {- modelCatalog = { models: ['avibe-model'], reasoningOptions: { 'avibe-model': [] } };+ modelCatalog = { models: ['vibey-model'], reasoningOptions: { 'vibey-model': [] } };const { createVibeAgent } = renderDialog();fireEvent.click(screen.getByRole('button', { name: /Vibey/ }));fireEvent.change(screen.getByPlaceholderText('agents.create.namePlaceholder'), { target: { value: 'local-helper' } });fireEvent.click(screen.getByRole('combobox'));- fireEvent.click(screen.getByRole('option', { name: 'avibe-model' }));+ fireEvent.click(screen.getByRole('option', { name: 'vibey-model' }));submit();await waitFor(() => expect(createVibeAgent).toHaveBeenCalledWith(expect.objectContaining({- name: 'local-helper', backend: 'avibe', model: 'avibe-model', reasoning_effort: null,+ name: 'local-helper', backend: 'vibey', model: 'vibey-model', reasoning_effort: null,})));});diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex e68b2a3af..b4dcfa2c3 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -584,7 +584,7 @@"claudeSubtitle": "Detect or install the Claude Code CLI. Sign in or supply an API key from the CLI itself.","claudeDescription": "Anthropic agent · sign in with Claude or supply an API key","codexDescription": "OpenAI agent · ChatGPT login or OPENAI_API_KEY",- "avibeDescription": "Built-in agent · models and routes managed in Model Hub",+ "vibeyDescription": "Built-in agent · models and routes managed in Model Hub","backToBackends": "Back to backends","gatewayOff": "The model gateway is off, so {{name}} has no model to run on.","hubDisabled": "Model Hub disabled",@@ -887,7 +887,7 @@"turnOn": "Turn model gateway on","turnOff": "Turn model gateway off","stopBlocked": "Switch {{names}} to Direct before turning the model gateway off",- "stopAvibeBlocked": "{{name}}'s models use the model gateway; remove them before turning it off.",+ "stopVibeyBlocked": "{{name}}'s models use the model gateway; remove them before turning it off.","stopUnavailable": "Agent routing status is unavailable; the model gateway cannot be turned off yet"},"closed": {diff --git a/ui/src/i18n/keyCoverage.test.ts b/ui/src/i18n/keyCoverage.test.tsindex 7cf648d57..80c583556 100644--- a/ui/src/i18n/keyCoverage.test.ts+++ b/ui/src/i18n/keyCoverage.test.ts@@ -1252,7 +1252,7 @@ describe('app i18n key coverage', () => {for (const backend of ['claude', 'codex', 'opencode']) {expect(referenced).toContainEqual({ key: `settings.models.direct.backend.${backend}.detail`, counted: false, listed: false, demand: 'exact' });}- expect(referenced.some(({ key }) => key === 'settings.models.direct.backend.avibe.detail')).toBe(false);+ expect(referenced.some(({ key }) => key === 'settings.models.direct.backend.vibey.detail')).toBe(false);});// A name the bundles never had is not an existence gap: nothing here can telldiff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 7f425d061..9a97d4767 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -584,11 +584,11 @@"claudeSubtitle": "检测或安装 Claude Code CLI。登录与 API Key 请直接通过 CLI 完成。","claudeDescription": "Anthropic Agent · 通过 Claude 登录或填入 API Key","codexDescription": "OpenAI Agent · 通过 ChatGPT 登录或 OPENAI_API_KEY",- "avibeDescription": "内置 Agent · 在模型中枢管理模型和路由",+ "vibeyDescription": "内置 Agent · 在模型网关管理模型和路由","backToBackends": "返回后端列表","gatewayOff": "模型网关已关闭,{{name}} 没有可用的模型。",- "hubDisabled": "模型中枢已停用",- "hubDisabledNotice": "本实例已停用模型中枢,{{name}} 没有可用的模型。",+ "hubDisabled": "模型网关已停用",+ "hubDisabledNotice": "本实例已停用模型网关,{{name}} 没有可用的模型。","builtinBadge": "内置","openProviderPage": "配置 Provider","providerOauth": "OAuth(默认)",@@ -887,7 +887,7 @@"turnOn": "开启模型网关","turnOff": "关闭模型网关","stopBlocked": "请先将 {{names}} 切换为直连,再关闭模型网关",- "stopAvibeBlocked": "{{name}} 的模型通过模型网关运行,请先移除这些模型再关闭网关。",+ "stopVibeyBlocked": "{{name}} 的模型通过模型网关运行,请先移除这些模型再关闭网关。","stopUnavailable": "暂时无法读取 Agent 路由状态,当前不能关闭模型网关"},"closed": {diff --git a/ui/src/lib/agentBackendCatalog.generated.ts b/ui/src/lib/agentBackendCatalog.generated.tsindex dfe3d359c..3b42af9ba 100644--- a/ui/src/lib/agentBackendCatalog.generated.ts+++ b/ui/src/lib/agentBackendCatalog.generated.ts@@ -2,10 +2,9 @@// Regenerate with: uv run python -m scripts.generate_agent_backend_catalogexport const BACKEND_CATALOG = [{- "id": "avibe",+ "id": "vibey","display_name": "Vibey",- "config_key": "avibe",- "builtin_agent_name": "vibey",+ "config_key": "vibey","default_cli": null,"default_enabled": true,"latest_probe": null,@@ -17,14 +16,13 @@ export const BACKEND_CATALOG = ["supports_install": false},"builtin": true,- "description_key": "settings.backends.avibeDescription",- "settings_route": "/settings/backends/avibe"+ "description_key": "settings.backends.vibeyDescription",+ "settings_route": "/settings/backends/vibey"},{"id": "opencode","display_name": "OpenCode","config_key": "opencode",- "builtin_agent_name": "opencode","default_cli": "opencode","default_enabled": true,"latest_probe": [@@ -46,7 +44,6 @@ export const BACKEND_CATALOG = ["id": "claude","display_name": "Claude Code","config_key": "claude",- "builtin_agent_name": "claude","default_cli": "claude","default_enabled": true,"latest_probe": [@@ -68,7 +65,6 @@ export const BACKEND_CATALOG = ["id": "codex","display_name": "Codex","config_key": "codex",- "builtin_agent_name": "codex","default_cli": "codex","default_enabled": false,"latest_probe": [diff --git a/ui/src/lib/agentBackends.ts b/ui/src/lib/agentBackends.tsindex f8ed124ac..9f9bb6a2b 100644--- a/ui/src/lib/agentBackends.ts+++ b/ui/src/lib/agentBackends.ts@@ -14,8 +14,6 @@ type BackendCapabilities = { [K in keyof BackendDescriptor['capabilities']]: booexport type BackendUiMeta = {id: BackendId;label: string;- /** The name the store gives this backend's built-in Agent. */- builtinAgentName: string;defaultCli: string | null;defaultEnabled: boolean;/** Part of the platform: always enabled, with no switch. */@@ -37,7 +35,7 @@ export type BackendUiMeta = {iconCls: string;};-const VibeyMark = brandMarkIcon(BACKEND_BRAND_MARKS.avibe, 'VibeyMark');+const VibeyMark = brandMarkIcon(BACKEND_BRAND_MARKS.vibey, 'VibeyMark');// Presentation only. Membership, defaults and capabilities come from Python.const BACKEND_VISUALS = {@@ -77,7 +75,7 @@ const BACKEND_VISUALS = {tileCls: 'bg-gold',iconCls: 'text-gold-foreground',},- avibe: {+ vibey: {nativeOrder: 3,publisher: 'Avibe',accent: 'mint',@@ -96,7 +94,6 @@ export const AGENT_BACKENDS = BACKEND_CATALOG.map((backend) => ({...BACKEND_VISUALS[backend.id],id: backend.id,label: backend.display_name,- builtinAgentName: backend.builtin_agent_name,defaultCli: backend.default_cli,defaultEnabled: backend.default_enabled,builtin: backend.builtin,@@ -145,7 +142,6 @@ export function getBackendUiMeta(id: string): BackendUiMeta {AGENT_BACKEND_BY_ID[id] || {id,label: id.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase()),- builtinAgentName: id,defaultCli: null,defaultEnabled: false,builtin: false,diff --git a/ui/src/lib/backendAccent.ts b/ui/src/lib/backendAccent.tsindex 8cf0a44f3..e49366a33 100644--- a/ui/src/lib/backendAccent.ts+++ b/ui/src/lib/backendAccent.ts@@ -20,7 +20,7 @@ export const BACKEND_TEXT: Record<Backend, string> = {claude: 'text-mint-ink',opencode: 'text-cyan-ink',codex: 'text-violet-ink',- avibe: 'text-mint-ink',+ vibey: 'text-mint-ink',};// Solid dot fill — e.g. a status dot inside a chip.@@ -28,7 +28,7 @@ export const BACKEND_DOT: Record<Backend, string> = {claude: 'bg-mint',opencode: 'bg-cyan',codex: 'bg-violet',- avibe: 'bg-mint',+ vibey: 'bg-mint',};// Full pill surface (soft bg + 40% border + accent text) for backend chips.@@ -36,7 +36,7 @@ export const BACKEND_CHIP: Record<Backend, string> = {claude: 'bg-mint-soft border-mint/40 text-mint-ink',opencode: 'bg-cyan-soft border-cyan/40 text-cyan-ink',codex: 'bg-violet-soft border-violet/40 text-violet-ink',- avibe: 'bg-mint-soft border-mint/40 text-mint-ink',+ vibey: 'bg-mint-soft border-mint/40 text-mint-ink',};export function isBackend(value: string): value is Backend {diff --git a/ui/src/lib/backendModels.test.ts b/ui/src/lib/backendModels.test.tsindex d168007ad..23c2ad965 100644--- a/ui/src/lib/backendModels.test.ts+++ b/ui/src/lib/backendModels.test.ts@@ -136,7 +136,7 @@ describe('fetchBackendModels for OpenCode', () => {describe('fetchBackendModels in gateway mode', () => {it('projects Avibe models and effort metadata without a CLI fallback', async () => {- const readModelHubAgentCatalogForModelPicker = vi.fn().mockResolvedValue(hubAgent('avibe', {+ const readModelHubAgentCatalogForModelPicker = vi.fn().mockResolvedValue(hubAgent('vibey', {cli_present: false,catalog_models: [model('local-model', { display_name: 'Local model', supports_reasoning: false })],}));@@ -144,12 +144,12 @@ describe('fetchBackendModels in gateway mode', () => {const codexModels = vi.fn();const readOpencodeOptionsForModelPicker = vi.fn();const api = { readModelHubAgentCatalogForModelPicker, claudeModels, codexModels, readOpencodeOptionsForModelPicker } as unknown as ApiContextType;- expect(await fetchBackendModels(api, 'avibe')).toEqual({+ expect(await fetchBackendModels(api, 'vibey')).toEqual({models: ['local-model'], modelLabels: { 'local-model': 'Local model' }, reasoningOptions: { 'local-model': [] },});- expect(readModelHubAgentCatalogForModelPicker).toHaveBeenCalledWith('avibe');+ expect(readModelHubAgentCatalogForModelPicker).toHaveBeenCalledWith('vibey');readModelHubAgentCatalogForModelPicker.mockResolvedValue(null);- expect(await fetchBackendModels(api, 'avibe')).toEqual({ models: [] });+ expect(await fetchBackendModels(api, 'vibey')).toEqual({ models: [] });expect(claudeModels).not.toHaveBeenCalled();expect(codexModels).not.toHaveBeenCalled();expect(readOpencodeOptionsForModelPicker).not.toHaveBeenCalled();diff --git a/vibe/i18n/en.json b/vibe/i18n/en.jsonindex 1808a282d..040f47397 100644--- a/vibe/i18n/en.json+++ b/vibe/i18n/en.json@@ -495,7 +495,7 @@},"settings": {"backends": {- "avibeDescription": "Avibe's built-in agent, powered by models configured in Model Hub."+ "vibeyDescription": "Avibe's built-in agent, powered by models configured in Model Hub."},"personalizationTitle": "Personalization Settings","personalizationDesc": "Configure how {agent} messages appear in your Slack workspace.",@@ -1538,7 +1538,7 @@"cancelled": "Retention stopped at a batch boundary; no completion was recorded."}},- "avibeAgent": {+ "vibeyAgent": {"error": {"refusal": "The model declined to answer this request.","safety": "The model stopped this reply for safety reasons.",diff --git a/vibe/i18n/zh.json b/vibe/i18n/zh.jsonindex d9f220d2d..59dcf0f8e 100644--- a/vibe/i18n/zh.json+++ b/vibe/i18n/zh.json@@ -7,7 +7,7 @@"errors": {"agentModelRequired": "请先在 Avibe 中为 {backend} Agent 或会话选择模型。","builtinBackendConfig": "{backend} 是内置后端,始终启用,不能设置 `{section}`。",- "modelHubDisabled": "本实例已停用模型中枢,{backend} 没有可用的模型。",+ "modelHubDisabled": "本实例已停用模型网关,{backend} 没有可用的模型。","modelGatewayOff": "模型网关已关闭,{backend} 没有可用的模型。请在「模型」页开启网关并选择模型。","opencodeModelProviderRequired": "请在 Avibe 中选择带供应商的 OpenCode 模型,或配置它的 Model Hub 路由。"},@@ -495,7 +495,7 @@},"settings": {"backends": {- "avibeDescription": "Avibe 内置智能体,使用 Model Hub 中配置的模型。"+ "vibeyDescription": "Avibe 内置智能体,使用 Model Hub 中配置的模型。"},"personalizationTitle": "个性化设置","personalizationDesc": "配置 {agent} 的消息在你的 Slack 工作区中的展示方式。",@@ -1538,7 +1538,7 @@"cancelled": "保留清理已在批次边界停止;未记录完成状态。"}},- "avibeAgent": {+ "vibeyAgent": {"error": {"refusal": "模型拒绝回答这个请求。","safety": "模型出于安全原因停止了这次回复。",