Skip to main content

Recoverable PROGRAM authority: independent Task 2 implementation review

2026-10-26. Independent SPEC and QUALITY review of the frozen, uncommitted Task 2 worktree against base dc854914839f9f31e31b3945277cfbe18f753e3c. This is a genuine source-review disposition, not external A, runtime adoption, actual-image approval, native qualification, or capacity acceptance.

SPEC verdict: REVISION REQUIRED. QUALITY verdict: REVISION REQUIRED. One verification regression must be corrected before this source inventory is approved. No production implementation defect was identified in the reviewed delta.

Exact reviewed subject and method​

The subject is the eleven source/test files enumerated in .superpowers/sdd/recoverable-program-authority/task-2-reviewed-worktree-hashes.json, including the new tests/scripts/event-marker-program-authority.test.mjs. The hash sheet's SHA-256 is 05d988ccd89c9312e3bfe5ef3d0a0d3ec03f52961e19f7bee015711463bd3db4. The complete review package, task-2-review-package.diff, has SHA-256 38bc966b70a690a8ebf7155b802f19f0eb8d6e98c38c7ce7ff96add830b8a1c5.

Read the approved design, Task 2 brief, Task 1 handoff, implementation report and complete diff. Independently checked every subject file's byte length and SHA-256 against the hash sheet; checked that the review package exactly contains the current tracked diff and complete new test; and checked every fixed authority body against the committed base and Task 1 identity table. The full diff was read once, with a small cutoff segment recovered separately. The review did not edit implementation, fixtures, frozen authority bodies, tables, previous reviews or adoption.

The exact caller search was repeated and its complete output compared with task-2-callers.txt: all 88 matches across 18 files agree with the recorded inventory and dispositions. The focused test suite was not rerun. Its retained final log reports 180 tests, 175 passing, zero failing and five pre-existing R93 differential skips. These are source/fixture verification results, not observed media or approval evidence. No network, AWS, Docker, native acquisition, source commit or test execution was performed by this review.

Blocking finding​

R1 — P2, restore the existing operand/range negative coverage. At tests/scripts/event-marker-positive-program-fix1.test.mjs:25, the three PP27-02 mutated-operand cases still call requireAuthorityMembership(bad,[runtime.audit]). That catalog omits all five fixed mandatory refs. After this change, scripts/event-marker-authority-closure.mjs:18 invokes requireMandatoryAuthorityMembership before checking the mutated dependency operands, so all three assertions now pass because the catalog is incomplete. An unmodified dependency object fails in exactly the same way. The test therefore no longer establishes rejection of the changed profile.sourceAuditRef byte count, kind or invalid range.

Use the fixture's complete valid JSON.parse(runtime.candidate.bytes).auditRefs for these cases, first establish that the unchanged dependencies pass against it, and require the appropriate operand/reference/conflict rejection for each mutation. Keep the separate missing-catalog assertion. Run the focused PP27-02 test using the already established execution environment, then freeze the updated file hashes and obtain review of that finite fix. This finding concerns meaningful preservation of existing guards; it does not call for broader production changes or a new review-role protocol.

Accepted implementation observations​

  • scripts/event-marker-program-contract.mjs:2 and :11 contain the exact adopted five hashes and ordered full references. Both the table and each entry are frozen; their leaves are primitive values. The module remains DATA with no reader, imports or executable generator. All five genuine retained bodies match Git and the handoff, including unchanged R94. No historical R85 equivalence is claimed.
  • scripts/event-marker-authority-closure.mjs:6 requires exact kind, ID, length and hash and rejects every own range property. Its shared catalog checker rejects duplicate/conflicting audit IDs and requires all five full refs. The original required-operand walk still returns repeated logical uses, retains conflicts and joins audit/runtime operands through their existing catalogs.
  • scripts/event-marker-program-guards.mjs:31 requires all five complete refs at both G0 and G12 and the guards ref at G1–G11. Existing semantic predicates and operands remain in place. Separate ranged citations can supplement complete refs, as intended.
  • scripts/event-marker-native-controller.mjs:22, :66 and :99 cover candidate construction, parsed intent preparation and common outer replay. Exact contract checks remain; malformed fixed membership is rejected before source/audit body reads. The coherent rehashed K/I/C negative test reacquires a real private dependency handle, avoiding a superficial stale-hash-only test. Full source/audit type, length and digest verification remains, as does exact A/K audit-array equality and bounded A intake. The new diff changes none of the surrounding result/accounting limits.
  • scripts/event-marker-native-bundle.mjs:26 reads each fixed body separately from the packaged source whitelist and validates its byte type, exact length and hash before any output writes. Duplicate catalog rejection happens before these reads. authorityOriginals returns the validated full originals to the caller while runtime files and pending K retain their existing roles. Tests use read/write spies for absent, wrong-length and same-length altered bodies and confirm zero writes and no unnecessary later reads.
  • The fixture uses all five genuine fixed originals. Its additional exact-body-review, adoption and semantic-source operands are explicitly simulated and participate in the existing proof/K/resolver closure. Removal from K or loss of their bodies fails; removing proof operands changes runtime/manifest/candidate identity even when optional K attachments remain. This preserves the intended boundary: Root must substantively inspect genuine review/adoption/implementation/semantic/image evidence before accepting replacement runtime bytes and issuing any real A. Fixed membership alone is not an attestation, and no new role parser or provenance protocol was introduced.
  • The new authority tests independently pin literal identities and actual tracked body bytes, immutability, G0/G12 and G1–G11 obligations, field/range mutations, duplicates, contract generations, repeated uses and coherent outer attacks. Controller and sizing tests extend launch/replay coverage to missing or changed originals and stale A. The PP27-02 finding above is the sole identified loss of existing negative-test meaning.

Scope, accounting and remaining gates​

The diff changes five production modules, the simulated fixture and five test files. It does not change media algorithms, argv, evidence-policy constants, producer path arrays, packaging manifest, native names or frozen authority/review originals. The recorded invariant check reports unchanged 79,996 IDs, 83 groups, 294 invocations, 134 package entries and 139 CI/builder source paths; the existing Root producer closure remains 136. DATA/code roles and repeated logical authority uses remain unchanged. Required reference uses are design 2, guards 13, pins 2, resultSizing 2 and authorityRebaseline 2.

The implementation report correctly distinguishes actual retained fixed-body storage (113,624 bytes, or 227,248 bytes for two reads) from simulated-fixture measurements. In particular, the 37,362-byte bootstrap is simulated; it does not establish actual runtime/native fit. The full 1,595-byte DATA module remains charged. No cap increase, discounted DATA, discarded repeated use or change to native/source/media/Root limits appears in the delta.

Actual native/source/provider correspondence, actual conditional-runtime fit, rebuilt-image evidence, complete genuine substantive review closure, exact external A and capacity remain OPEN. Historical unavailable obligations remain unavailable; equivalence is not established. Task 3's full host verification and durable qualification documentation remain subsequent work. This review approves no launch or paid continuation. After R1 is fixed, approval must identify the revised immutable source inventory; this initial disposition must not be cited as a passing review of changed bytes.

Final scoped disposition: R1 fix round 1​

2026-10-26. R1: ADDRESSED. Final SPEC verdict: PASS. Final QUALITY verdict: PASS. No remaining Task 2 source-review blockers and no new breakage identified in the scoped fix. These final verdicts supersede the initial revision-required verdicts for the revised subject identified below.

Reviewed only task-2-fix1.diff and the appended implementation report, retaining the prior full-diff review for the unchanged work. At tests/scripts/event-marker-positive-program-fix1.test.mjs:25, PP27-02 now supplies the complete valid candidate audit catalog to every operand mutation and explicitly proves unchanged dependencies pass against that same catalog. The separate empty-catalog rejection remains. Wrong byte count and kind specifically require native_authority_conflict; the invalid range specifically requires native_authority_reference. The fixed-authority missing-reference failure can no longer satisfy these mutation assertions.

Independently verified every current worktree file against .superpowers/sdd/recoverable-program-authority/task-2-fix1-worktree-hashes.json: all eleven match, and the other ten files are byte-identical to the initial reviewed inventory. The revised hash sheet SHA-256 is 8d754d6001854f9f1a204165d5c15af1d2f83edfb329c4a48832ae990e46903b; the fix diff SHA-256 is 21b06c776275405a327646f7962163d80e10d82cd40a58ad5b111ba2dd307850. The only revised source/test file is 19,544 bytes with SHA-256 31b20188742092290df6fc0a158ff8659ff8b8dc37dbf43eb24951f28727f7fe. Base remains dc854914839f9f31e31b3945277cfbe18f753e3c; the subject is still an uncommitted worktree, not an invented commit identity.

Inspected the retained focused RED/GREEN evidence: the old catalog fails the new unchanged-dependencies control at mandatory membership, while the repaired PP27-02 reports 1 test passed, zero failures and zero skips. No tests were rerun by this reviewer; the prior 180-test suite remains the broader pre-fix evidence, supplemented by this focused test-only repair. No production bytes changed in the fix. The source-review passes above authorize no external A, actual-image acceptance, runtime adoption, native qualification or capacity claim. All later gates and OPEN statuses stated above remain unchanged.