Skip to content

feat(approval-flow): add human approval hold flow#5

Merged
henryqingmo merged 15 commits into
mainfrom
feat/approval-flow
May 16, 2026
Merged

feat(approval-flow): add human approval hold flow#5
henryqingmo merged 15 commits into
mainfrom
feat/approval-flow

Conversation

@henryqingmo
Copy link
Copy Markdown
Contributor

Summary

  • hold approvalRequired tool calls open until a signed Slack decision or timeout
  • add Slack notification/webhook handling plus Redis/Postgres-backed approval resume flow
  • add unit, integration, and Docker Compose validation coverage for approve, deny, timeout, and webhook security paths

Validation

  • go test ./...
  • bash scripts/demo_policy_gate.sh

henryqingmo and others added 15 commits May 15, 2026 18:00
…(task 1.1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…cted schema mismatch (task 1.2)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…and timeout (task 2.1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tion (task 2.3)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng approval (task 3.1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- approval_bridge_integration_test: increase lockTTL to 2s so the
  session lock survives subscriber setup under the race detector
- db_test: correct ticket status constraint assertion from "rejected"
  to "denied" to match the schema repair migration
- main_test, policy_gate_integration_test: call
  CloseClientConnections() before Close() to avoid httptest.Server
  wg.Wait() deadlock when approval holds keep connections open
- server_integration_test: handle initialize separately in the
  blocking upstream mock so upstreamStarted fires only for tools/call;
  guard close(releaseUpstream) with sync.Once; use r.Context().Done()
  select so cleanup can unblock the handler goroutine on test failure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@henryqingmo henryqingmo marked this pull request as ready for review May 16, 2026 04:31
@henryqingmo henryqingmo merged commit bb03d72 into main May 16, 2026
2 checks passed
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