Repository navigation
feat(sdk): add native Deno integration with shared gRPC (post-v0.1.0) - #1423
Conversation
1c7b305 to
2dffba3
Compare
2dffba3 to
09e0a95
Compare
Record the directing user's explicit separate-plan waiver for draft PR #1423. Keep Deno excluded from v0.1.0 with no later version assigned. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Record the directing user's explicit separate-plan waiver for draft PR #1423. Keep Deno excluded from v0.1.0 with no later version assigned. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
06d52e4 to
4b4bb42
Compare
Record the directing user's explicit separate-plan waiver for draft PR #1423. Keep Deno excluded from v0.1.0 with no later version assigned. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
4b4bb42 to
3c89ed5
Compare
Panel review — PR #1423Fixed point: PR #1423 against Spec — does this implement what was asked?Source: PR body,
Standards — does this follow project conventions?Sources read:
Test adequacy — do the tests independently prove the contract?
Domain — what do the specialist reviewers say?Panel: secure-code-reviewer, software-architect, devops-expert, library-reuse-reviewer, code-duplication-reviewer Ship-blockers (0)None. Mechanical fixes (2)
Judgement calls (1)
Security / DevOpsNo blocker, important, or advisory findings from security or DevOps reviewers. GapsNone. Summary
Most important issue: test gaps around Deno local spawn’s HTTP-disabled listener, signal escalation, and stderr redaction coverage. PANEL: ship_blockers=0 important=6 advisory=4 reviewer_failures=0 |
|
Addressed the review in
Verification: 245 SDK tests, 30 Node/Bun wire tests, all 5 exact-package checks, full Deno Two intentional dispositions: the plan stays The PR description now reflects these fixes and verification. Deno remains excluded from v0.1.0, |
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Record the directing user's explicit separate-plan waiver for draft PR #1423. Keep Deno excluded from v0.1.0 with no later version assigned. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Keep native Deno.Command ownership, qualify TCP/TLS cancellation and transport disposal in the packed runtime gate, and expose TLS HTTP/2 options without adding callback-tool authority. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Align the acceptance index with the in-progress contract and document Deno's scoped Unix-socket network grant. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Require real HTTP/2 session closure while the daemon stays alive, drain active streams to termination, and grant only the fixture Unix socket scope. Publish and preserve the existing Node declaration dependency so native Deno validates transport options. Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
4dc21a3 to
338d836
Compare
|
Rebased onto Fixed the CI failures:
All four previously failing CI jobs now pass: Node 22 SDK, Node 24 SDK, Docs (matlatl), Deno remains excluded from v0.1.0, with no later release version assigned. |
kantord
left a comment
There was a problem hiding this comment.
Re-checked the latest head and the prior panel findings are addressed.
Confirmed fixes:
- Deno local-daemon docs now say gRPC instead of HTTP/SSE.
- Generated Deno API reference is included in the authoring guidance.
- Deno spawn now has direct coverage for HTTP-disabled launch args / ready document, EOF→SIGTERM→SIGKILL cleanup timing, final status-wait bound, and bounded/redacted stderr.
- Shared spawn helpers and table-driven API-doc generation address the duplication findings.
- Targeted checks passed locally, and the PR check suite is green aside from intentionally skipped jobs.
Approving. The only noted caveat is the intentionally retained in-progress plan status, which I’m treating as a maintainer/process decision rather than a code blocker.
Summary
Add native Deno integration using the same ConnectRPC gRPC transport as Node and Bun.
Deno is excluded from v0.1.0. No later release version is assigned. Do not merge or
publish this integration as part of v0.1.0.
@stacklok-oss/mecatl-sdk/denoprovides gRPCconnect(), nativeDeno.Command-backedspawn(), andquery(). The root import retains HTTP/SSE.Node/Bun. Deno returns ordinary
Client; callback tools and path media remain Node/Bun-only.document's transport, address, and captured PID before dialing.
and private runtime-directory cleanup. Deno does not use the Node process launcher.
including cancellation, transport disposal, and parent-exit cleanup.
Development stage and contract
Implementation, with the directing user's delivery exception. On 2026-09-14, the user
approved shared ConnectRPC transport and waived a separate Plan / Interface PR for this
amendment. No separately merged plan PR or approved commit baseline is claimed.
supersedes ADRs 0339 and 0340 only for their HTTP-only / Node-compatibility exclusions.
Their accepted decision text is preserved. Deno's numbers now avoid main's 0337 and 0338.
change. Existing root HTTP/SSE and Node/Bun imports require no migration.
SecureClientSessionOptions, allowingtyped TLS
nodeOptions: { ca }; the existing pinned@types/nodedependency is published,and its declaration reference is preserved for native production-only Deno consumers.
in-progresswhile the unrelated aggregate gates below fail.Public transport type names are unchanged; no neutral aliases were added.
Review fixes
Addressed the review
in three commits after reviewed head
3c89ed5d7:and include
deno.mdin generated-reference authoring guidance.ready.jsonfor HTTP-listener absence. An HTTP-enabled packed-artifact mutation fails that native assertion.
at 7000 ms, including startup-failure cleanup, diagnostics, stream locks, and timer release.
redaction in errors/diagnostics, and each runtime's BOM/malformed-UTF8 decoding behavior.
separate. Replace API-doc entrypoint duplication with a metadata table and loops.
Generated API pages remain byte-identical; public API reports are unchanged.
The requested
landedtransition is intentionally not applied: the process requires everygate to pass first. Optional neutral transport aliases were declined by the directing user.
Rebase and CI repair
Rebased onto
origin/mainat384ee336a76a356a6ca6a79e8f805134675e91d9.The later main commit
d10e84589changes only Redis tests and does not affect these fixes.The failed Node 22/24 and docs-site jobs were API-report drift: main added
watch_capacityto the shared error-code tuple, but this branch's Deno API report lacked it. Regenerating the
report fixes the mismatch without a runtime change. The docs job failed because main claimed
ADR 0337, then 0338 while verification was running. Deno's ADRs are now 0339-0341; their
accepted Decision sections remain byte-identical. Main's rewritten daemon guide is preserved,
including this branch's Deno stdin-lifetime instructions.
Post-rebase checks passed: 247 SDK tests, SDK lint/type checking/API reports/pack,
task docs(401 documents, 3687 references, no errors), site build, and daemon tests.Native Deno qualification passed at 2.9.3 and 2.9.6 against the current same-checkout binary.
All four previously failing hosted jobs now pass: Node 22 SDK, Node 24 SDK, Docs (matlatl),
and User docs (Docusaurus build). Other hosted CI is still running.
The earlier full Go/lint reruns were stopped when main moved;
their partial output is not claimed as a pass on this final base.
Verification at the prior review checkpoint
Passed locally on the review repair:
including TypeScript 5.7 and 6 declaration consumers.
task docs(398 documents, 3659 references, no link/anchor/ambiguity/orphan/reachabilityfailures), documentation site build, and all four Deno acceptance proof references.
native spawn, stream/attach, query, TCP, trusted/untrusted TLS, Unix sockets, active cancellation,
stream/watch termination, real HTTP/2 session disposal, and parent-exit stdin-EOF cleanup.
Mutation checks failed at the intended assertions for enlarged capture/report bounds, retained
partial lines, removed redaction, changed signal order, extended/unbounded final SIGKILL wait,
enabled HTTP listener, and changed runtime decoders. All production mutations are restored;
the native listener mutation used a separate scratch artifact.
Independent Spec, Standards, Test adequacy, Security, Architecture, Library reuse, and Duplication
reviews have no remaining findings. One test-adequacy finding about the final SIGKILL wait was
fixed in a fresh test-only repair and independently rechecked.
PANEL: ship_blockers=0 important=0 advisory=0 reviewer_failures=0Known aggregate failures, reproduced in unchanged code outside this repair:
task linton macOS:internal/adapter/privatefile/update_unix.go:224, gosec G115 forconverting
stat.Devfromint32touint64(main feat: unify provider configuration and Mecatui commands #1448).task ac-trace-strict:docs/acceptance/callmcpwithquery-broker-support.mdhas statusproposed, unsupported by actrace v0.0.3. The Deno plan's four references resolve.Documentation and release scope
The canonical SDK guides, examples, generated references, architecture, resource inventory,
and production-readiness tracker describe the same runtime boundary. The post-v0.1.0 deferral
is unchanged. Deno Deploy, Deno 3, callback tools, and filesystem media helpers remain out of scope.
Directing-user request; no issue assigned. Only a human may merge. This PR does not publish,
tag, or assign a release.