Skip to content

fix: dormant mode refuses token-shaped plaintext (0.6.1) - #12

Merged
mpointer merged 3 commits into
mainfrom
fix/dormant-token-shaped
Oct 29, 2026
Merged

mpointer merged 3 commits into
mainfrom
fix/dormant-token-shaped

Conversation

@mpointer

@mpointer mpointer commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • In dormant mode, seal() stored input as plaintext, including values shaped like a sealed token. Once a key was provisioned, those failed authentication, and five on one page tripped SystemicUnsealError for every reader (the remaining exposure from the 0.4.0 sealRow fix, previously only documented in README).
  • seal() now throws SealedFieldsError on canonical or enabled-legacy token shapes when no key is configured. TS and Python.
  • Release 0.6.1: version bumped in package.json, package-lock.json, python/pyproject.toml; CHANGELOG entry and README notes.

Test plan

  • npx vitest run --coverage: 75 passed, function coverage 100%; tsc --noEmit clean
  • pytest --cov: 84 passed, 94%
  • New regression tests (both languages) cover a real token, a short fake (v1:AAAA), the sealRow path, an enabled legacy shape, and non-token lookalikes that must pass through.

🤖 Generated with Claude Code

mpointer and others added 2 commits October 29, 2026 06:29
In dormant mode seal() stored input as-is, including values shaped like a
sealed token. Once a key was provisioned those failed authentication, and
five on one page tripped SystemicUnsealError for every reader. seal() now
throws SealedFieldsError on canonical or enabled-legacy token shapes when
no key is configured. Both packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mpointer mpointer changed the title fix: dormant mode refuses token-shaped plaintext fix: dormant mode refuses token-shaped plaintext (0.6.1) Oct 29, 2026
Covers the legacy branch of the dormant guard (CI function-coverage gate).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mpointer
mpointer merged commit a8f45c5 into main Oct 29, 2026
10 checks passed
@mpointer
mpointer deleted the fix/dormant-token-shaped branch October 29, 2026 10:33
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