Skip to content
Open

Abjt #36

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7f5c744
doc(readme): update team name
abjt01 Apr 15, 2026
4ac3cbf
Initial project setup with engine implementation and configuration files
abjt01 Apr 15, 2026
0176300
Update engine main module
abjt01 Apr 15, 2026
ac23675
Add tests and pytest configuration for engine
abjt01 Apr 15, 2026
2c19458
Initialize backend module with Go setup
abjt01 Apr 15, 2026
2608a8a
Add frontend development configuration and dependencies
abjt01 Apr 16, 2026
b0df870
Update Go dependencies
abjt01 Apr 16, 2026
cd35714
Add database layer and migrations
abjt01 Apr 16, 2026
dff61fd
Add database models and schemas
abjt01 Apr 16, 2026
da5cdeb
Add middleware for authentication and request handling
abjt01 Apr 16, 2026
b01bf00
Add server-sent events for real-time updates
abjt01 Apr 16, 2026
e5acc1e
Add HTTP request handlers for API endpoints
abjt01 Apr 16, 2026
b7c9518
Add engine integration module
abjt01 Apr 16, 2026
95bf3c5
Update server initialization with new components
abjt01 Apr 16, 2026
b0745bf
Refactor database layer architecture
abjt01 Apr 16, 2026
8bf9a55
Add vault system for incident memory management
abjt01 Apr 16, 2026
8a07b21
Add store system for application state
abjt01 Apr 16, 2026
cf94c50
Update server initialization and configuration
abjt01 Apr 16, 2026
8bff1cb
Update API handlers and data models
abjt01 Apr 16, 2026
4ec7ff9
Restructure and improve incident detection engine
abjt01 Apr 16, 2026
c939a76
Update engine configuration and remove deprecated tests
abjt01 Apr 16, 2026
a69d93c
Add Docker configuration for engine service
abjt01 Apr 16, 2026
877081f
Update UI components and test suite
abjt01 Apr 16, 2026
5cde02f
Update pages, layouts, and client utilities
abjt01 Apr 16, 2026
5f4d141
Refactor frontend styling, dependencies, and remove deprecated RL met…
abjt01 Apr 16, 2026
45aa64f
Add memory vault storage and configuration
abjt01 Apr 16, 2026
0a7cc49
Remove deprecated database migration files
abjt01 Apr 16, 2026
7efb459
Backend Refactored
HESleagacy Apr 16, 2026
b90e84d
Added .gitignore
HESleagacy Apr 16, 2026
6596dee
Implemented Docker Build
HESleagacy Apr 16, 2026
1fe7b90
Update environment configuration templates
abjt01 Apr 16, 2026
89f7f62
Refactor server initialization and configuration
abjt01 Apr 16, 2026
6b69b86
Update data models for incident and vault structures
abjt01 Apr 16, 2026
e5f29af
Enhance API handlers for approvals, callbacks, incidents, and webhooks
abjt01 Apr 16, 2026
0c08b9a
Improve vault reader for memory retrieval
abjt01 Apr 16, 2026
47d04e1
Update store and engine client integration
abjt01 Apr 16, 2026
e00f645
Refactor engine main module and remove deprecated tests
abjt01 Apr 16, 2026
b4a95ad
Update engine Python dependencies
abjt01 Apr 16, 2026
f72274c
Enhance incident detection and response agents
abjt01 Apr 16, 2026
9f25788
Improve LangGraph orchestration pipeline
abjt01 Apr 16, 2026
47059b5
Update engine configuration and type definitions
abjt01 Apr 16, 2026
e3eed8b
Add Notion and Slack integrations
abjt01 Apr 16, 2026
d903582
Add vault store and Groq API pool management
abjt01 Apr 16, 2026
570d653
Update dashboard and incident detail pages
abjt01 Apr 16, 2026
89bbbc5
Add agent timeline and sandbox result card components
abjt01 Apr 16, 2026
0ec16fe
Update API client, hooks, and TypeScript types
abjt01 Apr 16, 2026
3014159
Update E2E tests and TypeScript build cache
abjt01 Apr 16, 2026
9aa8178
Add Docker Compose, Makefile, and Pyright configuration
abjt01 Apr 16, 2026
269f099
Merge origin/main into abjt, keeping abjt branch changes
Copilot Apr 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# ─────────────────────────────────────────────────────────────────────────────
# REKALL — Environment Variables Template
# Copy this file to .env and fill in your values.
# Never commit .env to version control.
#
# Architecture: DB-free, flat-file vault (no PostgreSQL, no ChromaDB required)
# ─────────────────────────────────────────────────────────────────────────────


# ── LLM (required) ────────────────────────────────────────────────────────────
# Groq — free tier at console.groq.com (no billing required)
# Used by all agents and the RLM REPL reasoning engine.
#
# Key rotation (recommended for heavy use / demo):
# Add up to 10 keys — the engine round-robins and skips 429'd keys automatically.
# Option A: numbered keys
GROQ_API_KEY=gsk_...
# GROQ_API_KEY_2=gsk_...
# GROQ_API_KEY_3=gsk_...
# Option B: comma-separated list (takes precedence if set)
# GROQ_API_KEYS=gsk_key1,gsk_key2,gsk_key3


# ── Flat-file Vault ───────────────────────────────────────────────────────────
# Path to the vault directory.
# Docker: /app/vault (mounted via docker-compose volume)
# Local dev: vault (relative to repo root — the default)
VAULT_PATH=vault


# ── Service URLs ──────────────────────────────────────────────────────────────
# Go backend — Python engine POSTs callback events here
GO_BACKEND_URL=http://localhost:8000
# Python engine — Go backend triggers pipeline here
ENGINE_URL=http://localhost:8002


# ── Go Backend ────────────────────────────────────────────────────────────────
PORT=8000
GIN_MODE=debug
CORS_ORIGINS=http://localhost:3000


# ── Python Engine ─────────────────────────────────────────────────────────────
LOG_LEVEL=INFO


# ── Org Vault (optional) ──────────────────────────────────────────────────────
# Enable cross-repo shared memory (vault/org/ directory)
ORG_VAULT_ENABLED=false


# ── Simulation Sandbox (optional) ─────────────────────────────────────────────
# Run counterfactual dry-run between Fix and Governance agents
SIMULATION_ENABLED=false


# ── Integrations (optional) ───────────────────────────────────────────────────
# Set INTEGRATIONS_ENABLED=true to activate Slack and Notion logging.
INTEGRATIONS_ENABLED=false

# Slack — incoming webhook URL for governance and outcome notifications
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...

# Notion — log every incident to a Notion database
NOTION_TOKEN=secret_...
NOTION_DATABASE_ID=...


# ── Frontend ──────────────────────────────────────────────────────────────────
# URL the browser uses to reach the Go backend API
NEXT_PUBLIC_API_URL=http://localhost:8000


# ── GitHub Live PR Integration (production only) ──────────────────────────────
# In demo mode (default), PR creation is simulated — no GitHub API calls made.
# The orchestrator emits a "Pull request opened" trace event to the UI only.
#
# Set GITHUB_LIVE_PR=true to enable real PR creation via PyGithub:
# pip install PyGithub (add to engine/requirements.txt)
# The orchestrator's execute step will:
# 1. git branch auto-fix-{incident_id[:8]}
# 2. Commit fix_commands as .rekall/fix-{id}.sh
# 3. Call repo.create_pull() and log the PR URL
#
# GITHUB_TOKEN: fine-grained PAT with repo → Contents (write) + Pull requests (write)
GITHUB_TOKEN=ghp_your_actual_token_here
GITHUB_REPO=abjt01/sample-ci-sad
GITHUB_LIVE_PR=true


# ── Minikube Sandbox (optional) ───────────────────────────────────────────────
# When SANDBOX_ENABLED=true, REKALL deploys each fix into an ephemeral Minikube
# namespace, runs the CI test suite, validates the fix works, and only THEN
# raises the GitHub PR — with test evidence attached to the PR body.
#
# Requires: minikube + kubectl on PATH inside the engine container (or host).
# Set to false for demo mode: sandbox is simulated (no real k8s calls).
#
SANDBOX_ENABLED=false

# Minikube cluster settings (only used when SANDBOX_ENABLED=true)
MINIKUBE_PROFILE=rekall # minikube profile name
MINIKUBE_CPUS=4 # CPUs allocated to Minikube
MINIKUBE_MEMORY=8192 # MB of RAM for Minikube

# Sandbox runtime limits
SANDBOX_TIMEOUT=300 # Max seconds for sandbox validation

# Valkey image used for Redis-dependent services inside the sandbox namespace
SANDBOX_VALKEY_IMAGE=valkey/valkey:7.2-alpine
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# ─────────────────────────────────────────────
# REKALL — .gitignore
# ─────────────────────────────────────────────

# Environment
.env
.env.local
.env.*.local

# ── Go ───────────────────────────────────────
backend/bin/
backend/coverage.out
backend/coverage.html
*.exe
*.test
.gocache/
.gomodcache/

# ── Python ───────────────────────────────────
__pycache__/
*.py[cod]
*.pyo
*.pyd
.Python
*.egg-info/
dist/
build/
.eggs/
.venv/
venv/
env/
.pytest_cache/
.mypy_cache/
.ruff_cache/
htmlcov/
.coverage
*.cover

# ── Node / Next.js ───────────────────────────
frontend/node_modules/
frontend/.next/
frontend/out/
frontend/.vercel/
frontend/playwright-report/
frontend/test-results/
frontend/coverage/

# ── ChromaDB ─────────────────────────────────
chroma_data/
.chroma/

# ── Docker ───────────────────────────────────
*.log

# ── OS ───────────────────────────────────────
.DS_Store
Thumbs.db

# ── IDE ──────────────────────────────────────
.idea/
.vscode/
*.swp
*.swo
Loading