Skip to main content

Module segmentation

Module segmentation 

Source
Expand description

Semantic segmentation for canonical store ownership.

Reconstructs repository-scoped session segments from content signals rather than weak source-side identifiers.

Vibecrafted with AI Agents by VetCoders (c)2026 VetCoders

Structs§

BucketResolution
ProjectHashRegistry
Registry mapping Gemini projectHash values to known repo roots.
TieredIdentity
A repo identity paired with the trust tier of the signal that produced it.

Enums§

BucketingSource
Explicit source used when assigning an entry/session to a bucket.

Functions§

classify_cwd_tier
Classify a raw CWD string into a source tier without resolving identity.
infer_repo_identity_from_entry
infer_tiered_identity_from_cwd
Resolve a canonical (organization, repository) identity from a cwd string by consulting ground-truth signals — git remote URL, then known-layout heuristics, finally URL-shape inference.
infer_tiered_identity_from_entry
Infer repo identity with explicit trust tier from source-side signals.
resolve_bucket
semantic_segments
semantic_segments_with_progress
Same as semantic_segments but emits per-session cumulative entry-processed counts to progress, so callers can pin a Heartbeat floor to real work done (rather than ticking blind). Pass-4 follow-up: the segment phase moved AHEAD of dedup, so for large corpora the progress bar needs a real denominator to stay honest.
semantic_segments_with_registry
semantic_segments_with_registry_and_progress