Skip to content

fix(scan): encrypted/corrupt files → scan_failures (#828 open-core)#1146

Merged
FabioLeitao merged 3 commits into
mainfrom
feat/828-scan-failures-clean
Jul 3, 2026
Merged

fix(scan): encrypted/corrupt files → scan_failures (#828 open-core)#1146
FabioLeitao merged 3 commits into
mainfrom
feat/828-scan-failures-clean

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

Open-core slice of #828 (reopened on clean branch after OPSEC rewrite).

  • Zip/7z/PDF → scan_failures (encrypted_no_password, wrong_password, archive_read_error)
  • chore(opsec): .gitignore blocks docs/ops/today-mode/, beastie-ecosystem-sync.*, mascot draft

OPSEC: PR #1145 / feat/828-scan-failures-encrypted had accidental private files in commit 706277a8 (removed in follow-up commit but still in branch history). This PR is history-cleando not merge #1145; operator should delete remote branch feat/828-scan-failures-encrypted after switching here.

Test plan

  • tests/test_archives_scan_failures.py
  • ./scripts/check-all.sh green

Partial toward #828. Bugbot follow-ups pending.

Made with Cursor

Zip/7z member read failures persist encrypted_no_password, wrong_password, or
archive_read_error. PDF encrypted without password uses the same taxonomy.
Open-core slice; Pro decrypt and plan doc follow in later commits.
Prevent accidental `git add -A` from staging operator drafts or beastie roster
scripts. Tracked today-mode hub files on origin remain tracked; add explicitly.
Wire on_read_barrier for archive member text sampling; map Zip Bad CRC-32
to wrong_password; classify py7zr member/open failures with distinct reasons.
tmp_path, monkeypatch: pytest.MonkeyPatch
):
"""Encrypted PDF inside a zip must record scan_failures via on_read_barrier (#828)."""
import connectors.filesystem_connector as fs_mod
@FabioLeitao FabioLeitao marked this pull request as ready for review July 3, 2026 03:17
@FabioLeitao FabioLeitao merged commit 0a84168 into main Jul 3, 2026
19 checks passed
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.

2 participants