The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(gateway): trim hosted-room module docstrings to <=8 lines
Teknium33b8891674d0
diff --git a/gateway/hosted_room_replicas.py b/gateway/hosted_room_replicas.pyindex 815c8a0284d..cb733966390 100644--- a/gateway/hosted_room_replicas.py+++ b/gateway/hosted_room_replicas.py@@ -1,11 +1,10 @@"""Replica store and takeover primitives for hosted Group Chat rooms.-Every non-authority participant gateway keeps a durable local copy of the room log-(``ingest_page()``: idempotent, gap- and epoch-regression-safe) plus fenced primitives to-continue the room when the authority host dies: ``promote_replica()`` resumes locally at-``epoch + 1`` with a lineage-proving ``authority.claimed`` event; ``demote_room()`` records-``authority.lost`` when a returning stale authority is shown a newer epoch. Storage-primitives only: the caller decides *when* takeover is safe.+Non-authority gateways keep a durable local copy of the room log (``ingest_page()``: idempotent,+gap- and epoch-regression-safe) plus fenced primitives to continue the room when the authority host+dies: ``promote_replica()`` resumes locally at ``epoch + 1`` with a lineage-proving ``authority.claimed``+event; ``demote_room()`` records ``authority.lost`` when a returning stale authority is shown a newer+epoch. Storage primitives only: the caller decides *when* takeover is safe."""from __future__ import annotationsdiff --git a/gateway/hosted_rooms_common.py b/gateway/hosted_rooms_common.pyindex 5de2f1cdfa2..923d72d558d 100644--- a/gateway/hosted_rooms_common.py+++ b/gateway/hosted_rooms_common.py@@ -1,11 +1,9 @@"""Shared leaf helpers for the gateway hosted-room modules.-Every hosted-room module validates identifiers, bounded integers, exact field-sets and canonical JSON with its own error class and its own error strings-(tests pin those strings). These helpers take the error class and message-templates as parameters so each caller keeps byte-identical failures while the-logic lives once. This module must stay a leaf: never import a hosted_room*-origin module from here (import cycle).+Each hosted-room module validates identifiers, bounded integers, exact field sets and+canonical JSON with its own error class and pinned error strings; these helpers take the+error class and message templates as parameters so failures stay byte-identical while the+logic lives once. Must stay a leaf: never import a hosted_room* module (import cycle)."""from __future__ import annotations