Skip to content

Draft: den-kit musician-facing native patching prototype - #51

Closed
yuichkun wants to merge 3 commits into
mainfrom
feature/den-kit-prototype
Closed

yuichkun wants to merge 3 commits into
mainfrom
feature/den-kit-prototype

Conversation

@yuichkun

@yuichkun yuichkun commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Draft-only prototype

Do not merge to main or mark Ready. The requested musician-facing den-kit prototype is separate from the developer playground and public den package exports. Current head: 203210e581a5206543779b34e00e9016688c0466; accepted base: 6af3a5622efba1c92a52c7c1dc044728efa80674.

Implemented

  • Grid-inspired palette, module cards, typed cables, inspector/scope and keyboard
  • Nine module types using real den/unworklet 0.4.1 DSP, with explicit VCA/Mix utilities
  • Add/move/remove/connect/disconnect, live native AudioParams, two starting patches and empty patch
  • Validated editor JSON, undo/redo and local import/export
  • Explicit cold Apply, serialized context replacement, generation-based cancellation, Stop and noteOff-safe Panic
  • 48 kHz; prototype bounds of 16 modules/32 cables, one monophonic Note In and one Audio Out

Verification

Final-head prototype gate passed on clean 203210e: isolated packed install, strict types, 13 graph/native/host tests, two preview-policy tests, and real Chromium audio/interactions/lifecycle including rapid Apply/Stop. Desktop/mobile screenshots and exact-head manifest.

Independent PCM expectations cover sine, gain, filter response, delay and tiny f32 audio. Measured final-head browser keyboard RMS/peak: 0.01518/0.02937; drone: 0.01762/0.03186. Listening remains NOT_PERFORMED.

Local Chromium is blocked by the environment's ProcessSingleton socket policy; canonical browser evidence comes from GitHub CI. Full Entry on final head passed: 1,075 Vitest tests, all 76 Node tests and both trailing realtime tests. The all54 playground-preview and catalog-smoke jobs also passed. The prior head's sole Entry failure was a historical-fixture assertion expecting the old deployment command/output; this revision changes only those exact expectations for the approved Draft preview while retaining all historical audio/browser assertions.

Preview and review

Real den-kit Preview is READY for 203210e, with existing Vercel SSO protection preserved. This Draft branch's build refuses production and any other branch, stages into a separate output folder, and exposes only public commit/package provenance. Production project settings and main's playground are unchanged. Authenticated protected fetch returned HTTP 200 for the den-kit page and its provenance, confirming application/preview target, source SHA and package integrity. Vercel's build workspace reports sourceDirty=true; the canonical CI workspace is clean. No assumption is made about the cause of that deployment-workspace flag. Native interaction/rendering evidence comes from the clean exact-head browser gate.

Manual Codex review found one P2 context-allocation issue. It was independently reproduced red, fixed with disposal serialization and request-generation cancellation, reviewed independently, and verified by both delayed-close host regressions and final native-browser rapid-Apply tests. The addressed review thread is resolved; this PR remains Draft.

Deferred

Full catalog palette, polyphony/MPE, arbitrary feedback, seamless topology/state carryover, DSP snapshot migration, AI service/chat, UI editor, asset panel, Portal/DAW integration, device permissions, Electron and VST export. Audio remains CANDIDATE; no musical approval or all-device real-time guarantee.

Operation/runtime boundaries and official design references are in den-kit/README.md. This prototype stays Draft after review.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
den Ready Ready Preview Oct 6, 2026 8:53am UTC

Request Review

yuichkun commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Please review the current Draft head 7210cbe for correctness and lifecycle bugs in the den-kit graph editor/native audio adapter, and for isolation of the branch-only preview build. Pay particular attention to graph validation, single-tick fan-out, Apply/Stop cancellation, parameter changes during compilation, Panic/noteOff behavior, and preview/provenance boundaries. This prototype must remain Draft and must not be merged or promoted to production.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 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-06T08:22:52.699941Z 7210cbe 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: 7210cbe115

ℹ️ 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 den-kit/src/audio.ts Resolved
@yuichkun

yuichkun commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Closing without merging. den-kit will be developed in its own repository rather than inside den, so this draft will not land in den's main. The branch feature/den-kit-prototype is kept for reference.


Generated by Claude Code

@yuichkun yuichkun closed this Oct 9, 2026

This branch was successfully deployed

1 active deployment
Preview — 203210e5 Deployed Oct 6, 2026 by vercel[bot]
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