Skip to content

fix: validate persisted turn change records - #704

Merged
testikun merged 2 commits into
openpi-dev:mainfrom
outlier27-cell:fix/turn-change-record-validation
Oct 9, 2026
Merged

testikun merged 2 commits into
openpi-dev:mainfrom
outlier27-cell:fix/turn-change-record-validation

Conversation

@outlier27-cell

Copy link
Copy Markdown
Contributor

Problem

Fixes #698.

Value

This is an evidence-backed source-boundary fix with deterministic regressions; malformed input no longer becomes a misleading successful projection.

Approach

Require the existing canonical types and limits at the Web boundary. Add regression tests that fail on origin/main and pass after the fix. See the linked docs/research record in this branch.

Validation

  • Targeted regression tests pass after failing on origin/main.
  • bun run check passed.
  • Full local bun run test was interrupted during machine-wide Windows resource contention; no full local pass is claimed. CI is the authoritative full matrix.

Impact

Existing valid behavior is preserved. Malformed evidence/configuration is rejected or remains unknown. No provider, Session, or orchestration surface is added.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 7, 2026
@outlier27-cell

Copy link
Copy Markdown
Contributor Author

@tt-a1i 请审核此 PR。最新提交已通过完整 GitHub CI,当前可合并;如有需要调整的地方,我会在原分支及时修复。

@testikun testikun left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

已复查 持久化回合变更解码、previousPath 校验和 UTF-8 预算(提交 a702f9843ac9),并核对相关调用点和回归覆盖。本次未发现新增的 P1/P2。

@testikun
testikun merged commit 419c2fa into openpi-dev:main Oct 9, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(web): fail closed on malformed persisted turn-change records

2 participants