Skip to main content

Module overlap

Module overlap 

Source
Expand description

Who else is working on the same thing (docs/specs/SPEC_AGENT_OVERLAP_AWARENESS_2026_10_10.md §3.2), and saying what you are working on (ClaimWork, ReleaseWork, §3.4).

Constants§

PR_FILES_CHECKED 🔒
Files of the asked PR whose local facts are fetched, at most.
RECENT_POSTS_MAX 🔒
WhoIsWorkingOn’s recent_posts holds at most this many (srv’s cap).

Functions§

add_open_prs 🔒
Add the open PRs that touch the question (open_prs.rs) to srv’s answer, for the repository srv resolved. With pr, the agents on this computer are the ones with that PR’s files changed or edited (ask_path, srv’s answer for one file), not everyone in the repository. A failure is reported in the answer (pr_error) and never fails the call.
arg 🔒
The trimmed, non-empty string argument key.
call 🔒
channel_post_body 🔒
PostToChannel’s request body.
channel_pr 🔒
A coordination post’s PR argument: its number, and the repository its URL names (which must agree with repo when both are given).
channel_read_query 🔒
ReadChannel’s query string.
claim_body 🔒
What srv’s /api/v1/work-claims takes: the claimed target, note and lifetime, plus who is asking (srv prefers the request’s agent token).
merge_agents 🔒
Merge srv answers for several files: one entry per agent and channel, with every distinct match.
merge_posts 🔒
Add posts not already in into (by id).
normalize_repo 🔒
owner/repo, lowercased, from owner/repo, a remote URL (https://github.com/o/r.git) or an ssh remote (git@github.com:o/r).
post_matches 🔒
Whether a post fits the question’s branch and query, as srv selects them (work_facts::coord::matches): the branch it is about, or none; every word of query in its topic, path or text, case-insensitively.
pr_ref 🔒
A PR: 12, "12", "#12", or its URL (https://github.com/<owner>/<repo>/pull/12, with anything after the number, like /files or #issuecomment-…), which also names its repository: (Some("owner/repo"), 12).
release_body 🔒
What srv’s /api/v1/work-claims/release takes: a claim id, or none for all.
run_claim_work 🔒
run_post_bulletin 🔒
run_post_to_channel 🔒
run_quota_mode 🔒
run_set_status 🔒
Presence status: the agent says what it is doing now. srv keeps the line (cleaned, with the time) in the agent’s pane meta, where the Swarm row and work.goal read it.
run_who_is_working_on 🔒
who_query 🔒
The query srv’s /api/v1/work-facts/who takes for these arguments, plus who is asking (srv prefers the request’s agent token to both).