gabriel / musehub public
feat patch intel task/intel-production-allowlist #3 / 3
AI Agent gabriel · 3 days ago · Nov 13, 2026 · Diff

feat(intel): allow production intel execution for explicitly listed repositories only

Production joins the deployments that may run intel.* jobs, but still only for a repository whose exact id is in MUSEHUB_INTEL_WORKER_REPOS and only when MUSEHUB_DEPLOYMENT and MUSE_ENV both say production. Empty allowlist, wildcards, prefixes, unlisted repositories, unknown or mismatched identity all refuse; the localhost experiment runner stays local-only (D5).

Tests: D2/D6 rewritten for the new boundary; worker-level production test proves the listed repository computes while an identical unlisted one is skipped. Focused: 143 passed (gate, job state machine, failure hardening, experiment).

sha256:4a18e5cebf34af33a6c511683aec240fe33af4f9254a7e1b8251d0bfb296aca0 sha
+7 ~3 −2 symbols
3 changed · 1266 in snapshot files
sha256:84844ec05a3579b1f78f62a9e5aa10342fc22576a591d732dca8ec48bc7a367b snapshot
+7
symbols added
~3
symbols modified
−2
symbols removed
3
files changed
1266
files in snapshot
0
dead code introduced
Semantic Changes 12 symbols
~ tests/test_intel_deployment_gate.py .py 5 symbols added, 2 symbols removed, 1 symbol modified
− test_d2_production_refuses_whatever_else_is_set function function test_d2_production_refuses_whatever_else_is_set L50–54
− test_d6_production_identity_is_refused_whatever_muse_env_says function function test_d6_production_identity_is_refused_whatever_muse_env_says L120–122
+ test_d2_an_inherited_local_or_staging_allowlist_does_not_enable_production function function test_d2_an_inherited_local_or_staging_allowlist_does_not_enable_production L75–79
+ test_d2_production_listing_is_per_repository_and_reread function function test_d2_production_listing_is_per_repository_and_reread L67–72
+ test_d2_production_runs_only_an_exactly_listed_repository function function test_d2_production_runs_only_an_exactly_listed_repository L51–57
+ test_d2_production_without_an_exact_listing_refuses function function test_d2_production_without_an_exact_listing_refuses L61–64
+ test_d6_production_identity_needs_a_matching_muse_env function function test_d6_production_identity_needs_a_matching_muse_env L147–149
+ test_production_runs_only_the_listed_repository_and_skips_every_other function async_function test_production_runs_only_the_listed_repository_and_skips_every_other L118–134
+ test_production_without_an_exact_listing_or_matching_identity_skips function async_function test_production_without_an_exact_listing_or_matching_identity_skips L139–148
Files Changed
~3
1266 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:4a18e5cebf34af33a6c511683aec240fe33af4f9254a7e1b8251d0bfb296aca0 --body "your comment"