Files
proffesor-for-testing__agen…/v2/scripts/monitor-stabilization.sh
Profa fd2f37eaa0 fix(v3): update README claims and init hooks to use correct package name
Changes:
- Fix README.md agent counts (48 QE agents = 41 main + 7 subagents)
- Fix README.md skill counts (15 QE-specific skills)
- Fix v3/README.md agent counts (47 → 48)
- Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe'
- Complete v2 → v2/ folder reorganization (54 items moved)
- Update root package.json to point to v3 as main version

Verified claims:
- 48 QE agents (41 main + 7 TDD subagents)
- 15 QE-specific skills
- 12 DDD bounded contexts
- ~5,600+ tests
- HNSW, ReasoningBank, Queen Coordinator features exist

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 18:03:40 +00:00

54 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Continuous monitoring script for test stabilization
# Usage: ./scripts/monitor-stabilization.sh [interval_minutes]
INTERVAL_MINUTES=${1:-3}
INTERVAL_SECONDS=$((INTERVAL_MINUTES * 60))
echo "🚀 Starting Stabilization Monitoring"
echo "📊 Interval: ${INTERVAL_MINUTES} minutes"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
CYCLE=0
while true; do
CYCLE=$((CYCLE + 1))
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
echo "🔄 Validation Cycle #${CYCLE} - ${TIMESTAMP}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Run validation
npx ts-node scripts/stabilization-validator.ts single
# Check if Tier 1 is achieved
TIER1_MET=$(node -e "
const { SwarmMemoryManager } = require('./dist/core/memory/SwarmMemoryManager.js');
const path = require('path');
async function check() {
const dbPath = path.join(process.cwd(), '.swarm/memory.db');
const memory = new SwarmMemoryManager(dbPath);
await memory.initialize();
const tier1 = await memory.retrieve('aqe/stabilization/tier1-check', { partition: 'coordination' });
await memory.close();
console.log(tier1?.met ? 'true' : 'false');
}
check().catch(() => console.log('false'));
" 2>/dev/null)
if [ "$TIER1_MET" = "true" ]; then
echo ""
echo "🎉 TIER 1 ACHIEVED! Monitoring complete."
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
exit 0
fi
echo ""
echo "⏱️ Next validation in ${INTERVAL_MINUTES} minutes..."
echo ""
sleep $INTERVAL_SECONDS
done