Skip to content

Define minimal-token AI-to-AI dialogue protocol in README#1

Draft
Copilot wants to merge 13 commits into
mainfrom
copilot/ai-to-ai-dialogo-a-token-minimi
Draft

Define minimal-token AI-to-AI dialogue protocol in README#1
Copilot wants to merge 13 commits into
mainfrom
copilot/ai-to-ai-dialogo-a-token-minimi

Conversation

Copilot AI commented May 23, 2026

Copy link
Copy Markdown

This PR introduces a compact, implementation-ready protocol for AI-to-AI exchanges optimized for minimal token usage. It standardizes message shape, payload constraints, and encoding/error semantics to reduce ambiguity across agents.

  • Protocol frame + semantics

    • Defines canonical line format: T|id|k|payload
    • Documents k kinds (Q, A, C, S, E) and turn-level constraints (single objective/result/next step)
    • Clarifies id progression and rollover behavior (INT32_MAX boundary with explicit rollover signal)
  • Payload contract

    • Establishes compact key/value convention with core keys (obj, res, err, next)
    • Adds extension rule for new keys via keydef=<chiave>:<significato> in the first S message of the task
    • Tightens parsing expectations with explicit delimiter usage and compact syntax
  • Deterministic encoding + fallback behavior

    • Specifies percent-encoding for reserved/control characters (space, ;, |, =, :, %, newline, carriage return, tab)
    • References RFC3986 unreserved characters as cleartext-safe
    • Defines ambiguity fallback message (E|err=ambiguous;next=clarify)
  • Executable examples

    • Adds concrete message examples for Q/A/C/S and detail-request pattern
T|17|Q|obj=test_scope;ctx=api_auth
T|18|A|res=2_fail;err=timeout;next=retry_1
T|19|C|act=run;cmd=pytest%20-k%20auth
T|20|S|res=pass;next=close
Original prompt

Protocollo per dialogo AI-to-AI a token minimi

Copilot AI changed the title [WIP] Implement protocol for AI-to-AI communication with minimal tokens Define minimal-token AI-to-AI dialogue protocol in README May 23, 2026
Copilot AI requested a review from PaoEng May 23, 2026 22:19
Copilot finished work on behalf of PaoEng May 23, 2026 22:19
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