agent-ecosystem/test/main
777genius 776298b0e3 perf: reuse caller stat in fileBelongsToTeam, drop duplicate fs.stat
On the live resolution path collectRootJsonlSessionIds already stat()s each root
jsonl for its mtime-window filter, then fileBelongsToTeam stat()ed the very same
file again for its cache validation -- two fs.stat syscalls (plus two Stats
allocations) per file, every poll. fileBelongsToTeam now takes an optional
precomputed stat and the mtime-filter caller passes the stat it already has, so the
file is statted once. Measured 20 files -> 20 stat calls on the mtime path (was ~40).

Using a single stat snapshot is also slightly more consistent than two reads that
could straddle a concurrent write. The other call site (subagent scan) passes no
stat and is unchanged (fileBelongsToTeam stats it itself). Adds a regression test
that a caller-supplied stat is the one recorded in the affinity cache.
2026-05-30 14:11:58 +03:00
..
build chore: checkpoint existing workspace changes 2026-05-23 13:48:35 +03:00
features perf: include process table usage metrics 2026-05-29 12:34:13 +03:00
http feat(team): improve runtime provider workflows 2026-05-17 19:11:26 +03:00
ipc fix(startup): serialize provider runtime checks 2026-05-26 09:12:05 +03:00
services perf: reuse caller stat in fileBelongsToTeam, drop duplicate fs.stat 2026-05-30 14:11:58 +03:00
utils fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
sentry.test.ts chore: checkpoint frontend workspace updates 2026-05-18 01:57:16 +03:00