Repository navigation
fix(v5): reject weakened frozen power planning inputs - #327
TheHalfMoon wants to merge 7 commits into
Conversation
Signed-off-by: Gocceri <azialshehri@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Gocceri <azialshehri@gmail.com>
Signed-off-by: Gocceri <azialshehri@gmail.com>
Exact-head handoff, 2026-10-10: hypothesis-specific nuisance / direct CLI gateDraft PR #327 advanced append-only to commit The breaking v2 input/output contract forbids metric-wide paired SD, retains floor/repeatability margins by metric, and requires exactly one The CLI itself previously failed with Verified evidence: macOS 1,420 full-repo pytest PASS +264 subtests, 368 V5 PASS +86 subtests, 56 focused planner PASS, 307/307 original scientific file SHA bindings unchanged. Genuine GitHub Actions exact-head run #38030437031 on Still NOT qualified: the declared family may omit real primary cells; per-cell descriptive SD source hash is syntax-checked but not a reviewed causal/variance provenance binding; only three stochastic training seeds and crossed source-case × seed uncertainty remain scientifically unresolved; appropriate familywise Holm primary hypothesis/missingness/native effect margins and 90% sample power are not prospectively reviewed. #326 remains OPEN. No draft merge, claim promotion, clinical validation, publication or confirmatory access is authorized. |
Signed-off-by: Gocceri <azialshehri@gmail.com>
2026-10-10 — Fail-closed numerical overflow repair, exact-head CI PASSNormal append-only update of this still-DRAFT PR #327 to Exact local evidence (Mac only): focused planner 58 passed, V5 suite 370 passed +86 subtests, complete repo 1,422 passed +264 subtests, original 307 frozen file hashes 307/307 pass, source compilation and Boundary: This is numerical input robustness, not a demonstrated true 90% power estimate. PR remains DRAFT/UNMERGED. No model inference/GPU/PHI/confirmatory/reserve identities, no clinical/paper claim. DCO signed off but GitHub cryptographic signature still |
2026-10-10 — Reproducible input-provenance review finding: ambiguous duplicate JSON keysScope: source-quality finding against current PR #327 exact remote HEAD The development-only CLI's Reproduced on Mac without modifying any repo or frozen artifact: formed a syntactically valid JSON spec from the current #327 test fixture and appended duplicate This is an audit-trace ambiguity at the input trust boundary. A human reviewing one occurrence of an allegedly prospectively frozen family or seed nuisance could see a contradictory meaning from the one actually consumed by the tool. It also undermines canonical content identity if some external parser handles duplicate keys differently. Suggested narrow remedy: make the JSON reader fail closed on duplicate keys at every object nesting level using a strict Worktree ownership: |
2026-10-10 — Duplicate-JSON trust-boundary finding addressed in isolated draft successor #328The confirmed duplicate-key source ambiguity from this earlier review finding has now been fixed in a separate stacked DRAFT PR #328, precisely because At #328 exact head Local Mac verification: 1,430 full-repository tests PASS +264 subtests, 378 V5 tests PASS +86 subtests, 66 focused planner tests PASS, original frozen evidence hashes 307/307 PASS, Python compilation and diff checks PASS. The separate exact-head GitHub Actions run is #38033628810, and was QUEUED at the time of writing—check the final result before considering this code qualified. This is parsing integrity only; genuine independent Alibaba OCR/medical statistical review, cryptographic signing, prospective Holm family completeness and source×training-seed variance, true 90% power, founder merge/confirmatory authority remain OPEN, tracked under #326. Neither #327 nor #328 has been merged. No model, GPU, PHI, paid API or confirmatory/reserve access occurred. |
…acts Normal merge of already-qualified model-free PR325 evidence packet and CI into the draft power planner branch. Preserve all source hashes, negative development results, original 307 frozen files and unresolved Holm, 90 percent power and governance gates. Signed-off-by: Gocceri <azialshehri@gmail.com>
2026-10-11 — reconcile old power-contract ancestry with latest immutable development evidenceExact head: Actual Mac qualification in a fresh, isolated detached worktree: Hosted exact-head CI: run #38090138595, COMPLETED SUCCESS at Scope: This is branch/provenance integration, NOT reviewed primary Holm family membership, qualified crossed source-case/calculator/seed nuisance, final 90% power or confirmatory authority. Real independent scientific/statistical and code reviews remain outstanding under issue #326; locally good SSH signatures for new merges are still |
2026-10-11 — Mac owner-worktree sync completed with exact byte preservationThis is a local-state correction only: GitHub PR #327 remains at Safe reconciliation actually performed: copied complete original Future reviewer boundary: those two local owner edits remain deliberately uncommitted and are not being represented as reviewed/merged. Equivalent numerical overflow protection already exists on the strict-JSON successor PR #328, but independent reconciliation/decision on the owner edits has not been assumed. GitHub PR #327 head and scientific decision gates remain unchanged. |
Carry SHA-bound 56-slot non-target reviewer coverage from PR325 to planner draft without treating slots as approved tests, altering the frozen science, or modifying other unstaged worktrees. Signed-off-by: Gocceri <azialshehri@gmail.com>
2026-10-11 — latest source-bound reviewer coverage integrated without touching owner editsExact PR head: Mac real tests: 81 focused + 1,458 full-repository tests and 264 subtests PASS; source-bound 72-cell reviewer packet and new 56-slot coverage replay both PASS. Hosted GitHub exact-head run #38165761036 COMPLETED SUCCESS. Local owner preservation: existing PR #327 checkout fast-forwarded to the exact remote commit after making a second recoverable stash; original two unstaged files were re-applied byte-for-byte from old patch SHA-256 No scientific gate closure: prospective actual family, reviewed seed covariance, 90% power, GitHub recognized signatures and independent review remain missing. PR DRAFT/unmerged. |
Merge source-bound PR325 complete development evidence publication and failure regressions without changing Holm review, frozen original inputs or owner worktree changes. Signed-off-by: Gocceri <azialshehri@gmail.com>
2026-10-11 — safely merge exact current evidence artifact publisher, owner edits preservedExact head: Mac evidence: 88 focused tests PASS, 1,465 full-repo tests plus 264 subtests PASS; both 56-slot candidate coverage and 72-cell evidence packet replay PASS, scientific approval flags false. Exact-head GitHub CI run 38169522263 COMPLETED SUCCESS. Nonowned Mac changes preserved: PR #327 local checkout fast-forwarded with a recoverable stash, then exact same original two uncommitted owner modifications re-applied. |
Purpose: stop silently weakening frozen V5 development power planning
This is a DRAFT code-quality successor to #325, with no change to the frozen scientific branch, the original 307 evidence entries, the official repo owner or
main.Reproduced defects on pre-fix planner
Before this patch,
scripts/v5_power_margin_plan.pyaccepted all of:desired_power=0.51instead of the V5 frozen0.90;family_alpha=0.20instead of the V5 frozen familywise0.05;planned_clusters=2rather than the present prospective planning value4096;paired_sd=false, interpreted as a spurious zero variance.A fabricated arbitrary full-length 64-digit hash may still satisfy syntax; this utility cannot establish a reviewed file's identity or content without a separate source-bound review stage.
Corrective measures
family_alpha=0.05,desired_power=0.90,planned_clusters=4096for this frozen planning version. A different design/count requires review and explicit versioning under statistical gate V5 statistical family, seed variance and 90% power — decision gate #326.family_membership_frozen_and_independently_reviewed=false,source_case_seed_nuisance_qualified=false,final_90_percent_power_qualified=falseandconfirmatory_execution_authorized=false, regardless of apparent illustrative planning success.Exact-head local evidence
Scientific and governance boundaries
This change does not enumerate, freeze or approve the true Holm primary non-target hypothesis family/count. Three training seeds and 72 descriptive within-seed source-task SD cells are not a qualified crossed source-case × training-seed nuisance model. It does not calculate a final valid power certificate, prove clinical utility, permit confirmatory/reserve materialization, authorize independent-family replication, merge pending draft PRs, or publish a paper. All missing review/founder/signature/method steps are tracked transparently in #326.
Review request: verify the input trust-boundary correction and negative tests without promoting a syntactic validation PASS into scientific qualification.
Summary by cubic
Hardens the V5 development power planner so callers can no longer silently weaken frozen planning inputs, fabricate evidence identifiers, or mask a high-variance cell with another intervention's descriptive variance. Output moves to schema v2 with per-hypothesis plans and an explicit intersection aggregate.
family_alpha0.05,desired_power0.90,planned_clusters4096), and rejects Booleans, numeric strings, overflow, and non-SHA-256-shaped evidence identifiers.PowerPlanContractErrorinstead of an uncontrolled numeric error or fabricated success.paired_sdwithpaired_nuisance_by_hypothesis, requiring one unqualified descriptive record per declared hypothesis so a shared metric SD cannot stand in for an intervention cell.primary_non_target_hypothesesto matchprimary_non_target_family_size, with validated unique IDs, metric presence, coupling tag,SOURCE_CASEunit, and primary flag; the ordered list is bound to a deterministic SHA-256.falseflags for family freeze, nuisance qualification, power qualification, and confirmatory authorization, and the CLI reportsPASS_DEVELOPMENT_ONLY_INPUT_CONTRACT.PYTHONPATH.New Features
Written for commit 9d7db0f. Summary will update on new commits.