重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。

同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。

Made-with: Cursor
This commit is contained in:
oliver 2026-04-26 08:34:33 +08:00
parent 4a23b715a2
commit dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions

View file

@ -0,0 +1,24 @@
{
"name": "fenced singleton retries after malformed raw output",
"mode": "doc_body_chunked",
"rel_path": "gateway/configuration-reference.md",
"source_file": "source.txt",
"expected_output_contains": [
"Translated line 01",
"Translated line 02",
"Translated line 03",
"Translated line 04"
],
"expected_output_not_contains": ["Line 01", "Line 02", "Line 03", "Line 04"],
"rules": [
{
"method": "raw",
"match_all": ["Line 01", "Line 04"],
"response_file": "raw-malformed.txt"
},
{
"method": "raw",
"replace_pairs": [{ "from": "Line ", "to": "Translated line " }]
}
]
}

View file

@ -0,0 +1,6 @@
```md
Line 01
Line 02
Line 03
Line 04

View file

@ -0,0 +1,7 @@
```md
Line 01
Line 02
Line 03
Line 04
```

View file

@ -0,0 +1,14 @@
{
"name": "frontmatter scalar falls back instead of keeping tagged wrapper",
"mode": "frontmatter_scalar",
"rel_path": "install/fly.md",
"source_file": "source.txt",
"expected_file": "expected.txt",
"rules": [
{
"method": "masked",
"match_all": ["Deploying OpenClaw on Fly.io"],
"response_file": "masked-tagged-wrapper.txt"
}
]
}

View file

@ -0,0 +1 @@
Deploying OpenClaw on Fly.io

View file

@ -0,0 +1,7 @@
<frontmatter>
title: Fly.io
</frontmatter>
<body>
# Fly.io 部署
</body>

View file

@ -0,0 +1 @@
Deploying OpenClaw on Fly.io

View file

@ -0,0 +1,25 @@
{
"name": "protocol leak retries on smaller chunks",
"mode": "doc_body_chunked",
"rel_path": "gateway/configuration-reference.md",
"source_file": "source.txt",
"expected_file": "expected.txt",
"expected_output_not_contains": ["<frontmatter>", "<body>", "[[[FM_"],
"rules": [
{
"method": "raw",
"match_all": ["First chunk", "Second chunk"],
"response_file": "raw-leaked.txt"
},
{
"method": "raw",
"match_all": ["First chunk"],
"response_file": "raw-first.txt"
},
{
"method": "raw",
"match_all": ["Second chunk"],
"response_file": "raw-second.txt"
}
]
}

View file

@ -0,0 +1,4 @@
First translated
Second translated

View file

@ -0,0 +1,2 @@
First translated

View file

@ -0,0 +1,9 @@
<frontmatter>
title: leaked
</frontmatter>
<body>
First translated
Second translated
</body>

View file

@ -0,0 +1,2 @@
Second translated

View file

@ -0,0 +1,4 @@
First chunk
Second chunk

View file

@ -0,0 +1,14 @@
{
"name": "uppercase body wrapper is stripped",
"mode": "doc_body_chunked",
"rel_path": "help/testing.md",
"source_file": "source.txt",
"expected_file": "expected.txt",
"rules": [
{
"method": "raw",
"match_all": ["Regular paragraph."],
"response_file": "raw-uppercase-wrapper.txt"
}
]
}

View file

@ -0,0 +1 @@
Translated paragraph.

View file

@ -0,0 +1,3 @@
<BODY>
Translated paragraph.
</BODY>

View file

@ -0,0 +1 @@
Regular paragraph.