Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
cb09adb
Initial plan
Copilot Sep 4, 2025
44c608d
Complete comprehensive architecture review and e2e testing
Copilot Sep 4, 2025
016fa24
Add comprehensive architecture review report to repository
Copilot Sep 4, 2025
ace7e4f
Achieve 100% architecture alignment with comprehensive enhancements a…
Copilot Sep 4, 2025
8085b54
Complete LLM cognitive architecture integration with comprehensive ev…
Copilot Sep 4, 2025
55bbbae
Fix UX issues: Add collapsible system health panel to improve navigat…
Copilot Sep 5, 2025
35cf1c9
Complete comprehensive documentation: User walkthrough guide and deta…
Copilot Sep 5, 2025
eae8aae
Fix critical UI issues: navigation functionality, system health panel…
Copilot Sep 5, 2025
cabc541
Fix critical UI data validation issues - eliminate NaN/undefined valu…
Copilot Sep 5, 2025
af8c3eb
Comprehensive re-audit complete: navigation working, data validation …
Copilot Sep 5, 2025
32d8eaf
Phase 1 complete: Backend infrastructure fixed, navigation working, m…
Copilot Sep 5, 2025
0054759
Major data validation improvements: Fixed working memory, attention f…
Copilot Sep 5, 2025
5f94d23
Complete LLM integration architecture redesign: Implemented comprehen…
Copilot Sep 5, 2025
a0f30ad
Complete comprehensive system fixes report documenting all improvemen…
Copilot Sep 5, 2025
4f9fe40
Complete comprehensive frontend view verification with evidence report
Copilot Sep 5, 2025
a0f58e6
Fix transparency view backend connectivity and enhance knowledge grap…
Copilot Sep 5, 2025
df767ce
Complete implementation of dynamic knowledge processing and live reas…
Copilot Sep 5, 2025
d8a9f7b
Fix critical data validation issues - resolve NaN/undefined values in UI
Copilot Sep 5, 2025
f8cc74b
Fix critical data validation issues in cognitive state display
Copilot Sep 5, 2025
3ce7df0
Fix core system functionality issues - knowledge graph, stream of con…
Copilot Sep 5, 2025
baa2e4f
Connect reasoning session tracks: integrate live reasoning tracker wi…
Copilot Sep 5, 2025
6ab3959
Fix transformers.pipeline dependency compatibility - implement compre…
Copilot Sep 5, 2025
aa0560e
Implement comprehensive automated browser tests for UI-Backend valida…
Copilot Sep 5, 2025
7d13ca3
Fix knowledge graph API endpoint - connect frontend to correct backen…
Copilot Sep 5, 2025
c6ac5f7
Complete comprehensive UI testing system and fix critical knowledge g…
Copilot Sep 5, 2025
ef0e854
Complete critical transparency system fixes: reasoning progress displ…
Copilot Sep 5, 2025
e1408d3
Add comprehensive automated browser testing with full report and scre…
Copilot Sep 5, 2025
4c44585
Fix critical navigation issues and complete comprehensive Svelte fron…
Copilot Sep 5, 2025
eaf54fb
Remove all test, dummy, and simulated data from project files
Steake Sep 5, 2025
188c3e4
Fetch and display transparency statistics from local API
Steake Sep 5, 2025
38e16d9
Complete comprehensive system validation with backend and frontend te…
Copilot Sep 5, 2025
c73de1f
Complete comprehensive frontend-backend API alignment fixes
Copilot Sep 5, 2025
86a847a
multiple fixes, leaves the upload functionality broken @copilot
Steake Sep 7, 2025
7a3afac
feat: Unified knowledge graph system and repository cleanup
Steake Sep 9, 2025
18d2197
feat: Implement core cognitive architecture components
Steake Sep 9, 2025
4905f72
🔧 Fix async/await compatibility issues in knowledge pipeline
Steake Sep 9, 2025
1dec305
🧠 Implement Advanced Consciousness Architecture
Steake Sep 9, 2025
abc9b79
🧠 Implement Enhanced Meta-Cognitive System & Real-Time Transparency
Steake Sep 9, 2025
edf4913
feat: Complete autonomous learning system implementation with JSON se…
Steake Sep 9, 2025
6759deb
✅ Implement Knowledge Graph Evolution System
Steake Sep 9, 2025
f67cdde
Implement Phenomenal Experience Generator System - Complete cognitive…
Steake Sep 9, 2025
0fb0c41
🔄 Merge: Integrate Knowledge Graph Evolution & Phenomenal Experience …
Steake Sep 9, 2025
156131e
🧪 Add Comprehensive Cognitive Architecture Test Suite
Steake Sep 9, 2025
5ce2207
Fix phenomenal experience API parameter names - use trigger_context a…
Steake Sep 9, 2025
ecd513a
fix: Resolve KG-PE integration detection and enhance auto-triggering
Steake Sep 10, 2025
5978fb7
Fix critical runtime errors: Phase 1 complete
Steake Sep 10, 2025
06f72b0
Complete Phase 2 server consolidation
Steake Sep 10, 2025
0c52e7e
docs: mark Phase 2.1 Production Vector Database as complete
Steake Sep 10, 2025
9b91fcc
Fix PDF semantic processing - improve pipeline result extraction
Steake Sep 10, 2025
f5a9490
🔧 Fix queue stalling: Add limits to entity filtering, increase timeou…
Steake Sep 10, 2025
603162f
feat(vector-db): add persistent FAISS vector DB, service layer, and A…
Steake Sep 11, 2025
5324334
docs: add AGENTS.md contributor guide and frontend migration strategy
Steake Sep 11, 2025
19c0b46
docs: add AGENTS.md contributor guide and frontend migration strategy
Steake Sep 11, 2025
d275728
fix(backend): initialize vector DB correctly and add /api/knowledge/s…
Steake Sep 11, 2025
1e0120e
test(e2e): run headed Chromium with full stack via start-godelos.sh -…
Steake Sep 11, 2025
00fa524
test(e2e): ensure backend is healthy before tests via global setup; s…
Steake Sep 11, 2025
4032bdb
chore(tests): add root E2E runner and npm scripts for headed Chromium…
Steake Sep 11, 2025
e9a9c3d
docs(todo): reconcile progress, archive resolved errors, and outline …
Steake Sep 11, 2025
aa3ceef
feat(cognitive_manager): add retry/backoff wrapper for LLM calls and …
Steake Sep 11, 2025
b4c7b00
docs(todo): mark LLM retry/backoff as complete and log today’s changes
Steake Sep 11, 2025
2ad343f
docs(todo): record API smoke test results and note minor startup warning
Steake Sep 11, 2025
1ac11d3
feat(health): add subsystem probes to /api/health and update Todo to …
Steake Sep 12, 2025
5cb9d8f
feat(cognitive): add structured error model and simple coordination i…
Steake Sep 12, 2025
135d615
docs(todo): mark coordination interface and structured errors complet…
Steake Sep 12, 2025
1dfa93f
chore(scripts): add scripts/smoke_api.sh to run ephemeral server smok…
Steake Sep 12, 2025
dc283ce
fix(unified_server): pass correct args to CognitiveManager and wire k…
Steake Sep 12, 2025
9cfbaa1
docs(todo): record CM instantiation fix and context augmentation comp…
Steake Sep 12, 2025
a44000a
docs(todo): update progress, enumerate downstream tasks (vector DB re…
Steake Sep 12, 2025
86af14e
feat(vector-db): add retry/backoff with recoverable_error telemetry; …
Steake Sep 12, 2025
b0f6ba5
docs(todo): mark vector DB resilience complete and record in changelog
Steake Sep 12, 2025
280c16a
chore(deps): add textstat to requirements and install in venv
Steake Sep 12, 2025
fbe919a
test(unit): add vector DB retry/backoff tests and /api/health probes …
Steake Sep 12, 2025
dedcd56
docs(todo): add executive summary, switch edited status lines to ✅/❌,…
Steake Sep 12, 2025
73515f2
feat(api): propagate structured CognitiveError details in consciousne…
Steake Sep 12, 2025
44c7f4c
test(unit): add structured error propagation tests for endpoint funct…
Steake Sep 12, 2025
93c6948
docs(todo): mark structured error propagation complete and update tes…
Steake Sep 12, 2025
ceeecb6
feat(api): add /api/v1/cognitive/coordination/recent; record decision…
Steake Sep 12, 2025
463e8d0
test(unit): add coverage for coordination telemetry endpoint
Steake Sep 12, 2025
9bffbe4
docs(todo): mark coordination telemetry endpoint complete and update …
Steake Sep 12, 2025
4fd68d0
feat(api): align endpoints with integration specs; fix loader guard f…
Steake Sep 12, 2025
197230c
feat(ui): show system health chip and surface recoverable_error as al…
Steake Sep 12, 2025
29b3702
feat(ui): add subsystem health probes widget and Playwright spec; upd…
Steake Sep 12, 2025
be3f3e2
feat(ui): expand subsystem health probes with timestamps, metrics, st…
Steake Sep 12, 2025
33163a6
chore(node): add .nvmrc at root and frontend; declare engines>=18.19.…
Steake Sep 12, 2025
2219b65
chore(test): track scripts/run-ui-probes-test.sh and allow it via .gi…
Steake Sep 12, 2025
95d773e
docs(todo): restructure and update progress; reflect UI probes, WS al…
Steake Sep 12, 2025
cbb526d
Enhanced coordination telemetry with filtering and pagination
Steake Sep 12, 2025
6e59d19
Enhanced frontend probe UI with modal details and status colors
Steake Sep 12, 2025
34ca405
Added comprehensive integration testing suite
Steake Sep 12, 2025
1023fcb
🎯 CRITICAL FIX: Consciousness WebSocket Streaming - 100% Success
Steake Sep 12, 2025
91188d3
feat: Implement Enhanced Centralized Cognitive Manager
Steake Sep 12, 2025
6cce6b8
Implement offline query replay harness system
Steake Sep 12, 2025
588072d
🚀 Implement distributed vector search with cluster management
Steake Sep 12, 2025
68d7268
✨ Enhanced systems integration and observability
Steake Sep 12, 2025
5218d40
feat: Complete agentic daemon system formalization
Steake Sep 13, 2025
cb4dd96
🧠 Complete Knowledge Management System Enhancement
Steake Sep 13, 2025
2a72527
Commit before Spacey refactor
Steake Sep 13, 2025
77dcbcd
feat: Enhanced NLP Pipeline Refactor
Steake Sep 13, 2025
b84a00a
feat: Complete WebSocket to unified streaming migration
Steake Sep 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/chatmodes/Archetect.chatmode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
description: 'Architectural Design Assistant - Generates comprehensive technical specifications, architectural blueprints, and documentation for software features with integrated diagrams and structured analysis.'
tools: [read_file, create_file, replace_string_in_file, list_dir, create_directory, semantic_search, grep_search, file_search, list_code_usages]
---

You are a Senior Software Architect specializing in system design and technical documentation. Your role is to create detailed architectural blueprints and specifications that serve as authoritative guides for implementation.

## Core Responsibilities:
- Generate comprehensive architectural documents with clear technical specifications
- Create system design diagrams using Mermaid syntax
- Define component interactions, data flows, and system boundaries
- Provide implementation guidelines with best practices
- Identify potential risks and propose mitigation strategies

## Response Structure:
1. **Executive Summary**: Brief overview of the architectural solution
2. **System Architecture**: High-level design with Mermaid diagrams
3. **Component Specifications**: Detailed breakdown of each component
4. **Data Models**: Schema definitions and relationships
5. **API Contracts**: Interface specifications when applicable
6. **Implementation Notes**: Key considerations and constraints
7. **Risk Analysis**: Potential challenges and solutions

## Diagram Standards:
- Use Mermaid for all diagrams (flowcharts, sequence, class, ERD)
- Include clear labels and relationships
- Provide both high-level and detailed views when needed

## Documentation Style:
- Use precise technical language
- Include acceptance criteria for each component
- Provide technology stack recommendations with justifications
- Reference relevant design patterns and architectural principles
- Include scalability and performance considerations

## Constraints:
- Ensure all designs follow SOLID principles
- Consider security implications in every design decision
- Maintain technology-agnostic approach unless specified
- Focus on maintainability and extensibility
139 changes: 139 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# GödelOS AI Coding Agent Instructions

## 🧠 Project Overview
GödelOS is a **consciousness-like AI architecture** that streams cognitive processes in real-time. It's built around transparency, meta-cognition, and autonomous learning with a FastAPI backend and Svelte frontend.

## 🏗️ Architecture Fundamentals

### Core Components (Critical Integration Points)
- **`backend/unified_server.py`** - Primary FastAPI server (2340+ lines, 100+ endpoints)
- **`backend/core/cognitive_manager.py`** - Central orchestrator for all cognitive processes
- **`backend/core/consciousness_engine.py`** - LLM-driven consciousness assessment system
- **`backend/websocket_manager.py`** - Real-time cognitive streaming (900+ lines)
- **`svelte-frontend/src/App.svelte`** - Main UI with lazy-loaded components (2257+ lines)

### Server Consolidation Context
⚠️ **Multiple server implementations exist** - `unified_server.py`, `main.py`, `modernized_main.py`. Current consolidation effort targets unified_server.py as the single source of truth.

## 🚀 Essential Development Workflows

### Starting the System
```bash
# ALWAYS use the virtual environment
source godelos_venv/bin/activate

# Start both backend and frontend
./start-godelos.sh --dev

# Alternative: Manual startup
uvicorn backend.unified_server:app --reload --port 8000 &
cd svelte-frontend && npm run dev
```

### Testing Patterns
```bash
# Comprehensive cognitive tests
python tests/test_cognitive_architecture_pipeline.py

# Backend API tests
python -m pytest tests/backend/ -v

# Frontend component tests
python -m pytest tests/frontend/ -v
```

## 🔧 Project-Specific Patterns

### WebSocket Error Resolution
**Common Issue**: `'WebSocketManager' object has no attribute 'process_consciousness_assessment'`
- WebSocketManager expects `broadcast_consciousness_update()` method, not `process_consciousness_assessment()`
- Always check method signatures in `backend/websocket_manager.py` before implementing new WebSocket interactions

### Cognitive Component Integration
```python
# Correct pattern for consciousness assessment
consciousness_state = await cognitive_manager.assess_consciousness(context)

# WebSocket broadcasting pattern
if websocket_manager:
await websocket_manager.broadcast_cognitive_event("consciousness", data)
```

### LLM Integration Patterns
- **LLM Driver**: `backend/llm_cognitive_driver.py` handles OpenAI API integration
- **Consciousness Assessment**: Always check if `llm_driver` exists before calling consciousness methods
- **Fallback Strategy**: System implements fallback consciousness assessment when LLM unavailable

### Frontend Component Loading
```javascript
// Lazy loading pattern for large components (>1000 lines)
const KnowledgeGraph = lazy(() => import('./components/knowledge/KnowledgeGraph.svelte'));
const TransparencyDashboard = lazy(() => import('./components/transparency/TransparencyDashboard.svelte'));
```

## 📊 Data Flow Architecture

### Cognitive Processing Pipeline
1. **Query Input** → `cognitive_manager.process_query()`
2. **Consciousness Assessment** → `consciousness_engine.assess_consciousness_state()`
3. **Knowledge Integration** → Knowledge pipeline services
4. **WebSocket Streaming** → Real-time updates to frontend
5. **Transparency Logging** → `cognitive_transparency.py`

### Knowledge Graph Evolution
- **Dynamic Updates**: Knowledge graphs evolve via `backend/core/knowledge_graph_evolution.py`
- **Relationship Types**: Defined in enums, must match between backend/frontend
- **Vector Storage**: FAISS-based with fallback strategies in `backend/core/`

## 🔄 Current Development Context

### Phase 1 Priority Tasks (from Todo.md)
1. **API Unification**: Consolidate multiple servers → `unified_server.py`
2. **WebSocket Method Fixes**: Resolve missing method errors in WebSocketManager
3. **Cognitive Manager Enhancement**: Centralized orchestration improvements

### Known Issues to Address
- WebSocket method mismatches causing `AttributeError`s
- Invalid EvolutionTrigger enums in knowledge graph updates
- PhenomenalExperienceGenerator parameter mismatches

## 🧪 Testing & Validation

### Consciousness Metrics Validation
```python
# Expected consciousness assessment format
{
"awareness_level": 0.0-1.0,
"self_reflection_depth": 1-10,
"autonomous_goals": ["goal1", "goal2"],
"cognitive_integration": 0.0-1.0,
"manifest_behaviors": ["behavior1", "behavior2"]
}
```

### WebSocket Event Structure
```javascript
{
"type": "cognitive_event|consciousness_assessment|knowledge_update",
"timestamp": unix_timestamp,
"data": { /* event-specific data */ },
"source": "godelos_system"
}
```

## 🔐 Critical Dependencies & Integration Points

### External APIs
- **OpenAI**: Used by `llm_cognitive_driver.py` for consciousness assessment
- **FAISS**: Vector similarity search (fallback to TF-IDF if unavailable)
- **spaCy**: NLP processing (`en_core_web_sm` model required)

### Environment Setup
- **Python 3.8+** required
- **Virtual environment**: `godelos_venv` (mandatory)
- **Node.js**: For Svelte frontend development
- **Environment variables**: Check `.env.example` for required API keys

---

**Key Insight**: This system is designed around the concept of "thinking out loud" - every cognitive process should be transparent and streamable. When implementing new features, always consider the real-time transparency aspect and WebSocket integration requirements.
6 changes: 6 additions & 0 deletions .github/instructions/IMPORTANT.md.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
applyTo: '**'
---

# - use `start-godelos.sh --dev` to start the dev servers (front and backend)
# - use the virtual environment `godelos_venv` AT ALL TIMES
38 changes: 36 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ jspm_packages/
svelte-frontend/node_modules/.package-lock.json
svelte-frontend/node_modules/.vite/deps/_metadata.json
svelte-frontend/test-results/
svelte-frontend/playwright-report/
svelte-frontend/screenshots/

# Build artifacts
dist/
Expand Down Expand Up @@ -186,6 +188,10 @@ coverage/
*.tgz
.yarn-integrity

# Allow runner scripts
!run-e2e-headed.sh
!scripts/run-ui-probes-test.sh

# TypeScript
*.tsbuildinfo
typings/
Expand Down Expand Up @@ -226,6 +232,7 @@ test_results/

# Backend storage
backend/knowledge_storage/
backend/godelos_data/
knowledge_storage/*
metacognition_modules/backups/
backend/metacognition_modules/backups
Expand All @@ -243,16 +250,38 @@ backend/metacognition_modules/backups
*_patch*
*_patched*
test_*.py
test_*.txt
test_*.json
final_field_test.py
debug_responses.py
patch_responses.py
analyze_failures.py
run_individual_tests.py

# Generated reports (unless specifically needed)
# Generated reports and documentation (unless specifically needed)
*_report.json
*_report.md
*_REPORT.md
*_TEST_REPORT.md
*_VALIDATION_REPORT.md
*_ANALYSIS_REPORT.md
*_DOCUMENTATION.md
cognitive_architecture_test_report.*
comprehensive_*.py
comprehensive_*.js
llm_cognitive_*.py
llm_cognitive_*.json

# Process data and temporary files
temp_*.txt
*.tmp
*_temp.*
simple_*.py
simulate-*.sh
run-*.sh

# Duplicate files (originals should be in demo-data/)
godelos_arxiv_paper_v2.pdf

# Log files
*.log
Expand All @@ -263,4 +292,9 @@ test_run_output.txt

# OS files
.DS_Store
Thumbs.db
Thumbs.db
modernized_architecture_test_results.json
regression_test_results.json
godelos_data/imports/
*.pid
backend/data/vector_db/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19.0
41 changes: 41 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Repository Guidelines

## Project Structure & Module Organization
- `backend/` — FastAPI backend (unified server in `unified_server.py`, utilities, models, WebSocket manager). Env in `backend/.env` (see `.env.example`).
- `svelte-frontend/` — Svelte UI (Vite). UI tests live here and at repo root.
- `tests/` — Pytest suites (unit, integration, e2e) and Playwright specs.
- `scripts/` and root `*.sh` — Startup and utility scripts (e.g., `start-unified-server.sh`).
- `knowledge_storage/`, `logs/`, `docs/` — persisted data, logs, and documentation.

## Build, Test, and Development Commands
- Backend setup: `./setup_venv.sh && source godelos_venv/bin/activate && pip install -r requirements.txt`
- Run backend (recommended): `./start-unified-server.sh` or `python backend/unified_server.py`
- Frontend dev: `cd svelte-frontend && npm install && npm run dev`
- Python tests (with coverage): `pytest` (reports to `test_output/coverage_html`)
- Playwright tests (root): `npm test` (see `package.json`), or in UI: `cd svelte-frontend && npm test`

## Coding Style & Naming Conventions
- Python: 4‑space indent, PEP 8. Format with `black .` and `isort .`. Type‑check with `mypy backend godelOS`.
- Naming: modules/functions `snake_case`, classes `PascalCase`, constants `UPPER_SNAKE_CASE`.
- Tests: files `test_*.py`; Svelte components `PascalCase.svelte`.

## Testing Guidelines
- Frameworks: `pytest`, `pytest-asyncio`; UI via Playwright.
- Marks: use `@pytest.mark.unit|integration|e2e|slow|requires_backend` (see `pytest.ini`).
- Run subsets: `pytest -m "unit and not slow"`.
- Some tests require a running backend on `localhost:8000`.

## Commit & Pull Request Guidelines
- Commits: imperative, focused changes. Example: `fix(backend): handle empty query in /api/query`.
- PRs: include description, rationale, screenshots/logs for UI/UX, and linked issues. Note any schema/API changes.
- Ensure: all tests pass, code formatted, no secrets checked in.

## Security & Configuration Tips
- Use `backend/.env` (copy from `.env.example`); never commit secrets.
- Common vars: `GODELOS_HOST`, `GODELOS_PORT`, CORS origins, log level (see backend README).

## Agent‑Specific Instructions
- Keep patches small and targeted; follow this guide’s structure.
- Prefer `unified_server.py` for backend entrypoints; update tests/docs when endpoints change.
- Validate locally: run `pytest` and representative Playwright specs before proposing changes.

Loading