Skip to content

refactor(context): extract recomposition input service#44

Merged
HugoSkylight merged 1 commit into
masterfrom
refactor/recomposition-input-service
Apr 28, 2026
Merged

refactor(context): extract recomposition input service#44
HugoSkylight merged 1 commit into
masterfrom
refactor/recomposition-input-service

Conversation

@HugoSkylight

Copy link
Copy Markdown
Contributor

Summary

Recomposition input assembly now lives in RecompositionInputService, so SessionRecompositionEngine can focus on merge and full recomposition orchestration. The extracted service owns tail merged-record selection, immediate record loading, source metadata aggregation, CortexFS L2 hydration for merged tails, and ordered RecompositionEntry construction.

The existing ContextManager and benchmark ingest wrapper boundaries are preserved. This keeps current callers stable while moving the record-preparation details out of the orchestration class.

Validation

  • git diff --check
  • uv run --group dev ruff format --check .
  • uv run --group dev ruff check .
  • uv run --group dev pytest tests/test_recomposition_input.py tests/test_recomposition_engine.py tests/test_conversation_merge.py tests/test_context_manager.py tests/test_benchmark_ingest_service.py tests/test_benchmark_ingest_lifecycle.py -q

Compound Engineering
GPT-5

@HugoSkylight
HugoSkylight merged commit 97fb702 into master Apr 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant