Skip to content

feat(teams): effective-team precedence resolver for the planner (#3152) - #4284

Open
kevinthelago wants to merge 1 commit into
developfrom
teams-personas
Open

feat(teams): effective-team precedence resolver for the planner (#3152)#4284
kevinthelago wants to merge 1 commit into
developfrom
teams-personas

Conversation

@kevinthelago

Copy link
Copy Markdown
Owner

Summary

Part of #3151 (Teams-in-Planner epic). This is the slice of #3152 that's actually inside teams-personas' owned scope (src/features/teams/**, src/features/personas/**, crates/bsc-teams/**, crates/bsc-persona/**).

Scope note

The rest of #3152 (a per-project team binding in plan.db + bsc plan team get|set) and all of #3153 (the planner directive in data/planner/process.md) live in crates/plandb + src/features/planner + src-tauri/data/planner — outside this stream's write scope (confirmed by the bsc-scope hook hard-blocking an attempted schema.rs edit). Filed as bsc plan request 1 for the planner stream to pick up; effectiveTeam is the contract it should compose with its bsc plan team get binding once that lands.

Test plan

  • npx vitest run src/features/teams src/features/personas — 148/148 passed (new effectiveTeam.test.ts: 4/4)
  • npx tsc --noEmit — clean
  • npx eslint src/features/teams src/features/personas — clean
  • cargo test -p bsc-teams -p bsc-persona — 6/6 passed
  • cargo clippy -p bsc-teams -p bsc-persona --all-targets -- -D warnings — clean

Closes #3152 (partial — see scope note above; the plan.db/planner half is tracked separately).

Part of #3151 (Teams-in-Planner epic). Adds the pure precedence rule a
project's effective team resolves by: its own per-project binding wins
once set, else the blueprint's embedded team, else none. Exported from
the feature barrel for the planner's teamFleet.ts to compose once its
plan.db binding + `bsc plan team get/set` CLI land (crates/plandb +
src/features/planner are outside this stream's write scope — the
bsc-scope hook confirmed it; see bsc plan request 1 for the remaining
plandb/planner-directive half of #3152/#3153).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YGJ8F4XMWtjiKk38U8ewPF
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