Skip to main content

Module matching

Module matching 

Source
Expand description

WhoIsWorkingOn: which other agents’ work facts touch a path, repository, branch or topic (docs/specs/SPEC_AGENT_OVERLAP_AWARENESS_2026_10_10.md §3.2). Pure, so every rule is tested without a running srv.

Structs§

Target
The question after resolving it against the caller’s own facts.
WhoMatch
WhoQuery
What the caller asked about. Every field is optional; with none, the caller’s own repository is the question.
WhoResult

Enums§

MatchKind
How one agent’s work touches the question. Ordered by strength.

Constants§

DETAIL_FILES 🔒
How many file names one match’s detail lists before “+N more”.

Functions§

list_files 🔒
The first few of files, then “(+N more)” up to total.
matches_for 🔒
What other’s facts say about t, strongest first.
mentions 🔒
Every word of the query appears in text, case-insensitively.
resolve
Resolve q against the caller’s facts (caller) and every known clone (all): a path absolute in some clone becomes (repository, relative path), and the caller’s repository is assumed when none is named.
sort_results 🔒
Strongest match first, then most recent, then by name.
who_is_working_on
Every agent in others (the caller already left out) whose work touches t, strongest match first, then most recent.
words 🔒
Lowercase alphanumeric words.