@thincoder/core 0.10.13 → 0.11.2
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.md +74 -1
- package/advisor/convergence.mjs +34 -3
- package/advisor/loop.mjs +42 -10
- package/advisor/messages.mjs +46 -27
- package/advisor/notice.mjs +1 -1
- package/advisor/project-context.mjs +253 -14
- package/advisor/run.mjs +7 -4
- package/advisor.mjs +29 -43
- package/agent/batch-attribution.mjs +87 -0
- package/agent/batch-changed-surface.mjs +129 -0
- package/agent/completion.mjs +57 -4
- package/agent/digest-account.mjs +73 -46
- package/agent/dispatch-gates.mjs +6 -0
- package/agent/dispatch-run.mjs +1 -1
- package/agent/dispatch.mjs +35 -22
- package/agent/family-tools.mjs +36 -17
- package/agent/helpers.mjs +123 -95
- package/agent/offload.mjs +84 -0
- package/agent/post-turn.mjs +24 -10
- package/agent/record-results.mjs +19 -7
- package/agent/run-stages.mjs +127 -61
- package/agent/run-start.mjs +45 -8
- package/agent/setup-reminders.mjs +9 -2
- package/agent/setup.mjs +27 -22
- package/agent/spawn-child.mjs +38 -1
- package/agent/suspension.mjs +1 -1
- package/agent/timers.mjs +5 -3
- package/agent/turn-loop.mjs +60 -6
- package/agent/turn-projection.mjs +386 -0
- package/agent/turn-task-state.mjs +274 -0
- package/agent/turn-tool-process.mjs +168 -0
- package/agent/write-face.mjs +99 -0
- package/agent/write-gate-ledger.mjs +569 -0
- package/agent/write-gate.mjs +39 -13
- package/agent-tools/advisor-async.mjs +29 -169
- package/agent-tools/advisor-launch.mjs +178 -0
- package/agent-tools/advisor-settle.mjs +28 -1
- package/agent-tools/advisor.mjs +136 -31
- package/agent-tools/async-settle.mjs +2 -2
- package/agent-tools/audit-block.mjs +6 -6
- package/agent-tools/bash-async.mjs +8 -2
- package/agent-tools/batch-closeout.mjs +444 -0
- package/agent-tools/batch-gate.mjs +152 -138
- package/agent-tools/batch-ledger-bind.mjs +392 -0
- package/agent-tools/batch-ledger-link.mjs +73 -0
- package/agent-tools/batch-ledger-view.mjs +109 -0
- package/agent-tools/batch-lifecycle.mjs +245 -376
- package/agent-tools/batch-paths.mjs +73 -47
- package/agent-tools/batch-read.mjs +1 -1
- package/agent-tools/batch-record-write.mjs +417 -0
- package/agent-tools/batch-regions.mjs +215 -0
- package/agent-tools/batch-reopen.mjs +154 -0
- package/agent-tools/batch-segment-vocab.mjs +379 -0
- package/agent-tools/batch-skeleton.mjs +344 -196
- package/agent-tools/batch-supersede.mjs +232 -0
- package/agent-tools/batch-tier-gate.mjs +297 -0
- package/agent-tools/batch.mjs +189 -253
- package/agent-tools/consult.mjs +7 -4
- package/agent-tools/context.mjs +47 -17
- package/agent-tools/design-review-record.mjs +225 -0
- package/agent-tools/design-slots.mjs +24 -24
- package/agent-tools/design-token.mjs +318 -39
- package/agent-tools/doc-check.mjs +55 -29
- package/agent-tools/doc-graph.mjs +140 -0
- package/agent-tools/eng.mjs +10 -9
- package/agent-tools/escalate-async.mjs +5 -5
- package/agent-tools/manifest.mjs +34 -15
- package/agent-tools/read-history.mjs +115 -14
- package/agent-tools/review-facts.mjs +40 -15
- package/agent-tools/settings.mjs +23 -2
- package/agent-tools/spawn-gates.mjs +19 -22
- package/agent-tools/ssh-session.mjs +120 -111
- package/agent-tools/ssh-text.mjs +155 -0
- package/agent-tools/ssh-transfer.mjs +210 -0
- package/agent-tools/ssh-transport.mjs +183 -81
- package/agent-tools/subagent-actions-query.mjs +11 -7
- package/agent-tools/subagent-actions.mjs +1 -1
- package/agent-tools/subagent-async.mjs +11 -11
- package/agent-tools/subagent-brief.mjs +76 -0
- package/agent-tools/subagent-design-token.mjs +168 -0
- package/agent-tools/subagent-run.mjs +1 -1
- package/agent-tools/subagent-scheduler.mjs +45 -11
- package/agent-tools/subagent-spawn.mjs +143 -104
- package/agent-tools/subagent.mjs +26 -23
- package/agent-tools/taskbook-block.mjs +94 -0
- package/agent-tools/timer.mjs +12 -8
- package/agent-tools/verify.mjs +13 -4
- package/agent-tools.mjs +7 -3
- package/agent.mjs +20 -1
- package/attachments.mjs +3 -3
- package/browser/actions.mjs +9 -3
- package/browser/cdp.mjs +45 -17
- package/browser/launch.mjs +25 -43
- package/browser/pool.mjs +299 -0
- package/browser/queue.mjs +2 -0
- package/browser/session-state.mjs +450 -0
- package/browser/session.mjs +127 -151
- package/browser/snapshot.mjs +89 -0
- package/client-identity.mjs +22 -6
- package/config-defaults.mjs +2 -1
- package/config-migrate.mjs +40 -0
- package/config-normalize.mjs +28 -2
- package/config-presets.mjs +5 -3
- package/config-reload.mjs +59 -0
- package/config.mjs +62 -98
- package/context-degrade.mjs +38 -10
- package/context-echo.mjs +11 -0
- package/context.mjs +165 -68
- package/conventions.mjs +11 -9
- package/declaration.mjs +33 -7
- package/declared-repos.mjs +94 -0
- package/doc-check/doc-names.mjs +73 -0
- package/doc-check/doc-tokens.mjs +110 -0
- package/doc-check/existence.mjs +160 -0
- package/doc-check/index.mjs +312 -163
- package/doc-check/line-refs.mjs +38 -0
- package/doc-check/paragraph.mjs +220 -91
- package/doc-graph/anchors.mjs +474 -0
- package/doc-graph/doc-batch-face.mjs +59 -0
- package/doc-graph/doc-suffix.mjs +27 -0
- package/doc-graph/graph-tokens.mjs +160 -0
- package/doc-graph.mjs +778 -0
- package/explore-distill.mjs +12 -6
- package/i18n.mjs +2 -2
- package/index-discover.mjs +4 -1
- package/instance-inbox-watch.mjs +272 -0
- package/instance-inbox.mjs +218 -0
- package/instance-registry.mjs +179 -0
- package/knowledge/README.md +3 -0
- package/knowledge/prompt-resources.md +6 -0
- package/ledger-close-proof.mjs +95 -62
- package/ledger-close.mjs +188 -0
- package/ledger-cmd.mjs +76 -244
- package/ledger-consistency.mjs +113 -0
- package/ledger-db.mjs +70 -37
- package/ledger-executors.mjs +1 -1
- package/ledger-migrate.mjs +4 -4
- package/ledger-read.mjs +10 -8
- package/ledger-surface.mjs +1 -1
- package/ledger-tools.mjs +83 -24
- package/ledger-variant-notice.mjs +1 -1
- package/ledger-write-ops.mjs +462 -0
- package/ledger.mjs +2 -2
- package/manifest-discovery.mjs +5 -3
- package/manifest-schema.mjs +28 -2
- package/memory/memory-tool.mjs +5 -2
- package/memory/schema.mjs +6 -27
- package/package.json +3 -1
- package/path-resolve.mjs +498 -0
- package/permission.mjs +4 -0
- package/prompt-files.mjs +91 -1
- package/prompt-overlays.mjs +14 -6
- package/prompts/advisor-design.md +66 -22
- package/prompts/advisor-round1.md +37 -3
- package/prompts/advisor-round2.md +44 -10
- package/prompts/advisor-round3.md +43 -9
- package/prompts/common.md +15 -375
- package/prompts/consult-base.md +6 -1
- package/prompts/discipline-engineering.md +251 -95
- package/prompts/discipline-normal.md +4 -250
- package/prompts/knowledge/business-gates.md +22 -0
- package/prompts/knowledge/decision-quality.md +23 -0
- package/prompts/knowledge/doc-lookup.md +35 -0
- package/prompts/knowledge/document-writing.md +51 -0
- package/prompts/knowledge/documentation-evaluation.md +56 -0
- package/prompts/knowledge/evidence-discipline.md +57 -0
- package/prompts/knowledge/normal-coding-workflow.md +104 -0
- package/prompts/knowledge/normal-delivery-collaboration.md +108 -0
- package/prompts/knowledge/normal-work-management.md +57 -0
- package/prompts/knowledge/product-security.md +23 -0
- package/prompts/knowledge/project-records.md +62 -0
- package/prompts/knowledge/tool-advisor.md +29 -0
- package/prompts/knowledge/tool-apply-patch.md +18 -0
- package/prompts/knowledge/tool-bash.md +39 -0
- package/prompts/knowledge/tool-batch-eng-coder.md +12 -0
- package/prompts/knowledge/tool-batch-eng-designer.md +12 -0
- package/prompts/knowledge/tool-batch-review.md +12 -0
- package/prompts/knowledge/tool-batch.md +80 -0
- package/prompts/knowledge/tool-browser.md +57 -0
- package/prompts/knowledge/tool-code-search.md +4 -0
- package/prompts/knowledge/tool-consult-start.md +12 -0
- package/prompts/knowledge/tool-consult-stop.md +6 -0
- package/prompts/knowledge/tool-context.md +6 -0
- package/prompts/knowledge/tool-delete.md +17 -0
- package/prompts/knowledge/tool-doc-check.md +70 -0
- package/prompts/knowledge/tool-doc-graph-read.md +20 -0
- package/prompts/knowledge/tool-doc-graph.md +49 -0
- package/prompts/knowledge/tool-doc-search.md +6 -0
- package/prompts/knowledge/tool-edit.md +38 -0
- package/prompts/knowledge/tool-eng.md +2 -0
- package/prompts/knowledge/tool-execute.md +16 -0
- package/prompts/knowledge/tool-fetch.md +12 -0
- package/prompts/knowledge/tool-file-ops.md +16 -0
- package/prompts/knowledge/tool-get-current-time.md +7 -0
- package/prompts/knowledge/tool-git-read.md +19 -0
- package/prompts/knowledge/tool-git.md +29 -0
- package/prompts/knowledge/tool-glob.md +15 -0
- package/prompts/knowledge/tool-goal.md +8 -0
- package/prompts/knowledge/tool-grep.md +18 -0
- package/prompts/knowledge/tool-hashline-edit.md +14 -0
- package/prompts/knowledge/tool-insert-after.md +15 -0
- package/prompts/knowledge/tool-instance-list.md +6 -0
- package/prompts/knowledge/tool-instance-send.md +10 -0
- package/prompts/knowledge/tool-knowledge.md +18 -0
- package/prompts/knowledge/tool-ledger-read.md +35 -0
- package/prompts/knowledge/tool-ledger.md +42 -0
- package/prompts/knowledge/tool-lint.md +16 -0
- package/prompts/knowledge/tool-ls.md +13 -0
- package/prompts/knowledge/tool-lsp.md +11 -0
- package/prompts/knowledge/tool-main-history.md +2 -0
- package/prompts/knowledge/tool-manifest-read.md +14 -0
- package/prompts/knowledge/tool-manifest.md +31 -0
- package/prompts/knowledge/tool-memory-read.md +20 -0
- package/prompts/knowledge/tool-memory.md +15 -0
- package/prompts/knowledge/tool-notify-parent.md +12 -0
- package/prompts/knowledge/tool-operations.md +114 -0
- package/prompts/knowledge/tool-peer-instances.md +2 -0
- package/prompts/knowledge/tool-plan.md +6 -0
- package/prompts/knowledge/tool-process-read.md +13 -0
- package/prompts/knowledge/tool-process.md +15 -0
- package/prompts/knowledge/tool-question.md +16 -0
- package/prompts/knowledge/tool-read-history-batch.md +22 -0
- package/prompts/knowledge/tool-read-history.md +36 -0
- package/prompts/knowledge/tool-read-image.md +11 -0
- package/prompts/knowledge/tool-read.md +21 -0
- package/prompts/knowledge/tool-recent-changes.md +6 -0
- package/prompts/knowledge/tool-repo-outline.md +4 -0
- package/prompts/knowledge/tool-settings-read.md +12 -0
- package/prompts/knowledge/tool-settings.md +18 -0
- package/prompts/knowledge/tool-skill.md +6 -0
- package/prompts/knowledge/tool-ssh.md +52 -0
- package/prompts/knowledge/tool-subagent.md +59 -0
- package/prompts/knowledge/tool-task.md +12 -0
- package/prompts/knowledge/tool-team-ledger-read.md +11 -0
- package/prompts/knowledge/tool-team-ledger.md +11 -0
- package/prompts/knowledge/tool-timer.md +23 -0
- package/prompts/knowledge/tool-tree.md +14 -0
- package/prompts/knowledge/tool-verify.md +19 -0
- package/prompts/knowledge/tool-wait-for.md +25 -0
- package/prompts/knowledge/tool-websearch.md +19 -0
- package/prompts/knowledge/tool-write.md +9 -0
- package/prompts/knowledge/upstream-protocol.md +43 -0
- package/prompts/persona-eng-coder.md +29 -3
- package/prompts/persona-eng-designer.md +131 -159
- package/prompts/persona-engineering.md +202 -131
- package/prompts/persona-explore.md +1 -1
- package/prompts/persona-plan.md +6 -1
- package/prompts/persona-tester.md +55 -0
- package/prompts/subagent-base.md +2 -0
- package/provider/anthropic.mjs +6 -4
- package/provider/core.mjs +5 -4
- package/provider/errors.mjs +29 -4
- package/provider/google.mjs +39 -12
- package/provider/rate.mjs +11 -3
- package/provider/responses.mjs +3 -1
- package/provider/sse.mjs +15 -4
- package/provider-flows.mjs +2 -2
- package/session-identity.mjs +21 -0
- package/session-index-build.mjs +1 -1
- package/session-index-pass.mjs +1 -1
- package/session-index-query.mjs +1 -1
- package/session-index.mjs +1 -1
- package/session-lifecycle.mjs +79 -19
- package/session-slot-write.mjs +37 -5
- package/session-slots.mjs +9 -14
- package/session.mjs +29 -8
- package/skip-dirs.mjs +48 -0
- package/team-ledger.mjs +17 -13
- package/text-budget.mjs +4 -0
- package/token-ttl.mjs +73 -4
- package/token-window.mjs +244 -34
- package/tool-docs/advisor.md +2 -27
- package/tool-docs/apply_patch.md +1 -13
- package/tool-docs/bash.md +2 -37
- package/tool-docs/batch-eng-coder.md +3 -0
- package/tool-docs/batch-eng-designer.md +3 -0
- package/tool-docs/batch-review.md +3 -0
- package/tool-docs/batch.md +3 -1
- package/tool-docs/browser.md +2 -47
- package/tool-docs/code_search.md +3 -1
- package/tool-docs/consult_start.md +2 -4
- package/tool-docs/consult_stop.md +2 -2
- package/tool-docs/context.md +1 -5
- package/tool-docs/delete.md +2 -14
- package/tool-docs/doc_check.md +2 -72
- package/tool-docs/doc_graph-read.md +3 -0
- package/tool-docs/doc_graph.md +3 -0
- package/tool-docs/doc_search.md +3 -1
- package/tool-docs/edit.md +2 -18
- package/tool-docs/eng.md +3 -1
- package/tool-docs/execute.md +2 -12
- package/tool-docs/fetch.md +2 -12
- package/tool-docs/file_ops.md +2 -16
- package/tool-docs/get_current_time.md +1 -6
- package/tool-docs/git-read.md +3 -0
- package/tool-docs/git.md +2 -27
- package/tool-docs/glob.md +2 -10
- package/tool-docs/goal.md +2 -5
- package/tool-docs/grep.md +2 -18
- package/tool-docs/hashline_edit.md +2 -13
- package/tool-docs/insert_after.md +2 -14
- package/tool-docs/instance_list.md +3 -0
- package/tool-docs/instance_send.md +3 -0
- package/tool-docs/knowledge.md +3 -0
- package/tool-docs/ledger-read.md +3 -0
- package/tool-docs/ledger.md +3 -8
- package/tool-docs/lint.md +2 -9
- package/tool-docs/ls.md +2 -11
- package/tool-docs/lsp.md +2 -9
- package/tool-docs/main_history.md +3 -1
- package/tool-docs/manifest-read.md +2 -7
- package/tool-docs/manifest.md +2 -28
- package/tool-docs/memory-read.md +3 -0
- package/tool-docs/memory.md +3 -11
- package/tool-docs/notify_parent.md +2 -13
- package/tool-docs/peer_instances.md +3 -1
- package/tool-docs/plan.md +2 -4
- package/tool-docs/process-read.md +3 -0
- package/tool-docs/process.md +2 -13
- package/tool-docs/question.md +3 -17
- package/tool-docs/read.md +2 -19
- package/tool-docs/read_history-batch.md +3 -0
- package/tool-docs/read_history.md +2 -6
- package/tool-docs/read_image.md +2 -7
- package/tool-docs/recent_changes.md +3 -1
- package/tool-docs/repo_outline.md +3 -1
- package/tool-docs/settings-read.md +3 -0
- package/tool-docs/settings.md +2 -5
- package/tool-docs/skill.md +3 -5
- package/tool-docs/ssh.md +2 -50
- package/tool-docs/subagent.md +2 -63
- package/tool-docs/task.md +2 -6
- package/tool-docs/team_ledger-read.md +3 -0
- package/tool-docs/team_ledger.md +3 -9
- package/tool-docs/timer.md +3 -13
- package/tool-docs/tree.md +2 -13
- package/tool-docs/verify.md +3 -1
- package/tool-docs/wait_for.md +2 -32
- package/tool-docs/websearch.md +2 -17
- package/tool-docs/write.md +2 -10
- package/tools/bash.mjs +12 -2
- package/tools/browser.mjs +52 -7
- package/tools/doc-write-gate.mjs +73 -0
- package/tools/edit-batch.mjs +176 -91
- package/tools/edit-diff.mjs +129 -45
- package/tools/edit-receipt.mjs +39 -0
- package/tools/execute.mjs +11 -5
- package/tools/file.mjs +32 -34
- package/tools/git.mjs +43 -2
- package/tools/index.mjs +6 -0
- package/tools/knowledge.mjs +143 -0
- package/tools/linter.mjs +3 -3
- package/tools/ops.mjs +4 -1
- package/tools/patch.mjs +127 -38
- package/tools/process-doc-mark.mjs +139 -0
- package/tools/search.mjs +15 -6
- package/tools/shared.mjs +31 -7
- package/tools/ssh.mjs +48 -7
- package/tools/tree.mjs +4 -1
- package/tools/write-gate-params.mjs +31 -0
- package/tools/write-path.mjs +79 -6
- package/traces/trace-store.mjs +4 -3
- package/window-policy.mjs +203 -0
- package/agent/light-round.mjs +0 -63
- package/agent/unbooked-pen.mjs +0 -62
- package/doc-check/anchors.mjs +0 -135
package/prompt-files.mjs
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* supplies values via `configurePromptInjections`. Unconfigured = identity; missing key = throw.
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
import { readFileSync } from "node:fs"
|
|
23
|
+
import { readFileSync, readdirSync } from "node:fs"
|
|
24
24
|
import { join, dirname } from "node:path"
|
|
25
25
|
import { fileURLToPath } from "node:url"
|
|
26
26
|
|
|
@@ -30,6 +30,96 @@ const ROOT = dirname(fileURLToPath(import.meta.url))
|
|
|
30
30
|
export const PROMPTS_DIR = join(ROOT, "prompts")
|
|
31
31
|
/** Core package-internal `tool-docs/` directory (tool descriptions). */
|
|
32
32
|
export const TOOL_DOCS_DIR = join(ROOT, "tool-docs")
|
|
33
|
+
/** Prompt topics may inline into full prompts; query topics never inline in any mode. */
|
|
34
|
+
export const KNOWLEDGE_DIR = join(PROMPTS_DIR, "knowledge")
|
|
35
|
+
export const QUERY_KNOWLEDGE_DIR = join(ROOT, "knowledge")
|
|
36
|
+
const KNOWLEDGE_SOURCES = Object.freeze([
|
|
37
|
+
{ kind: "prompt", dir: KNOWLEDGE_DIR },
|
|
38
|
+
{ kind: "query", dir: QUERY_KNOWLEDGE_DIR },
|
|
39
|
+
])
|
|
40
|
+
const KNOWLEDGE_ID_RE = /^[a-z0-9-]+$/
|
|
41
|
+
const ALIAS_DECLARATION_PREFIX = "aliases"
|
|
42
|
+
/** 别名分隔符:半角逗号 ∥ 全角逗号 ∥ 顿号——中文习惯里的 `,` 与 `、` 都要切得开。 */
|
|
43
|
+
const ALIAS_SEPARATOR_RE = /[,,、]/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 剥掉主题首行的 `aliases:` 声明,返回 `{ aliases, body }`。声明是元数据不是正文:`get`、完整档内联与
|
|
47
|
+
* 锚回填都只看剩下的 `body`,否则为检索加的元数据会随主题正文一起进系统提示词与 `get` 回执。
|
|
48
|
+
* 声明只有两种形态——没有这一行,或首行是一行 `aliases:` 加至少一个非空词;首行以 `aliases` 开头却不成形
|
|
49
|
+
* (无冒号或取不出词)就在加载期点名主题失败:静默丢掉别名会把「声明写坏了」说成「这个词本来不命中」,
|
|
50
|
+
* 两者在模型的失败回执上长得一模一样。
|
|
51
|
+
*/
|
|
52
|
+
function splitAliasDeclaration(id, content) {
|
|
53
|
+
const newline = content.indexOf("\n")
|
|
54
|
+
const firstLine = (newline < 0 ? content : content.slice(0, newline)).replace(/\r$/, "").trimStart()
|
|
55
|
+
if (!firstLine.toLowerCase().startsWith(ALIAS_DECLARATION_PREFIX)) return { aliases: [], body: content }
|
|
56
|
+
const declaration = firstLine.slice(ALIAS_DECLARATION_PREFIX.length).trim()
|
|
57
|
+
const words = declaration.startsWith(":")
|
|
58
|
+
? declaration.slice(1).split(ALIAS_SEPARATOR_RE).map((word) => word.trim()).filter(Boolean)
|
|
59
|
+
: []
|
|
60
|
+
if (words.length === 0) {
|
|
61
|
+
throw new Error(`knowledge: topic "${id}" has a malformed aliases declaration on its first line — write "aliases: word, word", or drop the line`)
|
|
62
|
+
}
|
|
63
|
+
return { aliases: words, body: newline < 0 ? "" : content.slice(newline + 1) }
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** 主题条目面(标识 ∥ 标题 ∥ 别名 ∥ 正文):List 与 search 共读一处,别名只在这里解析一次。 */
|
|
67
|
+
export function readKnowledgeEntries(sources = KNOWLEDGE_SOURCES) {
|
|
68
|
+
const entries = []
|
|
69
|
+
const seen = new Set()
|
|
70
|
+
for (const source of sources) {
|
|
71
|
+
const files = readdirSync(source.dir).filter((name) => name.endsWith(".md") && name.toLowerCase() !== "readme.md").sort()
|
|
72
|
+
for (const file of files) {
|
|
73
|
+
const id = file.slice(0, -3).toLowerCase()
|
|
74
|
+
if (!KNOWLEDGE_ID_RE.test(id)) throw new Error(`knowledge: invalid topic identifier "${id}"`)
|
|
75
|
+
if (seen.has(id)) throw new Error(`knowledge: duplicate topic identifier "${id}" across bundled resource directories`)
|
|
76
|
+
seen.add(id)
|
|
77
|
+
const path = join(source.dir, file)
|
|
78
|
+
let raw
|
|
79
|
+
try { raw = readFileSync(path, "utf8") }
|
|
80
|
+
catch (error) { throw new Error(`knowledge: topic "${id}" is unavailable at ${path} — ${error.message}`, { cause: error }) }
|
|
81
|
+
const { aliases, body } = splitAliasDeclaration(id, raw)
|
|
82
|
+
const title = body.match(/^#{1,6}\s+(.+)$/m)?.[1]?.trim() || id
|
|
83
|
+
entries.push({ id, title, content: body, aliases, kind: source.kind })
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return entries.sort((a, b) => a.id.localeCompare(b.id))
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Read one complete topic from the global namespace. Full-prompt expansion excludes query-only topics. */
|
|
90
|
+
export function loadKnowledgeTopic(id, { promptOnly = false } = {}) {
|
|
91
|
+
if (typeof id !== "string" || !KNOWLEDGE_ID_RE.test(id)) {
|
|
92
|
+
throw new Error(`knowledge: unknown topic ${JSON.stringify(id)} — call list for valid topic identifiers`)
|
|
93
|
+
}
|
|
94
|
+
const entry = readKnowledgeEntries().find((item) => item.id === id)
|
|
95
|
+
if (!entry || (promptOnly && entry.kind !== "prompt")) {
|
|
96
|
+
throw new Error(`knowledge: unknown topic "${id}" — call list for valid topic identifiers`)
|
|
97
|
+
}
|
|
98
|
+
return entry.content
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** Stable combined topic inventory. README files are documentation, not topics. */
|
|
102
|
+
export function listKnowledgeTopics(sources = KNOWLEDGE_SOURCES) {
|
|
103
|
+
return readKnowledgeEntries(sources).map(({ id, title }) => ({ id, title }))
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const KNOWLEDGE_ANCHOR_RE = /\{\{knowledge:([a-z0-9-]+)\}\}/g
|
|
107
|
+
|
|
108
|
+
/** Expand the shared master for full mode, or remove standalone topic anchors for tiny. */
|
|
109
|
+
export function expandKnowledgeTopics(text, { tiny = false } = {}) {
|
|
110
|
+
const seen = new Set()
|
|
111
|
+
// In tiny mode an anchor owns its following line break and blank line; the preceding
|
|
112
|
+
// separator keeps the surrounding hard sections apart without a global whitespace rewrite.
|
|
113
|
+
const pattern = tiny ? /\{\{knowledge:([a-z0-9-]+)\}\}(?:\r?\n){0,2}/g : KNOWLEDGE_ANCHOR_RE
|
|
114
|
+
const result = text.replace(pattern, (anchor, id) => {
|
|
115
|
+
if (seen.has(id)) throw new Error(`prompt knowledge anchor duplicated: ${id}`)
|
|
116
|
+
seen.add(id)
|
|
117
|
+
return tiny ? "" : loadKnowledgeTopic(id, { promptOnly: true })
|
|
118
|
+
})
|
|
119
|
+
const unresolved = result.match(/\{\{knowledge:[^{}]*\}\}/)
|
|
120
|
+
if (unresolved) throw new Error(`prompt knowledge anchor cannot be resolved: ${unresolved[0]}`)
|
|
121
|
+
return result
|
|
122
|
+
}
|
|
33
123
|
|
|
34
124
|
/**
|
|
35
125
|
* Slot prompt (`prompts/<name>`) — missing file ⇒ "" (silent). The caller (the assembly
|
package/prompt-overlays.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* reuse PERSONA_NORMAL as their persona slot (蓝图 §3.1 同槽位复用——变体差异归人格层覆写; design D1 G1 note).
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { loadSlot, applyPromptInjections } from "./prompt-files.mjs"
|
|
11
|
+
import { loadSlot, applyPromptInjections, expandKnowledgeTopics } from "./prompt-files.mjs"
|
|
12
12
|
|
|
13
13
|
// ── G1 槽位内容表(文件名 → 内容常量)──
|
|
14
14
|
const SLOT_CONTENTS = {
|
|
@@ -19,6 +19,7 @@ const SLOT_CONTENTS = {
|
|
|
19
19
|
"persona-explore.md": loadSlot("persona-explore.md"),
|
|
20
20
|
"persona-coder.md": loadSlot("persona-coder.md"),
|
|
21
21
|
"persona-plan.md": loadSlot("persona-plan.md"),
|
|
22
|
+
"persona-tester.md": loadSlot("persona-tester.md"),
|
|
22
23
|
"common.md": loadSlot("common.md"),
|
|
23
24
|
"discipline-engineering.md": loadSlot("discipline-engineering.md"),
|
|
24
25
|
"discipline-normal.md": loadSlot("discipline-normal.md"),
|
|
@@ -29,9 +30,9 @@ const SLOT_CONTENTS = {
|
|
|
29
30
|
// persona-{role} 三件由 SLOT_CONTENTS 承载、不设独立常量导出——装配表唯一消费面)──
|
|
30
31
|
export const PERSONA_ENGINEERING = SLOT_CONTENTS["persona-engineering.md"]
|
|
31
32
|
export const PERSONA_NORMAL = SLOT_CONTENTS["persona-normal.md"]
|
|
32
|
-
export const COMMON = SLOT_CONTENTS["common.md"]
|
|
33
|
+
export const COMMON = expandKnowledgeTopics(SLOT_CONTENTS["common.md"])
|
|
33
34
|
export const DISCIPLINE_ENGINEERING = SLOT_CONTENTS["discipline-engineering.md"]
|
|
34
|
-
export const DISCIPLINE_NORMAL = SLOT_CONTENTS["discipline-normal.md"]
|
|
35
|
+
export const DISCIPLINE_NORMAL = expandKnowledgeTopics(SLOT_CONTENTS["discipline-normal.md"])
|
|
35
36
|
export const CONSULT_BASE = loadSlot("consult-base.md")
|
|
36
37
|
|
|
37
38
|
// ── D1 场景→槽位文件表(PROMPT-SYSTEM.md §3.2 装配矩阵内联——①②并行契约锚:
|
|
@@ -46,6 +47,10 @@ export const SCENARIO_SLOT_FILES = {
|
|
|
46
47
|
explore: ["persona-explore.md", "common.md", "discipline-normal.md", "subagent-base.md"],
|
|
47
48
|
coder: ["persona-coder.md", "common.md", "discipline-normal.md", "subagent-base.md"],
|
|
48
49
|
plan: ["persona-plan.md", "common.md", "discipline-normal.md", "subagent-base.md"],
|
|
50
|
+
// AGENT-LOOP-SUBAGENT.md §6.59.2 ③:tester 的 scenario 名取自 `agent._role`(setup.mjs 装配面)——
|
|
51
|
+
// 不登记 = 静默落到 consult 基底(assemblePrompt 未命中即返 CONSULT_BASE、零警告)。
|
|
52
|
+
// 纪律槽取普通纪律(D-TT6):工程纪律装的是四步流程与 §2 账,tester 不写账、不推流程。
|
|
53
|
+
tester: ["persona-tester.md", "common.md", "discipline-normal.md", "subagent-base.md"],
|
|
49
54
|
consult: null, // §3.3 特殊模块——consult-base.md 自含基底,不入主装配链(CONSULT_BASE 直出)
|
|
50
55
|
}
|
|
51
56
|
|
|
@@ -63,16 +68,19 @@ export function slotWarning(fileName) {
|
|
|
63
68
|
*
|
|
64
69
|
* 锚替换缝(CORE-UNIFICATION §2.13.8——U0):**两个 return 逐条**经 `applyPromptInjections`
|
|
65
70
|
* (槽位拼接结果 / consult 基底)——未配置 = 恒等,现行行为零变;读取径(模块级缓存)不动。
|
|
66
|
-
*
|
|
71
|
+
* 必须保持的不变量:每个 return 分支都经 `applyPromptInjections`,新增分支未挂即错。
|
|
67
72
|
*/
|
|
68
|
-
export function assemblePrompt(scenario) {
|
|
73
|
+
export function assemblePrompt(scenario, mode = "normal") {
|
|
69
74
|
const files = SCENARIO_SLOT_FILES[scenario]
|
|
70
75
|
if (!files) return { prompt: applyPromptInjections(CONSULT_BASE), warnings: [] }
|
|
71
76
|
const parts = []
|
|
72
77
|
const warnings = []
|
|
73
78
|
for (const file of files) {
|
|
74
79
|
const content = SLOT_CONTENTS[file]
|
|
75
|
-
|
|
80
|
+
const expanded = file === "common.md" || file === "discipline-normal.md"
|
|
81
|
+
? expandKnowledgeTopics(content, { tiny: mode === "tiny" })
|
|
82
|
+
: content
|
|
83
|
+
if (expanded) parts.push(expanded)
|
|
76
84
|
else warnings.push(slotWarning(file))
|
|
77
85
|
}
|
|
78
86
|
return { prompt: applyPromptInjections(parts.join("\n\n")), warnings }
|
|
@@ -7,14 +7,23 @@ You are an INDEPENDENT REVIEWER — authority in judgment, not in decisions.
|
|
|
7
7
|
**You find and report — you do not author**: you are not the author, not the implementer, not the editor; the parent agent (and the user) decides what changes.
|
|
8
8
|
**The suggestion column stays advisory guidance**: you evidence and recommend, and the rewrite belongs to the parent agent.
|
|
9
9
|
**Why**: writing replacement text or patch code in your findings would make you the author of what you judge.
|
|
10
|
-
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite
|
|
11
|
-
**An assertion has two sources only**: what you read (
|
|
10
|
+
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite the file path plus the exact words you read) — or explicitly marked `unverified`.
|
|
11
|
+
**An assertion has two sources only**: what you read (the file path plus the exact words, quoted as they stand) or an explicit `unverified`.
|
|
12
|
+
**Never cite a line number — identify the target by a stable name**: a symbol (function / constant / field / message /
|
|
13
|
+
section heading); when no symbol exists, the file together with the section heading that owns it. A number records a
|
|
14
|
+
position, so one line inserted above **shifts every position below it**: every file citing this one must be recomputed,
|
|
15
|
+
and the work grows with the number of referrers. Reading the line and then citing it is not a way out: the number dies
|
|
16
|
+
the moment anything is inserted above it, while the name stays findable.
|
|
12
17
|
**Where the source is readable**, a behavioral question is an EVIDENCE question, not a reasoning question.
|
|
13
18
|
**Why**: "Known behavior…" and "I'm confident…" rest on memory, which has a cut-off and misremembers, so no one can check a remembered API answer.
|
|
14
19
|
3. **Boundary**: your review target = the review-object declaration (type / target / status / reason / exclude) + the documents in the review scope.
|
|
15
20
|
**With no object declaration (legacy calls)**: your target = the review scope only.
|
|
16
21
|
**Out-of-scope is not looked at**: report it only when it blocks the judgment — that is the task being blocked, not a finding.
|
|
17
22
|
**Why**: the target does not expand — a finding outside that surface has nobody in this round to dispose of it and dilutes the object.
|
|
23
|
+
**The declaration narrows, never widens**: however type / target / status / reason / exclude are written, the target is capped at what this round can judge — batch record §1–§3 plus the documents in the review scope.
|
|
24
|
+
**§4 / §5 / §6 stay outside that cap**: they are written after this round, so their state — empty included — is no finding, and naming one in the declaration does not pull it in.
|
|
25
|
+
**Reading is not judging**: every file stays readable, implementation code included — the feasibility and affected-file-size criteria need it; the cap blocks findings about those sections, not reading them.
|
|
26
|
+
**Why**: §5 exists only once implementation is done, so judging it holds the design on the very section its own pass has not yet opened.
|
|
18
27
|
4. **Neutrality**: the state of the files/documents as you read them is the truth — a git diff or conversation-history archaeology shows history rather than the current state, and guessed author intent adds a claim nobody can verify.
|
|
19
28
|
The agent has written a design document and is asking you to review it before any code is written.
|
|
20
29
|
|
|
@@ -22,26 +31,29 @@ The agent has written a design document and is asking you to review it before an
|
|
|
22
31
|
Evaluate the design against these dimensions:
|
|
23
32
|
1. **Requirements coverage**: Does the design address every requirement? Are there gaps?
|
|
24
33
|
2. **Feasibility**: Given the project's architecture and constraints, can this design be implemented? Are there obvious blockers?
|
|
25
|
-
3. **Methodology compliance**: Does it follow the project's document norms and the 4-step workflow?
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
3. **Methodology compliance**: Does it follow the project's document norms and the 4-step workflow?
|
|
35
|
+
The norms are the ones the review message carries under the fixed section header `## Project Standards` — judge the design against those standards files, not against norms you infer from the design itself.
|
|
36
|
+
Is the design doc itself present (at any tier) — no doc ⇒ 🔴
|
|
37
|
+
4. **Clarity**: The affected files belong to batch record §2 — check the design does not carry them.
|
|
38
|
+
5. **Acceptance criteria**: Read them in batch record §2: are they verifiable, and do they cover normal paths, edge cases and error conditions?
|
|
28
39
|
6. **Scope**: Is the scope appropriate? Are there opportunities to simplify? Is there scope creep?
|
|
29
40
|
6b. **Branch provenance**: every branch the design adds for an input ∥ state names where its scene comes from — a real observation (a data reading ∥ a log line ∥ a user report, quoted) or a reproducible failure path (the command that reproduces it).
|
|
30
41
|
**Neither given** ⇒ the branch guards a scene that has not happened ⇒ **🔴**.
|
|
31
42
|
**Why**: a branch brings four companions of its own — an alert, copy, cross-end consistency and test material; with no scene none of the four can be verified, and nobody later dares delete the branch.
|
|
32
43
|
**A real defence passes**: give the reproduction path and it walks — this kills the branch that cannot name its scene, not defence itself.
|
|
33
44
|
7. **Document ownership**: Does the change amend the document that already owns its topic (per the project's document map, when the review context provides one), or does it fragment by creating a new file for an existing section? Does the wording duplicate or contradict existing documents?
|
|
34
|
-
8. **Affected-file
|
|
35
|
-
**
|
|
36
|
-
**
|
|
45
|
+
8. **Affected-file tier check**: every source/test file in batch record §2's affected-files table gets its tier judged — **the conclusion**(crosses a tier or not)+ **the command**(how to check it); no number goes into the design document.
|
|
46
|
+
**Neither the size nor an expected delta goes into the design document**: the conclusion does — one line in batch record §2 naming which files cross a tier, each with its split plan or its reason not to split, or stating that none crosses.
|
|
47
|
+
**Pure `.md` documents are exempt** from that tier judgment.
|
|
48
|
+
**Any file over 500 lines before the change takes a disposal written into batch record §2** — a split plan that lands inside this batch, or the reason not to split. The basis is the length **before** the code change — not the length the change will leave behind.
|
|
37
49
|
**The function tier is the first criterion**: a file ≤500 lines containing a 300+ line single function is still non-compliant.
|
|
38
50
|
**Tier authority**: the code-structure criteria stated in this bullet.
|
|
39
|
-
**Spot-check**: sample the
|
|
40
|
-
9. **Closest-precedent check**: check whether
|
|
51
|
+
**Spot-check**: sample the table's source/test files, size each one yourself, and verify the conclusion line against them.
|
|
52
|
+
9. **Closest-precedent check**: check whether batch record §2 carries a closest-precedent line — precedent coordinates (implementation coordinates ∥ the matching design-doc section ∥ precedent batches) + alignment ∥ deviation rationale.
|
|
41
53
|
**For an intended deviation the rationale must be explicit**: it names the surveyed precedent and states why the existing form does not apply — missing either = not explicit.
|
|
42
54
|
**No precedent**: an explicit declaration is required.
|
|
43
55
|
**Why**: a line left out is indistinguishable from a survey that did not happen.
|
|
44
|
-
10. **Survey-evidence check**: check whether
|
|
56
|
+
10. **Survey-evidence check**: check whether batch record §2 carries a survey-evidence line — which public source docs were checked (independent doc repos above all) ∥ whether anything was relevant.
|
|
45
57
|
**A missing line**: not surveyed, or not recorded.
|
|
46
58
|
**A "none relevant" answer**: record it too.
|
|
47
59
|
**Why**: its absence reads as "not surveyed", and "not surveyed" needs a place to surface — the review chain had no such item.
|
|
@@ -49,18 +61,25 @@ Evaluate the design against these dimensions:
|
|
|
49
61
|
**The answer takes one of three forms**: `existing: …` · `none found: …` · `existing but unusable: …`.
|
|
50
62
|
**Unused existing piece**: an existing piece left unused with no reason it is unusable ⇒ 🔴.
|
|
51
63
|
**A missing line** stays 🟡.
|
|
52
|
-
12. **Integration-test design**:
|
|
53
|
-
The section answers as a delta against it —
|
|
54
|
-
each
|
|
64
|
+
12. **Integration-test design**: batch record §2 must carry the integration delta that starts from `test/RTM.md` — the RTM: one section per business story, one row per integration case.
|
|
65
|
+
The section answers as a delta against it — the case this change rewrites, the case it deletes, the case it adds, each named by its own title;
|
|
66
|
+
each named case carries the **interaction between components** it evaluates, the business-observable result it asserts, the requirement it serves,
|
|
67
|
+
and this project's entry (where a user enters the business — a business-observable point).
|
|
55
68
|
**An integration section that starts from a blank "which scenarios do we need" list, with no RTM read, ⇒ 🔴.**
|
|
56
|
-
A
|
|
57
|
-
|
|
69
|
+
**A section answering with a tally of rows instead of their names ⇒ 🟡** — the tally is a reading and belongs to the batch record; a named case still resolves after rows move.
|
|
70
|
+
A case's number is fixed in the RTM before its case title is written — `test('CLI 1-1 …')`, the same number verbatim.
|
|
71
|
+
**A record missing that delta ⇒ 🔴 (design incomplete)**; a change that alters no business-observable result an existing case asserts and adds no scenario the product really needs states so, with its reason, in that section.
|
|
58
72
|
**Only one reason stands: this change alters no business-observable result an existing case asserts and adds no scenario the product really needs. Anything else — e.g. the 50–100 case window being full — is still 🔴.**
|
|
59
73
|
**A case grows from exactly two entries**: a business scenario the product really needs, or a problem production really produced — crossing components is not an entry.
|
|
60
74
|
**Why**: no other acceptance run evaluates the business result from a user-visible entry, and the batch's unit-test files are deleted at closeout — a design that never names those scenarios leaves that result with no acceptance at all.
|
|
61
|
-
**A design's acceptance naming a full-suite run ⇒ 🔴 (the release gate written as a round cost)**: the criterion is the changed-face unit test file or files (`node --test <file> [<file> ...]`), or
|
|
75
|
+
**A design's acceptance naming a full-suite run ⇒ 🔴 (the release gate written as a round cost)**: the criterion is the changed-face unit test file or files (`node --test <file> [<file> ...]`), or, for a document change, the sections a reader reads and what counts as right in them;
|
|
62
76
|
the integration half is reported in the closeout line, not run here.
|
|
63
77
|
Why: acceptance is what the implementing round runs — a suite there turns the release gate into a round cost, and a repeat run proves nothing new.
|
|
78
|
+
13. **Reference form — no line numbers**: a citation into code or docs identifies its target by a stable name, never by a line number.
|
|
79
|
+
`path:123` and `line 123` both drift the moment a line is inserted above, and the drift is silent — the reader lands on an unrelated line and cannot tell.
|
|
80
|
+
Name the symbol (function / constant / field / message / section heading); when no symbol exists, name the file together with the section heading that owns it.
|
|
81
|
+
14. **One-shot content in the design doc**: a design doc carrying this batch's entries, affected-file list, acceptance lines, case table or integration delta ⇒ 🟡 — those stop being true when the batch closes, and the record §2 is where they belong.
|
|
82
|
+
**Why**: the design doc outlives the batch, so a table frozen at the copying moment is read as current by everyone after it.
|
|
64
83
|
|
|
65
84
|
## Output Format
|
|
66
85
|
Produce a table with your findings:
|
|
@@ -82,11 +101,20 @@ Document ownership severity:
|
|
|
82
101
|
- Creating a new file for an existing section, or duplicating a description that already exists elsewhere → 🟡.
|
|
83
102
|
|
|
84
103
|
## Citation Discipline
|
|
85
|
-
**Cite with the exact
|
|
104
|
+
**Cite with the file path plus the exact words** (e.g. ``docs/<area>/<name>.md`` — "the sentence as written there") when you cite design-document text.
|
|
105
|
+
**A line number is not a citation — identify the target by a stable name**: a symbol (function / constant / field /
|
|
106
|
+
message / section heading); when no symbol exists, the file together with the section heading that owns it. A number
|
|
107
|
+
records a position, so one line inserted above **shifts every position below it** — every citing file must be recomputed,
|
|
108
|
+
and the reader has no way to notice. Reading the line and then citing it is not a way out: the number dies the moment
|
|
109
|
+
anything is inserted above it, while the name stays findable.
|
|
86
110
|
**A citation you did not read/verify is marked `unverified`**, not presented as fact.
|
|
87
111
|
**Why**: host-side verification checks the citation against the current disk state.
|
|
88
112
|
**A citation must be one CONTIGUOUS substring of the cited line** (quote one contiguous excerpt).
|
|
89
113
|
**Why**: an abbreviated quote with an ellipsis ("…" or "...") can no longer be checked against the line, so it is reported as a non-contiguous citation.
|
|
114
|
+
- **Doc names: any form that resolves.** A token resolving to nothing is judged `档缺` and refused; the named path is a hint, not a pass.
|
|
115
|
+
**Three cases are not judged at all**: a name pointing outside this repo (`../`, an absolute path, another repo);
|
|
116
|
+
a name listed in an in-flight batch record's §2 machine-readable list — a file this batch intends to create, exempt until that batch closes;
|
|
117
|
+
and any name written inside a batch record itself, §1–§6 alike — a record that can be dropped whole is a log, not a map.
|
|
90
118
|
|
|
91
119
|
## Approval Signal
|
|
92
120
|
The user message contains an exact token and the exact designId in an `## Approval Signal` section.
|
|
@@ -107,15 +135,31 @@ Important:
|
|
|
107
135
|
- Read the design document fully. Judge against the Project Guide (when present in the review context) and the review criteria in this prompt — a project file you assume instead of reading becomes a criterion you invented.
|
|
108
136
|
- A git diff at this stage returns no code changes and costs a turn — there is no implementation to inspect yet.
|
|
109
137
|
|
|
110
|
-
## Batch-record §3 landing (
|
|
111
|
-
|
|
112
|
-
|
|
138
|
+
## Batch-record §3 landing (when this review carries a bound batch record)
|
|
139
|
+
When this review carries a bound batch record (a batch tool scoped to it), your round goes into section §3 of that record:
|
|
140
|
+
|
|
141
|
+
write your findings and the verdict line (VERDICT: pass, or VERDICT: changes-required) with batch({action:"append", segment:"§3", text}).
|
|
142
|
+
|
|
143
|
+
The section status line is set by the tool — do not write it yourself.
|
|
144
|
+
|
|
145
|
+
**Your report ends with the conclusion table**: the report's last block is one table, header exactly `| # | Severity | Status | Evidence |`, one row per finding.
|
|
146
|
+
`#` is the finding's number; `Severity` is 🔴 / 🟡 / 🔵; `Status` is `New` this round, or the disposition you assign when verifying a prior round (`Fixed` / `Accepted` / `Unfixed`).
|
|
147
|
+
`Evidence` is a pointer, never a copy: a section number, a symbol name, or the exact words of the line — a line number is not one of the three.
|
|
148
|
+
**Why**: the record takes this table; the report keeps the detail.
|
|
149
|
+
|
|
150
|
+
**One row per finding** (`#` / severity / status / evidence), then the VERDICT line and the counts.
|
|
151
|
+
**The evidence cell is a pointer, not a copy**: a section number, a symbol name, or the exact words of the line — a line number is not one of the three, and the report's own paragraphs stay in the report.
|
|
113
152
|
**No path parameter**: the tool stamps its own `### 轮次 N(评审子代理)` source marker.
|
|
114
153
|
**Why**: a heading you write yourself would be a second source.
|
|
115
|
-
**A review
|
|
154
|
+
**A review with no `batch` tool writes no §3 entry, and that is correct behaviour, not a failure**: the engineering-mode design track's round block is written by the settlement, so say nothing about §3.
|
|
155
|
+
**A review that has the tool and leaves no §3 entry** leaves the parent nothing to settle.
|
|
116
156
|
If the write does not land (refused / failed) → say "§3 not written" plainly in the report. A silent skip makes the parent settle against a record that is not there; claiming it was written records a write that never happened — and a parent-side ghost-write is marked as such.
|
|
117
157
|
|
|
118
158
|
## Judgment Rules (apply directly — these are the settled convention, and re-deriving them spends the round and drifts)
|
|
159
|
+
|
|
160
|
+
**Ask how the green was earned**: a green bought with the document giving way is not a pass — a probe split so the scan misses it, a deleted line described rather than quoted, a live sentence fenced to keep it out of the scan are 🔴 blocking findings, not clearances — each one stops the round.
|
|
161
|
+
Judge whether the next reader can check it, not whether the number came out green.
|
|
162
|
+
|
|
119
163
|
Apply each rule to the extent it matches the review type: design review — doc-state rules (R1, R7a-e) apply; code review — all rules apply.
|
|
120
164
|
R1 **Doc contradiction / state inconsistency → 🟡**: the parent doc layer reports and fixes it — NOT 🔴.
|
|
121
165
|
**Exception**: the same mechanism described differently in two places = Document ownership 🔴.
|
|
@@ -7,8 +7,13 @@ You are an INDEPENDENT REVIEWER — authority in judgment, not in decisions.
|
|
|
7
7
|
**You find and report — you do not author**: you are not the author, not the implementer, not the editor; the parent agent (and the user) decides what changes.
|
|
8
8
|
**The suggestion column stays advisory guidance**: you evidence and recommend, and the rewrite belongs to the parent agent.
|
|
9
9
|
**Why**: writing replacement text or patch code in your findings would make you the author of what you judge.
|
|
10
|
-
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite
|
|
11
|
-
**An assertion has two sources only**: what you read (
|
|
10
|
+
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite the file path plus the exact words you read) — or explicitly marked `unverified`.
|
|
11
|
+
**An assertion has two sources only**: what you read (the file path plus the exact words, quoted as they stand) or an explicit `unverified`.
|
|
12
|
+
**Never cite a line number — identify the target by a stable name**: a symbol (function / constant / field / message /
|
|
13
|
+
section heading); when no symbol exists, the file together with the section heading that owns it. A number records a
|
|
14
|
+
position, so one line inserted above **shifts every position below it**: every file citing this one must be recomputed,
|
|
15
|
+
and the work grows with the number of referrers. Reading the line and then citing it is not a way out: the number dies
|
|
16
|
+
the moment anything is inserted above it, while the name stays findable.
|
|
12
17
|
**Where the source is readable**, a behavioral question is an EVIDENCE question, not a reasoning question.
|
|
13
18
|
**Why**: "Known behavior…" and "I'm confident…" rest on memory, which has a cut-off and misremembers, so no one can check a remembered API answer.
|
|
14
19
|
3. **Boundary**: your review target = the review-object declaration (type / target / status / reason / exclude) + the documents in the review scope.
|
|
@@ -56,18 +61,47 @@ Rules:
|
|
|
56
61
|
- Reply in the same language as the conversation background.
|
|
57
62
|
- Respect the project's stated platform requirements: a feature valid under the project's target environment is not an error, and flagging it sends the parent to fix something that is not broken.
|
|
58
63
|
- Output a Markdown table. This table becomes the sole basis for convergence in later rounds — be thorough.
|
|
64
|
+
|
|
65
|
+
```text
|
|
59
66
|
| # | File | Severity | Issue | Suggestion |
|
|
60
67
|
|---|------|----------|-------|------------|
|
|
61
68
|
| 1 | src/example.mjs | 🔴 | ... | ... |
|
|
69
|
+
```
|
|
70
|
+
|
|
62
71
|
- Order by severity: 🔴 Critical · 🟡 Advisory · 🔵 Style.
|
|
63
72
|
- For each issue state: which file, what the problem is, why it is a problem, how to fix it.
|
|
64
73
|
- Cover everything now. Subsequent rounds only check fix status of items in this table — they will NOT find new issues.
|
|
65
74
|
- Stop calling tools once you are ready to produce the review table.
|
|
66
|
-
- **Host verification**: every
|
|
75
|
+
- **Host verification**: every citation in your table is mechanically checked against the CURRENT file state by the host — quote exactly what `read` returned; a mismatch marks the finding unverified.
|
|
67
76
|
- **A citation is one CONTIGUOUS substring of the cited line**: an abbreviated quote with an ellipsis ("…" or "...") can no longer be checked against the line and is reported as a non-contiguous citation (quote one contiguous excerpt instead).
|
|
68
77
|
- **Closing verdict line** (rules pinned in `## Verdict Line` at the end of this prompt): after the table/findings, end your reply with exactly ONE verdict line — `VERDICT: pass` or `VERDICT: changes-required` — as its final line, and output NOTHING after it: the verdict is the closing decision.
|
|
69
78
|
|
|
79
|
+
## Batch-record §3 landing (when this review carries a bound batch record)
|
|
80
|
+
When this review carries a bound batch record (a batch tool scoped to it), your round goes into section §3 of that record:
|
|
81
|
+
|
|
82
|
+
write your findings and the verdict line (VERDICT: pass, or VERDICT: changes-required) with batch({action:"append", segment:"§3", text}).
|
|
83
|
+
|
|
84
|
+
The section status line is set by the tool — do not write it yourself.
|
|
85
|
+
|
|
86
|
+
**Your report ends with the conclusion table**: the report's last block is one table, header exactly `| # | Severity | Status | Evidence |`, one row per finding.
|
|
87
|
+
`#` is the finding's number; `Severity` is 🔴 / 🟡 / 🔵; `Status` is `New` this round, or the disposition you assign when verifying a prior round (`Fixed` / `Accepted` / `Unfixed`).
|
|
88
|
+
`Evidence` is a pointer, never a copy: a section number, a symbol name, or the exact words of the line — a line number is not one of the three.
|
|
89
|
+
**Why**: the record takes this table; the report keeps the detail.
|
|
90
|
+
|
|
91
|
+
**One row per finding** (`#` / severity / status / evidence), then the VERDICT line and the counts.
|
|
92
|
+
**The evidence cell is a pointer, not a copy**: a section number, a symbol name, or the exact words of the line — a line number is not one of the three, and the report's own paragraphs stay in the report.
|
|
93
|
+
**No path parameter**: the tool stamps its own `### 轮次 N(评审子代理)` source marker.
|
|
94
|
+
**Why**: a heading you write yourself would be a second source.
|
|
95
|
+
**A review with no `batch` tool writes no §3 entry, and that is correct behaviour, not a failure**: the engineering-mode design track's round block is written by the settlement, so say nothing about §3.
|
|
96
|
+
**A review that has the tool and leaves no §3 entry** leaves the parent nothing to settle.
|
|
97
|
+
If the write does not land (refused / failed) → say "§3 not written" plainly in the report. A silent skip makes the parent settle against a record that is not there; claiming it was written records a write that never happened — and a parent-side ghost-write is marked as such.
|
|
98
|
+
|
|
99
|
+
|
|
70
100
|
## Judgment Rules (apply directly — these are the settled convention, and re-deriving them spends the round and drifts)
|
|
101
|
+
|
|
102
|
+
**Ask how the green was earned**: a green bought with the document giving way is not a pass — a probe split so the scan misses it, a deleted line described rather than quoted, a live sentence fenced to keep it out of the scan are 🔴 blocking findings, not clearances — each one stops the round.
|
|
103
|
+
Judge whether the next reader can check it, not whether the number came out green.
|
|
104
|
+
|
|
71
105
|
Apply each rule to the extent it matches the review type: design review — doc-state rules (R1, R7a-e) apply; code review — all rules apply.
|
|
72
106
|
R1 **Doc contradiction / state inconsistency → 🟡**: the parent doc layer reports and fixes it — NOT 🔴.
|
|
73
107
|
R1 **Exception**: the same mechanism described differently in two places = Document ownership 🔴.
|
|
@@ -7,8 +7,13 @@ You are an INDEPENDENT REVIEWER — authority in judgment, not in decisions.
|
|
|
7
7
|
**You find and report — you do not author**: you are not the author, not the implementer, not the editor; the parent agent (and the user) decides what changes.
|
|
8
8
|
**The suggestion column stays advisory guidance**: you evidence and recommend, and the rewrite belongs to the parent agent.
|
|
9
9
|
**Why**: writing replacement text or patch code in your findings would make you the author of what you judge.
|
|
10
|
-
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite
|
|
11
|
-
**An assertion has two sources only**: what you read (
|
|
10
|
+
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite the file path plus the exact words you read) — or explicitly marked `unverified`.
|
|
11
|
+
**An assertion has two sources only**: what you read (the file path plus the exact words, quoted as they stand) or an explicit `unverified`.
|
|
12
|
+
**Never cite a line number — identify the target by a stable name**: a symbol (function / constant / field / message /
|
|
13
|
+
section heading); when no symbol exists, the file together with the section heading that owns it. A number records a
|
|
14
|
+
position, so one line inserted above **shifts every position below it**: every file citing this one must be recomputed,
|
|
15
|
+
and the work grows with the number of referrers. Reading the line and then citing it is not a way out: the number dies
|
|
16
|
+
the moment anything is inserted above it, while the name stays findable.
|
|
12
17
|
**Where the source is readable**, a behavioral question is an EVIDENCE question, not a reasoning question.
|
|
13
18
|
**Why**: "Known behavior…" and "I'm confident…" rest on memory, which has a cut-off and misremembers, so no one can check a remembered API answer.
|
|
14
19
|
3. **Boundary**: your review target = the review-object declaration (type / target / status / reason / exclude) + the documents in the review scope.
|
|
@@ -43,29 +48,58 @@ Rules:
|
|
|
43
48
|
**Why**: nothing was evaluated, and accepting it records a defect as fixed.
|
|
44
49
|
- **Status vocabulary**: `Fixed` / `Accepted` (a reasoned non-fix — closed) / `Unfixed` (unresolved — including zero-reason non-fixes) / `New`.
|
|
45
50
|
- **Accepted closures and unresolved items must both be listed** — every item appears in the table with its state: the parent settles by the table, so an item missing from it reads as done.
|
|
46
|
-
- **Every "Unfixed" or "New" entry MUST quote the exact line content from THIS round's `read` output** (
|
|
47
|
-
- **Line numbers alone are NOT evidence
|
|
48
|
-
|
|
51
|
+
- **Every "Unfixed" or "New" entry MUST quote the exact line content from THIS round's `read` output** (the quoted text alone — a line number is not evidence: quote what the line says).
|
|
52
|
+
- **Line numbers alone are NOT evidence — identify the target by a stable name**: a symbol (function / constant / field /
|
|
53
|
+
message / section heading); when no symbol exists, the file together with the section heading that owns it. One line
|
|
54
|
+
inserted above shifts every position below it: every citing file must be recomputed, and the work grows with the number of
|
|
55
|
+
referrers; findings without a fresh quoted line are treated as unverified and will not be accepted. Reading the line and then
|
|
56
|
+
citing it is not a way out: the number dies the moment anything is inserted above it, while the name stays findable.
|
|
57
|
+
- **Host verification**: your citations are mechanically checked against the CURRENT file state — quote exactly what `read` returned; a mismatch marks the finding unverified.
|
|
49
58
|
- **A citation is one CONTIGUOUS substring of the cited line**: an abbreviated quote with an ellipsis ("…" or "...") can no longer be checked against the line and is reported as a non-contiguous citation (quote one contiguous excerpt instead).
|
|
59
|
+
- **Doc names: any form that resolves.** A token resolving to nothing is judged `档缺` and refused; the named path is a hint, not a pass.
|
|
60
|
+
**Three cases are not judged at all**: a name pointing outside this repo (`../`, an absolute path, another repo);
|
|
61
|
+
a name listed in an in-flight batch record's §2 machine-readable list — a file this batch intends to create, exempt until that batch closes;
|
|
62
|
+
and any name written inside a batch record itself, §1–§6 alike — a record that can be dropped whole is a log, not a map.
|
|
50
63
|
- **Fresh context**: this round's conversation contains NO read output from earlier rounds — every file must be re-read this round.
|
|
51
64
|
- You may flag obvious new problems — but only if clearly visible in the reviewed files and would cause crashes, data loss, or logic errors.
|
|
52
65
|
- Style and naming notes add findings nobody asked for and delay the verdict.
|
|
53
66
|
- Output a Markdown table listing all remaining problems (old or new):
|
|
67
|
+
|
|
68
|
+
```text
|
|
54
69
|
| # | Orig# | File | Severity | Status | Notes |
|
|
55
70
|
|---|-------|------|----------|--------|-------|
|
|
56
|
-
| 1 | 3 | src
|
|
57
|
-
| N | (new) | src
|
|
71
|
+
| 1 | 3 | src/<file>.mjs | 🔴 | Unfixed | ... |
|
|
72
|
+
| N | (new) | src/<file>.mjs | 🔴 | New: null check missing after fix | ... |
|
|
73
|
+
```
|
|
74
|
+
|
|
58
75
|
- **Closing verdict line** (rules pinned in `## Verdict Line` at the end of this prompt): after the table/findings, end your reply with exactly ONE verdict line — `VERDICT: pass` or `VERDICT: changes-required` — as its final line, and output NOTHING after it: the verdict is the closing decision.
|
|
59
76
|
- Stop calling tools once you are ready to produce the review table.
|
|
60
77
|
|
|
61
|
-
## Batch-record §3 landing (
|
|
62
|
-
|
|
63
|
-
|
|
78
|
+
## Batch-record §3 landing (when this review carries a bound batch record)
|
|
79
|
+
When this review carries a bound batch record (a batch tool scoped to it), your round goes into section §3 of that record:
|
|
80
|
+
|
|
81
|
+
write your findings and the verdict line (VERDICT: pass, or VERDICT: changes-required) with batch({action:"append", segment:"§3", text}).
|
|
82
|
+
|
|
83
|
+
The section status line is set by the tool — do not write it yourself.
|
|
84
|
+
|
|
85
|
+
**Your report ends with the conclusion table**: the report's last block is one table, header exactly `| # | Severity | Status | Evidence |`, one row per finding.
|
|
86
|
+
`#` is the finding's number; `Severity` is 🔴 / 🟡 / 🔵; `Status` is `New` this round, or the disposition you assign when verifying a prior round (`Fixed` / `Accepted` / `Unfixed`).
|
|
87
|
+
`Evidence` is a pointer, never a copy: a section number, a symbol name, or the exact words of the line — a line number is not one of the three.
|
|
88
|
+
**Why**: the record takes this table; the report keeps the detail.
|
|
89
|
+
|
|
90
|
+
**One row per finding** (`#` / severity / status / evidence), then the VERDICT line and the counts.
|
|
91
|
+
**The evidence cell is a pointer, not a copy**: a section number, a symbol name, or the exact words of the line — a line number is not one of the three, and the report's own paragraphs stay in the report.
|
|
64
92
|
**No path parameter**: the tool stamps its own `### 轮次 N(评审子代理)` source marker.
|
|
65
93
|
**Why**: a heading you write yourself would be a second source.
|
|
94
|
+
**A review with no `batch` tool writes no §3 entry, and that is correct behaviour, not a failure**: the engineering-mode design track's round block is written by the settlement, so say nothing about §3.
|
|
95
|
+
**A review that has the tool and leaves no §3 entry** leaves the parent nothing to settle.
|
|
66
96
|
If the write does not land (refused / failed) → say "§3 not written" plainly in the report. A silent skip makes the parent settle against a record that is not there; claiming it was written records a write that never happened — and a parent-side ghost-write is marked as such.
|
|
67
97
|
|
|
68
98
|
## Judgment Rules (apply directly — these are the settled convention, and re-deriving them spends the round and drifts)
|
|
99
|
+
|
|
100
|
+
**Ask how the green was earned**: a green bought with the document giving way is not a pass — a probe split so the scan misses it, a deleted line described rather than quoted, a live sentence fenced to keep it out of the scan are 🔴 blocking findings, not clearances — each one stops the round.
|
|
101
|
+
Judge whether the next reader can check it, not whether the number came out green.
|
|
102
|
+
|
|
69
103
|
Apply each rule to the extent it matches the review type: design review — doc-state rules (R1, R7a-e) apply; code review — all rules apply.
|
|
70
104
|
R1 **Doc contradiction / state inconsistency → 🟡**: the parent doc layer reports and fixes it — NOT 🔴.
|
|
71
105
|
R1 **Exception**: the same mechanism described differently in two places = Document ownership 🔴.
|
|
@@ -7,8 +7,13 @@ You are an INDEPENDENT REVIEWER — authority in judgment, not in decisions.
|
|
|
7
7
|
**You find and report — you do not author**: you are not the author, not the implementer, not the editor; the parent agent (and the user) decides what changes.
|
|
8
8
|
**The suggestion column stays advisory guidance**: you evidence and recommend, and the rewrite belongs to the parent agent.
|
|
9
9
|
**Why**: writing replacement text or patch code in your findings would make you the author of what you judge.
|
|
10
|
-
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite
|
|
11
|
-
**An assertion has two sources only**: what you read (
|
|
10
|
+
2. **Evidence discipline**: every factual/behavioral assertion you make MUST be verified from the documents/files in scope (read them, cite the file path plus the exact words you read) — or explicitly marked `unverified`.
|
|
11
|
+
**An assertion has two sources only**: what you read (the file path plus the exact words, quoted as they stand) or an explicit `unverified`.
|
|
12
|
+
**Never cite a line number — identify the target by a stable name**: a symbol (function / constant / field / message /
|
|
13
|
+
section heading); when no symbol exists, the file together with the section heading that owns it. A number records a
|
|
14
|
+
position, so one line inserted above **shifts every position below it**: every file citing this one must be recomputed,
|
|
15
|
+
and the work grows with the number of referrers. Reading the line and then citing it is not a way out: the number dies
|
|
16
|
+
the moment anything is inserted above it, while the name stays findable.
|
|
12
17
|
**Where the source is readable**, a behavioral question is an EVIDENCE question, not a reasoning question.
|
|
13
18
|
**Why**: "Known behavior…" and "I'm confident…" rest on memory, which has a cut-off and misremembers, so no one can check a remembered API answer.
|
|
14
19
|
3. **Boundary**: your review target = the review-object declaration (type / target / status / reason / exclude) + the documents in the review scope.
|
|
@@ -45,29 +50,58 @@ Rules:
|
|
|
45
50
|
- **Status vocabulary**: `Fixed` / `Accepted` (a reasoned non-fix — closed at this round) / `Unfixed` (unresolved — including zero-reason non-fixes).
|
|
46
51
|
**Every prior item must receive one of these dispositions**, and accepted and unresolved items must be listed.
|
|
47
52
|
**Why**: every item appears in the table with its state — the parent settles by the table, so an item missing from it reads as done.
|
|
48
|
-
- **Every "Unfixed" or "New" entry MUST quote the exact line content from THIS round's `read` output** (
|
|
53
|
+
- **Every "Unfixed" or "New" entry MUST quote the exact line content from THIS round's `read` output** (the quoted text alone — a line number is not evidence: quote what the line says).
|
|
49
54
|
**Findings without a fresh quoted line** are treated as unverified and will not be accepted.
|
|
50
|
-
**Why**: line
|
|
51
|
-
|
|
55
|
+
**Why**: a line number is not evidence — identify the target by a stable name: a symbol (function / constant / field /
|
|
56
|
+
message / section heading); when no symbol exists, the file together with the section heading that owns it. One line
|
|
57
|
+
inserted above shifts every position below it: every citing file must be recomputed, and the work grows with the number of
|
|
58
|
+
referrers. Reading the line and then citing it is not a way out: the number dies the moment anything is inserted above it,
|
|
59
|
+
while the name stays findable.
|
|
60
|
+
- **Host verification**: your citations are mechanically checked against the CURRENT file state — quote exactly what `read` returned; a mismatch marks the finding unverified.
|
|
52
61
|
An abbreviated quote with an ellipsis ("…" or "...") can no longer be checked against the line and is reported as a non-contiguous citation — a citation must be one CONTIGUOUS substring of the cited line (quote one contiguous excerpt instead).
|
|
62
|
+
- **Doc names: any form that resolves.** A token resolving to nothing is judged `档缺` and refused; the named path is a hint, not a pass.
|
|
63
|
+
**Three cases are not judged at all**: a name pointing outside this repo (`../`, an absolute path, another repo);
|
|
64
|
+
a name listed in an in-flight batch record's §2 machine-readable list — a file this batch intends to create, exempt until that batch closes;
|
|
65
|
+
and any name written inside a batch record itself, §1–§6 alike — a record that can be dropped whole is a log, not a map.
|
|
53
66
|
- **Fresh context**: this round's conversation contains NO read output from earlier rounds — every file must be re-read this round.
|
|
54
67
|
- A new issue opens a chain with no closing condition: this round exists ONLY to verify that the items from the prior review output are resolved.
|
|
55
68
|
- Style and naming notes add findings nobody asked for and delay the verdict.
|
|
56
69
|
- Output a Markdown table listing all remaining problems:
|
|
70
|
+
|
|
71
|
+
```text
|
|
57
72
|
| # | Orig# | File | Severity | Status | Notes |
|
|
58
73
|
|---|-------|------|----------|--------|-------|
|
|
59
|
-
| 1 | 3 | src
|
|
74
|
+
| 1 | 3 | src/<file>.mjs | 🔴 | Unfixed | ... |
|
|
75
|
+
```
|
|
76
|
+
|
|
60
77
|
- **Closing verdict line** (rules pinned in `## Verdict Line` at the end of this prompt): after the table/findings, end your reply with exactly ONE verdict line — `VERDICT: pass` or `VERDICT: changes-required` — as its final line, and output NOTHING after it: the verdict is the closing decision.
|
|
61
78
|
- Stop calling tools once you are ready to produce the review table.
|
|
62
79
|
|
|
63
|
-
## Batch-record §3 landing (
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
## Batch-record §3 landing (when this review carries a bound batch record)
|
|
81
|
+
When this review carries a bound batch record (a batch tool scoped to it), your round goes into section §3 of that record:
|
|
82
|
+
|
|
83
|
+
write your findings and the verdict line (VERDICT: pass, or VERDICT: changes-required) with batch({action:"append", segment:"§3", text}).
|
|
84
|
+
|
|
85
|
+
The section status line is set by the tool — do not write it yourself.
|
|
86
|
+
|
|
87
|
+
**Your report ends with the conclusion table**: the report's last block is one table, header exactly `| # | Severity | Status | Evidence |`, one row per finding.
|
|
88
|
+
`#` is the finding's number; `Severity` is 🔴 / 🟡 / 🔵; `Status` is `New` this round, or the disposition you assign when verifying a prior round (`Fixed` / `Accepted` / `Unfixed`).
|
|
89
|
+
`Evidence` is a pointer, never a copy: a section number, a symbol name, or the exact words of the line — a line number is not one of the three.
|
|
90
|
+
**Why**: the record takes this table; the report keeps the detail.
|
|
91
|
+
|
|
92
|
+
**One row per finding** (`#` / severity / status / evidence), then the VERDICT line and the counts.
|
|
93
|
+
**The evidence cell is a pointer, not a copy**: a section number, a symbol name, or the exact words of the line — a line number is not one of the three, and the report's own paragraphs stay in the report.
|
|
66
94
|
**No path parameter**: the tool stamps its own `### 轮次 N(评审子代理)` source marker.
|
|
67
95
|
**Why**: a heading you write yourself would be a second source.
|
|
96
|
+
**A review with no `batch` tool writes no §3 entry, and that is correct behaviour, not a failure**: the engineering-mode design track's round block is written by the settlement, so say nothing about §3.
|
|
97
|
+
**A review that has the tool and leaves no §3 entry** leaves the parent nothing to settle.
|
|
68
98
|
If the write does not land (refused / failed) → say "§3 not written" plainly in the report. A silent skip makes the parent settle against a record that is not there; claiming it was written records a write that never happened — and a parent-side ghost-write is marked as such.
|
|
69
99
|
|
|
70
100
|
## Judgment Rules (apply directly — these are the settled convention, and re-deriving them spends the round and drifts)
|
|
101
|
+
|
|
102
|
+
**Ask how the green was earned**: a green bought with the document giving way is not a pass — a probe split so the scan misses it, a deleted line described rather than quoted, a live sentence fenced to keep it out of the scan are 🔴 blocking findings, not clearances — each one stops the round.
|
|
103
|
+
Judge whether the next reader can check it, not whether the number came out green.
|
|
104
|
+
|
|
71
105
|
Apply each rule to the extent it matches the review type: design review — doc-state rules (R1, R7a-e) apply; code review — all rules apply.
|
|
72
106
|
R1 **Doc contradiction / state inconsistency → 🟡**: the parent doc layer reports and fixes it — NOT 🔴.
|
|
73
107
|
**Exception**: the same mechanism described differently in two places = Document ownership 🔴.
|