gabriel / musehub public
feat BREAKING 9A-4 F7 feat/9a-4-f7-overseer-provenance #2 / 2
aaronrene · 8 days ago · Jul 11, 2026 · Diff

feat(9A-4 F7): overseer-run provenance enrichment API for Scooling consumer.

Adds read-only GET /api/overseer-run-provenance/{run_ref} with env gate MUSEHUB_OVERSEER_PROVENANCE_ENRICHMENT=enabled and in-memory fixture row for flow_run:fixture-overseer-001. Closes musehub #144 delivery path (MP next).

sha256:42bc547653458bb15e283222247af0237872d9cb5c2a72ad2ca1c111ed2c0ca4 sha
+40 ~1 symbols
4 changed · 1033 in snapshot files
sha256:bb9b5d4a4c7de7c7e669bdd9242ac426eaf824b7e8629e504c975f8d8a08a7bf snapshot
+40
symbols added
~1
symbol modified
4
files changed
1033
files in snapshot
0
dead code introduced
Semantic Changes 41 symbols
+ _require_enrichment_enabled function function _require_enrichment_enabled L16–18
+ get_overseer_run_provenance function async_function get_overseer_run_provenance L26–41
+ APIRouter import import APIRouter L8–8
+ Depends import import Depends L8–8
+ HTTPException import import HTTPException L8–8
+ TokenClaims import import TokenClaims L9–9
+ annotations import import annotations L6–6
+ enrichment import import enrichment L11–11
+ optional_token import import optional_token L9–9
+ status import import status L8–8
+ router variable variable router L13–13
+ CONTRACT_VERSION variable variable CONTRACT_VERSION L17–17
+ HASH_RE variable variable HASH_RE L19–19
+ OVERSEER_PROVENANCE_ENRICHMENT_AUTHORIZED variable variable OVERSEER_PROVENANCE_ENRICHMENT_AUTHORIZED L16–16
+ OverseerRunProvenanceRecord class class OverseerRunProvenanceRecord L24–36
+ RUN_REF_RE variable variable RUN_REF_RE L18–18
+ SAFE_IDENTIFIER_RE variable variable SAFE_IDENTIFIER_RE L20–20
+ _ENRICHMENT_STORE variable variable _ENRICHMENT_STORE L88–101
+ _serialize_record function function _serialize_record L69–84
+ _validate_record_shape function function _validate_record_shape L47–66
+ default_produced_at function function default_produced_at L130–131
+ get_overseer_run_provenance function function get_overseer_run_provenance L111–127
+ Any import import Any L12–12
+ UTC import import UTC L11–11
+ annotations import import annotations L7–7
+ dataclass class import dataclass L10–10
+ datetime import import datetime L11–11
+ re import import re L9–9
+ settings import import settings L14–14
+ is_overseer_provenance_enrichment_enabled function function is_overseer_provenance_enrichment_enabled L39–44
+ seed_overseer_provenance_record function function seed_overseer_provenance_record L104–108
+ annotations import import annotations L3–3
+ enrichment import import enrichment L7–7
+ pytest import import pytest L5–5
+ test_fixture_run_ref_returns_content_free_envelope function function test_fixture_run_ref_returns_content_free_envelope L10–22
+ test_gate_off_when_env_disabled function function test_gate_off_when_env_disabled L33–39
+ test_gate_on_when_env_enabled function function test_gate_on_when_env_enabled L42–48
+ test_invalid_run_ref_returns_none function function test_invalid_run_ref_returns_none L29–30
+ test_seed_rejects_invalid_record function function test_seed_rejects_invalid_record L51–65
+ test_unknown_run_ref_returns_none function function test_unknown_run_ref_returns_none L25–26
~ musehub/config.py .py 1 symbol modified
Files Changed
+3 ~1
1033 in snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:42bc547653458bb15e283222247af0237872d9cb5c2a72ad2ca1c111ed2c0ca4 --body "your comment"