Skip to content

test(platform): the prompts the connect dialogs hand to a coding agent have never been run by a model #4975

Open

Description

@yannickmonney

Summary

The connect dialogs give a person a first prompt to paste into their agent: a general one on the Connected agents page and the MCP settings page, one to edit an automation (the editor's button), one for a failed run and one to create an automation. The tests check that every tool a prompt names exists and that a prompt holds a bracketed part only where it asks the person to fill something in. No prompt has been given to a model, by a test or by a person. This issue records what is and is not covered and lists options. It states no preference.

What the repository says (main at 8a0732529c)

  • The prompts. services/platform/messages/en/codingAgent.yml:23-30 (prompt.general, edit, run, create), with German and French twins, built by services/platform/app/features/coding-agent/lib/prompts.ts:15-24.
  • What the tests assert. app/features/coding-agent/lib/prompts.test.ts (111 lines, three locales): every tool-shaped word is a tool of MCP_TOOLS; the edit and run prompts name the automation and the run; the edit and create prompts hold a bracketed place and the general and run prompts none (the dialog marks every bracket as something to replace).
  • What tests the server's own prompts. services/platform/lib/mcp/prompts.test.ts:20, :48: the prompts against the tool inventory and their argument shapes.
  • Any model-backed check: none found. No file of the repository has eval in its name, and no test calls a model with a prompt.
  • What an agent is told anyway. The server's instructions reach every agent at initialize (services/platform/lib/mcp/instructions.ts), and the guide says a client that honours Tale's marking asks before it deploys, deletes, sets a trigger or installs (docs/en/platform/automations/assistant.md:26).

What was observed

2026-10-13: the real Claude Code 2.1.296 and the real Codex 0.162.0 each signed in to a Tale stack through the consent page (#4958, #4962, #4967), and Claude Code listed the server as "✔ Connected". A model turn was not run. The throwaway Claude Code configuration used for those tests had no account login (claude -p answered "Not logged in · Please run /login"), and no model account was used for this.

What tests cannot see

  • Whether a model follows the steps in the order the prompt gives and with arguments the server accepts: save_automation with create: true for a new name, a baseVersion for an edit, get_run with the record for a failed run.
  • Whether the agent asks before it deploys, as each prompt tells it to.
  • How a model treats a German or French prompt that carries English tool names.
  • Whether the prompts leave an agent that is new to Tale better off than the server's instructions alone.

What was not examined

  • How often a person pastes the prompt rather than typing their own.
  • Which models and clients are the likely users.
  • Whether the team has an evaluation approach for agent-facing text outside this repository.

Options (no preference stated)

  1. A manual round: one real agent session per prompt and client, with the transcript kept in the manual layer (this fits the round in test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933).
  2. A scripted run with a real model against a stand-in Tale, started by hand and not in CI.
  3. A structural check without a model: that each prompt's steps follow an order the MCP server accepts.
  4. Leave it: rely on the server's instructions and on reports from people.

Questions

  • What assurance do these prompts need: a one-time observation or a repeatable check?
  • Who has a model account to run it, and with which clients?

Related

#4933, #4958, #4959, #4965, #4966, #4976

Activity

  1. added
    priority: low
    needs discussion
    improvement
    service: platform
    on Oct 13, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    Two layers check the connect-dialog prompts.

    1. A structural check in CI, with no model. Each dialog prompt context (general, create, edit, run) gets a declared step plan in app/features/coding-agent/lib/prompts.ts: the tools it names, in order, and the arguments each step must name. A unit test renders every context in en, de and fr and asserts:

      • the tools appear in the plan's order, the same in every locale;
      • every named argument is a real key of that tool's input schema;
      • get_docs comes first; in create and edit, validate_automation and test_automation come before save_automation; the run prompt goes get_run, get_automation, run_automation, then save_automation;
      • no destructive tool is named, deploy_automation included;
      • save_automation carries baseVersion when editing or fixing and create: true when creating; get_run carries include: ["record"];
      • only the edit and create prompts hold a part to fill in;
      • every prompt ends with one shared sentence, codingAgent.prompt.confirm ("Ask me before you deploy anything or change a setting"), which buildPrompt appends.

      Arguments are written in code form, as the server's own MCP prompts write them. One shared placeholder pattern treats a bracket that starts with a quote as a JSON array rather than a part to replace. The dialog and the tests both use it, so ["record"] is not highlighted.

    2. A manual layer. New boxes MCP-F17 to MCP-F20 in the MCP manual suite: paste each dialog prompt into a real Claude Code session and a real Codex session, and judge the step order, whether the server accepted every argument, whether saves carried baseVersion, and whether the agent asked before deploying. The German edit prompt runs once. The boxes run again whenever a prompt's text changes. The first round runs with test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933.

    A scripted real-model run (option 2) and leaving it as it is (option 4) are rejected.

    Answers

    • What assurance do these prompts need? Both kinds. CI checks the deterministic properties on every change. What only a model can show goes into re-runnable manual boxes.
    • Who has a model account, and with which clients? The person who runs the round uses their own Claude Code or Codex seat. CI needs no model key, and there is no new spend.

    Rationale

    The edit and run prompts tell the agent to save with save_automation but never mention baseVersion. The server's own prompts and the tool's description both require it, so that a version saved in the meantime is not overwritten. A structural check closes this gap without a model and keeps it from coming back. It also holds the only confirmation sentence in one place that no translation can drop. Tool order and argument names are deterministic facts, so they belong in CI. Whether a model obeys them is a judgment for the manual layer against the real stack. A scripted model run would need a secret and money on every run, and its result would vary from run to run.

    Implementation units

    1. fix(platform): hold the coding-agent prompts to a step plan the MCP server accepts (main, M). Add the step plans, the shared placeholder pattern (used by the dialog too) and the shared confirm sentence. Rewrite the en/de/fr prompts with code-form arguments, adding baseVersion to edit and run. Extend prompts.test.ts. Acceptance: all checks pass in all three locales, the run prompt shows no highlighted part, a mutated argument or step order fails the test, and bun run check is green.
    2. test(platform): manual boxes for the dialog prompts run by a real agent (main, S, after 1). Add MCP-F17 to MCP-F20, the seat requirement in setup.md, entries in pins.md, and an automation.md row for prompts.test.ts. Acceptance: bun run lint:manual is green and nothing is renumbered.
    3. test(platform): run the dialog-prompt boxes in a manual round (main, M, after 2). Run the four prompts with both clients, plus the German prompt, alongside test(platform): verify coding-agent sign-in end to end with Claude Code, Cursor, VS Code, Gemini CLI and claude.ai #4933. Acceptance: a runs/r<nnnn>.md record with transcript excerpts, and one issue per failed box.

    Related: #4976. These step plans are a natural input if #4976 later compares the dialog prompts with the MCP prompts, but this decision does not settle #4976.

    Cross-issue amendments (decisions taken together with #4976, #4972, #4973):

  3. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions