Commit Graph

1106 Commits

Author SHA1 Message Date
Profa 71dd5bb87e docs: add v3.7.14 QE fleet reports from 3 models + cross-model analysis
QE fleet reports generated using Claude Opus 4.6 (11 reports), GLM-5 (9 reports),
and Qwen 3.5 (9 reports) analyzing the same codebase. Includes a cross-model
analysis with devils-advocate verification of claims against actual codebase.

Key finding: model choice fundamentally determines report reliability, with
factual accuracy ranging from 88% (Opus) to 25% (Qwen). Qwen fabricated
27 CRITICAL vulnerabilities by confusing SQLite db.exec() with child_process.exec().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:14:08 +00:00
Profa c0c0ae9fc5 aqe.rvf.manifest.json 2026-03-09 07:39:57 +00:00
Dragan Spiridonov 69ff621aec Merge pull request #333 from proffesor-for-testing/march-fixes-and-improvements
chore(release): v3.7.14
v3.7.14
2026-03-08 16:36:28 +01:00
Profa 3b81b10d30 chore(release): bump version to v3.7.14
Brain export v3.0 (25 tables), witness chain v3 with Ed25519 signing,
streaming for large tables, RVF freeze/derive/indexStats, npm packaging fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 14:36:26 +00:00
Profa e857dfd646 fix(packaging): reduce npm package from 5473 to 3293 files to fix ENOTEMPTY install error
The massive file count (5473 files / 63MB) triggered npm's ENOTEMPTY race
condition during global install upgrades. Narrowed package.json `files` field
to exclude 2144 source maps and 36 dev-only scripts while keeping all 8
consumer-facing scripts (lifecycle hooks, skill validators, fetch-content).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 08:35:15 +00:00
Dragan Spiridonov a5e014786a Merge pull request #331 from proffesor-for-testing/working-branch-march
chore(release): v3.7.13
v3.7.13
2026-03-07 13:11:51 +01:00
Profa f45c01cd10 fix(security): replace ReDoS-vulnerable regex in trigger-optimizer
CodeQL flagged `parseSkillFrontmatter` regex `/^---\s*\n([\s\S]*?)\n---/`
as polynomial-time on crafted input. Replaced with indexOf-based parsing
that avoids backtracking entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 11:52:12 +00:00
Dragan Spiridonov 4d6de4266a Merge branch 'main' into working-branch-march 2026-03-07 12:42:39 +01:00
Profa 3c3e8861f5 chore(release): bump version to v3.7.13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 11:19:45 +00:00
Profa 18e15e843c feat(validation): add trigger optimizer, version comparator, and skill intent classification
Implements three improvements from Claude Blog skill-creator analysis:
- Trigger Optimizer: analyzes skill descriptions/tags for false positive/negative activation risks
- Version Comparator: A/B testing between skill versions with Cohen's d effect size
- Skill Intent: classify skills as capability_uplift, encoded_preference, or hybrid

Includes 52 unit tests (23 + 29), schema sync across all 3 copies, and ADR-056 update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 11:01:05 +00:00
Dragan Spiridonov f12950191f Merge pull request #330 from proffesor-for-testing/dependabot/npm_and_yarn/npm_and_yarn-765b85a4ff
chore(deps): bump express-rate-limit from 8.2.1 to 8.3.0 in the npm_and_yarn group across 1 directory
2026-03-07 11:22:16 +01:00
dependabot[bot] 361ed659f2 chore(deps): bump express-rate-limit
Bumps the npm_and_yarn group with 1 update in the / directory: [express-rate-limit](https://github.com/express-rate-limit/express-rate-limit).


Updates `express-rate-limit` from 8.2.1 to 8.3.0
- [Release notes](https://github.com/express-rate-limit/express-rate-limit/releases)
- [Commits](https://github.com/express-rate-limit/express-rate-limit/compare/v8.2.1...v8.3.0)

---
updated-dependencies:
- dependency-name: express-rate-limit
  dependency-version: 8.3.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 19:43:44 +00:00
Dragan Spiridonov e14b1baf97 Merge pull request #329 from proffesor-for-testing/working-branch-march-hotfix
fix: CLI crash on global install (v3.7.12)
v3.7.12
2026-03-06 16:49:16 +01:00
Profa 9f5b3b49bf fix: lazy-load typescript to prevent CLI crash on global install
TypeScript was an external ESM dependency loaded at bundle startup,
crashing `aqe --version` when typescript isn't installed (global
installs). Now lazy-loaded via createRequire Proxy — only triggers
when AST parsing features are used.

Also adds isolated install verification to /release skill (steps 8e
and 15) to catch missing externals before they reach users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 15:28:26 +00:00
Dragan Spiridonov fd521c7074 Merge pull request #328 from proffesor-for-testing/working-branch-march
chore(release): v3.7.11
v3.7.11
2026-03-06 15:09:04 +01:00
Profa ef17b67c78 chore(release): bump version to v3.7.11
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 13:46:47 +00:00
Profa 4eff20fe86 feat(governance): wire @claude-flow/guidance into all 8 governance modules
All governance modules now properly load AND wire their guidance
counterparts using a local-first pattern where AQE logic is
authoritative and guidance supplements:

- continue-gate: maps ContinueDecision with full StepContext
- memory-write-gate: local-first evaluation order, proper WriteDecision mapping
- adversarial-defense: ThreatDetector + CollusionDetector wiring
- deterministic-gateway: gateway.evaluate() supplements tool-call gating
- proof-envelope: parallel audit trail via ProofChain.append()
- shard-retriever: embedding-based relevance boosting via retrieve()
- evolution-pipeline: signed change proposals on promote/demote
- trust-accumulator: guidance trust scoring integration

Also adds ./governance subpath export to package.json for consumers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 13:30:08 +00:00
Profa 726307f0bd qe reports March 6, 2026 2026-03-06 13:26:41 +00:00
Profa 0328bdac8d docs: add monthly and total download badges to README
Replace weekly downloads badge with monthly and total download
badges for better visibility of package adoption.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 10:42:55 +00:00
Profa b052d73914 cleanup of reports 2026-03-06 08:40:36 +00:00
Dragan Spiridonov 80cf582f8a Merge pull request #327 from proffesor-for-testing/working-branch-march
chore(release): v3.7.10
v3.7.10
2026-03-05 18:55:09 +01:00
Profa 072432d396 fix(ci): fix YAML syntax error in qcsd-production-trigger workflow
Replace unindented heredoc (<<EOF) with echo statements in the
step summary. The heredoc content at column 0 broke YAML block scalar
parsing since it was inside a `run: |` block that requires indentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:58:35 +00:00
Profa 5a0bd69112 fix(security): add line length guards for all regex matches (CWE-1333)
Add MAX_REGEX_LINE_LEN (1000) guard before every regex .match() call
in multi-language-parser.ts. This is the CodeQL-recommended mitigation
for polynomial ReDoS — caps worst-case at O(1M) which is sub-millisecond.

Source code lines above 1000 chars are not valid function/class declarations
and are safely skipped. Brace-depth tracking is preserved for Go/Kotlin
parsers that need it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:37:03 +00:00
Profa e7326e5d82 fix(security): resolve 4 remaining CodeQL ReDoS alerts
- Line 356: split(/ +as +/) → split(' as ') to avoid polynomial scan
- Lines 502, 633: import/using \s+ → space-only, capture starts with \S
- Line 891: use + capture starts with \S to prevent overlap with leading spaces

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:28:37 +00:00
Profa c515fc91ba fix(security): resolve 17 CodeQL alerts (16 ReDoS, 1 incomplete sanitization)
- Fix 16 polynomial ReDoS in multi-language-parser.ts by eliminating
  overlapping quantifiers between [^X]+ capture groups and \s* delimiters
- Fix incomplete sanitization in language-detector.ts: replace('*','')
  only removes first occurrence, changed to replace(/\*/g, '')

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:21:30 +00:00
Profa 7f49a33326 fix(ci): set release skill to tier 0 (advisory, no schema output)
The release skill is a project-internal workflow orchestrator, not a
QE skill that produces JSON output. Tier 3 requires schemas/output.json
which doesn't apply here.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:06:22 +00:00
Profa f295020fd2 chore(release): bump version to v3.7.10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:02:17 +00:00
Profa b6fe4abec8 fix: resolve MCP path, stale v3/ refs, CRLF line endings, and rewrite README
- Fix MCP entry path resolution in mcp.ts (1 level up, not 2)
- Remove stale v3/ directory references in 10-workers.ts
- Fix CRLF line endings in 170+ skill files breaking frontmatter parsing
- Add CRLF→LF safety net in prepare-assets.sh
- Rewrite README.md for clarity (1097→280 lines, outcome-focused)
- Sync assets from .claude/skills via prepare-assets.sh

Fixes issues reported in v3.7.9 upgrade (skill-lint failures, MCP errors)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 15:46:53 +00:00
Dragan Spiridonov df6f446091 Merge pull request #326 from proffesor-for-testing/working-branch-march
chore(release): v3.7.9
v3.7.9
2026-03-05 14:57:43 +01:00
Profa 4cb914757b fix(ci): upgrade Node.js from 20 to 24 across all workflows
Matches local dev environment (Node 24 / npm 11) to fix lockfile
compatibility issues causing `npm ci` failures (jose@5.10.0 missing).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 13:33:58 +00:00
Profa c5d031347a Merge remote-tracking branch 'origin/main' into working-branch-march 2026-03-05 13:04:02 +00:00
Profa 1ddae67b5d chore(release): bump version to v3.7.9
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 13:03:55 +00:00
Dragan Spiridonov f7c2b4bbc7 Merge pull request #322 from proffesor-for-testing/dependabot/npm_and_yarn/npm_and_yarn-dd9dd4266a
chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
2026-03-05 13:58:05 +01:00
Profa 68cdc5ad7e feat(skills): add eval infrastructure for 5 tier-3 skills and fix asset sync
- Create eval configs (evals/*.yaml, schemas/output.json, scripts/validate-config.json)
  for: qcsd-cicd-swarm, qcsd-development-swarm, enterprise-integration-testing,
  observability-testing-patterns, middleware-testing-patterns
- Set debug-loop and pr-review to tier 0 (advisory-only, no eval needed)
- Update trust-tier-manifest.json with correct tier assignments
- Fix prepare-assets.sh to include qcsd-*, n8n-*, and 15 additional QE skills
  that were in assets/ but not matched by the copy filter
- Sync all eval infrastructure to assets/skills/ for npm distribution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:50:50 +00:00
Profa ec2c243172 fix(embeddings): complete 384-dim standardization across tests and providers
- Update default embed model from nomic-embed-text to all-MiniLM-L6-v2
  in Ollama LLM provider
- Fix 15 test files with hardcoded 768-dim references
- Update mock model names in Ollama health checks
- Update comments referencing old model name

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:33:47 +00:00
Profa e08bd7871d fix(embeddings): standardize all vector dimensions to 384 (all-MiniLM-L6-v2)
Previously had a mix of 768 (nomic-embed-text) and 384 (MiniLM-L6-v2)
dimensions across the codebase, causing dimension mismatches between
KG vectors and pattern store vectors. Standardize everything to 384
since all-MiniLM-L6-v2 is the model we ship (no Ollama dependency).

Changed 24 files: EMBEDDING_CONFIG.DIMENSIONS, DEFAULT_VECTOR_DIMENSIONS,
HNSW configs, coverage analysis, governance flags, test generation,
decision transformer, and all hardcoded 768 references.

Also cleaned 22,082 stale 768-dim vectors from memory.db (147MB -> 54MB).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:16:18 +00:00
Profa b3899ff258 feat(test-generation): implement multi-language generators and infrastructure
Add test generators for Go, Rust, Kotlin, Swift, Flutter, JUnit5,
xUnit, Jest-RN, and pytest with language detection, multi-language
parser, compilation validator, test file resolver, mobile/Spring
detectors, and Rust ownership analyzer.

Also includes init phase fixes, dream engine updates, routing
type extensions, and config sync.

Note: TODO comments in generators are template placeholders output
in generated user code, not actual implementation gaps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:00:54 +00:00
Profa e2fb4a2f14 feat(multi-lang): add docs, ADRs, tests, and fixtures for multi-language support
Update ADRs 075-079 with implementation details, revise the
multi-language GOAP implementation plan, add test generators and
parser test fixtures for Go, Rust, Java, C#, Swift, Python.
Include skill validation schema updates and v2→v3 migration skill.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:00:01 +00:00
Profa 33c6687e71 fix(agents): normalize memory namespace paths in agent definitions
Remove redundant /v3/ segment from agent memory namespace paths
(e.g., aqe/v3/accessibility/outcomes/* → aqe/accessibility/outcomes/*).
Namespace identifiers in memory.db remain unchanged — this only
affects the documentation references in agent markdown files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 11:59:28 +00:00
Profa 0dea580d4b feat(learning): add session-end experience-to-pattern consolidation
Pattern count was stagnant because the LearningConsolidationWorker
only runs via the background daemon (30min interval), which wasn't
active. Added lightweight consolidateExperiencesToPatterns() to the
session-end hook so captured_experiences are converted to qe_patterns
at the end of every Claude Code session.

- Aggregates unprocessed experiences by domain+agent
- Creates new patterns for clusters meeting quality thresholds
- Reinforces existing patterns instead of creating duplicates
- Marks processed experiences to ensure idempotency
- Verified: 9 new patterns created from 3,622 pending experiences

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 09:27:14 +00:00
dependabot[bot] 7475f658b2 chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
Bumps the npm_and_yarn group with 2 updates in the / directory: [@hono/node-server](https://github.com/honojs/node-server) and [hono](https://github.com/honojs/hono).


Updates `@hono/node-server` from 1.19.9 to 1.19.10
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.9...v1.19.10)

Updates `hono` from 4.12.3 to 4.12.5
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.12.3...v4.12.5)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.10
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: hono
  dependency-version: 4.12.5
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 21:13:50 +00:00
Dragan Spiridonov 75fc1f40e6 Merge pull request #320 from proffesor-for-testing/working-branch-march
chore(release): v3.7.8
v3.7.8
2026-03-04 14:41:01 +01:00
Profa 76c64297c2 fix(security): resolve ReDoS vulnerability in test-quality-gate regex
Replace exponential-backtracking regex with two-phase approach:
1. Match block structure using [^}]* (linear time)
2. Strip comments separately to check if body is empty

Fixes CodeQL high-severity alerts for polynomial regex backtracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 13:19:13 +00:00
Profa 79e75919d3 chore(release): bump version to v3.7.8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 13:05:57 +00:00
Profa 9733f2960b feat(test-generation): add multi-language support plan with ADRs (075-079)
Add comprehensive plan to extend AQE test generation from 2 languages
(TS/JS) to 11 (adding Java, C#, Go, Rust, Swift, Kotlin, Dart, Python
AST fix, React Native, Flutter). Includes GOAP execution plan optimized
for parallel agent swarm execution (up to 5 concurrent agents).

ADR-075: Unified TestFramework type system (single source of truth)
ADR-076: tree-sitter WASM multi-language parser integration
ADR-077: Compilation validation loop for generated tests
ADR-078: Backward-compatible multi-language API extension
ADR-079: Language-specific test file path resolution

GitHub Issue: #319

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 12:39:24 +00:00
Profa 4b0ec635f5 feat(loki-mode): integrate 7 adversarial quality gates (ADR-074)
Add anti-sycophancy scoring, test quality gates, blind review,
EMA calibration, edge-case injection, complexity-driven composition,
and auto-escalation. All features enabled by default (opt-out).
178 tests, 14 new files, 6 config flags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 12:36:19 +00:00
Profa 68c9856ae6 feat(learning): replace destructive pruning with smart experience consolidation
Replace autoPrune (which deleted experiences permanently, causing Exp counter
drops) with a three-phase consolidation system:

- Phase 1: Cluster & merge similar experiences via HNSW (>0.85 similarity)
- Phase 2: Reinforce quality based on reuse success rates
- Phase 3: Soft-archive truly valueless entries (never hard-delete unless >2000)

The Exp counter is now monotonically non-decreasing: merges preserve totals
via consolidation_count, archives stay counted, nothing is destroyed.

New file: src/learning/experience-consolidation.ts (ExperienceConsolidator)
Modified: experience-replay.ts, experience-capture.ts, statusline-v3.cjs,
          learning-consolidation.ts (Step 4.5 integration)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 13:02:26 +00:00
Dragan Spiridonov abd2c6d24b Merge pull request #318 from proffesor-for-testing/working-branch-march
chore(release): v3.7.7
v3.7.7
2026-03-02 22:00:53 +01:00
Profa 269bd5cf15 chore(release): bump version to v3.7.7
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 20:33:37 +00:00
Profa 51b227a011 feat(browser): add Scrapling-inspired browser capabilities
- Resource blocking with presets (functional/visual/performance) and tracker/ad domain lists
- Adaptive locator with similarity-based element matching for resilient E2E selectors
- Browser page pool for concurrent page management with async acquire/release
- Stealth browser client via Patchright for bot-protected test environments
- Integrated adaptive locator into click/type step executors with fallback chain
- Wired resource blocking into browser orchestrator launch lifecycle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 20:09:35 +00:00