Repository navigation
feat(slack): show every URL elicitation as one prompt with Done and muster's return - #618
Conversation
…c return to muster's links
…and muster's return A sign-in, a tool approval or any later URL elicitation now gets the same ephemeral prompt: the server's message as the heading, a neutral Open button labelled with the link's host, Done and Not now. Opening the link continues nothing; Done, or muster's browser return to /auth/slack/return keyed by the elicitationId, resumes with accept and muster decides the outcome on the retried call. Links on muster's origin get redirect=<return>.
…uster's origin with or without its default port
… link in The return named the prompt by elicitationId alone, which the server that sent the elicitation chose or knows. Every prompt whose link is on muster's origin now carries a random key of its own in the return URL (muster's allowlist matches the prefix and keeps the query); the return resumes the one live prompt with that key, and only with an elicitationId that is the prompt's own when muster appends one. A link off muster's origin gets no key, so no return resumes it. A sign-in's return, which carries the server's name and no elicitationId, now resumes its prompt too. The adapter adds the return for every prompt in one place; the muster client returns links as muster gave them.
…ritten Bidi overrides, zero-width and other control or format characters are dropped, and Slack's formatting characters become full-width look-alikes, in the prompt's heading, its Asked by line, the thread's waiting note and a quoted message alike.
…ime's, in neutral words muster's message is the heading of every URL elicitation prompt, the decision, team review, conversation and Session start prompts included, followed by the flow's own line on what waits for it. Status lines, the waiting line and the cards no longer say a person signs in or signed in, since the elicitation may be a tool approval.
muster does not wait for an approval: a retry before the person decided gets the same elicitation again. A decision, a team review and a conversation reply took that as a sign-in that did not finish, said so, and dropped the reply. They now post the prompt again, saying the person is not done there yet, keep what waits behind it, and go ahead on the new prompt's Done.
…fter Done A Done whose retried start_session muster answered with a tool error (the person declined the approval, it expired) counted as delivered, and the held message was replayed, which only asked for approval again. The surfaces now say the message was not sent, with muster's words, the person gets the same note in the thread, and nothing is replayed.
…ster's longest approval A Done or Not now that continued nothing was silent: after muster's return (which cannot rewrite the ephemeral), past the 15-minute window, after a restart or on another replica. It now says the prompt was already answered, or that it can no longer continue and the person should ask again. A prompt's completion state lives 30 minutes, muster's longest approval.ttl.
…n and per-process state The return resumes approvals and sign-ins on muster's origin, bound to the prompt by its own key; obo.musterUrl must be muster's public origin; a prompt is posted again while muster still asks; a refused start is not replayed; a dead Done says why; completion state is per process, so a restart or a second replica continues nothing. The chart's obo comment names the return.
…rries the asking call's identity The fake can speak 2025-11-25 alone, as muster does in its first tool approval release: every connection is an MCP session, recorded on each call, and a URL elicitation is the JSON-RPC error -32042. A retry after Done goes over a new connection with the same person's token, which muster binds a pending approval to.
…ready ran After Done, the accepted retry of a start muster asked approval for ran the start and used the approval up; the replayed held message then called start_session again and was asked a second time. The muster client now hands the accepted retry's answer, once and within two minutes, to the identical start that follows (CallIdempotent, used by agent-manager's starter). A start muster still asks for on the retry gets the prompt again without a replay.
Published Helm chart
|
| Chart | klaus-gateway |
| Version | 4.19.1-r27740a5ft20261130084725h0c8e231 |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/klaus-gateway:4.19.1-r27740a5ft20261130084725h0c8e231 |
| Digest | sha256:8d6f6db6aded2d428eaa53e6e5ef513fb6e9a690df0d6ace507079058142680a |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/klaus-gateway --version 4.19.1-r27740a5ft20261130084725h0c8e231Posted by architect-orb · build 10620 · commit 0c8e231 · updated in place on every push
Review recordPart of giantswarm/giantswarm#38902 (tool approval, milestones 1 to 3). Purpose: this record says what was reviewed on this branch (the Slack side of URL elicitations: one generic prompt, Done, muster's return, Read this first
Review rounds
What was checked
FindingsCode review
Security review
The security re-check 2 found no further issue in the fix diffs: the return key lives in the redirect URL, is single-use and bound to one prompt; the handover cannot be taken by another person, a different call or twice. Lab verificationNone for this repository. klaus-gateway was not enabled and no Slack workspace was available in any of the four agentlab runs. Gateway flows were covered by tests against a muster double built from the contract ( Open itemsFindings still open or partly fixed:
Never run:
|
# Conflicts: # docs/kagent-a2a.md # main.go # pkg/muster/client_test.go # pkg/muster/mustertest/mustertest.go
Review supplement for giantswarm/giantswarm#38902Reviewed head: SpecThe inspected paths preserve elicitation identity, make Open non-approving, and retry as the prompt recipient. Restart and token-refresh limitations are already documented, not new findings. This is a scoped contract assessment, not an exhaustive numbered acceptance score. Independent focused specification cross-checks covered the core enforcement/client contracts and platform/manager integration. Declared follow-ups and accepted design changes are not counted as new defects. BlockingNo new blocking code finding established in this pass. Non-blockingNone newly established. SuggestionsNone beyond the existing review follow-ups. Deep verification
Reported checks passed or were skipped; no failed/cancelled check to triage. A skipped job is not evidence that its gate ran. Unverified locally: applicable builds, tests (including race/integration/envtest), vet, formatting/lint/pre-commit, generators, Makefile verification targets, Helm rendering/schema/unit checks, and browser/live-cluster flows. No PR code was executed. GitHub-reported CI provides supporting evidence, not a local reproduction. Recommendation: merge as-is within this review's scope, subject to existing release-order/rollout prerequisites and previously documented open items. Team context: none. |
MCP/A2A protocol follow-upReviewed
Limits remain: one URL elicitation is supported at a time; multiple requests fail explicitly. Direct third-party A2A session startup is separately deferred in giantswarm/giantswarm#39569. The kagent relay has both a carried-deviation record and upstream exits kagent-dev/kagent#3500 and kagent-dev/kagent#3501 (both still open). No missing exit was found for that referenced relay. Reuse of the existing pending-input/return mechanism is appropriate. No new domain-model rewrite or generic approval framework is warranted. Full end-to-end conformance is not established by this static pass. Verification: static source and published-spec review only; no PR code executed. Local builds, tests/race tests, lint, Helm gates, browser flows and independent-client interoperability remain unverified. Heads were rechecked unchanged. This supplements the earlier deep-review verdict and does not clear its blockers. |
Keep both UPGRADE.md notes: the Slack URL elicitation prompt and main's A2A server changes.
Review record — merge roundPart of giantswarm/giantswarm#38902. Reviewer: Claude Fable 5.2, independent of the implementing and merging model, read-only, verdicts formed from the code. Full review: Covers the merge of main
Run: |
Part of giantswarm/giantswarm#38902. The review record is the first comment on this PR.
What does this PR do?
This is the Slack side of tool approval. When muster asks a person to approve a tool call (or to sign in), klaus-gateway shows that as one generic Slack prompt: muster's message as the heading, Open ↗ host, Done and Not now. The person decides on muster's page, then chooses Done or muster sends their browser back to the gateway, and the held message or conversation continues.
-32042(protocol 2025-11-25) next to theinput_requiredform; keeps theelicitationId; adds the gateway's return to links on muster's origin (replacing anyredirectthe link brought).Doneretries the call as an accepted retry; muster decides. The return/auth/slack/return?prompt=<key>carries a random key per prompt and resumes only that prompt, once, as its own Slack user. A retry that muster still asks for gets the prompt again; a refused retry is reported and not replayed; a Session start an approved retry already ran is not asked for twice.docs/slack-hitl-surface.md,docs/channels-slack.md,docs/kagent-a2a.md,UPGRADE.md.What is the effect of this change to users?
People in Slack see one prompt for a sign-in and for a tool approval. Opening the link no longer continues the conversation; they choose Done afterwards, or the return does it. Prompts posted before the upgrade continue nothing; the person sends their message again.
How does it look like?
Prompt text, in the order shown: muster's message in bold (for example "Confirm Create organization in Agent Manager."), "Asked by muster before your answer goes through.", the link button "Open ↗ muster.example.com", then Done and Not now. A Done that cannot continue answers "This prompt was already answered." or "This prompt can no longer continue: ... Ask again ...". Screenshots need a Slack workspace and are not part of this draft.
Changes from the plan
Where this PR differs from the design in the epic (giantswarm/giantswarm#38902):
/auth/slack/return?prompt=<key>with a random key per prompt and resumes only that prompt, once, instead of resuming every prompt that waits on anelicitationId.Any background context you can provide?
Related pull requests (milestones 1 to 3)
What is needed from the reviewers?
cd9ecc5andbb606a3were verified by the second re-check. The merge ofmain(68d20a2, read at theStartSessionconflict) and the lint commits (b9e0e35,3a79145) were read in a delta review: no finding. Only4734530(test fixtures) has no independent re-check.Upgrade notes
<obo.callbackBaseUrl>/auth/slack/returnto muster'soauth.mcpClient.postLoginRedirectAllowlist(a prefix entry; the key rides in the query). The agent-platform chart derives it. Without the entry muster drops the redirect and logs a warning per link; Done still continues.obo.musterUrlmust be muster's public origin (aggregator.oauth.mcpClient.publicUrl), where its approval and sign-in links are. With an in-cluster address no link gets the return; Done still works.Testing
make build,go vet ./...,go test -race -count=1 ./...go test -count=1 ./pkg/muster/... ./pkg/channels/...693d0f9)go test ./pkg/channels/slack/3a79145(delta review)cd9ecc5)Not run:
golangci-lintandgoimports(not installed on the reviewers' machine), chart tests (macOS limit), a live Slack workspace, a live muster. klaus-gateway was not enabled in the agentlab run. Agentlab re-test, 2026-11-25 (lab-tests/m1-retest.md): passed, no blocking defects for muster's side of the flow; Slack is not testable in the lab, so the prompt, Done and the return were not exercised live. The milestone 2 and 3 lab runs (2026-11-26) did not enable klaus-gateway either; the later commits change test fixtures, mergemainand fix lint only.Do the docs need to be updated?
Done in this PR:
docs/slack-hitl-surface.md,docs/channels-slack.md,docs/kagent-a2a.md,UPGRADE.md, and theobocomment inhelm/klaus-gateway/values.yaml.