Skip to content

Make DecisionCertificate stringify to summary#6

Open
Rajesh270712 wants to merge 1 commit into
raphaelrrcoelho:mainfrom
Rajesh270712:reputation/REP-PR-012-decisioncertificate-str
Open

Make DecisionCertificate stringify to summary#6
Rajesh270712 wants to merge 1 commit into
raphaelrrcoelho:mainfrom
Rajesh270712:reputation/REP-PR-012-decisioncertificate-str

Conversation

@Rajesh270712

Copy link
Copy Markdown

Summary

Closes #1.

Makes DecisionCertificate.__str__ return the existing human-readable summary and adds a focused regression assertion for that behavior.

Causal / software contract

This is a small software-contract change for string conversion only. It does not change certify_decision logic, tuple fields, or repr(cert) behavior.

Validation

  • Tests added/updated
  • python3 -m uv run pytest tests/test_certify_decision.py::TestOrchestration::test_summary_is_human_readable -> 1 passed
  • python3 -m uv run pytest tests/test_certify_decision.py -> 10 passed
  • python3 -m uv run pytest -> 455 passed, 1 skipped
  • python3 -m uv run ruff check . -> passed
  • python3 -m uv run ruff format --check . -> passed
  • python3 -m uv run pyright src -> passed

Risk notes

The behavior change is limited to str(cert). repr(cert) remains the default tuple-style representation, and no causal algorithm semantics are changed.

Docs/CHANGELOG were not updated because this matches the focused issue request; I can add a short note if preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DecisionCertificate.__str__ should return the human-readable summary

1 participant