Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
40fc760
Add Pauli Y and Z gates
blackboxprogramming Dec 3, 2025
bf9cfdc
docs: add research repository banner (#3)
blackboxprogramming Dec 11, 2025
3796f5a
Merge branch 'main' of git@github.com:blackboxprogramming/quantum-mat…
blackboxprogramming Dec 11, 2025
1a54528
docs: add research repository banner (#3)
blackboxprogramming Dec 11, 2025
6daefe9
Merge branch 'main' of git@github.com:blackboxprogramming/quantum-mat…
blackboxprogramming Dec 11, 2025
43cfa84
Merge branch 'main' of git@github.com:blackboxprogramming/quantum-mat…
blackboxprogramming Dec 11, 2025
1adcb62
🌌 BlackRoad OS, Inc. proprietary enhancement
Jan 9, 2026
afe9774
ci: add GitHub Actions workflows
Feb 14, 2026
747fbcb
ci: Bump actions/setup-node from 3 to 6
dependabot[bot] Feb 14, 2026
b104ccb
ci: Bump github/codeql-action from 3 to 4
dependabot[bot] Feb 14, 2026
adb5226
ci: Bump actions/github-script from 7 to 8
dependabot[bot] Feb 14, 2026
6a6b3f3
Add BlackRoad OS Proprietary License — universal jurisdiction
blackboxprogramming Feb 21, 2026
d98a64b
Update quantum_simulator.py
blackboxprogramming Feb 22, 2026
e784f9c
Update problems.md
blackboxprogramming Feb 22, 2026
6253615
Update requirements.txt
blackboxprogramming Feb 22, 2026
3db7fc5
Add K(t) contradiction amplification model
blackboxprogramming Feb 22, 2026
bb63ab4
Add Łukasiewicz trinary logic + TrinaryReasoner
blackboxprogramming Feb 22, 2026
7f22598
BlackRoad OS, Inc. Proprietary License — All Rights Reserved
blackboxprogramming Feb 24, 2026
a3091ce
legal: Deploy BlackRoad OS, Inc. Proprietary License v2
blackboxprogramming Feb 25, 2026
ba13d47
Merge pull request #8 from blackboxprogramming/dependabot/github_acti…
blackboxprogramming Mar 9, 2026
1032068
Merge pull request #4 from blackboxprogramming/codex/proceed-to-the-n…
blackboxprogramming Mar 9, 2026
651aa58
Merge pull request #7 from blackboxprogramming/dependabot/github_acti…
blackboxprogramming Mar 9, 2026
643f814
ci: Bump actions/checkout from 3 to 6
dependabot[bot] Mar 9, 2026
eff9a1e
Merge pull request #6 from blackboxprogramming/dependabot/github_acti…
blackboxprogramming Mar 9, 2026
8f9db7e
Merge pull request #5 from blackboxprogramming/dependabot/github_acti…
blackboxprogramming Mar 9, 2026
ba990ae
Rewrite README: quantum circuit simulator, Bell states, 10 unsolved p…
blackboxprogramming Mar 9, 2026
f411a8d
ci: add CI workflow
blackboxprogramming Mar 9, 2026
227ca97
ci: add Dockerfile
blackboxprogramming Mar 9, 2026
5534ebf
ci: add .dockerignore
blackboxprogramming Mar 9, 2026
e488f79
ci: bump actions/setup-python from 5 to 6
dependabot[bot] Mar 9, 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
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.git
.env
*.log
dist
__pycache__
.pytest_cache
.next
43 changes: 43 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 2
updates:
# npm dependencies
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 10
reviewers:
- "blackboxprogramming"
labels:
- "dependencies"
- "automated"
commit-message:
prefix: "chore"
include: "scope"

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 5
labels:
- "dependencies"
- "github-actions"
commit-message:
prefix: "ci"

# pip dependencies
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 10
labels:
- "dependencies"
- "python"
commit-message:
prefix: "chore"
115 changes: 115 additions & 0 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: 🚀 Auto Deploy

on:
push:
branches: [main, master]
workflow_dispatch:

env:
NODE_VERSION: '20'

jobs:
detect-service:
name: Detect Service Type
runs-on: ubuntu-latest
outputs:
service_type: ${{ steps.detect.outputs.service_type }}
deploy_target: ${{ steps.detect.outputs.deploy_target }}

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Detect Service Type
id: detect
run: |
if [ -f "next.config.mjs" ] || [ -f "next.config.js" ]; then
echo "service_type=nextjs" >> $GITHUB_OUTPUT
echo "deploy_target=cloudflare" >> $GITHUB_OUTPUT
elif [ -f "Dockerfile" ]; then
echo "service_type=docker" >> $GITHUB_OUTPUT
echo "deploy_target=railway" >> $GITHUB_OUTPUT
elif [ -f "package.json" ]; then
echo "service_type=node" >> $GITHUB_OUTPUT
echo "deploy_target=railway" >> $GITHUB_OUTPUT
elif [ -f "requirements.txt" ]; then
echo "service_type=python" >> $GITHUB_OUTPUT
echo "deploy_target=railway" >> $GITHUB_OUTPUT
else
echo "service_type=static" >> $GITHUB_OUTPUT
echo "deploy_target=cloudflare" >> $GITHUB_OUTPUT
fi

deploy-cloudflare:
name: Deploy to Cloudflare Pages
needs: detect-service
if: needs.detect-service.outputs.deploy_target == 'cloudflare'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy .next --project-name=${{ github.event.repository.name }}

deploy-railway:
name: Deploy to Railway
needs: detect-service
if: needs.detect-service.outputs.deploy_target == 'railway'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install Railway CLI
run: npm i -g @railway/cli

- name: Deploy to Railway
run: railway up --service ${{ github.event.repository.name }}
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

health-check:
name: Health Check
needs: [deploy-cloudflare, deploy-railway]
if: always() && (needs.deploy-cloudflare.result == 'success' || needs.deploy-railway.result == 'success')
runs-on: ubuntu-latest

steps:
- name: Wait for Deployment
run: sleep 30

- name: Check Health Endpoint
run: |
URL="${{ secrets.DEPLOY_URL }}/api/health"
curl -f $URL || exit 1

- name: Notify Success
if: success()
run: echo "✅ Deployment successful and healthy!"

- name: Notify Failure
if: failure()
run: |
echo "❌ Deployment health check failed!"
exit 1
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: pip install -r requirements.txt || true
- run: python -m pytest || true
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy to Cloudflare Pages

on:
push:
branches: [main, master]
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Brand Compliance Check
run: |
echo "🎨 Checking BlackRoad brand compliance..."
if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . \
--include="*.html" --include="*.css" --include="*.js" --include="*.jsx" --include="*.tsx" 2>/dev/null; then
echo "❌ FORBIDDEN COLORS FOUND! Must use official BlackRoad colors:"
echo " ✅ Hot Pink: #FF1D6C"
echo " ✅ Amber: #F5A623"
echo " ✅ Electric Blue: #2979FF"
echo " ✅ Violet: #9C27B0"
exit 1
fi
echo "✅ Brand compliance check passed"

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '18'

- name: Install dependencies
run: |
if [ -f "package.json" ]; then
npm install
fi

- name: Build
run: |
if [ -f "package.json" ] && grep -q '"build"' package.json; then
npm run build
fi

- name: Deploy to Cloudflare Pages
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
echo "🚀 Would deploy to Cloudflare Pages here"
echo " (Requires org secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)"
55 changes: 55 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 🔒 Security Scan

on:
push:
branches: [main, master, dev]
pull_request:
branches: [main, master]
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

permissions:
contents: read
security-events: write
actions: read

jobs:
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript', 'python']

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4

dependency-scan:
name: Dependency Scan
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Run npm audit
if: hashFiles('package.json') != ''
run: npm audit --audit-level=moderate || true

- name: Dependency Review
uses: actions/dependency-review-action@v4
if: github.event_name == 'pull_request'
86 changes: 86 additions & 0 deletions .github/workflows/self-healing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: 🔧 Self-Healing

on:
schedule:
- cron: '*/30 * * * *' # Every 30 minutes
workflow_dispatch:
workflow_run:
workflows: ["🚀 Auto Deploy"]
types: [completed]

jobs:
monitor:
name: Monitor Deployments
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Check Health
id: health
run: |
if [ ! -z "${{ secrets.DEPLOY_URL }}" ]; then
STATUS=$(curl -s -o /dev/null -w "%{http_code}" ${{ secrets.DEPLOY_URL }}/api/health || echo "000")
echo "status=$STATUS" >> $GITHUB_OUTPUT
else
echo "status=skip" >> $GITHUB_OUTPUT
fi

- name: Auto-Rollback
if: steps.health.outputs.status != '200' && steps.health.outputs.status != 'skip'
run: |
echo "🚨 Health check failed (Status: ${{ steps.health.outputs.status }})"
echo "Triggering rollback..."
gh workflow run auto-deploy.yml --ref $(git rev-parse HEAD~1)
env:
GH_TOKEN: ${{ github.token }}

- name: Attempt Auto-Fix
if: steps.health.outputs.status != '200' && steps.health.outputs.status != 'skip'
run: |
echo "🔧 Attempting automatic fixes..."
# Check for common issues
if [ -f "package.json" ]; then
npm ci || true
npm run build || true
fi

- name: Create Issue on Failure
if: failure()
uses: actions/github-script@v8
with:
script: |
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: '🚨 Self-Healing: Deployment Health Check Failed',
body: `Deployment health check failed.\n\nStatus: ${{ steps.health.outputs.status }}\nWorkflow: ${context.workflow}\nRun: ${context.runId}`,
labels: ['bug', 'deployment', 'auto-generated']
})

dependency-updates:
name: Auto Update Dependencies
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Node
if: hashFiles('package.json') != ''
uses: actions/setup-node@v6
with:
node-version: '20'

- name: Update npm dependencies
if: hashFiles('package.json') != ''
run: |
npm update
if [ -n "$(git status --porcelain)" ]; then
git config user.name "BlackRoad Bot"
git config user.email "bot@blackroad.io"
git add package*.json
git commit -m "chore: auto-update dependencies"
git push
fi
Loading
Loading