Skip to content

fix(compare): reject impossible private dialogue measurements - #638

Merged
andy-zen-dev merged 5 commits into
masterfrom
scrip-private-dialogue-contract-20261125
Nov 25, 2026
Merged

andy-zen-dev merged 5 commits into
masterfrom
scrip-private-dialogue-contract-20261125

Conversation

@andy-zen-dev

Copy link
Copy Markdown
Collaborator

Imported current-profile JSON could claim dialogue sentences without dialogue, missing author-remark rates despite dialogue, or narration means beyond the entire source. Validate presence and bounds from the existing text-v1/dialogue-v1/metrics-v4 partition; preserve null versus zero and do not impose this rule on unknown future profiles. Add three regression methods covering genuine empty/whitespace/punctuation-only/dialogue-only/mixed reports, eleven contradictory mutations, and future-profile incompatibility. No change to extraction, metric definitions, historical artifacts, corpus or Pages. Reconcile merged #637 and its 0/2 exact controls in the queue. Local clone failed DNS (github.com); integrated tests NOT_RUN at authorship. Later exact-head CI and acceptance required.

@andy-zen-dev
andy-zen-dev merged commit 1b6362d into master Nov 25, 2026
30 checks passed

Copy link
Copy Markdown
Collaborator Author

Later-run maintainer acceptance (2026-11-25): inspected all five changed files, text-v1 sentence spans, dialogue-v1 paragraph partition, metrics-v4 percentage/mean definitions and existing Python punctuation/dictionary bounds. The JS changes align with the current Python contract; null/zero and unknown-profile boundaries are covered. Exact checkout f183a8c confirmed in Reader job 139190290124: 1659 tests OK, including 256-case Python/Node differential and all three new dialogue methods; installed private comparison and 19 EPUB tests PASS. All 23 returned PR workflows completed successfully; Pages build and Chromium checks PASS, live/deploy skipped. No open review threads or comments before merge. Authenticated write identity and unchanged base b9085f8 verified immediately before expected-head squash. Merge and master readback confirmed 1b6362d, queue revision 621. Local full suite and independent visual inspection NOT_RUN in this wake. No corpus or metric-definition change; #627 remains blocked on independent editorial/scan evidence, 0/2 exact orthography controls. M2 remains 0/5. Native merge supersedes candidate status; fold reconciliation into next semantic PR.

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