agentic-qe 3.7.14 → 3.7.16
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/.claude/helpers/brain-checkpoint.cjs +11 -0
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +49 -0
- package/dist/cli/bundle.js +1260 -528
- package/dist/cli/commands/prove.d.ts +60 -0
- package/dist/cli/commands/prove.js +167 -0
- package/dist/cli/handlers/brain-handler.js +2 -1
- package/dist/cli/index.js +2 -0
- package/dist/domains/test-generation/coordinator.js +6 -4
- package/dist/domains/test-generation/pattern-injection/edge-case-injector.d.ts +6 -0
- package/dist/domains/test-generation/pattern-injection/edge-case-injector.js +30 -0
- package/dist/feedback/feedback-loop.d.ts +5 -0
- package/dist/feedback/feedback-loop.js +12 -0
- package/dist/feedback/index.d.ts +1 -1
- package/dist/feedback/index.js +1 -1
- package/dist/kernel/hnsw-adapter.d.ts +3 -0
- package/dist/kernel/hnsw-adapter.js +11 -1
- package/dist/kernel/unified-memory-schemas.d.ts +3 -3
- package/dist/kernel/unified-memory-schemas.js +28 -1
- package/dist/kernel/unified-memory.js +57 -0
- package/dist/learning/aqe-learning-engine.js +2 -1
- package/dist/learning/daily-log.d.ts +43 -0
- package/dist/learning/daily-log.js +91 -0
- package/dist/learning/experience-capture-middleware.js +24 -0
- package/dist/learning/experience-capture.d.ts +42 -0
- package/dist/learning/experience-capture.js +94 -4
- package/dist/learning/index.d.ts +4 -0
- package/dist/learning/index.js +8 -0
- package/dist/learning/opd-remediation.d.ts +55 -0
- package/dist/learning/opd-remediation.js +130 -0
- package/dist/learning/pattern-lifecycle.d.ts +12 -1
- package/dist/learning/pattern-lifecycle.js +18 -2
- package/dist/learning/pattern-store.d.ts +12 -4
- package/dist/learning/pattern-store.js +178 -19
- package/dist/learning/qe-hooks.d.ts +1 -0
- package/dist/learning/qe-hooks.js +30 -0
- package/dist/learning/qe-patterns.d.ts +6 -0
- package/dist/learning/qe-patterns.js +10 -1
- package/dist/learning/sqlite-persistence.d.ts +43 -0
- package/dist/learning/sqlite-persistence.js +237 -1
- package/dist/learning/token-tracker.js +4 -0
- package/dist/mcp/bundle.js +836 -48
- package/dist/mcp/handlers/core-handlers.d.ts +5 -0
- package/dist/mcp/handlers/core-handlers.js +11 -0
- package/dist/mcp/handlers/handler-factory.js +92 -11
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/tool-scoping.d.ts +36 -0
- package/dist/mcp/tool-scoping.js +129 -0
- package/dist/routing/routing-feedback.d.ts +5 -0
- package/dist/routing/routing-feedback.js +29 -3
- package/dist/sync/pull-agent.js +2 -1
- package/dist/test-scheduling/pipeline.d.ts +7 -0
- package/dist/test-scheduling/pipeline.js +9 -0
- package/package.json +1 -1
|
@@ -38,6 +38,17 @@ function exportBrain() {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
try {
|
|
41
|
+
// Checkpoint WAL to ensure all pending writes are flushed to main DB
|
|
42
|
+
try {
|
|
43
|
+
execSync(`sqlite3 "${DB_PATH}" "PRAGMA wal_checkpoint(TRUNCATE);"`, {
|
|
44
|
+
timeout: 10000,
|
|
45
|
+
encoding: 'utf-8',
|
|
46
|
+
});
|
|
47
|
+
log('WAL checkpoint completed');
|
|
48
|
+
} catch (walErr) {
|
|
49
|
+
log(`WAL checkpoint warning: ${walErr.message}`);
|
|
50
|
+
}
|
|
51
|
+
|
|
41
52
|
// Remove existing to avoid LockHeld errors
|
|
42
53
|
if (fs.existsSync(RVF_PATH)) {
|
|
43
54
|
fs.unlinkSync(RVF_PATH);
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,55 @@ All notable changes to the Agentic QE project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.7.16] - 2026-03-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Tier 3 baseline collection and instrumentation** — Collect benchmark baselines for all Tier 3 features and add Priority 2 instrumentation: routing tier tags, HNSW/FTS5 search latency tracking, token tracker auto-save, and pipeline step timers.
|
|
13
|
+
- **MCP persistence pipeline fix** — Wire `recordDomainFeedback` into the feedback loop (handler-factory Step 5d) so `test_outcomes` and `coverage_sessions` receive data from live MCP tool calls.
|
|
14
|
+
- **Quality feedback loop singleton** — `getQualityFeedbackLoop()` provides cross-module access to the feedback loop instance.
|
|
15
|
+
- **Experience embedding on capture** — Embedding computation now runs automatically when experiences are captured.
|
|
16
|
+
- **Routing tier tracking** — New `model_tier` column in `routing_outcomes` with tier inference for cost analysis.
|
|
17
|
+
- **Search latency instrumentation** — `performance.now()` timing added to HNSW search and FTS5 `searchFTS` for benchmarking.
|
|
18
|
+
- **Token metrics auto-persistence** — `TokenMetricsCollector` now saves to DB automatically on initialization.
|
|
19
|
+
- **Pipeline step latencies** — `TestSchedulingPipeline` results now include per-step timing data.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- **Critical: Test DB isolation** — Fixed `goap-planner.test.ts` and `q-value-persistence.test.ts` using relative `.agentic-qe/memory.db` paths that deleted the production database during test cleanup. Tests now use `os.tmpdir()`.
|
|
24
|
+
- **Critical: Project root cache leak** — `resetUnifiedMemory()` now calls `clearProjectRootCache()` to prevent stale path cache from redirecting tests to the production DB.
|
|
25
|
+
- **DB path safety redirect** — `UnifiedMemoryManager._doInitialize()` now detects and redirects when a test process (with `AQE_PROJECT_ROOT` set) tries to open a production `.agentic-qe/memory.db`.
|
|
26
|
+
- **`process.cwd()` DB path bypasses** — `pull-agent.ts` and `brain-handler.ts` now use `findProjectRoot()` instead of `process.cwd()` to resolve the DB path, respecting `AQE_PROJECT_ROOT`.
|
|
27
|
+
- **Optional native module graceful degradation** — FlashAttention and DecisionTransformer now degrade gracefully when native modules are unavailable.
|
|
28
|
+
- **WAL checkpoint before RVF export** — Brain checkpoint now runs a WAL checkpoint before RVF export to ensure data consistency.
|
|
29
|
+
|
|
30
|
+
## [3.7.15] - 2026-03-09
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Proof-of-Quality CLI command** — `aqe prove` generates verifiable quality attestations with SHA-256 hashes, proving that tests, coverage, and security checks were actually run.
|
|
35
|
+
- **OPD remediation hints** — Outcome-Pattern-Deviation engine now explains *why* a pattern failed and *how* to fix it ("bad because X, fix by Y").
|
|
36
|
+
- **Per-agent MCP tool scoping** — Agents can now be restricted to specific MCP tool subsets for security isolation and least-privilege enforcement.
|
|
37
|
+
- **Daily Markdown learning log** — Automatic audit trail of all learning activity per day, with session summaries and pattern metrics.
|
|
38
|
+
- **FTS5 hybrid search** — Full-text search virtual table combining vector similarity with text matching for more accurate pattern retrieval.
|
|
39
|
+
- **Binary reward assignment** — Outcome-based learning now uses clean +1/-1/0 rewards for sharper signal.
|
|
40
|
+
- **Temporal decay on search** — Search results now apply a 30-day half-life decay, surfacing recent patterns over stale ones.
|
|
41
|
+
- **Pre-compaction flush hook** — Prevents knowledge loss by flushing pending writes before database compaction.
|
|
42
|
+
- **Embedding backfill script** — `scripts/backfill-embeddings.mjs` fills in missing embeddings for legacy patterns.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- **Promotion threshold inconsistency** — Standardized pattern promotion threshold to 3 across all code paths.
|
|
47
|
+
- **Queen governance test flakiness** — Fixed singleton contamination in domain-handlers, handler-factory, and e2e test suites.
|
|
48
|
+
- **MCP server domain tool failures** — Resolved timeout and invocation failures in domain-scoped MCP tool tests.
|
|
49
|
+
- **Devil's advocate scoring** — Fixed FTS normalization, score capping, decay, and freshness calculations.
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- Coherence gate enabled by default for all learning sessions.
|
|
54
|
+
- Configurable promotion activity window replaces hardcoded 7-day window.
|
|
55
|
+
- 18,589 tests passing across 610 test files.
|
|
56
|
+
|
|
8
57
|
## [3.7.14] - 2026-03-08
|
|
9
58
|
|
|
10
59
|
### Added
|