MACP Policy Registry
Governance Policies define deterministic, replay-safe governance rules that are evaluated at commitment time within MACP Sessions.
Identifier Format
Policy identifiers use the form:
policy.{namespace}.{name}
Example:
policy.fraud.majority-veto
Reserved Policies
| Policy ID | Mode | Description | Provision | Reference |
|---|---|---|---|---|
policy.default | * | Default policy — no additional governance constraints beyond the mode's built-in rules | required | RFC-MACP-0012 §5.1 |
policy.std.majority | macp.mode.decision.v1 | Simple majority — at least half of the decisive votes approve, minimum 1 voter | optional | RFC-MACP-0012 §5.2 |
policy.std.supermajority | macp.mode.decision.v1 | Two-thirds supermajority, minimum 2 voters | optional | RFC-MACP-0012 §5.2 |
policy.std.unanimous | macp.mode.decision.v1 | Every declared participant approves and no reject is cast | optional | RFC-MACP-0012 §5.2 |
The policy.default identifier is reserved and MUST NOT be registered or unregistered. It is pre-registered in every conformant runtime.
The whole policy.std. namespace is reserved. A runtime MAY pre-register any subset of the profiles above, including none of them — reservation is a collision guarantee, not a provisioning requirement. A runtime that does provide one MUST use the canonical rules in RFC-MACP-0012 §5.2 verbatim, and a SessionStart naming a policy.std. identifier the runtime does not provide is rejected with UNKNOWN_POLICY_VERSION. Identifiers under policy.std. not listed above are reserved but unassigned.
Short unnamespaced identifiers such as policy.majority are not reserved and remain available to deployments. Deployments SHOULD still use their own namespace (policy.{org}.{name}) so that later additions under policy.std. cannot collide with local rules.
Registration
Policies are registered with the runtime via:
- gRPC
RegisterPolicyRPC — dynamic registration at runtime - File loading from
MACP_POLICIES_DIR— static loading at startup (implementation-defined)
Both paths are admission: the descriptor-schema and rule-schema validation required by RFC-MACP-0012 §7 runs when a descriptor is registered or loaded, against the schemas the runtime ships — and never again afterwards. An unsupported schema_version and an unimplemented vendor-extension key are both rejected here, with INVALID_POLICY_DEFINITION (§3, §4). Because these schemas can tighten between releases, a policy file that loaded under an earlier release may fail to load under a later one. Such a failure bars new sessions from binding that policy; it MUST NOT affect stored sessions, which replay from the persisted PolicyDescriptor without revalidation (RFC-MACP-0012 §8, items 2 and 4), never from MACP_POLICIES_DIR.
Rule Schemas
Each standard mode defines a normative JSON Schema for its governance rules:
| Mode | Rule Schema | Reference |
|---|---|---|
macp.mode.decision.v1 | schemas/json/policy/decision-rules.schema.json | RFC-MACP-0012 Section 4.1 |
macp.mode.quorum.v1 | schemas/json/policy/quorum-rules.schema.json | RFC-MACP-0012 Section 4.2 |
macp.mode.proposal.v1 | schemas/json/policy/proposal-rules.schema.json | RFC-MACP-0012 Section 4.3 |
macp.mode.task.v1 | schemas/json/policy/task-rules.schema.json | RFC-MACP-0012 Section 4.4 |
macp.mode.handoff.v1 | schemas/json/policy/handoff-rules.schema.json | RFC-MACP-0012 Section 4.5 |
Vendor-Extension Keys
A rules object MAY carry vendor-extension keys at its top level, for restrictions MACP does not define (RFC-MACP-0012 §4). This registry does not allocate them. The name is the vendor's own reverse-domain identifier after an x- prefix, matching ^x-[a-z0-9]+(\.[a-z0-9-]+)+$. For example, x-com.example.governance belongs to whoever controls example.com. Collision avoidance rests on domain ownership, the same convention used for reverse-domain extension mode identifiers. A vendor SHOULD use only a domain it controls and SHOULD publish the extension's keys, value types and restriction semantics.
The rule schemas enforce only the key's shape: its name, its top-level position and an object value. The extension's contents are validated by the runtime that implements it. A runtime that does not implement a given key rejects the descriptor at admission, and a runtime MAY advertise the keys it implements in PolicyRegistryCapability.rule_extensions (RFC-MACP-0012 §9).
Known Vendor Extensions (informative)
This list helps implementers find published extensions and avoid accidental overlap. It is not an allocation: being listed confers no ownership beyond the domain the key is already derived from, and an unlisted key is just as valid. A vendor MAY add its own key by pull request, linking to the published definition of its keys, value types and restriction semantics.
| Key | Defined by | Purpose | Definition |
|---|---|---|---|
x-com.zer07labs.seam | Seam (zer07labs.com) | capture_dissent: true refuses a Vote whose reason is empty or whitespace. | RFC-MACP-0012 §4 (non-normative example) |