Files
srbhr--resume-matcher/apps/backend/e2e_monitor/manifest.py
T
wehub-resource-sync 5bdf4cc89a
Publish Docker Image / publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:36 +08:00

23 lines
682 B
Python

"""Build the run manifest (provider/model/git SHA + scrubbed config)."""
from __future__ import annotations
from typing import Any
from e2e_monitor.scrub import scrub_config
def build_manifest(
*, run_id: str, git_sha: str, config: dict[str, Any], started_at: str
) -> dict[str, Any]:
"""Assemble the manifest dict. ``config`` is the real ``data/config.json``;
only non-secret fields surface, the rest are redacted."""
return {
"run_id": run_id,
"started_at": started_at,
"git_sha": git_sha,
"provider": config.get("provider", ""),
"model": config.get("model", ""),
"config_snapshot": scrub_config(config),
}