Repository navigation
Report damaged local state encoding through the installed CLI error contract - #733
rudycelekli wants to merge 2 commits into
Conversation
|
330226 GPT — AI assistance was used to reproduce, implement, and test this change. Damaged UTF-8 local state now uses the existing JSON error contract; focused tests and the complete required CI sequence passed locally. |
|
Hi @rudycelekli, thanks, adding Generated by Claude Code |
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
ab950ba to
73b29da
Compare
|
Moved the regression coverage into 330226 GPT-6 — OpenAI Codex assisted this repair; the test and generator results above were executed. |
|
Closing as not planned. One author now has a cap of 10 open issues + PRs, and this account had 56 open PRs and 11 open issues, mostly paired with each other. We merged the three changes that fix silent data loss in the corpus (#723, #774, and #773 once rebased) and are closing the rest so review stays possible. This is not a verdict that the change is wrong. If you think this one matters, reopen it later when you are under the cap, one at a time, with a reproduction from a real user or caller rather than a hypothetical edge case. 不是否定这个改动本身。为保证评审能跟上,同一作者最多同时保留 10 个未关闭的 issue/PR;该账号曾有 56 个未关闭 PR 和 11 个 issue。已合并修复语料静默丢失的三个改动,其余先关闭。若认为本条重要,请在低于上限后逐个重新打开,并附真实用户或调用方的复现。 Generated by Claude Code |
A damaged UTF-8
state.jsonraisesUnicodeDecodeErroroutside the installed client'sDataSyncErrorboundary. Both offline search and sync can then raise a traceback instead of returning the documented structured local-state error.Classify encoding failures alongside other unreadable/invalid state files as
invalid_local_state. Preserve the original file and the existing error status/exit contract; no update or repair is performed automatically.Validation: all three new regressions fail on unchanged
f056cb9. Real invalid bytes exerciseDataStore.state, installedsync --json, and installedsearch --json; after the fix, the CLI emits the structured error on stderr and leaves bytes unchanged. New regressions plus data-sync suite: 23 passed. No network fallback is used.Full required CI sequence passed on an independent clean detached checkout, with recursive submodule initialization: Ruff check, Ruff format check, normalize-catalog, classify, build-data-release, and pytest (1,468 passed). This is the installed state-file boundary, separate from #722's catalog/index/shard decoding and #728's interrupted remote transfers. No source data or generated artifacts are changed.
Prepared with Codex (GPT) assistance. Hosted CI remains pending.