Skip to content

11/12 Add co-op deploy follow-up support#1702

Merged
tomer-stripe merged 7 commits into
coopfrom
tomer/coop-stack-11-deploy
Jul 9, 2026
Merged

11/12 Add co-op deploy follow-up support#1702
tomer-stripe merged 7 commits into
coopfrom
tomer/coop-stack-11-deploy

Conversation

@tomer-stripe

@tomer-stripe tomer-stripe commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Part 11 of the clean co-op stack targeting coop.

This PR adds deploy-oriented follow-up support for completed co-op sessions without introducing deployment as a normal integration blueprint.

Changes:

  • Adds deploy and deploy-update next-action suggestions after a session completes.
  • Adds internal compiled guided actions for deploy follow-ups. These create normal parented co-op sessions, so the TUI can show step-by-step deploy progress in the left rail, but they are not embedded blueprint JSON, are not returned by ListBlueprints, and are not started through stripe coop run.
  • Keeps the generic guided-action-to-session machinery in pkg/coop, while deploy-specific guided action definitions live in pkg/coop/followups.
  • Adds stripe coop agent start-followup for agents to create those guided follow-up sessions from a completed parent session.
  • Separates deploy-update from deploy: existing deployment infrastructure gets a guided flow that pushes the integration changes to the detected target.
  • Updates the TUI so deploy choices wait for the guided follow-up session; add-integration still waits for a new integration session.
  • Adds/updates tests for guided action definitions, command creation, next-action responses, TUI waiting behavior, and parent-session routing.

Review notes:

  • The earlier deploy-stripe-projects blueprint was removed in response to review feedback. Deploy is modeled as an internal follow-up action with session steps, not as blueprint source of truth.
  • The deploy guided action tells the agent to use Stripe Projects plugin detection and commands as the deployment source of truth.
  • The deploy-update guided action tells the agent to use the existing detected provider path.
  • The deploy guidance tells the agent not to supplement or modify co-op blueprints as deployment source of truth and not to print secret key material.

@tomer-stripe tomer-stripe requested a review from a team as a code owner June 19, 2026 22:14
@tomer-stripe tomer-stripe changed the title Add coop deploy follow-up support 11/12 Add co-op deploy follow-up support Jun 19, 2026
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 8166020 to 63992ed Compare June 22, 2026 15:51
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 1962732 to 49f52e6 Compare June 22, 2026 15:51
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 63992ed to 03f9925 Compare June 22, 2026 16:38
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 49f52e6 to acc4895 Compare June 22, 2026 16:38
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 03f9925 to 58bb5ff Compare July 7, 2026 20:11
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from acc4895 to a7388f0 Compare July 7, 2026 20:11
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 58bb5ff to 71bbf2d Compare July 7, 2026 20:20
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from a7388f0 to 5d89b61 Compare July 7, 2026 20:20
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 71bbf2d to 8572599 Compare July 7, 2026 20:30
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 5d89b61 to 56727d3 Compare July 7, 2026 20:30
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 8572599 to 7a8facb Compare July 8, 2026 00:13
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 56727d3 to d467fe5 Compare July 8, 2026 00:13
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch from 7a8facb to b793e1b Compare July 8, 2026 00:23
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch 2 times, most recently from 7c9a8fb to fa50e88 Compare July 8, 2026 17:54
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-10-launcher-debug branch 2 times, most recently from 3c87d27 to d5aa255 Compare July 8, 2026 18:02
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from fa50e88 to 087d54a Compare July 8, 2026 18:02
Comment thread pkg/coop/blueprints/deploy-stripe-projects.json Outdated
Comment thread pkg/coop/blueprints/deploy-stripe-projects.json Outdated
Comment thread pkg/coop/helpers/nextaction.go Outdated

@kwu-stripe kwu-stripe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if representing the Stripe Projects flow as a blueprint makes the most sense. This feels more like a deployment follow-up that we use after each integration than an integration itself. Would it be better modeled as a deploy action / prompt that asks the agent to use the Projects plugin's own detection and commands?

@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 087d54a to 40d1b26 Compare July 9, 2026 15:54
Base automatically changed from tomer/coop-stack-10-launcher-debug to coop July 9, 2026 17:37
@tomer-stripe

Copy link
Copy Markdown
Collaborator Author

so I kind of agree with you that this doesn't make 100% sense as a blueprint-proper. It doesn't map perfectly to the conceptual backing we've built around blueprints. The step-by-step flow of a blueprint does kind of fit here tough in guiding the user through a bunch of steps to help them get deployed.

I don't feel too strongly here, I'm fine not merging this one for now and addressing this separately as a one-off or adhoc feature.

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@tomer-stripe tomer-stripe force-pushed the tomer/coop-stack-11-deploy branch from 40d1b26 to fa4bd5c Compare July 9, 2026 19:33
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
tomer-stripe and others added 4 commits July 9, 2026 14:18
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@tomer-stripe tomer-stripe requested a review from kwu-stripe July 9, 2026 22:26
Comment thread pkg/cmd/coop/coop_agent.go
Comment thread pkg/coop/helpers/nextaction.go
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@tomer-stripe tomer-stripe merged commit 2ab32fa into coop Jul 9, 2026
11 checks passed
@tomer-stripe tomer-stripe deleted the tomer/coop-stack-11-deploy branch July 9, 2026 23:51
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.

2 participants