Skip to content

Commit f301d22

Browse files
author
jovanSAPFIONEER
committed
fix: resolve all remaining CodeQL alerts
- Remove unused imports: createHmac (index.ts, test-standalone.ts), DataEncryptor/RateLimiter/SecureAuditLogger/SecurityError (index.ts), BlackboardValidator (index.ts, test-ai-quality.ts), appendFileSync (test-standalone.ts), SwarmOrchestrator (test.ts) - Prefix unused destructured vars with _ in test-priority.ts, test-standalone.ts, setup.ts, index.ts - Add word boundaries to /TODO|FIXME|HACK|XXX/ in blackboard-validator.ts - Strengthen ci.yml to permissions: contents: read; actions: read - Dismiss alerts 50 (js/bad-tag-filter) + 51 (js/regex/missing-regexp-anchor) via API as false positives (detection patterns, not validators) 315/315 tests pass
1 parent 34e25e1 commit f301d22

File tree

15 files changed

+33
-25
lines changed

15 files changed

+33
-25
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: CI
88

99
permissions:
1010
contents: read
11+
actions: read
1112

1213
jobs:
1314
test:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to Network-AI will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.2.10] - 2026-02-19
9+
10+
### Fixed
11+
- **js/unused-local-variable** -- removed unused imports (`createHmac`, `DataEncryptor`, `RateLimiter`, `SecureAuditLogger`, `SecurityError`, `BlackboardValidator`, `appendFileSync`, `SwarmOrchestrator`) from `index.ts`, `test-standalone.ts`, `test.ts`, `test-ai-quality.ts`; prefixed intentionally unused destructured variables with `_` in `test-priority.ts`, `test-standalone.ts`, `setup.ts`, and `index.ts`
12+
- **js/regex/missing-regexp-anchor** -- added `\b` word boundaries to `/TODO|FIXME|HACK|XXX/` placeholder detection pattern in `blackboard-validator.ts`
13+
- **js/bad-tag-filter + js/regex/missing-regexp-anchor** -- dismissed as false positives via GitHub Code Scanning API; both are detection patterns operating within serialized content, not full-string validators
14+
- **Token-Permissions** -- strengthened `ci.yml` to `permissions: contents: read; actions: read`
15+
816
## [3.2.9] - 2026-02-19
917

1018
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![CI](https://github.com/jovanSAPFIONEER/Network-AI/actions/workflows/ci.yml/badge.svg)](https://github.com/jovanSAPFIONEER/Network-AI/actions/workflows/ci.yml)
66
[![CodeQL](https://github.com/jovanSAPFIONEER/Network-AI/actions/workflows/codeql.yml/badge.svg)](https://github.com/jovanSAPFIONEER/Network-AI/actions/workflows/codeql.yml)
7-
[![Release](https://img.shields.io/badge/release-v3.2.9-blue.svg)](https://github.com/jovanSAPFIONEER/Network-AI/releases)
7+
[![Release](https://img.shields.io/badge/release-v3.2.10-blue.svg)](https://github.com/jovanSAPFIONEER/Network-AI/releases)
88
[![npm](https://img.shields.io/npm/dw/network-ai.svg?label=npm%20downloads)](https://www.npmjs.com/package/network-ai)
99
[![ClawHub](https://img.shields.io/badge/ClawHub-network--ai-orange.svg)](https://clawhub.ai/skills/network-ai)
1010
[![Node.js](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org)

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Network-AI includes built-in security features:
3737

3838
- **VirusTotal**: Benign (0/64 engines)
3939
- **OpenClaw Scanner**: Benign, HIGH CONFIDENCE
40-
- **CodeQL**: v3.2.9 -- all remaining HIGH/WARNING alerts resolved; actions SHA-pinned; unused imports removed
40+
- **CodeQL**: v3.2.10 -- all fixable alerts resolved; unused imports cleaned; false-positive detection patterns dismissed
4141
- **Snyk**: All High/Medium findings resolved in v3.0.3
4242

4343
## Disclosure Policy

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
import { readFileSync, writeFileSync, existsSync, appendFileSync } from 'fs';
1313
import { join } from 'path';
14-
import { randomUUID, createHmac } from 'crypto';
14+
import { randomUUID } from 'crypto';
1515
import { AdapterRegistry } from './adapters/adapter-registry';
16-
import { InputSanitizer, SecureSwarmGateway, RateLimiter, SecureAuditLogger, DataEncryptor, SecurityError } from './security';
16+
import { InputSanitizer, SecureSwarmGateway } from './security';
1717
import { LockedBlackboard } from './lib/locked-blackboard';
1818
import type { ConflictResolutionStrategy, AgentPriority, LockedBlackboardOptions } from './lib/locked-blackboard';
19-
import { BlackboardValidator, QualityGateAgent } from './lib/blackboard-validator';
19+
import { QualityGateAgent } from './lib/blackboard-validator';
2020
import { Logger } from './lib/logger';
2121
import {
2222
IdentityVerificationError,
@@ -1796,7 +1796,7 @@ export class SwarmOrchestrator implements OpenClawSkill {
17961796
private async querySwarmState(params: Record<string, unknown>, context: SkillContext): Promise<SkillResult> {
17971797
const scope = (params.scope as string) ?? 'all';
17981798
const agentFilter = params.agentFilter as string[] | undefined;
1799-
const includeHistory = (params.includeHistory as boolean) ?? false;
1799+
const _includeHistory = (params.includeHistory as boolean) ?? false;
18001800

18011801
const state: Partial<SwarmState> = {
18021802
timestamp: new Date().toISOString(),

lib/blackboard-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export class BlackboardValidator {
311311
/lorem ipsum/i,
312312
/foo\s*bar\s*baz/i,
313313
/\bexample\.com\b/i,
314-
/TODO|FIXME|HACK|XXX/,
314+
/\b(?:TODO|FIXME|HACK|XXX)\b/,
315315
/placeholder/i,
316316
/dummy[_\s]?data/i,
317317
/sample[_\s]?data/i,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "network-ai",
3-
"version": "3.2.9",
3+
"version": "3.2.10",
44
"description": "AI agent orchestration framework for TypeScript/Node.js - plug-and-play multi-agent coordination with 12 frameworks (LangChain, AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, OpenClaw). Built-in security, swarm intelligence, and agentic workflow patterns.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function printAdapterList(): void {
301301
console.log(`${COLORS.bold}Supported Frameworks (12 adapters):${COLORS.reset}\n`);
302302
const entries = Object.entries(ADAPTERS);
303303
for (let i = 0; i < entries.length; i++) {
304-
const [key, info] = entries[i];
304+
const [_key, info] = entries[i];
305305
const deps = info.npmPackages.length > 0
306306
? `${COLORS.dim}(npm: ${info.npmPackages.join(', ')})${COLORS.reset}`
307307
: `${COLORS.green}(no dependencies)${COLORS.reset}`;

skill.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SwarmOrchestrator",
3-
"version": "3.2.9",
3+
"version": "3.2.10",
44
"description": "Multi-agent orchestrator and behavioral control plane for TypeScript/Node.js. Connects 12 AI frameworks (LangChain, AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, OpenClaw) with shared blackboard coordination, permission gating, audit trails, AES-256 encryption, and token budget enforcement.",
55
"author": "Network-AI Community",
66
"homepage": "https://github.com/jovanSAPFIONEER/Network-AI",

0 commit comments

Comments
 (0)