From 39775398f7212c8636ea6a9c4c8513166f98dc01 Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Fri, 5 Jun 2026 09:33:45 +0200 Subject: [PATCH] feat(ingest): Use orchestrator-provided INGEST_MODEL for log attribution --- skills/ingest/scripts/run-ingest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skills/ingest/scripts/run-ingest.sh b/skills/ingest/scripts/run-ingest.sh index 5bb6964..4ae9c97 100644 --- a/skills/ingest/scripts/run-ingest.sh +++ b/skills/ingest/scripts/run-ingest.sh @@ -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")"