Skip to content

feat: get_session_brief, and instructions that match the Server's code-fix rule - #9

Closed
boehlerlukas wants to merge 8 commits into
mainfrom
operator/session-brief
Closed

boehlerlukas wants to merge 8 commits into
mainfrom
operator/session-brief

Conversation

@boehlerlukas

@boehlerlukas boehlerlukas commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Contains the commits of #1 (feat/session-brief: get_session_brief, the coding-session kickoff from the Server) plus one fix on top:

  • Instructions match the Server's code-fix rule. The Server refuses send_message from a session started from a ticket's code fix, and its brief says: report through report_progress, never write to the customer, Kai tells the customer. Rules 1 and 2 of SERVER_INSTRUCTIONS said the session owns the ticket until it is solved, that "Gleap never refuses your writes", and to send approved customer messages with send_message. Now: a code-fix session owns the ticket until its pull request is open, never sends to the customer and drafts in report_progress (customerLine, customerUpdateMessage, customerShipMessage, which the Server still accepts); a person's own AI client working a ticket outside a code fix keeps the ask-your-operator-then-send rule. The README's send_message and draft_reply_to_composer lines say the same. A new test in tests/mcp-endpoint.test.ts pins the instruction text.

Supersedes #1 if accepted. Depends on the Server branch operator/17-merged-runs being deployed first (that is where the Server refuses send_message from a code-fix session).

Checks: npm run typecheck clean, npm test passes, npm run quality 0 problems (3 warnings, all in #1's src/tools/session.tool.ts / files this fix did not add).

25 November

  • report_progress accepts agentKind: "antigravity" (Google Antigravity as a Kai Bridge agent; the Server accepts it in the same PR set). npm test passes.

🤖 Generated with Claude Code

boehlerlukas and others added 5 commits November 21, 2026 08:18
Moved from the private archive repo (PR #116 there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent-workflow route

The Server serves a session's brief on GET /gleapcode/sessions/{id}/agent-workflow
without a kind, as Markdown in `markdown` (`brief` is its structured form).
There is no agent-brief route. The required behaviour changed, so this test changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Server has no agent-brief route: it serves a session's brief on
GET /gleapcode/sessions/{id}/agent-workflow without a kind, as Markdown in
`markdown`. get_session_brief now calls that route and returns that text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain's tests do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the customer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boehlerlukas

Copy link
Copy Markdown
Contributor Author

Closing in favour of #14 (branch engine/clean), which contains every commit of this branch. The branch itself is left as it is.

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