macp-runtime 0.7.2

MACP reference runtime: a coordination kernel and gRPC server enforcing session boundaries, message validation, append-only history, modes, and governance policy.
Documentation
{
  "mode": "macp.mode.decision.v1",
  "initiator": "agent://orchestrator",
  "participants": [
    "agent://orchestrator",
    "agent://a",
    "agent://b"
  ],
  "mode_version": "1.0.0",
  "configuration_version": "cfg-1",
  "policy_version": "",
  "ttl_ms": 60000,
  "messages": [
    {
      "sender": "agent://outsider",
      "message_type": "Proposal",
      "payload_type": "macp.modes.decision.v1.ProposalPayload",
      "payload": {
        "proposal_id": "p1",
        "option": "deploy",
        "rationale": "ready",
        "supporting_data": []
      },
      "expect": "reject",
      "expected_error_code": "FORBIDDEN"
    },
    {
      "sender": "agent://orchestrator",
      "message_type": "Proposal",
      "payload_type": "macp.modes.decision.v1.ProposalPayload",
      "payload": {
        "proposal_id": "p1",
        "option": "deploy",
        "rationale": "ready",
        "supporting_data": []
      },
      "expect": "accept"
    },
    {
      "_comment": "RFC-MACP-0007 Section 5 rule 2 (:78): Objection MUST reference an existing proposal_id.",
      "sender": "agent://b",
      "message_type": "Objection",
      "payload_type": "macp.modes.decision.v1.ObjectionPayload",
      "payload": {
        "proposal_id": "p-does-not-exist",
        "reason": "cannot evaluate an objection against a proposal that was never submitted",
        "severity": "high"
      },
      "expect": "reject",
      "expected_error_code": "INVALID_ENVELOPE"
    },
    {
      "sender": "agent://a",
      "message_type": "Commitment",
      "payload_type": "macp.v1.CommitmentPayload",
      "payload": {
        "commitment_id": "c1",
        "action": "decision.selected",
        "authority_scope": "test",
        "reason": "done",
        "mode_version": "1.0.0",
        "policy_version": "policy.default",
        "configuration_version": "cfg-1",
        "outcome_positive": true
      },
      "expect": "reject",
      "expected_error_code": "FORBIDDEN"
    },
    {
      "sender": "agent://a",
      "message_type": "Vote",
      "payload_type": "macp.modes.decision.v1.VotePayload",
      "payload": {
        "proposal_id": "p1",
        "vote": "APPROVE",
        "reason": "good"
      },
      "expect": "accept"
    },
    {
      "_comment": "RFC-MACP-0007 Section 5 rule 3: a second, distinct Vote from a sender who already cast one for the same proposal_id MUST be rejected; the first accepted Vote stands.",
      "sender": "agent://a",
      "message_type": "Vote",
      "payload_type": "macp.modes.decision.v1.VotePayload",
      "payload": {
        "proposal_id": "p1",
        "vote": "REJECT",
        "reason": "changed my mind after re-reading the proposal"
      },
      "expect": "reject",
      "expected_error_code": "INVALID_ENVELOPE"
    },
    {
      "sender": "agent://b",
      "message_type": "Evaluation",
      "payload_type": "macp.modes.decision.v1.EvaluationPayload",
      "payload": {
        "proposal_id": "p1",
        "recommendation": "APPROVE",
        "confidence": 0.7,
        "reason": "late"
      },
      "expect": "reject",
      "expected_error_code": "INVALID_ENVELOPE"
    }
  ],
  "expected_final_state": "Open",
  "expected_mode_state": {
    "phase": "Voting",
    "votes": {
      "p1": {
        "agent://a": {
          "vote": "APPROVE"
        }
      }
    }
  },
  "expect_resolution_present": false
}