Skip to content

docs: map PR wake-ups and secret questions in the pstack adapter - #161

Merged
ibetitsmike merged 4 commits into
mainfrom
mike/pstack-adapter-batch-pr-activity
Nov 10, 2026
Merged

ibetitsmike merged 4 commits into
mainfrom
mike/pstack-adapter-batch-pr-activity

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Part of #13 and #8.

Updates docs/fork/pstack-adapter.md for #131 (wake a chat on pull request activity) and #153 (secret questions from descendant chats). The page now says what fork main at df1ef73ac6 does.

  • PR wake-ups (feat(coderd): wake a chat on pull request activity #131). The Wake-ups section describes pull_request_url and pull_request_events on wait_for_events: what counts as a review, a comment, settled CI, and a close, the message format without bodies, one message per pull request, the default prompt, the pull_request result, the poll once a minute with the chat owner's linked GitHub account, failed reads and rate limits, and the call errors. The /loop and watchers row no longer says there is no PR or CI wake-up, and its Do this column points at pull_request_url. The PR tool row now says there is no tool that creates or changes a PR, and the evidence says where pull_request appears in coderd/x/chatd.
  • Secret questions (feat: let descendant chats ask secret questions #153). The Questions section describes a child's secret question: the secret: true call, the masked field with Submit and Decline on the root chat's page, the 8-byte to 16 KiB value, the {{secret:<call ID>}} placeholder for execute, write_file, and edit_files, the scrub and its limits, the 24-hour answer lifetime, and the refused message_agent, child chat sends, and wait_agent note. It also tells the parent to point the user to the question panel and never ask for a paste, because a root model in the daily feat: let descendant chats ask secret questions #153 run asked the user to paste the token into the chat. The SendToUser secret row now says what children can do, and root chats still have no masked input.
  • Bootstrap. Two new lines: watch a PR with wait_for_events and pull_request_url, and ask for a secret in a child.
  • Evidence and citations. New entries cite the PR watch, the GitHub reader, the secret question tool, the answer route, and the dock. 37 moved ranges are re-pinned, and the ranges that feat(coderd): wake a chat on pull request activity #131 and feat: let descendant chats ask secret questions #153 changed (forkValidateSubagentResume, the pending question queries, nextWakeupRun, and the wait_for_events delivery) point at the new code. The header names df1ef73ac6.

Validation

  • The per-line citation audit reports no moved or changed range on the committed page.
  • markdownlint-cli2 0.16.0 and markdown-table-formatter 1.6.1 on the page: 0 errors, no changes. The added lines have no em dashes, en dashes, spaced double hyphens, or semicolons outside &nbsp;.
  • UAT on the isolated 3100 server, v2.39.1-devel+df1ef73ac6 with the daily 6 experiments and fork-chat-wakeups: pass for the four wait_for_events pull request refusals and the whole secret question flow, from the needs_input note to Decline (gate comment). A real pull request watch wasn't run, because no account on 3100 has a linked GitHub account.

Xum opened this PR on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T22:26:46.839909Z 9a79e33 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

3100 gate for #161: PASS

Server v2.39.1-devel+df1ef73ac6, experiments chat-virtual-desktop, mcp-server-http, fork-chat-todos, fork-nested-subagents, fork-agent-definitions, plugins, and fork-chat-wakeups, read from /api/v2/experiments at 22:17 UTC. Member account, one child, run in an ops window.

PR wake-up refusals (#131). One root chat called wait_for_events four times, and each result matched the page:

Call Result
pull_request_events: ["review"], no URL pull_request_events requires pull_request_url
GitHub PR URL, pull_request_events: ["bogus"] unknown pull_request_events value "bogus", valid values are review, comment, checks, closed
https://github.com/coder/coder/pull/1 read pull request https://github.com/coder/coder/pull/1: the chat owner has no linked account for github.com
https://example.com/org/repo/pull/7 read pull request https://example.com/org/repo/pull/7: no git provider is configured for https://example.com/org/repo/pull/7

No call created a wake-up. A real pull request watch wasn't run, because no account on 3100 has a linked GitHub account.

Secret question (#153). A root chat spawned a general child that asked one secret: true question:

  • wait_agent returned needs_input: true with the note "The child asked the user for a secret value and waits for it. Only the user can give it, in the root chat."
  • message_agent to the child failed with cannot message the child agent: it waits for a secret answer, which only the user can give in the root chat.
  • A user message to the child returned 409 The chat's question takes a secret answer, which a chat message cannot carry., a 5-byte answer returned 400 with the 8-byte message, and a wrong tool_call_id returned 409.
  • The child's chat showed Answer this secret question in the question panel of the root chat. The root chat's page showed Question from, a password field, "The subagent's tools get this value, but the model never sees it.", Submit, and Decline.
  • After Submit (204), the child's message named {{secret:call_a9d28ce6}}. Its execute printed the SHA-256 of the value, which matched the value's hash computed outside the server, and echo of the placeholder printed seen={{secret:call_a9d28ce6}}. The value appeared in neither chat's transcript.
  • A second secret question, declined in the panel (204), reached the child as "The user declined to give a secret answer. Ask again without the secret option if the value is not sensitive, or continue without it."

Both chats were archived and uat3100-smoke was stopped afterwards.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 9a79e33253

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
ibetitsmike merged commit 6b1757f into main Nov 10, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-batch-pr-activity branch November 10, 2026 22:55
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum (AI agent) merged this on behalf of @ibetitsmike.

Merge evidence for head 9a79e33253d9707b4ff9b7a459445ada48642ccd:

  • Docs only (docs/fork/pstack-adapter.md). fork-ci pull_request run 42914201002 passed on this head; it merged cleanly onto main after feat(site): add the agent definition editor dialog #101, and main fork-ci on the squash commit gates the deploy. All checks green.
  • Codex on this exact head: no major issues (comment 6780978892). No review threads.
  • Gate on :3100 at df1ef73ac6 with fork-chat-wakeups on (gate comment 6780927372): the wait_for_events refusals (no pull request URL, an unknown event, a pull request with no linked GitHub account, a host with no provider) created no wake-ups, and a secret question from a child matched the rows: the child showed only the notice, a send to the child returned 409, a short value returned 400, the answer hash matched, and a decline reached the child. 3100 has no linked GitHub account, so no live pull request watch ran. Cleanup verified by Fork ops. The last commit only rewords the guidance to point the user to the question panel.

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.

1 participant