feat(acms): implement pipeline Phase 2 components (Deduplicator, DepthResolver, Scorer, Packer) #1287

Merged
freemo merged 1 commits from feature/m5-pipeline-phase2 into master 2026-04-02 17:09:07 +00:00
2 changed files with 21 additions and 0 deletions
@@ -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)
# ---------------------------------------------------------------------------
+6
View File
@@ -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)