clearai-dsh 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/fold.js CHANGED
@@ -66,9 +66,13 @@ export const MUTATION_KIND = 'clearai'
66
66
  * 旧账里的这两格不再读。
67
67
  * v17 → v18:多了 `lessons`(经验:结案时经独立评估核过的「下次要留意什么」,`lesson/recorded` 折进来;
68
68
  * 别的会话留下的从 `clear/knowledge/lessons/<id>.json` 经 `workspace/synced` 进来)。
69
+ * v18 → v19:**探索的结构**:目标带 `mode`(广度调研 / 定向求解)、`questions`(问题)、`areas`(调研板块)
70
+ * 与结案时的 `answers`(按问题的结论四部分);判断带 `question`(属于哪个问题或板块)与 `from`
71
+ * (由本体里哪条关系提出);步骤带 `serves` 与按候选分别写的 `predictions`;未解释项带 `touches`
72
+ * (涉及的量、判断或事实)。全部可选:旧日志折出来就是整个目标一个问题。
69
73
  * 投影缓存按版本判定,所以旧缓存会被丢弃、从日志重折一遍。
70
74
  */
71
- export const STATE_VERSION = 18
75
+ export const STATE_VERSION = 19
72
76
 
73
77
  /**
74
78
  * **只留台账、不折进视图**的变更类型(词汇表的另一半)。
@@ -209,6 +213,32 @@ export function normalizeTests(tests) {
209
213
  return { hypotheses, level: tests.level ?? null }
210
214
  }
211
215
 
216
+ /** 预测清单的唯一形状:`[{hypothesis, expect}]`,空的去掉。 */
217
+ export function normalizePredictions(raw) {
218
+ if (!Array.isArray(raw)) return []
219
+ return raw
220
+ .map((item) => ({ hypothesis: String(item?.hypothesis ?? '').trim(), expect: String(item?.expect ?? '').trim() }))
221
+ .filter((item) => item.hypothesis !== '' && item.expect !== '')
222
+ }
223
+
224
+ /** 问题与板块的唯一形状(目标上的读面):id、一句话、状态、所属板块。 */
225
+ const QUESTION_STATUS = ['open', 'emergent', 'parked']
226
+ function normalizeQuestions(raw) {
227
+ if (!Array.isArray(raw)) return null
228
+ return raw
229
+ .map((item) => ({
230
+ id: String(item?.id ?? '').trim(),
231
+ text: String(item?.text ?? '').trim(),
232
+ status: QUESTION_STATUS.includes(item?.status) ? item.status : 'open',
233
+ area: typeof item?.area === 'string' && item.area.trim() !== '' ? item.area.trim() : null,
234
+ }))
235
+ .filter((item) => item.id !== '' && item.text !== '')
236
+ }
237
+ function normalizeAreas(raw) {
238
+ if (!Array.isArray(raw)) return null
239
+ return raw.map((item) => ({ id: String(item?.id ?? '').trim(), name: String(item?.name ?? '').trim() })).filter((item) => item.id !== '' && item.name !== '')
240
+ }
241
+
212
242
  function appendSteps(plan, rawSteps) {
213
243
  for (const raw of rawSteps) {
214
244
  plan.steps.push({
@@ -220,6 +250,10 @@ function appendSteps(plan, rawSteps) {
220
250
  tests: normalizeTests(raw.tests),
221
251
  /** 动手前写下的预期(可选);落空的地方记成未解释项。 */
222
252
  expect: typeof raw.expect === 'string' && raw.expect !== '' ? raw.expect : null,
253
+ /** 这一步服务哪个问题或板块(可选;不写就挂在当前问题下)。 */
254
+ serves: typeof raw.serves === 'string' && raw.serves !== '' ? raw.serves : null,
255
+ /** 按候选分别写的预测:`{hypothesis, expect}`。各候选预测相同的一步区分不了它们。 */
256
+ predictions: normalizePredictions(raw.predictions),
223
257
  status: 'open',
224
258
  evidence: null,
225
259
  advancedAt: null,
@@ -264,6 +298,11 @@ export function applyMutation(state, mutation) {
264
298
  if (typeof mutation.headline === 'string' && mutation.headline !== '') previous.headline = mutation.headline
265
299
  if (Array.isArray(mutation.criteria)) previous.criteria = clone(mutation.criteria)
266
300
  if (typeof mutation.criteria_note === 'string') previous.criteria_note = mutation.criteria_note
301
+ if (typeof mutation.mode === 'string' && mutation.mode !== '') previous.mode = mutation.mode
302
+ const questions = normalizeQuestions(mutation.questions)
303
+ if (questions !== null) previous.questions = questions
304
+ const areas = normalizeAreas(mutation.areas)
305
+ if (areas !== null) previous.areas = areas
267
306
  previous.reasons.push(mutation.reason ?? null)
268
307
  } else {
269
308
  if (previous !== null && previous.status === 'open') previous.status = 'superseded'
@@ -295,6 +334,13 @@ export function applyMutation(state, mutation) {
295
334
  * `audit`,所以每一次改动都能指回是谁裁的。它只增不删(判据的历史就是判据的一部分)。
296
335
  */
297
336
  criteriaHistory: [],
337
+ /** 工作方式:`survey`(广度调研)/ `solve`(定向求解)/ `survey_then_solve`;没写就是 null。 */
338
+ mode: typeof mutation.mode === 'string' && mutation.mode !== '' ? mutation.mode : null,
339
+ /** 问题与调研板块(可选)。没有问题时,整个目标就是唯一的问题。 */
340
+ questions: normalizeQuestions(mutation.questions) ?? [],
341
+ areas: normalizeAreas(mutation.areas) ?? [],
342
+ /** 结案时按问题写的结论四部分(`Conclude.answers`)。 */
343
+ answers: [],
298
344
  }
299
345
  }
300
346
  for (const hypothesis of mutation.hypotheses ?? []) {
@@ -318,6 +364,8 @@ export function applyMutation(state, mutation) {
318
364
  if (typeof hypothesis.name === 'string' && hypothesis.name !== '') known.name = hypothesis.name
319
365
  if (typeof hypothesis.retests === 'string' && hypothesis.retests !== '') known.retests = hypothesis.retests
320
366
  if (Array.isArray(hypothesis.assertions)) known.assertions = clone(hypothesis.assertions)
367
+ if (typeof hypothesis.question === 'string' && hypothesis.question !== '') known.question = hypothesis.question
368
+ if (typeof hypothesis.from === 'string' && hypothesis.from !== '') known.from = hypothesis.from
321
369
  continue
322
370
  }
323
371
  next.hypotheses.push({
@@ -336,6 +384,10 @@ export function applyMutation(state, mutation) {
336
384
  * 不写断言照旧成立(宽松+校验);写了就是「这条主张用这门语言怎么说」。
337
385
  */
338
386
  assertions: Array.isArray(hypothesis.assertions) ? clone(hypothesis.assertions) : null,
387
+ /** 属于哪个问题或板块(id);没写就归当前目标的第一个问题。 */
388
+ ...(typeof hypothesis.question === 'string' && hypothesis.question !== '' ? { question: hypothesis.question } : {}),
389
+ /** 由本体里哪条关系提出(关系 id);没写或写「直觉」都如实显示。 */
390
+ ...(typeof hypothesis.from === 'string' && hypothesis.from !== '' ? { from: hypothesis.from } : {}),
339
391
  at,
340
392
  })
341
393
  }
@@ -348,6 +400,7 @@ export function applyMutation(state, mutation) {
348
400
  next.goal.closeVerdict = mutation.verdict ?? null
349
401
  // 结案时如实记下「没被任何证据触及的假设」:未判不是「没问题」,是「没看过」。
350
402
  next.goal.unjudged = Array.isArray(mutation.unjudged) ? mutation.unjudged.slice() : []
403
+ if (Array.isArray(mutation.answers)) next.goal.answers = clone(mutation.answers)
351
404
  }
352
405
  break
353
406
  }
@@ -403,12 +456,13 @@ export function applyMutation(state, mutation) {
403
456
  case 'step/expected': {
404
457
  const step = stepOf(mutation.plan, mutation.step)
405
458
  if (step === undefined || step.status !== 'open') break
406
- step.expect = String(mutation.expect ?? '') || null
459
+ if (mutation.expect !== undefined) step.expect = String(mutation.expect ?? '') || null
460
+ if (Array.isArray(mutation.predictions)) step.predictions = normalizePredictions(mutation.predictions)
407
461
  break
408
462
  }
409
463
  case 'anomaly/opened': {
410
464
  if (next.anomalies.some((item) => item.id === mutation.id)) break
411
- next.anomalies.push({ id: mutation.id, what: String(mutation.what ?? ''), anchor: mutation.anchor ?? null, step: mutation.step ?? null, by: mutation.by ?? 'model', status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
465
+ next.anomalies.push({ id: mutation.id, what: String(mutation.what ?? ''), anchor: mutation.anchor ?? null, touches: Array.isArray(mutation.touches) ? mutation.touches.map(String) : [], step: mutation.step ?? null, by: mutation.by ?? 'model', status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
412
466
  break
413
467
  }
414
468
  case 'lesson/recorded': {
@@ -1795,7 +1849,13 @@ export function derive(state) {
1795
1849
  * `definitionsChanged`:升格那一刻用到的词条,**含义**此后改过或已不在的那些 id。
1796
1850
  * 只是读数,不撤回事实:改了定义的人知道为什么改,复核交给人与证据。
1797
1851
  */
1798
- const factRows = [...foreignFacts, ...ownFacts].map((fact) => ({ ...fact, definitionsChanged: changedDefinitions(lexicon, fact.definitions) }))
1852
+ /**
1853
+ * `questioned`:还开着、且点名涉及这条事实的未解释项(`touches` 里写了事实 id)。
1854
+ * 有它,这条事实就回到「待核验」:写进长期知识的东西遇到说不通的读数,不能照旧当已知用。
1855
+ */
1856
+ const openAnomalies = (state.anomalies ?? []).filter((item) => item?.status === 'open')
1857
+ const questionedBy = (id) => openAnomalies.filter((item) => (item.touches ?? []).includes(id)).map((item) => item.id)
1858
+ const factRows = [...foreignFacts, ...ownFacts].map((fact) => ({ ...fact, definitionsChanged: changedDefinitions(lexicon, fact.definitions), questioned: questionedBy(fact.id) }))
1799
1859
 
1800
1860
  /**
1801
1861
  * **领域词汇的派生读数**(两条,都不新存东西):
@@ -1875,7 +1935,88 @@ export function derive(state) {
1875
1935
  lexiconIssues,
1876
1936
  /** 知识模式(分诊)与缺口读数:结构判据,不猜词面(见 `deriveKnowledge`)。 */
1877
1937
  knowledge: deriveKnowledge(state, hypotheses, factRows, lexicon),
1938
+ /** 探索的结构:问题 → 候选假设(或板块 → 新发现的问题)、下一步各候选的预测(见 `deriveExploration`)。 */
1939
+ exploration: deriveExploration(state, hypotheses, lexicon, activePlan),
1940
+ }
1941
+ }
1942
+
1943
+ /** 候选假设的四种状态(界面:考察中 / 已排除 / 已采纳 / 暂不考察),由可信度分组算出,不另存。 */
1944
+ const CANDIDATE_STATE = { credible: 'adopted', refuted: 'excluded', replaced: 'set_aside', pending: 'examining', testing: 'examining', unclear: 'examining' }
1945
+
1946
+ /**
1947
+ * **探索的结构**(派生,不存):课题 → 问题 → 候选假设 → 步骤;广度调研时课题 → 调研板块 → 问题。
1948
+ *
1949
+ * 问题与板块由模型立题时写(`Frame.questions` / `areas`),判断用 `question` 指明属于哪个问题或板块。
1950
+ * 没写问题的目标就是一个问题(旧会话照样读得通);没指明归属的判断归第一个问题。
1951
+ * 候选的状态只从证据来(可信度分组的另一种读法),界面与卡读同一份。
1952
+ *
1953
+ * `untapped`:本体里带形状的「影响」关系,还没有任何候选由它提出——只列出,不强制。
1954
+ * `next.indistinct`:下一步给每个候选都写了预测,但预测全一样:这一步区分不了它们。
1955
+ */
1956
+ export function deriveExploration(state, hypotheses, lexicon, activePlan) {
1957
+ const goal = state?.goal ?? null
1958
+ if (goal === null) return null
1959
+ const promoted = new Set((state.facts ?? []).map((fact) => fact?.hypothesis).filter((id) => typeof id === 'string'))
1960
+ const mine = hypotheses.filter((item) => typeof item.goal !== 'string' || item.goal === goal.id)
1961
+ const declared = Array.isArray(goal.questions) ? goal.questions : []
1962
+ const areas = Array.isArray(goal.areas) ? goal.areas : []
1963
+ const areaIds = new Set(areas.map((area) => area.id))
1964
+ const answers = Array.isArray(goal.answers) ? goal.answers : []
1965
+ const questions =
1966
+ declared.length > 0
1967
+ ? declared.map((item) => ({ ...item, implicit: false }))
1968
+ : areas.length > 0
1969
+ ? []
1970
+ : [{ id: 'goal', text: String(goal.headline ?? goal.claim ?? ''), status: 'open', area: null, implicit: true }]
1971
+ const fallback = questions.find((item) => item.status === 'open')?.id ?? questions[0]?.id ?? null
1972
+ const homeOf = (hypothesis) => {
1973
+ const wanted = typeof hypothesis.question === 'string' ? hypothesis.question : ''
1974
+ if (questions.some((item) => item.id === wanted) || areaIds.has(wanted)) return wanted
1975
+ return fallback
1976
+ }
1977
+ const candidateOf = (hypothesis) => ({
1978
+ id: hypothesis.id,
1979
+ name: handleOf(hypothesis),
1980
+ claim: hypothesis.claim ?? '',
1981
+ refuteWhen: hypothesis.refute_when ?? '',
1982
+ from: typeof hypothesis.from === 'string' && hypothesis.from !== '' ? hypothesis.from : null,
1983
+ state: CANDIDATE_STATE[trustOf(hypothesis, promoted.has(hypothesis.id))] ?? 'examining',
1984
+ supportedLevel: hypothesis.supportedLevel ?? null,
1985
+ refutations: hypothesis.refutations ?? 0,
1986
+ inconclusive: hypothesis.inconclusive ?? 0,
1987
+ })
1988
+ const count = (rows) => ({ examining: rows.filter((row) => row.state === 'examining').length, excluded: rows.filter((row) => row.state === 'excluded').length, adopted: rows.filter((row) => row.state === 'adopted').length, setAside: rows.filter((row) => row.state === 'set_aside').length })
1989
+ const questionRows = questions.map((question) => {
1990
+ const candidates = mine.filter((hypothesis) => homeOf(hypothesis) === question.id).map(candidateOf)
1991
+ const answer = answers.find((item) => item?.question === question.id) ?? (question.implicit ? (answers[0] ?? null) : null)
1992
+ return { ...question, status: answer !== null && answer !== undefined ? 'answered' : question.status, candidates, counts: count(candidates) }
1993
+ })
1994
+ const openAnomalies = (state.anomalies ?? []).filter((item) => item?.status === 'open')
1995
+ const steps = activePlan?.steps ?? []
1996
+ const areaRows = areas.map((area) => {
1997
+ const linked = mine.filter((hypothesis) => homeOf(hypothesis) === area.id || questions.some((question) => question.area === area.id && homeOf(hypothesis) === question.id)).map(candidateOf)
1998
+ const served = steps.some((step) => step.serves === area.id)
1999
+ const touched = openAnomalies.filter((item) => (item.touches ?? []).includes(area.id) || (item.touches ?? []).includes(area.name)).length
2000
+ const settled = linked.length > 0 && linked.every((row) => row.state === 'adopted' || row.state === 'excluded' || row.state === 'set_aside')
2001
+ const state = linked.length === 0 && !served ? 'not_started' : settled && touched === 0 ? 'clear' : 'in_progress'
2002
+ return { id: area.id, name: area.name, state, judgments: linked.length, verified: linked.filter((row) => row.state === 'adopted').length, openAnomalies: touched, questions: questionRows.filter((question) => question.area === area.id).map((question) => question.id) }
2003
+ })
2004
+ const current = questionRows.find((question) => question.status === 'open' && question.counts.examining > 0) ?? questionRows.find((question) => question.status === 'open') ?? null
2005
+ const cited = new Set(mine.map((hypothesis) => hypothesis.from).filter((from) => typeof from === 'string'))
2006
+ const untapped = (lexicon?.predicates ?? []).filter((predicate) => predicate.kind === 'affects' && typeof predicate.shape === 'string' && predicate.status !== 'deprecated' && !cited.has(predicate.id)).map((predicate) => ({ id: predicate.id, label: predicate.label || predicate.id, shape: predicate.shape }))
2007
+ const first = steps.find((step) => step.status === 'open') ?? null
2008
+ let next = null
2009
+ if (first !== null) {
2010
+ const named = new Map(mine.map((hypothesis) => [hypothesis.id, hypothesis]))
2011
+ const byName = (key) => mine.find((hypothesis) => hypothesis.id === key || hypothesis.name === key) ?? null
2012
+ const predictions = (first.predictions ?? []).map((item) => {
2013
+ const hypothesis = byName(item.hypothesis)
2014
+ return { hypothesis: hypothesis?.id ?? null, name: hypothesis === null ? item.hypothesis : handleOf(named.get(hypothesis.id)), expect: item.expect }
2015
+ })
2016
+ const distinct = new Set(predictions.map((item) => item.expect.replace(/\s+/g, '')))
2017
+ next = { step: first.id, ordinal: first.ordinal, do: first.do, serves: first.serves ?? null, expect: first.expect ?? null, predictions, indistinct: predictions.length >= 2 && distinct.size === 1 }
1878
2018
  }
2019
+ return { mode: goal.mode ?? null, questions: questionRows, areas: areaRows, current: current?.id ?? null, untapped, next, answers }
1879
2020
  }
1880
2021
 
1881
2022
  /**
@@ -1984,6 +2125,10 @@ export function view(state, sessionId) {
1984
2125
  releases: (state.releases ?? []).map((item) => ({ step: item.step ?? null, plan: item.plan ?? null, via: item.via ?? null, call: item.call ?? null, at: item.at ?? null })),
1985
2126
  /** 本体形状(面板页眉据此生成,不手抄)。 */
1986
2127
  ontology: state.ontology ?? null,
2128
+ /** 探索的结构(探索货架读它;与卡上「你在哪」同一份派生)。 */
2129
+ exploration: derived.exploration,
2130
+ /** 未解释项(探索货架「过程记录」与本体货架的复核标记读它)。 */
2131
+ anomalies: (state.anomalies ?? []).map((item) => ({ id: item.id, what: item.what, anchor: item.anchor ?? null, touches: item.touches ?? [], step: item.step ?? null, by: item.by ?? 'model', status: item.status, reason: item.reason ?? null, explainedBy: item.explainedBy ?? null, at: item.at ?? null })),
1987
2132
  /**
1988
2133
  * **领域词汇的读面**:概念、谓词、冲突、健康读数与图投影。
1989
2134
  *
@@ -2036,6 +2181,10 @@ export function view(state, sessionId) {
2036
2181
  // 结案留痕:没被任何证据触及的假设。未判不是「没问题」,是「没看过」。
2037
2182
  unjudged: Array.isArray(state.goal.unjudged) ? state.goal.unjudged.slice() : [],
2038
2183
  closeVerdict: state.goal.closeVerdict ?? null,
2184
+ headline: state.goal.headline ?? null,
2185
+ mode: state.goal.mode ?? null,
2186
+ /** 结案时按问题写的结论四部分(本体货架的结论卡读它)。 */
2187
+ answers: Array.isArray(state.goal.answers) ? state.goal.answers : [],
2039
2188
  hypotheses: derived.hypotheses.map((hypothesis) => ({
2040
2189
  id: hypothesis.id,
2041
2190
  name: handleOf(hypothesis),
@@ -2043,6 +2192,8 @@ export function view(state, sessionId) {
2043
2192
  trust: trustOf(hypothesis, promotedIds.has(hypothesis.id)),
2044
2193
  claim: hypothesis.claim,
2045
2194
  refuteWhen: hypothesis.refute_when,
2195
+ question: hypothesis.question ?? null,
2196
+ from: hypothesis.from ?? null,
2046
2197
  status: hypothesis.status,
2047
2198
  supportedLevel: hypothesis.supportedLevel,
2048
2199
  refutations: hypothesis.refutations,
@@ -2076,6 +2227,9 @@ export function view(state, sessionId) {
2076
2227
  artifacts: (step.artifacts ?? []).map((artifact) => (typeof artifact === 'string' ? { path: artifact, exists: null } : artifact)),
2077
2228
  doneCriteria: step.done_criteria,
2078
2229
  tests: step.tests,
2230
+ expect: step.expect ?? null,
2231
+ serves: step.serves ?? null,
2232
+ predictions: step.predictions ?? [],
2079
2233
  status: step.status,
2080
2234
  evidenceIds: step.evidence ?? [],
2081
2235
  /** 交付本身(谁判的、凭什么、出处);旧账为 null。 */
@@ -2105,6 +2259,9 @@ export function view(state, sessionId) {
2105
2259
  artifacts: (step.artifacts ?? []).map((artifact) => (typeof artifact === 'string' ? { path: artifact, exists: null } : artifact)),
2106
2260
  doneCriteria: step.done_criteria,
2107
2261
  tests: step.tests,
2262
+ expect: step.expect ?? null,
2263
+ serves: step.serves ?? null,
2264
+ predictions: step.predictions ?? [],
2108
2265
  status: step.status,
2109
2266
  evidenceIds: step.evidence ?? [],
2110
2267
  /** 交付本身(谁判的、凭什么、出处);旧账为 null。 */
@@ -2194,7 +2351,11 @@ export function view(state, sessionId) {
2194
2351
  /** 派生:收到过推翻证据(要复核)与人的审查决定(撤回 / 维持)。 */
2195
2352
  refuted: item.refuted === true,
2196
2353
  review: item.review ?? null,
2354
+ /** 还开着、点名涉及它的未解释项:有就回到「待核验」。 */
2355
+ questioned: item.questioned ?? [],
2197
2356
  })),
2357
+ /** 经验(本体货架列出;与卡上同一份,含别的会话留下的)。 */
2358
+ lessons: (derived.lessonRows ?? []).map((item) => ({ id: item.id, kind: item.kind ?? 'trap', text: item.text ?? '', boundary: item.boundary ?? null, about: item.about ?? [] })),
2198
2359
  }
2199
2360
  }
2200
2361
 
@@ -67,7 +67,7 @@ export const GLOSSARY = bilingual({
67
67
  nextAction: ['派一次独立评估,把评估卡作为出处', 'Get one independent evaluation and cite its evaluation card'],
68
68
  },
69
69
  L4: {
70
- plain: ['人放行:交付前有人看过并批准', 'Released by a person: someone looked at it and approved before delivery'],
70
+ plain: ['人工批准:交付前已有人审阅并批准', 'Released by a person: someone looked at it and approved before delivery'],
71
71
  where: ['docs/verification-loop.md 的等级表', 'the level table in docs/verification-loop.md'],
72
72
  nextAction: ['等一次人的放行记录;没有人就不要声称到过这一级', 'Wait for a person to release it; without one, do not claim this level'],
73
73
  },
@@ -144,8 +144,8 @@ export const GLOSSARY = bilingual({
144
144
  plain: ['命题只有散文主张:两条结论是不是在说同一件事只能靠重读判断', 'Prose-only claims: whether two conclusions say the same thing can only be judged by rereading'],
145
145
  where: ['运行态卡 · 缺口', 'runtime card · gaps'],
146
146
  nextAction: [
147
- '先在 clear/ontology/ 下写概念、关系与主体的实体文件,再用 Frame 修订把主张写成断言(主词–谓词–宾语)',
148
- 'First write concept, relation and subject entity files under clear/ontology/, then revise with Frame to turn the claim into assertions (subject–predicate–object)',
147
+ '可选:用 Frame 修订在 ontology 里补上概念与关系,再把主张写成断言(主词–谓词–宾语)',
148
+ 'Optional: revise with Frame to add the concepts and relations in ontology, then write the claim as assertions (subject–predicate–object)',
149
149
  ],
150
150
  },
151
151
  untouched_claims: {
@@ -192,8 +192,8 @@ export const LEVELS = ['L0', 'L1', 'L2', 'L3', 'L4']
192
192
  * **说人话的三张小表**(第六阶段)。内部名不改;卡、工具结果与面板上一律写右边那一列。
193
193
  * 模型读到什么就会照着说什么——所以卡先说人话,答复才说得出人话。
194
194
  */
195
- /** 等级只说三档:L0–L2 合并成「自己检验」(旧账里的 L0 / L1 也这么读),L3 独立评估,L4 人放行。 */
196
- export const LEVEL_WORD = bilingual({ L0: ['自己检验', 'self-tested'], L1: ['自己检验', 'self-tested'], L2: ['自己检验', 'self-tested'], L3: ['独立核验', 'independent check'], L4: ['人放行', 'released by a person'] })
195
+ /** 等级只说三档:L0–L2 合并成「自行检验」(旧账里的 L0 / L1 也这么读),L3 独立评估,L4 人工批准。 */
196
+ export const LEVEL_WORD = bilingual({ L0: ['自行检验', 'self-tested'], L1: ['自行检验', 'self-tested'], L2: ['自行检验', 'self-tested'], L3: ['独立核验', 'independent check'], L4: ['人工批准', 'approved by a person'] })
197
197
  export const VERDICT_WORD = bilingual({ support: ['支持', 'support'], refute: ['推翻', 'refute'], inconclusive: ['不确定', 'inconclusive'] })
198
198
  /** 判断短名的上限(汉字);没起名时取主张开头这么宽。与内核同一个数。 */
199
199
  export const HANDLE_LIMIT = 12
@@ -339,11 +339,18 @@ export function readingOf(hypothesis) {
339
339
  const STEP_WORD = bilingual({ open: ['待做', 'to do'], advanced: ['已交付', 'delivered'], void: ['已作废', 'voided'] })
340
340
 
341
341
  /** 一条事实在卡上的一行:原话、边界、等级;来自别的会话的标出来。 */
342
+ /** 有开着的未解释项点名这条事实:它回到「待核验」,直到那些未解释项有了去处。 */
343
+ function questionedNote(fact, language) {
344
+ const ids = Array.isArray(fact?.questioned) ? fact.questioned : []
345
+ if (ids.length === 0) return ''
346
+ return language === 'en' ? ` · pending re-check (unexplained ${ids.join(', ')})` : ` · 待核验(未解释项 ${ids.join('、')})`
347
+ }
348
+
342
349
  function factLine(fact) {
343
350
  const scope = oneLine(fact?.scope ?? '')
344
351
  return tr(
345
- ` · 「${clamp(fact?.text, 100)}」${scope === '' ? '' : ` — 边界:${clamp(scope, 80)}`}${fact?.level ? ` · ${fact.level}` : ''}${fact?.foreign === true ? ' · 以前的会话' : ''}`,
346
- ` · "${clamp(fact?.text, 100)}"${scope === '' ? '' : ` — boundary: ${clamp(scope, 80)}`}${fact?.level ? ` · ${fact.level}` : ''}${fact?.foreign === true ? ' · earlier session' : ''}`,
352
+ ` · 「${clamp(fact?.text, 100)}」${scope === '' ? '' : ` — 边界:${clamp(scope, 80)}`}${fact?.level ? ` · ${fact.level}` : ''}${fact?.foreign === true ? ' · 以前的会话' : ''}${questionedNote(fact, 'zh')}`,
353
+ ` · "${clamp(fact?.text, 100)}"${scope === '' ? '' : ` — boundary: ${clamp(scope, 80)}`}${fact?.level ? ` · ${fact.level}` : ''}${fact?.foreign === true ? ' · earlier session' : ''}${questionedNote(fact, 'en')}`,
347
354
  )
348
355
  }
349
356
 
@@ -413,11 +420,36 @@ function cardLines(state, derived, options, view) {
413
420
  const terminal = group.key === 'refuted' || group.key === 'replaced'
414
421
  const named = typeof hypothesis.name === 'string' && hypothesis.name.trim() !== ''
415
422
  const head = tr(named ? `「${hypothesis.name.trim()}」${clamp(hypothesis.claim, 120)}` : `「${clamp(hypothesis.claim, 120)}」`, named ? `"${hypothesis.name.trim()}" ${clamp(hypothesis.claim, 120)}` : `"${clamp(hypothesis.claim, 120)}"`)
416
- const refute = terminal ? '' : tr(` — 算错的条件:${clamp(hypothesis.refute_when, 100)}`, ` — wrong if: ${clamp(hypothesis.refute_when, 100)}`)
423
+ const refute = terminal ? '' : tr(` — 推翻条件:${clamp(hypothesis.refute_when, 100)}`, ` — wrong if: ${clamp(hypothesis.refute_when, 100)}`)
417
424
  push(` · ${head}${refute} · ${readingOf(hypothesis)}`, terminal ? 1 : 0)
418
425
  }
419
426
  }
420
- if (hypotheses.length > 10) push(tr(` · 还有 ${hypotheses.length - 10} 条判断没展开(面板「本体」里有全部)`, ` · ${hypotheses.length - 10} more judgments not shown (all are in the Ontology pane)`), 2)
427
+ if (hypotheses.length > 10) push(tr(` · 还有 ${hypotheses.length - 10} 条判断没展开(「探索」货架里有全部)`, ` · ${hypotheses.length - 10} more judgments not shown (all are in the Explore shelf)`), 2)
428
+ }
429
+ /**
430
+ * **当前位置**:问题 → 候选假设(或调研板块)的计数,与探索货架同一份派生(`derived.exploration`)。
431
+ * 只在目标开着时给;没列问题的目标就是一个问题,这一行省掉(上面的判断列表已经说清)。
432
+ */
433
+ const exploration = isPlainObject(derived?.exploration) ? derived.exploration : null
434
+ if (exploration !== null && goal !== null && String(goal.status) === 'open') {
435
+ const STATE_WORD = { examining: tr('考察中', 'being examined'), excluded: tr('已排除', 'excluded'), adopted: tr('已采纳', 'adopted'), set_aside: tr('暂不考察', 'set aside') }
436
+ const AREA_WORD = { not_started: tr('未开始', 'not started'), in_progress: tr('调研中', 'in progress'), clear: tr('已厘清', 'clear') }
437
+ const declared = (exploration.questions ?? []).filter((question) => !question.implicit)
438
+ if (declared.length > 0 || (exploration.areas ?? []).length > 0) {
439
+ push(tr('- 当前位置:', '- Where things stand:'))
440
+ for (const area of (exploration.areas ?? []).slice(0, 8)) push(tr(` 板块「${clamp(area.name, 30)}」${AREA_WORD[area.state] ?? area.state} · 判断 ${area.judgments} 条,已采纳 ${area.verified} 条${area.openAnomalies > 0 ? ` · 未解释 ${area.openAnomalies} 条` : ''}`, ` Area "${clamp(area.name, 30)}" ${AREA_WORD[area.state] ?? area.state} · ${area.judgments} judgments, ${area.verified} adopted${area.openAnomalies > 0 ? ` · ${area.openAnomalies} unexplained` : ''}`), 1)
441
+ for (const question of declared.slice(0, 8)) {
442
+ const counts = Object.entries({ examining: question.counts?.examining, excluded: question.counts?.excluded, adopted: question.counts?.adopted }).filter(([, value]) => value > 0).map(([key, value]) => tr(`${STATE_WORD[key]} ${value}`, `${STATE_WORD[key]} ${value}`))
443
+ const status = question.status === 'answered' ? tr('已作答', 'answered') : question.status === 'emergent' ? tr('新发现,待人决定是否立为问题', 'newly found, awaiting a decision') : question.status === 'parked' ? tr('暂缓', 'parked') : counts.length > 0 ? tr(`候选假设 ${counts.join(' / ')}`, `candidates ${counts.join(' / ')}`) : tr('还没有候选假设', 'no candidates yet')
444
+ push(` ${question.id === exploration.current ? '▸' : '·'} ${question.id}「${clamp(question.text, 60)}」${status}`, question.id === exploration.current ? 0 : 1)
445
+ }
446
+ }
447
+ /** 本体里带形状、还没有候选由它提出的影响关系:只列出,不强制(不为竞争而竞争)。 */
448
+ const untapped = Array.isArray(exploration.untapped) ? exploration.untapped : []
449
+ if (untapped.length > 0) {
450
+ const SHAPE = { increasing: tr('单调升', 'increasing'), decreasing: tr('单调降', 'decreasing'), peak: tr('有峰', 'has a peak'), threshold: tr('有阈值', 'has a threshold'), coupled: tr('耦合', 'coupled') }
451
+ push(tr(`- 本体中尚无候选假设引用的影响关系:${untapped.slice(0, 5).map((item) => `${item.label}(${SHAPE[item.shape] ?? item.shape})`).join('、')}——若它们可能改变结论,可据此提出候选(\`from\` 写关系 id)`, `- Affects relations in the ontology no candidate cites yet: ${untapped.slice(0, 5).map((item) => `${item.label} (${SHAPE[item.shape] ?? item.shape})`).join(', ')}; if they could change the conclusion, propose candidates from them (\`from\` = the relation id)`), 1)
452
+ }
421
453
  }
422
454
  if (plan === null) {
423
455
  if (goal !== null && String(goal.status) === 'open') push(tr('- 计划:还没有(用 CreatePlan 把检验拆成步骤)', '- Plan: none yet (use CreatePlan to split the tests into steps)'), 1)
@@ -429,15 +461,23 @@ function cardLines(state, derived, options, view) {
429
461
  const tests = tested.length === 0 ? '' : tr(` · 检验 ${tested.map(nameOf).join('、')}(${level})`, ` · tests ${tested.map(nameOf).join(', ')} (${level})`)
430
462
  push(tr(` 第 ${step.ordinal} 步(${step.id})${clamp(step.do, 60)} · ${STEP_WORD[step.status] ?? step.status}${tests}`, ` Step ${step.ordinal} (${step.id}) ${clamp(step.do, 60)} · ${STEP_WORD[step.status] ?? step.status}${tests}`), 2)
431
463
  }
432
- if (plan.steps.length > 12) push(tr(` · 还有 ${plan.steps.length - 12} 步没展开(右栏「世界树」里有全部)`, ` · ${plan.steps.length - 12} more steps not shown (all are in the World Tree on the right)`), 2)
464
+ if (plan.steps.length > 12) push(tr(` · 还有 ${plan.steps.length - 12} 步没展开(「探索」货架里有全部)`, ` · ${plan.steps.length - 12} more steps not shown (all are in the Explore shelf)`), 2)
433
465
  const first = plan.steps.find((step) => step.status === 'open')
434
466
  if (first !== undefined) {
435
467
  push(tr(`- 下一步:交付第 ${first.ordinal} 步(${first.id})——只能交付第一个没做完的步`, `- Next: deliver step ${first.ordinal} (${first.id}); only the first unfinished step can be delivered`))
436
468
  /** 预期可选,但卡上提醒:没写下来的预期,落空了也看不见。 */
437
- if (typeof first.expect === 'string' && first.expect !== '') push(tr(` 预期:${clamp(first.expect, 160)}——结果对不上的地方写进 anomalies,不要解释过去`, ` Expected: ${clamp(first.expect, 160)}; whatever does not match goes in anomalies, do not explain it away`))
438
- else push(tr(' 动手前写下预期(RevisePlan action="expect":预计看到什么、从哪条关系或经验来),落空才看得见', ' Before acting, write the expectation (RevisePlan action="expect": what you expect and from which relation or lesson), so a miss is visible'), 1)
469
+ const next = exploration?.next ?? null
470
+ const predictions = next !== null && next.step === first.id && Array.isArray(next.predictions) ? next.predictions : []
471
+ if (predictions.length > 0) {
472
+ push(tr(' 各候选的预测:', ' Predictions per candidate:'))
473
+ for (const item of predictions.slice(0, 5)) push(tr(` · 若「${item.name}」成立:${clamp(item.expect, 120)}`, ` · If "${item.name}" holds: ${clamp(item.expect, 120)}`))
474
+ if (next.indistinct === true) push(tr(' 注意:各候选的预测相同,这一步区分不了它们;应改用能区分的检验(RevisePlan)', ' Warning: every candidate predicts the same, so this step cannot tell them apart; switch to a test that can (RevisePlan)'))
475
+ else push(tr(' 结果与预测不符的地方写进 anomalies,不要解释过去', ' Whatever contradicts the predictions goes in anomalies; do not explain it away'), 1)
476
+ }
477
+ if (typeof first.expect === 'string' && first.expect !== '') push(tr(` 预测:${clamp(first.expect, 160)}。结果与预测不符之处写入 anomalies,不要强行解释`, ` Expected: ${clamp(first.expect, 160)}; whatever does not match goes in anomalies, do not explain it away`))
478
+ else if (predictions.length === 0) push(tr(' 动手前写下预测(RevisePlan action="expect":按候选分别写 predictions,或写 expect 并注明来自哪条关系或经验),落空才看得见', ' Before acting, write predictions (RevisePlan action="expect": predictions per candidate, or expect with the relation or lesson it comes from), so a miss is visible'), 1)
439
479
  }
440
- else if (goal !== null && String(goal.status) === 'open') push(tr('- 下一步:计划的步都做完了,ClosePlan 收尾,然后 Conclude 结案或开下一阶段', '- Next: every step is done; ClosePlan, then Conclude or start the next stage'))
480
+ else if (goal !== null && String(goal.status) === 'open') push(tr('- 下一步:计划的步都做完了,ClosePlan 收尾,然后 Conclude 结案(answers 按问题写结论、依据、尚未确定的事项、待您决策)或开下一阶段', '- Next: every step is done; ClosePlan, then Conclude (answers per question: conclusion, basis, open points, decisions for the user) or start the next stage'))
441
481
  if (plan.blocked !== undefined && plan.blocked !== null) push(tr(`- 计划停下等人:${plan.blocked.reason}(连续 ${plan.blocked.attempts} 次没过,已经问人怎么办;没人答就等着)`, `- Plan stopped, waiting for a person: ${plan.blocked.reason} (failed ${plan.blocked.attempts}× in a row; a person has been asked; wait if nobody answers)`))
442
482
  }
443
483
  /**
@@ -448,7 +488,7 @@ function cardLines(state, derived, options, view) {
448
488
  const openAnomalies = anomalies.filter((item) => item?.status === 'open')
449
489
  if (openAnomalies.length > 0) {
450
490
  push(tr(`- 未解释(${openAnomalies.length} 条开着;用 Anomaly 解释、排除或交给人,不要解释过去):`, `- Unexplained (${openAnomalies.length} open; explain, rule out or hand to a person with Anomaly; do not explain them away):`))
451
- for (const item of openAnomalies.slice(0, 8)) push(tr(` · ${item.id}${item.by === 'evaluator' ? '(评估者发现)' : ''}:${clamp(item.what, 140)}${item.anchor ? ` · 在 ${clamp(item.anchor, 30)}` : ''}`, ` · ${item.id}${item.by === 'evaluator' ? ' (found by the evaluator)' : ''}: ${clamp(item.what, 140)}${item.anchor ? ` · on ${clamp(item.anchor, 30)}` : ''}`))
491
+ for (const item of openAnomalies.slice(0, 8)) push(tr(` · ${item.id}${item.by === 'evaluator' ? '(评估者发现)' : ''}:${clamp(item.what, 140)}${item.anchor ? ` · 在 ${clamp(item.anchor, 30)}` : ''}${(item.touches ?? []).length > 0 ? ` · 涉及 ${item.touches.slice(0, 4).join('、')}` : ''}`, ` · ${item.id}${item.by === 'evaluator' ? ' (found by the evaluator)' : ''}: ${clamp(item.what, 140)}${item.anchor ? ` · on ${clamp(item.anchor, 30)}` : ''}${(item.touches ?? []).length > 0 ? ` · touches ${item.touches.slice(0, 4).join(', ')}` : ''}`))
452
492
  if (openAnomalies.length > 8) push(tr(` · 还有 ${openAnomalies.length - 8} 条`, ` · ${openAnomalies.length - 8} more`), 1)
453
493
  }
454
494
  const settledAnomalies = anomalies.length - openAnomalies.length
@@ -473,8 +513,8 @@ function cardLines(state, derived, options, view) {
473
513
  const context = `${goal?.claim ?? ''}\n${nextStep?.do ?? ''}`.toLowerCase()
474
514
  const score = (lesson) => (lesson.about ?? []).filter((item) => item !== '' && context.includes(String(item).toLowerCase())).length
475
515
  const ranked = lessonRows.map((lesson, index) => ({ lesson, index, score: score(lesson) })).sort((a, b) => b.score - a.score || a.index - b.index)
476
- const kindWord = { trap: tr('坑', 'trap'), check: tr('先核', 'check'), shortcut: tr('别走的捷径', 'misleading shortcut'), prior: tr('先验', 'prior') }
477
- push(tr(`- 以前留下的经验(${lessonRows.length} 条;定计划、写预期前先看,用上了就在预期里写明来自哪条):`, `- Lessons left earlier (${lessonRows.length}; read before planning or writing an expectation, and name the one you use in the expectation):`), 1)
516
+ const kindWord = { trap: tr('常见误区', 'common pitfall'), check: tr('前置核查', 'check first'), shortcut: tr('不可取的捷径', 'misleading shortcut'), prior: tr('先验知识', 'prior') }
517
+ push(tr(`- 以前留下的经验(${lessonRows.length} 条;制定计划、写预测前先阅读,引用时在预测中注明来自哪条):`, `- Lessons left earlier (${lessonRows.length}; read before planning or writing an expectation, and name the one you use in the expectation):`), 1)
478
518
  for (const { lesson } of ranked.slice(0, 6)) push(` · ${lesson.id} · ${kindWord[lesson.kind] ?? lesson.kind} · ${clamp(lesson.text, 160)}${lesson.boundary ? tr(`(不适用:${clamp(lesson.boundary, 80)})`, ` (does not apply: ${clamp(lesson.boundary, 80)})`) : ''}`, 1)
479
519
  if (lessonRows.length > 6) push(tr(` · 还有 ${lessonRows.length - 6} 条(clear/knowledge/lessons/)`, ` · ${lessonRows.length - 6} more (clear/knowledge/lessons/)`), 2)
480
520
  }
@@ -533,7 +573,7 @@ function cardLines(state, derived, options, view) {
533
573
  const telling = preflight.predicates.filter((predicate) => predicate.shape || predicate.check)
534
574
  const plain = preflight.predicates.filter((predicate) => !(predicate.shape || predicate.check))
535
575
  if (telling.length > 0) {
536
- push(tr('- 用到的关系(预期从这里来):', '- Relations in use (expectations come from these):'), 1)
576
+ push(tr('- 用到的关系(预测的来源):', '- Relations in use (expectations come from these):'), 1)
537
577
  for (const predicate of telling.slice(0, 4)) push(` · ${named(predicate)}${predicate.shape ? tr(`:${SHAPE_WORD[predicate.shape] ?? predicate.shape}`, `: ${SHAPE_WORD[predicate.shape] ?? predicate.shape}`) : ''}${predicate.gloss ? tr(`(${clamp(predicate.gloss, 80)})`, ` (${clamp(predicate.gloss, 80)})`) : ''}${predicate.check ? tr(` · 读数这样核:${clamp(predicate.check, 80)}`, ` · check readings by: ${clamp(predicate.check, 80)}`) : ''}`, 1)
538
578
  }
539
579
  if (plain.length > 0) push(tr(`- 用到的关系:${plain.slice(0, 6).map(named).join('、')}${more(preflight.predicatesTruncated)}`, `- Relations in use: ${plain.slice(0, 6).map(named).join(', ')}${more(preflight.predicatesTruncated)}`), 2)
@@ -541,17 +581,11 @@ function cardLines(state, derived, options, view) {
541
581
  push(tr(`- 和这些判断有关的已知${more(preflight.factsTruncated)}(引用前看边界;要复检就在判断上写 retests):`, `- Known facts related to these judgments${more(preflight.factsTruncated)} (check the boundary before citing; to re-test, put retests on a judgment):`), 1)
542
582
  for (const fact of preflight.facts.slice(0, 3)) push(factLine(fact), 1)
543
583
  }
544
- } else
545
- push(
546
- tr(
547
- '- 已有的词里没有命中这些判断的:要写「主体 · 关系 · 对象」就先在 clear/ontology/ 下写概念与关系文件(字段见 SCHEMA.json);查不到不等于不存在',
548
- '- No existing term matches these judgments: to write "subject · relation · object", first write concept and relation files under clear/ontology/ (fields in SCHEMA.json); not found does not mean it does not exist',
549
- ),
550
- 1,
551
- )
584
+ }
552
585
  if (gaps.length === 0) push(tr('- 结构完整:判断都写成了断言、都检验过、主体都在实体图上', '- Structure complete: every judgment has assertions, has been tested, and its subjects are on the entity graph'))
553
586
  /** 缺口只给模型(人看不到):说清欠什么、下一步做什么,不写 code。 */
554
- for (const gap of gaps) push(tr(`- 还欠的:${gap.detail} → ${gap.nextAction}`, `- Still owed: ${gap.detail} → ${gap.nextAction}`))
587
+ /** 只有散文的判断不上卡(它是可选的加法,重复提醒从没改变过下一步);面板照旧列出。 */
588
+ for (const gap of gaps.filter((item) => item.code !== 'prose_only_claims')) push(tr(`- 还欠的:${gap.detail} → ${gap.nextAction}`, `- Still owed: ${gap.detail} → ${gap.nextAction}`))
555
589
  }
556
590
  for (const conflict of conflicts.slice(0, 3)) {
557
591
  push(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clearai-dsh",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "ClearAI: an ontology-first DSH agent preset — evidence-checked research that grows into a domain ontology.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -21,7 +21,7 @@
21
21
  name: '@deepseek-ai/dsh-persona'
22
22
  config:
23
23
  prefix: '你是 ClearAI 的主人格,运行在 DeepSeek Harness 上。怎么工作见下面三段:身份、循环、对人说话。'
24
- suffix: 你的工作目录是 {{cwd}}。工作区就是用户的文件夹;`clear/` 是系统的目录,其余目录都是用户的。
24
+ suffix: 你的工作目录是 {{cwd}}。工作区就是用户的文件夹;`clear/` 下除本体(`clear/ontology/`)外是系统的目录,其余目录都是用户的。
25
25
 
26
26
  - id: agent-instructions
27
27
  name: '@deepseek-ai/dsh-agent-instructions'
@@ -185,6 +185,11 @@
185
185
  # 为什么要有它:判据是"怎样算完成",它一变前面所有工作的验收含义跟着变——
186
186
  # 允许在同一次 Frame 里顺手改掉,等于允许把"做不到"重新定义成"做到了"。
187
187
  requireCriteriaVerdict: true
188
+ # 测量门槛:首次立题要在 Frame.ontology 里写出答案涉及的度量,以及每个度量由什么测量、读数如何核对。
189
+ # 为什么:真跑里唯一一条错误事实,来自把控制器回读值当成釜温。
190
+ requireMeasures: true
191
+ # 停止检查:achieved 结案要按问题写结论;仍在考察中的候选与开着的未解释项须写进「尚未确定的事项」。
192
+ requireAnswers: true
188
193
  # deny_rules 十条里可移植的九条(路径越狱那条不搬:宿主沙箱已经拥有它,ClearAI 自己也说「不重复」)
189
194
  bashDenyRules: true
190
195
  # 独立评估者:spawn = fresh context(fork 会继承历史,做的人与判的人就分不开了)
@@ -38,7 +38,7 @@
38
38
  name: '@deepseek-ai/dsh-persona'
39
39
  config:
40
40
  prefix: '你是 ClearAI 的主人格,运行在 DeepSeek Harness 上。怎么工作见下面三段:身份、循环、对人说话。'
41
- suffix: 你的工作目录是 {{cwd}}。工作区就是用户的文件夹;`clear/` 是系统的目录,其余目录都是用户的。
41
+ suffix: 你的工作目录是 {{cwd}}。工作区就是用户的文件夹;`clear/` 下除本体(`clear/ontology/`)外是系统的目录,其余目录都是用户的。
42
42
 
43
43
  - id: agent-instructions
44
44
  name: '@deepseek-ai/dsh-agent-instructions'
@@ -202,6 +202,11 @@
202
202
  # 为什么要有它:判据是"怎样算完成",它一变前面所有工作的验收含义跟着变——
203
203
  # 允许在同一次 Frame 里顺手改掉,等于允许把"做不到"重新定义成"做到了"。
204
204
  requireCriteriaVerdict: true
205
+ # 测量门槛:首次立题要在 Frame.ontology 里写出答案涉及的度量,以及每个度量由什么测量、读数如何核对。
206
+ # 为什么:真跑里唯一一条错误事实,来自把控制器回读值当成釜温。
207
+ requireMeasures: true
208
+ # 停止检查:achieved 结案要按问题写结论;仍在考察中的候选与开着的未解释项须写进「尚未确定的事项」。
209
+ requireAnswers: true
205
210
  # deny_rules 十条里可移植的九条(路径越狱那条不搬:宿主沙箱已经拥有它,ClearAI 自己也说「不重复」)
206
211
  bashDenyRules: true
207
212
  # 独立评估者:spawn = fresh context(fork 会继承历史,做的人与判的人就分不开了)