AttractorEx.StatusContract (attractor_phoenix v0.1.0)

Copy Markdown View Source

Serializes handler outcomes into the status.json artifact contract.

The payload shape is aligned with the Appendix C-style status fields used by the upstream Attractor documentation while preserving a few backward-compatible aliases.

Summary

Functions

Builds a normalized runtime map representation of an outcome.

Builds the on-disk status-file payload for an outcome.

Writes a pretty-printed status.json payload to disk.

Functions

serialize_outcome(outcome)

Builds a normalized runtime map representation of an outcome.

status_file_payload(outcome)

Builds the on-disk status-file payload for an outcome.

write_status_file(path, outcome)

Writes a pretty-printed status.json payload to disk.