Skip to main content

effective_project

Function effective_project 

Source
pub fn effective_project(
    inputs: &ProjectResolveInputs<'_>,
) -> Option<(ProjectBinding, ProjectSource)>
Expand description

The project that applies, and which tier produced it: --project flag → subagent worktree override → TRACEVAULT_PROJECT → session active → workspace config project_id → none. Pure; covers only the local tiers (flag → subagent → env_project → session.active_project → config_project). env_project is supplied BY THE CALLER — this module never reads the environment — and the capture path fills it from commands::stream::env_project_binding, which honours the UUID form only. The user-level default (and, in the display chain only, server-side deduction) are applied afterward by capture_project_binding / resolve_effective_project, which call this function first and only fall through to those tiers when it returns None.