fix: preserve Pi projection continuity

This commit is contained in:
2026-08-23 08:40:58 +08:00
parent 3599064bc4
commit 4bbe3f8b1e
7 changed files with 248 additions and 9 deletions

View File

@@ -121,3 +121,45 @@ export const PI_084_TEXT_TURN = {
tokens: { input: 12, output: 4, cacheRead: 2, cacheWrite: 0, total: 18 },
},
} as const;
export const PI_084_AUTO_RETRY_FAILURE_EVENTS = [
{
type: 'auto_retry_start',
attempt: 3,
maxAttempts: 3,
delayMs: 1000,
errorMessage: 'sensitive provider retry detail',
},
{
type: 'auto_retry_end',
success: false,
attempt: 3,
finalError: 'sensitive final provider detail',
},
{ type: 'agent_settled' },
] as const;
export const PI_084_SUMMARIZATION_RETRY_FAILURE_EVENTS = [
{ type: 'compaction_start', reason: 'threshold' },
{
type: 'summarization_retry_scheduled',
attempt: 1,
maxAttempts: 2,
delayMs: 500,
errorMessage: 'sensitive summary provider detail',
},
{
type: 'summarization_retry_attempt_start',
source: 'compaction',
reason: 'threshold',
},
{ type: 'summarization_retry_finished' },
{
type: 'compaction_end',
reason: 'threshold',
aborted: false,
willRetry: false,
errorMessage: 'sensitive exhausted summary detail',
},
{ type: 'agent_settled' },
] as const;