@furongjun1999/dsh-memory 0.9.22 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.en.md +450 -0
- package/CHANGELOG.md +112 -0
- package/README.en.md +244 -0
- package/README.md +272 -260
- package/codebuddy/CODEBUDDY.md +1 -1
- package/docs/README.md +2 -0
- package/docs/discipline/templates/full.md.tmpl +1 -1
- package/docs/discipline/templates/rules.mdc.tmpl +1 -1
- package/docs/en/README.md +190 -0
- package/docs/en/TRANSLATION.md +78 -0
- package/docs/en/TRANSLATION_MANIFEST.json +170 -0
- package/docs/en/TRANSLATION_REPORT.md +11 -0
- package/docs/en/dev/README.md +10 -0
- package/docs/en/dev/coding-testing.md +72 -0
- package/docs/en/dev/switch-matrix.md +10 -0
- package/docs/en/glossary.md +97 -0
- package/docs/en/harnesses/claude.md +100 -0
- package/docs/en/harnesses/codebuddy.md +93 -0
- package/docs/en/harnesses/codex.md +88 -0
- package/docs/en/harnesses/dsh.md +84 -0
- package/docs/en/harnesses/zcode.md +42 -0
- package/docs/en/mdcg/ccg.md +32 -0
- package/docs/en/mdcg/generated-docs.md +20 -0
- package/docs/en/mdcg/guardrail-charter.md +170 -0
- package/docs/en/mdcg/mcp-tool-names.md +43 -0
- package/docs/en/mdcg/multi-harness.md +43 -0
- package/docs/en/mdcg/recall-metadata.md +30 -0
- package/docs/en/mdcg/world-model-endpoint.md +379 -0
- package/docs/en/mdcg/write-aliases.md +130 -0
- package/docs/en/ops/README.md +11 -0
- package/docs/en/ops/environment-known-issues.md +244 -0
- package/docs/en/ops/install.md +72 -0
- package/docs/en/ops/operations-troubleshooting.md +86 -0
- package/docs/en/ops/permissions-review.md +79 -0
- package/docs/en/ops/release-governance.md +49 -0
- package/docs/en/ops/tool-name-migration.md +30 -0
- package/docs/en/ops/ui-install-troubleshooting.md +53 -0
- package/docs/en/standards/ai-coding-standard-checklist.md +71 -0
- package/docs/en/standards/ai-coding-standard-lingshu.md +47 -0
- package/docs/en/standards/ai-coding-standard.md +185 -0
- package/docs/en/ui/minimal.md +62 -0
- package/docs/mdcg/cogmap_ops.md +16 -15
- package/lib/client.js +29 -3
- package/lib/hooks.d.ts +34 -0
- package/lib/hooks.js +167 -33
- package/lib/index.js +19 -3
- package/lib/lib/console_web.mjs +30 -3
- package/lib/lib/hook_audit.d.ts +3 -2
- package/lib/lib/hook_audit.js +14 -4
- package/lib/lib/mdcg_client.d.ts +5 -2
- package/lib/lib/mdcg_client.js +8 -4
- package/lib/lib/prompt_safety.d.ts +24 -0
- package/lib/lib/prompt_safety.js +77 -1
- package/lib/lib/token_store.js +5 -2
- package/lib/tools.js +5 -3
- package/md_cg/bucketindex.py +231 -0
- package/md_cg/bucketscope.py +339 -0
- package/md_cg/config_registry_bulk.py +19 -10
- package/md_cg/config_validate.py +14 -2
- package/md_cg/detrerank.py +137 -0
- package/md_cg/fsutil.py +215 -25
- package/md_cg/govern/__init__.py +23 -0
- package/md_cg/iface/__init__.py +46 -0
- package/md_cg/iface/_verify.py +609 -0
- package/md_cg/iface/contracts.py +337 -0
- package/md_cg/judgment_manifest.py +14 -0
- package/md_cg/kernel/__init__.py +27 -0
- package/md_cg/mcp_server.py +457 -23
- package/md_cg/mdcg.py +1034 -79
- package/md_cg/mdcos.py +263 -21
- package/md_cg/metacognition.py +66 -13
- package/md_cg/mutate_extract_shipped.py +126 -0
- package/md_cg/mutate_ledger_e2e.py +100 -0
- package/md_cg/nodefile.py +147 -23
- package/md_cg/op_table.py +22 -4
- package/md_cg/probe_c_ledger_integrity.py +258 -0
- package/md_cg/probe_d_retirement_discipline.py +263 -0
- package/md_cg/reconcile.py +9 -11
- package/md_cg/review_cli.py +6 -1
- package/md_cg/rollback.py +16 -1
- package/md_cg/run_tests.py +30 -1
- package/md_cg/scopeselect.py +214 -0
- package/md_cg/scrub.py +160 -23
- package/md_cg/security.py +4 -2
- package/md_cg/state_extract.py +149 -0
- package/md_cg/state_slots.py +58 -10
- package/md_cg/structboost.py +179 -0
- package/md_cg/test_alternatives_historical.py +162 -0
- package/md_cg/test_b2_sensitivity_landing.py +226 -223
- package/md_cg/test_b3_merge_keeps_content.py +608 -583
- package/md_cg/test_bucket_cards.py +85 -0
- package/md_cg/test_bucket_day_order.py +74 -0
- package/md_cg/test_bucket_quota.py +79 -0
- package/md_cg/test_bucket_recency_guards.py +75 -0
- package/md_cg/test_bucket_three_causes.py +83 -0
- package/md_cg/test_bucketindex.py +130 -0
- package/md_cg/test_bucketscope_early.py +71 -0
- package/md_cg/test_cond_term_fold.py +183 -0
- package/md_cg/test_cond_term_fold_gate.py +1210 -0
- package/md_cg/test_cond_term_neg_scope.py +147 -0
- package/md_cg/test_cond_terms_colon.py +348 -0
- package/md_cg/test_detrerank.py +157 -0
- package/md_cg/test_gate_four_kpi.py +136 -0
- package/md_cg/test_generation_guard.py +76 -43
- package/md_cg/test_issue192_move_layer_indices_guard.py +48 -0
- package/md_cg/test_issue362_neg_condition.py +44 -7
- package/md_cg/test_issue39_utf8_stdio.py +572 -572
- package/md_cg/test_issue413_preimage_failclosed.py +147 -9
- package/md_cg/test_issue444_scrub_evidence_plaintext.py +14 -8
- package/md_cg/test_issue677_flush_batch_io.py +139 -0
- package/md_cg/test_issue677_info_fast.py +82 -0
- package/md_cg/test_issue677_remember_dedupe.py +106 -0
- package/md_cg/test_issue712_tokens_sessions_read.py +199 -0
- package/md_cg/test_issue722_strict_conditions.py +96 -0
- package/md_cg/test_issue730_narrowing_audit.py +121 -0
- package/md_cg/test_issue733_verify_override.py +193 -0
- package/md_cg/test_issue733_verify_override_and_overwrite_inherit.py +315 -0
- package/md_cg/test_issue740_filelock_fd_leak.py +218 -0
- package/md_cg/test_issue741_content_hash_same_source.py +158 -0
- package/md_cg/test_issue747_slot_contradiction.py +125 -0
- package/md_cg/test_issue754_nested_root_guard.py +197 -0
- package/md_cg/test_issue757_index_hash_compare.py +85 -0
- package/md_cg/test_issue758_disk_hash_single.py +67 -0
- package/md_cg/test_issue759_twophase_hash.py +67 -0
- package/md_cg/test_issue768_overwrite_time_window_anchor.py +135 -0
- package/md_cg/test_issue789_log_plaintext_probe.py +100 -0
- package/md_cg/test_issue790_verb_negation.py +77 -0
- package/md_cg/test_issue810_root_guard.py +71 -0
- package/md_cg/test_issue812_info_index_stale.py +78 -0
- package/md_cg/test_issue827_weaken_dedup.py +361 -0
- package/md_cg/test_issue829_calibration_positive_gate.py +473 -0
- package/md_cg/test_kernel_iface_contracts.py +18 -0
- package/md_cg/test_md_cg_no_hive_dep.py +238 -17
- package/md_cg/test_n204_n205_n226_n227_n228_n229_exit_gates.py +545 -542
- package/md_cg/test_n209_verify_write_face_gates.py +5 -2
- package/md_cg/test_neg_condition_hits.py +336 -333
- package/md_cg/test_probe_cd_shipped.py +385 -0
- package/md_cg/test_recent_tail.py +93 -0
- package/md_cg/test_run_tests_entry_gates.py +110 -0
- package/md_cg/test_scopeselect.py +70 -0
- package/md_cg/test_scopeselect_clock.py +70 -0
- package/md_cg/test_scrub_source_line_false_positive.py +64 -0
- package/md_cg/test_session_attribution_consistency.py +835 -813
- package/md_cg/test_state_extract_shipped.py +162 -0
- package/md_cg/test_state_ledger_chain.py +207 -0
- package/md_cg/test_state_ledger_e2e.py +145 -0
- package/md_cg/test_structboost.py +102 -0
- package/md_cg/test_timeboost.py +83 -0
- package/md_cg/test_timeboost_relativedate.py +71 -0
- package/md_cg/test_topicagg.py +129 -0
- package/md_cg/test_twophase.py +286 -286
- package/md_cg/timeboost.py +223 -0
- package/md_cg/tokens.py +55 -7
- package/md_cg/topicagg.py +142 -0
- package/md_cg/twophase.py +15 -6
- package/md_cg/whitebox_kb/wisdom/code_compose.py +33 -5
- package/md_cg/whitebox_kb/wisdom/compose_engine.py +5 -1
- package/md_cg/whitebox_kb/wisdom/role_compose.py +271 -268
- package/md_cg/writepipe.py +35 -3
- package/package.json +4 -1
- package/scripts/workspace_index.py +2 -0
- package/src/hooks.ts +182 -34
- package/src/index.ts +19 -3
- package/src/lib/console_web.mjs +30 -3
- package/src/lib/hook_audit.ts +15 -5
- package/src/lib/mdcg_client.ts +8 -4
- package/src/lib/prompt_safety.ts +73 -1
- package/src/lib/token_store.ts +5 -2
- package/src/tools.ts +5 -3
- package/ui/minimal/integrity.json +2 -2
- package/ui/minimal/payload/build-ui.mjs +41 -2
- package/ui/minimal/payload/lib/client.js +29 -3
- package/ui/minimal/payload/lib/lib/console_web.mjs +30 -3
- package/ui/minimal/payload/src/lib/console_web.mjs +30 -3
- package/ui/minimal/payload/web/app.js +3 -1
- package/ui/minimal/payload/web/client.js +30 -3
- package/web/app.js +3 -1
- package/web/client.js +30 -3
- package/zcode/AGENTS.md +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""定点变异自证:`md_cg/test_state_extract_shipped.py` 的每条判据是否真能红。
|
|
3
|
+
|
|
4
|
+
口径(沿本仓既有变异纪律):逐个植入「本该被抓住」的缺陷,跑守卫,断言**必须红**;
|
|
5
|
+
还原后断言**必须绿**且文件 sha256 逐字节还原。变异的对象是**仓内真实文件**
|
|
6
|
+
(先备份到内存,finally 必还原),不改在役库、不落第二份副本。
|
|
7
|
+
|
|
8
|
+
运行:python -X utf8 -m md_cg.mutate_extract_shipped
|
|
9
|
+
"""
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import hashlib
|
|
13
|
+
import os
|
|
14
|
+
import subprocess
|
|
15
|
+
import sys
|
|
16
|
+
|
|
17
|
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
18
|
+
REPO = os.path.dirname(HERE)
|
|
19
|
+
CORE = os.path.join(HERE, "state_extract.py")
|
|
20
|
+
SHIM = os.path.join(REPO, "scripts", "state_extract.py")
|
|
21
|
+
PKG = os.path.join(REPO, "package.json")
|
|
22
|
+
GUARD = "md_cg.test_state_extract_shipped"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def sha(p):
|
|
26
|
+
return hashlib.sha256(open(p, "rb").read()).hexdigest()
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def run_guard():
|
|
30
|
+
r = subprocess.run([sys.executable, "-X", "utf8", "-m", GUARD],
|
|
31
|
+
cwd=REPO, capture_output=True, text=True,
|
|
32
|
+
encoding="utf-8", errors="replace",
|
|
33
|
+
env={**os.environ, "PYTHONUTF8": "1"})
|
|
34
|
+
return r.returncode, (r.stdout or "") + (r.stderr or "")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def mutate(label, path, old, new, expect_hit_substr):
|
|
38
|
+
"""把 path 里 old 换成 new,跑守卫,断言必须红且命中期望断言;还原。"""
|
|
39
|
+
orig = open(path, encoding="utf-8").read()
|
|
40
|
+
backup = orig
|
|
41
|
+
digest = sha(path)
|
|
42
|
+
if old not in orig:
|
|
43
|
+
print(" SKIP %-52s (变异锚点不存在:%r)" % (label, old[:40]))
|
|
44
|
+
return None
|
|
45
|
+
try:
|
|
46
|
+
open(path, "w", encoding="utf-8", newline="\n").write(
|
|
47
|
+
orig.replace(old, new, 1))
|
|
48
|
+
rc, out = run_guard()
|
|
49
|
+
hit = expect_hit_substr in out
|
|
50
|
+
caught = rc != 0 and hit
|
|
51
|
+
print((" OK " if caught else " MISS ") + "%-52s rc=%s 命中=%s"
|
|
52
|
+
% (label, rc, hit))
|
|
53
|
+
return caught
|
|
54
|
+
finally:
|
|
55
|
+
open(path, "w", encoding="utf-8", newline="\n").write(backup)
|
|
56
|
+
assert sha(path) == digest, "!! 还原后 sha256 不一致:" + path
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def main():
|
|
60
|
+
print("== 基线(必须先绿)")
|
|
61
|
+
rc0, out0 = run_guard()
|
|
62
|
+
print(" 基线 rc=%s(0=绿)" % rc0)
|
|
63
|
+
if rc0 != 0:
|
|
64
|
+
print(out0)
|
|
65
|
+
return 1
|
|
66
|
+
|
|
67
|
+
print("== 逐条变异(每行都必须 OK=被抓住)")
|
|
68
|
+
results = []
|
|
69
|
+
|
|
70
|
+
# M1:本体删掉生产面 → A2 必红(模拟「本体没搬过来」)
|
|
71
|
+
results.append(mutate(
|
|
72
|
+
"M1 本体删 extract_and_record 定义", CORE,
|
|
73
|
+
"def extract_and_record(cg, session: str, turn_no, role: str, text: str,",
|
|
74
|
+
"def _gone_extract_and_record(cg, session: str, turn_no, role: str, text: str,",
|
|
75
|
+
"A2 本体定义了生产面 extract_and_record"))
|
|
76
|
+
|
|
77
|
+
# M2:垫片重新实现判据 → B2 必红(模拟「两份实现」复发)
|
|
78
|
+
results.append(mutate(
|
|
79
|
+
"M2 垫片重新定义 RULES(两份判据)", SHIM,
|
|
80
|
+
'from md_cg.state_extract import (',
|
|
81
|
+
'RULES = []\n\nfrom md_cg.state_extract import (',
|
|
82
|
+
"B2 垫片不得重新定义生产面符号"))
|
|
83
|
+
|
|
84
|
+
# M3:垫片包一层 wrapper → C1 必红(模拟「薄别名变成真实现」)
|
|
85
|
+
results.append(mutate(
|
|
86
|
+
"M3 垫片把 extract_turn 包成 wrapper", SHIM,
|
|
87
|
+
'from md_cg.state_extract import ( # noqa: E402,F401 —— 薄别名,非实现',
|
|
88
|
+
'from md_cg.state_extract import extract_turn as _core_extract_turn\n'
|
|
89
|
+
'def extract_turn(*a, **k):\n return _core_extract_turn(*a, **k)\n\n'
|
|
90
|
+
'from md_cg.state_extract import ( # noqa: E402,F401 —— 薄别名,非实现',
|
|
91
|
+
"C1 垫片 extract_turn 与本体是同一对象"))
|
|
92
|
+
|
|
93
|
+
# M4:白名单删掉 md_cg → D1 必红(模拟「生产方目录不可发货」)
|
|
94
|
+
results.append(mutate(
|
|
95
|
+
"M4 package.json files 删掉 md_cg", PKG,
|
|
96
|
+
'"lib",\n "src",\n "md_cg",',
|
|
97
|
+
'"lib",\n "src",',
|
|
98
|
+
"D1 生产方目录"))
|
|
99
|
+
|
|
100
|
+
# M5:extract_and_record 不落台账 → E1 必红(模拟「抽取了但不记账」)
|
|
101
|
+
# 注意:变异必须是**语义有效**的。首版把 `_se.append(...)` 那行替换成 `pass`
|
|
102
|
+
# 留下后面几行实参 ⇒ SyntaxError(rc=1 但根本没走到 E1)——那是**假捕获**,
|
|
103
|
+
# 证明不了断言有力度。改为在函数体开头插 `return 0`:语法合法、语义是
|
|
104
|
+
# 「抽了但不记账」,E1 必须以断言文本失败。
|
|
105
|
+
results.append(mutate(
|
|
106
|
+
"M5 extract_and_record 提前 return 0(不记账)", CORE,
|
|
107
|
+
" n = 0\n for ev in extract_turn(text, role, subject):",
|
|
108
|
+
" return 0 # MUTANT: 不记账\n n = 0\n for ev in extract_turn(text, role, subject):",
|
|
109
|
+
"E1 从 md_cg 本体可直接抽取并落台账"))
|
|
110
|
+
|
|
111
|
+
print("== 还原后必须复绿")
|
|
112
|
+
rc1, out1 = run_guard()
|
|
113
|
+
print(" 还原后 rc=%s(0=绿)" % rc1)
|
|
114
|
+
|
|
115
|
+
done = [r for r in results if r is not None]
|
|
116
|
+
caught = sum(1 for r in done if r)
|
|
117
|
+
print()
|
|
118
|
+
print("变异自证:%d/%d 被捕获;还原后复绿=%s"
|
|
119
|
+
% (caught, len(done), rc1 == 0))
|
|
120
|
+
okall = caught == len(done) and len(done) == 5 and rc1 == 0
|
|
121
|
+
print("结论:" + ("全部判据有力度(可红可复绿)" if okall else "存在无力度判据"))
|
|
122
|
+
return 0 if okall else 1
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
if __name__ == "__main__":
|
|
126
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# 功能名:台账双端触发点的定点变异自证(守卫真能红吗)
|
|
3
|
+
# 生效条件:python -X utf8 -m md_cg.mutate_ledger_e2e
|
|
4
|
+
# 子功能:对 mcp_server 的 recent·add 抽取块做 4 处**语义有效**变异,
|
|
5
|
+
# 每处都必须让 test_state_ledger_e2e 失败;还原后必须复绿。
|
|
6
|
+
# 执行:备份原文 → 逐条变异 → 跑守卫 → 还原 → 复跑。
|
|
7
|
+
# 验证方式:每处 mutation 都被捕获(rc≠0),全还原后 rc=0。
|
|
8
|
+
# 不适用条件:不做语法级变异(见下方「为什么不用 pass/删除行」)。
|
|
9
|
+
|
|
10
|
+
"""为什么不用「删行 / 换 pass」这类变异(本仓已栽过,2026-11-02 实录):
|
|
11
|
+
|
|
12
|
+
上一轮做 `state_extract` 变异时,我把 `_se.append(...)` 换成 `pass` 却留下后续
|
|
13
|
+
实参 → `SyntaxError`,rc=1 但**根本没走到断言**,什么也没证明。那是假捕获。
|
|
14
|
+
|
|
15
|
+
故本文件的每处变异都保持**语法有效、语义变坏**,并且断言必须
|
|
16
|
+
"因为行为不对" 而红,不是"因为文件坏了"而红。
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
21
|
+
import os
|
|
22
|
+
import shutil
|
|
23
|
+
import subprocess
|
|
24
|
+
import sys
|
|
25
|
+
|
|
26
|
+
REPO = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
27
|
+
TARGET = os.path.join(REPO, "md_cg", "mcp_server.py")
|
|
28
|
+
GUARD = "md_cg.test_state_ledger_e2e"
|
|
29
|
+
BAK = TARGET + ".mutbak"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def run_guard():
|
|
33
|
+
p = subprocess.run([sys.executable, "-X", "utf8", "-m", GUARD],
|
|
34
|
+
cwd=REPO, capture_output=True, text=True,
|
|
35
|
+
encoding="utf-8", errors="replace")
|
|
36
|
+
return p.returncode
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
MUTS = [
|
|
40
|
+
# (名字,原文片段,替换片段)
|
|
41
|
+
("M1 抽取块整段停用(语法有效:条件恒假)",
|
|
42
|
+
" if _role == \"user\" and _text and _meta.get(\"session\"):",
|
|
43
|
+
" if False and _role == \"user\" and _text and _meta.get(\"session\"):"),
|
|
44
|
+
|
|
45
|
+
("M2 去掉「只抽用户轮」前置(助手轮也抽)",
|
|
46
|
+
" if _role == \"user\" and _text and _meta.get(\"session\"):",
|
|
47
|
+
" if _text and _meta.get(\"session\"):"),
|
|
48
|
+
|
|
49
|
+
("M3 去掉 session 前置(无归属也抽)",
|
|
50
|
+
" if _role == \"user\" and _text and _meta.get(\"session\"):",
|
|
51
|
+
" if _role == \"user\" and _text:"),
|
|
52
|
+
|
|
53
|
+
("M4 异常不再 fail-soft(改成不吞,破坏窗口写入隔离)",
|
|
54
|
+
" except Exception: # noqa: BLE001\n pass",
|
|
55
|
+
" except ZeroDivisionError: # noqa: BLE001\n pass"),
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def main():
|
|
60
|
+
if not os.path.exists(TARGET):
|
|
61
|
+
print("目标不在:%s" % TARGET)
|
|
62
|
+
return 1
|
|
63
|
+
shutil.copy2(TARGET, BAK)
|
|
64
|
+
caught, missed = 0, 0
|
|
65
|
+
try:
|
|
66
|
+
base = run_guard()
|
|
67
|
+
print("基线(未变异):rc=%d %s" % (base, "OK 绿" if base == 0 else "!! 基线就红"))
|
|
68
|
+
if base != 0:
|
|
69
|
+
print("基线不绿,变异自证无意义;先修基线")
|
|
70
|
+
return 1
|
|
71
|
+
print()
|
|
72
|
+
for name, old, new in MUTS:
|
|
73
|
+
src = open(BAK, encoding="utf-8").read()
|
|
74
|
+
if old not in src:
|
|
75
|
+
print(" SKIP %-52s(原文片段未命中,变异无效)" % name)
|
|
76
|
+
missed += 1
|
|
77
|
+
continue
|
|
78
|
+
open(TARGET, "w", encoding="utf-8", newline="\n").write(
|
|
79
|
+
src.replace(old, new, 1))
|
|
80
|
+
rc = run_guard()
|
|
81
|
+
if rc != 0:
|
|
82
|
+
caught += 1
|
|
83
|
+
print(" CAUGHT %-52s rc=%d" % (name, rc))
|
|
84
|
+
else:
|
|
85
|
+
missed += 1
|
|
86
|
+
print(" MISSED %-52s rc=0(断言没兜住这个坏法)" % name)
|
|
87
|
+
finally:
|
|
88
|
+
shutil.copy2(BAK, TARGET)
|
|
89
|
+
os.remove(BAK)
|
|
90
|
+
rc = run_guard()
|
|
91
|
+
print()
|
|
92
|
+
print("还原后复跑:rc=%d %s" % (rc, "OK 复绿" if rc == 0 else "!! 未复绿"))
|
|
93
|
+
|
|
94
|
+
print()
|
|
95
|
+
print("变异自证:捕获 %d / 漏 %d(总 %d)" % (caught, missed, len(MUTS)))
|
|
96
|
+
return 0 if (missed == 0 and caught == len(MUTS)) else 1
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
if __name__ == "__main__":
|
|
100
|
+
raise SystemExit(main())
|
package/md_cg/nodefile.py
CHANGED
|
@@ -375,9 +375,22 @@ def declares_dependency(content) -> bool:
|
|
|
375
375
|
return bool(dep_refs(val))
|
|
376
376
|
|
|
377
377
|
|
|
378
|
-
# 生效条件:content 为 None
|
|
378
|
+
# 生效条件:content 为 None 或空串时按空串处理(落盘形态即单个换行),非空时先经 normalize_body 补尾换行再编码;一律返回 sha256(utf-8) 十六进制摘要的前 12 位。基准=正文**落盘形态**(与 dumps 落盘逐字一致),frontmatter 不计入(由调用方保证)。非正文内容(query / 结构化序列化)请直接用 hashlib.sha256——本函数会把「尾换行个数」归一,对非正文是信息损失。
|
|
379
|
+
def normalize_body(content: str) -> str:
|
|
380
|
+
"""正文**落盘形态**的单点规范化(issue #741)——本函数就是从 `dumps()` 抽出的
|
|
381
|
+
那行尾换行规则。凡在**写盘前**计算 content_hash 的路径(add 内联 /
|
|
382
|
+
`_write_node` 索引同步 / `_move_layer` 经 `_node_entry`)输入都是未规范化的
|
|
383
|
+
sealed/正文,不先经它就与「读回正文」(dumps 恒补尾换行)恒差一个字节 ⇒
|
|
384
|
+
同节点同正文在索引里先后出现两个值(#741 实测 9eb1d121c59f / aaf2ffbbdd36)。
|
|
385
|
+
`dumps` 与 `content_hash` 都调本函数——规范化规则改动只许发生在这里。
|
|
386
|
+
"""
|
|
387
|
+
# 严格版(不做 None 兜底):dumps 走本函数,保持「None 正文 = 调用方错误」的 fail-fast;
|
|
388
|
+
# content_hash 侧需要 None 兜底,由它自己 `content or ""` 承担。
|
|
389
|
+
return content if content.endswith("\n") else content + "\n"
|
|
390
|
+
|
|
391
|
+
|
|
379
392
|
def content_hash(content: str) -> str:
|
|
380
|
-
"""
|
|
393
|
+
"""节点正文**落盘形态**的内容指纹(sha256 前 12 位)——全仓唯一实现。
|
|
381
394
|
|
|
382
395
|
两处共用且必须逐位一致,否则对账/变更探测会永远"匹配成功"而失去意义
|
|
383
396
|
(与 `codeindex.region_hash` 同一纪律:两侧各写一份哈希算法,漂移就悄悄失效):
|
|
@@ -389,10 +402,18 @@ def content_hash(content: str) -> str:
|
|
|
389
402
|
(importance / protected / 生命周期状态 / 时间戳),把它算进去则「内容没变、
|
|
390
403
|
元数据变了」也会判成不匹配,对账会大面积误报 interrupted。
|
|
391
404
|
"""
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
#
|
|
405
|
+
# issue #741(2026-11-03):先经 normalize_body 再哈希——指纹基准 =「落盘形态的
|
|
406
|
+
# 正文」(恒带尾换行),与重建/读回路径的输入逐位一致。修前调用方各喂各的
|
|
407
|
+
# 形态(add 内联喂原串、重建喂读回),同一节点同一正文在索引里先后出现两个
|
|
408
|
+
# 值(实测 9eb1d121c59f / aaf2ffbbdd36),对账恒报 hash_drift 假阳性。
|
|
409
|
+
# ⇒ 升级注意:存量索引条目(旧口径)首轮对账会报 hash_drift——但 reconcile
|
|
410
|
+
# 缺省开启、且对 drift 做「以盘面为准」的定向 upsert ⇒ **启动即自愈**;
|
|
411
|
+
# rebuild_index() 是等价手段(可选,非必须)。空正文的指纹随之改变
|
|
412
|
+
# (sha("") → sha("换行")),属本次口径变更的显式一面(测试 G8/G9 钉住)。
|
|
413
|
+
return hashlib.sha256(normalize_body(content or "").encode("utf-8")).hexdigest()[:12]
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
# 生效条件:frontmatter(任意 dict,键按 sorted 输出)与 content(任意 str)均无前置校验即生效;content 经 normalize_body 归一(与 content_hash 同一份规则),返回 "---" + 各键的 "{k}: {json.dumps(v, ensure_ascii=False)}" 行 + "---" 行 + 正文。
|
|
396
417
|
def dumps(frontmatter: dict, content: str) -> str:
|
|
397
418
|
lines = [_DELIM]
|
|
398
419
|
for k in sorted(frontmatter):
|
|
@@ -400,7 +421,7 @@ def dumps(frontmatter: dict, content: str) -> str:
|
|
|
400
421
|
# 一律 JSON 序列化:值内不会出现裸换行,切分才可靠;数字/字符串也保持可读
|
|
401
422
|
lines.append(f"{k}: {json.dumps(v, ensure_ascii=False)}")
|
|
402
423
|
lines.append(_DELIM)
|
|
403
|
-
body = content
|
|
424
|
+
body = normalize_body(content) # issue #741:规范化单点(原为手写规则)
|
|
404
425
|
return "\n".join(lines) + "\n" + body
|
|
405
426
|
|
|
406
427
|
|
|
@@ -760,6 +781,21 @@ FULL_TIME_WINDOW_TEXT = "全时窗(任意时刻成立)"
|
|
|
760
781
|
#: 旧口径残留行的前缀——「观测位置:X」是单槽冒充,不是生效条件
|
|
761
782
|
LEGACY_POSITION_PREFIX = "观测位置:"
|
|
762
783
|
|
|
784
|
+
#: 条件短语的已知槽标签:**唯一真源**(`MdCG._SLOT_LABELS` 只是本元组的别名)。
|
|
785
|
+
#: 只有这些词出现在冒号**前**时才当分隔符;其余冒号是条件正文的一部分
|
|
786
|
+
#: (比值 `3:1`、时间 `9:00`、URL `http://`)。
|
|
787
|
+
COND_SLOT_LABELS = tuple(label for _key, label in CONDITION_SLOTS)
|
|
788
|
+
|
|
789
|
+
#: 条件短语匹配面剥掉的**首尾标点**。
|
|
790
|
+
#: 条件常以「:。」收尾,而查询里不会带,故首尾标点不参与比较。
|
|
791
|
+
#: 注意 `'` `"` `!` **刻意不在表内**:它们在条件正文里是**代码字符**
|
|
792
|
+
#: (`''` 空字符串字面量、`!v` 逻辑非),剥掉会把有效 token 吃成空串
|
|
793
|
+
#: 或单字碎片。引号只在「成对包裹整条短语」时才剥,见 `_strip_paired_wrap`。
|
|
794
|
+
COND_EDGE_PUNCT = " \t\u3000,。;:、!?,.;:?()()【】[]「」《》`·"
|
|
795
|
+
|
|
796
|
+
#: 成对包裹时才有意义的引号(单独出现是代码字符,不剥)
|
|
797
|
+
COND_PAIRED_WRAP = ("'", '"')
|
|
798
|
+
|
|
763
799
|
|
|
764
800
|
# 生效条件:value 为 list/tuple 时用「、」连接各元素 str().strip() 后非空的部分(空元素跳过);value 为 None 时返回 "";其余类型返回 str(value).strip()。
|
|
765
801
|
def _as_slot_text(value) -> str:
|
|
@@ -863,31 +899,119 @@ def is_legacy_position_condition(text) -> bool:
|
|
|
863
899
|
return s.startswith(LEGACY_POSITION_PREFIX) and len(s) > len(LEGACY_POSITION_PREFIX)
|
|
864
900
|
|
|
865
901
|
|
|
866
|
-
# 生效条件:
|
|
867
|
-
def
|
|
868
|
-
"""
|
|
902
|
+
# 生效条件:s 为任意字符串;仅当长度≥3、首字符与末字符相同、该字符属 COND_PAIRED_WRAP、且内层首末字符都不是该引号时剥掉首尾这一对,其余原样返回(单侧引号是代码字符不剥;`''` 整体是空字符串字面量,剥了会变空;内层仍以同种引号开头/结尾说明外层不是一对真正包围整条的引号,不剥)。
|
|
903
|
+
def _strip_paired_wrap(s: str) -> str:
|
|
904
|
+
"""成对包裹整条短语的引号才剥;单独出现的引号是代码字符。
|
|
869
905
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
906
|
+
三条边界(各自对应一个实测失败):
|
|
907
|
+
|
|
908
|
+
* `''` / `""` 是**空字符串字面量**(长度 2),剥掉首尾会变成空串而丢失
|
|
909
|
+
⇒ 要求长度 ≥3;
|
|
910
|
+
* `'!v'` → `!v` 应当剥(引号确实成对包围整条);
|
|
911
|
+
* `''与'!v'` 内层仍是 `'…` 开头 ⇒ 外层不是一对包围整条的引号,**不剥**,
|
|
912
|
+
否则会把两个相邻的代码字面量粘成一个假短语。
|
|
913
|
+
"""
|
|
914
|
+
if len(s) >= 3 and s[0] == s[-1] and s[0] in COND_PAIRED_WRAP:
|
|
915
|
+
inner = s[1:-1]
|
|
916
|
+
if inner and inner[0] != s[0] and inner[-1] != s[0]:
|
|
917
|
+
return inner
|
|
918
|
+
return s
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
# 生效条件:text 为假值(None/空串)时按空文本处理,返回 terms 与各计数全为 0 的字典;否则按「;;」拆槽、剥 legacy「观测位置:」与已知槽标签前缀、按「,,、/()()」切短语、逐段剥首尾标点与成对引号,按 空/纯数字/空值语义哨兵/长度<2/时间维哨兵/重复 六类分流计数,terms 保序去重后返回。
|
|
922
|
+
def condition_terms_diag(text) -> dict:
|
|
923
|
+
"""生效条件声明 → {terms, 各分流计数}(**确定性切分,无语义猜测**)。
|
|
924
|
+
|
|
925
|
+
三个细节都是实测出来的,不是设计推演:
|
|
926
|
+
|
|
927
|
+
1. 冒号只在已知槽标签前才是分隔符。
|
|
928
|
+
`condition_space_text()` 的标签是固定四项(`COND_SLOT_LABELS`),而条件正文
|
|
929
|
+
里的冒号是普通字符(比值 `3:1`、时间 `9:00`、URL `http://`)。旧实现
|
|
930
|
+
剥「第一个冒号之前的一切」,会把整条条件吃成空串或砍掉前半句。
|
|
931
|
+
2. 短语首尾标点不参与比较,否则「…按此处置:」带尾冒号永远比不中;
|
|
932
|
+
但引号只在**成对包裹**时才剥 —— `''` / `!v` 是代码字符,不是标点。
|
|
933
|
+
3. 各兜底分类**分开计数**,让调用方能区分「没写条件」「写了合法空值声明」
|
|
934
|
+
与「写了但切不出可用短语」——合并成一个 `short` 会让三者不可归因。
|
|
935
|
+
|
|
936
|
+
返回键:`terms` 为匹配短语;`n_empty`(纯标点)/`n_digit`(纯数字)/
|
|
937
|
+
`n_short`(单字碎片)是**不可用**残段;`n_time_sentinel`(全时窗)与
|
|
938
|
+
`n_decl_sentinel`(`is_dep_sentinel`,如「无」「不适用」)是**合法空值声明**。
|
|
874
939
|
"""
|
|
940
|
+
text = str(text or "")
|
|
875
941
|
out, seen = [], set()
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
942
|
+
n_empty = n_digit = n_short = n_time_sentinel = n_decl_sentinel = 0
|
|
943
|
+
if not text.strip():
|
|
944
|
+
# 空条件不是「写了但切不出」:不能记成 n_empty=1,否则调用方会把
|
|
945
|
+
# 「没写条件」判成坏条件。
|
|
946
|
+
return {"terms": out, "n_empty": 0, "n_digit": 0, "n_short": 0,
|
|
947
|
+
"n_time_sentinel": 0, "n_decl_sentinel": 0}
|
|
948
|
+
for slot in re.split(r"[;;]", text):
|
|
949
|
+
s = slot.strip()
|
|
950
|
+
# legacy 单槽冒充「观测位置:X」:前缀整段剥掉,其余照常切
|
|
951
|
+
if is_legacy_position_condition(s):
|
|
952
|
+
s = s[len(LEGACY_POSITION_PREFIX):]
|
|
953
|
+
m = re.search(r"[::]", s)
|
|
954
|
+
if m and s[:m.start()].strip() in COND_SLOT_LABELS:
|
|
955
|
+
s = s[m.end():]
|
|
956
|
+
for seg in re.split(r"[,,、/()()]", s):
|
|
957
|
+
# 拆出来的**结构性空段**(split 在 `(…)`、`、` 等分隔符处产生的
|
|
958
|
+
# 空串)不是残段:它一个字符都没有,谈不上「被剥成空」。
|
|
959
|
+
# 判据是「split 之后、剥边之前就非空」,必须在**剥边之前**判 ——
|
|
960
|
+
# 剥边后再 `if not seg` 会把两者混为一谈,于是
|
|
961
|
+
# `时间:全时窗(任意时刻成立)` 这类带括号的合法条件多出 n_empty=1,
|
|
962
|
+
# 进而 unusable>0,把本应豁免的时间维哨兵误判成 DEFER。
|
|
963
|
+
if not seg:
|
|
964
|
+
continue
|
|
965
|
+
# 剥边要**两轮**,顺序是「标点 → 引号 → 标点」。
|
|
966
|
+
# 一轮不够,因为引号包裹里常带尾标点:`"key":` 先剥冒号得 `"key"`、
|
|
967
|
+
# 再剥引号才回到 `key`(与旧实现一致);只做一轮会得到 `"key"`,
|
|
968
|
+
# 把匹配面**收窄**了。反过来先剥引号则 `'拒绝访问。'` 会留住内层句号。
|
|
969
|
+
# 两轮之后 `''`(长度 2,不够成对剥)与 `'!v'`→`!v` 仍照旧救回。
|
|
970
|
+
for _ in range(2):
|
|
971
|
+
seg = seg.strip(COND_EDGE_PUNCT)
|
|
972
|
+
seg = _strip_paired_wrap(seg)
|
|
973
|
+
seg = seg.strip(COND_EDGE_PUNCT)
|
|
974
|
+
if not seg:
|
|
975
|
+
n_empty += 1
|
|
976
|
+
continue
|
|
977
|
+
if seg.isdigit():
|
|
978
|
+
n_digit += 1
|
|
979
|
+
continue
|
|
980
|
+
# 单字的空值语义哨兵(「无」「-」「—」)是**合法声明**,必须在长度
|
|
981
|
+
# 过滤**之前**判:「无」只有 1 字,若先过 len<2 就会被记成碎片,
|
|
982
|
+
# 永远救不回。多字的哨兵(「无依赖」「不适用」)**不在此列**——
|
|
983
|
+
# 它们本来就能通过长度过滤、一直作为可匹配短语存在,这里收窄口径
|
|
984
|
+
# 以免一次「修救援」把既有行为改掉。
|
|
985
|
+
if len(seg) < 2 and is_dep_sentinel(seg):
|
|
986
|
+
n_decl_sentinel += 1
|
|
987
|
+
continue
|
|
988
|
+
if len(seg) < 2:
|
|
989
|
+
n_short += 1
|
|
884
990
|
continue
|
|
885
991
|
if "全时窗" in seg or "任意时刻" in seg:
|
|
992
|
+
n_time_sentinel += 1
|
|
886
993
|
continue
|
|
887
994
|
if seg not in seen:
|
|
888
995
|
seen.add(seg)
|
|
889
996
|
out.append(seg)
|
|
890
|
-
return out
|
|
997
|
+
return {"terms": out, "n_empty": n_empty, "n_digit": n_digit,
|
|
998
|
+
"n_short": n_short, "n_time_sentinel": n_time_sentinel,
|
|
999
|
+
"n_decl_sentinel": n_decl_sentinel}
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
# 生效条件:text 为假值(None/空串)时返回 [];否则返回 condition_terms_diag 的 terms 字段(切分与过滤规则见该函数)。
|
|
1003
|
+
def cond_terms(text: str) -> list[str]:
|
|
1004
|
+
"""生效条件声明 → 匹配短语列表(确定性切分,无语义猜测)。
|
|
1005
|
+
|
|
1006
|
+
切分规则:按槽分隔「;/;」拆槽(condition_space_text 以「;」连四槽)
|
|
1007
|
+
→ 剥 legacy「观测位置:」与「槽标签:」前缀(标签是通用词,参与命中必误判)
|
|
1008
|
+
→ 槽内按「,,、/()」切短语 → 剥首尾标点(引号仅成对剥)→ 丢弃空/纯数字/
|
|
1009
|
+
空值语义哨兵/长度<2/全时窗哨兵短语(全时窗 = 时间维无信息量,不因其未命中而降级)。
|
|
1010
|
+
|
|
1011
|
+
**本函数是条件短语切分的唯一真源**:`MdCG._cond_terms` / `_cond_terms_diag`
|
|
1012
|
+
都只是它的别名,禁止在别处再写一份切分。
|
|
1013
|
+
"""
|
|
1014
|
+
return condition_terms_diag(text)["terms"]
|
|
891
1015
|
|
|
892
1016
|
|
|
893
1017
|
# ---- §5.1 六要素的**索引角色**:那张表从 4 行长成 6 行(P2-1)------------------
|
package/md_cg/op_table.py
CHANGED
|
@@ -38,6 +38,7 @@ _OP_TABLE = {
|
|
|
38
38
|
"params": (
|
|
39
39
|
"intent",
|
|
40
40
|
"view",
|
|
41
|
+
"strict_conditions",
|
|
41
42
|
),
|
|
42
43
|
"actions": (),
|
|
43
44
|
"default_action": None,
|
|
@@ -56,7 +57,16 @@ _OP_TABLE = {
|
|
|
56
57
|
"view",
|
|
57
58
|
"budget_tokens",
|
|
58
59
|
"dedupe",
|
|
60
|
+
"strict_conditions",
|
|
59
61
|
"exclude_doc",
|
|
62
|
+
# issue #721:检索期按标签过滤(域隔离)。三条判据显式声明,改口径须同步改注释:
|
|
63
|
+
# · 多标签 = OR —— 命中**任一**即保留(include)/ 即剔除(exclude);
|
|
64
|
+
# · 匹配 = **全等** —— 不做前缀(否则 dom:work 会误命中 dom:workshop);
|
|
65
|
+
# · 无匹配 = **返回空集,不报错** —— 空集是合法检索答案。
|
|
66
|
+
# 优先级:exclude 命中先剔除,**优先于** include。
|
|
67
|
+
# 缺省不传 => 完全跳过过滤分支,既有调用方行为逐位不变(向后兼容)。
|
|
68
|
+
"include_tags",
|
|
69
|
+
"exclude_tags",
|
|
60
70
|
"excerpt_strategy",
|
|
61
71
|
"bm25",
|
|
62
72
|
"session",
|
|
@@ -89,13 +99,14 @@ _OP_TABLE = {
|
|
|
89
99
|
},
|
|
90
100
|
"verify": {
|
|
91
101
|
"doc_order": 4,
|
|
92
|
-
"doc": "
|
|
102
|
+
"doc": "外部裁决回填(verdict=confirmed|weakened|falsified|superseded;superseded=被新版本取代:需 superseded_by,不删除、不动验证态);",
|
|
93
103
|
"impl": "inline",
|
|
94
104
|
"require": "verify",
|
|
95
105
|
"params": (
|
|
96
106
|
"depends_on",
|
|
97
107
|
"evidence",
|
|
98
108
|
"verdict",
|
|
109
|
+
"superseded_by",
|
|
99
110
|
"marker",
|
|
100
111
|
"fact",
|
|
101
112
|
"questions",
|
|
@@ -596,7 +607,7 @@ _OP_TABLE = {
|
|
|
596
607
|
"doc": "身份+健康+审核体系自描述;",
|
|
597
608
|
"impl": "inline",
|
|
598
609
|
"require": "info",
|
|
599
|
-
"params": ("min_severity", ),
|
|
610
|
+
"params": ("min_severity", "full"),
|
|
600
611
|
"actions": (),
|
|
601
612
|
"default_action": None,
|
|
602
613
|
"sigs": (),
|
|
@@ -614,6 +625,7 @@ _OP_TABLE = {
|
|
|
614
625
|
"max_files",
|
|
615
626
|
"max_items",
|
|
616
627
|
"incremental",
|
|
628
|
+
"allow_nested",
|
|
617
629
|
),
|
|
618
630
|
"actions": (),
|
|
619
631
|
"default_action": None,
|
|
@@ -624,7 +636,7 @@ _OP_TABLE = {
|
|
|
624
636
|
"doc": "按目录索引 md 文档的**章节**(只切 level<=3,只存标题+摘要、不存全文),doc_ref 指回原文行区间;layer 与密级显式声明(默认 knowledge/internal,路径命中私有提示降为 private);正文里的 --- 与围栏代码块内的 # 不会被误切;",
|
|
625
637
|
"impl": "inline",
|
|
626
638
|
"require": "index_doc",
|
|
627
|
-
"params": ("sensitivity", ),
|
|
639
|
+
"params": ("sensitivity", "allow_nested", ),
|
|
628
640
|
"actions": (),
|
|
629
641
|
"default_action": None,
|
|
630
642
|
"sigs": (),
|
|
@@ -845,7 +857,7 @@ _OP_TABLE = {
|
|
|
845
857
|
},
|
|
846
858
|
"maintain": {
|
|
847
859
|
"doc_order": 30,
|
|
848
|
-
"doc": "记忆维护(action=stat|history|importance|longterm|prefeed|separate|rollback|backfill|cap|exempt|vision_evidence|refine|propagate 及其 *_history;flush = **显式同步**把待落盘索引写完(issue #677 P2:写路径缺省异步落索引,要「确定已落盘」或要让索引面错误在带内暴露时用它;异常原样上抛,code/hint 可机读);reload = 显式代际探活;propagate = 验证态的**多跳**失效传播巡检(默认预演,apply 需 admin);权限按 action 分档:只读放行、prefeed 写入需 can_write、批量改写与 rollback 需 admin;dry-run
|
|
860
|
+
"doc": "记忆维护(action=stat|history|importance|longterm|prefeed|separate|rollback|backfill|cap|exempt|vision_evidence|refine|propagate|retag 及其 *_history;flush = **显式同步**把待落盘索引写完(issue #677 P2:写路径缺省异步落索引,要「确定已落盘」或要让索引面错误在带内暴露时用它;异常原样上抛,code/hint 可机读);reload = 显式代际探活;propagate = 验证态的**多跳**失效传播巡检(默认预演,apply 需 admin);权限按 action 分档:只读放行、prefeed 写入需 can_write、批量改写与 rollback 需 admin;dry-run 只出报表不改盘;retag = **只改元数据**(tags/condition_space/depends_on),正文与证据链原样,缺省 dry_run、apply 才落盘);",
|
|
849
861
|
"impl": "_maintain_call",
|
|
850
862
|
"require": "maintain",
|
|
851
863
|
"params": (
|
|
@@ -865,6 +877,11 @@ _OP_TABLE = {
|
|
|
865
877
|
"include_partial",
|
|
866
878
|
"min_conf",
|
|
867
879
|
"basis_text",
|
|
880
|
+
"tags_add",
|
|
881
|
+
"tags_remove",
|
|
882
|
+
"condition_space_patch",
|
|
883
|
+
"depends_on",
|
|
884
|
+
"dry_run",
|
|
868
885
|
),
|
|
869
886
|
"actions": (
|
|
870
887
|
"backfill",
|
|
@@ -879,6 +896,7 @@ _OP_TABLE = {
|
|
|
879
896
|
"prefeed",
|
|
880
897
|
"propagate",
|
|
881
898
|
"refine",
|
|
899
|
+
"retag",
|
|
882
900
|
"rollback",
|
|
883
901
|
"separate",
|
|
884
902
|
"stat",
|