feat(ingest): Use orchestrator-provided INGEST_MODEL for log attribution

This commit is contained in:
Matteo Cherubini 2026-06-05 09:33:45 +02:00
parent 76700cd2a6
commit 39775398f7

View file

@ -27,7 +27,9 @@ command -v python3 >/dev/null 2>&1 || fail "deps" "python3 missing (needed by in
# --- read manifest scalars ---
raw_source="$(jq -r '.raw_source' "$manifest")"
model="$(jq -r '.model // "unknown"' "$manifest")"
# model name comes from the orchestrator/wrapper (INGEST_MODEL); the agent cannot know its
# own tag, so we do not trust a self-reported manifest field. Fall back only if unset.
model="${INGEST_MODEL:-$(jq -r '.model // "unknown"' "$manifest")}"
reasoning="$(jq -r '.reasoning // "Ingest."' "$manifest")"
pr_summary="$(jq -r '.pr_summary // "Ingest."' "$manifest")"
contradictions="$(jq -r '.contradictions // "None"' "$manifest")"