Repository navigation
v1.3.4
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:
- 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)
- The cross-platform build was only possible after both the architecture audit and the bug fixes were in place
- 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.spawncalls — onlyPATH,HOME,PYTHONPATH,NEURO_API_KEY,PROJECT_ROOTare passed to Python subprocesses. Previously the entire parent process environment was inherited, leaking secrets likeAWS_SECRET_ACCESS_KEYandGITHUB_TOKEN - Path traversal prevention via
validateScriptPath()withisUnderPrefix()+fs.realpathSyncsymlink 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 realcrypto.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.spawnexecuted Python scripts without verifying they existed within allowed skill directories — addedvalidateScriptPath()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
generatedirectly shouldSpawngate too restrictive: Removed redundant gate — chain now runs whenevergateResult.chain.length > 0runFullPipelinethreshold too high: Waschain.length > 3, lowered to> 1so 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
shouldRunPeriodicCheckimport: Removed unused import, definedCHECK_INTERVAL_MSlocally
Architecture Audit (v1.3.2 scope — 115 files changed, +3116/-1067)
- Sensor gate rewrite:
validateNeuroOutputnow parses only the last complete JSON line from mixed stdout (was failing on text + JSON mixed output) - Chain orchestrator:
emit_planreads mode fromchain_resultdictionary instead of hardcoded value - Sensor gate enforcer rewrite: 238-line rewrite with per-session
Mapstate, own circuit breaker, pending promise pattern — fixes race conditions and cross-session contamination - Circuit breaker extracted: Shared
createCircuitBreakerfactory module - TokenPredictor: Effect service with
categorizeQuestionexport - 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.utcacross all 12 Python scripts —datetime.UTCis Python 3.11+ only
Installer & CI Fixes
- install.sh rewrite: 9 fixes for reliable one-shot installation
- install.ps1: Warning fix,
Expand-Archivefallback for Windows < 10, version string update - CI workflow rename: All artifact references changed from
opencode-*todreamcode-*inpublish.yml,install_test.yml - Symlink EEXIST:
fs.symlinkSyncnow 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
python3on Windows), fallback personas fromPERSONA_PROFILESnow correctly override the spawn veto — previously fell through to genericexploresubagents 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 sprintNEURO_API_KEYinjected into all Python subprocesses even when not needed — least-privilege improvement pending- Husky pre-push hook references non-existent
packages/coreandpackages/llmdirectories — needs path update
Installation
Linux / macOS:
git clone https://github.com/weebcoder101/dreamcode && cd dreamcode && bash install.shWindows (PowerShell):
irm https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.ps1 | iexOr 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