Skip to content
karany97Public

About

Destiny — Local-first AI workstation, zero-upload browser apps, open verification CLI, CycloneDX 1.6 SBOM & SLSA provenance schemas by Nandai Lab

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Destiny — Open Release Verification, CLI Tooling, Schemas & Architecture Docs

Local-first intelligence, zero-upload browser tools, and precision Apple Silicon engineering.
Published by Nandai Lab (British Columbia, Canada) · Product Suite: Destiny Web Studio, Destiny Studio, and Destiny OS
Website: https://nandai.org · Live Web Studio: https://nandai.org/workspace/ · Zero-Upload Browser Apps: https://nandai.org/apps/ · Contact: karan@nandai.org · Security: security@nandai.org


Quickstart (Live Web-First Suite + Open Verification CLI)

Surface URL / Command Availability
1. Destiny Web Studio https://nandai.org/workspace/ Live in Browser ($0 Free Core) — Interactive multi-pane AI, writing, code, CAD, and design workspace with zero installation required.
2. 10 Zero-Upload Browser Apps https://nandai.org/apps/ Live & 100% Client-Side ($0) — Academic Integrity & AI Provenance Verifier, Thesis Clarity Coach, Citation Verifier, Contract & Privacy Scanner, CycloneDX SBOM & EU CRA Auditor, Quant Risk Sandbox, Local AI Sizing Calculator, Watermark & Provenance Inspector, and SEO/AEO Auditor.
3. 52 Technical & Academic Hubs https://nandai.org/applications/ Live Reference Library — Systems engineering, privacy, academic provenance, and vertical workflow documentation.
4. Open Verification CLI & Schemas git clone https://github.com/karany97/destiny.git MIT Open Source — Verify cryptographic release manifests, CycloneDX 1.6 SBOMs, Apple Developer ID signatures, and SLSA Level 3 build provenance.
5. macOS Apple Silicon Native App https://nandai.org/studio Signed Preview (arm64, macOS 15.0+) — Native Swift 6 / C++20 / Metal 4 workstation rolling out via Beta Preview registration while Apple Developer Organization notarization completes.
# Clone the open MIT verification & schema repository
git clone https://github.com/karany97/destiny.git
cd destiny

# Run the repository schema, YAML, CLI smoke test, and hygiene validator
python3 scripts/validate-repo.py

# Inspect CLI verifier options
./cli/destiny-verify.sh --help

License Scope Boundary (Read First)

This repository enforces a strict dual-license boundary between open verification/integration tooling and the proprietary desktop application binaries:

Scope Repository Paths / Artifacts License
Open Tooling, Schemas, CI & Docs cli/, schemas/, scripts/, workflows/, docs/, .github/ MIT License
Destiny Desktop Binaries Pre-compiled .app, .pkg, .tar.xz archives, Sparkle 2 delta updates, Metal shader libraries, C++/Swift runtime binaries, Destiny OS (<128 MB) EROFS VM image, and bundled offline catalogs Proprietary EULA

Source code for the proprietary Destiny / Destiny Studio macOS application is not hosted in this repository. All verification scripts, JSON schemas, release attestation pipelines, and architectural documentation here are MIT-licensed and publicly auditable.


Release, Signing & Compliance Disclosures

Item Current Status
Organization & Jurisdiction Nandai Lab (British Columbia, Canada · https://nandai.org)
Primary Contacts Founder: karan@nandai.org · Security: security@nandai.org · Support: support@nandai.org · Legal: legal@nandai.org · Privacy: privacy@nandai.org
Web Studio & 10 Browser Apps Live Today at https://nandai.org/workspace/ and https://nandai.org/apps/ (zero document uploads on client-side utilities)
macOS Apple Silicon Native Release Signed Preview (https://nandai.org/studio) — Native desktop access rolls out via Beta Preview registration without unnotarized public installer downloads while Apple Developer Organization notarization stapling completes (we never recommend Gatekeeper bypasses such as xattr -cr).
ISO/IEC Alignment Posture Engineered for Alignment with ISO/IEC 27001 (ISMS), ISO/IEC 27701 (PIMS), and ISO/IEC 42001 (AI Management) Controls — Independent Third-Party Audit Pending

Architecture Overview

Destiny eliminates CPU-to-GPU memory copies on Apple Silicon by binding a native Swift 6 / SwiftUI workspace (Destiny / Destiny Studio) directly to a C++17/C++20 + Objective-C++ runtime and Metal 4 compute shaders over Unified Memory Architecture (UMA), paired with a <128 MB read-only ARM64 EROFS sandbox runtime (Destiny OS) under Apple Virtualization.framework.

flowchart TB
    subgraph UI["User Space — Native macOS App (Swift 6 / SwiftUI · 16 Unified Workspaces · ⌘D 4-Pane Split)"]
        Studio["Destiny Studio Modules (Graphic Foundry, Metal 3D CAD, Video NLE, 4-Track Audio DAW, Simulation Backtester)"]
        Companions["3D Companion Studio (16 Rigged Characters) & Game Engine Studio (64 Playable Archetypes)"]
        TrustUI["Security Sentinel, Destiny Shield (WireGuard VPN), Destiny Press & OpenMLS E2EE Messages"]
        LocalAI["Local AI Workspace (4-Pane Split Screen, Context Ribbon & 9-Stage Agent DAG)"]
        VaultUI["Offline Design Vaults (64 Layout Archetypes, 120 Brand Marks, 21,185 SVG Icons, 272 Decks, 1,080 Blueprints)"]
    end

    subgraph Core["Native Bridging & Engine Contracts (C++17 / C++20 / Accelerate)"]
        Arch["6 DestinyArchKind Engines (kQwen2, kLfm2Moe, kQwen35, kQwen35Moe, kNemotronHMoe, kGemma4)"]
        PagedKV["PagedKV & Radix Cache (block_size=16, max_blocks_per_slot=65536, 256 Sink Tokens)"]
        DAG["Micro-Agent Control Plane (1,048,576 Lock-Free DAG Slots, 32-Stream Batch)"]
        Router["Blueprint Semantic Router (< 0.1 ms) & Accelerate vDSP SIMD (< 50 ms / 1M+ Ticks)"]
    end

    subgraph Silicon["Apple Silicon Hardware & Sandbox"]
        UMA["Unified Memory Zero-Copy Pool & Metal 4 Pipeline (42 Shaders, 7 Design Palettes)"]
        DestinyOS["Destiny OS (<128 MB ARM64 EROFS + Apple Virtualization.framework)"]
    end

    subgraph OptionalNet["Optional User-Configured Endpoints (Disabled by Default)"]
        LAN["User LAN Compute Node (Optional External GPU Workstation)"]
        API["User HTTPS API Provider (Keychain-Stored Credentials)"]
        Updates["Sparkle 2 HTTPS Appcast (nandai.org/api/v1/updates/appcast.xml, EdDSA Signed)"]
    end

    UI --> Core
    Core --> Silicon
    LocalAI -. "Explicit User Config Only (network.client)" .-> LAN
    LocalAI -. "Explicit User Config Only (network.client)" .-> API
    UI -. "Opt-In Signed Update Check" .-> Updates
Loading

For full subsystem details, see docs/ARCHITECTURE.md.


Canonical Local AI Models & Companion Assets

Destiny's runtime manages 5 commercial-safe local LLMs across 6 DestinyArchKind engines (Linear, NTK, YaRN, and MRoPE scaling) plus 4 companion multimodal/audio models:

Role Display Name & Model Identifier Architecture Max Context License Availability / Notes
Micro LLM Destiny Spark (Qwen3.5-0.8B, qwen3.5-0.8b-q8) qwen35 262,144 Apache-2.0 Commercial Ready ($0 Royalty)
Fast MoE LLM Destiny Swift (LFM2-8B-A1B, lfm2-8b-a1b-q4) lfm2moe 131,072 LFM Open License v1.0 Commercial Ready ($0 under $10M annual revenue)
Reasoner MoE LLM Destiny Prism (Gemma-4-26B-A4B, gemma4-26b-a4b-q3, 12G) gemma4 262,144 Apache-2.0 Commercial Ready ($0 Royalty)
Architect MoE LLM Destiny Forge (Qwen3.6-35B-A3B, qwen3.6-35b-a3b-iq3) qwen35moe 262,144 Apache-2.0 Commercial Ready ($0 Royalty)
Long-Horizon 1M MoE Destiny Horizon (NVIDIA-Nemotron-3.5-Lightning-30B-A3B) nemotron_h_moe 1,048,576 NVIDIA Open Model License (openmdw-1.1) Commercial Ready ($0 Royalty); 17.85 GiB Q4_0 (1,048,576 native context)
Image Companion FLUX.2-klein-4B flux2-rectified-flow 512 Apache-2.0 Commercial Ready ($0 Royalty)
Speech ASR Companion NVIDIA Parakeet-TDT 0.6B (v2 ONNX) fastconformer-tdt — CC-BY-4.0 Commercial Ready ($0 Royalty with attribution)
Neural Voice Companion Kokoro-82M (fp16/int8 ONNX) styletts2 — Apache-2.0 Commercial Ready ($0 Royalty)
Voice Activity Detector Silero VAD (v6 ONNX) vad — MIT Commercial Ready ($0 Royalty)

Verified Feature & Hardware Compatibility Matrix

All performance figures below reflect audited measurements recorded against explicit hardware and workload receipts (see docs/COMPARATIVE_METHODOLOGY.md).

1. Platform & Hardware Requirements

Requirement Specification
Web Studio & Browser Apps Any modern Chromium, WebKit/Safari, or Firefox browser (https://nandai.org/workspace/ & https://nandai.org/apps/).
Native Desktop Architecture Apple Silicon (arm64) only — M1, M2, M3, M4 series (Standard, Pro, Max, Ultra). Intel (x86_64) is unsupported.
Minimum macOS Floor macOS 15.0+ compatibility floor in application metadata (current builds compiled with Swift 6.3 / Xcode 26.6 targeting Apple Silicon Unified Memory).
Unified Memory 16 GB recommended minimum (8 GB supported for Studio & lightweight draft models; 24 GB+ recommended for larger local LLMs and simultaneous CAD/Video workloads).
Desktop Release Status Signed Preview (https://nandai.org/studio); notarized public distribution activates once Apple Developer Organization notarization stapling completes.

2. Verified Subsystem & Benchmark Matrix

Subsystem Verified Capability / Measurement Hardware / Conditions Receipt / Status
On-Device Metal Draft Decode 240.5 tok/s CLI decode (ngl=99) Apple M4 Pro, 24 GB UMA, Metal 4 (qwen_draft.gguf 494M Q8_0, 506 MB) LOCAL_EDGE_METAL_SPEED_RECEIPT.json (Verified)
On-Device Metal Bench (llama-bench) 257.75 tok/s (tg128) / 6,524.24 tok/s (pp512) Apple M4 Pro, 24 GB UMA, Metal 4 LOCAL_EDGE_METAL_SPEED_RECEIPT.json (Verified)
Cold Model mmap Startup 3.946 ms cold memory-mapped load Apple M4 Pro, 24 GB UMA (506 MB qwen_draft.gguf) LOCAL_EDGE_METAL_SPEED_RECEIPT.json (Verified)
Blueprint Semantic Routing < 0.1 ms across 1,080 built-in domain blueprints (52 × 21 × 24 × 8 parameterized axes) Apple Silicon Native Runtime (inverted lexical + 64-dim matcher) DestinyArtifactVault (Verified)
5-Axis Compositional Scene-Graph Compiler 1,080 built-in domain blueprints (24 topologies × 88 widgets × 32 solvers × 16 design systems × 64 datasets) & 1,020 responsive web templates Offline local catalog compilation Audited Design Vault (Verified)
Studio Creative & CAD Foundry 42 Metal shaders, 7 palettes; STEP AP242, STL, OBJ, glTF 2.0, GLB, SVG, PDF, PNG 2x, PPTX, HTML; 4-track 48kHz WAV DAW (vDSP 128-bin 60fps FFT) Apple Silicon Metal + Accelerate Audited Studio Engine (Verified)
Historical Tick Simulation < 50 ms per 1M+ ticks (offline simulation mode only; live trading explicitly disabled) Apple Silicon Accelerate vDSP SIMD QuantBacktestEngine (Verified)
Golden Master Cold App Launch 13.97 ms cold launch / 21.25 MB peak RSS (Hardened Runtime flags=0x10000(runtime)) Apple Silicon Native Swift 6 / C++20 Shell GOLDEN_MASTER_CERTIFICATION.md (Verified)
Destiny OS Micro-VM Sandbox 27.77 MiB combined base image (24.46 MB Linux 7.3.4-1 SCHED_BORE + 4.59 MB Alpine 3.24.4 erofs-4k-zstd, AF_VSOCK:5500 NDJSON-RPC, 128 MB VM quota / ~105 MB live MemTotal) Apple Virtualization.framework (arm64, zero TCP/IP egress) DestinyOS/manifest.json (Verified)
Radix Prefix Tree Lookup 29.9 µs insert / 115.7 ns step lookup (6,796-token prefix) C++ Lock-Free Gateway Engine RADIX_PREFIX_SLOT_RECEIPT.json (Verified)
Optional LAN Compute (27B @ 32K) 31.81 tok/s decode (31,575-token context, 0–2 MiB VRAM drift) Optional external RTX 3090 Ti 24 GB VRAM (kv_unified q4_0, flash attention) LONG_CONTEXT_STREAMING_RECEIPT.json (Verified)
Optional LAN Compute (35B Sparse MoE) 107.54 tok/s mean (110.87 tok/s peak, 0.00 MiB VRAM drift) Optional external Dual RTX 3090 Ti + RTX 3090 node (24 probes, 19,200 tokens) 35B_MOE_DEEP_STRESS_AUDIT.md (Verified)
Optional LAN NVMe KV Hydration 3.11 GiB/s (151.16 MiB KV preamble in 47.48 ms) Crucial T500 4TB NVMe + io_uring O_DIRECT NVME_IO_URING_HYDRATION_RECEIPT.json (Verified)
Multi-Stream Concurrent Throughput 284.31 tok/s wall agg (10,240 uncached tokens in 36.02 s, 40 concurrent streams) Optional Dual-GPU LAN compute node MULTI_STREAM_40SLOT_TPS_RECEIPT.json (Verified)
10,000-Socket Switchboard & Notarized RC 16 epoll reactors × 64 shards, 1,048,576 DAG slots, 65,536 cohort ring C++20 WebSocket switchboard & clean-room Developer ID RC Pending Final Release Verification

See docs/HARDWARE_MATRIX.md for memory tier recommendations across M1–M4 systems.


Release Verification Guide (SHA-256, Code Signing & Build Provenance)

Never run a downloaded macOS binary without verifying cryptographic integrity. When signed Apple Silicon archives ship from release-attest.yml, Destiny releases publish four independent verification layers:

Option 1: Automated Local Verifier (cli/destiny-verify.sh)

# Verify a signed release archive against SHA-256 digests and JSON manifest
./cli/destiny-verify.sh \
  --artifact Destiny-macOS-AppleSilicon.tar.xz \
  --checksums release/SHA256SUMS.txt

# Verify an installed /Applications/Destiny.app bundle (architecture, macOS >= 15.0, codesign, spctl)
./cli/destiny-verify.sh \
  --app /Applications/Destiny.app

Option 2: Manual Verification Commands

  1. SHA-256 Digest Verification:

    shasum -a 256 -c release/SHA256SUMS.txt --ignore-missing
  2. GitHub Artifact Build Provenance Attestation (gh attestation verify):

    # Verifies Sigstore / SLSA provenance generated by workflows/release-attest.yml
    gh attestation verify Destiny-macOS-AppleSilicon.tar.xz \
      --repo karany97/destiny
  3. Apple Developer ID Signature & Gatekeeper Check:

    codesign -vvv --deep --strict /Applications/Destiny.app
    spctl -a -vvv -t exec /Applications/Destiny.app

EU AI Act Article 50 Transparency Summary

In alignment with Regulation (EU) 2024/1689 (EU AI Act) Article 50, Destiny implements transparency by design:

  • Direct AI Interaction Disclosure (Art. 50(1)): All Web Studio and Local AI workspaces clearly identify AI-generated suggestions, thread turns, and agent actions in the user interface so users never mistake synthetic responses for deterministic system alerts or human communications.
  • Machine-Readable Provenance for Synthetic Media (Art. 50(2)): When AI synthesis is used to generate or transform raster imagery, audio, or video assets, Destiny supports embedding structured provenance metadata in exported media, while preserving clean author-owned exports for deterministic 3D CAD (STEP/STL/OBJ/glTF), vector graphics, and manual Studio edits.
  • Labeling of Synthetic Outputs (Art. 50(4)): AI-assisted drafts and generated creative media are distinctly marked inside project history and export dialogs.
  • Local Execution Control & Zero-Upload Browser Tools: All 10 browser utilities at https://nandai.org/apps/ execute 100% client-side in browser memory with zero document uploads, and on-device Apple Silicon models keep prompts and context locally resident.

Privacy, Security & Compliance

  • Privacy & Network Transparency: PRIVACY.md — Mirrors https://nandai.org/privacy and provides an auditable Outbound & Loopback Network Inventory Table explaining network.client and network.server entitlements (zero hidden telemetry, local-first by default, Stripe Hosted Checkout SAQ A notice).
  • Security & EU CRA Art. 14 Readiness: SECURITY.md — GitHub Private Vulnerability Reporting (PVR) workflow, 24h / 72h / 14d EU Cyber Resilience Act Article 14 response cadence, ISO/IEC 27001/27701/42001 alignment notice (audit pending), and macOS Keychain guidance.
  • Release Schema: schemas/release-manifest.schema.json — Machine-readable JSON Schema (Draft 2020-12) for verified releases, CycloneDX SBOMs, and Sparkle 2 EdDSA signatures.
  • CI Signing & Attestation Template: workflows/release-attest.yml — Inside-out Developer ID signing, notarytool, stapler, Sparkle sign_update, CycloneDX SBOM, and actions/attest-build-provenance.

Contributing & Community

  • CONTRIBUTING.md — Guidelines for contributing to MIT-licensed CLI tools, schemas, scripts, and docs.
  • CODE_OF_CONDUCT.md — Contributor Covenant v2.1.
  • THIRD_PARTY_NOTICES.md — Open-source attribution registry (5 canonical LLMs + 4 companion models) & CycloneDX SBOM inspection guide.
  • CHANGELOG.md — Release gate and engineering milestone ledger.

About

Destiny — Local-first AI workstation, zero-upload browser apps, open verification CLI, CycloneDX 1.6 SBOM & SLSA provenance schemas by Nandai Lab

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages