Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
966b70d
docs: archive Utopia Architecture.md
sinethxyz Sep 23, 2026
fe72c3a
docs: move Utopia Architecture.md into history
sinethxyz Sep 23, 2026
0c4853c
docs: archive Utopia Formal Architecture DB etc.md
sinethxyz Sep 23, 2026
5b37a53
docs: move Utopia Formal Architecture DB etc.md into history
sinethxyz Sep 23, 2026
f1f146c
docs: define cleaned neurocognitive architecture
sinethxyz Sep 23, 2026
1a7bd5b
docs: add Neurocognitive System RFC
sinethxyz Sep 23, 2026
4ebf983
docs: separate observation evidence and inference
sinethxyz Sep 23, 2026
840c92a
docs: map historical terminology
sinethxyz Sep 23, 2026
e245d3c
docs: add history index
sinethxyz Sep 23, 2026
bb4a038
docs: record static audit
sinethxyz Sep 23, 2026
09cb245
docs: document historical trust boundary
sinethxyz Sep 23, 2026
0ff6d8d
docs: clean Neurocognitive System README
sinethxyz Sep 23, 2026
4b07fc0
build: align package metadata and migration driver
sinethxyz Sep 23, 2026
8292885
docs: expose historical Neurocognitive System identity
sinethxyz Sep 23, 2026
fdb9343
fix: use declared sync database driver
sinethxyz Sep 23, 2026
7402bb4
fix: align sync database example
sinethxyz Sep 23, 2026
777213e
fix: align Alembic driver
sinethxyz Sep 23, 2026
5403d96
fix: source Alembic URL from runtime settings
sinethxyz Sep 23, 2026
2542576
fix: preserve zero-valued evidence
sinethxyz Sep 23, 2026
4d9ffda
fix: enforce nested resource identifiers
sinethxyz Sep 23, 2026
a3476fc
fix: enforce nested resource identifiers
sinethxyz Sep 23, 2026
1f0b437
fix: enforce nested resource identifiers
sinethxyz Sep 23, 2026
31c2910
test: cover nested resource identifier integrity
sinethxyz Sep 23, 2026
2b65fc5
docs: define sensor adapter architecture
sinethxyz Sep 23, 2026
2d3370e
docs: add sensor adapter RFC
sinethxyz Sep 23, 2026
612d079
docs: link sensor architecture
sinethxyz Sep 23, 2026
ae0fff2
test: align health metadata
sinethxyz Sep 23, 2026
f941647
fix: correct health test formatting
sinethxyz Sep 23, 2026
74fe7fb
fix: scope vector retrieval by operator
sinethxyz Sep 23, 2026
f2c509a
fix: require operator scope for vector API
sinethxyz Sep 23, 2026
0a4f435
fix: require operator scope for context retrieval
sinethxyz Sep 23, 2026
8fd5594
fix: require operator scope for AI retrieval
sinethxyz Sep 23, 2026
f4eb365
db: scope embedding identity by operator
sinethxyz Sep 23, 2026
6389a0e
ci: verify migrations and tests
sinethxyz Sep 23, 2026
f41cf38
docs: distinguish historical and cleanup migrations
sinethxyz Sep 23, 2026
6d37b41
fix: reuse predeclared PostgreSQL enums in migrations
sinethxyz Sep 23, 2026
b3ff0b3
fix: normalize UUIDv7 values at service boundaries
sinethxyz Sep 23, 2026
d499b02
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
ff313f8
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
1a5906f
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
d78c63d
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
06792cc
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
fba28e3
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
da7b7dd
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
e13258b
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
f9814bd
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
5d3d980
fix: normalize generated UUIDv7 values
sinethxyz Sep 23, 2026
a8e703e
fix: default evidence timestamps to current UTC
sinethxyz Sep 23, 2026
182d65d
ci: harden release verification
sinethxyz Sep 23, 2026
578b2e8
test: refuse unidentified non-test databases
sinethxyz Sep 23, 2026
467b41e
security: bind local postgres to loopback
sinethxyz Sep 23, 2026
c4d5918
security: ignore common local sensitive artifacts
sinethxyz Sep 23, 2026
6cefc93
ci: lint active code without rewriting historical migrations
sinethxyz Sep 23, 2026
2c0a8ba
test: cover vector isolation and zero-valued evidence
sinethxyz Sep 23, 2026
d37d091
chore: remove stale imports
sinethxyz Sep 23, 2026
2b5a9d4
chore: remove stale imports
sinethxyz Sep 23, 2026
e793b30
chore: remove stale imports
sinethxyz Sep 23, 2026
1ff203b
chore: remove stale imports
sinethxyz Sep 23, 2026
93f5bba
chore: remove stale imports
sinethxyz Sep 23, 2026
e5acc6b
chore: modernize cleanup migration typing
sinethxyz Sep 23, 2026
b16665e
ci: enforce focused correctness lint rules
sinethxyz Sep 23, 2026
46fc5f0
docs: remove unrelated visual prosthetic thesis reference
sinethxyz Sep 23, 2026
85ef5b3
docs: remove unrelated visual prosthetic thesis
sinethxyz Sep 23, 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
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# PostgreSQL
DATABASE_URL=postgresql+asyncpg://utopia:utopia@localhost:5432/utopia
DATABASE_URL_SYNC=postgresql+psycopg2://utopia:utopia@localhost:5432/utopia
DATABASE_URL_SYNC=postgresql+psycopg://utopia:utopia@localhost:5432/utopia

# WHOOP (placeholders — requires developer account)
WHOOP_CLIENT_ID=
WHOOP_CLIENT_SECRET=
WHOOP_REDIRECT_URI=http://localhost:8000/integrations/whoop/callback

# AI Providers (placeholders)
# AI providers (placeholders)
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: CI

on:
push:
branches:
- main
- "cleanup/**"
pull_request:

permissions:
contents: read

jobs:
secrets:
name: Secret history scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: gitleaks/gitleaks-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_ENABLE_COMMENTS: "false"
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"

test:
name: Python / migrations / tests
runs-on: ubuntu-latest

services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: utopia
POSTGRES_PASSWORD: utopia
POSTGRES_DB: utopia_test
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U utopia -d utopia_test"
--health-interval 5s
--health-timeout 3s
--health-retries 10

env:
DATABASE_URL: postgresql+asyncpg://utopia:utopia@localhost:5432/utopia_test
DATABASE_URL_SYNC: postgresql+psycopg://utopia:utopia@localhost:5432/utopia_test
ANTHROPIC_API_KEY: test
OPENAI_API_KEY: test

steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v7
with:
python-version: "3.12"
cache: pip

- name: Install
run: python -m pip install -e ".[dev]"

- name: Compile
run: python -m compileall -q src tests migrations

- name: Ruff
run: ruff check --select E4,E7,E9,F src tests migrations/env.py migrations/versions/014_operator_scoped_embeddings.py

- name: Apply migrations from zero
run: alembic upgrade head

- name: Verify cleanup migration is reversible
run: |
alembic downgrade 013
alembic upgrade head

- name: Test
run: pytest -q
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ build/
.venv/
venv/
.env
.env.*
!.env.example
*.db
*.sqlite3
*.log
*.dump
*.sql
*.parquet
.ruff_cache/
.pytest_cache/
.mypy_cache/
Expand Down
Loading
Loading