As of 2026-06-30 23:59:59, return active workspaces with columns workspace_id, plan, state_updated_at, ordered by workspace_id. A workspace's state is its latest event at or before the cutoff.
The database is already loaded with the schema and seed data. You are given active_plans.sql (a query that runs but returns the wrong answer). Fix active_plans.sql so it returns the correct result.