849 Commits

Author SHA1 Message Date
Profa de405c1f6a fix(test): stabilize tunnel-manager tests for pre-spawn port check
The start() method checks for pre-existing tunnels before spawning
gcloud. Tests were not accounting for this checkPort() call, causing
mock connections to succeed prematurely and skip spawn entirely.

Added setupPortCheckMock() helper that fails the pre-spawn check
(simulating no existing tunnel) and succeeds on post-spawn checks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v3.6.2
2026-02-10 13:17:46 +00:00
Dragan Spiridonov 31ac077836 Merge pull request #247 from proffesor-for-testing/new-working-branch
chore(release): v3.6.2
2026-02-10 14:05:43 +01:00
Profa cb66a8075b Merge remote-tracking branch 'origin/main' into new-working-branch 2026-02-10 12:54:55 +00:00
Profa cb13b480ce chore(release): bump version to v3.6.2
Fixes #243 (agent parse errors on helper/README files) and #244 (YAML
parser returns {} for empty arrays causing TypeError in mergeConfigs).

- Move helpers install to .claude/helpers/v3/ to avoid claude doctor
  parsing .md reference files as agent definitions
- Write agents index to .claude/docs/ instead of .claude/agents/v3/
- Add post-parse normalization for known array fields in YAML parser
- Add Array.isArray guard in mergeConfigs for disabled domains
- Update helper path references in quality-criteria-service and agents
- Add 2 regression tests for Issue #244 scenarios

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 12:48:49 +00:00
Profa 30a2dc9137 feat(sync): enable cloud sync and fix tunnel manager reuse
Enable cloud sync to Google Cloud PostgreSQL (IAP tunnel) for
continuous data backup. Fix tunnel manager to detect and reuse
existing external tunnels instead of failing on port conflicts.

- Set AQE_CLOUD_SYNC_ENABLED=true in MCP config
- Enable sync in cloud-db-config.json
- Add external tunnel detection in IAPTunnelManager.start()
- Add gcloud CLI permission to local settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 09:09:17 +00:00
Dragan Spiridonov dc1ccf4465 Merge pull request #246 from proffesor-for-testing/dependabot/npm_and_yarn/v2/frontend/npm_and_yarn-66fcce4dc2
chore(deps): bump axios from 1.13.2 to 1.13.5 in /v2/frontend in the npm_and_yarn group across 1 directory
2026-02-10 09:05:39 +01:00
Dragan Spiridonov 63c265a513 Merge branch 'main' into dependabot/npm_and_yarn/v2/frontend/npm_and_yarn-66fcce4dc2 2026-02-09 22:35:32 +01:00
Profa 4cc0d19a5e fix(test): stabilize token-usage timeframe test for CI
Use captured `now` timestamp instead of new Date() for record creation,
and add 1s buffer to end time to prevent race condition in slow CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v3.6.1
2026-02-09 21:08:12 +00:00
dependabot[bot] 67417f3573 chore(deps): bump axios
Bumps the npm_and_yarn group with 1 update in the /v2/frontend directory: [axios](https://github.com/axios/axios).


Updates `axios` from 1.13.2 to 1.13.5
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.13.2...v1.13.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.5
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-09 20:56:19 +00:00
Dragan Spiridonov 5e85f3a754 Merge pull request #245 from proffesor-for-testing/new-working-branch
feat(v3.6.1): Agent Teams, Distributed Tracing & Fleet Coordination
2026-02-09 21:55:19 +01:00
Profa bf940ca50a fix(security): escape dots in SOAP namespace regex for CodeQL
Separate display string from regex-safe string so CodeQL can verify
dots are properly escaped before flowing into RegExp constructor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:35:50 +00:00
Profa 734399371f ci: retrigger CodeQL checks (rate limit recovery)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:13:53 +00:00
Profa 7abb1698e1 chore(release): bump version to v3.6.1
ADR-064 Agent Teams integration, distributed tracing, competing hypotheses,
dynamic scaling, federation mailbox, circuit breakers, task DAG scheduling,
HNSW graph indexing, pattern training pipeline, and Devils Advocate agent.

Also restructured README with separate release notes, fixed release skill
with real CLI commands and npm scripts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 19:53:36 +00:00
Profa 4d6ecbee6c fix(security): resolve 6 CodeQL alerts in enterprise-integration services
Replace bare String.includes() URL checks with xmlns-anchored regex
patterns to prevent incomplete URL substring sanitization (CWE-20).
Remove no-op identity replacement in SOAP response validation (CWE-116).

Resolves: #133, #134, #135, #136, #137, #139

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 21:08:31 +00:00
Profa 6f876b3ccb Merge branch 'main' into new-working-branch 2026-02-08 20:33:38 +00:00
Profa 82034c7f44 docs(claude): add npm publish process rules to CLAUDE.md
Document the correct release workflow: create GitHub Release triggers
npm-publish.yml (not publish-v3-alpha.yml). Prevents using wrong
workflow for production releases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 20:10:36 +00:00
Profa 83c2a3ad76 fix(ci): allow same version in publish workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v3.6.0
2026-02-08 19:52:40 +00:00
Profa 83c44b0b0c fix(test): update domain count assertions to 14 (13 user-facing + coordination)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:38:28 +00:00
Dragan Spiridonov 72dbe5ddb0 feat(v3): v3.6.0 — enterprise integration + pentest validation + init fixes (#242)
* fix(persistence): unify findProjectRoot to prevent dual-database data splits

Four separate findProjectRoot() implementations with different logic caused
data to split between /.agentic-qe/memory.db and /v3/.agentic-qe/memory.db.
Consolidated to single canonical implementation that checks AQE_PROJECT_ROOT
env var first, then walks up for .agentic-qe/, .git, package.json markers.

- kernel.ts, base.ts, claude-flow-bridge.ts: import canonical findProjectRoot
- claude-flow-bridge.ts: fix 2 hardcoded v3/.agentic-qe/memory.db paths
- post-task-sync.sh: fix hardcoded v3/.agentic-qe/memory.db path
- unified-memory.ts: add warnIfDuplicateDatabases() startup guard
- vitest.config.ts: set AQE_PROJECT_ROOT so tests use repo root db

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(v3): StrongDM Tier 1 — loop detection + token dashboard (Actions 1+2)

Action 1: Tool-call signature tracking with FNV-1a hashing and 3-strike
loop detection in anti-drift-middleware. Integrates with strange-loop
healing controller and ReasoningBank for pattern learning.

Action 2: Token usage dashboard with session cost summaries in budget
enforcer, token tracker, and optimizer service. Adds --dashboard CLI
flag and MCP tool operation.

40 new tests (27 loop detection + 13 anti-drift), all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(test): cap NODE_OPTIONS heap to 1GB to prevent OOM in Codespaces

NODE_OPTIONS=--max-old-space-size=2048 is inherited by ALL forked vitest
workers. With 3 processes × 2GB = 6GB for tests + VS Code (~2GB) + Claude
(~5GB), the 8GB container cgroup limit was exceeded even with maxForks=2.

Fix: npm test script overrides NODE_OPTIONS to 1024MB per process.
3 × 1GB = 3GB leaves headroom for other processes.

Verified: 469/471 test files pass, 15,851 tests pass, zero OOM kills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* plans & analysis

* feat(v3): release v3.5.6 — enterprise integration domain + 7 agents + 4 skills

Merge PR #236 (enterprise integration) and working branch changes into release:

- Enterprise Integration Domain (ADR-063): 14th DDD bounded context with
  SOAP/WSDL, SAP RFC/BAPI/IDoc, OData, ESB, message broker, SoD testing
- 7 new QE agents: soap-tester, sap-rfc-tester, sap-idoc-tester,
  middleware-validator, odata-contract-tester, message-broker-tester, sod-analyzer
- 4 new skills: enterprise-integration, middleware, WMS, observability testing
- QCSD swarm phases updated with enterprise integration flags
- QX Partner HTML report template with 23+ heuristics
- StrongDM Tier 1 loop detection + token dashboard (ADR-062)
- Fixed dual-database data splits, faker locale, OOM in Codespaces
- Synced new agents/skills to v3/assets for npm package distribution
- Updated counts: 13 domains, 58 QE agents, 71 QE skills
- Updated CONTRIBUTORS.md with Lalit's full contribution history

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(test): update domain count assertions for 13 user-facing domains

- core-handlers.test.ts: 12 → 13 enabled domains (excludes coordination)
- morning-sync.test.ts: 13 → 14 total domains (13 user-facing + coordination)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(init): add templates support, sync 74 QE skills, fix SKILL.md casing

- Add copyTemplatesDirectory() to agents-installer for QX report template
- Add 7 enterprise-integration agents to V3_QE_AGENTS and domainMap
- Fix domain extraction regex to handle both qe- and v3-qe- prefixes
- Sync 3 skills (.claude → assets): debug-loop, pr-review, security-visual-testing
- Sync 2 skills (assets → .claude): sfdipot-product-factors, test-idea-rewriting
- Fix lowercase skill.md → SKILL.md casing in 3 skills
- Add 'release' to EXCLUDED_SKILLS in skills-installer
- Update QE skill count 71 → 74 across READMEs and skills-manifest
- Verified: aqe init installs 74 skills, 58 agents, QX template present

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(v3): v3.6.0 — pentest validation agent + skill (Shannon-inspired)

Add qe-pentest-validator agent and pentest-validation Tier 3 skill
implementing graduated exploit validation inspired by Shannon/KeygraphHQ
philosophy: "No Exploit, No Report."

New components:
- qe-pentest-validator agent (security-compliance domain)
- pentest-validation skill with 4-phase pipeline
- Tier 3 trust: eval suite (15 tests), JSON schema, bash validator
- 3-tier graduated exploitation (pattern→payload→full exploit)
- Exploit playbook memory via ReasoningBank + HNSW

Fleet: 59 agents (52 main + 7 subagents), 75 QE skills (46 T3 + 29 additional)
Verified: aqe init --auto installs 75 skills, 59 agents correctly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(docs): correct v3.6.0 README — credit Lalit, fix domain count to 13

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(docs): correct stale counts — 13 domains, 52 main agents, 59 total

Fix leftover references to 12 domains (now 13 with enterprise-integration),
44/51 agents (now 52 main + 7 TDD = 59 total), and 12/12 domain integration
references across both README files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:55:20 +01:00
Profa b2c8db7f06 fix(docs): correct stale counts — 13 domains, 52 main agents, 59 total
Fix leftover references to 12 domains (now 13 with enterprise-integration),
44/51 agents (now 52 main + 7 TDD = 59 total), and 12/12 domain integration
references across both README files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:41:08 +00:00
Profa 7887f26f7d fix(docs): correct v3.6.0 README — credit Lalit, fix domain count to 13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:39:02 +00:00
Profa 67a6fad6ac feat(v3): v3.6.0 — pentest validation agent + skill (Shannon-inspired)
Add qe-pentest-validator agent and pentest-validation Tier 3 skill
implementing graduated exploit validation inspired by Shannon/KeygraphHQ
philosophy: "No Exploit, No Report."

New components:
- qe-pentest-validator agent (security-compliance domain)
- pentest-validation skill with 4-phase pipeline
- Tier 3 trust: eval suite (15 tests), JSON schema, bash validator
- 3-tier graduated exploitation (pattern→payload→full exploit)
- Exploit playbook memory via ReasoningBank + HNSW

Fleet: 59 agents (52 main + 7 subagents), 75 QE skills (46 T3 + 29 additional)
Verified: aqe init --auto installs 75 skills, 59 agents correctly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:20:30 +00:00
Profa 2308660f90 fix(init): add templates support, sync 74 QE skills, fix SKILL.md casing
- Add copyTemplatesDirectory() to agents-installer for QX report template
- Add 7 enterprise-integration agents to V3_QE_AGENTS and domainMap
- Fix domain extraction regex to handle both qe- and v3-qe- prefixes
- Sync 3 skills (.claude → assets): debug-loop, pr-review, security-visual-testing
- Sync 2 skills (assets → .claude): sfdipot-product-factors, test-idea-rewriting
- Fix lowercase skill.md → SKILL.md casing in 3 skills
- Add 'release' to EXCLUDED_SKILLS in skills-installer
- Update QE skill count 71 → 74 across READMEs and skills-manifest
- Verified: aqe init installs 74 skills, 58 agents, QX template present

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:02:17 +00:00
Profa 62dfb91dda fix(test): update domain count assertions for 13 user-facing domains
- core-handlers.test.ts: 12 → 13 enabled domains (excludes coordination)
- morning-sync.test.ts: 13 → 14 total domains (13 user-facing + coordination)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:28:00 +00:00
Profa f19d46cbc4 feat(v3): release v3.5.6 — enterprise integration domain + 7 agents + 4 skills
Merge PR #236 (enterprise integration) and working branch changes into release:

- Enterprise Integration Domain (ADR-063): 14th DDD bounded context with
  SOAP/WSDL, SAP RFC/BAPI/IDoc, OData, ESB, message broker, SoD testing
- 7 new QE agents: soap-tester, sap-rfc-tester, sap-idoc-tester,
  middleware-validator, odata-contract-tester, message-broker-tester, sod-analyzer
- 4 new skills: enterprise-integration, middleware, WMS, observability testing
- QCSD swarm phases updated with enterprise integration flags
- QX Partner HTML report template with 23+ heuristics
- StrongDM Tier 1 loop detection + token dashboard (ADR-062)
- Fixed dual-database data splits, faker locale, OOM in Codespaces
- Synced new agents/skills to v3/assets for npm package distribution
- Updated counts: 13 domains, 58 QE agents, 71 QE skills
- Updated CONTRIBUTORS.md with Lalit's full contribution history

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:19:52 +00:00
Profa 176f62c702 Merge remote-tracking branch 'origin/main' into new-working-branch
# Conflicts:
#	.gitignore
#	v3/implementation/adrs/v3-adrs.md
2026-02-08 16:55:20 +00:00
Dragan Spiridonov 5eea9b5cc7 Merge pull request #236 from fndlalit/feat/qcsd-cicd-swarm
chore: exclude enterprise-order-to-cash demo from repo
2026-02-08 17:54:33 +01:00
Profa ab89164848 plans & analysis 2026-02-08 16:46:08 +00:00
Profa 731f0e5706 fix(test): cap NODE_OPTIONS heap to 1GB to prevent OOM in Codespaces
NODE_OPTIONS=--max-old-space-size=2048 is inherited by ALL forked vitest
workers. With 3 processes × 2GB = 6GB for tests + VS Code (~2GB) + Claude
(~5GB), the 8GB container cgroup limit was exceeded even with maxForks=2.

Fix: npm test script overrides NODE_OPTIONS to 1024MB per process.
3 × 1GB = 3GB leaves headroom for other processes.

Verified: 469/471 test files pass, 15,851 tests pass, zero OOM kills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:23:06 +00:00
Profa 91e14a61e4 feat(v3): StrongDM Tier 1 — loop detection + token dashboard (Actions 1+2)
Action 1: Tool-call signature tracking with FNV-1a hashing and 3-strike
loop detection in anti-drift-middleware. Integrates with strange-loop
healing controller and ReasoningBank for pattern learning.

Action 2: Token usage dashboard with session cost summaries in budget
enforcer, token tracker, and optimizer service. Adds --dashboard CLI
flag and MCP tool operation.

40 new tests (27 loop detection + 13 anti-drift), all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:22:59 +00:00
Profa 79e7b80f49 fix(persistence): unify findProjectRoot to prevent dual-database data splits
Four separate findProjectRoot() implementations with different logic caused
data to split between /.agentic-qe/memory.db and /v3/.agentic-qe/memory.db.
Consolidated to single canonical implementation that checks AQE_PROJECT_ROOT
env var first, then walks up for .agentic-qe/, .git, package.json markers.

- kernel.ts, base.ts, claude-flow-bridge.ts: import canonical findProjectRoot
- claude-flow-bridge.ts: fix 2 hardcoded v3/.agentic-qe/memory.db paths
- post-task-sync.sh: fix hardcoded v3/.agentic-qe/memory.db path
- unified-memory.ts: add warnIfDuplicateDatabases() startup guard
- vitest.config.ts: set AQE_PROJECT_ROOT so tests use repo root db

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:08:07 +00:00
Lalit a60c054484 fix(pr-review): address PR #236 review comments
1. Remove auto-generated benchmark reports (v3/docs/reports/) - ~6k lines of noise
2. Merge origin/main to resolve dirty merge state (PRs #237-#241)
3. Rename ADR-059 to ADR-063 to avoid conflict with ADR-059-ghost-intent-coverage on main
4. Update all 19 cross-references from ADR-059 to ADR-063

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 13:29:49 +00:00
Profa cc2f658492 fix(ci): use sequential vitest in CI to avoid OOM with 1GB heap
CI runners have NODE_OPTIONS='--max-old-space-size=1024'. With 6 parallel
forks, workers OOM and crash with RPC errors. Restore fileParallelism:false
and maxForks:2 for CI while keeping parallel forks for local dev.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v3.5.5
2026-02-06 19:55:28 +00:00
Profa 6215e69ab1 fix(ci): revert test:ci to single-instance vitest for GitHub Actions
The 3-batch approach works locally but fails in CI where the single
vitest instance has always worked (7GB RAM). Keep test:unit as 3-batch
for local dev, test:ci as single-instance for CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:46:02 +00:00
Dragan Spiridonov 52f39dd518 Merge pull request #241 from proffesor-for-testing/new-working-branch
feat(v3): AISP-inspired learning + test suite fix (v3.5.5)
2026-02-06 20:38:30 +01:00
Profa 850a9d6e52 feat(v3): AISP-inspired learning + test suite fix (v3.5.5)
Add three AISP-inspired ADR implementations wired to user-facing surfaces,
and fix the test suite to run reliably with a 3-batch architecture.

ADR-059: Ghost Intent Coverage — detect untested behavioral intents via
CLI --ghost flag and MCP gaps tool.

ADR-060: Semantic Anti-Drift Middleware — auto-registered in kernel init
with cosine similarity event pipeline validation.

ADR-061: Asymmetric Learning Rates — 10:1 penalty-to-reward ratio wired
to test execution outcomes and learning stats display.

Test suite: split into fast/heavy/mcp batches to avoid vitest module
transform overhead (14s/file at 316+ files) and MCP fleet init deadlock.
12,764 tests pass across 377 files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:25:00 +00:00
Profa 5e6314c281 chore: add insights-driven CLAUDE.md rules and custom skills
Add project boundary rules learned from usage insights to prevent
recurring friction: AQE scope boundaries, v3-only DB policy, real-test
enforcement, production safety gates, version grep before releases,
and user-friendly PR conventions.

Create three custom skills (/release, /pr-review, /debug-loop) for
internal project use — not included in aqe init scaffolding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 11:07:16 +00:00
Lalit 74b77e46e4 Merge remote-tracking branch 'origin/main' into feat/qcsd-cicd-swarm 2026-02-05 18:34:31 +00:00
Dragan Spiridonov 0281c7b06d fix(init): use dynamic package version instead of hardcoded 3.0.0 (#240)
The version upgrade detection wasn't working because context.config.version
was always "3.0.0" (hardcoded) instead of the actual package version.

Changes:
- Add getAQEVersion() helper that reads __CLI_VERSION__ build constant
- Update self-configurator, init-wizard, config-migrator, database phase,
  learning phase, and types.ts to use dynamic version
- Bump to v3.5.4

This fixes the --auto upgrade not updating skills/agents when upgrading
from an older version.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
v3.5.4
2026-02-05 16:30:18 +01:00
Dragan Spiridonov 4e146d1b11 Merge pull request #239 from proffesor-for-testing/new-working-branch
fix(init): resolve aqe init --auto upgrade issues
v3.5.3
2026-02-05 15:41:21 +01:00
Profa e624a83efc fix(init): resolve aqe init --auto upgrade issues
- Add detectVersionUpgrade() to auto-update skills/agents when version changes
- Make MCP daemon startup error non-blocking (Claude Code starts it via .mcp.json)
- Fix verification phase false negatives by distinguishing critical vs optional checks
- Bump version to 3.5.3

Fixes:
1. Skills/agents not updated: --auto now implies upgrade when version differs
2. MCP daemon error: Changed from blocking error to informational message
3. Verification failure: Version marker check is now optional, not critical

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:32:13 +00:00
Profa eaf9ccd72c fix(test): update init-wizard test to match implementation
The MCP server config now uses 'agentic-qe' as the server name
and 'npx @anthropics/agentic-qe mcp start' as the command.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
v3.5.2
2026-02-05 13:29:01 +00:00
Dragan Spiridonov 551d6993de Merge pull request #238 from proffesor-for-testing/new-working-branch
feat(v3.5.2): standalone learning commands and DDD documentation
2026-02-05 14:12:34 +01:00
Lalit de86a1fe23 feat(qe-qx-partner): add mandatory HTML report template with signature intro boxes
- Add comprehensive HTML template at .claude/agents/v3/templates/qx-report-template.html
- Include 3 signature intro boxes: "How can this report help you?", "When to perform a QX session?", "How to use this report?"
- Add domain context banner, table of contents, footer branding
- Add JavaScript for auto-collapse functionality
- Update qe-qx-partner.md with mandatory HTML generation requirements:
  - 11 required sections (Executive Summary through QX Methodology)
  - 23+ heuristics with individual scoring format
  - 6-8 creativity domain analyses
  - Quality gate: reports under 500 lines flagged as INCOMPLETE
- Reference Sigma-Aldrich and Proximety reports as quality benchmarks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 13:06:26 +00:00
Profa bea1898ed8 fix(test): add 30s timeouts to flaky MCP handler tests for CI
Tests calling real handlers (handleTestGenerate, handleCoverageAnalyze,
handleQualityAssess, etc.) trigger full kernel initialization which takes
8-10s. In CI with slower runners, this exceeds the default 10s timeout.

Added 30000ms timeout to 60+ tests across:
- domain-handlers.test.ts (all handler tests without mocks)
- task-handlers.test.ts (handleTaskOrchestrate tests)
- wrapped-domain-handlers.test.ts (wrapper integration tests)

Root cause: Timing flakiness due to kernel initialization on slow CI.
Fix: Explicit timeout parameter, no test logic changes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:55:33 +00:00
Profa dbab7e559e fix(test): increase timeout for slow CI tests
Tests involving full kernel initialization can exceed 10s timeout
on slower CI runners. Increased timeout to 30s for:
- task-handlers: should orchestrate task from description
- wrapped-domain-handlers: should wrap handleTestGenerate

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:42:55 +00:00
Profa da1b524d5c fix(test): update handler-factory test for pattern search properties
The routeTask call now includes enablePatternSearch and patternHints
properties added by recent pattern search integration. Updated test
assertion to expect these new fields.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:36:02 +00:00
Profa e8a3650ee3 fix(statusline): include all learning data sources
- Add qe_patterns table to pattern count
- Add kv_store patterns (MCP-stored) to pattern count
- Add memory_entries learning data to experience count
- Now shows accurate totals: 624 patterns, 2523 experiences

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:27:26 +00:00
Profa 04bbde2600 fix(learning): resolve CLI command bugs
- Rename learning_metrics table to learning_daily_snapshots to avoid
  conflict with existing agent metrics table
- Fix date serialization in export-full command (handle both Date
  objects and string timestamps)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:19:04 +00:00
Profa a742d5bdea feat(learning): complete all 8 phases of learning improvement plan
## Phase 3: Hook Integration ✅
- Fixed v3-qe-bridge.sh module path: /v3/src/ → /v3/dist/
- Added json_escape() function for safe JSON handling
- Added QE_HOOK_DEBUG environment variable for debugging

## Phase 5: Pattern Utilization ✅
- Added searchPatternsForTask() to aqe-learning-engine.ts
- Pattern search integrated into task routing
- Track pattern reuse metrics

## Phase 6: Learning Dashboard ✅
- NEW: v3/src/learning/metrics-tracker.ts
- Added `aqe learning dashboard` command
- Metrics collection and trend analysis

## Phase 7: Continuous Learning Loop ✅
- NEW: v3/src/learning/pattern-lifecycle.ts (862 lines)
- Pattern promotion thresholds (0.7 reward, 2 occurrences)
- Pattern deprecation after failures
- Enhanced learning-consolidation worker

## Phase 7B: Learning Agents ✅
- Updated qe-pattern-learner.md with correct MCP tools
- Updated qe-learning-coordinator.md with correct MCP tools

## Phase 8: Data Integrity ✅
- Added `aqe learning backup` command
- Added `aqe learning restore` command
- Added `aqe learning verify` command

All 8 phases of LEARNING_IMPROVEMENT_PLAN.md now complete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:07:56 +00:00