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 layer 5 of 5: Open Graph cards for pull requests and docs pages
- Stack layer 4 of 4: document pull requests and stacks in /docs
- Stack layer 3 of 3: add stack actions to the pull request page (closes #114)
- Stack layer 2 of 3: add the unstack and dissolve APIs (closes #113)
- Stack layer 1 of 3: add the asynchronous stack merge API (closes #112)
- main
This pull request merged into main as part of the stack.