Skip to content

Commit 598291d

Browse files
committed
docs(agent): note compaction lock hold ceiling
1 parent 33da3b4 commit 598291d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/agents/pi-embedded-runner/run/attempt.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ function resolveEmbeddedAttemptSessionWriteLockOptions(params: {
789789
compactionTimeoutMs: number;
790790
env?: NodeJS.ProcessEnv;
791791
}): { timeoutMs: number; staleMs: number; maxHoldMs: number } {
792+
// Bound embedded-attempt lock holds to the compaction window, not the full run timeout.
793+
// With defaults this permits roughly 900s compaction time plus the shared 120s
794+
// timeout grace before the watchdog releases a stuck live-process lock.
792795
return resolveSessionWriteLockOptions(params.config, {
793796
env: params.env,
794797
maxHoldMsFallback: resolveSessionLockMaxHoldFromTimeout({

0 commit comments

Comments
 (0)