Files
2026-08-26 14:54:26 +08:00

27 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Why
日留存将某日存在的任意 `pending` Integration Log 视为整日删除的阻断条件。Gateway 同步轮询的遗留 pending 记录使 2026-08-18 及所有后续日期无法清理,在线日志持续积压并带来数据库容量风险。
## What Changes
- 日留存继续归档全天 Integration Log但只将已进入公开终态的记录纳入可清理集合。
- `pending` 记录保留在线,且不得阻断同日终态记录和后续日期的归档、验证与清理。
- 已完成的 Gateway 轮询尝试在终结日志写入失败时不得静默忽略错误,避免新增永久 pending 记录。
## Capabilities
### New Capabilities
无。
### Modified Capabilities
- `external-integration`: 外部交互日志日留存从“整日无 pending 才能清理”改为“仅清理已终态记录并保留 pending”。
- `operations-audit`: 日留存不因 Integration Log 的 pending 记录阻断审计事件和资源快照的连续清理。
## Impact
- 代码:`internal/application/auditarchive/`、旧 Gateway 轮询任务处理器。
- Worker日留存会释放已终态的在线日志pending 继续可调查和补偿。
- 数据库:无迁移,不执行直接 SQL 数据修复。