Skip to content

feat(import-session): bound Core list page decoding - #182

Merged
liveforpresent merged 2 commits into
mainfrom
feature/import-session-list-decoder
Dec 2, 2026
Merged

liveforpresent merged 2 commits into
mainfrom
feature/import-session-list-decoder

Conversation

@liveforpresent

@liveforpresent liveforpresent commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

ADR-093 목록의 전체 Session DTO를 검증할 Core decoder를 추가합니다. 기존 시험의 1,200만 토큰 한도는 정상 100건 응답을 거절했으며, 새 한도는 Go의 저장 byte 범위와 DTO 구조를 근거로 산정했습니다.

Changes

  • 128 MiB 시험 byte 한도와 Session당 433,063개, 페이지 전체 11 + size × 433,063개의 토큰 한도를 읽는 동안 검사합니다. Session 하나씩 파싱해 Book, 정렬, 페이지 metadata를 검사합니다.
  • Go와 공개 스키마가 허용하는 빈 reconstruction terms 맵을 공유 validator에서 수용합니다. 정확한 상한과 1 초과, 잘못된 항목의 전달 차단과 int64 경계를 테스트했습니다.
  • 이전에 거절된 1,213만 토큰 페이지와 맵이 많은 1,781만 토큰 페이지를 TLS로 재생했습니다. 두 요청을 동시에 받아도 전체 DTO 검증 후 원문 길이·SHA-256이 일치했습니다. 산정과 검증 기록

@liveforpresent
liveforpresent merged commit ef0f5dc into main Dec 2, 2026
1 check passed
@liveforpresent
liveforpresent deleted the feature/import-session-list-decoder branch December 2, 2026 05:13
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