Repository navigation
v1.0.2 — Directory workflows, hash-chain concurrency, hardening
v1.0.2 — Directory workflows, hash-chain concurrency, hardening
Release date: 2026-10-20
Type: PATCH (structural defects reported from real routed executions)
Fixed
- Directory-target workflows were structurally unusable.
WebCodeSecurityReview/DependencyAuditdeclaretargetKind:'directory',
butsast.scan/secrets/deps/sbomdid not declaretargetKind, so planning
defaulted tofileand every step failed withTARGET_NOT_FILE. Even the
error message recommended the very capability that was failing.- sast capabilities now declare
targetKind:'directory'. - Planning validates each step's declared target kind against the task target
kind and fails withTARGET_KIND_MISMATCHbefore any step executes, listing
the registered directory-capable capabilities. TARGET_NOT_FILEnow lists real directory capabilities and suggests directory
workflows.env.readFilereturns a Buffer as documented (it returned
{buffer,truncated,size}, which broke SAST file reads).- New integration test runs the workflow on a real multi-file project:
4/4 steps DONE, findings span multiple files, report generated.
- sast capabilities now declare
- Concurrent audit/evidence appends could fork the hash chain (read-tail →
append had no serialization). Added a per-file in-process mutex;AuditLog.append,
EvidenceStore.addEvidence/addFinding/verifyFindingandTaskStore.saveare
serialized. New concurrency tests assert one continuous chain underPromise.all. scope.js/tasks.jswere not valid UTF-8 (an em-dash/arrow was corrupted
by a lossy text round-trip). Repaired; added a repository-wide UTF-8 validation
test.- Directory
readFilewas not realpath-checked: a junction/symlink planted
inside the analyzed root could redirect reads outside it. Both the root and the
resolved file are now checked;listFilesstart paths are checked too. Windows
junction escape test added. - Port-scoped authorizations/approvals matched portless targets. Now a target
with an unknown port never matches a port-scoped pattern; end-to-end tests added. - YAML subset parser hardening: flow collections had unbounded recursion, and
__proto__/constructor/prototypekeys could mutate the parsed object's
prototype. Added depth limits (64 flow / 128 indented) and explicit dangerous-key
rejection, with tests. - Status card displayed misleading data: isolation provider shown even when
unavailable; "0 tasks" because the default workspace was the process cwd. The
snapshot now uses the most recently used workspace, labels it as such, and
shows "unavailable" when no isolation provider is usable.
Tests & coverage
- Full suite: 145 / 145 passing (16 files).
- All files: 85.58% lines / 62.74% branches / 86.13% functions.
- Core:
runner.js93.65% lines,runtime.js100%,scope.js91.72%,
tasks.js99.33% (lowest core module:health.js80.21%). - New:
benchmarks/bench.mjs+ recorded results inbenchmarks/results.json.
Upgrade note
The bundle is installed as a link: dependency. Replacing source files requires a
full restart of DeepSeek Harness to load the new module generation; HMR only
activates a newly installed bundle.
This is the cumulative source published in this repository.