Buckets:
| from __future__ import annotations | |
| from pathlib import Path | |
| from n21.config import write_json | |
| def write_iteration_evidence(path: Path, evidence: dict[str, object]) -> None: | |
| path.mkdir(parents=True, exist_ok=True) | |
| write_json(path / "iteration_evidence.json", evidence) | |
| rationale = evidence.get("rationale", []) | |
| lines = [ | |
| f"# Iteration Evidence: {evidence.get('iteration_id')}", | |
| "", | |
| f"Run: `{evidence.get('run_id')}`", | |
| f"Gate result: `{evidence.get('gate_result')}`", | |
| f"Promotion recommendation: `{evidence.get('promotion_recommendation')}`", | |
| "", | |
| "## Rationale", | |
| "", | |
| ] | |
| lines.extend(f"- {item}" for item in rationale) | |
| (path / "iteration_evidence.md").write_text("\n".join(lines) + "\n", encoding="utf-8") | |
Xet Storage Details
- Size:
- 799 Bytes
- Xet hash:
- 51f28b80789fa544d0280f6f01bbaac8e110b3ee99158ea54deae420839e1a37
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.