Skip to content

feat(io3): typed secondary ASIO capture intent and native B lease/readback - #830

Draft
masarray wants to merge 36 commits into
feat/io2c-primary-clock-capture-consumer-20261119from
feat/io3-secondary-capture-readback-20261120
Draft

masarray wants to merge 36 commits into
feat/io2c-primary-clock-capture-consumer-20261119from
feat/io3-secondary-capture-readback-20261120

Conversation

@masarray

@masarray masarray commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

IO-3A/B/C milestone 20 Nov 2026: stacked DRAFT exact HEAD cc5145ccb57130fed090d3c82362f28a08d4d082, base IO-2D #825 currently e2d1df477f35a9e453278c5adcb1797167f2e10f. C++ native INSTALL_SECONDARY_CAPTURE intent validates explicit ASIO B driver, pin mask, rate/period, exact ChannelId, requestId and graph revisions; Main.cpp reuses existing arMixConsoleIntent/arMixConsoleAck, then projects real LiveAudioEngine::status.secondaryCapture through the single approved v8 snapshot. JS web/approved-native-contract.js now correlates native ACK's driver/mask/lease/generation/rate/period with a later independent snapshot, rejecting fake/duplicate/changed B leases; tests/approved_native_m2_contract.test.cjs has positive and full negative mismatch cases. Fast UI, Fast Native, Fast P9 ImerSip, M1–M2 PASS at af40b8e7 (exact newer HEAD docs-only pending). Latest Codex review of child could not complete due account code-review usage limits (earlier source subset review clean); do not claim new exact-head review. Native Windows MSVC for child NOT RUN. No approved GUI picker/driver capability, no installed multi-ASIO product, no IO-5 durable .smix Device B, no dual-vendor physical FAT; no independent CH/BUS output sink. Do not merge until parent protected merge, child Windows/GUI/persistence and review/gate. One ChannelId native PCM/VST3 owner unchanged.

IO-3A/IO-3B — typed native secondary ASIO capture + truthful readback

HEAD: d702d019b0fef7dfa747c348bb96eeb91f16fd65 — stacked on native host PR #825. DRAFT. NOT MERGED. NOT A USER-FACING FEATURE OR PHYSICAL HARDWARE FAT.

Delivered in source

  • Pure integration/QualifiedCaptureConsoleIntent.h decodes INSTALL_SECONDARY_CAPTURE inside the existing native v8 arMixConsoleIntent requestId / deviceEpoch / graphRevision / rosterRevision transport. Exact 64-bit ChannelId, target bound to B, verified PRIMARY/SECONDARY physical source masks, sorted B pins, supported rate/period, unique input ChannelIds and explicit operator consent; reject stale/invalid requests before driver open.
  • src/Main.cpp::handleApprovedNativeControl routes the single validated command to the existing LiveAudioEngine::installSecondaryAsioCapture() and emits the same arMixConsoleAck. B driver-open alone does not authorize ACK: readback must verify actual class/pin-mask, device lease, epoch and graph/roster revision. Output permission remains DISARMED and productionCallbackLive / sourceAudibleProven are always false.
  • New engine/device/SecondaryCaptureReadbackState.h and LiveAudioEngine::status() report NOT_CONFIGURED/NEEDS_REMAP/DEGRADED/WAITING_FOR_PCM/PCM_FLOW_OBSERVED, actual B mask/rates/period/lease, ASRC priming and underflow. Flow requires fresh independent producer and usable FIR output; no false positive from authorized priming-only pulls. Project through the one authoritative Main.cpp::approvedNativeSnapshot.
  • Native tests in tests/approved_native_v8_projection_test.cpp cover approved canonical request, uint64 IDs, opaque session requestId, B target and role, stale revisions, duplicate/unsorted pins, unsupported format, wrong mask/MAIN target. Real ASRC priming and stall/lease failures tested in tests/io2/QualifiedSecondaryCaptureReaderCases.h.
  • Reconciled with current G-MV35 and parent IO-2D .smix restore: parent #825 now guards unsavable dual-device v1 checkpoint and explicitly permits only muted saved A-only restoration without retaining the stale B map. No second DSP/FX processor or WebView transport.
  • Developer integration contract: IO-3B native ABI.

Verified and blockers

  • Fast Native contracts and M1–M2 source parse: PASS at current HEAD. Parent native CTest 105/105 PASS on prior verified source, but exact-head Windows of latest reconciled parent is pending.
  • @codex review requested on current HEAD; do not assume old clean review covers latest changes. Full Windows MSVC/CTest for this child NOT YET RUN.
  • The independent P9 ImerSip textual regression check remains FAIL, reproducing a stale literal expectation that is already absent in current main GUI bridge. Filed exact evidence in cross-thread #699; not hidden or bypassed.
  • Operator GUI is NOT wired: web/approved-native-contract.js::readbackProvesIntent does not yet support this operation; canonical /preview/ generated assets must be rebuilt and tested together in IO-3C. Earlier experimental UI change was reverted; no phantom LIVE picker.
  • IO-5 persistence NOT supported for A+B: v1 .smix Save/autosave safely rejects while qualified B installed rather than destroying the recoverable checkpoint. No real simultaneous two-vendor ASIO FAT, no independent BUS/CH physical sink, no installer claim.

Next gate: parent #825 protected Windows+Codex+Required Merge Gate, then merge parent; retarget/requalify this child to latest main, implement approved GUI later readback and durable device bindings before any user-facing LIVE capability.

…ved I/O UI

Classify secondary source OFF, NEEDS_REMAP, DEGRADED, WAITING_FOR_PCM, and PCM_FLOW_OBSERVED from native reader and physical lease evidence; distinguish driver-open from actual primary consumption and from channel audibility. Project through existing native snapshot, add compact diagnostics to existing AUDIO I/O panel, and cover fail-closed transitions with portable tests. No second renderer, no new JS truth owner, no hardware FAT claim.
…osing UI readback

Keep IO-3A native status and approved AUDIO I/O diagnostics while merging exact parent #825 save/autosave P1 fix and its negative tests. No force push or unqualified ASIO hardware claims.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying arsonmix with  Cloudflare Pages  Cloudflare Pages

Latest commit: e9d6797
Status: ✅  Deploy successful!
Preview URL: https://00c28d9a.arsonmix.pages.dev
Branch Preview URL: https://feat-io3-secondary-capture-r.arsonmix.pages.dev

View logs

Copy link
Copy Markdown
Owner Author

Local cross-track rehearsal with #828 and #829 merged cleanly at the source level. #829 + #828 passed 242/242 focused contracts. Adding #830 (observed 9834622) exposes six mixer_io_operator_contract_test.mjs parity failures: its web/mixer-io.js changes are not in the embedded Standalone mixer I/O bundle. #828 does not edit either production asset. Please reconcile generated Standalone parity in the IO lane before requalification.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-20T00:40:42.115149Z
We couldn’t complete this review. Comment @codex review to try again.
c8c8a46 Manual request
ℹ️ 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.

@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: e54d647926

ℹ️ 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".

Comment thread src/LiveAudioEngine.h Resolved
…rement P1 fix

Preserve exact parent lifecycle gates for CLEAR PATCH/diagnostic/new primary graph and layer the independent B status only into CONTROL readback. No force push or extra DSP/PCM owner.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: a99c0e0a35

ℹ️ 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".

…ng native capture intent

Preserve approved G-MV bridge and tests from main plus parent IO-2D revisions. Keep IO-3A truthful native ASRC readback and IO-3B typed control decoder+ACK tests as the only child delta. No force push, no hardware FAT claim.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7ded941296

ℹ️ 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".

…-only .smix restore and G-MV35

Keep IO3A secondary capture flow evidence and IO3B native intent decoder/ACK while adopting parent protected A-only session restore, map transition safeguards and Windows/GUI baseline. No force push, no new render owner or user-visible fake LIVE.

Copy link
Copy Markdown
Owner Author

@codex review

@masarray masarray changed the title feat(io3a): secondary ASIO capture native readback and honest AUDIO I/O diagnostics feat(io3): typed secondary ASIO capture intent and native B lease/readback Nov 19, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: d702d019b0

ℹ️ 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".

…ice Apply and IO-2D host

Use exact parent tree including merged N-MOD coordinator/rollback changes, inject only existing typed secondary-capture v8 control and readback into the single native Main/Engine files, and retain parent .smix A-only restoration tests. No duplicated control graph, no force push.
…snapshot

Fix native install ACK always being rejected because LiveAudioEngine B status was not projected to approvedNativeSnapshot. Publish only engine-issued CONTROL status in the existing v8 snapshot and test positive/negative identity projection without manufacturing PCM/audibility.
…moval and chunked ASIO admission

Forward exact parent IO-2D leases/FX and restart regression while preserving IO-3A truthful priming/status projection and IO-3B typed control requestId ACK in one G-MV/N-MOD-approved console. No force push; downstream UI/persistence/hardware FAT are still gated.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Owner Author

INT-1 IO-3 child plan: #837
Parent #825 must resolve the primary-restart P1 and legitimately merge first. Then retarget/reconcile IO-3 against current main with no duplicate renderer/FX/PCM state. Prioritize exact native B lease/typed requestId ACK/installed readback, GUI availability only when verified, device-qualified physical intent / .smix safe persistence or explicit fail-closed rejection. Confirm primary A unchanged if B absent/failed, no silent B-to-A pin alias. Keep experimental dual-device UI OFF and mark NOT HARDWARE FAT / NOT INSTALLER-READY until attended real dual-vendor test plus accepted GUI/persistence prove it. Do not block earlier INT-1A single-ASIO integrated preview solely on physical B roadmap; report the dependency status to #837.

This branch has not been deployed

No deployments
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