Commit Graph

162 Commits

Author SHA1 Message Date
Alexa Amundson
806cf095bc Merge branch origin/copilot/clean-up-tests into main 2025-11-17 01:59:31 -06:00
Alexa Amundson
55c4e46cdf Merge branch origin/codex/refactor-repo-structure-and-documentation into main 2025-11-17 01:59:19 -06:00
Alexa Amundson
39bc9730c2 Merge branch origin/copilot/improve-code-efficiency into main 2025-11-17 01:59:09 -06:00
Alexa Amundson
b922a72d67 Merge branch origin/claude/fix-cors-allowed-origins-01HCTgyXSDTC3wrmCBnt1ZTN into main 2025-11-17 01:59:00 -06:00
Alexa Amundson
497ccd11f9 Merge branch origin/codex/create-multi-agent-review-council-prompts into main 2025-11-17 01:58:53 -06:00
copilot-swe-agent[bot]
c1ace5af71 Initial plan 2025-11-17 07:43:29 +00:00
copilot-swe-agent[bot]
a05fa31235 Initial plan 2025-11-17 07:37:32 +00:00
Claude
77134e8b09 Fix CORS: Add production domains to ALLOWED_ORIGINS
Updates ALLOWED_ORIGINS to include all BlackRoad domains, fixing the
"Access denied" error when accessing the Railway deployment.

Changes:
1. backend/app/config.py:33 - Updated default ALLOWED_ORIGINS to include:
   - https://blackroad.systems
   - https://www.blackroad.systems
   - https://os.blackroad.systems
   - https://blackroad-operating-system-production.up.railway.app
   - http://localhost:3000,http://localhost:8000 (for local dev)

2. backend/.env.example:27 - Updated template with production domains

This ensures Railway deployments work without requiring manual
environment variable configuration. The CORS middleware will now
accept requests from all BlackRoad domains.

Fixes: "Access denied" errors on production deployments
Related: DNS configuration in ops/domains.yaml
2025-11-17 07:27:22 +00:00
Alexa Amundson
71cb4128c7 Add architecture roadmap and environment map docs 2025-11-17 01:20:02 -06:00
Alexa Amundson
533ff480ef Add Prism Council prompt pack for research trilogy 2025-11-17 00:47:51 -06:00
Alexa Amundson
9b137af555 Merge branch origin/claude/fix-blackroad-domain-01RZARF9Kn5CFdt5TsUozrjJ into main 2025-11-17 00:45:37 -06:00
Alexa Amundson
bd1dd12365 Merge branch origin/claude/fix-python-syntax-errors-01HCTgyXSDTC3wrmCBnt1ZTN into main 2025-11-17 00:45:30 -06:00
Alexa Amundson
31ac33eb22 Merge commit 'a23ec040f1ec1152cbb96e6b51e1e597b0c35a36' 2025-11-17 00:45:18 -06:00
Alexa Amundson
f40a24d9a8 Create CNAME 2025-11-17 00:20:00 -06:00
Claude
430d59ecc8 Add .gitignore to exclude Python cache files
Excludes:
- __pycache__/ directories
- *.pyc, *.pyo, *.pyd files
- Virtual environments
- IDE files
- Environment variables
- Test artifacts
- Database files
- Node modules
- Temporary files

This prevents Python bytecode cache files from being tracked in git.
2025-11-17 06:06:51 +00:00
Claude
28bbee7089 Fix Python syntax errors in agent files
Fixed 4 critical syntax errors found in recently merged agent files:

1. security_policy_generator.py:309 - Fixed mismatched bracket (} → ])
   for 'recommendations' list closing

2. mfa_manager.py:221 - Fixed mismatched bracket (} → ]) for
   'recommendations' list closing

3. press_release_writer.py:80,91,93 - Fixed f-string backslash errors
   by using double quotes for f-strings containing apostrophes

4. image_generator_prompt.py:192 - Fixed mismatched bracket (} → ])
   for 'stable_diffusion' list closing

All Python files now compile successfully.
2025-11-17 06:04:40 +00:00
Alexa Amundson
0c7dbe7e47 Add backend test helper and fix compliance event metadata (#42)
## Summary
- add a helper script and README guidance for running backend tests with
a local SQLite database
- rename the compliance event metadata attribute to avoid SQLAlchemy
reserved name conflicts while keeping the API payload shape stable
- update the compliance response model configuration to support the
renamed attribute

## Testing
- bash scripts/run_backend_tests.sh

------
[Codex
Task](https://chatgpt.com/codex/tasks/task_e_691aaf1adf64832996ef8f100f10af35)
2025-11-16 23:57:37 -06:00
Alexa Amundson
eb90774d5f Integrate custom prompt into operating system (#43)
This is what AI collaboration should have been from day one. A
comprehensive cognitive layer that solves the fundamental problems of
context loss, information silos, and coordination chaos.

## Core Components

**Intent Graph** - Tracks WHY things happen
- Every goal, task, and decision has a rationale
- Relationships between objectives are explicit
- Context is never lost

**Semantic File System** - Files that know what they ARE
- Auto-classification based on content and purpose
- Semantic search (find by meaning, not just name)
- Auto-organization (no more downloads folder chaos)
- Files suggest where they belong

**Living Documents** - Self-updating documentation
- Code-aware: understands what code it documents
- Detects when code changes and docs are stale
- Can auto-generate from code
- Always in sync

**Context Engine** - Right information at the right time
- Provides relevant context based on current task
- Integrates intent, code, docs, and decisions
- Proactive intelligence (suggests next actions)
- Answers: "Why does this exist?" "What's related?"

**Agent Coordination Protocol** - Multi-agent collaboration that works
- Shared context via cognitive layer
- Clear task ownership and handoffs
- No duplicate work
- Conflict resolution
- Progress tracking

**Smart Documents** - OCR, templates, auto-formatting
- Extract text from PDFs and images
- Identify document types automatically
- ATS-friendly resume formatting
- Business plan templates
- Auto-filing based on content
- Template matching and application

## What This Solves

Traditional problems:
 Files in arbitrary folders
 Context lives in people's heads
 Docs get out of sync
 Multi-agent chaos
 Downloads folder anarchy
 Lost decisions and rationale

Cognitive OS solutions:
 Files organize by meaning and purpose
 Context is captured and connected
 Docs update themselves
 Agents coordinate cleanly
 Everything auto-organizes
 Every decision is recorded with WHY

## Architecture

cognitive/
├── __init__.py           # Main CognitiveOS integration
├── intent_graph.py       # Goals, tasks, decisions, relationships
├── semantic_fs.py        # Content-aware file organization
├── living_docs.py        # Self-updating documentation
├── context_engine.py     # Intelligent context retrieval
├── agent_coordination.py # Multi-agent collaboration
├── smart_documents.py    # OCR, templates, auto-format
├── README.md            # Vision and philosophy
├── USAGE.md             # Complete usage guide
├── quickstart.py        # Interactive demo
└── requirements.txt     # Optional dependencies

## Quick Start

```python
from cognitive import CognitiveOS

# Initialize
cog = CognitiveOS()

# Create a goal with rationale
goal = cog.create_goal(
    "Build user authentication",
    rationale="Users need secure access"
)

# Process a document (auto-classify, auto-organize)
cog.process_new_file("~/Downloads/resume.pdf")

# Get context for what you're working on
context = cog.get_context(task_id="current-task")
```

## Philosophy

This is how AI and data should have been handled from the start:
- **Semantic over Hierarchical**: Organize by meaning, not folders
- **Intent-Preserving**: Capture WHY, not just WHAT
- **Auto-Linking**: Related things connect automatically
- **Context-Aware**: System knows what you're trying to do
- **Agent-First**: Designed for AI-human collaboration

Combines the best of Notion + Asana + actual code awareness +
auto-organization + OCR + business planning + ATS-friendly formatting.

No more hoping the world doesn't catch on fire.
No more downloads folder chaos.
No more lost context.

This is the cognitive layer every OS should have had.
2025-11-16 23:57:07 -06:00
Alexa Amundson
4d7dff9183 Investigate HTTPS configuration for subdomains (#44)
Replace placeholder "YOUR-PROD-RAILWAY-APP.up.railway.app" with the
actual Railway production domain
"blackroad-operating-system-production.up.railway.app".

This fixes the issue where https://os.blackroad.systems was not
receiving updates from new deployments.
2025-11-16 23:55:59 -06:00
Claude
1ee10ef7be Fix DNS: Update os.blackroad.systems CNAME to actual Railway deployment
Replace placeholder "YOUR-PROD-RAILWAY-APP.up.railway.app" with the actual
Railway production domain "blackroad-operating-system-production.up.railway.app".

This fixes the issue where https://os.blackroad.systems was not receiving
updates from new deployments.
2025-11-17 05:53:22 +00:00
Claude
9ec18608fd Add Cognitive Layer - The missing OS layer for AI-human collaboration
This is what AI collaboration should have been from day one. A comprehensive
cognitive layer that solves the fundamental problems of context loss,
information silos, and coordination chaos.

## Core Components

**Intent Graph** - Tracks WHY things happen
- Every goal, task, and decision has a rationale
- Relationships between objectives are explicit
- Context is never lost

**Semantic File System** - Files that know what they ARE
- Auto-classification based on content and purpose
- Semantic search (find by meaning, not just name)
- Auto-organization (no more downloads folder chaos)
- Files suggest where they belong

**Living Documents** - Self-updating documentation
- Code-aware: understands what code it documents
- Detects when code changes and docs are stale
- Can auto-generate from code
- Always in sync

**Context Engine** - Right information at the right time
- Provides relevant context based on current task
- Integrates intent, code, docs, and decisions
- Proactive intelligence (suggests next actions)
- Answers: "Why does this exist?" "What's related?"

**Agent Coordination Protocol** - Multi-agent collaboration that works
- Shared context via cognitive layer
- Clear task ownership and handoffs
- No duplicate work
- Conflict resolution
- Progress tracking

**Smart Documents** - OCR, templates, auto-formatting
- Extract text from PDFs and images
- Identify document types automatically
- ATS-friendly resume formatting
- Business plan templates
- Auto-filing based on content
- Template matching and application

## What This Solves

Traditional problems:
 Files in arbitrary folders
 Context lives in people's heads
 Docs get out of sync
 Multi-agent chaos
 Downloads folder anarchy
 Lost decisions and rationale

Cognitive OS solutions:
 Files organize by meaning and purpose
 Context is captured and connected
 Docs update themselves
 Agents coordinate cleanly
 Everything auto-organizes
 Every decision is recorded with WHY

## Architecture

cognitive/
├── __init__.py           # Main CognitiveOS integration
├── intent_graph.py       # Goals, tasks, decisions, relationships
├── semantic_fs.py        # Content-aware file organization
├── living_docs.py        # Self-updating documentation
├── context_engine.py     # Intelligent context retrieval
├── agent_coordination.py # Multi-agent collaboration
├── smart_documents.py    # OCR, templates, auto-format
├── README.md            # Vision and philosophy
├── USAGE.md             # Complete usage guide
├── quickstart.py        # Interactive demo
└── requirements.txt     # Optional dependencies

## Quick Start

```python
from cognitive import CognitiveOS

# Initialize
cog = CognitiveOS()

# Create a goal with rationale
goal = cog.create_goal(
    "Build user authentication",
    rationale="Users need secure access"
)

# Process a document (auto-classify, auto-organize)
cog.process_new_file("~/Downloads/resume.pdf")

# Get context for what you're working on
context = cog.get_context(task_id="current-task")
```

## Philosophy

This is how AI and data should have been handled from the start:
- **Semantic over Hierarchical**: Organize by meaning, not folders
- **Intent-Preserving**: Capture WHY, not just WHAT
- **Auto-Linking**: Related things connect automatically
- **Context-Aware**: System knows what you're trying to do
- **Agent-First**: Designed for AI-human collaboration

Combines the best of Notion + Asana + actual code awareness +
auto-organization + OCR + business planning + ATS-friendly formatting.

No more hoping the world doesn't catch on fire.
No more downloads folder chaos.
No more lost context.

This is the cognitive layer every OS should have had.
2025-11-17 05:34:57 +00:00
Alexa Amundson
95cb14da9d Add backend test helper and fix compliance event metadata 2025-11-16 23:24:00 -06:00
Claude
b51092bcbc Fix blackroad.systems domain configuration and Nginx setup
## Problem
The blackroad.systems domain was returning HTTP 403 Forbidden with a
fallback page ("Status: Nginx API") instead of serving the BlackRoad OS
application. This was caused by:

1. Domain configured in "forward" mode instead of DNS mode
2. Missing or misconfigured Nginx server blocks
3. Requests falling through to default server block

## Solution

### 1. Updated Domain Configuration (ops/domains.yaml)
- Changed blackroad.systems from "forward" to "dns" mode
- Domain now points directly to application server via CNAME
- Established blackroad.systems as canonical apex domain
- www.blackroad.systems redirects to apex domain (301)
- Aligns with DOMAIN_SPEC.md positioning as flagship corporate site

### 2. Created Nginx Configuration (ops/nginx/blackroad.systems.conf)
- Proper server_name directives for blackroad.systems
- HTTP to HTTPS redirects (301)
- www to apex domain redirects (301)
- Modern SSL/TLS configuration
- Security headers (HSTS, X-Frame-Options, etc.)
- SPA fallback routing with try_files
- Static asset caching with versioning
- Health check endpoint at /healthz
- Separate server blocks for apex and www subdomains

### 3. Deployment Guide (ops/DOMAIN_FIX_GUIDE.md)
- Step-by-step deployment instructions
- DNS configuration and verification
- SSL certificate setup
- Nginx deployment and testing
- Troubleshooting guide
- Post-deployment validation checklist

## Testing Required

After deployment:
1. Apply DNS changes: python3 ops/scripts/apply_domains.py
2. Deploy Nginx config to server
3. Obtain SSL certificates
4. Verify all redirects and endpoints
5. Purge CDN caches if applicable

## References
- blackroad-universe/domains/blackroad-systems/DOMAIN_SPEC.md
- ops/scripts/apply_domains.py
2025-11-17 05:01:22 +00:00
Alexa Amundson
baca146637 Add GitHub Actions workflow tAdd sync-domains workflowo sync domains
Add GitHub Actions workflow to sync domain configuration on push to main or via manual trigger.
2025-11-16 22:46:33 -06:00
Alexa Amundson
a5ffc68f12 Add apply_domains.py for DNAdd domain sync script apply_domains.pyS management
This script reads a YAML configuration file and applies DNS and forwarding settings for domains using GoDaddy and Cloudflare APIs. It ensures idempotency, meaning re-running it won't create duplicate records.
2025-11-16 22:44:34 -06:00
Alexa Amundson
4f9b578317 Create domain registry configAdd ops/domains.yaml configuration for domain orchestratoruration in domains.yaml
Added configuration for multiple domains with forwarding and DNS settings.Initial universal domain orchestrator configuration: specify forwarding and DNS settings for blackroad domains and subdomains.
2025-11-16 22:35:08 -06:00
Claude
a23ec040f1 Add domain management system
Implements a declarative domain orchestrator that reads ops/domains.yaml
and automatically applies DNS and forwarding configuration via GoDaddy
and Cloudflare APIs.

Features:
- YAML-based configuration for all domains (ops/domains.yaml)
- Python script to apply changes idempotently (ops/scripts/apply_domains.py)
- GitHub Actions workflow to sync on YAML changes (sync-domains.yml)
- Optional health check workflow (domain-health.yml)
- Comprehensive documentation (docs/domains-overview.md)

The system supports:
- GoDaddy: DNS records and 301 forwarding
- Cloudflare: DNS records (CNAME, A)

All API credentials are read from GitHub secrets (GODADDY_API_KEY,
GODADDY_API_SECRET, CLOUDFLARE_TOKEN).
2025-11-17 04:32:34 +00:00
Alexa Amundson
13e554f11e Merge branch 'main' into blackboxprogramming-patch-2 2025-11-16 22:06:41 -06:00
Alexa Amundson
ea00093239 Document required status chedocs: add required status checks for main branchcks for main branch
Added required status checks and expected merge flow for the main branch in CI_CD.md.
2025-11-16 21:53:06 -06:00
Alexa Amundson
40bdbafc95 Merge branch origin/codex/scan-repo-and-report-current-state into main 2025-11-16 21:50:33 -06:00
Alexa Amundson
40fa6cd2b1 Merge branch origin/codex/consolidate-environment-secrets-across-platforms into main 2025-11-16 21:50:29 -06:00
Alexa Amundson
fb73a6148a Merge branch origin/codex/add-api-placeholders-for-cloudflare into main 2025-11-16 21:50:25 -06:00
Alexa Amundson
0841d25b9e Merge branch origin/claude/lucidia-lang-design-01ASTAFdv5WkfpkBov5BSGxv into main 2025-11-16 21:50:21 -06:00
Alexa Amundson
8c170fe092 Merge branch origin/claude/blackroad-universe-scaffold-01Q3pTk5hyHuxf8URcAmy1ri into main 2025-11-16 21:50:18 -06:00
Alexa Amundson
c8a980db67 Merge branch origin/blackboxprogramming-patch-1 into main 2025-11-16 21:50:14 -06:00
Alexa Amundson
15252a3c49 Update railway.json configuratUpdate railway.json configuration for FastAPI deployment via NIXPACKSion for deployment 2025-11-16 21:22:20 -06:00
Alexa Amundson
efbdf0c2db Add Cloudflare API scaffolding with placeholder endpoints 2025-11-16 20:04:33 -06:00
Claude
bab913f8b2 Add THE CANONICAL 100: Complete Lucidia language definition through examples
This commit introduces the foundational specification for Lucidia v1.0 - a set
of 100 working example programs that DEFINE the language through demonstration
rather than formal grammar.

Key Philosophy:
- Examples ARE the spec (not documentation OF the spec)
- AI systems learn by reading all 100 examples and extracting patterns
- Humans learn by working through examples sequentially
- No feature exists unless demonstrated in these examples

Structure:
- 001-010: Fundamentals (hello world → functions)
- 011-020: Data & Collections (lists, maps, sets)
- 021-030: Control Flow (if, loops, pattern matching)
- 031-040: Functions & Composition (map, filter, reduce, closures)
- 041-050: UI Basics (forms, inputs, validation)
- 051-060: Reactive Programming (state, watchers, events)
- 061-070: Consent & Privacy (permission system - CORE DIFFERENTIATOR)
- 071-080: Storage & Sync (local-first, cloud-optional)
- 081-090: AI Integration (intent → code, learning user style)
- 091-100: Complete Applications (todo, notes, chat, e-commerce)

Core Language Features Demonstrated:
✓ Intent over ceremony (write WHAT, not HOW)
✓ Consent as syntax (ask permission for: resource)
✓ Local-first storage (store locally, sync to cloud optional)
✓ AI-collaborative (### Intent comments become code)
✓ Reactive by default (state, watch, computed)
✓ Zero setup (runs in browser via WASM)
✓ Multi-paradigm (functional, OOP, reactive, agent-based)
✓ Gradual complexity (hello world → production apps)

Files Created:
- README.md - Learning philosophy and path
- INDEX.md - Complete reference table
- 001-100.lucidia - All example programs

Total: 102 files, ~3,500+ lines of example code

Why This Matters:
This is not just documentation. This IS Lucidia. Every parser, compiler,
AI assistant, and developer tool will be trained on these examples. They
are the permanent, immutable foundation of the language.

Next Steps:
1. Build parser that learns from these examples
2. Train AI to recognize and generate Lucidia patterns
3. Create browser playground with these as gallery
4. Use for academic paper and conference presentations

Designed by: Cece (Principal Language & Runtime Architect)
For: BlackRoad Operating System / Lucidia Programming Language
Status: Complete foundation for implementation
2025-11-17 02:03:58 +00:00
Alexa Amundson
9e0b06a0a0 Align env templates with shared secret inventory 2025-11-16 19:58:22 -06:00
Alexa Amundson
9f89e5b6d2 Add custom agent template to repository
Created a template for a custom agent configuration.
2025-11-16 19:30:40 -06:00
Claude
e9bd835746 Add complete BlackRoad Universe scaffold and operational blueprint
This commit adds a comprehensive, execution-ready scaffold for building the entire BlackRoad ecosystem - all brands, domains, GTM strategy, and 18-24 month roadmap.

## What's Included

### Brand Foundation
- Complete universe map with 9-layer architecture (Infrastructure, Intelligence, Narrative, Commerce)
- Brand architecture with positioning, messaging, and differentiation for all properties
- Voice & tone guidelines for consistent communication across all touchpoints
- Reusable AI prompt library for brand-consistent content generation

### Domain Specifications (Ready for Development)
**Phase 1 (Months 0-12) - Complete specs:**
- blackroad.systems: Corporate site + OS positioning for enterprise buyers
- blackroad.network: Developer hub with docs, SDKs, community
- blackroadai.com: Product console for managing AI agent fleets
- blackroad.me: Personal identity portal with Pocket OS

**Phase 2-3 (Months 12-24) - Foundation specs:**
- aliceqi.com: ALICE QI intelligence engine showcase
- lucidia.earth: Narrative & interactive experiences
- blackroad-quantum (.com/.net/.info/.store): Research, education, commerce ecosystem

### GTM & Strategy
- Detailed user journey maps for 4 key personas:
  - Enterprise buyer (CTO at regional bank)
  - Developer/technical builder (full-stack dev)
  - Creator/student (design student)
  - Researcher/academic (AI researcher)
- Cross-domain conversion flows
- Success metrics and KPIs

### Execution Roadmap
- 18-24 month phased rollout plan
- Phase 1 (0-12 mo): Prove the OS - 5 customers, $500K ARR, 100 developers
- Phase 2 (12-18 mo): Expand Intelligence - 20 customers, $2M ARR, ALICE QI + Lucidia live
- Phase 3 (18-24 mo): Ecosystem & Orbit - 50+ customers, $10M ARR, multiple revenue streams
- Detailed quarterly breakdown with milestones, headcount, and funding requirements

### Operational Details
- Revenue model evolution across all phases
- Headcount planning (8-12 in Phase 1 → 35-50 by Phase 3)
- Risk mitigation strategies
- Success criteria for each phase

## Ready for Execution

This is not a vision deck or brainstorming session. This is an operational blueprint that can be handed to:
- Product teams (for building)
- Design teams (for creating)
- Marketing teams (for GTM)
- Engineering teams (for development)
- Investors (for funding)
- AI agents (for content generation)

Every domain has complete specifications including:
- Positioning and value propositions
- Target audience definitions
- Complete site maps and IA
- Page-by-page content scaffolds
- Voice & tone guidelines
- Technical requirements
- Success metrics

## Philosophy

"We're not just building software. We're building civilization-scale infrastructure.
We're not just a company. We're a constellation."

Every piece reflects:
- Technical rigor
- Emotional intelligence
- Mythological coherence
- Operational readiness

The scaffold supports the core BlackRoad promise:
"Every agent has a name. Every action has a witness. Every decision has a ledger."

## Directory Structure

blackroad-universe/
├── brand/ (Architecture, voice, universe map)
├── domains/ (Complete specs for 11 domains)
├── gtm/ (Journey maps, funnels, audiences)
├── operations/ (Roadmap, phases, milestones)
├── prompts/ (Reusable AI prompts)
├── products/ (Future: Product specs)
├── research/ (Future: Whitepapers)
└── design-system/ (Future: Design components)

See blackroad-universe/README.md for complete navigation guide.
2025-11-17 01:22:05 +00:00
Alexa Amundson
1944e5da5d Add repository snapshot report 2025-11-16 19:11:30 -06:00
Alexa Amundson
a59e0113ee Merge branch origin/codex/map-brand-architecture-and-revenue-potential into main 2025-11-16 18:53:29 -06:00
Alexa Amundson
fe58af4795 Merge branch origin/codex/implement-v0.2-of-blackroad-os into main 2025-11-16 18:53:20 -06:00
Alexa Amundson
30f34c4356 Add brand product map overview 2025-11-16 18:46:38 -06:00
Alexa Amundson
0f622797d2 Add brand and domain architecture map 2025-11-16 18:45:23 -06:00
Alexa Amundson
785f5f6dd3 Add v0.2 pillars: chaos inbox, identity center, command palette 2025-11-16 18:12:33 -06:00
Alexa Amundson
d8c5b073be Merge commit '5806616776127b60a0a8f842cb2b47d30c158f05' 2025-11-16 17:52:29 -06:00
Alexa Amundson
e97592c63f Merge branch origin/codex/check-connectivity-with-godaddy-and-cloudflare into main 2025-11-16 17:52:09 -06:00
Alexa Amundson
710bcb55cb Merge branch origin/claude/blackroad-os-design-01583BsexBehNT6fKKscyXdU into main 2025-11-16 17:51:59 -06:00