kodelyth-ecc 2.14.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  All notable changes to Kodelyth ECC are documented here.
4
4
 
5
+ ## v2.15.0 — Green CI, and the agents learn what the arena found (September 2026)
6
+
7
+ ### Fixed — CI had been red since v2.8.0
8
+
9
+ Eight tests asserted POSIX file semantics on the Windows runner. Every release
10
+ from 2.8.0 through 2.14.0 shipped with a failing badge, because `npm test` was
11
+ only ever run on macOS — a green local run beside a red CI is exactly the trap
12
+ this release also teaches `release-captain` to catch.
13
+
14
+ On Windows `chmod` only toggles the read-only bit, `statSync().mode` is
15
+ synthesized rather than real, `umask` is meaningless, and `symlinkSync` needs
16
+ administrator rights or Developer Mode. The eight tests assert precisely those
17
+ semantics.
18
+
19
+ They are **skipped there with a stated reason, not deleted** — the behaviour they
20
+ guard (mode preservation, umask independence, `O_EXCL` against planted symlinks)
21
+ is real on Linux and macOS, which is where CI proves it.
22
+
23
+ ```
24
+ tests/lib/safe-fs.test.js 5 guarded
25
+ tests/terse/compress.test.js 3 guarded
26
+ ```
27
+
28
+ All nine CI jobs now pass: Node 18/20/22 across Linux, macOS, and Windows.
29
+
30
+ ### Changed — three agents learned from three arena runs
31
+
32
+ The arena confirmed the same defects repeatedly, and none of the 70 agents knew
33
+ to look for them. Each addition below is a bug that was actually reproduced, not
34
+ a hypothetical.
35
+
36
+ **`security-reviewer`** gained three hunt blocks:
37
+
38
+ - **Lexical-only path containment** — `path.join`/`resolve` normalise `..` but do
39
+ not resolve symlinks, so a link inside the root passes a `startsWith` check
40
+ while pointing anywhere on disk. Confirmed four times across three files.
41
+ - **Prototype keys as map keys** — `map['constructor']` returns a truthy
42
+ function, so `if (!map[k])` never fires. Needs no attacker: one document
43
+ containing the word "constructor" bricked the memory store.
44
+ - **Truncate-then-write on persistent state** — `writeFileSync` opens with `'w'`.
45
+ A 6.3 MB store was measured at 0 bytes mid-rewrite, 32 torn reads in 1423
46
+ samples.
47
+
48
+ **`code-reviewer`** gained the same three as checklist items under Security.
49
+
50
+ **`release-captain`** gained **Phase 1.5 — Prove the build is green where it
51
+ actually runs**, with the `gh run list` / `gh run view --log-failed` commands and
52
+ a table of one-platform traps (POSIX modes, umask, symlinks, path separators,
53
+ BSD vs GNU flags). It states plainly: never cut a release on a red CI, and never
54
+ report "all tests passing" when only your own platform is passing.
55
+
56
+ ### Fixed — repository metadata
57
+
58
+ The GitHub About sidebar still advertised `194 skills · 97 commands`. Corrected
59
+ to 196 / 102, and the arena added to the description.
60
+
61
+ **572 tests passing on every supported platform.**
62
+
5
63
  ## v2.14.0 — A false recurring class, and five more atomic writes (August 2026)
6
64
 
7
65
  ### Fixed — the guard proposal was pointing at the wrong thing
package/README.md CHANGED
@@ -72,7 +72,7 @@ You never typed `use debug-detective`. You didn't have to. The toolkit read the
72
72
  |---|---|---|
73
73
  | **Intent routing** | Plain-language → right specialist via 10-tier priority rules | Mostly missing — you memorize names |
74
74
  | **70 agents** | Specialists with playbooks, severity calibration, real commands | Often persona-only ("you are a senior engineer...") |
75
- | **194 skills** | Domain knowledge files agents read on demand | Rarely separated from agents |
75
+ | **196 skills** | Domain knowledge files agents read on demand | Rarely separated from agents |
76
76
  | **102 commands** | Slash workflows (`/tdd`, `/arena`, `/devil-mode`, `/team-review`) | Limited or none |
77
77
  | **8 parallel commands** | Fire 3-8 agents simultaneously, aggregate results | Rare |
78
78
  | **Compound memory** | BM25 local recall + auto-inject + project lessons | Cloud-only or absent |
@@ -118,7 +118,7 @@ kodelythecc --target claude-code --codebase-graph
118
118
  That's it. This single flow:
119
119
 
120
120
  1. Installs both binaries (`kodelyth-ecc` and short-form `kodelythecc`) to your PATH
121
- 2. Copies 70 agents + 194 skills + 97 commands + 22 hooks + 14 rules into your AI tool's config dir
121
+ 2. Copies 70 agents + 196 skills + 102 commands + 22 hooks + 14 rules into your AI tool's config dir
122
122
  3. Auto-installs **RTK** binary and wires its PreToolUse hook (input compression starts on next AI restart)
123
123
  4. Installs **Terse mode** skill + `/terse` and `/terse-compress` slash commands (dormant — user types `/terse` to activate)
124
124
  5. Auto-installs **codebase-memory-mcp** and registers its MCP entries in your AI tool (with `--codebase-graph`)
@@ -220,7 +220,7 @@ npx kodelyth-ecc --bundle red-team # Security engineer — devil-mode + a
220
220
  npx kodelyth-ecc --bundle enterprise # Compliance / audit team — SBOM, license, supply chain
221
221
  ```
222
222
 
223
- Each bundle installs the full ECC toolkit (all 70 agents, 194 skills, 97 commands, 22+ hooks), adds a `BUNDLE.md` cheat sheet, and biases the AI toward audience-fit workflows on every session.
223
+ Each bundle installs the full ECC toolkit (all 70 agents, 196 skills, 102 commands, 22+ hooks), adds a `BUNDLE.md` cheat sheet, and biases the AI toward audience-fit workflows on every session.
224
224
 
225
225
  Combine with any target:
226
226
 
@@ -417,7 +417,7 @@ What's inside:
417
417
  | **Overview** | Agent count, memory stats, session count, recent activity |
418
418
  | **Memory** | Browse, search, and manage your local BM25 memory store |
419
419
  | **Evolve** | Self-improving memory — review AI-proposed refinements |
420
- | **Catalog** | Full searchable index of all 70 agents, 194 skills, 97 commands |
420
+ | **Catalog** | Full searchable index of all 70 agents, 196 skills, 102 commands |
421
421
  | **Sessions** | **Live IDE activity** (Claude Code, Windsurf, Windsurf-Next, Cursor, Antigravity) + orchestration/swarm sessions |
422
422
 
423
423
  Real-time:
@@ -888,7 +888,7 @@ The intent router will route you to the right one. The AI announces who's taking
888
888
  | Source | Destination | What it does |
889
889
  |---|---|---|
890
890
  | `agents/` | `~/.claude/agents/` | All 70 subagents available globally |
891
- | `skills/` | `~/.claude/skills/` | All 194 skills loadable via commands |
891
+ | `skills/` | `~/.claude/skills/` | All 196 skills loadable via commands |
892
892
  | `hooks/hooks.json` | `~/.claude/hooks/` | Automated quality gates |
893
893
  | `rules/` | `~/.claude/rules/` | Always-on standards + intent routing |
894
894
  | `commands/` | `~/.claude/commands/` | Slash commands (`/tdd`, `/plan`, etc.) |
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.14.0
1
+ 2.15.0
@@ -37,6 +37,16 @@ These MUST be flagged — they can cause real damage:
37
37
  - **SQL injection** — String concatenation in queries instead of parameterized queries
38
38
  - **XSS vulnerabilities** — Unescaped user input rendered in HTML/JSX
39
39
  - **Path traversal** — User-controlled file paths without sanitization
40
+ - **Lexical-only containment** — `startsWith(root)` after `path.join` catches `..` but NOT
41
+ symlinks: `path.resolve` does not resolve them, so a link inside the root passes the check
42
+ while pointing anywhere on disk. Demand `realpath` on both sides before the comparison.
43
+ - **Prototype keys as map keys** — `map['constructor']` returns a truthy function, so
44
+ `if (!map[k])` never fires and the next line reads a property off it. Any object keyed by
45
+ user text (tokens, tags, headers, filenames) must be `Object.create(null)`. Words like
46
+ "constructor" and "toString" are ordinary vocabulary — this needs no attacker.
47
+ - **Truncate-then-write on state worth keeping** — `fs.writeFileSync` opens with `'w'` and
48
+ truncates to zero before writing. A crash, a full disk, or a concurrent reader sees an
49
+ empty file. Config files, registries, ledgers and indexes need temp + rename.
40
50
  - **CSRF vulnerabilities** — State-changing endpoints without CSRF protection
41
51
  - **Authentication bypasses** — Missing auth checks on protected routes
42
52
  - **Insecure dependencies** — Known vulnerable packages
@@ -40,6 +40,31 @@ Read the diff since last tag. Classify each change:
40
40
 
41
41
  Be **strict** about MAJOR. Most teams under-call breaking changes and lose user trust.
42
42
 
43
+ ### Phase 1.5 — Prove the build is green where it actually runs
44
+
45
+ A local `npm test` proves the suite passes **on your machine**. It says nothing
46
+ about the other platforms CI covers, and a green local run beside a red badge is
47
+ how a project ships eight broken releases in a row without noticing.
48
+
49
+ ```bash
50
+ gh run list --workflow=CI --limit 5 # is the badge actually green?
51
+ gh run view <id> --log-failed # if not, what fails and on which OS?
52
+ ```
53
+
54
+ **Never cut a release on a red CI.** If the failure is platform-specific, fix or
55
+ explicitly guard it — do not delete the test, and do not tell the user "all tests
56
+ passing" when only your platform is passing.
57
+
58
+ Common one-platform traps:
59
+
60
+ | Assumption | Breaks on |
61
+ |---|---|
62
+ | `chmod` / `statSync().mode` carry POSIX bits | Windows — only the read-only bit exists |
63
+ | `process.umask()` is meaningful | Windows |
64
+ | `symlinkSync` just works | Windows — needs admin or Developer Mode |
65
+ | Paths use `/` | Windows — compare with `path.sep` |
66
+ | `timeout`, `stat -f`, GNU flags exist | macOS ships BSD variants; Windows ships neither |
67
+
43
68
  ### Phase 2 — Generate the changelog
44
69
 
45
70
  Group entries by category, in this order:
@@ -55,6 +55,30 @@ rg -n 'Math\.random\(\)' # non-CSPRNG f
55
55
 
56
56
  # ── Unsafe deserialization + prototype pollution (HIGH) ─────────────────────
57
57
  rg -n 'pickle\.loads|yaml\.load\(|Marshal\.load|JSON\.parse\([^)]*req\.|_\.merge\(\{\}|Object\.assign\(target' # yaml.load: confirm it lacks SafeLoader
58
+
59
+ # ── Lexical-only path containment (HIGH) ────────────────────────────────────
60
+ # path.join/resolve normalise ".." but do NOT resolve symlinks. A link sitting
61
+ # lexically inside the root passes a startsWith() check while its target is
62
+ # anywhere on disk, and the read follows it. Confirmed four times across three
63
+ # unrelated files in this codebase before the guard existed.
64
+ rg -n 'startsWith\(.*(?:ROOT|DIR|BASE|root|base|dir).*sep|startsWith\(.*\+ .?/.?\)' # then check: is there a realpathSync nearby?
65
+ rg -n 'readFileSync|createReadStream|readdirSync' --context 3 | rg -n 'path\.(join|resolve)' # read after a lexical check = the bug
66
+ # The fix is realpath on BOTH sides before comparing, or an existing helper.
67
+
68
+ # ── Prototype keys used as map keys (HIGH) ──────────────────────────────────
69
+ # map['constructor'] returns Object.prototype.constructor — TRUTHY — so an
70
+ # `if (!map[k])` guard never fires and the next line reads a property off a
71
+ # function. "constructor" and "toString" are ordinary vocabulary, so this needs
72
+ # no attacker: one document containing the word is enough.
73
+ rg -n 'if \(!\w+\[\w+\]\)|\w+\[\w+\] = \w+\[\w+\] \|\|' # any map keyed by user text
74
+ rg -n '= \{\};' --context 2 | rg -n 'token|term|word|tag|key|freq|count' # should be Object.create(null)
75
+
76
+ # ── Truncate-then-write on persistent state (HIGH) ──────────────────────────
77
+ # fs.writeFileSync opens with 'w', truncating to zero BEFORE writing. A crash,
78
+ # a full disk, or a concurrent reader sees an empty file. Measured: a 6.3 MB
79
+ # store observed at 0 bytes mid-rewrite, 32 torn reads in 1423 samples.
80
+ rg -n 'writeFileSync\(' | rg -v 'tmp|\.tmp|test' # then ask: does this file hold state worth keeping?
81
+ # Config files, registries, ledgers, and indexes need temp+rename, not writeFileSync.
58
82
  ```
59
83
 
60
84
  Report every confirmed hit with: file:line, severity, the exact fix, and (for secrets) "rotate immediately."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodelyth-ecc",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "Production-grade AI coding toolkit — 70 agents (incl. devil-mode adversarial crew), 194 skills, 97 commands, parallel multi-agent commands, semantic intent routing, self-learning memory, and a built-in MCP server (16 tools / 6 prompts / 377 resources) that bridges to Claude Desktop, LangGraph, AutoGen, CrewAI, and OpenAI Agents SDK. Works with Claude Code, Windsurf, Cursor, Codex, Antigravity, OpenCode, Cline, RooCode, Aider, Kimi, and Gemini CLI.",
5
5
  "author": "Kodelyth <github.com/sifxprime>",
6
6
  "license": "MIT",