Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/phase6c-historical-it-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ jobs:
qmake CONFIG-=shared CONFIG+=release psycle-player.pro
make -j2

- name: Attest frozen historical candidate player
shell: bash
run: |
set -euo pipefail
mkdir -p phase6c-historical-public
python3 scripts/phase6c-midi-corpus.py attest-candidate-player \
psycle-cpp-r12005-sanitized/psycle-player/++qmake/psycle-player \
phase6c-historical-public/candidate-player-attestation.json

- name: Observe candidate historical direct-import boundary
shell: bash
run: |
Expand All @@ -199,7 +208,8 @@ jobs:
python3 scripts/phase6c-historical-it.py candidate \
"$RUNROOT/d-503_-_sickmaate.it" \
"$RUNROOT/candidate-psycle-player" \
phase6c-historical-public/candidate-historical-it.json
phase6c-historical-public/candidate-historical-it.json \
--attestation phase6c-historical-public/candidate-player-attestation.json
rm -rf -- "$RUNROOT"
rm -f -- "$HISTORICAL_IT"
! find phase6c-historical-public -type f -iname '*.it' -print -quit | grep -q .
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/phase6c-legacy-playback-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
- main
- 'phase-6c/**'
paths:
- 'phase6c/legacy-closeout.json'
- 'phase6c/LEGACY_CLOSEOUT.md'
- 'phase6c/compatibility-matrix.json'
- 'phase6c/SAMPLER_PS1.md'
- 'phase6c/DELAYED_RETRIGGER.md'
- 'phase6c/evidence/sampler-ps1/pitch-hosted/**'
- 'scripts/phase6c-legacy-closeout.py'
- 'tests/phase6c_legacy_closeout.py'
- 'phase6c/LEGACY_PLAYBACK_IMPORT.md'
- 'phase6c/evidence/legacy-module-import/**'
- 'phase6c/reference-corpus/**'
Expand Down Expand Up @@ -39,6 +47,14 @@ on:
- 'README.md'
pull_request:
paths:
- 'phase6c/legacy-closeout.json'
- 'phase6c/LEGACY_CLOSEOUT.md'
- 'phase6c/compatibility-matrix.json'
- 'phase6c/SAMPLER_PS1.md'
- 'phase6c/DELAYED_RETRIGGER.md'
- 'phase6c/evidence/sampler-ps1/pitch-hosted/**'
- 'scripts/phase6c-legacy-closeout.py'
- 'tests/phase6c_legacy_closeout.py'
- 'phase6c/LEGACY_PLAYBACK_IMPORT.md'
- 'phase6c/evidence/legacy-module-import/**'
- 'phase6c/reference-corpus/**'
Expand Down Expand Up @@ -92,6 +108,19 @@ jobs:
python3 tests/phase6c_legacy_module_import.py
python3 tests/phase6c_historical_it.py
python3 tests/phase6c_midi_corpus.py
python3 tests/phase6c_legacy_closeout.py

- name: Validate legacy implementation closeout and pending gates
run: |
python3 scripts/phase6c-legacy-closeout.py \
--output phase6c-generated/legacy-closeout.json

- name: Upload legacy closeout handoff
uses: actions/upload-artifact@v4
with:
name: phase6c-legacy-lane-closeout
path: phase6c-generated/legacy-closeout.json
if-no-files-found: error

- name: Generate canonical IT fixture
run: |
Expand Down
4 changes: 4 additions & 0 deletions PSYCLE_CORE_PARITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ Phase 6 separates engine gaps from UI gaps. The absence of a full tracker UI in
- C-Psycle platform UI bridge implementation details;
- C-Psycle's newer event-sequencer internals when they differ from original Psycle.

## Legacy detour handoff

The [legacy-lane closeout](phase6c/LEGACY_CLOSEOUT.md) records the IT/MIDI donor repairs and named follow-ups for unresolved import/translation/runtime boundaries. Its implementation is complete; historical and MIDI private observations remain pending. No matrix row is added or promoted, and the return point after observation review is the pending Sampler PS1 E-D3/E-C3 paired witness.

## Current implementation backlog

Phase 6C now justifies this evidence backlog:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ That distinction changes the implementation strategy.

**C-Psycle is no longer treated as the literal implementation base for the final Linux Psycle.** The extensive work already completed against `cpsycle/` remains valuable as a preservation corpus, compatibility laboratory, behavioural oracle, Linux-port reference, and regression suite.

Phase 6B is complete: the provenance-cleared SourceForge SVN r12005 C++ candidate has been imported as `psycle-cpp-r12005-sanitized/`, frozen by a reproducible baseline identity, and its historical Linux `psycle-player` build is maintained in CI. Phase 6C is collecting evidence against the pinned Psycle 1.12.0 x86 reference, while Phase 6D keeps the human parity report mechanically synchronized with the canonical compatibility matrix. **The immediate Phase 6C priority is now the legacy playback/import evidence lane**: a generated redistributable Impulse Tracker fixture, a hash-bound historical `.it` witness, and a contributor-supplied MIDI reference corpus are being used to expose shared song-I/O, timing, sampler, command and routing failures before expanding the remaining isolated contracts. See [`phase6c/LEGACY_PLAYBACK_IMPORT.md`](phase6c/LEGACY_PLAYBACK_IMPORT.md). The current 20-contract matrix itself is unchanged: three scoped `PASS` results, one scoped serialization/save `MISSING` result, one scoped BPM/LPB/tick `DIFFERENT` result, and 15 `UNKNOWN` contracts.
Phase 6B is complete: the provenance-cleared SourceForge SVN r12005 C++ candidate has been imported as `psycle-cpp-r12005-sanitized/`, frozen by a reproducible baseline identity, and its historical Linux `psycle-player` build is maintained in CI. Phase 6C is collecting evidence against the pinned Psycle 1.12.0 x86 reference, while Phase 6D keeps the human parity report mechanically synchronized with the canonical compatibility matrix. **The legacy playback/import detour implementation is now closed out, with private observation gates still pending**: a generated redistributable Impulse Tracker fixture, a hash-bound historical `.it` witness, and a contributor-supplied MIDI reference corpus are being used to expose shared song-I/O, timing, sampler, command and routing failures before expanding the remaining isolated contracts. See the [closeout and return plan](phase6c/LEGACY_CLOSEOUT.md) and [`phase6c/LEGACY_PLAYBACK_IMPORT.md`](phase6c/LEGACY_PLAYBACK_IMPORT.md). After private observation review, the return point is the pending Sampler PS1 E-D3/E-C3 paired witness. The current 20-contract matrix itself is unchanged: three scoped `PASS` results, one scoped serialization/save `MISSING` result, one scoped BPM/LPB/tick `DIFFERENT` result, and 15 `UNKNOWN` contracts.

## Dedication

Expand Down
4 changes: 3 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ At the start of Phase 6A the repository did **not** import the C++ engine family

### 6C — build a three-way compatibility matrix

> **Current priority hold — legacy playback/import evidence.** After the Sampler PS1 E-D3/E-C3 lane, new Phase 6C expansion is temporarily deferred while the project establishes a legacy module import/playback baseline. Historical module import crosses song I/O, sequence construction, tracker-command translation, samples, loops, sampler state, timing and routing in one path, making it a high-value diagnostic for shared playback defects. The first lane uses a generated redistributable IT fixture plus the hash-bound external `SickMaate` historical witness and the contributor-supplied MIDI reference corpus. Existing receipts and matrix verdicts remain frozen. See [`phase6c/LEGACY_PLAYBACK_IMPORT.md`](phase6c/LEGACY_PLAYBACK_IMPORT.md).
**Legacy implementation closeout:** the IT/MIDI donor repairs and remaining boundaries now have a checked [handoff ledger](phase6c/LEGACY_CLOSEOUT.md), forming the intended v0.2.0 checkpoint. The historical and real-corpus observation/review gates remain pending; the priority hold below is not automatically cleared. After those outcomes are recorded and reviewed, resume the pending Sampler PS1 E-D3/E-C3 paired witness, then the existing narrow PS1 ladder.
Comment thread
EmergentMonk marked this conversation as resolved.
Resolved

> **Current priority hold — legacy playback/import evidence.** The Sampler PS1 E-D3/E-C3 collector is implemented, but its pending paired observation and new Phase 6C expansion are temporarily deferred while the legacy module import/playback lane completes its private observation gates. Historical module import crosses song I/O, sequence construction, tracker-command translation, samples, loops, sampler state, timing and routing in one path, making it a high-value diagnostic for shared playback defects. The lane uses a generated redistributable IT fixture plus the hash-bound external `SickMaate` historical witness and the contributor-supplied MIDI reference corpus. Existing receipts and matrix verdicts remain frozen. See [`phase6c/LEGACY_PLAYBACK_IMPORT.md`](phase6c/LEGACY_PLAYBACK_IMPORT.md).

Compare:

Expand Down
96 changes: 96 additions & 0 deletions phase6c/LEGACY_CLOSEOUT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Phase 6C — Legacy-lane closeout

The IT/MIDI detour has an **implementation closeout**, recorded in
[`legacy-closeout.json`](legacy-closeout.json). The repaired donor paths and
remaining capability/translation boundaries have explicit dispositions and
follow-up actions. **Private observation closeout remains pending.** This is
the intended v0.2.0 implementation checkpoint, not a new parity verdict.

## Repair and handoff ledger

| Boundary | Disposition | Retained scope / follow-up |
| --- | --- | --- |
| IT sample-mode instruments and routes | Repaired in C-Psycle | Canonical fixture, two identical non-silent 512-frame renders |
| Disabled/dormant SMF import path | Repaired in C-Psycle | Existing loader restored; pre-projection event graph recorded |
| MIDI releases and voice allocation | Repaired in C-Psycle | Equal-tick/terminal releases, channel matching, high notes and 64-voice reuse |
| MIDI timing/event semantics | Repaired in C-Psycle | Exact ticks, tempo maps, initial BPM, SysEx, running status, note/CC digests |
| Ended Sampulse foreground voice | Repaired in C-Psycle | Avoid period recalculation without a live sample controller |
| Frozen candidate direct IT/SMF loading | Handed off | Narrow host/song-I/O capability lane; establish original requirements first |
| IT note-cut → release compromise | Handed off | Pin original note-cut behavior before translation changes |
| Native MIDI instrument selection | Handed off | Deterministic Sampler projection proves execution; instrument choice remains separate |
| Original Sampler startup / render attribution | Handed off | Continue paired PS1 and delayed/retrigger evidence; donor fixes do not settle original behavior |

The ledger's `references` point to the retained source, procedures and regression
probes. `REPAIRED_DONOR_ONLY` describes the scoped donor repair, never original
Psycle compatibility. `HANDED_OFF` means the boundary has a named next action;
it does not mean the capability is implemented or verified.

The compatibility matrix, historical-input manifest and six-set corpus manifest
remain byte-identical to the PR #89 checkpoint. The closeout validator checks
their SHA-256 identities. Future changes must explicitly revise the closeout
snapshot rather than presenting changed inputs as this checkpoint.

## Validate the checkpoint

```bash
python3 tests/phase6c_legacy_closeout.py
python3 scripts/phase6c-legacy-closeout.py --output /tmp/legacy-closeout.json
```

Ordinary PR CI runs the new controls alongside the existing IT, historical and
MIDI contracts and the native donor execution probes. Its new
`phase6c-legacy-lane-closeout` artifact reports the implementation handoff with
both private observation gates pending. A successful validator exit means the
encoded closeout contract passed; it does not mean the private corpus ran.

## Outstanding private observations

| Lane | Masked repository secret | Combined artifact |
| --- | --- | --- |
| Historical `SickMaate` | `PSYCLE_PHASE6C_HISTORICAL_IT_URL` | `phase6c-historical-sickmaate-three-way-summary` |
| Six MIDI stem sets | `PSYCLE_PHASE6C_MIDI_CORPUS_URL` | `phase6c-midi-real-world-corpus-summary` |

Dispatch the existing manual workflows documented in
[`LEGACY_PLAYBACK_IMPORT.md`](LEGACY_PLAYBACK_IMPORT.md), then download and
extract each **combined** artifact. Raw IT/MIDI/ZIP/WAV bytes stay outside the
public evidence roots. Recheck the summary against its complete component files:

```bash
python3 scripts/phase6c-legacy-closeout.py \
--historical-artifact /path/to/historical-summary \
--midi-artifact /path/to/midi-summary \
--output /tmp/legacy-closeout-observations.json
```

The tool reruns the existing summary/component validators, checks the recreated
summary matches, rejects missing or changed support files, and audits the roots
for private payloads and symlinks. Both lanes require the frozen candidate's
clean-rebuild attestation, retained executable, dependency identities and exact
workflow repository revision. Use a checkout of the exact workflow head to
revalidate downloaded artifacts, rather than relabeling old evidence as a new
run. Historical artifacts produced before this attestation was added cannot
satisfy the closeout gate; repeat the private observation with the attested
workflow instead of retroactively issuing identity claims for an old run.

`COMPONENTS_REVALIDATED` means summary integrity under those existing contracts.
It is narrower than an independent execution replay or a new original-reference
behavioral verdict. Missing artifacts stay `PENDING_PRIVATE_DISPATCH`; malformed
supplied evidence fails validation. Neither a self-reported success flag nor an
inconclusive original observation clears the priority hold automatically.

## Return to the main evidence ladder

Once the private outcomes have been reviewed against the existing priority-hold
exit criteria and any new defect has been isolated or handed off, record the
observation identities and update the working roadmap. The return point is the
pending **Sampler PS1 E-D3/E-C3 paired runtime witness**, then the narrow
envelope/loop/panning/offset/volume/retrigger/state ladder in
[`SAMPLER_PS1.md`](SAMPLER_PS1.md). XMSampler and routing follow under normal
Phase 6C evidence rules. The confirmed Phase 7 serializer and TPB/extra-tick
backlog remains separate.

This implementation checkpoint leaves all existing matrix verdicts untouched:
three scoped `PASS`, one `MISSING`, one `DIFFERENT` and fifteen `UNKNOWN`.
The closeout report itself always retains `parity_status: UNKNOWN` and
`priority_hold: AWAITING_OBSERVATION_REVIEW`; it cannot authorize engine
convergence or deferred evidence expansion by itself.
12 changes: 9 additions & 3 deletions phase6c/LEGACY_PLAYBACK_IMPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ While the legacy lane is active, **this document is the working roadmap**. The b
1. [x] **Import/translation baseline** — canonical generated IT identity, donor import/decoder coverage, pinned-original acceptance observation, and frozen-candidate direct-import boundary.
2. [x] **Sample-mode playback witness** — C-Psycle sample-mode instrument/virtual-generator mapping is restored and the canonical generated fixture has a deterministic non-silent donor playback witness.
3. [ ] **Historical `SickMaate` three-way summary — private observation pending** — the privacy-preserving original/candidate/donor workflow is implemented; the three-way observation remains pending manual dispatch with the private historical input.
4. [ ] **MIDI real-world playback corpus — current phase** — exercise the contributor-supplied SMF corpus from gentle baseline through dense timing/polyphony/routing stress, keeping native MIDI import separate from the deterministic audibility projection.
5. [ ] **Legacy-lane closeout** — isolate or hand off any remaining shared playback defects, then resume the deferred Phase 6C contract ladder.
4. [ ] **MIDI real-world playback corpus — implementation complete, private observation pending** — exercise the contributor-supplied SMF corpus from gentle baseline through dense timing/polyphony/routing stress, keeping native MIDI import separate from the deterministic audibility projection.
5. [x] **Legacy-lane implementation closeout** — repaired donor defects and remaining boundaries are recorded in the checked [closeout ledger](LEGACY_CLOSEOUT.md). Private observation/review gates remain pending before the deferred Phase 6C contract ladder resumes.

No item in this temporary roadmap may promote original-Psycle parity without the normal paired/versioned evidence requirements.

Expand Down Expand Up @@ -227,6 +227,12 @@ This gives the project two complementary layers:
1. **minimal generated fixtures** that continuously isolate and exercise the execution path;
2. **real musical corpora** that reveal interactions and audible regressions under private, identity-bound observation.

## Implementation closeout

The final implementation step is recorded in [`LEGACY_CLOSEOUT.md`](LEGACY_CLOSEOUT.md) and `legacy-closeout.json`. The closeout validator preserves the matrix and private-input manifest identities, checks all repair/handoff dispositions, and can revalidate downloaded combined observation artifacts through the existing lane validators. This is the intended v0.2.0 checkpoint. It does not turn implemented workflows into completed private observations or clear the priority hold by itself.

After the outstanding private observations are reviewed, resume the pending Sampler PS1 E-D3/E-C3 paired runtime witness before widening the remaining PS1, XMSampler and routing contracts.

## Exit criteria for the temporary priority hold

Resume the previously deferred Phase 6C expansion after all of the following are true:
Expand All @@ -238,6 +244,6 @@ Resume the previously deferred Phase 6C expansion after all of the following are
- [x] C-Psycle sample-mode import has a deterministic non-silent playback witness from the unchanged canonical fixture;
- [ ] the historical `SickMaate` witness has a hash-bound original/candidate/C-Psycle observation summary without redistributing its samples;
- [ ] the contributor-supplied MIDI corpus has begun real-world playback observations after the minimal IT witness is stable;
- [ ] any discovered shared playback defect has either been isolated or explicitly handed off to a narrow fix/evidence PR.
- [x] shared playback defects discovered in the implemented detour have been repaired in the donor or explicitly handed off with a scoped next action in [`legacy-closeout.json`](legacy-closeout.json); new private-run findings must receive the same treatment.

Only then return to the remaining Sampler PS1, XMSampler, routing and other Phase 6C rows.
Loading
Loading