Cohere.Intent.Card (Cohere v0.1.0)

Copy Markdown View Source

One authored intent card: the thin layer of truth that cannot be derived.

A card belongs to one context and holds only what reflection can't see: purpose, invariants, decisions with their rejected alternatives, non-goals, and open questions. Everything else belongs in the derived map.

The frontmatter binds the card to a surface: the context's public function list and its hash at the time the card was last reviewed. When the real surface moves, the card is drifted — mechanically detectable, never silently stale.

Summary

Functions

The canonical section headings, in order.

Types

t()

@type t() :: %Cohere.Intent.Card{
  body: String.t(),
  context: module() | nil,
  functions: [{atom(), non_neg_integer()}],
  path: String.t() | nil,
  reviewed: String.t() | nil,
  sections: %{required(String.t()) => String.t()},
  surface: String.t() | nil
}

Functions

sections()

The canonical section headings, in order.