confluence-mdx: renderer strategy handler를 분리합니다#1043
Open
jk-kim0 wants to merge 1 commit into
Open
Conversation
## Summary modified block의 renderer 정책을 typed strategy handler로 분리합니다. - text block, list, preserved anchor, container, table handler를 독립 모듈로 추출합니다. - StrategyRenderContext와 StrategyPrimitives로 patch_builder 역참조 없이 실행 상태를 전달합니다. - registry completeness와 blocked strategy fail-closed 계약을 테스트합니다. - OpenSpec task와 검증 결과를 현재 구현에 맞게 갱신합니다. 🤖 Generated with Codex Co-Authored-By: Atlas <atlas@jk.agent>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build_patches()에 모여 있던 modified block의 renderer 정책을 typed strategy handler로 분리하여 capability 확장 시 본체의 heuristic branch가 늘어나지 않도록 합니다.StrategyRenderContext로 exact mapping, sidecar, 누적 patch state를 명시적으로 전달합니다.StrategyPrimitives로 기존 patch primitive를 주입하여 handler가patch_builder.py를 역참조하지 않도록 합니다.blocked또는 미등록 strategy를 dispatch 경계에서 fail-closed합니다.__pycache__를 ignore하고 OpenSpec design/task를 구현 상태에 맞게 갱신합니다.Impact
OpenSpec / stacked PR
openspec/changes/complete-reverse-syncbuild_patches()strategy handler의reverse_sync/strategies/**추출xhtml_patcher.py축소와 P2 capability 확대는 이번 PR에서 제외합니다.Test plan
cd confluence-mdx && venv/bin/pytest -q tests/test_reverse_sync_strategies.py tests/test_reverse_sync_patch_builder.py tests/test_reverse_sync_capabilities.py tests/test_reverse_sync_planner.py— 155 passedcd confluence-mdx && venv/bin/pytest -q tests/test_reverse_sync*.py— 791 passedcd confluence-mdx && venv/bin/pytest -q— 1144 passed, 2 skippedcd confluence-mdx/tests && make test-reverse-sync— golden 16 passed, regression 43 passedcd confluence-mdx/tests && make test-convert— 21 passedcd confluence-mdx/tests && make test-byte-verify— fast/splice 각각 21/21 passedopenspec validate complete-reverse-sync --strictgit diff --checkRelated tickets & links
🤖 Generated with Codex