Researcher/User documentation
Context DAG
The Context DAG tab visualizes or inspects relationships across project context nodes.
Concepts: rag
What It Does
The Context DAG tab visualizes or inspects relationships across project context nodes. Its chat session selector only shows sessions that belong to the active project, and DAG requests are bound to that active project on the backend.
Why It Exists
Context DAG exists so the work represented by Memory > Context DAG has a stable, discoverable place in Istara's project workflow. It keeps user actions, generated artifacts, and related follow-up surfaces connected to the active project rather than scattering them across unrelated tools.
Where It Lives
- UI path: Memory > Context DAG
- Navigation group: Memory
- Primary component:
MemoryView / ContextDAGView
How UX Researchers Use It
- Open Memory > Context DAG from the Istara navigation or the parent tab.
- Use the visible controls in this surface to work with context dag in the active project context.
- If no active-project chat session exists, the DAG remains empty instead of showing a previous project's context graph.
- A stale session id from another project is rejected even when the same user can access both projects.
- Chat compaction runs in the background without leaving pending database work behind at shutdown; repeated responses for one session share the active compaction task.
- History Search keeps the result count readable as “N results for …”, including when no matches are found.
- Review the output in the same view and follow the related feature links when the workflow moves into another Istara surface.
Supported Workflows
- Start from Memory > Context DAG when the current research task needs context dag.
- Use the visible controls to create, inspect, refine, or route project work without leaving the active Istara context.
- Move to related surfaces when needed: context.editor, memory.knowledge, chat.sessions.
Inputs, Outputs, And Expected Outcomes
- Project-scoped state or artifact updates associated with context dag.
- Visible status, lists, forms, generated artifacts, or review results shown by the referenced component and routes.
- Context DAG structure, search, expansion, and compaction for the selected session in the active project.
Caveats
- Needs interactive verification for exact empty, loading, error, and permission-denied states.
- Do not expand this documentation beyond the cited source files without adding new code or walkthrough evidence.
Related Features
Related Concepts
Evidence
- Source files:
frontend/src/components/memory/MemoryView.tsx,frontend/src/components/memory/ContextDAGView.tsx,frontend/src/stores/sessionStore.ts,frontend/src/lib/contextDagApi.ts,backend/app/api/routes/context_dag.py,backend/app/core/context_dag.py - API references:
backend/app/api/routes/context_dag.py - Tests:
tests/test_context_dag.py,tests/test_context_dag_ui_contracts.py,tests/test_project_scope_contracts.py