Skip to content

confluence-mdx: reverse-sync 설계 문서를 4차 갱신합니다 (기준선 교정 및 Phase 5 계획 재정의)#938

Merged
jk-kim0 merged 6 commits intomainfrom
jk/docs-reverse-sync-phase5-plan
Mar 19, 2026
Merged

confluence-mdx: reverse-sync 설계 문서를 4차 갱신합니다 (기준선 교정 및 Phase 5 계획 재정의)#938
jk-kim0 merged 6 commits intomainfrom
jk/docs-reverse-sync-phase5-plan

Conversation

@jk-kim0
Copy link
Contributor

@jk-kim0 jk-kim0 commented Mar 18, 2026

Summary

주요 변경 사항

Axis 내용
Axis 1 transfer_text_changes() 3개 호출 지점 전수 제거. clean container 전환 시 reconstruct_container_fragment() 확장 필요(_apply_outer_wrapper_template())
Axis 2 CLI record_mapping() 책임을 build_patches() 내부로 캡슐화. 데이터 소스는 내부 record_mapping() 호출로 확정. runtime 중복 제거(build_sidecar()와의 이중 호출)는 SidecarBlock 스키마 확장 후 별도 단계. mapping.original.yaml artifact는 반환 타입 확장으로 유지
Axis 3 text_transfer.py, table_patcher.py 및 관련 테스트 삭제

리뷰 피드백 반영

  • Axis 1: clean container에서 reconstruct_container_fragment()가 outer wrapper를 "이미 보존함"이라는 잘못된 전제 교정
  • Axis 2: mappings=[] 전달이라는 모호한 표현을 "내부 record_mapping() 호출"로 명확화
  • Axis 2: SidecarBlockBlockMapping 필드가 없어 sidecar만으로 복원 불가함을 명시, 데이터 소스 확정
  • Axis 2: 목표를 "중복 제거"에서 "CLI 책임 캡슐화"로 교정 — build_sidecar()의 별도 호출이 남으므로 runtime 중복은 해소되지 않음을 명시
  • Axis 2: mapping.original.yaml artifact 처분 방침 추가

Added/updated tests?

  • No, and this is why: 설계 문서 갱신이며 코드 변경 없음

Additional notes

  • 선행 문서: docs/plans/2026-03-15-reverse-sync-reconstruction-cleanup-scope.md

@vercel
Copy link

vercel bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Error Error Mar 19, 2026 2:27pm

Request Review

- 기존 설계 문서(2026-03-13)를 2026-03-18 기준으로 재작성합니다
- PR #928, #937 반영 사항을 현재 상태에 추가합니다
- _heading_lookahead가 이미 부재임을 확인하고 해결된 문제 목록에 포함합니다
- Phase 5를 Axis 1/2/3으로 구체화하고 각 축의 변경 대상과 완료 기준을 명세합니다

Co-Authored-By: Atlas <atlas@jk.agent>
@jk-kim0 jk-kim0 force-pushed the jk/docs-reverse-sync-phase5-plan branch from 66d63dc to 756ffec Compare March 18, 2026 13:08
@jk-kim0 jk-kim0 changed the title confluence-mdx: reverse-sync Phase 5 구현 계획서를 추가합니다 confluence-mdx: reverse-sync 설계 문서를 3차 갱신합니다 (Phase 5 상세 계획 반영) Mar 18, 2026
리뷰 의견을 반영하여 설계 기준선과 Phase 5 계획을 수정합니다.

- pages.yaml 실제 수치로 교정: pass 29 → 31, fail 13 → 11
- 런타임 경로 다이어그램에 transfer_text_changes() 3개 호출 지점 명시
- §4.1: text_transfer 잔존 경로를 3개 지점으로 구체화하고 PR #942 현황 반영
- §4.2: Axis 2 범위를 CLI record_mapping() 중복 제거로 한정
  (build_patches 시그니처의 mappings/xpath_to_mapping 전체 제거는 대체 경로 확정 후 별도 진행)
- §6 Axis 1: 목표를 'text_transfer 호출 지점 전수 제거'로 재정의
  (routing 변경 + 3개 fallback 제거), 완료 기준에 pass 31, transfer_text_changes 0개 추가
- §6 게이트 표: unsupported skip vs fail-closed 구분 명확화
- §8: text_transfer.py 삭제 조건을 '3개 지점 전부 제거 후'로 수정
- §10: 4차 갱신 기준 상태로 업데이트, fail failure_type 표 11건으로 교정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jk-kim0 and others added 3 commits March 19, 2026 22:41
- Axis 1: clean container 전환 시 reconstruct_container_fragment()가 outer wrapper를
  "이미 보존함"이라는 잘못된 전제를 교정하고, _apply_outer_wrapper_template() 확장 방안 추가
- Axis 2: mappings=[] 전달이라는 모호한 표현을 "내부 자동 구축"으로 명확화하고,
  mapping.original.yaml artifact 처분 방침 신규 섹션 추가

Co-Authored-By: Atlas <atlas@jk.agent>
리뷰 피드백 반영은 같은 PR 내 커밋이므로 갱신 차수를 올릴 이유가 없습니다.

Co-Authored-By: Atlas <atlas@jk.agent>
- SidecarBlock에 BlockMapping 필드(block_id, xhtml_plain_text 등)가 없으므로
  roundtrip_sidecar만으로 mappings 복원이 불가함을 명시
- 데이터 소스를 "build_patches() 내부 record_mapping() 호출"로 확정
- 전환 순서를 구체화: page_xhtml 파라미터 추가 → CLI 중복 호출 제거
- mapping.original.yaml artifact는 build_patches() 반환 타입 확장으로 유지

Co-Authored-By: Atlas <atlas@jk.agent>
@jk-kim0 jk-kim0 changed the title confluence-mdx: reverse-sync 설계 문서를 3차 갱신합니다 (Phase 5 상세 계획 반영) confluence-mdx: reverse-sync 설계 문서를 4차 갱신합니다 (기준선 교정 및 Phase 5 계획 재정의) Mar 19, 2026
build_patches() 내부에서 record_mapping()을 호출해도 build_sidecar()의
별도 호출은 남으므로 runtime 중복이 실제로 제거되지 않습니다.
Axis 2의 실제 목표는 CLI의 배선 책임을 build_patches() 내부로 이전하는
것이므로 문서 전반의 목표 문구를 이에 맞춰 교정합니다.

Co-Authored-By: Atlas <atlas@jk.agent>
@jk-kim0 jk-kim0 merged commit 52bae93 into main Mar 19, 2026
7 checks passed
@jk-kim0 jk-kim0 deleted the jk/docs-reverse-sync-phase5-plan branch March 19, 2026 14:35
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