Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.3 KB

File metadata and controls

59 lines (49 loc) · 1.3 KB

invoke

Use invoke when you want one blocking wrapper call that drives one or more managed channels and waits for settled results.

Accepted commands

  • sync
  • review-this-plan
  • review-this-work
  • execute-this-plan
  • execute-this-plan-part

Rules

  • if all requests are read-only, invoke runs them concurrently
  • if any request mutates, invoke runs all requests sequentially
  • do not target the same channel twice in one invoke call
  • the wrapper reply may prepend an Invoker-facing skill-usage reminder block; treat it as caller guidance, not as managed channel output
  • inside the wrapper output, read blocks in order:
    • INVOKER_SKILL_USAGE_*
    • CHANNEL_REPLY
    • then inside INVOKE_SUMMARY, each INVOKE_RESULT may contain optional GOVERNOR_REVIEW and optional USER_ESCALATION_REQUEST

Input

Single request:

{
  "command": "review-this-plan",
  "mams_channel": "reviewer-a",
  "input": {
    "plan_for_review": "..."
  }
}

Multiple requests:

{
  "requests": [
    {
      "command": "review-this-plan",
      "mams_channel": "reviewer-a",
      "input": {
        "plan_for_review": "..."
      }
    },
    {
      "command": "review-this-plan",
      "mams_channel": "reviewer-b",
      "input": {
        "plan_for_review": "..."
      }
    }
  ]
}