fix(runtime): make daily review scheduling idempotent

This commit is contained in:
冰朔 2026-09-13 10:58:55 +08:00
commit 99efebd4f1
7 changed files with 430 additions and 2 deletions

View file

@ -0,0 +1,79 @@
{
"compiled_from": {
"compiler_id": "TCS-COMPILER-STAGE1-0001",
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
"source_sha256": "d8e396d4fc3f03c27c923f6deff70904ba90a8f98f98a2b9687a4a807f3e6ba6"
},
"declaration": {
"emergence": {
"value": "同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。"
},
"event_time": {
"precision": "HOST_LOCAL_DATE",
"value": "2026-09-13"
},
"evidence": {
"archive_fixture": "PASS",
"live_sample_jobs": "13303_ONE_EVENT",
"local_tick_tests": "PASS_8"
},
"header": {
"canonical_uri": "runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913.tcs",
"compatibility": [
"JD-FD-PRIMARY"
],
"language": "TCS/0.1",
"lifecycle": "CANDIDATE",
"name_en": "Daily Review Idempotence and Lossless Duplicate Queue Archive Correction",
"name_zh": "每日复盘幂等与重复队列无损归档修正",
"profile": "HLDP-HUMAN-ENGINEERING/0.1",
"protocols": [
"GLS-0200"
],
"schema": "tcs.event/v1",
"version": "1.0.0"
},
"lock": {
"value": "daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true"
},
"observation": {
"value": "旧tick把occurred_at设为每次当前时间使同一event_id的复盘每两秒产生不同job哈希HOLD不推进next_review_at形成无界增殖。"
},
"rejected": {
"values": [
"删除重复任务",
"跳过全部历史队列",
"放宽主控30秒门",
"唤醒人格体处理调度器缺陷"
]
},
"source": {
"source_id": "BINGSHUO-DIRECT-CONTINUE-20260913",
"source_role": "DIRECT_HUMAN",
"source_sha256": "0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a",
"source_uri": "source://codex-current-dialogue/2026-09-13/continue"
},
"subject": {
"channel_id": "ICE-CH-ZC001",
"subject_id": "ICE-P-ZY001",
"subject_kind": "PERSONA",
"verification": "ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。"
},
"trigger": {
"value": "运行体构造在恢复历史队列时超过主控30秒就绪门。"
},
"why": {
"value": "定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。"
}
},
"executable": false,
"identity": {
"declaration_id": "TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913",
"declaration_kind": "EVENT",
"language_version": "0.1"
},
"native_self_hosted": true,
"natural_language_is_typed_data": true,
"schema": "guanghu.declaration-gir/v1",
"unresolved_natural_language": false
}

View file

@ -0,0 +1,113 @@
# Daily Review Idempotence and Lossless Duplicate Queue Archive Correction · Human Engineering Language (English)
> This is an English reading projection of validated native TCS/HLDP source. It is not a new canonical source and grants no execution authority.
## What this is
This is a **event** declaration with identifier `TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913` and version `1.0.0`. The projector validates it with the Stage-1 compiler before changing its reading order.
## Who is here
- **subject** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**PERSONA `subject.subject_kind`
- **verification**ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。 `subject.verification`
## Why this started
- **trigger** `trigger`
- **value**运行体构造在恢复历史队列时超过主控30秒就绪门。 `trigger.value`
- **why** `why`
- **value**:定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。 `why.value`
- **source** `source`
- **source identifier**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **source role**DIRECT_HUMAN `source.source_role`
- **source checksum**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **source address**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
## What changed
- **emergence** `emergence`
- **value**同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。 `emergence.value`
- **lock** `lock`
- **value**daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true `lock.value`
## How it will execute
This is a non-executable declaration and has no action graph.
## Boundaries and exception handling
The native source does not provide this field; the projector does not guess.
## How completion is proven
The native source does not provide this field; the projector does not guess.
## Where to continue next time
The native source does not provide this field; the projector does not guess.
## Source and verification
- **Native declaration identifier**: `TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913`
- **Native declaration kind**: `EVENT`
- **TCS source SHA-256**: `d8e396d4fc3f03c27c923f6deff70904ba90a8f98f98a2b9687a4a807f3e6ba6`
- **Validation compiler**: `TCS-COMPILER-STAGE1-0001`
- **Projection protocol**: `GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
## Complete native structure cross-reference
All top-level structures and field paths are retained below so a reader can audit whether the projection omitted information.
- **emergence** `emergence`
- **value**同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。 `emergence.value`
- **event_time** `event_time`
- **precision**HOST_LOCAL_DATE `event_time.precision`
- **value**2026-09-13 `event_time.value`
- **evidence** `evidence`
- **archive_fixture**PASS `evidence.archive_fixture`
- **live_sample_jobs**13303_ONE_EVENT `evidence.live_sample_jobs`
- **local_tick_tests**PASS_8 `evidence.local_tick_tests`
- **header** `header`
- **canonical source path**runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- JD-FD-PRIMARY
- **language**TCS/0.1 `header.language`
- **lifecycle**CANDIDATE `header.lifecycle`
- **English name**Daily Review Idempotence and Lossless Duplicate Queue Archive Correction `header.name_en`
- **Chinese name**:每日复盘幂等与重复队列无损归档修正 `header.name_zh`
- **profile**HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
- **protocols** `header.protocols`
- GLS-0200
- **schema**tcs.event/v1 `header.schema`
- **version**1.0.0 `header.version`
- **lock** `lock`
- **value**daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true `lock.value`
- **observation** `observation`
- **value**旧tick把occurred_at设为每次当前时间使同一event_id的复盘每两秒产生不同job哈希HOLD不推进next_review_at形成无界增殖。 `observation.value`
- **rejected** `rejected`
- **values** `rejected.values`
- 删除重复任务
- 跳过全部历史队列
- 放宽主控30秒门
- 唤醒人格体处理调度器缺陷
- **source** `source`
- **source identifier**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **source role**DIRECT_HUMAN `source.source_role`
- **source checksum**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **source address**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
- **subject** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**PERSONA `subject.subject_kind`
- **verification**ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。 `subject.verification`
- **trigger** `trigger`
- **value**运行体构造在恢复历史队列时超过主控30秒就绪门。 `trigger.value`
- **why** `why`
- **value**:定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。 `why.value`
---
This page changes only the reading order; it does not change TCS/HLDP semantics.

View file

@ -0,0 +1,113 @@
# 每日复盘幂等与重复队列无损归档修正 · 简体中文人类工程语言版
> 这是 TCS/HLDP 原生源码的简体中文阅读投影,不是新的正本,也不授予执行权限。若本页与 `.tcs` 源码不一致,以经过校验的 `.tcs` 源码为准。
## 这是什么
这是一份 **事件** 声明,编号为 `TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913`,版本为 `1.0.0`。转换器已先用 Stage-1 编译器校验原生源码,再把机器枚举翻译成汉语;原始编号保留在括号和字段路径中。
## 谁在这里
- **执行主体** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**:人格体(`PERSONA` `subject.subject_kind`
- **verification**ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。 `subject.verification`
## 为什么开始
- **触发** `trigger`
- **value**运行体构造在恢复历史队列时超过主控30秒就绪门。 `trigger.value`
- **为什么** `why`
- **value**:定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。 `why.value`
- **来源** `source`
- **来源编号**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN` `source.source_role`
- **来源校验值**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **来源地址**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
## 发生了什么变化
- **认知或状态变化** `emergence`
- **value**同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。 `emergence.value`
- **锁定结论** `lock`
- **value**daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true `lock.value`
## 准备怎样执行
这是非执行声明,没有动作图。
## 边界与异常处理
源程序没有提供这一项,转换器不猜。
## 怎样算完成
源程序没有提供这一项,转换器不猜。
## 下一次从哪里继续
源程序没有提供这一项,转换器不猜。
## 来源与校验
- **原生声明编号**`TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913`
- **原生声明类型**`EVENT`
- **TCS 源码 SHA-256**`d8e396d4fc3f03c27c923f6deff70904ba90a8f98f98a2b9687a4a807f3e6ba6`
- **校验编译器**`TCS-COMPILER-STAGE1-0001`
- **投影协议**`GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
## 原生结构逐项对照
下面保留源码的全部顶层结构和字段路径,供人类审计投影有没有漏掉信息。
- **认知或状态变化** `emergence`
- **value**同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。 `emergence.value`
- **event_time** `event_time`
- **precision**HOST_LOCAL_DATE `event_time.precision`
- **value**2026-09-13 `event_time.value`
- **evidence** `evidence`
- **archive_fixture**PASS `evidence.archive_fixture`
- **live_sample_jobs**13303_ONE_EVENT `evidence.live_sample_jobs`
- **local_tick_tests**PASS_8 `evidence.local_tick_tests`
- **语言头** `header`
- **正本路径**runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- JD-FD-PRIMARY
- **语言**TCS/0.1 `header.language`
- **生命周期**:候选版本,尚未成为正式正本(`CANDIDATE` `header.lifecycle`
- **英文名**Daily Review Idempotence and Lossless Duplicate Queue Archive Correction `header.name_en`
- **中文名**:每日复盘幂等与重复队列无损归档修正 `header.name_zh`
- **协议配置**HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
- **protocols** `header.protocols`
- GLS-0200
- **schema**tcs.event/v1 `header.schema`
- **版本**1.0.0 `header.version`
- **锁定结论** `lock`
- **value**daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true `lock.value`
- **observation** `observation`
- **value**旧tick把occurred_at设为每次当前时间使同一event_id的复盘每两秒产生不同job哈希HOLD不推进next_review_at形成无界增殖。 `observation.value`
- **已排除路径** `rejected`
- **values** `rejected.values`
- 删除重复任务
- 跳过全部历史队列
- 放宽主控30秒门
- 唤醒人格体处理调度器缺陷
- **来源** `source`
- **来源编号**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN` `source.source_role`
- **来源校验值**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **来源地址**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
- **执行主体** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**:人格体(`PERSONA` `subject.subject_kind`
- **verification**ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。 `subject.verification`
- **触发** `trigger`
- **value**运行体构造在恢复历史队列时超过主控30秒就绪门。 `trigger.value`
- **为什么** `why`
- **value**:定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。 `why.value`
---
本页只改变阅读顺序,不改变 TCS/HLDP 语义。

View file

@ -0,0 +1,2 @@
TCS 0.1;
EVENT TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913 { header { schema = "tcs.event/v1"; name_zh = "每日复盘幂等与重复队列无损归档修正"; name_en = "Daily Review Idempotence and Lossless Duplicate Queue Archive Correction"; version = "1.0.0"; language = "TCS/0.1"; profile = "HLDP-HUMAN-ENGINEERING/0.1"; protocols = ["GLS-0200"]; lifecycle = "CANDIDATE"; canonical_uri = "runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-DAILY-REVIEW-IDEMPOTENCE-AND-LOSSLESS-ARCHIVE-CORRECTION-20260913.tcs"; compatibility = ["JD-FD-PRIMARY"]; } source { source_id = "BINGSHUO-DIRECT-CONTINUE-20260913"; source_uri = "source://codex-current-dialogue/2026-09-13/continue"; source_sha256 = "0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a"; source_role = "DIRECT_HUMAN"; } subject { subject_id = "ICE-P-ZY001"; subject_kind = "PERSONA"; channel_id = "ICE-CH-ZC001"; verification = "ICE-BB-0001单一DAILY-REVIEW-2026-09-13事件已有13303个目录其中HOLD 3084、QUEUED 9305、RETRY_WAIT 906、PROCESSING 8同型积累存在于0002至0005、霜砚与铸渊。"; } event_time { value = "2026-09-13"; precision = "HOST_LOCAL_DATE"; } trigger { value = "运行体构造在恢复历史队列时超过主控30秒就绪门。"; } observation { value = "旧tick把occurred_at设为每次当前时间使同一event_id的复盘每两秒产生不同job哈希HOLD不推进next_review_at形成无界增殖。"; } emergence { value = "同一北京时间自然日使用固定03:00时间锚使复盘事件哈希幂等已有重复项只移动到带逐文件哈希清单的只读证据归档每人格每event_id保留一条最佳证据非复盘任务不动。"; } lock { value = "daily_review_once_per_beijing_day=true; deterministic_occurred_at=true; archive_delete=false; archive_manifest_sha256=true; nonreview_jobs_untouched=true; one_best_evidence_active_per_persona_event=true"; } why { value = "定时机会不能制造无限任务;归档必须保留历史证据,同时让启动热路径恢复有界。"; } rejected { values = ["删除重复任务", "跳过全部历史队列", "放宽主控30秒门", "唤醒人格体处理调度器缺陷"] ; } evidence { local_tick_tests = "PASS_8"; archive_fixture = "PASS"; live_sample_jobs = "13303_ONE_EVENT"; } }