Skip to content

feat(reader): private deterministic batch analysis with failure-safe indexes (#290) - #295

Merged
andy-zen-dev merged 2 commits into
masterfrom
scrip-metric-005-private-batch
Oct 23, 2026
Merged

andy-zen-dev merged 2 commits into
masterfrom
scrip-metric-005-private-batch

Conversation

@andy-zen-dev

@andy-zen-dev andy-zen-dev commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #290 on qualifying acceptance.

User-visible delivery

  • scriptorium batch manifest.json --output-dir private-results: analyze up to 16 explicitly named local UTF-8 manuscripts using the existing canonical Reader engine, with a deterministic source-free HTML/JSON/CSV batch index and SHA-256-addressed per-work HTML/JSON reports.
  • Duplicate source bytes reuse existing report identities; missing, invalid UTF-8 and oversized input are explicit failure rows (exit 1), never fabricated numeric metrics.
  • Keyboard-accessible offline HTML table, human-readable success/error statuses, inspectable source digests and report links. No manuscript upload, implicit directory crawling, filename/path leakage in indexes, or corpus enrollment.
  • POSIX no-follow directory-fd traversal and private output permissions; create-only fsynced publication reuses identical bytes but refuses conflicts. The JSON batch index is published last, making interrupted first runs retryable without overwriting complete earlier indexes.

Reproducibility and privacy

Manifest: scriptorium-private-batch-manifest-v1; index: scriptorium-private-batch-index-v1. 16 files max, 32 MiB/file, 64 MiB aggregate, 64 KiB manifest. Linux/POSIX-only safety contract is explicit; unsupported hosts fail closed. Profile versions and the 29 existing metric rows come from build_local_analysis(); M2 remains 0/5.

Exact-head verification

Authored head d2cb9b801ab39830a8be4ee212e74d6d3f85002c (base d2df3f420a0359dbf71381f38cf1b057381428e4).

  • GitHub Actions Reader package job SUCCESS: full unittest suite 856 tests PASS, Python syntax check, clean wheel build/install outside checkout, existing Reader smoke, and the newly added installed-wheel real batch smoke PASS (two distinct texts, duplicate/reuse, 29 rows, generated links, partial invalid UTF-8/missing file, conflict and deterministic retry).
  • Other exact-head workflows: consult live Checks for remaining/pending runs; not all workflows were complete when this description was updated.
  • Full local checkout tests NOT_RUN (Git DNS unavailable in execution environment). Real browser screenshots VISUAL_NOT_VERIFIED. Pages build can pass without deployment; deployment not performed.

Later-run acceptance

This is an authoring run; do not approve/merge this semantic change in the same run. Fresh maintainer inspection of diff, exact HEAD/base, checks, actual branch rules and outstanding discussion remains required. No external publication, license, administration or schedule mutation.

@andy-zen-dev
andy-zen-dev merged commit 4c5fea5 into master Oct 23, 2026
27 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.

Adopt private batch analysis with deterministic manifests and failure-safe reports

1 participant