Trusted identity foundation
Server-owned authenticated identity, session, membership, role, and current-workspace interfaces are implemented.
Production foundation and activation plan
Foundation implemented - production activation blocked.
ForgeLayer now has server-owned identity and workspace interfaces, membership and role enforcement, a tenant-scoped durable schema, an RLS migration, append-only Ledger controls, and safe product APIs. Local isolated validation passed for Auth, 61/61 RLS assertions, workspace switching, and durable restart behavior. Production adapters remain inactive, production validation is unavailable, and production activation is blocked.
Keep production blocked while reviewing an approved production target, operational controls, and a separate production validation plan; do not treat localhost validation as production evidence.
Current product truth
Server-owned authenticated identity, session, membership, role, and current-workspace interfaces are implemented.
Workspace-scoped control-plane tables, tenant references, and append-only Ledger controls are defined.
Concrete Supabase session and user-context Postgres adapters passed isolated local validation; production adapters are not configured or active.
Migrations 001-003 replayed successfully against isolated local Postgres only; no remote or production migration was applied.
Local Supabase Auth, 61/61 database-backed RLS assertions, workspace switching, tenant isolation, and durable reload/restart behavior passed.
Explicit hosted staging mode and operator safeguards exist, but no hosted project has been contacted or validated.
Production Auth, RLS execution, workspace switching, durability, monitoring, recovery, and token operations remain unvalidated.
Production authentication and persistence remain unavailable until the isolated integration and operational gates are complete.
Workspace boundary
The trusted identity, membership, role, tenant-schema, and RLS migration foundations are implemented, but production adapters are inactive. Migrations 001-003, local Supabase Auth, 61/61 pgTAP RLS assertions, tenant isolation, workspace switching, and durability passed against isolated localhost only. Hosted staging configuration is inactive and hosted staging validation is pending; no hosted Supabase project has been contacted. No migration was applied to a remote or production database, and local validation is not production validation. Service-role writes for webhooks must stay server-side only, must not expose secrets, and must write only safe summaries by default. Raw diffs, raw repo rules, raw prompts, tokens, private keys, webhook payloads, provider errors, and stack traces remain excluded unless a future explicit privacy model allows otherwise.
Blocked until activation gates pass
Entity model
users
Represent authenticated people who can belong to workspaces.
Supabase Auth and the server identity interface passed isolated local validation; production remains inactive and production integration is unvalidated.
workspaces
Group repositories, review runs, ledger records, and members under one tenant boundary.
Workspace schema, server resolution, switching, and restart durability passed isolated local validation; production durability is unvalidated.
workspace_members
Map users to workspaces with owner, admin, reviewer, and viewer roles.
Membership and role enforcement passed the isolated local runtime and 61/61 pgTAP assertions; production RLS remains unexecuted.
github_installations
Track GitHub App installations associated with a workspace.
Installation tokens must never be stored or exposed.
repositories
Track approved repositories connected through the GitHub App.
Repository rows should remain tied to allowlisted installations and workspaces.
review_runs
Store safe summaries for GitHub webhook reviews and MergeGuard decisions.
Current storage excludes raw diffs, raw repo rules, raw prompts, tokens, and webhook payloads by default.
agent_work_records
Persist draft/proposed/completed AI-agent work records with evidence, risks, approvals, and blocked actions.
Currently derived locally and not production-persisted. The implemented identity/schema foundation still requires active adapters and real RLS validation.
ledger_entries
Provide the unified AI Work Ledger timeline across review runs, agent work records, approvals, prompts, and evidence.
Current ledger entries are derived/foundation-only except stored review-run summaries.
prompt_records
Track prompt-analysis metadata, safety scores, rewrites, and test outcomes without raw prompt exposure by default.
Raw prompt persistence should remain off until explicit product and privacy controls exist.
approval_records
Record human approvals, rejections, required checks, and merge-readiness decisions.
Approval control records have a tenant-scoped schema foundation; production identity, adapter, and database behavior remain unavailable.
test_evidence
Attach safe evidence that required tests, builds, security checks, and manual reviews occurred.
Evidence should store summaries and artifact references, not secret logs.
audit_events
Capture security-relevant state changes, posting decisions, approvals, and future agent-control events.
Append-only workspace Ledger event controls are defined and statically checked; production retention and database behavior remain unverified.
billing_customers
Future billing/customer mapping for paid workspaces.
Billing remains future-only and must not be added before private beta demand is validated.
Remaining activation work
Migration phases
phase_1_private_beta_demo
Keep the current demo and GitHub review-run loop stable while reviewers validate the workflow.
phase_2_workspace_auth
Activate and integration-test the implemented identity, membership, role, and workspace-resolution foundation.
phase_3_persistent_records
Activate reviewed Postgres repositories over the implemented tenant schema after Migration 003 and RLS pass isolated integration tests.
phase_4_github_app_production
Move from selected private beta repos to a controlled production GitHub App install flow.
phase_5_billing_and_teams
Add paid plans, team limits, and workspace billing only after beta demand is proven.
phase_6_agent_execution_controls_future
Future-only controls for live agent execution, command access, repo access, approval gates, and audit logs.