Initial commit: Agent Governance System Phase 8
Phase 8 Production Hardening with complete governance infrastructure: - Vault integration with tiered policies (T0-T4) - DragonflyDB state management - SQLite audit ledger - Pipeline DSL and templates - Promotion/revocation engine - Checkpoint system for session persistence - Health manager and circuit breaker for fault tolerance - GitHub/Slack integrations - Architectural test pipeline with bug watcher, suggestion engine, council review - Multi-agent chaos testing framework Test Results: - Governance tests: 68/68 passing - E2E workflow: 16/16 passing - Phase 2 Vault: 14/14 passing - Integration tests: 27/27 passing Coverage: 57.6% average across 12 phases Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+70
@@ -0,0 +1,70 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Run All Governance System Tests
|
||||
# ================================
|
||||
# Runs both Python and Bun/TypeScript test suites
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
GOVERNANCE_DIR="${SCRIPT_DIR}/.."
|
||||
|
||||
# Colors
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo ""
|
||||
echo -e "${BLUE}╔══════════════════════════════════════════════════════════╗${NC}"
|
||||
echo -e "${BLUE}║ AGENT GOVERNANCE SYSTEM - FULL TEST SUITE ║${NC}"
|
||||
echo -e "${BLUE}╚══════════════════════════════════════════════════════════╝${NC}"
|
||||
echo ""
|
||||
|
||||
# Track results
|
||||
PYTHON_RESULT=0
|
||||
BUN_RESULT=0
|
||||
|
||||
# Run Python tests
|
||||
echo -e "${BLUE}Running Python tests...${NC}"
|
||||
echo ""
|
||||
cd "${SCRIPT_DIR}/governance"
|
||||
python3 test_all.py || PYTHON_RESULT=$?
|
||||
|
||||
echo ""
|
||||
|
||||
# Run Bun tests
|
||||
echo -e "${BLUE}Running Bun/TypeScript tests...${NC}"
|
||||
echo ""
|
||||
cd "${SCRIPT_DIR}/governance"
|
||||
bun run test_all.ts || BUN_RESULT=$?
|
||||
|
||||
# Summary
|
||||
echo ""
|
||||
echo -e "${BLUE}╔══════════════════════════════════════════════════════════╗${NC}"
|
||||
echo -e "${BLUE}║ FINAL RESULTS ║${NC}"
|
||||
echo -e "${BLUE}╚══════════════════════════════════════════════════════════╝${NC}"
|
||||
echo ""
|
||||
|
||||
if [ $PYTHON_RESULT -eq 0 ]; then
|
||||
echo -e " Python Tests: ${GREEN}PASSED${NC}"
|
||||
else
|
||||
echo -e " Python Tests: ${RED}FAILED${NC}"
|
||||
fi
|
||||
|
||||
if [ $BUN_RESULT -eq 0 ]; then
|
||||
echo -e " Bun/TS Tests: ${GREEN}PASSED${NC}"
|
||||
else
|
||||
echo -e " Bun/TS Tests: ${RED}FAILED${NC}"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
if [ $PYTHON_RESULT -eq 0 ] && [ $BUN_RESULT -eq 0 ]; then
|
||||
echo -e "${GREEN}All test suites passed!${NC}"
|
||||
exit 0
|
||||
else
|
||||
echo -e "${RED}Some test suites failed!${NC}"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user