Skip to content

voiage.decision_card.DecisionCard

Auditable Decision Card record.

to_dict([positional or keyword] self: None = None) -> dict[str, Any]

Convert DecisionCard to JSON-serializable dictionary.

Parameters:

  • self

Returns: dict[str, Any]

from_dict([positional or keyword] cls: None = None, [positional or keyword] data: dict[str, Any] = None) -> DecisionCard

Construct DecisionCard from a dictionary.

Parameters:

  • cls
  • data dict[str, Any]

Returns: DecisionCard

to_json([positional or keyword] self: None = None, [positional or keyword] indent: int = 2) -> str

Serialize DecisionCard to formatted JSON string.

Parameters:

  • self
  • indent int (default: 2)

Returns: str

from_json([positional or keyword] cls: None = None, [positional or keyword] json_str: str = None) -> DecisionCard

Deserialize DecisionCard from JSON string.

Parameters:

  • cls
  • json_str str

Returns: DecisionCard

compute_hash([positional or keyword] self: None = None) -> str

Compute deterministic SHA-256 hash of the decision card contents.

Parameters:

  • self

Returns: str

to_markdown([positional or keyword] self: None = None) -> str

Render the DecisionCard as clean executive Markdown.

Parameters:

  • self

Returns: str

to_html([positional or keyword] self: None = None) -> str

Render the DecisionCard as self-contained HTML.

Parameters:

  • self

Returns: str