Skip to content

test(core): preserve exact international limitation byte bounds - #346

Open
seonghobae wants to merge 1 commit into
mainfrom
test-release-utf8-exact-bounds-20261002
Open

seonghobae wants to merge 1 commit into
mainfrom
test-release-utf8-exact-bounds-20261002

Conversation

@seonghobae

@seonghobae seonghobae commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add two deterministic regressions for international UTF-8 release-limitation text. Each independently fixes the public 1024-byte contract, accepts and preserves exact 1024-byte text, and rejects 1025 bytes with the field-specific claim or consequence error. Production validation is already correct and unchanged. This is regression sensitivity, not a production defect or release authorization.

Source and preservation

Protected base 87c4daa1830bac5a5228b6036752ad5633232085; clean exact committed head e6cade752b9f1959bef27ce4e916bb94f19787dc. Three files and 46 insertions: crates/originweave-core/tests/release_limitation_utf8_exact_bounds.rs, docs/TEST_STRATEGY.md, and CHANGELOG.md. Existing four resource-bound tests remain intact. No production, dependency, workflow, credential, provider, policy, release or deployment change.

Original dirty46 raw status and regular-file hashes and all 11 baseline worktree registration records were reverified before publication. Missing baseline directories remain unknown, not fabricated clean. One canonical writer; the prior eight published owned worktrees remain clean. Existing producer and reviewer requests were not replayed or cancelled. The complete pre-publication inventory contained 154 open PRs and 20 issues. Related PR195/PR324 lineage was inspected before selecting the missing international-byte boundary regression.

Sensitivity and paired-consumer verification

Isolated protected-base archive: four targeted mutations preserve existing ASCII behavior while incorrectly admitting or rejecting international claim/consequence byte boundaries. All four escape the old four tests and are detected by the new two tests at the intended field assertion. Restored control passes all six tests. Production source in the live checkout was never mutated; mutation targets are separate from acceptance targets.

The complete actual PR324 archive at 4e70d5ed9ce13f7b59012d39646e94ac41519c89 plus the unchanged new test passes six focused tests with zero failures/ignored. This is paired-consumer compatibility, not whole PR324 acceptance or protected-main shipment.

Independent substantive source review of the actual complete three-file patch SHA256 b007c660e87a924d514b0eefbb1e051fc49712c1f62a5c5b74a7a46f20afe985 is PASS with no security or logic findings. Report SHA256 b96a0d92a3db8807b1bef0d25e09cfdc63c8c18c285cb7c04ec068275cd27b9e. The reviewer read the real checkout, production boundary, existing tests and complete changed files. Local review is not counted GitHub approval.

Clean committed-head verification

All eight commands passed after commit against clean head e6cade752b9f1959bef27ce4e916bb94f19787dc using locked/offline dependencies, jobs2, serial gates and isolated targets:

  • rustfmt;
  • focused tests: 6 passed, zero failed/ignored;
  • Rust workspace all-targets: 277 passed, zero failed/ignored;
  • strict Clippy;
  • rustdoc with warnings denied;
  • Python3.12 contracts: 152 passed;
  • pinned nightly2026-08-18 branch coverage;
  • strict production coverage: functions521/521, lines4420/4420, regions5349/5349, branches654/654.

CONTRIBUTING cargo check all-targets and compileall scripts/tests also passed on this clean head. Coverage JSON SHA256 d70a49c54c9042082140e7a9d8f23559d82814880639013d1d33dca37700a39c. Candidate and clean committed-head acceptance are separate receipts. Instantiation coverage is not claimed as 100%.

Hosted and protected-merge boundary

Normal non-force push and Ready admission do not establish hosted acceptance or merge approval. Fresh exact-head hosted checks, eligible counted approval under current rules, resolved findings and live-base checks remain required before normal protected merge. No merge, protected-main shipment, release, deployment or overall Goal completion is claimed.


Devin Review

Summary by CodeRabbit

  • 테스트
    • 국제 UTF-8 제한 문구와 구매자 결과 문구의 바이트 길이 경계 테스트를 추가했습니다. 각각 정확히 1024바이트인 입력은 유지되고, 1025바이트인 입력은 길이 초과 오류를 반환하는지 검증합니다.
  • 문서
    • 국제 릴리스 제한 메타데이터의 회귀 테스트 기준을 추가했습니다. 기존 메타데이터 검증과 릴리스 권한에는 변경이 없습니다.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 40dfe94c-5230-41dd-b909-e81009894064

📥 Commits

Reviewing files that changed from the base of the PR and between 87c4daa and e6cade7.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • crates/originweave-core/tests/release_limitation_utf8_exact_bounds.rs
  • docs/TEST_STRATEGY.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

국제 릴리스 제한 메타데이터에 UTF-8 바이트 길이 경계 회귀 테스트를 추가했습니다. 정확히 1024바이트인 입력의 보존과 1025바이트 입력의 필드별 오류를 확인합니다. 테스트 전략과 변경 이력도 갱신했습니다.

Changes

UTF-8 경계 검증

Layer / File(s) Summary
국제 메타데이터 경계 테스트
docs/TEST_STRATEGY.md, crates/originweave-core/tests/release_limitation_utf8_exact_bounds.rs, CHANGELOG.md
테스트 전략에 독립적인 1024·1025바이트 UTF-8 경계 검증 요건을 추가했습니다. 제한 문구와 구매자 결과 문구 각각에 대해 1024바이트 입력의 보존 및 1025바이트 입력의 해당 길이 오류를 확인하는 테스트를 추가했습니다. 변경 이력에 테스트 내용을 기록했습니다.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to e6cad

The UTF-8 boundary tests add regression protection without changing release behavior. No actionable merge-blocking risk remains after normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목은 국제 UTF-8 제한의 정확한 바이트 경계를 보존하는 회귀 테스트 추가라는 주요 변경 사항을 명확하고 간결하게 설명합니다.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (2 skipped: 2 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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