Phase 1: Core Platform

Phase 1: Core Platform — complete as of 2026-06-05.

Phase 1: Core Platform

Status: Complete
Completed: 2026-06-05
Exit audit: PHASE1_EXIT_AUDIT.md
Current milestone: 1.5.1 Security integration test suite — Complete

Milestones

Execution order

All milestones complete. 1.5.1 was the explicit Phase 1 completion gate.

Theme

Build the platform layer required before any LLM provider call: durable schema, auth validation, proxy authentication wiring, request normalization, and observability baseline.

Why this phase matters

Foundation-004 delivered honest skeletons. Phase 1 turns them into a fail-closed platform: tokens validated against Postgres, proxy rejects unauthenticated traffic, requests parsed into a stable internal shape—without yet calling OpenAI or implementing memory.

Entry criteria

  • Phase 0 complete (main includes toolchain, compose, proto source, Go skeletons)
  • make compose-dev-up brings Postgres/Redis healthy
  • Required CI green on main

Exit criteria

  • make db-migrate applies minimal ibex_core schema; second run is no-op
  • Auth service validates organization API tokens (PAT) via gRPC; Argon2id verify; permission bitmap returned
  • Auth and proxy cross-tenant integration tests pass (M1.5.1 SEC matrix)
  • Proxy middleware rejects missing/invalid auth before handler logic
  • Proxy parses OpenAI-compatible chat request JSON into internal struct (no upstream HTTP)
  • OTel tracer provider registered (noop exporter OK); Prometheus via official client
  • ADR-0005 (migrations), ADR-0006 (auth proto) accepted
  • docs/app/content/roadmap/CURRENT_STATE updated at phase exit

Dependencies

DependencyNotes
Docker Compose dev stackPostgres 16 + pgvector image already in compose
BufFor auth proto in milestone 1.1.2
golang-migrate (or ADR-chosen tool)Milestone 1.1.1

Documents

Goal overview

GoalFocus
1.0Integration test harness (optional before heavy integration work)
1.1Migrations, auth proto, token validation, token API backlog
1.2Proxy auth client, normalization, validation, rate limits
1.3OTel + Prometheus client
1.4Seed data, .env.example, shared packages, health checks
1.5Cross-tenant security integration gate

Next phase

Exit criteria met. Begin Phase 2: Single Provider E2E.

Edit on GitHub

Last updated on

On this page

0%