Phase 2: Validate counter conservation across all seven mechanisms #626

Merged
erikinkinen merged 2 commits from phase2/p2-06-c-counter-conservation into main 2026-10-20 18:24:42 +02:00
Owner

Task

Closes #92 (P2-06-C).

Summary

Complete chain and star sequences now check setup, manager observation,
revocation and eight subsequent accesses for all seven legacy strategies.
Hard-coded analytical bucket vectors and run totals agree with raw access
traces and the accounting ledger across all fourteen sequences.

Scope

Adds shared conservation fixtures and their derivation. No production
algorithm or legacy codec changes. Later carrier and recovery mechanisms
require their own nonzero-column fixtures.

Design intent

Check conservation beyond individual operations: unique bucket ownership,
componentwise and scalar sums, reverse-order ledger reconstruction and actual
frontier maxima. Repeated independent oracle evaluation and graph validation
must leave state, active meters, traces and accepted ledgers unchanged.

Phase discipline

Phase 2 uses complete observation and no material, checkpoint or restore work.
These deterministic fixtures establish conformance; they are not campaign
samples or scientific inference.

Verification

All 52 CTests pass at source commit
146fdda44f in Debug, Release and Clang ASan/UBSan.
Fourteen sequences each conserve fourteen accepted work invocations. Measured
and unmeasured canonical state/history, explicit access outcomes and legacy
revocation reports agree. All 31 archived legacy cases pass byte comparisons.
Repository hooks and the documentation scope lock pass.

Exact-source logs, JUnit and toolchain evidence.
Acceptance records: artifacts/backlog/2.2.1/P2-06-C/.
All eight final-head Forgejo checks must pass before the single issue checklist
step is checked once and this PR is merged.

## Task Closes #92 (P2-06-C). ## Summary Complete chain and star sequences now check setup, manager observation, revocation and eight subsequent accesses for all seven legacy strategies. Hard-coded analytical bucket vectors and run totals agree with raw access traces and the accounting ledger across all fourteen sequences. ## Scope Adds shared conservation fixtures and their derivation. No production algorithm or legacy codec changes. Later carrier and recovery mechanisms require their own nonzero-column fixtures. ## Design intent Check conservation beyond individual operations: unique bucket ownership, componentwise and scalar sums, reverse-order ledger reconstruction and actual frontier maxima. Repeated independent oracle evaluation and graph validation must leave state, active meters, traces and accepted ledgers unchanged. ## Phase discipline Phase 2 uses complete observation and no material, checkpoint or restore work. These deterministic fixtures establish conformance; they are not campaign samples or scientific inference. ## Verification All 52 CTests pass at source commit 146fdda44f10d307dfb4f10ddfe94c5e2fe21ae2 in Debug, Release and Clang ASan/UBSan. Fourteen sequences each conserve fourteen accepted work invocations. Measured and unmeasured canonical state/history, explicit access outcomes and legacy revocation reports agree. All 31 archived legacy cases pass byte comparisons. Repository hooks and the documentation scope lock pass. [Exact-source logs, JUnit and toolchain evidence](https://git.erikinkinen.fi/attachments/b7fe0f0d-8262-4721-b608-8adf5e971607). Acceptance records: `artifacts/backlog/2.2.1/P2-06-C/`. All eight final-head Forgejo checks must pass before the single issue checklist step is checked once and this PR is merged.
erikinkinen added this to the Phase 2 milestone 2026-10-20 18:20:00 +02:00
Record P2-06-C exact-source conservation evidence
All checks were successful
clang-format / check-format (pull_request) Successful in 25s
markdownlint / markdown-lint (pull_request) Successful in 25s
ci / smoke (pull_request) Successful in 3m59s
ci / sanitizers (pull_request) Successful in 4m0s
clang-format / check-format (push) Successful in 16s
markdownlint / markdown-lint (push) Successful in 18s
ci / sanitizers (push) Successful in 3m30s
ci / smoke (push) Successful in 3m53s
b410d88e2d
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set

Reference
erikinkinen/AES!626
No description provided.