GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: v0.3.1 GA wrap-up — Frozen 전환 + 구현 로그 + 인덱스 갱신 · DanMeon/rhwp-python@752166d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs
    • design/v0.3.1
      • ir-marker-char-offset-research.md
    • implementation/v0.3.1
      • migration.md
    • roadmap
      • README.md
      • v0.3.1
        • ir-marker-char-offset.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/design/v0.3.1/ir-marker-char-offset-research.md‎

Copy file name to clipboardExpand all lines: docs/design/v0.3.1/ir-marker-char-offset-research.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
status: Draft
2+
status: Frozen
33
description: "v0.3.1 ADR — API source / char_start·char_end 의미 / 빈 paragraph 폴백 / schema 버전 4 결정의 근거"
4-
target: v0.3.1
5-
last_updated: 2026-04-30
4+
ga: v0.3.1
5+
last_updated: 2026-05-03
66
---
77

88
# v0.3.1 ir-marker-char-offset — 설계 의사결정 리서치 요약
Collapse file

‎docs/implementation/v0.3.1/migration.md‎

Copy file name to clipboard
+106Lines changed: 106 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
status: Frozen
3+
description: "v0.3.1 구현 로그 — inline 컨트롤 마커의 'char_start'/'char_end' null 출고 정정. 상류 v0.7.8 'Paragraph::control_text_positions()' 직접 호출"
4+
ga: v0.3.1
5+
last_updated: 2026-05-03
6+
---
7+
8+
# v0.3.1 — inline 컨트롤 마커 char offset 출고 (구현 로그)
9+
10+
[v0.3.1/ir-marker-char-offset](../../roadmap/v0.3.1/ir-marker-char-offset.md) (spec) + [design/v0.3.1/ir-marker-char-offset-research](../../design/v0.3.1/ir-marker-char-offset-research.md) (ADR) 의 구현 결과 로그. 결정의 근거·옵션 비교는 ADR 가 보유 — 본 문서는 *산출물 / 검증 결과 / 호환성 / 이월 사항* 만 기록한다 (CONVENTIONS § CHANGELOG ↔ implementation log 역할 분리).
11+
12+
PATCH release. 단일 세션 규모로 단일 `migration.md` 채택 (CONVENTIONS § implementation log 구조 — "작은 작업 (단일 세션·수일 규모) 은 단일 migration.md").
13+
14+
## 1. 산출물
15+
16+
### Rust 코어 (`src/ir.rs`)
17+
18+
| 항목 | 변경 |
19+
|---|---|
20+
| `assert_position_invariant` 헬퍼 신규 | `controls.len() == positions.len()` 을 `assert_eq!` (release-active) 로 가드. 상류 `control_text_positions()` contract 위반 시 panic |
21+
| `build_raw_paragraph` | paragraph 당 1회 `para.control_text_positions()` 호출 → `Vec<usize>` 결과를 controls iteration 과 `zip` |
22+
| `collect_furniture_from_paragraph` | 동일 `Vec<usize>` 를 인자로 받아 footnote/endnote marker char offset 채움. 중복 호출 회피 |
23+
| `RawTable` / `RawPicture` / `RawFormula` / `RawField` / `RawToc` | `char_offset: Option<usize>` 필드 추가 |
24+
| `RawFootnote` / `RawEndnote` | `marker_char_offset: Option<usize>` 필드 추가 |
25+
| Rust 단위 테스트 | `#[should_panic]` 테스트 + 정상 zero-width 케이스 — release/debug 무관 panic 보증의 source-level 가드 |
26+
27+
### Python mapper (`python/rhwp/ir/_mapper.py`)
28+
29+
| 함수 | 변경 |
30+
|---|---|
31+
| `_build_table_block` / `_build_picture_block` / `_build_formula_block` / `_build_field_block` / `_build_toc_block` | `raw.char_offset` (`int \| None`) → `Provenance.char_start = char_end = char_offset` (zero-width 복제). `None` → 양쪽 슬롯 `None` 폴백 |
32+
| `_build_footnote_block` / `_build_endnote_block` | `raw.marker_char_offset` 을 `marker_prov.char_start/char_end` 양쪽 슬롯에 동일 복제. `prov` (블록 자체 위치) 도 marker 와 같은 위치 공유 (각주/미주는 본문 paragraph 안 마커 위치 = 블록 위치) |
33+
34+
### Python raw types (`python/rhwp/ir/_raw_types.py`)
35+
36+
7 종 raw struct (`RawTable` / `RawPicture` / `RawFormula` / `RawField` / `RawToc` / `RawFootnote` / `RawEndnote`) 의 Pydantic 모델에 `char_offset` 또는 `marker_char_offset: int | None = None` 필드 추가. PyO3 `#[pyo3(get)]` 와 1:1 mirror.
37+
38+
### Schema / IR 모델
39+
40+
변경 없음. `Provenance.char_start: int | None` / `char_end: int | None` 은 이미 v1.1 에 정의 (v0.3.0 에서 슬롯만 만들어두고 `None` 으로만 출고). v0.3.1 은 *이미 있는 슬롯에 non-null 값을 흘리는* 변경이라 schema bump 불필요. `CURRENT_SCHEMA_VERSION = "1.1"` 유지.
41+
42+
### Submodule pin
43+
44+
`external/rhwp` `033617e` (v0.7.7) → `0fb3e67` (post-v0.7.8). enabling commit 은 v0.7.8 의 `cee3c1e` (PR #405 머지) — `pub fn Paragraph::control_text_positions` GA. 후속 sync `8482555` 은 직교 영역 (Task #484 `utf16_pos_to_char_idx`) 으로 본 PATCH 동작에 영향 없음.
45+
46+
### 테스트
47+
48+
| 파일 | 변경 |
49+
|---|---|
50+
| [tests/test_v0_3_1_marker_char_offset.py](../../../tests/test_v0_3_1_marker_char_offset.py) | 신규. AC-1 ~ AC-14 회귀 가드 (mapper 단위 + real fixture 통합) |
51+
| `tests/test_ir_caption.py` / `test_ir_field.py` / `test_ir_footnote.py` / `test_ir_formula.py` / `test_ir_furniture.py` / `test_ir_mapper.py` / `test_ir_picture.py` / `test_ir_schema_export.py` / `test_ir_toc.py` | 기존 v0.3.0 테스트의 raw struct 생성자에 신규 `char_offset` / `marker_char_offset` 필드 추가 (Pydantic strict — 명시 필요). 일부 파일에 `pytest.mark.spec("v0.3.1/ir-marker-char-offset")` marker 추가 (trace report 매핑) |
52+
53+
### 메타
54+
55+
| 파일 | 변경 |
56+
|---|---|
57+
| [Cargo.toml](../../../Cargo.toml) | `version = "0.3.0"` → `"0.3.1"` (Cargo.toml 이 SSOT — `pyproject.toml` 의 `dynamic = ["version"]` 가 여기를 읽음) |
58+
| [CHANGELOG.md](../../../CHANGELOG.md) | `[0.3.1] — 2026-05-02` 섹션 신설 (Fixed / Build / Known limitations) |
59+
| [.github/workflows/ci.yml](../../../.github/workflows/ci.yml) | pyright scope list 에 `tests/test_v0_3_1_marker_char_offset.py` 추가 |
60+
| [docs/traces/coverage.md](../../../docs/traces/coverage.md) | trace report 자동 갱신 — v0.3.1 spec 의 22개 테스트 매핑 (AC-1 ~ AC-14 + 파일 레벨 marker) |
61+
62+
## 2. 호환성
63+
64+
| 시나리오 | 결과 |
65+
|---|---|
66+
| 기존 consumer 가 `prov.char_start is None` 분기 처리 | 그대로 작동. `None` 케이스 (`char_offsets.is_empty()` paragraph) 는 여전히 발생 — fail-safe 폴백 (spec § 결정 3) |
67+
| 기존 consumer 가 `prov.char_start` 를 정수로 직접 사용 | v0.3.0 까지 항상 `None` 이라 사실상 사용 불가했음. v0.3.1 부터 일부 케이스에 정수 출고 — 신규 capability |
68+
| Schema validator (`hwp_ir_v1.json` 또는 content-addressed alias) | 변경 없음. `anyOf [integer, null]` 정의가 그대로 매칭 |
69+
| JSON serialization round-trip | `int` 값 보존 — `HwpDocument.model_validate_json(ir.model_dump_json())` 동등 (AC-10) |
70+
| API surface diff | 없음. 슬롯 채움이 유일한 외부 가시 변경 |
71+
72+
**SemVer**: PATCH (0.3.0 → 0.3.1). API surface 미변경 + schema 미변경 + 기존 분기 작동 — strict backward-compat.
73+
74+
## 3. 검증
75+
76+
| 검사 | 결과 |
77+
|---|---|
78+
| `cargo clippy --all-targets -- -D warnings` | clean |
79+
| `uv run pytest -m "not slow"` (전체) | 246 passed, 2 skipped (`test_ir_footnote.py:345` 의 미주 케이스 + `test_ir_formula.py:310` 의 수식 케이스 — `aift.hwp` 샘플에 해당 컨트롤 부재. 합성 fixture 미도입 결정 = AC-14) |
80+
| `uv run pytest tests/test_v0_3_1_marker_char_offset.py -v` | 22 passed (AC-1 ~ AC-14 회귀 가드 전부 그린) |
81+
| Real fixture e2e (`aift.hwp`) | TableBlock 96 (5 populated, 91 None) / PictureBlock 14 (1 populated, 13 None) / FieldBlock 4 (4 populated, 0 None) / FootnoteBlock 1 (1 populated, char_start=333) — 모든 populated 케이스 `char_start == char_end` invariant 준수 |
82+
| Real fixture e2e (`table-vpos-01.hwpx`) | TableBlock 11 / PictureBlock 4 모두 `None` 폴백 (HWPX 샘플은 char_offsets 빈 paragraph 비율 더 높음). FieldBlock 1 populated. 폴백 경로 회귀 가드로서 의미 큼 |
83+
| Cargo 빌드 | `maturin develop --release` 성공. abi3-py310 wheel 단일 산출물 (Python 3.10–3.13+ 커버) 유지 |
84+
85+
## 4. 이월 사항
86+
87+
다음 항목은 v0.3.1 범위 밖. spec § 영구 비목표 가 정확한 목록 — 본 절은 *우선순위가 높은 다음 후보* 만 추림.
88+
89+
| 항목 | 후속 |
90+
|---|---|
91+
| 중첩 표 안 inline 컨트롤의 `(section_idx, para_idx)` ↔ `char_offset` 의미축 mismatch (외부 paragraph vs 셀 내부 paragraph) | v0.3.0 부터 있던 Provenance 모델 한계. v0.4.0+ Provenance 정정 spec 별도 |
92+
| `HwpField.cached_value` 추출 (위치는 v0.3.1 에서 채웠으나 *값* 미추출) | `field_ranges` 매핑 필요. 별도 spec |
93+
| `Block.order: int` 필드 — controls 의 시각 순서 보존 | v0.4.0+ 검토. 현 모델은 IR `paragraphs` 배열 등장 순서 = controls 등장 순서로 묵시적 처리 |
94+
95+
## 5. 참조
96+
97+
### 짝 페어
98+
99+
- spec: [docs/roadmap/v0.3.1/ir-marker-char-offset.md](../../roadmap/v0.3.1/ir-marker-char-offset.md)
100+
- ADR: [docs/design/v0.3.1/ir-marker-char-offset-research.md](../../design/v0.3.1/ir-marker-char-offset-research.md)
101+
102+
### 상류
103+
104+
- enabling PR: <https://github.com/edwardkim/rhwp/pull/405> (Task #390 — `pub fn Paragraph::control_text_positions`)
105+
- enabling commit: `cee3c1e` (v0.7.8 GA)
106+
- 자체 등록 이슈 초안 (옵션 A 채택의 출처): [docs/upstream/issue-find-control-text-positions.md](../../upstream/issue-find-control-text-positions.md) — 상류 머지로 RESOLVED 전환 또는 archive 대상
Collapse file

‎docs/roadmap/README.md‎

Copy file name to clipboardExpand all lines: docs/roadmap/README.md
+4-2Lines changed: 4 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ rhwp-python 의 버전별 로드맵 + **활성 spec 인덱스 SSOT**. 모든 spe
44

55
본 문서는 Living — 자유 갱신.
66

7-
## 현재 상태 (2026-04-30)
7+
## 현재 상태 (2026-05-03)
88

99
- **v0.1.0 / v0.1.1** — Frozen, PyPI 배포 완료
1010
- **v0.2.0** — Frozen, Document IR v1 GA (2026-04-25)
1111
- **v0.3.0** — Frozen, Phase 2 (IR 확장 + `rhwp-py` CLI) GA (2026-04-28)
12+
- **v0.3.1** — Frozen, inline 컨트롤 마커 char offset 출고 GA (2026-05-03)
1213
- **v0.4.0+** — 미착수, Phase 3 이후
1314

1415
## 활성 spec 인덱스
@@ -21,7 +22,7 @@ rhwp-python 의 버전별 로드맵 + **활성 spec 인덱스 SSOT**. 모든 spe
2122
| v0.2.0 | Frozen | [v0.2.0/ir.md](v0.2.0/ir.md) | [design/v0.2.0/ir-research.md](../design/v0.2.0/ir-research.md) |
2223
| v0.3.0 (IR 확장) | Frozen | [v0.3.0/ir-expansion.md](v0.3.0/ir-expansion.md) | [design/v0.3.0/ir-expansion-research.md](../design/v0.3.0/ir-expansion-research.md) |
2324
| v0.3.0 (CLI) | Frozen | [v0.3.0/cli.md](v0.3.0/cli.md) | [design/v0.3.0/cli-research.md](../design/v0.3.0/cli-research.md) |
24-
| v0.3.1 (IR marker char offset) | Draft | [v0.3.1/ir-marker-char-offset.md](v0.3.1/ir-marker-char-offset.md) | [design/v0.3.1/ir-marker-char-offset-research.md](../design/v0.3.1/ir-marker-char-offset-research.md) |
25+
| v0.3.1 (IR marker char offset) | Frozen | [v0.3.1/ir-marker-char-offset.md](v0.3.1/ir-marker-char-offset.md) | [design/v0.3.1/ir-marker-char-offset-research.md](../design/v0.3.1/ir-marker-char-offset-research.md) |
2526
| v0.7.0 (MCP server) | Draft | [v0.7.0/mcp.md](v0.7.0/mcp.md) | [design/v0.7.0/mcp-research.md](../design/v0.7.0/mcp-research.md) |
2627

2728
## 미착수 작업 계획
@@ -116,6 +117,7 @@ SemVer 0.x.y 단계에서 minor 는 단조 증가 — v0.9 다음은 v0.10 (v1.0
116117
| v0.1.0 | [implementation/v0.1.0/migration.md](../implementation/v0.1.0/migration.md) | [verification/v0.1.0/spinoff-review.md](../verification/v0.1.0/spinoff-review.md) |
117118
| v0.2.0 | [implementation/v0.2.0/stages/](../implementation/v0.2.0/stages/) (S1~S5) | — |
118119
| v0.3.0 | [implementation/v0.3.0/stages/](../implementation/v0.3.0/stages/) (S1~S4) + [aparse-cleanup.md](../implementation/v0.3.0/aparse-cleanup.md) | — |
120+
| v0.3.1 | [implementation/v0.3.1/migration.md](../implementation/v0.3.1/migration.md) | — |
119121

120122
## 원칙
121123

Collapse file

‎docs/roadmap/v0.3.1/ir-marker-char-offset.md‎

Copy file name to clipboardExpand all lines: docs/roadmap/v0.3.1/ir-marker-char-offset.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
status: Draft
2+
status: Frozen
33
description: "v0.3.1 — inline 컨트롤 마커 character offset 출고. 상류 v0.7.8 'Paragraph::control_text_positions()' 활용 (schema 변경 없음)"
4-
target: v0.3.1
5-
last_updated: 2026-05-02
4+
ga: v0.3.1
5+
last_updated: 2026-05-03
66
---
77

88
# v0.3.1 — inline 컨트롤 마커의 character offset 출고

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.