Dyadic is designed around explicit, inspectable authority boundaries serialized through canonical dyadic.ir/1:
- Pure vs. Effectful Separation (
fnvs.fx/workflow): Purefndeclarations cannot invoke host capabilities, perform I/O, or access ambient external state. - Closed Capabilities (
cap): Capabilities carry explicitrisklevels (read < safe < mutate < danger) and resource constraints (hosts,paths,commands). Execution requires enclosing signatures (with [...]), policy rules (.dys), and single-use execution leases. - Taint Tracking (
Tainted<T>): Untrusted external inputs are tracked statically and cannot flow intomutateordangersinks withoutverify(...)or explicitrequire approval. - Fail-Closed Write-Ahead Audit: Under
mode enforceandaudit write_ahead, mutating operations append hash-chained RFC 8785 canonical records (dyadic.blackbox.bundle/1) signed with Ed25519 before external dispatch. - Host Isolation:
fsoperations confine accesses inside the configured sandbox root, andshell.execis denied unless explicitly enabled (--shell) and matched against declaredcommandsprefixes.
Security fixes are backported to the latest minor release on the main branch.
| Version | Supported |
|---|---|
main / latest v0.1.x |
Yes |
| Older pre-release snapshots | No |
Please do not report security vulnerabilities in public GitHub issues, pull requests, or discussions.
Instead, please report security issues privately using GitHub Security Advisories ("Report a vulnerability" under the repository's Security tab). When submitting a report, please include:
- Affected component (
internal/types,internal/ir,internal/runtime,internal/vm,internal/wasm,internal/blackbox, CLI, or standard library). - A minimal
.dy/.dyw/.dycreproduction or proof-of-concept. - Expected invariant versus observed behavior, and potential security impact.
Maintainers aim to acknowledge reports promptly, validate fixes against reproducible test cases, and coordinate disclosure once a patched release is available.