Skip to content

feat(projects): project-centric scoping foundation (UX redesign P1)#77

Merged
VarunGitGood merged 1 commit into
mainfrom
feat/ux-projects
Jun 13, 2026
Merged

feat(projects): project-centric scoping foundation (UX redesign P1)#77
VarunGitGood merged 1 commit into
mainfrom
feat/ux-projects

Conversation

@VarunGitGood

Copy link
Copy Markdown
Owner

First of three stacked PRs implementing the AI-Observability-Assistant redesign (projects → timeline-first landing → guided investigation).

What this adds

  • Projects as a first-class concept: projects table with per-project settings (default_timeline_window, auto_load_timeline, max_events); project_id on log_chunks, watcher_configs, conversations, investigations. Idempotent schema migration seeds a Default project and backfills all existing rows into it — zero-friction upgrade.
  • Real signature column on log_chunks (un-defers "Path B" documented in cluster_view.py) + backfill — enables the corpus-wide event feed and clusters in P2.
  • /projects API: list (with service counts), create, get, PATCH (settings merge), /projects/{id}/services.
  • Ingest stamping: POST /ingest takes an optional project (name get-or-create / uuid / blank → Default); the worker stamps from its watcher's project.
  • Hard scoping: RetrievalFilters.project_id filters both retrieval arms; every ReAct tool gets project_id injected via container closures — the LLM never sees or controls it, and cache keys include it. /chat and /investigate accept or inherit the conversation's project; intent resolution uses project-scoped known services.

Verified live (real LogHub data)

  • Zookeeper ingested into project Infra, OpenSSH into Default
  • Infra-scoped chat about zookeeper → 10/10 cited chunks belong to Infra
  • Infra-scoped chat about ssh-server → clarification, zero cross-project chunks leaked
  • Settings PATCH merges (window 5h → 24h, other keys preserved); schema applied twice cleanly

Test plan

  • uv run pytest tests/ -q216 passed (8 new: resolver branches, settings merge, filter clause)
  • Schema idempotency: applied twice, legacy-shaped row backfilled with signature + Default project

- projects table (settings JSONB: default_timeline_window, auto_load_timeline,
  max_events) + project_id on log_chunks/watcher_configs/conversations/
  investigations; real signature column on log_chunks (un-defers Path B from
  cluster_view) with idempotent backfill; Default project seed absorbs all
  pre-project rows
- /projects CRUD + /projects/{id}/services; resolve_project shared name-or-id
  resolver (name get-or-create, uuid must exist, blank -> Default)
- ingest stamps signature + project_id (API form field, worker via
  watcher_configs.project_id); /watchers accepts project_id
- scoping: RetrievalFilters.project_id applies to both vector + FTS arms;
  every ReAct tool gains project_id injected via container closures (LLM
  never sees it; cache keys include it); chat + investigate accept/inherit
  project_id; known_services resolved per project
- conversations list/detail return project_id + name for the sidebar

Verified live: zk ingested into 'Infra', ssh into Default; Infra-scoped chat
cites only Infra chunks; asking Infra about ssh-server clarifies with zero
cross-project leakage.
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repi Ready Ready Preview, Comment Jun 11, 2026 3:35pm

@VarunGitGood VarunGitGood merged commit cc0ac52 into main Jun 13, 2026
4 checks passed
VarunGitGood added a commit that referenced this pull request Jun 14, 2026
feat(projects): project-centric scoping foundation (UX redesign P1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant