diff --git a/src/cleveragents/application/services/acms_service.py b/src/cleveragents/application/services/acms_service.py index d231fe350..d9903d8b4 100644 --- a/src/cleveragents/application/services/acms_service.py +++ b/src/cleveragents/application/services/acms_service.py @@ -361,6 +361,21 @@ class FragmentOrderer(Protocol): ) -> Sequence[ContextFragment]: ... +# --------------------------------------------------------------------------- +# Spec-aligned Protocol aliases (spec §44794-44856) +# --------------------------------------------------------------------------- +# The specification uses "Protocol" suffix for all pipeline component +# interfaces (e.g. ``FragmentDeduplicatorProtocol``). These aliases +# expose the canonical spec names alongside the shorter runtime names so +# that code referencing either form works correctly. + +FragmentDeduplicatorProtocol = FragmentDeduplicator +DetailDepthResolverProtocol = DetailDepthResolver +FragmentScorerProtocol = FragmentScorer +BudgetPackerProtocol = BudgetPacker +FragmentOrdererProtocol = FragmentOrderer + + # --------------------------------------------------------------------------- # Phase 3 — Context Finalization protocols (spec §42648-42653) # --------------------------------------------------------------------------- diff --git a/vulture_whitelist.py b/vulture_whitelist.py index cef933f03..f6bd96090 100644 --- a/vulture_whitelist.py +++ b/vulture_whitelist.py @@ -992,6 +992,12 @@ ScoredFragment # noqa: B018, F821 score_detailed # noqa: B018, F821 depth_fallback_steps # noqa: B018, F821 min_fragment_tokens # noqa: B018, F821 +# Spec-aligned Protocol aliases (spec §44794-44856) +FragmentDeduplicatorProtocol # noqa: B018, F821 +DetailDepthResolverProtocol # noqa: B018, F821 +FragmentScorerProtocol # noqa: B018, F821 +BudgetPackerProtocol # noqa: B018, F821 +FragmentOrdererProtocol # noqa: B018, F821 # LSP Server Stub — public API (issue #203)