Skip to content

HeraldModule

Herald — agent-to-agent negotiation (N3.1).

Proposals, counters, and commitments are typed Pulse messages. Each commit is gated by aegis.check_capability() against the INITIATOR’s manifest, and the full transcript is recorded in Chronicle.

  • Version: 1.0.0
  • Class: HeraldModule
  • Module name: herald

General purpose module.

async open_negotiation(self, ctx) -> dict[str, Any]

Section titled “async open_negotiation(self, ctx) -> dict[str, Any]”

async counter(self, ctx, negotiation_id) -> dict[str, Any]

Section titled “async counter(self, ctx, negotiation_id) -> dict[str, Any]”

async respond(self, ctx, negotiation_id) -> dict[str, Any]

Section titled “async respond(self, ctx, negotiation_id) -> dict[str, Any]”

async commit(self, ctx, negotiation_id) -> dict[str, Any]

Section titled “async commit(self, ctx, negotiation_id) -> dict[str, Any]”

async maybe_auto_accept(self, ctx, negotiation_id) -> dict[str, Any]

Section titled “async maybe_auto_accept(self, ctx, negotiation_id) -> dict[str, Any]”

Policy-driven auto-accept of a strictly-dominating counter.

This is Herald’s only automated behavior. It is OFF by default and gated by herald_autoaccept_enabled() (env + kill file). When disabled it no-ops and logs the skip; manual negotiation is unaffected.

get(self, negotiation_id) -> dict[str, Any] | None

Section titled “get(self, negotiation_id) -> dict[str, Any] | None”

async handle(self, message: str, context: dict[str, Any]) -> str

Section titled “async handle(self, message: str, context: dict[str, Any]) -> str”