Skip to content

Commit b669d6d

Browse files
author
jovanSAPFIONEER
committed
v4.11.0 - QA Orchestrator Agent, scenario replay, regression tracking, contradiction detection
1 parent 8d6fd52 commit b669d6d

21 files changed

+1199
-19
lines changed

.github/SECURITY.md

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

55
| Version | Supported |
66
|---------|-----------|
7-
| 4.10.x | ✅ Yes — full support (current) |
7+
| 4.11.x | ✅ Yes — full support (current) |
8+
| 4.10.x | ✅ Security fixes only |
89
| 4.9.x | ✅ Security fixes only |
910
| 4.8.x | ✅ Security fixes only |
1011
| 4.7.x | ✅ Security fixes only |
@@ -39,6 +40,7 @@ Network-AI includes built-in security features:
3940
- **FSM Behavioral Control Plane** (v3.3.0) -- state-scoped agent and tool authorization via `JourneyFSM` and `ToolAuthorizationMatrix`; unauthorized actions blocked with `ComplianceViolationError`
4041
- **ComplianceMonitor** (v3.3.0) -- real-time agent behavior surveillance with configurable violation policies, severity classification, and async audit loop
4142
- **Named Multi-Blackboard API** (v3.4.0) -- isolated `SharedBlackboard` instances per name with independent namespaces, validation configs, and agent scoping; prevents cross-task data leakage
43+
- **QA Orchestrator Agent** (v4.11.0) -- scenario replay through quality gates, cross-agent contradiction detection, feedback loop with retry limits, and regression tracking with historical snapshots
4244

4345
## Security Scan Results
4446

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Project Overview
44

5-
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v4.10.0). 1,617 tests across 20 suites.
5+
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v4.11.0). 1,684 tests across 21 suites.
66

77
## Architecture
88

@@ -33,7 +33,7 @@ Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, gu
3333

3434
```bash
3535
npx tsc --noEmit # Type-check (zero errors expected)
36-
npm run test:all # All 1,582 tests across 20 suites
36+
npm run test:all # All 1,684 tests across 21 suites
3737
npm test # Core orchestrator tests
3838
npm run test:adapters # All 17 adapters
3939
```

ARCHITECTURE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ flowchart TD
5151
AG["AuthGuardian\n(HMAC / Ed25519 permission tokens)"]:::security
5252
AR["AdapterRegistry\n(route tasks to frameworks)"]:::routing
5353
QG["QualityGateAgent\n(validate blackboard writes)"]:::quality
54+
QA["QAOrchestratorAgent\n(scenario replay, regression tracking)"]:::quality
5455
BB["SharedBlackboard\n(shared agent state)\npropose → validate → commit\nfilesystem mutex"]:::blackboard
5556
AD["Adapters — plug any framework in, swap freely\nLangChain · AutoGen · CrewAI · MCP · LlamaIndex · …"]:::adapters
5657
5758
AG -->|"grant / deny"| AR
5859
AR -->|"tasks dispatched"| AD
5960
AD -->|"writes results"| BB
6061
QG -->|"validates"| BB
62+
QA -->|"orchestrates"| QG
6163
end
6264
6365
SO --> AUDIT["data/audit_log.jsonl\n(HMAC / Ed25519-signed)"]:::audit
@@ -198,6 +200,12 @@ Two-layer validation before blackboard writes:
198200
- Quarantine system for suspicious content
199201
- Adds LLM latency — use selectively
200202

203+
**Layer 3 — QAOrchestratorAgent (coordination)**
204+
- Scenario replay: re-run blackboard entries through quality gates as a test harness
205+
- Feedback loop: route rejections back to agents with structured feedback and retry limits
206+
- Regression tracker: historical quality snapshots with trend comparison
207+
- Cross-agent contradiction detection: detect conflicting outputs from multiple agents on the same key
208+
201209
---
202210

203211
## The 3-Layer Memory Model
@@ -281,6 +289,7 @@ Network-AI/
281289
├── lib/
282290
│ ├── locked-blackboard.ts # Atomic commits with file-system mutexes
283291
│ ├── blackboard-validator.ts # Content quality gate (Layer 1 + Layer 2)
292+
│ ├── qa-orchestrator.ts # QA orchestrator (scenario replay, regression, contradictions)
284293
│ ├── fsm-journey.ts # FSM state machine and compliance monitor
285294
│ └── swarm-utils.ts # Helper utilities
286295
├── scripts/ # Python helper scripts (local orchestration only)

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ 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+
## [4.11.0] - 2026-03-22
9+
10+
### Added
11+
- **QA Orchestrator Agent** (`QAOrchestratorAgent`) — coordination layer on top of QualityGateAgent and ComplianceMonitor
12+
- Scenario replay: re-run blackboard entries through quality gates as a test harness
13+
- Feedback loop: route rejections back to agents with structured feedback and retry limits
14+
- Regression tracker: historical quality snapshots with trend comparison
15+
- Cross-agent contradiction detection: detect conflicting outputs from multiple agents on the same blackboard key
16+
- Pluggable contradiction detector for domain-specific conflict rules
17+
- 67 new tests across 12 test groups (1,684 total)
18+
- `test:qa` script in package.json
19+
820
## [4.10.5] - 2026-03-22
921

1022
### Fixed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, gu
1111
```bash
1212
npm install # Install dependencies
1313
npx tsc --noEmit # Type-check (zero errors expected)
14-
npm run test:all # Run all 1,617 tests across 20 suites
14+
npm run test:all # Run all 1,684 tests across 21 suites
1515
npm test # Core orchestrator tests only
1616
npm run test:security # Security module tests
1717
npm run test:adapters # All 17 adapter tests

CODEX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, gu
1111
```bash
1212
npm install # Install dependencies
1313
npx tsc --noEmit # Type-check (zero errors expected)
14-
npm run test:all # Run all 1,617 tests across 20 suites
14+
npm run test:all # Run all 1,684 tests across 21 suites
1515
npm test # Core orchestrator tests only
1616
npm run test:security # Security module tests
1717
npm run test:adapters # All 17 adapter tests

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Unsolicited PRs without a linked, approved issue will be closed.
1616

1717
### Code Quality
1818

19-
- All 1,617 existing tests must pass (`npm run test:all`)
19+
- All 1,684 existing tests must pass (`npm run test:all`)
2020
- Zero TypeScript compile errors (`npx tsc --noEmit`)
2121
- New features must include tests with >90% branch coverage
2222
- Follow existing code style and patterns
@@ -78,7 +78,7 @@ Unsolicited PRs without a linked, approved issue will be closed.
7878
git clone https://github.com/Jovancoding/Network-AI.git
7979
cd Network-AI
8080
npm install
81-
npm run test:all # Run all 1,617 tests (20 suites)
81+
npm run test:all # Run all 1,684 tests (21 suites)
8282
npm run test:phase4 # Phase 4 behavioral control plane tests only
8383
npx tsc --noEmit # Type-check
8484
```

ENTERPRISE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Your agents
4242
│ JourneyFSM ──── FSM state governance │
4343
│ ComplianceMonitor ──── real-time violation policy │
4444
│ BlackboardValidator─── content quality gate │
45+
│ QAOrchestratorAgent── scenario replay & regression │
4546
│ ProjectContextManager─ Layer-3 persistent memory │
4647
└─────────────────────────────────────────────────────┘
4748
@@ -99,7 +100,7 @@ Network-AI follows [Semantic Versioning](https://semver.org/):
99100

100101
### Stability Signals
101102

102-
- 1,617 passing assertions across 20 suites
103+
- 1,684 passing assertions across 21 suites
103104
- Deterministic scoring — no random outcomes in permission evaluation or budget enforcement
104105
- CI runs on every push and every PR
105106
- All examples ship with the repo and run without mocking

INTEGRATION_GUIDE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ Run these before declaring the integration production-ready:
403403
### Functional
404404

405405
- [ ] All agents execute via the adapter registry without errors
406-
- [ ] `npx ts-node test-standalone.ts`79 core tests pass
407-
- [ ] `npx ts-node test-security.ts`33 security tests pass
408-
- [ ] `npx ts-node test-adapters.ts`139 adapter tests pass
406+
- [ ] `npx ts-node test-standalone.ts`88 core tests pass
407+
- [ ] `npx ts-node test-security.ts`34 security tests pass
408+
- [ ] `npx ts-node test-adapters.ts`176 adapter tests pass
409409
- [ ] `npx ts-node test-phase4.ts` — 147 behavioral tests pass
410+
- [ ] `npx ts-node test-qa.ts` — 67 QA orchestrator tests pass
411+
- [ ] `npm run test:all` — all 1,684 tests pass across 21 suites
410412
- [ ] `npm run demo -- --08` runs to completion in < 10 seconds
411413

412414
### Race Condition Safety

QUICKSTART.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,30 @@ const orchestrator = createSwarmOrchestrator({
150150
});
151151
```
152152

153+
For batch testing and regression tracking, use the QA Orchestrator:
154+
155+
```typescript
156+
import { QAOrchestratorAgent } from 'network-ai';
157+
158+
const qa = new QAOrchestratorAgent({
159+
qualityThreshold: 0.7,
160+
maxRetries: 2,
161+
onFeedback: (fb) => console.log('Fix needed:', fb.issues),
162+
});
163+
164+
// Run scenarios through quality gates
165+
const harness = await qa.runHarness([
166+
{ id: 'test-1', key: 'analysis', value: agentOutput, sourceAgent: 'analyst' },
167+
]);
168+
console.log(`Pass rate: ${harness.passRate}`);
169+
170+
// Detect cross-agent contradictions
171+
const contradictions = qa.detectContradictions();
172+
173+
// Track quality regressions over time
174+
const report = qa.getRegressionReport();
175+
```
176+
153177
---
154178

155179
## 6. Security
@@ -221,7 +245,8 @@ export class MyFrameworkAdapter extends BaseAdapter {
221245
npx ts-node test-standalone.ts # 88 core tests
222246
npx ts-node test-security.ts # 34 security tests
223247
npx ts-node test-adapters.ts # 176 adapter tests (all 17 frameworks)
224-
npx ts-node test-cli.ts # 65 CLI tests
248+
npx ts-node test-cli.ts # 65 CLI tests
249+
npx ts-node test-qa.ts # 67 QA orchestrator tests
225250
```
226251

227252
---
@@ -335,6 +360,7 @@ Your App
335360
├── TaskDecomposer — Break tasks into subtasks
336361
├── BlackboardValidator — Quality gate (Layer 1)
337362
├── QualityGateAgent — AI review (Layer 2)
363+
├── QAOrchestratorAgent — Scenario replay, feedback loops, regression tracking
338364
└── AdapterRegistry — Routes to any framework
339365
├── CustomAdapter ─── your functions / HTTP
340366
├── LangChainAdapter ─── LangChain / LangGraph

0 commit comments

Comments
 (0)