OpenAgents

Stack layer 2 of 3: add the unstack and dissolve APIs (closes #113)

Public

Stack layer 2 of 3: add the unstack and dissolve APIs (closes #113)

merged

#118 proposes OpenAgentsInc/openagents.com:stack-lifecycle into OpenAgentsInc/openagents.com:stack-merge-async.

Adds lifecycle mutations so a stack can shrink or end without manual repair. - `POST /api/v3/repos/:owner/:repo/stacks/:stack_number/unstack` removes the top layer, returns the pull request to a standalone review, and dissolves the stack when the last layer leaves. - `POST .../stacks/:stack_number/dissolve` releases every layer at once and closes the stack. - Both mutations replay on a repeated `Idempotency-Key`, refuse to run while a durable operation is active, and record `pull_request.unstacked` and `pull_request_stack.dissolved` events. - A stack now holds at most 100 active layers, enforced on create and append. Closes #113

Stack #1 · layer 2 of 5

merged
Stack #1 5 layers
  1. Stack layer 5 of 5: Open Graph cards for pull requests and docs pages #123 stack-og-cards
  2. Stack layer 4 of 4: document pull requests and stacks in /docs #122 stack-docs
  3. Stack layer 3 of 3: add stack actions to the pull request page (closes #114) #119 stack-pr-actions
  4. Stack layer 2 of 3: add the unstack and dissolve APIs (closes #113) #118 stack-lifecycle
  5. Stack layer 1 of 3: add the asynchronous stack merge API (closes #112) #117 stack-merge-async
  6. main

This pull request merged into main as part of the stack.