Skip to content

Preservation: defer roadmap and map original Sampler pitch calculation - #92

Merged
EmergentMonk merged 15 commits into
mainfrom
preservation/rea-sampler-pilot
Oct 19, 2026
Merged

EmergentMonk merged 15 commits into
mainfrom
preservation/rea-sampler-pilot

Conversation

@EmergentMonk

@EmergentMonk EmergentMonk commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Purpose

Implement the maintainer's roadmap pivot toward a proper v1.0.0 while preserving every historical gate. This PR defers the previous sequence, defines the bounded normal-playback pilot, and records the first direct static result.

Result

Exact original Psycle 1.12.0 x86 executable verified. Direct GNU objdump identifies a normal-note-shaped arithmetic path at RVA 0xB388C that loads a per-wave unsigned field and divides by a player-global signed field, source-consistent with sample-rate/output-rate. The frozen candidate source instead uses 44100/output-rate. Function/field naming remains source-correspondence inference, not debug-symbol proof. No target or installer execution during the local static investigation; no new runtime or bit-exact parity claim; REA itself was not installed/run. Retained pre-existing hosted CI runs independently, including its original-Windows regression observer; it was not modified or manually dispatched for this pilot.

Preservation and scope

  • Previous roadmap/history retained through additive sequencing overlays.
  • All existing matrices, fixtures, source baselines, workflows and verdicts unchanged.
  • Private observation holds, Phase 7 backlog, governance and all Phase 11 release gates retained.
  • Raw binary/disassembly remain outside GitHub; publish independently written analysis plus source-bound hash/address projection only.
  • No malformed-input work, engine patch, merge or release tag.

Verification executed

  • Official installer size/hash and extracted executable hash match frozen pins.
  • Debian innoextract 1.9-0.1+b1 package/hash verified; locally unpacked after explicit maintainer approval, no system/package maintainer scripts.
  • Independent reviewer reran all five bounded objdump calls and reproduced exact stdout hashes, verified range hashes/addresses/constants, tool hashes and input identity. No actionable findings.
  • Reviewed eight-file patch SHA-256: a5125a46df499397c894b1fd3e017a6932c21d8496a9e68b9172fc33d8705399. All eight published blob IDs match local reviewed content.
  • Legacy closeout controls PASS; parity-report 23 tests PASS; matrix validation PASS (20 contracts, 15 UNKNOWN, 5 classified); existing sampler source receipt validation PASS (not a re-derivation); static receipt range/output/status checks PASS; diff check PASS.
  • Existing CI validates its historical contracts, not the truth of this new static interpretation.

Remaining acceptance boundary

Marked ready at bf04219. Prior Codex findings about provider path, stderr custody and bounded receipt scope were fixed and independently reproduced; all three threads resolved. Fresh exact-head Codex code and security reviews both completed with no findings at bf04219 (review summary: #92 (comment)). The requested historical byte-exactness baseline was subsequently added to ROADMAP at a7bceac and independently verified against main 6346492. Fresh code/security reviews were requested for this new head; the prior clean reviews do not approve it. Current-head CI is still finishing. Original runtime reachability, actual input values, imported math behavior, x87 precision/rounding, conversion details and downstream audible results remain unresolved. Next evidence is a paired original native-Windows/candidate normal-note non-44.1-kHz render under the unchanged gates. All compatibility statuses remain unchanged.

Summary by Sourcery

Preserve the existing compatibility evidence while deferring implementation work in favor of a bounded static investigation of the original Sampler pitch calculation.

New Features:

  • Add a bounded preservation pilot and reproducible static result documenting the original Psycle Sampler pitch/sample-rate arithmetic.

Enhancements:

  • Defer the prior implementation roadmap while preserving its history, compatibility matrices, evidence, governance, and release gates.
  • Document the static correspondence between the original binary's per-wave-rate/output-rate calculation and the frozen candidate's 44,100 Hz basis, including explicit limitations and next acceptance boundary.

Documentation:

  • Update project, porting, roadmap, and Sampler documentation to describe the revised sequencing, evidence status, and v1.0.0 requirements.

Tests:

  • Add independently reproducible static-analysis evidence, artifact/tool custody records, address mappings, hashes, and validation receipts for the pinned original executable.

@sourcery-ai

sourcery-ai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

This documentation-only PR records a maintainer-directed roadmap deferral and establishes a tightly bounded, preservation-first static pilot for the original Sampler PS1 pitch/sample-rate calculation. It preserves existing evidence, UNKNOWN verdicts, governance, and release gates while explicitly documenting unexecuted analysis, artifact/tool identity requirements, safety boundaries, and the evidence needed before any compatibility or implementation decision.

Sequence diagram for the planned Sampler static investigation

sequenceDiagram
    participant Maintainer
    participant PilotProtocol
    participant OriginalBinary
    participant StaticProvider
    participant CandidateSource
    participant Review

    Maintainer->>PilotProtocol: Define bounded normal-playback question
    PilotProtocol->>OriginalBinary: Verify SHA-256 and custody
    OriginalBinary-->>PilotProtocol: Exact executable identity
    PilotProtocol->>StaticProvider: Inspect bounded PE and instruction/data flow
    StaticProvider-->>PilotProtocol: Raw output, addresses, offsets, hashes
    PilotProtocol->>CandidateSource: Compare observed calculation with frozen source
    CandidateSource-->>PilotProtocol: Candidate formula and source references
    PilotProtocol->>Review: Submit evidence, assumptions, and limitations
    Review-->>PilotProtocol: Independent exact-head review outcome
    PilotProtocol->>Maintainer: Decide next compatibility step
Loading

Flow diagram for the bounded Sampler static pilot

flowchart TD
    A[Roadmap implementation deferred] --> B[Prepare bounded static pilot]
    B --> C{Exact original executable supplied and hash verified?}
    C -- No --> D[Remain protocol-only]
    C -- Yes --> E[Pin tool/provider and record custody]
    E --> F[Inspect PE and bounded instruction/data flow]
    F --> G[Derive formula with assumptions and limitations]
    G --> H[Compare with frozen C++ candidate]
    H --> I{Independent exact-head review passes?}
    I -- No --> J[Record findings and unresolved status]
    I -- Yes --> K[Consider paired native-Windows observation]
    K --> L[Reassess compatibility and deferred roadmap]
Loading

File-Level Changes

Change Details Files
Introduces an explicit sequencing overlay that defers the prior roadmap while preserving historical plans, evidence, gates, UNKNOWN classifications, private observation holds, and governance constraints.
  • Marks the bounded normal-playback Sampler PS1 static pilot as the only active work.
  • Clarifies that the pilot does not authorize malformed-input work, runtime execution, broad reconstruction, engine changes, merging, or release tagging.
  • Adds the sequencing decision and pilot links to project-level and Phase 6C documentation.
PORTING.md
README.md
ROADMAP.md
phase6c/LEGACY_CLOSEOUT.md
phase6c/SAMPLER_PS1.md
Adds a preservation-focused protocol for investigating the original Sampler pitch/sample-rate calculation without claiming analysis or parity results.
  • Defines the single normal-playback question, scope exclusions, frozen original/source/candidate identities, and custody/provenance requirements.
  • Specifies bounded static-analysis procedures, tool/provider pinning, PE/disassembly evidence, formula reconstruction, hash retention, and observed-versus-inferred evidence separation.
  • Documents current blockers and explicitly states that original binary inspection has not run.
  • Defines pilot exit criteria, independent review requirements, inconclusive outcomes, and prerequisites for any later paired runtime observation or engine patch.
phase6c/REA_SAMPLER_PILOT.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown
Member Author

@codex review

Please review exact head f70737a. Report actionable defects only with minimal reproduction, expected vs actual, impact and executed vs inferred evidence. Focus on the sequencing overlays, preservation of all prior gates/history, factual artifact/source pins, static-versus-runtime distinction, and bounded normal-playback scope. Do not infer binary analysis or parity from this docs-only preparation. Independent local review found no actionable defects; six remote file blob IDs were verified against the reviewed patch. No merge or tag requested.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T05:43:12.389061Z a7bceac Manual request
🔒 Security Review ✅ Completed 2026-10-19T05:34:50.968835Z bf04219 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

@codex review

Please review current exact head 06d21f3, which supersedes f70737a for readiness. The only subsequent change truthfully records successful frozen-installer download/hash verification and the remaining static-extraction blocker. No target/installer execution or new parity claim. Use actionable defects with minimal reproduction, expected vs actual, impact, and executed vs inferred evidence. Preserve the no-merge/no-tag scope.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 06d21f3c16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EmergentMonk EmergentMonk changed the title Preservation: defer roadmap for bounded original Sampler static pilot Preservation: defer roadmap and map original Sampler pitch calculation Oct 19, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review exact head 7924507. This supersedes the prior docs-only review with an independently reviewed, hash-bound direct static result and JSON projection. Focus on overclaims, address/offset and artifact/source bindings, static-versus-runtime distinction, normal-playback scope and preservation gates. Report actionable defects with minimal repro, expected vs actual, impact and executed vs inferred evidence. Raw disassembly/binaries are not committed; independent local review reran all five provider commands and verified output/range hashes. Do not treat green legacy CI as proof of static interpretation. No merge/tag.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 792450742e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EmergentMonk
EmergentMonk marked this pull request as ready for review October 19, 2026 05:32
@sourcery-ai

sourcery-ai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Sorry @EmergentMonk, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.

Copy link
Copy Markdown
Member Author

Ready for review at exact head bf04219. All three prior Codex findings are fixed, independently reproduced and resolved: exact provider paths/hashes per call, complete stderr capture/digests, and machine-readable scope. Baseline closeout/parity/matrix tests remain passing. Please apply fresh code and security reviews to this head, with actionable findings, minimal repro, expected vs actual, impact and executed vs inferred evidence. Local static inspection never ran the target; retained hosted regression CI runs independently. No merge or release tag requested.

@EmergentMonk

Copy link
Copy Markdown
Member Author

@codex Please Review this exact SHA bf04219 against the existing contract. Report only actionable correctness defects, with a minimal reproduction, expected versus actual behavior, and affected lines. State whether each reproduction was executed or statically inferred. Don’t repeat fixed findings without a new failing case. Keep architectural suggestions separate and non-blocking.

Copy link
Copy Markdown
Member Author

@codex review

Review the new exact head a7bceac. Maintainer-requested ROADMAP subsection records the pre-pilot byte-exactness baseline at main 6346492: 20 scoped contracts, three load/order PASS, save MISSING, timing DIFFERENT, 15 UNKNOWN; repeated candidate renders are repeatability rather than original/candidate equality; no percentage or recreated-machine-code match. Independent documentation review verified all source receipts and found no defects. Previous clean reviews apply only to the previous head. Use actionable defects, minimal repro, expected/actual, impact and executed/inferred evidence. No merge/tag.

Copy link
Copy Markdown
Member Author

@codex security review

Please review current exact head a7bceac after the maintainer-requested, independently checked ROADMAP historical byte-exactness baseline addition. Prior security approval must not be reused for this head. Only documentation/evidence changed; original binaries and raw disassembly remain uncommitted; no target executed locally. Report actionable findings with minimal repro, expected/actual and executed/inferred evidence. No merge/tag.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: a7bceac5c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EmergentMonk
EmergentMonk merged commit 298cc1f into main Oct 19, 2026
54 checks passed
@EmergentMonk
EmergentMonk deleted the preservation/rea-sampler-pilot branch October 19, 2026 05:43
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