# Every entry is permissive — the CI license gate (scripts/license_gate.py) denies GPL/AGPL/SSPL.

# ── The shared core ───────────────────────────────────────────────────────────
# dredd-core carries the family's identity + org-tree models, auth, authz, audit, errors, security
# helpers and the enum-type creator. It is a real dependency, not copied source: `import dredd_core`
# is what puts the shared tables on `Base.metadata`, and the app-side modules that keep the old
# filenames are thin re-export shims over it.
#
# Pinned by TAG, never a branch — a moving ref would change this app's schema between two otherwise
# identical `pip install` runs. To move to a newer core: bump the tag, run the tests, and add a NEW
# alembic revision for whatever tables or columns the bump brings (never edit 0001).
#
# From v0.10.0 core also carries what lets this app be a MODULE of the platform rather than its own
# island: the shared identity tables and `own_tables`, the column and table grant tiers a module is
# held to, the boot assertion and merge helpers (`identity_schema`), the two `AuthPolicy` flags that
# turn "this module may not write accounts" into a clean 409 instead of a Postgres permission error
# dressed up as a 500, and the tiers (`moderation`, `authz.bind_moderation`). v0.11.0 then turned the
# moderator roster into `module_permission` — one row per person per module, carrying a `role`, and
# **no row meaning no access to that module at all** — which is what `deps.get_current_user` asks
# with `assert_may_use`. Every one of those defaults to the previous behaviour, so a STANDALONE app —
# its own database, its own people, no hub — is unchanged by them: core answers `"user"` for
# everybody there and emits no SQL. The platform shape is switched on by IDENTITY_SCHEMA and by
# nothing else.
#
# The repo is PRIVATE, so pip needs credentials to fetch it:
#   local — a read-only Gitea access token in your git credential helper (or an SSH `insteadOf` rewrite)
#   CI    — the Haski org secret DREDD_CORE_TOKEN; see the workflow-level `env:` in .github/workflows/
dredd-core @ git+http://77.216.148.202:3000/Haski/dredd-core.git@v0.23.1

# Web framework
fastapi==0.115.6
uvicorn[standard]==0.34.0
python-multipart==0.0.20      # multipart/form-data uploads (Apache-2.0)

# Validation / settings
pydantic==2.10.4
pydantic-settings==2.7.1
# email validation is done in-app via a regex validator (schemas.Email) — no email-validator dependency

# DB / ORM / migrations
SQLAlchemy==2.0.50
alembic==1.14.0
pg8000==1.31.2                # pure-Python PostgreSQL driver, BSD-3-Clause (no LGPL, no libpq)

# Auth
argon2-cffi==23.1.0           # Argon2id password hashing (MIT). dredd-core depends on it too, so
                              # this is now a re-pin rather than the only source — kept explicit so
                              # the version is visible here and the license gate sees it named.

# Outbound HTTP — the ONE client, used only from app/integrations/.
httpx==0.28.1                 # BSD-3-Clause

# OpenTelemetry (OTLP → OTel Collector) — optional, import-guarded in observability.py
opentelemetry-sdk==1.42.1
opentelemetry-exporter-otlp-proto-grpc==1.42.1
opentelemetry-instrumentation-fastapi==0.63b1
opentelemetry-instrumentation-sqlalchemy==0.63b1

# ── Text extraction: the Compass repo's `packages/ingestion` as a LIBRARY (plan 2026-11-06, M2) ──
# Lexicon cuts a source into clauses itself, in-process, with compass_ingestion's PDF/DOCX reader and
# its § and decimal parsers. It never runs or imports the analysis engine (`compass_analysis`);
# `tests/test_ingestion_boundary.py` holds that line.
#
# PINNED TO A COMMIT, NOT A TAG — the Compass repo has no tag yet. 33e13d7 is the merge of L1
# (Compass #57): the PDF reader on pypdfium2 (Apache-2.0/BSD-3) instead of PyMuPDF (AGPL-3.0), now on
# Compass `main`. Once Compass is tagged (e.g. `ingestion-v0.2.0`), repin BOTH lines below to that tag.
# `compass-schemas` is a uv-workspace dependency of ingestion, so it is installed from the same
# commit by its own line; pip then finds it satisfied.
compass-schemas @ git+http://77.216.148.202:3000/Haski/Arbiter.git@4945bc917bdd86f5b017872cb415bdf7ae1611c7#subdirectory=packages/schemas
compass-ingestion @ git+http://77.216.148.202:3000/Haski/Arbiter.git@4945bc917bdd86f5b017872cb415bdf7ae1611c7#subdirectory=packages/ingestion
pypdfium2==4.30.0             # Apache-2.0 / BSD-3-Clause (PDFium) — compass_ingestion's PDF reader

# Secrets at rest: a model provider's API key is stored recoverably, because it has to be SENT to
# that provider (`app/provider_keys.py`, the family's one cipher, copied from Arbiter).
cryptography==46.0.3          # AES-256-GCM (Apache-2.0/BSD)
