Phase 2: Implement finite-sample inference and error accounting #179

Open
opened 2026-10-20 15:04:21 +02:00 by erikinkinen · 0 comments
Owner

Plan ID: P2-28
Record type: Tracking parent; no implementation PR
Scientific protocol: 2.2 · Backlog revision: 2.2.1
Specification: sections 5.
Source: AES_PHASES_2_6_PLAN.md, issue heading at line 4773.
Plan SHA-256: 8acdaeb52d6a94fcad7de64d64521cd465f608344d63560b45f9202f5af71212
Protocol snapshot: Download the complete governing plan.

Goal

Replace permissive bootstrap qualification with theorem-backed bounded-seed inference.

Retained requirements

  • P2-28.R1: Implement empirical-Bernstein bounds, the split Chernoff upper bound, ratio rectangles and exact atomic alpha ledger.
  • P2-28.R2: Implement independent high-precision numeric fixtures for the bound primitives; P2-24 owns exact population enumeration, conditional-AP coverage fixtures and calibration reports.
  • P2-28.R3: Implement support-bound freezing and all section-4.5 inference schemas; expose their primitives to the candidate-sizing implementation owned by P2-24-D.

Child issues

Closure

This is an AND tracking parent, not an implementation task. Close it only after every child is accepted and the original parent acceptance below is verified. A permitted not_applicable child needs the signed route decision required by section 17.4.

Atomic error allocations sum to .05; zero sample variance cannot imply a zero-width confidence bound.

Execution and acceptance contract

Apply the governing semantic/data/statistical contracts in sections 3–5 and the relevant phase section, plus the section-11 checks applicable to this task. Section 17.4 defines the required acceptance evidence. Store the outcome and immutable prerequisite/input/output hashes at

artifacts/backlog/2.2.1/P2-28/acceptance.json.

Only explicit dependency and parent-closure edges govern readiness; numbering adds no predecessor dependency. Checkboxes are work/acceptance items, not commit quotas. Keep implementation changes independently reviewable using the existing PR template. Execution, review and gate tasks close with their evidence/decision records and a PR only when tracked artifacts change.

An unsupported scientific effect is a valid result. Missing correctness validation, invalid inference or absent required review is not completion. Do not change endpoints, matrices, margins, inference rules or sample sizes outside the protocol change-control process.

Native blocking dependencies below represent the child-closure requirements; the parent must never block its own children.

<!-- aes-plan-id: P2-28; backlog-revision: 2.2.1 --> **Plan ID:** `P2-28` **Record type:** Tracking parent; no implementation PR **Scientific protocol:** 2.2 · **Backlog revision:** 2.2.1 **Specification:** sections 5. **Source:** `AES_PHASES_2_6_PLAN.md`, issue heading at line 4773. **Plan SHA-256:** `8acdaeb52d6a94fcad7de64d64521cd465f608344d63560b45f9202f5af71212` **Protocol snapshot:** [Download the complete governing plan](https://git.erikinkinen.fi/attachments/31cb768b-4788-4e38-aba9-9d7f0d1ee16d). ## Goal Replace permissive bootstrap qualification with theorem-backed bounded-seed inference. ## Retained requirements - **P2-28.R1:** Implement empirical-Bernstein bounds, the split Chernoff upper bound, ratio rectangles and exact atomic alpha ledger. - **P2-28.R2:** Implement independent high-precision numeric fixtures for the bound primitives; P2-24 owns exact population enumeration, conditional-AP coverage fixtures and calibration reports. - **P2-28.R3:** Implement support-bound freezing and all section-4.5 inference schemas; expose their primitives to the candidate-sizing implementation owned by P2-24-D. ## Child issues - [ ] [P2-28-A (#180)](https://git.erikinkinen.fi/erikinkinen/AES/issues/180) — Compute empirical-Bernstein bounds - [ ] [P2-28-B (#181)](https://git.erikinkinen.fi/erikinkinen/AES/issues/181) — Compute the split Chernoff upper bound - [ ] [P2-28-C (#182)](https://git.erikinkinen.fi/erikinkinen/AES/issues/182) — Compose ratio confidence rectangles - [ ] [P2-28-D (#183)](https://git.erikinkinen.fi/erikinkinen/AES/issues/183) — Account for the complete error budget - [ ] [P2-28-E (#184)](https://git.erikinkinen.fi/erikinkinen/AES/issues/184) — Freeze primitive supports and inference schemas ## Closure This is an AND tracking parent, not an implementation task. Close it only after every child is accepted and the original parent acceptance below is verified. A permitted `not_applicable` child needs the signed route decision required by section 17.4. Atomic error allocations sum to .05; zero sample variance cannot imply a zero-width confidence bound. ## Execution and acceptance contract Apply the governing semantic/data/statistical contracts in sections 3–5 and the relevant phase section, plus the section-11 checks applicable to this task. Section 17.4 defines the required acceptance evidence. Store the outcome and immutable prerequisite/input/output hashes at `artifacts/backlog/2.2.1/P2-28/acceptance.json`. Only explicit dependency and parent-closure edges govern readiness; numbering adds no predecessor dependency. Checkboxes are work/acceptance items, not commit quotas. Keep implementation changes independently reviewable using the existing PR template. Execution, review and gate tasks close with their evidence/decision records and a PR only when tracked artifacts change. An unsupported scientific effect is a valid result. Missing correctness validation, invalid inference or absent required review is not completion. Do not change endpoints, matrices, margins, inference rules or sample sizes outside the protocol change-control process. Native blocking dependencies below represent the child-closure requirements; the parent must never block its own children.
erikinkinen added this to the Phase 2 milestone 2026-10-20 15:04:21 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
erikinkinen/AES#179
No description provided.