fix(agent-team): thread lifecycle milestones + present the plan in Slack #54
No reviewers
Labels
No labels
app
bug
ci
compliance
content
dependencies
docs
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
infra
invalid
javascript
needs-triage
python
question
tests
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/orchestrator#54
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/agent-team-plan-presentation-threading"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A live
/new-task(task9bce78ad) produced and approved a plan, but the "✅ plan ready" notice (a) posted top-level in #agent-team instead of in the task thread, and (b) contained no plan to review. Two distinct bugs, both fixed here.Changes
run-team.py_build_notifiersexposednotify(message)with nothread_ts. The coordinator's_emitcallsnotify(message, thread_ts=root)→TypeError→_emit's fallback re-posts top-level. So every lifecycle milestone (plan-ready / parked / failed) landed unthreaded, even though the coordinator computes the task root ts. (The clarifier question threaded fine — it goes throughnotify_question/post_question, a different path.) The sink now accepts and forwardsthread_tsinto thechat.postMessagepayload —build_slack_posteralready forwards the key.Coordinator._summarize_planposts a condensed plan (summary + numbered phase names; full step detail stays on the status dashboard) so the plan is reviewable in-thread.Validation
ruff check+ruff format --checkclean.Tests
notifysink forwardsthread_tswhen set, and omits the key (not a broken arg) for top-level posts._summarize_plan: renders summary + numbered phase names, does NOT dump step detail (condensed), and falls back without crashing on a malformed plan.thread_ts == ROOT) AND carries the plan summary.Notes
Per request: do not merge. Not yet deployed — once merged, redeploy via
/sh-deploy-r720(package-only change:coordinator.py+run-team.py, no new deps). Follows PR #53 (the crash fix) which is already live.