Skip to content

Reject unsupported values before changing store data - #21

Merged
Code0x58 merged 1 commit into
masterfrom
codex/reject-invalid-values
Oct 18, 2026
Merged

Code0x58 merged 1 commit into
masterfrom
codex/reject-invalid-values

Conversation

@Code0x58

@Code0x58 Code0x58 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Validation raises TypeError for unsupported values before mutation, including when commits are deferred. Both the input and deep-copied result are checked so custom deepcopy methods cannot bypass validation or introduce invalid stored values.

Validation: 38 tests pass, covering root/nested/slice assignments under both auto-commit modes, unchanged memory and disk after rejection, continued saving, and custom deepcopy behavior.

Stack position 8 of 9. Depends on #20; this PR targets codex/executable-documentation so its diff contains only this fix. Addresses review finding 3.

Stack overview: #14. Next: #22.

@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4a0c42f) to head (bf87bdc).
⚠️ Report is 4 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master       #21      +/-   ##
===========================================
+ Coverage   98.77%   100.00%   +1.22%     
===========================================
  Files           1         1              
  Lines         163       163              
===========================================
+ Hits          161       163       +2     
+ Misses          2         0       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Code0x58
Code0x58 force-pushed the codex/reject-invalid-values branch from b494ae7 to 57dc7b2 Compare October 18, 2026 15:13
@Code0x58
Code0x58 added this pull request to stack #23 October 18, 2026 15:39
@Code0x58
Code0x58 force-pushed the codex/reject-invalid-values branch 6 times, most recently from 2331a95 to 45bae84 Compare October 18, 2026 15:47
Base automatically changed from codex/executable-documentation to master October 18, 2026 18:49
@Code0x58
Code0x58 force-pushed the codex/reject-invalid-values branch from 45bae84 to bf87bdc Compare October 18, 2026 18:49
@Code0x58
Code0x58 merged commit 22ebc0f into master Oct 18, 2026
16 checks passed
@Code0x58
Code0x58 deleted the codex/reject-invalid-values branch October 18, 2026 18:50
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