@gobing-ai/knowledge-kit 0.1.15 → 0.1.16
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/.claude-plugin/marketplace.json +1 -1
- package/dist/index.js +1603 -1
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +58 -52
- package/plugins/generations/content-gen/src/storm.ts +94 -61
- package/plugins/generations/core-facts-gen/dist/index.js +1 -1
- package/plugins/generations/daily-article-gen/dist/index.js +1 -1
- package/plugins/generations/dailynews-gen/dist/index.js +1 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +1 -1
- package/plugins/generations/gemini-tts/dist/index.js +1 -1
- package/plugins/generations/image-gen/README.md +31 -10
- package/plugins/generations/image-gen/assets/sample/cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/dist/index.js +1 -1
- package/plugins/generations/image-gen/presets/formats/daily-news-podcast-cover.yaml +18 -0
- package/plugins/generations/image-gen/presets/styles/quasi-news-podcast.yaml +9 -0
- package/plugins/generations/news-report-gen/dist/index.js +1 -1
- package/plugins/generations/voice-gen/dist/index.js +1 -1
- package/plugins/generations/voxcpm-tts/dist/index.js +1 -1
- package/plugins/ingestions/aihot-ingest/dist/index.js +1 -1
- package/plugins/ingestions/horizon-ingest/dist/index.js +1 -1
- package/plugins/ingestions/last30days-ingest/dist/index.js +1 -1
- package/plugins/ingestions/web-search/dist/index.js +1 -1
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice-migration.json +12 -3
- package/plugins/kk/publish-presets/daily-ai-voice.json +11 -3
- package/plugins/kk/scripts/cover-compositor.ts +152 -0
- package/plugins/kk/scripts/daily-cover-mock.ts +164 -0
- package/plugins/kk/scripts/daily-scheduled-run.ts +188 -3
- package/plugins/kk/scripts/daily-stages.ts +134 -26
- package/plugins/kk/scripts/daily-triage-core.ts +451 -0
- package/plugins/kk/scripts/daily-triage.ts +74 -0
- package/plugins/kk/scripts/kk-workflow-stages.ts +31 -2
- package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +16 -10
- package/plugins/kk/skills/news-editorial/SKILL.md +3 -3
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +2 -1
- package/plugins/kk/skills/publish/SKILL.md +1 -1
- package/plugins/kk/skills/wiki-authoring/SKILL.md +53 -0
- package/plugins/kk/skills/wiki-authoring/references/page-shapes.md +44 -0
- package/plugins/kk/workflows/kk-daily-ai-voice3.yaml +3 -3
- package/plugins/kk/workflows/kk-daily-safety.yaml +32 -7
- package/plugins/publishings/bilibili-pub/dist/index.js +1 -1
- package/plugins/publishings/cnblogs-pub/dist/index.js +1 -1
- package/plugins/publishings/csdn-pub/dist/index.js +1 -1
- package/plugins/publishings/csdn-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/emdash-pub/dist/index.js +1 -1
- package/plugins/publishings/infoq-pub/dist/index.js +1 -1
- package/plugins/publishings/infoq-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/jike-pub/dist/index.js +1 -1
- package/plugins/publishings/jike-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/juejin-pub/dist/index.js +1 -1
- package/plugins/publishings/juejin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/linkedin-pub/dist/index.js +1 -1
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/medium-pub/dist/index.js +1 -1
- package/plugins/publishings/podcast-pub/dist/index.js +1 -1
- package/plugins/publishings/qiita-pub/dist/index.js +1 -1
- package/plugins/publishings/shipinhao-pub/dist/index.js +222 -50
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +48 -1
- package/plugins/publishings/shipinhao-pub/plugin.json +2 -2
- package/plugins/publishings/shipinhao-pub/src/flow.ts +335 -79
- package/plugins/publishings/shipinhao-pub/src/index.ts +16 -8
- package/plugins/publishings/shipinhao-pub/src/profile-check.ts +1 -1
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +103 -5
- package/plugins/publishings/sspai-pub/dist/index.js +1 -1
- package/plugins/publishings/substack-pub/dist/index.js +1 -1
- package/plugins/publishings/substack-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/surfdash-pub/dist/index.js +235 -12
- package/plugins/publishings/surfdash-pub/src/index.ts +127 -6
- package/plugins/publishings/surfdash-pub/src/topic-claims.ts +189 -0
- package/plugins/publishings/threads-pub/dist/index.js +1 -1
- package/plugins/publishings/wechatmp-pub/dist/index.js +10 -7
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +10 -3
- package/plugins/publishings/wechatmp-pub/src/flow.ts +3 -4
- package/plugins/publishings/wechatmp-pub/src/page.ts +14 -0
- package/plugins/publishings/weibo-pub/dist/index.js +1 -1
- package/plugins/publishings/weibo-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/x-pub/dist/index.js +1 -1
- package/plugins/publishings/x-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/xhs-pub/dist/index.js +557 -31
- package/plugins/publishings/xhs-pub/dist/profile-check.js +20 -1
- package/plugins/publishings/xhs-pub/src/errors.ts +45 -0
- package/plugins/publishings/xhs-pub/src/flow.ts +773 -45
- package/plugins/publishings/xhs-pub/src/page.ts +33 -0
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +1 -1
- package/plugins/publishings/zenn-pub/dist/index.js +1 -1
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
- `lead`:一句话口语桥段,引出下一个主题的【标题】;只做铺垫,不得复述标题本身,不用设问句把新闻改写成抽象问题,不超过 80 字。
|
|
48
48
|
- `insight`:只基于这一条自身可核事实的点评(2–4 句),说清这一条对行业或开发者的意义、或接下来值得关注的节点;不得挪用其他条目的话题,不超过 380 字(这是上限不是目标,常规 150–280 字)。听众刚听完这一条的事实叙述,insight 是点评不是复读:不得复述正文已讲过的事实、数字或成串措辞(最多点到一两个关键词);也不得脱离这条新闻泛泛讲方法论或给通用建议。时长契约:全片按 15–20 分钟口播设计,时长靠覆盖更多条目和完整的事实叙述撑起,不靠拉长点评。字数按配音驱动折算:gemini ≈3.3 字/秒(正文约 4300–5800 字);Voicebox robin-news ≈6.3 字/秒(正文约 5700–7600 字,或增加条目数)。
|
|
49
49
|
- `outro`:简短收束语,接在固定致谢之前,不超过 150 字。
|
|
50
|
-
- `cover
|
|
50
|
+
- `cover`:头版具象视觉内容。字符串形态是英文画面场景(不超过 240 字符,不含文字、数字、商标、旗帜或可辨识真人);0347 R4 起也可写作对象 `{ "scene": "…", "headline": "…" }` —— `scene` 沿用同一英文画面契约,`headline` 是锚定头条新闻的中文 Hook 大标题(1–2 行,每行不超过 25 字),供下游确定性排版小标题层。
|
|
51
51
|
- `cards`:小红书图文笔记总标题 `title`(不超过 20 字)与导语 `body`,单条卡片标题 `card.copy`(不超过 12 字)、2–4 条短要点 `card.points`、英文画面 `card.subject`。
|
|
52
52
|
- `social`:面向 X / Threads 的短帖 `short`(不超过 140 字)与面向微博 / LinkedIn 的长帖 `long`(不超过 500 字)。
|
|
53
53
|
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"lead": 80,
|
|
67
67
|
"insight": 380,
|
|
68
68
|
"cover": 240,
|
|
69
|
+
"coverHeadline": 25,
|
|
69
70
|
"cardCopy": 12,
|
|
70
71
|
"cardTitle": 20,
|
|
71
72
|
"socialShort": 140,
|
|
@@ -31,7 +31,7 @@ not add a `kk publish` noun.
|
|
|
31
31
|
| substack | `substack-pub` | `browser` / `script` | `kk executor run substack-pub --in <content.json> --out <result.json>` (needs `SUBSTACK_PUBLICATION_URL`) |
|
|
32
32
|
| threads | `threads-pub` | `file-cli` (Threads Graph, container → `threads_publish`) | `kk executor run threads-pub --in <content.json> --out <result.json>` — text only; needs `THREADS_ACCESS_TOKEN` + `THREADS_USER_ID`, no browser path |
|
|
33
33
|
| weibo | `weibo-pub` | `browser` / `script` | `kk executor run weibo-pub --in <content.json> --out <result.json>`; `options.operation` `article` (头条文章, draft via 保存草稿 by default) or `post` (home composer, which has **no draft** — it requires `metadata.publishStatus: public`) |
|
|
34
|
-
| xhs | `xhs-pub` | `browser` / `script` | `kk executor run xhs-pub --in <content.json> --out <result.json>` — its default `script` driver uploads the ordered card images with Playwright `setInputFiles`; the `agent` driver fails loud for this channel (ADR-024) |
|
|
34
|
+
| xhs | `xhs-pub` | `browser` / `script` | `kk executor run xhs-pub --in <content.json> --out <result.json>` — its default `script` driver uploads the ordered card images with Playwright `setInputFiles`; the `agent` driver fails loud for this channel (ADR-024). A draft returns `ok: true` only after the plugin reopens the saved note and checks slot count, `https` srcs, title, body, and 合集; a miss is `DraftVerifyError` and `ok: false`. Daily voice and publish tiers call this same executor, so that reopen is their post-save check |
|
|
35
35
|
|
|
36
36
|
Already-harvested file-cli channels (`qiita-pub`, `zenn-pub`, `surfdash-pub`,
|
|
37
37
|
`emdash-pub`, `podcast-pub`) compose the same way.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wiki-authoring
|
|
3
|
+
version: 0.1.0
|
|
4
|
+
requires: [cli:kk, local-fs]
|
|
5
|
+
description: This skill should be used when a personal Markdown vault needs authored page text — "summarize this source into the vault", "synthesize a concept page for X", "extend the page about Y", or when a kk wiki pipeline step needs agent-written prose. Supplies text to `kk wiki summarize|synthesize`; the CLI owns placement, the guard and the graph.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# wiki-authoring — author vault pages through the CLI
|
|
9
|
+
|
|
10
|
+
The vault at `content/` is plain Markdown that a human edits and Quartz publishes. This skill writes
|
|
11
|
+
prose; `kk wiki` does everything else. Never edit a page file directly.
|
|
12
|
+
|
|
13
|
+
## Contract
|
|
14
|
+
|
|
15
|
+
1. Read what exists first: `kk wiki context "<topic>"` (or `kk wiki query "<prompt>"`) to see the
|
|
16
|
+
pages and neighbours already in the vault.
|
|
17
|
+
2. Compose the text: dense, factual, no navigation chatter. One page per concept or entity, and each
|
|
18
|
+
paragraph should stand alone because a later `compile` copies it into the index.
|
|
19
|
+
3. Hand the text to the CLI on stdin — never write the file yourself:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
kk wiki synthesize "<Topic>" --from - --json <<'TEXT'
|
|
23
|
+
<authored markdown>
|
|
24
|
+
TEXT
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use `--type entity` for a tool, project or framework page; the default is `concept`.
|
|
28
|
+
Use `kk wiki summarize <page> --from -` to place a summary into an existing page.
|
|
29
|
+
4. Verify: `kk wiki lint` exits 0 and `kk wiki link` reports no unlinked mention of a title you
|
|
30
|
+
just introduced.
|
|
31
|
+
|
|
32
|
+
## The guard (never work around it)
|
|
33
|
+
|
|
34
|
+
- A page whose frontmatter carries `user_edited: true` is **never** replaced. Your text lands under
|
|
35
|
+
`## AI Updates (<YYYY-MM-DD>)`, and the CLI reports `guard: appended`.
|
|
36
|
+
- Never pass a "replace anyway" intent, never rewrite the file with an editor tool, and never strip
|
|
37
|
+
`user_edited`.
|
|
38
|
+
- `index.md` and `MAP.md` are compiled — do not author them; run `kk wiki compile`.
|
|
39
|
+
|
|
40
|
+
## Frontmatter you may rely on
|
|
41
|
+
|
|
42
|
+
`title`, `type` (`concept|entity|source|index`), `tags[]`, `sources[]`, `updated_at`,
|
|
43
|
+
`user_edited?`, `redirect_to?`. Values are flat: scalars and string arrays only.
|
|
44
|
+
|
|
45
|
+
## Modes
|
|
46
|
+
|
|
47
|
+
| Mode | Command | Use |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| `synthesize` (new) | `kk wiki synthesize "<Topic>" --from -` | A concept or entity the vault does not have |
|
|
50
|
+
| `synthesize` (extend) | `kk wiki synthesize <page-path> --from -` | New material for an existing page |
|
|
51
|
+
| `summarize` | `kk wiki summarize <page-path> --from -` | A raw asset's summary placed into its page |
|
|
52
|
+
|
|
53
|
+
See [references/page-shapes.md](references/page-shapes.md) for the shapes a page must satisfy.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Page shapes
|
|
2
|
+
|
|
3
|
+
A page is `<frontmatter block>` then a body. The frontmatter is flat: `key: value` lines, arrays as
|
|
4
|
+
`- item` lines, no nested maps.
|
|
5
|
+
|
|
6
|
+
```markdown
|
|
7
|
+
---
|
|
8
|
+
title: Vector index
|
|
9
|
+
type: concept
|
|
10
|
+
tags:
|
|
11
|
+
- retrieval
|
|
12
|
+
sources:
|
|
13
|
+
- raw/html/a1
|
|
14
|
+
updated_at: 2026-11-10
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Vector index
|
|
18
|
+
|
|
19
|
+
One paragraph a reader can act on. Mention other pages by title — the CLI links the first
|
|
20
|
+
occurrence of every existing title it sees in your text.
|
|
21
|
+
|
|
22
|
+
## Summary
|
|
23
|
+
|
|
24
|
+
Two to four sentences: what it is, why it matters, what it costs.
|
|
25
|
+
|
|
26
|
+
## Detail
|
|
27
|
+
|
|
28
|
+
Structured notes. Keep headings at `##` or deeper; `## AI Updates` and `## Summary` are reserved.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Rules the lint enforces
|
|
32
|
+
|
|
33
|
+
| Rule | Consequence |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| `title` and `type` present | Missing either is `missing-frontmatter` / `invalid-frontmatter` |
|
|
36
|
+
| Slugs are title-derived | Two pages with the same title produce `duplicate-slug` |
|
|
37
|
+
| Links resolve | `[[unknown-page]]` is a `broken-link` |
|
|
38
|
+
| Pages are reachable | A page no other page links to is an `orphan` (`index.md`/`MAP.md` exempt) |
|
|
39
|
+
|
|
40
|
+
## What the skill must not produce
|
|
41
|
+
|
|
42
|
+
- Navigation prose ("In this article we will…"), task markers left for later, or empty headings.
|
|
43
|
+
- A page that duplicates an existing title; extend that page instead.
|
|
44
|
+
- `user_edited: true` on a page it authored — that flag belongs to the operator.
|
|
@@ -533,7 +533,7 @@ nodes:
|
|
|
533
533
|
kk stage daily-article "${vars.work_dir}" "${vars.run_date}" "${vars.plugins_path}"
|
|
534
534
|
|
|
535
535
|
- id: cover
|
|
536
|
-
description: "Render the daily cover through the pinned
|
|
536
|
+
description: "Render the daily cover through the pinned quasi-news podcast presets (F614, 0349: daily-news-podcast-cover x quasi-news-podcast)"
|
|
537
537
|
dependsOn: [editorial-render, pool-gate]
|
|
538
538
|
condition:
|
|
539
539
|
kind: shell
|
|
@@ -575,7 +575,7 @@ nodes:
|
|
|
575
575
|
command: >-
|
|
576
576
|
env -u SPUR_WORKFLOW_RUN_ACTIVE -u SPUR_EXPECTED_DEFINITION_DIGEST
|
|
577
577
|
spur workflow run plugins/kk/workflows/kk-daily-safety.yaml
|
|
578
|
-
--vars "{\"work_dir\":\"${vars.work_dir}\",\"run_date\":\"${vars.run_date}\",\"safety_max_revise\":\"${vars.safety_max_revise}\",\"safety_platforms\":\"${vars.safety_platforms}\",\"agent\":\"${vars.agent}\"}"
|
|
578
|
+
--vars "{\"work_dir\":\"${vars.work_dir}\",\"run_date\":\"${vars.run_date}\",\"safety_max_revise\":\"${vars.safety_max_revise}\",\"safety_platforms\":\"${vars.safety_platforms}\",\"agent\":\"${vars.agent}\",\"agent_retry\":\"${vars.agent_retry}\"}"
|
|
579
579
|
--quiet --no-plan
|
|
580
580
|
|
|
581
581
|
- id: review
|
|
@@ -834,7 +834,7 @@ nodes:
|
|
|
834
834
|
kk stage run daily-safety-manifest "${vars.work_dir}" "${vars.run_date}" &&
|
|
835
835
|
env -u SPUR_WORKFLOW_RUN_ACTIVE -u SPUR_EXPECTED_DEFINITION_DIGEST
|
|
836
836
|
spur workflow run plugins/kk/workflows/kk-daily-safety.yaml
|
|
837
|
-
--vars "{\"work_dir\":\"${vars.work_dir}\",\"run_date\":\"${vars.run_date}\",\"safety_max_revise\":\"${vars.safety_max_revise}\",\"safety_platforms\":\"${vars.safety_platforms}\",\"agent\":\"${vars.agent}\",\"safety_scope_dir\":\"4-safety-variants\"}"
|
|
837
|
+
--vars "{\"work_dir\":\"${vars.work_dir}\",\"run_date\":\"${vars.run_date}\",\"safety_max_revise\":\"${vars.safety_max_revise}\",\"safety_platforms\":\"${vars.safety_platforms}\",\"agent\":\"${vars.agent}\",\"agent_retry\":\"${vars.agent_retry}\",\"safety_scope_dir\":\"4-safety-variants\"}"
|
|
838
838
|
--quiet --no-plan
|
|
839
839
|
|
|
840
840
|
- id: bundle-freeze
|
|
@@ -12,17 +12,23 @@ description: >-
|
|
|
12
12
|
gate that classifies the pair into pass|escalate|exclude|revise|block, `revise` applies the
|
|
13
13
|
findings to the two drafts and re-opens the review. The loop is bounded by `safety_max_revise`
|
|
14
14
|
(the gate spends one unit per pass and stops revising at the bound). Terminal `clean` covers
|
|
15
|
-
every outcome that is not a
|
|
16
|
-
|
|
15
|
+
every outcome that is not a refusal — pass, escalate and exclude all publish what the gate
|
|
16
|
+
admitted — and `block` is a failure state, so this run exits non-zero on a block, an infra-fail
|
|
17
17
|
or an integrity failure. The caller (`kk-daily-ai-voice2`'s `safety` node) therefore reads
|
|
18
18
|
"non-zero = never publish", which is the same contract the flat workflow's `safety-judge -> failed`
|
|
19
|
-
edge carried.
|
|
19
|
+
edge carried. 0347 F4 (2026-11-10) splits the failure state in two: `infra-fail` is a gate refusal
|
|
20
|
+
caused by missing evidence (executor/agent death — request/report/verdict never appeared, marker
|
|
21
|
+
file `<scope>/<date>_09_safety-infra.json`), so machine retries are meaningful; `block` is a real
|
|
22
|
+
content verdict (or a refusal with evidence present), so only a human should retry it. Both are
|
|
23
|
+
failureStates, so the caller's "non-zero = never publish" contract is unchanged.
|
|
20
24
|
initialState: review
|
|
21
25
|
terminalStates:
|
|
22
26
|
- clean
|
|
23
27
|
- block
|
|
28
|
+
- infra-fail
|
|
24
29
|
failureStates:
|
|
25
30
|
- block
|
|
31
|
+
- infra-fail
|
|
26
32
|
|
|
27
33
|
vars:
|
|
28
34
|
# Effective run workspace, passed by the caller via --vars (the DAG owns the layout; this
|
|
@@ -170,7 +176,7 @@ states:
|
|
|
170
176
|
timeoutMs: 600000
|
|
171
177
|
# ADR-115 error tier: keep this prompt <= 1000 chars. Shared with the retry below.
|
|
172
178
|
input: &safety-revise-input |
|
|
173
|
-
Read ${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-review_report.json — its per-platform findings carry `revision` proposals, and its `content_ref` names the reviewed files. Read the judge
|
|
179
|
+
Read ${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-review_report.json — its per-platform findings carry `revision` proposals, and its `content_ref` names the reviewed files. Read the judge feedback beside it.
|
|
174
180
|
Invoke kk:content-safety in detect+revise mode; apply only named findings to the files listed in the request's `content` array.
|
|
175
181
|
Scope `drafts`: keep the article title「每日AI乱炖 · <date>」, the opening「这里是由Robin为你带来的咸话咸说之每日AI乱炖」, the VoiceScript's date greeting, and valid YAML. Scope `variants`: keep valid JSON with non-empty `title`/`body`. Never add「我是咸话咸说」or an AI-production closer, even if a finding asks.
|
|
176
182
|
Keep every fact, number, name, quote, hedge(据报道)and 来源 link, the ## structure, segment order and `title`.
|
|
@@ -206,6 +212,12 @@ states:
|
|
|
206
212
|
- id: block
|
|
207
213
|
description: "Terminal — draft integrity refused the drafts (PII on a blocked platform, a must-pass judge fail outside the admission criteria, an out-of-contract verdict, or drafts edited after review); the caller must not publish"
|
|
208
214
|
|
|
215
|
+
- id: infra-fail
|
|
216
|
+
description: >-
|
|
217
|
+
Terminal — the gate refused for missing evidence (executor/agent outage: the request, report
|
|
218
|
+
or verdict never appeared), not a content verdict. Machine-retryable once executors recover;
|
|
219
|
+
drafts and reviewed bytes are preserved (the gate skips quarantine for this case).
|
|
220
|
+
|
|
209
221
|
transitions:
|
|
210
222
|
- from: review
|
|
211
223
|
to: review-retry
|
|
@@ -293,13 +305,26 @@ transitions:
|
|
|
293
305
|
options:
|
|
294
306
|
command: 'test "${vars.safety_status}" = "revise"'
|
|
295
307
|
|
|
308
|
+
- from: judge
|
|
309
|
+
to: infra-fail
|
|
310
|
+
description: >-
|
|
311
|
+
0347 F4: the gate refused for missing evidence (request/report/verdict never appeared — an
|
|
312
|
+
executor or agent outage), recorded in the safety-infra.json marker it wrote.
|
|
313
|
+
Machine-retryable: distinct from a content `block`, same caller contract
|
|
314
|
+
(non-zero = never publish).
|
|
315
|
+
terminalReason: failed-agent
|
|
316
|
+
guard:
|
|
317
|
+
kind: shell
|
|
318
|
+
options:
|
|
319
|
+
command: test -f "${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-infra.json"
|
|
320
|
+
|
|
296
321
|
- from: judge
|
|
297
322
|
to: block
|
|
298
323
|
description: >-
|
|
299
324
|
block (draft integrity — PII on a blocked platform, a must-pass fail outside the admission
|
|
300
|
-
criteria, drafts edited after review), or no usable status
|
|
301
|
-
verdict, non-PASS) -> never publish. Unconditional, so a refused
|
|
302
|
-
instead of deadlocking the loop.
|
|
325
|
+
criteria, drafts edited after review, or a refusal with evidence present), or no usable status
|
|
326
|
+
(missing/unreadable report or verdict, non-PASS) -> never publish. Unconditional, so a refused
|
|
327
|
+
verdict leaves the state instead of deadlocking the loop.
|
|
303
328
|
terminalReason: failed-check
|
|
304
329
|
guard:
|
|
305
330
|
kind: always
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -20779,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20779
20779
|
shortVideo: Object.freeze({
|
|
20780
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20781
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20782
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20783
20783
|
})
|
|
20784
20784
|
})
|
|
20785
20785
|
});
|
|
@@ -12057,7 +12057,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12057
12057
|
shortVideo: Object.freeze({
|
|
12058
12058
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12059
12059
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12060
|
-
shipinhao: Object.freeze({ max:
|
|
12060
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12061
12061
|
})
|
|
12062
12062
|
})
|
|
12063
12063
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -20785,7 +20785,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20785
20785
|
shortVideo: Object.freeze({
|
|
20786
20786
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20787
20787
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20788
|
-
shipinhao: Object.freeze({ max:
|
|
20788
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20789
20789
|
})
|
|
20790
20790
|
})
|
|
20791
20791
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -20779,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20779
20779
|
shortVideo: Object.freeze({
|
|
20780
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20781
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20782
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20783
20783
|
})
|
|
20784
20784
|
})
|
|
20785
20785
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -20779,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20779
20779
|
shortVideo: Object.freeze({
|
|
20780
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20781
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20782
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20783
20783
|
})
|
|
20784
20784
|
})
|
|
20785
20785
|
});
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -20779,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20779
20779
|
shortVideo: Object.freeze({
|
|
20780
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20781
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20782
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20783
20783
|
})
|
|
20784
20784
|
})
|
|
20785
20785
|
});
|
|
@@ -12057,7 +12057,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12057
12057
|
shortVideo: Object.freeze({
|
|
12058
12058
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12059
12059
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12060
|
-
shipinhao: Object.freeze({ max:
|
|
12060
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12061
12061
|
})
|
|
12062
12062
|
})
|
|
12063
12063
|
});
|
|
@@ -12063,7 +12063,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12063
12063
|
shortVideo: Object.freeze({
|
|
12064
12064
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12065
12065
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12066
|
-
shipinhao: Object.freeze({ max:
|
|
12066
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12067
12067
|
})
|
|
12068
12068
|
})
|
|
12069
12069
|
});
|
|
@@ -12057,7 +12057,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12057
12057
|
shortVideo: Object.freeze({
|
|
12058
12058
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12059
12059
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12060
|
-
shipinhao: Object.freeze({ max:
|
|
12060
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12061
12061
|
})
|
|
12062
12062
|
})
|
|
12063
12063
|
});
|