agent-ecosystem/test/main/services
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
..
analysis fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
discovery fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
editor fix: harden Windows frontend path handling 2026-05-16 17:34:50 +03:00
extensions fix(ci): restore dev validation checks 2026-05-19 02:49:45 +03:00
identity feat: add telemetry identity and runtime status 2026-05-17 20:26:34 +03:00
infrastructure fix: export notifyTeamWatchScopeChanged so the committed build resolves 2026-05-30 12:33:57 +03:00
parsing fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
runtime fix(opencode): extend summary status timeout 2026-05-28 00:39:53 +03:00
schedule feat(runtime): add provider fast mode support 2026-04-21 22:22:47 +03:00
team perf: reuse caller stat in fileBelongsToTeam, drop duplicate fs.stat 2026-05-30 14:11:58 +03:00