chore: remove unused CORROBORATION_SOURCE_HOOK_INGEST - #335
Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughCorroboration source-type constants in the models module were updated: ChangesCorroboration Source Type Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR removes the unused corroboration source constant "hook_ingest" from the models layer and updates corroboration tests to reflect the reduced set of valid source types. Class diagram for corroboration source constants after hook_ingest removalclassDiagram
class Models {
<<module>>
+CORROBORATION_SOURCE_COMMIT_INGEST : str
+CORROBORATION_SOURCE_TRANSCRIPT_INGEST : str
+CORROBORATION_SOURCE_MCP_REMEMBER : str
+CORROBORATION_SOURCE_FILESYSTEM_INGEST : str
+CORROBORATION_SOURCE_CLI_REMEMBER : str
+CORROBORATION_SOURCE_CONSOLIDATION_MIGRATION : str
+CORROBORATION_SOURCE_CONSOLIDATION_QUERY : str
+CORROBORATION_SOURCE_SET : frozenset[str]
}
class TestsTestCorroborations {
<<test_module>>
+test_valid_corroboration_sources_match_constants()
+test_insert_or_corroborate_uses_known_sources()
}
Models <.. TestsTestCorroborations : verifies_sources
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
0963e8d to
3f5600c
Compare
|
[claim:review:Kulili:2026-05-01T16:09:42Z] |
|
Cannot merge: head commit Same situation as PR #337 → #339. Recommend either:
Diff itself is clean — 2 additions / 8 deletions, no remaining |
|
[release:review:Kulili:2026-05-01T16:10:27Z] |
3f5600c to
a96010f
Compare
|
This PR is now behind Auto-rebase was removed because the bot has no signing key; rebasing as the bot strips author signatures and the |
The hook_ingest source-type constant has no production caller. Hook- triggered ingest paths route through the commit-ingest path (triple_extractor.py:266 -> commit_ingest) for git-history events; filesystem and transcript hooks use their respective constants. The hook_ingest value was vestigial since v1.5.0. Audited the four production stores under ~/projects/*/.git/aelfrice/ and ~/.aelfrice/memory.db: zero rows with source_type='hook_ingest'. Removal is contract-clean. Drops the constant from CORROBORATION_SOURCE_TYPES and updates the test that asserted enum coverage. Refs #190.
|
This PR is now behind Auto-rebase was removed because the bot has no signing key; rebasing as the bot strips author signatures and the |
a96010f to
ee0f51d
Compare
Summary
CORROBORATION_SOURCE_HOOK_INGEST(models.py:84, value"hook_ingest") has no production caller. Git-history hooks route throughcommit_ingest; filesystem and transcript hooks use their own constants. The value was vestigial since v1.5.0.Audited four production stores (
~/projects/aelfrice/.git/aelfrice/memory.db,~/projects/aelfrice-lab/.git/aelfrice/memory.db,~/projects/work-stuff/.git/aelfrice/memory.db,~/.aelfrice/memory.db) — zero rows withsource_type='hook_ingest'. Removing the constant is contract-clean.Drops the constant + frozenset entry; updates
tests/test_corroborations.py(one assertion uses three source types instead of four; enum-coverage test reflects the new set).Context
Surfaced while resolving #190 (closed). Pre-existing audit at last session's handoff.
Test plan
tests/test_corroborations.py18/18 passingtests/test_insert_or_corroborate.py8/8 passingtest_serve_raises_clear_error_when_fastmcp_missing— passes in main repo without fastmcp installed; failure is env shape, not code)hook_ingestrowsSummary by Sourcery
Remove an unused corroboration source type and update tests accordingly.
Enhancements:
Tests:
Summary by CodeRabbit
Refactor
Tests