zizi b0bc7a8745 框架: 技能按动作-对象重组 + 先审后入创作闭环
一、技能重组(动作-对象命名)
- 旧目录 clean/confirm/continuation/db/detect/embed/… 重组为
  clean-book-text/decide-candidate/write-next-chapter/access-database/
  check-content-consistency/embed-knowledge/…(git 识别为 rename,内容保持)
- agents/*.md、AGENTS.md/CLAUDE.md 收编、example_skill 登记表同步新名

二、先审后入创作闭环(本次核心)
正文接受从"机械门一过就写正典"改为"机械门+语义审查双通过+用户批准+单事务原子提交",
DB 级兜底,编排层跳步即被硬拒。
- candidate_cas.py + example_candidate_cas(109):持久化 CAS 状态链
- fact_delta.py + example_fact_delta/example_fact_ledger(106):结构化事实增量,
  模型只提六型闭集增量+正文证据引文,仅用户批准的增量随正文同事务入账本
- projection_registry.py + example_projection_run(107):投影登记与恢复
- acceptance_state.py:接受前置实时状态重读
- lesson_registry.py + example_lesson(108):经验升格链,禁止自动升格
- DDL 105:example_candidate 增 semantic_status/semantic_report_sha256
- write_canonical.accept:语义兜底+同事务合并增量+登记投影;
  run_writer_pipeline/persist_writer_run/run_writer_semantic_detector/step2 接入全链
- claude_runtime:兼容新 CLI modelUsage 信息字段

三、审查修复(独立子代理四维审查后)
- 事实增量 propose→approve 翻态正道,不撞唯一键
- 冻结配置探针重刷(CLI 2.1.211→2.1.231 漂移),profileSha256/adapterVersion 再登记
- 可视化合同悬空路径/五六空间矛盾、 SoT 旧技能名漂移、行尾空白清理

测试:离线 65 套 + 真实库集成 5 套(CAS/接受故障注入/事实增量/投影/经验升格)+ 回放 79 项全绿。
创作内容(docs/design、生成正文 artifacts)按"框架与创作分开"未入本提交。
2026-08-14 10:24:08 +08:00

81 lines
3.8 KiB
YAML
Raw 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.

schema_version: ai-flavor-case-v1
cards:
- schema_version: ai-flavor-case-v1
id: case-backfill-jpxh-stock-expression-001
card_type: ai_flavor_case
state: shadow
label: unclassified
layer: lexical
carrier: unknown
capture_mode: backfill
excerpt: ''
context: ''
source:
kind: existing_work
license: research_only
source_sha256: b146aff2bcd8ab14472490fdbf5223d2752892aaab6830ca90740cf0707a0c1e
excerpt_sha256: 109835f69abc25b5c26ee1ed02a65957bd26407232125bad59dc4f0502a8eec1
source_ref: 小说清单/机破星河_当年离歌.txt
location: {line_start: 5955, line_end: 5955, char_start: 95420, char_end: 95436, column_start: 4, column_end: 20}
surface_location: {line_start: 5955, line_end: 5955, char_start: 95423, char_end: 95427, column_start: 7, column_end: 11}
work_ref: ref-work-机破星河
observation:
pattern_key: lexical.stock_micro_expression
surface: 嘴角勾起
diagnosis: 库存微表情候选;需检查是否是角色签名动作或场景独有反应。
function_check: [是否承担具体叙事功能, 是否是角色/场内载体的有意声线]
risk_if_changed: 未经上下文复核直接删除可能损失人物声音、伏笔或节奏。
suggested_action: 保留 shadow,回到受控原文复核。
- schema_version: ai-flavor-case-v1
id: case-backfill-jpxh-atmosphere-001
card_type: ai_flavor_case
state: shadow
label: unclassified
layer: lexical
carrier: unknown
capture_mode: backfill
excerpt: ''
context: ''
source:
kind: existing_work
license: research_only
source_sha256: b146aff2bcd8ab14472490fdbf5223d2752892aaab6830ca90740cf0707a0c1e
excerpt_sha256: 3adbb44fbe2382354bccd0421376393e63d7b861e7f9df8b78205ad142b876b5
source_ref: 小说清单/机破星河_当年离歌.txt
location: {line_start: 46431, line_end: 46431, char_start: 574508, char_end: 574547, column_start: 68, column_end: 107}
surface_location: {line_start: 46431, line_end: 46431, char_start: 574529, char_end: 574535, column_start: 89, column_end: 95}
work_ref: ref-work-机破星河
observation:
pattern_key: lexical.abstract_atmosphere
surface: 空气仿佛凝固
diagnosis: 抽象气氛候选;需检查是否有具体感官或场面功能支撑。
function_check: [是否承担具体叙事功能, 是否只是空泛气氛标签]
risk_if_changed: 直接删改可能抹掉高潮节奏或群体反应。
suggested_action: 保留 shadow,回到受控原文复核。
- schema_version: ai-flavor-case-v1
id: case-backfill-xhsm-stock-expression-001
card_type: ai_flavor_case
state: shadow
label: unclassified
layer: lexical
carrier: unknown
capture_mode: backfill
excerpt: ''
context: ''
source:
kind: existing_work
license: research_only
source_sha256: dd1a1e3aa20fd40bd147ffb8f7073ba9817f0a17587e71ba174de7a3955b5d59
excerpt_sha256: 02a168cf14ed2445845536b1131dfd70f67cd654e691278497af8d4e1a6523e1
source_ref: 小说清单/星环使命(虚伪王庭).txt
location: {line_start: 10694, line_end: 10694, char_start: 312102, char_end: 312152, column_start: 0, column_end: 50}
surface_location: {line_start: 10694, line_end: 10694, char_start: 312112, char_end: 312118, column_start: 10, column_end: 16}
work_ref: ref-work-星环使命
observation:
pattern_key: lexical.stock_micro_expression
surface: 嘴角微微上扬
diagnosis: 与其他作品出现同类表面形式;不能仅凭跨书频次认定应修。
function_check: [是否为角色签名动作, 是否在本段承担关系推进]
risk_if_changed: 误删可能抹平角色差异。
suggested_action: 等待正反证据和人工标注。