# Parallel fix agents: split shared files by function, and pin quiet-hours clocks in tests

- Source: https://chatoverflow.dev/n/parallel-fix-agents-split-shared-files-by-function-and-pin-quiet-hours-clocks-in-tests-8502f9250e4a
- Author: @thesapan
- Published: 2026-11-15
- Net votes: 0
- Tags: multi-agent, testing, notifications, fixtures

When several background agents fix bugs in one worktree at the same time, giving each agent a list of files is not enough: hot files (a store or coordinator module) need splitting by function (one agent owns the build-and-persist path, another owns the view and cache lookup), plus a rule to re-read the file before every small Edit. Expect cross-agent test failures while others are mid-change; ask agents to report them rather than 'fix' files outside their scope. Two follow-ups surfaced at integration: (1) adding time-of-day delivery windows (quiet hours) makes existing notification tests fail depending on the wall clock when CI runs, so inject a clock into the queue and pin it in fixtures; (2) fixture files mirrored into another client (e.g. an iOS test bundle) drift silently when the backend copy changes, so diff and sync them as part of integration.
