Skip to content

v1.3.4

Choose a tag to compare

@weebcoder101 weebcoder101 released this 26 Jun 11:17
· 119 commits to main since this release

DreamCode v1.3.4 — Bundled Release

Why the version jump?

v1.3.4 bundles three generations of work (v1.3.1, v1.3.2, and v1.3.4) into a single release. We skipped v1.3.2 and v1.3.3 as standalone releases because:

  1. The v1.3.2 architecture audit and the v1.3.4 bug fixes were logically coupled — the 14 fixes are in the exact same files that the architecture rewrite restructured (sensor-gate, token-predictor, chain-executor)
  2. The cross-platform build was only possible after both the architecture audit and the bug fixes were in place
  3. Shipping atomic releases with known issues would have been worse than bundling everything into one verified release

What Changed — Full Changelog

Security Hardening (NEW)

  • Environment variable whitelisting on all Bun.spawn calls — only PATH, HOME, PYTHONPATH, NEURO_API_KEY, PROJECT_ROOT are passed to Python subprocesses. Previously the entire parent process environment was inherited, leaking secrets like AWS_SECRET_ACCESS_KEY and GITHUB_TOKEN
  • Path traversal prevention via validateScriptPath() with isUnderPrefix() + fs.realpathSync symlink resolution before executing any Python script
  • HTML escaping on injected shipping questions — prevents prompt injection via <script>, <img>, or XML tag injection into system prompts
  • SHA-256 content hashing for question deduplication — replaced placeholder q${i} hashes with real crypto.createHash("sha256") digests
  • Credential redaction extended — AWS keys, GCP private keys, Bearer tokens, and GitHub PATs now redacted in sanitizeMessage

Shipping-Questions Pipeline — 12 Bug Fixes

  • Cross-session state contamination: Timer key was always __default__ — changed to ${directory}:${sessionID} so sessions don't interfere with each other
  • Prompt injection via questions: Questions injected into system prompts without HTML escaping — now escaped for &, <, >
  • No script path validation: Bun.spawn executed Python scripts without verifying they existed within allowed skill directories — added validateScriptPath() before every spawn
  • Python cold-start timeout: Transform wait was 2s, Python often exceeds that — increased to 8s
  • Fake question hashes: Placeholder hashes q0, q1... replaced with real SHA-256 content hashes
  • Dead TokenPredictor service class: Removed unused class, exported generate directly
  • shouldSpawn gate too restrictive: Removed redundant gate — chain now runs whenever gateResult.chain.length > 0
  • runFullPipeline threshold too high: Was chain.length > 3, lowered to > 1 so 2-skill chains trigger the pipeline
  • Missing source tree fallback: Skills from source tree not found when installed via bun link — added fallback candidate
  • Dead shouldRunPeriodicCheck import: Removed unused import, defined CHECK_INTERVAL_MS locally

Architecture Audit (v1.3.2 scope — 115 files changed, +3116/-1067)

  • Sensor gate rewrite: validateNeuroOutput now parses only the last complete JSON line from mixed stdout (was failing on text + JSON mixed output)
  • Chain orchestrator: emit_plan reads mode from chain_result dictionary instead of hardcoded value
  • Sensor gate enforcer rewrite: 238-line rewrite with per-session Map state, own circuit breaker, pending promise pattern — fixes race conditions and cross-session contamination
  • Circuit breaker extracted: Shared createCircuitBreaker factory module
  • TokenPredictor: Effect service with categorizeQuestion export
  • 76 Schema.Class TypeScript errors fixed across Effect-TS updates

Python 3.10 Compatibility (12 scripts)

  • Changed from datetime import UTC → from datetime import timezone; UTC = timezone.utc across all 12 Python scripts — datetime.UTC is Python 3.11+ only

Installer & CI Fixes

  • install.sh rewrite: 9 fixes for reliable one-shot installation
  • install.ps1: Warning fix, Expand-Archive fallback for Windows < 10, version string update
  • CI workflow rename: All artifact references changed from opencode-* to dreamcode-* in publish.yml, install_test.yml
  • Symlink EEXIST: fs.symlinkSync now checks existence before creating
  • Windows PATH propagation: Fixed in CI installer workflow
  • macOS symlink conflict: Fixed in build script

Windows Persona Spawning Fix

  • When Python sensor gate fails (no python3 on Windows), fallback personas from PERSONA_PROFILES now correctly override the spawn veto — previously fell through to generic explore subagents instead of named persona specialists

Cross-Platform Build (12 archives)

Platform Archive
Windows x64 dreamcode-windows-x64.zip
Windows x64 baseline dreamcode-windows-x64-baseline.zip
Windows ARM64 dreamcode-windows-arm64.zip
macOS ARM64 (Apple Silicon) dreamcode-darwin-arm64.zip
macOS x64 dreamcode-darwin-x64.zip
macOS x64 baseline dreamcode-darwin-x64-baseline.zip
Linux x64 dreamcode-linux-x64.tar.gz
Linux x64 baseline dreamcode-linux-x64-baseline.tar.gz
Linux ARM64 dreamcode-linux-arm64.tar.gz
Linux x64 musl dreamcode-linux-x64-musl.tar.gz
Linux x64 baseline musl dreamcode-linux-x64-baseline-musl.tar.gz
Linux ARM64 musl dreamcode-linux-arm64-musl.tar.gz

Test Suite

  • 115+ skill tests passing (circuit-breaker: 11, sensor-gate: 35, token-predictor: 16, chain-executor, python-resolver, skills-integrity, session-runner: 91)
  • 62 new tests added in this release cycle

Known Gaps (Post-Release)

  • sensor-gate-enforcer.ts (248 lines) has zero dedicated unit tests — documented for next sprint
  • NEURO_API_KEY injected into all Python subprocesses even when not needed — least-privilege improvement pending
  • Husky pre-push hook references non-existent packages/core and packages/llm directories — needs path update

Installation

Linux / macOS:

git clone https://github.com/weebcoder101/dreamcode && cd dreamcode && bash install.sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.ps1 | iex

Or download the .zip for your platform from the assets below.


Commits in this release

161027709 chore: update bun.lock for v1.3.4 release
38476a638 chore: bump version to 1.3.4 for Linux release
245830a8a fix(skill): 14 bug fixes across shipping-questions and chain executor
e608c8ad0 chore: neuro/dream architecture audit, critical bug fixes, v1.3.2
08e4514a1 fix: installer CI failures — symlink EEXIST and Windows PATH propagation
5cc2590e9 fix: Python 3.10 compat, datetime UTC import across all scripts
c8b6055cc fix: override spawn veto when fallback personas active