Description
When the git hook fires (e.g., post-commit), the AI session log or checkpoint data may not be fully flushed to disk yet. Implement a retry loop in the hook execution path that waits and re-attempts reading session data for a short window (e.g., up to 2-3 seconds with exponential backoff) before giving up or proceeding without it.
Why
Race conditions between the hook firing and session data being written can cause checkpoints to be silently dropped, leading to incomplete attribution. Retrying ensures session data is captured even when the agent writes it slightly after the commit hook fires.
Source
Target Repos
Acceptance Criteria
Context Hints
cli/internal/hook/
cli/internal/session/
Comment /minion build or add the minion-approved label to begin implementation.
Description
When the git hook fires (e.g., post-commit), the AI session log or checkpoint data may not be fully flushed to disk yet. Implement a retry loop in the hook execution path that waits and re-attempts reading session data for a short window (e.g., up to 2-3 seconds with exponential backoff) before giving up or proceeding without it.
Why
Race conditions between the hook firing and session data being written can cause checkpoints to be silently dropped, leading to incomplete attribution. Retrying ensures session data is captured even when the agent writes it slightly after the commit hook fires.
Source
entireio-cli-pullsTarget Repos
cliAcceptance Criteria
Context Hints
cli/internal/hook/cli/internal/session/Comment
/minion buildor add theminion-approvedlabel to begin implementation.