gabriel / musehub public
feat patch phase3 task/phase3-gravity-provider #1 / 1
AI Agent gabriel · 138 days ago · May 3, 2026 · Diff

feat(phase3): GravityProvider — intel.code.gravity job type

Runs muse code gravity --json on push, upserts gravity_pct/direct/ transitive/max_depth/depth_dist/symbol_kind into musehub_symbol_intel. Churn/blast columns untouched. Registered in _PROVIDER_REGISTRY and job_types_for_push('code'). 16 TDD tests passing.

sha256:b7ee8f1e78d641739be491550f45948b816f4b5e070c7280033d6de5691cc3a3 sha
+39 ~2 symbols
sha256:ddb918eb62aac253f6f18a8f4a0ad6a181c8300a8df6ff2c62fd1720fe1f7f1b snapshot
+39
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 41 symbols
~ tests/test_phase3_gravity_provider.py .py 37 symbols added
+ TestGravityProviderDispatch class class TestGravityProviderDispatch L100–115
+ test_P3_31_job_types_for_push_code_includes_gravity method method test_P3_31_job_types_for_push_code_includes_gravity L102–105
+ test_P3_32_job_types_for_push_midi_excludes_gravity method method test_P3_32_job_types_for_push_midi_excludes_gravity L107–109
+ test_P3_33_job_types_for_push_legacy_types_intact method method test_P3_33_job_types_for_push_legacy_types_intact L111–115
+ TestGravityProviderEmpty class class TestGravityProviderEmpty L379–408
+ test_P3_42_empty_symbols_returns_empty_list method async_method test_P3_42_empty_symbols_returns_empty_list L382–394
+ test_P3_43_missing_symbols_key_returns_empty_list method async_method test_P3_43_missing_symbols_key_returns_empty_list L397–408
+ TestGravityProviderError class class TestGravityProviderError L415–430
+ test_P3_44_nonzero_exit_returns_empty_list method async_method test_P3_44_nonzero_exit_returns_empty_list L418–430
+ TestGravityProviderIdempotent class class TestGravityProviderIdempotent L304–372
+ test_P3_40_gravity_upsert_idempotent method async_method test_P3_40_gravity_upsert_idempotent L307–326
+ test_P3_41_gravity_upsert_overwrites_stale_value method async_method test_P3_41_gravity_upsert_overwrites_stale_value L329–372
+ TestGravityProviderJsonb class class TestGravityProviderJsonb L246–297
+ test_P3_38_depth_dist_stored_as_dict method async_method test_P3_38_depth_dist_stored_as_dict L249–271
+ test_P3_39_depth_dist_shallow_broad_shape method async_method test_P3_39_depth_dist_shallow_broad_shape L274–297
+ TestGravityProviderPreserve class class TestGravityProviderPreserve L198–239
+ test_P3_37_gravity_upsert_preserves_churn method async_method test_P3_37_gravity_upsert_preserves_churn L201–239
+ TestGravityProviderRegistry class class TestGravityProviderRegistry L82–93
+ test_P3_29_gravity_in_provider_registry method method test_P3_29_gravity_in_provider_registry L84–88
+ test_P3_30_gravity_satisfies_intel_provider_protocol method method test_P3_30_gravity_satisfies_intel_provider_protocol L90–93
+ TestGravityProviderWrite class class TestGravityProviderWrite L122–191
+ test_P3_34_gravity_upserts_symbol_intel_rows method async_method test_P3_34_gravity_upserts_symbol_intel_rows L125–145
+ test_P3_35_gravity_all_six_columns_written method async_method test_P3_35_gravity_all_six_columns_written L148–173
+ test_P3_36_gravity_returns_non_empty_intel_results method async_method test_P3_36_gravity_returns_non_empty_intel_results L176–191
+ _GRAVITY_OUTPUT variable variable _GRAVITY_OUTPUT L48–75
+ _mock_process function function _mock_process L41–45
+ _uid function function _uid L37–38
+ AsyncMock import import AsyncMock L27–27
+ AsyncSession import import AsyncSession L31–31
+ annotations import import annotations L23–23
+ create_repo import import create_repo L34–34
+ fake_id import import fake_id L33–33
+ json import import json L25–25
+ patch import import patch L27–27
+ pytest import import pytest L29–29
+ secrets import import secrets L26–26
+ select import import select L30–30
~ musehub/services/musehub_intel_providers.py .py 2 symbols added, 2 symbols modified
+ GravityProvider class class GravityProvider L946–993
+ compute method async_method compute L954–993
← Older Oldest on task/phase3-gravity-provider
All commits
Newer → Latest on task/phase3-gravity-provider

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:b7ee8f1e78d641739be491550f45948b816f4b5e070c7280033d6de5691cc3a3 --body "your comment"