Cubase-MCP-GAJ3T.MusicGen.R.../prompts/report_9.md

22 KiB

STEP 9 REPORT — Supported-slice Windows x64 local MCP publication
Date: 2026-10-20

SUPPORTED-SLICE PUBLICATION / AUTOMATED VALIDATION: PASS.
READY FOR ORCHESTRATOR REVIEW: YES.
FULL REQUESTED-PRODUCT / APPLICATION READINESS: FALSE / BLOCKED.
Runtime-free Windows acceptance: PENDING, not performed.
Native Steps 6/7, five mappings and licensed-application acceptance remain open.
Stop here for review; no later step was started.

IMPLEMENTED / PRESERVATION
- Added Properties\PublishProfiles\win-x64.pubxml: Release, win-x64,
  SelfContained=true, PublishSingleFile=true, PublishTrimmed=false,
  PublishAot=false, UseAppHost=true, IncludeNativeLibrariesForSelfExtract=true.
  Existing assembly/executable name, Microsoft.NET.Sdk/net10.0/OutputType=Exe,
  application code, two MCP tools and embedded catalogs are unchanged.
- Added a publication-specific packages.win-x64.lock.json, generated by restore.
  Single-file publication needs the SDK's implicit ILLink analysis tool 10.0.11
  and RID graph. The profile selects this separate lock so normal solution
  locked restore remains reproducible. No PackageReference, central version,
  project or existing packages.lock.json changed in the final result.
  DryWetMIDI remains exactly [8.0.3]; all existing test pins are unchanged.
  ILLink is SDK build tooling, not an added application feature/dependency.
- Extended the existing McpProcess harness with optional explicit absolute
  executable path and child-only environment overrides. Existing callers and
  bounded 15-second timeout/concurrent stdout+stderr drains remain supported.
  Cleanup kills only its owned Process tree if necessary.
- Added 14 focused PublishedServerTests, reusing existing structured-content
  assertions and pinned DryWetMIDI read-back. Existing read-back additionally
  checks tick-zero tempo/meter; no alternate MIDI parser was introduced.
- Added docs\local-deployment.md: reproducible/locked publication, exact payload,
  native extraction facts, copyable VS Code servers/type=stdio/command/args
  configuration, explicit AME/AGLP tool arguments, lifecycle, paths, collisions,
  fallback, cancellation, troubleshooting and honest acceptance limits.
  Updated README.md and docs\format-compatibility.md accordingly.
- All pre-existing source/profile/MCP changes and orchestration files were
  preserved. No prompts/plan or worker-prompt changes, MCP settings edits,
  service registration, long-lived service, vendor/system installation,
  public CLI generation feature, new project, commit or delegation.

PERSISTENT ARTIFACTS / EXACT PUBLICATION INVENTORY
Repository:
  D:\_Repos\Code\GAJ3T\MCPs\MusicGen\GAJ3T.MusicGen.Riff-Groove-Builder.Net
Published executable:
  D:\_Repos\Code\GAJ3T\MCPs\MusicGen\GAJ3T.MusicGen.Riff-Groove-Builder.Net\artifacts\publish\win-x64\GAJ3T.MusicGen.RiffGrooveBuilder.Server.exe
Published directory: artifacts\publish\win-x64
  GAJ3T.MusicGen.RiffGrooveBuilder.Server.exe       74,721,264 bytes
  GAJ3T.MusicGen.RiffGrooveBuilder.Core.pdb             37,636 bytes
  GAJ3T.MusicGen.RiffGrooveBuilder.Generation.pdb       20,208 bytes
  GAJ3T.MusicGen.RiffGrooveBuilder.Server.pdb           20,320 bytes
  Melanchall_DryWetMidi_Native64.dylib                 90,600 bytes
  TOTAL: five files, 74,890,028 bytes.
Executable SHA256:
  DC7A1CB45BD61B565016932656CDE0E2D9DE161412269B356D79512595AD1E90
Publication and generated example remain locally present and git-ignored by the
existing artifacts/ rule; no unrelated artifacts were deleted.

ACTUAL PUBLISHED-PROCESS / RPC FACTS
- Tests copy the actual five-file publication into a unique checkout-owned
  artifacts\checks\published-<guid>\payload, not the built Server test copy.
  They launch that explicit exe with cwd=the existing Windows system directory
  (C:\Windows\System32), redirected UTF-8 streams and bounded cleanup.
- Initialize MCP 2025-11-25 and send notifications/initialized; discover exactly
  generate_project and list_instrument_profiles; discovery returns seven
  identities, two Documented profiles and five mapping_unavailable identities.
  Explicit profiles exercised:
    ample-ame-documented-defaults-2026-10-20
    ample-aglp-documented-defaults-2026-10-20
- Both explicit Lead profiles, formats=["mid"], fallbackToMidi=false produce
  status=complete and exactly one actual 371-byte MIDI with compatibility warning.
  Text content exactly matches structuredContent; successful isError=false.
- AGP-only, AGP+MIDI and omitted Lead formats produce status=fallback, exactly
  one real MIDI and native_writer_unavailable reasons; no native placeholder.
  Disabled fallback fails with native_fallback_disabled and no output directory.
  Lead+Bass and Lead+Drums fail explicitly with mapping_unavailable, with no
  partial artifacts or silently dropped selected role.
- A second request for an already generated MIDI fails with output_exists,
  preserves its exact original bytes and an unrelated owner.txt, and leaves
  no extra staging/partial artifact. The original MIDI reopens afterward.
- Parse errors (-32700) and contract errors (-32602) leave the process usable.
  Initialize/tool/ping replies prove readiness; stdout lines are protocol-only.
  Normal completion requires empty stderr, clean EOF exit0 and no extra response.
  Empty stdin/EOF exits silently. Cancellation plus ping and a separate active-
  generation EOF case leave no output.
- These 14 checks generate eight actual successful MIDI files per focused run,
  all read back before owned test cleanup; one collision case reads its file
  again after the rejected second request. Retained-example opt-in is separate.
- Final cleanup inspection: zero owned published-check directories and zero
  published-check server processes remaining. No long-lived helper was started.

PINNED PACKAGE / EXTRACTION / PACKAGING FACTS
- Inspected DryWetMIDI 8.0.3's actual package assets/build targets: its None items
  copy native32/native64 Windows DLLs and the macOS dylib without RID filtering.
  The .dylib remains a Windows-unused sidecar; three PDBs are optional symbols.
- A separate task-owned directory containing ONLY the published .exe also
  successfully initialized MCP, generated actual MIDI, passed DryWetMIDI
  read-back/ping and exited0 from the unrelated cwd. No source-tree loose
  DLL/catalog/cwd dependency, symbols or macOS sidecar was needed for this path.
- DOTNET_BUNDLE_EXTRACT_BASE_DIR was set only in child test processes, beneath
  their owned checkout directories; it did not change user/machine settings.
  Executable-only startup extracted exactly:
    Melanchall_DryWetMidi_Native32.dll   57,954 bytes
      SHA256 080346C638E219EC7CD4748E370E5E11931ED3A228C17F76D84C4D10BA9C9E6F
    Melanchall_DryWetMidi_Native64.dll   66,926 bytes
      SHA256 80CA89AF931E43642A125EC82E253D9BD7002088D000DABA6E0661CDAD89F5AA
  Tests compare these with the inspected pinned-package hashes. No loose
  managed DryWetMIDI assembly, catalog, coreclr.dll or clrjit.dll was extracted.
- Child-only DOTNET_HOST_TRACE=1 / DOTNET_HOST_TRACEFILE showed:
    Executing as a self-contained app as per config file [...]
    Using internal hostpolicy
    hostpolicy version: 10.0.11
    CoreCLR path = '', CoreCLR dir = ''
  Runtimeconfig inspection records includedFrameworks Microsoft.NETCore.App
  10.0.11, not a framework-dependent runtime requirement.
- This is Windows x64 publication on SDK 10.0.400/.NET 10.0.11. Normal bundle
  extraction needs a writable cache; the guide explains default/override paths.
  Package extraction is not proof of device-library invocation: no playback/
  MIDI-device API was used. Host tracing and SDK-machine execution are NOT
  runtime-free host acceptance. No matching runtime-free host was available;
  that test remains pending, without simulated DOTNET_ROOT evidence.

RETAINED ACTUAL RPC-GENERATED EXAMPLE
  D:\_Repos\Code\GAJ3T\MCPs\MusicGen\GAJ3T.MusicGen.Riff-Groove-Builder.Net\artifacts\examples\ame-lead-example.mid
Generated by PublishedRpcGeneratesReadBackExample with child published stdio RPC:
  description: 4 bars at 120 BPM in E minor, 4/4: palm-muted eighth-note lead
  formats: ["mid"]
  profiles.lead: ample-ame-documented-defaults-2026-10-20
  fallbackToMidi: false
  outputDirectory: <repository>\artifacts\examples
  projectName: ame-lead-example
Destination did not already exist. Test logic preserves any existing destination
and selects a distinct GUID-suffixed stem on future opt-in runs.
Result: status=complete, one 371-byte MIDI and Documented compatibility warning.
SHA256:
  6F5791FB5C3A7A17E54AAF6436963E4D5723FB948057585060C09BF9B2AFCA3E
Pinned DryWetMIDI 8.0.3 reopened the actual RPC-returned path and checked:
  SMF type1, 960 PPQ; exactly Conductor and Lead tracks;
  tick-zero 500000 microseconds/quarter (120 BPM), 4/4;
  32 musical notes, pitch64/velocity96/channel0;
  starts 120+480*i, duration480, i=0..31, explicit velocity0 note-offs;
  one PM switch26/velocity100 at0 with explicit note-off at30;
  66 channel events, shared lead-in120, both EOT markers at15480.
This is newly generated content, not a copied vendor demo/native fixture.
Source-backed Documented compatibility is NOT installed/application-verified;
import/audible behavior and certified vendor timing were not tested.

FINAL REPRODUCIBLE VALIDATION / RESULTS
Repository-root PowerShell. Each dotnet shell used process-local:
  $env:PATH = 'C:\Program Files\dotnet;' + $env:PATH
  $env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
  $env:DOTNET_NOLOGO = '1'

1. dotnet publish .\src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\GAJ3T.MusicGen.RiffGrooveBuilder.Server.csproj -p:PublishProfile=win-x64 -o .\artifacts\publish\win-x64 --verbosity minimal
   PASS, exit0; inspected actual payload listed above.
2. dotnet restore .\src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\GAJ3T.MusicGen.RiffGrooveBuilder.Server.csproj -p:PublishProfile=win-x64 --locked-mode --verbosity minimal
   PASS, exit0; separate publication lock honored.
3. dotnet publish .\src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\GAJ3T.MusicGen.RiffGrooveBuilder.Server.csproj -p:PublishProfile=win-x64 --no-restore -o .\artifacts\publish\win-x64 --verbosity minimal
   PASS, exit0; final retained payload, revalidated afterward.
4. dotnet restore .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx --locked-mode --verbosity minimal
   PASS, exit0 before Release build, and again after the full suite.
5. dotnet build .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx -c Release --no-restore --verbosity minimal
   PASS, exit0; all five projects, 0 warnings, 0 errors.
6. dotnet test .\tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests.csproj -c Release --no-build --filter FullyQualifiedName~PublishedServerTests --verbosity minimal
   PASS, exit0; 14 passed, 0 failed/skipped against final published payload.
   Earlier build-enabled focused run also passed all 14.
7. $env:RIFFGROOVE_RETAIN_EXAMPLE = '1'
   dotnet test .\tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests.csproj -c Release --no-build --filter FullyQualifiedName~PublishedRpcGeneratesReadBackExample --logger 'console;verbosity=detailed'
   PASS, exit0; 1 passed, 0 failed/skipped. Printed retained path/hash/read-back
   and initialized/ping/empty-stderr/EOF-exit0 facts. Environment was scoped to
   this shell; subsequent full-suite shells did not retain more examples.
8. dotnet test .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx -c Release --no-build --verbosity minimal
   PASS, exit0; 780 unit + 102 integration = 882 passed, 0 failed/skipped.
   Accepted baseline868 preserved; net +14 publication integration cases.
9. git --no-pager diff --check
   PASS before report; final report-only addition checked afterward.
Editor problems on all three edited/new test files: no errors.

DEVELOPMENT ISSUES / CORRECTIONS
- Editor runTests returned "No tests found"; not counted as test success.
  Used the established dotnet CLI runner instead.
- First focused CLI compile failed CS0050 because a public fixture method
  returned internal McpProcess. Made that test helper internal; compiled cleanly.
- Initial publish put RID/single-file implicit tooling into the ordinary server
  lock; solution locked restore correctly failed NU1004. Selected a separate
  profile lock, republished, then ran one --force-evaluate solution restore to
  regenerate the ordinary graph. Existing lock files match their original
  contents. Both ordinary and profile locked restores now pass.
- An intermediate 13-case run passed12/failed1: the new extraction assertion
  incorrectly expected loose coreclr.dll/clrjit.dll. Actual .NET 10 host tracing
  showed internal hostpolicy/CoreCLR and only the two package-native DLLs.
  Corrected the test to assert observed self-contained/internal-host facts,
  exact extracted file count and pinned native hashes. No production workaround
  or runtime-free claim was made. Final expanded14/full882 tests pass.

STEP 9 FILES
  src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\Properties\PublishProfiles\win-x64.pubxml
  src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\packages.win-x64.lock.json
  tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\Publishing\PublishedServerTests.cs
  tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\Stdio\McpProcess.cs
  tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\Stdio\McpGenerationTests.cs
  docs\local-deployment.md
  docs\format-compatibility.md
  README.md
  prompts\report_9.md
  Plus ignored publication/example artifacts listed above.

REMAINING LIMITS / REVIEW STOP
- Usable supported-slice local publication succeeds; full Step 9/full requested
  product exit criteria do not. Runtime-free Windows x64 acceptance is pending.
- Documented AGLP/AME default Lead profiles only. ABJ, AGM, AGT, AMR and SD3
  mappings are unavailable. No new profile, role substitute or GM guess.
- AGP/SDP codecs/authorized fixtures and native semantics remain unresolved;
  native writers are unavailable and Steps 6/7 are blocked, not completed.
- No licensed Cubase/Ample/SD3 import, VST hosting, audible articulation,
  exact installed-version/settings acceptance or native reopen was performed.
  Those are pending and cannot be inferred from RPC/MIDI read-back.
- No user/workspace/global MCP configuration was written. The copyable client
  configuration is documentation, not a claim of an actual VS Code client run.
- No runtime-free machine, system runtime removal, VM/container, vendor install,
  long-lived service, new feature/project, package upgrade, commit or delegation.
- READY for orchestrator review of the published supported slice only.
  STOP; no subsequent step or full-scope acceptance is authorized by this report.

===============================================================================
PUBLICATION REFRESH — Correction iteration 4: additional evidenced capabilities
Date: 2026-10-20
Entry baseline882; original Step9 report/inventory above preserved as history.

REFRESHED SUPPORTED-SLICE PUBLICATION / AUTOMATED VALIDATION: PASS.
READY FOR ORCHESTRATOR REVIEW: YES.
Runtime-free Windows x64 and licensed-application acceptance: STILL PENDING.
Native Steps6/7: STILL BLOCKED; no codec, native success or extension substitution.

CURRENT EMBEDDED CAPABILITIES
- Seven identities; five Documented profiles, zero application-Verified.
- Four Lead profiles: AGLP/AGM/AGT/AME, Sustain+PalmMute, zero-based channel0.
- One Bass profile: ABJ Sustain ONLY, velocities1-125/range35-76/channel1.
  PM fails unsupported_articulation; accents126-127 are not Sustain.
- Nine articulation entries total; AMR and SD3 remain mapping_unavailable.
  MIDI writer implemented; AGP/SDP writers unavailable/application-unverified.
- No automatic role defaults. Missing explicit Bass now fails no_default_profile;
  unmapped Drums still fails mapping_unavailable. Unknown/wrong-role profiles,
  disabled fallback and no-overwrite remain explicit failures.
- Exact new sources, shared ABJ/ABP scope and AGT named A6=105 anchor conclusion
  are recorded in correction iteration4 of report4 and articulation-mappings.md.
  AGT is admitted under documented-default scope, NOT a direct Sustain/PM demo
  or installed-release claim. No Tab Player/note105 control is emitted.

EXISTING PUBLISH CONFIGURATION / LOCKS PRESERVED
- Used accepted win-x64.pubxml unchanged: Release, win-x64, self-contained,
  single-file, untrimmed, non-AOT, native self-extraction enabled.
- Existing dedicated packages.win-x64.lock.json honored unchanged:
  SHA256 AFEB86CEB2EF6A671126A04D8187EF824213E55C2348EA45C7849255332F2193.
- Ordinary solution and publication-specific locked restores both pass.
  No project/package/runtime version, settings or publish feature was changed.
  SDK10.0.400; DryWetMIDI[8.0.3]; included runtime remains10.0.11.

REFRESHED PERSISTENT PAYLOAD
Directory:
  D:\_Repos\Code\GAJ3T\MCPs\MusicGen\GAJ3T.MusicGen.Riff-Groove-Builder.Net\artifacts\publish\win-x64
Exactly five files, total74,902,828 bytes:
  GAJ3T.MusicGen.RiffGrooveBuilder.Server.exe       74,734,064
    SHA256 921AADE7FB75222E8A7E5E81151F3DC73747CD8036EE751555A613A5DBDD308E
  GAJ3T.MusicGen.RiffGrooveBuilder.Core.pdb             37,636
    SHA256 D27A30CDEC00C8E0574648812E4B67A64990196CE8B4FDBD55800F4933612A3C
  GAJ3T.MusicGen.RiffGrooveBuilder.Generation.pdb       20,208
    SHA256 FA5AA29C946BD0694E0D4EFCF3B85630AB072EF85123E2F88C2A57D1B10D8B33
  GAJ3T.MusicGen.RiffGrooveBuilder.Server.pdb           20,320
    SHA256 6545B0AA2EDB72E7226A23BA757C527441AC56897A12281B6504D286259984A2
  Melanchall_DryWetMidi_Native64.dylib                 90,600
    SHA256 AA08C542E77B045FA1E00D4FEAB21080CEB415C4B6C343B0DBC5704D1FB02F92
No unrelated artifacts were removed. Publication remains locally retained and
ignored. Metadata from this executable reflects five profiles, not the old two.

ACTUAL REFRESHED PUBLISHED-PROCESS / MIDI FACTS
- 28 focused PublishedServerTests pass using isolated copies of this actual
  refreshed payload and unrelated system-directory cwd. Production still exposes
  exactly list_instrument_profiles and generate_project; five Documented profile
  IDs and two unmapped identities are asserted through the real stdio process.
- Each of all four explicit Lead profiles produces readable MIDI. The executable-
  only/native-extraction/host-trace, protocol purity, ping, cancellation/EOF,
  invalid input and collision/no-overwrite regressions remain passing.
  No runtime-free host was available; these are SDK-machine packaging checks.
- Eight new published Lead+Bass cases: each AME/AGLP/AGM/AGT with explicit ABJ,
  formats=["mid"]/fallback=false and formats=["agp","mid"]/fallback=true.
  All produce exactly ONE real435-byte MIDI retaining both roles:
    SHA256 F31C7C2236637AF9412738418AF61E7D613D51C89A8FFB43B379012C7798384A.
  Read-back with pinned DryWetMIDI verifies:
    Type1/960PPQ; Conductor,Lead,Bass; tick-zero120BPM/4-4.
    Lead channel0:32 pitch64/velocity96 notes,120+480*i,duration480.
    Bass channel1:4 pitch40/velocity96 notes,120+3840*i,duration3840.
    PM26/100 and Sustain24/100 each on0/off30; shared lead-in120.
    76 channel events; exact note/control pairing; three EOTs at15480.
  Native fallback retains two native-unavailable target reasons, two written
  MIDI role outcomes and two Documented disclosures in one artifact. No native
  placeholder, partial role drop or duplicate MIDI is generated.
- Published ABJ PM, missing Bass selection, unmapped Drums and unknown/wrong-role
  profile tests fail explicitly before output. Existing collision test preserves
  its MIDI and unrelated owner file.
- Test-owned generated MIDI/payload copies are read before cleanup, then removed.
  Final inspection: no owned published-check directories/processes left.

ACCEPTED AME EXAMPLE — PRESERVED, NOT REGENERATED OR OVERWRITTEN
  artifacts\examples\ame-lead-example.mid,371 bytes.
  SHA256 6F5791FB5C3A7A17E54AAF6436963E4D5723FB948057585060C09BF9B2AFCA3E.
Before/after hashes agree; new explicit preservation/read-back test passes.
Original semantics remain Type1/960PPQ, Conductor/Lead,120BPM/4-4,
32 pitch64/velocity96/channel0 notes, PM26/100 on0/off30,
lead-in120/end15480. No additional retained example was requested or created;
the435-byte Lead+Bass files above are transient test evidence.

EXACT VALIDATION
1. dotnet build .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx -c Release --no-restore --verbosity quiet
   PASS,0 warnings/errors, before publication and after ordinary locked restore.
2. dotnet restore .\src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\GAJ3T.MusicGen.RiffGrooveBuilder.Server.csproj -p:PublishProfile=win-x64 --locked-mode --verbosity minimal
   PASS.
3. dotnet publish .\src\GAJ3T.MusicGen.RiffGrooveBuilder.Server\GAJ3T.MusicGen.RiffGrooveBuilder.Server.csproj -p:PublishProfile=win-x64 --no-restore -o .\artifacts\publish\win-x64 --verbosity minimal
   PASS, actual retained payload above.
4. dotnet restore .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx --locked-mode --verbosity minimal
   PASS. Both locked restores repeated quietly after full validation: PASS.
5. Combined focused profile/catalog/MIDI/service/MCP/publication selection:
   PASS,414 unit+107 integration=521; full filter recorded in report4.
6. dotnet test .\GAJ3T.MusicGen.RiffGrooveBuilder.slnx -c Release --no-build --verbosity quiet
   PASS,794 unit+142 integration=936;0 failed/skipped. Baseline882,net+54.
7. dotnet test .\tests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests\GAJ3T.MusicGen.RiffGrooveBuilder.IntegrationTests.csproj -c Release --no-build --filter FullyQualifiedName~PublishedServerTests --verbosity quiet
   PASS,28;0 failed/skipped against refreshed payload.
8. Same project/options, filter FullyQualifiedName~PublishedLeadBassUsesRefreshedProfilesAndOneReadableArtifact --logger 'console;verbosity=detailed':
   PASS,8; printed all actual435-byte hashes/read-back facts above.
9. git --no-pager diff --check: PASS before report; both append fences/history
   checked afterward. No compiled/test/restore failure remains.

FILES / SCOPE / STOP
- Refreshed ignored publish payload; expanded PublishedServerTests and reused
  shared MCP read-back helpers. Updated existing deployment/compatibility docs
  with current capabilities, executable bytes/hash and435-byte evidence.
- Earlier report history remains inside the same single plain code fence.
  No prompt/plan edit, settings edit, new package/project, copied vendor asset,
  native codec, runtime-free simulation, commit or delegation.
- Documented source-backed MIDI/publication readiness passes only under explicit
  defaults, routing and engineering timing assumptions. Installed versions/
  settings, licensed Cubase/Ample/SD3/audible checks, native outputs, AMR/SD3
  maps and ABJ PM are not declared verified or complete.
- STOP for orchestrator review; no later step is started.