Skip to main content

Module friction

Module friction 

Source
Expand description

Collaboration friction per hour (V16.1, RESOLUTIONS R128): the local friction log (core::agents::friction) summed for one closed hour per vault into the C0 2.0 counts of a collaboration finding (about: collaboration, counts, window; CONTRACT §3.19.2). Counts and ids only, never text.

Structs§

HourFinding
One vault’s collaboration finding for one closed hour.

Constants§

COUNT_KEYS
The C0 counts keys (enums/friction-signals.json), in that order.

Functions§

count_key
The C0 key a local signal counts under; None for signals that are not part of the contract.
emit_due
Queue the collaboration findings of every hour closed since the last run (at most CATCH_UP_HOURS) for the v2 vault bus; returns how many were queued. Nothing on a 1.x Cloud. The first run starts with the hour that just closed. Called by the bus relay about once a minute.
sample_merge_conflicts
Count a merge conflict when a bound checkout an active agent works in has unmerged paths that the last sample did not see; seen carries the conflicted checkouts from one sample to the next, so one conflict counts once however long it lasts.