chore: 移除 goalAudit stub 及其测试引用

- 删除 src/services/goal/goalAudit.ts(导出 COMPLETION_AUDIT_RULES/BLOCKED_AUDIT_RULES/isGoalTerminal 等未引用的 stub)
- 同步移除 tests/integration/goal-lifecycle.test.ts 中对 goalAudit 的 import 和一个测试用例(budget_limited is terminal)

Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>
This commit is contained in:
claude-code-best
2026-06-20 11:37:38 +08:00
parent bdfe84bc94
commit 402d076bf8
2 changed files with 0 additions and 79 deletions

View File

@@ -1,33 +0,0 @@
/**
* Audit rules constants for goal completion and blocked assessment.
* Shared by prompt templates and integration tests.
*/
import { BLOCKED_CONSECUTIVE_THRESHOLD, MAX_GOAL_TURNS } from './goalState.js'
import type { GoalStatus } from '../../types/logs.js'
export { BLOCKED_CONSECUTIVE_THRESHOLD, MAX_GOAL_TURNS }
export const COMPLETION_AUDIT_RULES = [
'Derive concrete requirements from the objective and any referenced files.',
'Preserve the original scope — do not redefine success around what is already done.',
'For every explicit requirement, identify authoritative evidence (test output, file content, command result).',
'Treat tests, manifests, and verifiers as evidence only after confirming they actually cover the requirement.',
'Treat uncertain or indirect evidence as "not achieved".',
'The audit must PROVE completion, not merely fail to find remaining work.',
] as const
export const BLOCKED_AUDIT_RULES = [
'The same blocking condition must persist across at least 3 consecutive continuation turns.',
'"Difficult", "slow", or "partially incomplete" is NOT blocked.',
'Only genuinely insurmountable obstacles qualify (missing credentials, external service down, etc.).',
] as const
export function isGoalTerminal(status: GoalStatus): boolean {
return (
status === 'complete' ||
status === 'blocked' ||
status === 'budget_limited' ||
status === 'usage_limited' ||
status === 'max_turns'
)
}