"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWorkerDecisionExampleText = getWorkerDecisionExampleText;
const WORKER_DECISION_EXAMPLE_TEXT = {
    en: {
        resultSummary: "short result summary",
        evidence: ["Observable evidence that the requested outcome is complete."],
        executionResultSummary: "short execution result summary",
        executionEvidence: [
            "Command result or file/API state proves the current step doneWhen is satisfied.",
        ],
        batchResultSummary: "short step batch reconciliation summary",
        batchEvidence: [
            "Combined diff and verification prove the step batch result.",
        ],
        stepResultSummary: "short reconciled step result summary",
        stepEvidence: ["Observable evidence proves this step doneWhen."],
        selectionResultSummary: "short selection result summary",
        selectionEvidence: [
            "The selected workflow slot matches the requested work.",
        ],
        contractObjective: "Translate the active workflow template and current issue state into an executable plan.",
        contractDoneWhen: [
            "The plan names observable evidence such as command results, file or API state, tracker dependencies, or child issue results.",
        ],
        contractInputs: ["Current issue state", "Active workflow template"],
        contractOutputs: ["Executable workflow plan", "Verification criteria"],
        planningIssueTitle: "Implement workflow plan",
        planningResultSummary: "short planning result summary",
        planningEvidence: [
            "The plan contains executable steps with observable doneWhen evidence.",
        ],
        executionGuidance: [
            "Apply workflow-level human handoff, notification, side-effect, and evidence rules to every execution step.",
        ],
        startApprovalReason: "The plan changes authentication behavior, so user approval is needed before execution starts.",
        taskStep: {
            title: "Plan Template Work",
            objective: "Convert the active workflow template into one scoped executable step.",
            instructions: [
                "Read the current issue state, active template body, and relevant repository context before choosing step boundaries.",
                "Keep the step scoped to one responsibility cluster with concrete verification.",
            ],
            doneWhen: [
                "Observable evidence is named, such as command results, file or API state, tracker dependencies, or child issue results.",
                "Relevant verification commands or blocked checks include their expected observable result.",
            ],
        },
        workflowRef: {
            title: (templateName) => `Plan direct child workflow: ${templateName}`,
            objective: (templateName) => `Expand the direct child workflow ${templateName}.`,
            instructions: (templateName) => [
                `Plan the direct child workflow ${templateName}.`,
                "Preserve the control-plane-provided workflow_ref metadata exactly.",
            ],
            doneWhen: (templateName) => [
                `The direct child workflow ${templateName} has an observable workflow result recorded.`,
            ],
            humanHandoffWhen: (templateName) => [
                `The direct child workflow ${templateName} cannot be expanded safely.`,
            ],
        },
    },
    ja: {
        resultSummary: "短い結果サマリー",
        evidence: ["依頼された結果が完了したことを示す観測可能な証拠。"],
        executionResultSummary: "短い実行結果サマリー",
        executionEvidence: [
            "コマンド結果またはファイル/API状態により、現在のステップのdoneWhenが満たされたことを示す。",
        ],
        batchResultSummary: "短いステップバッチ照合サマリー",
        batchEvidence: ["差分と検証結果により、ステップバッチの結果を示す。"],
        stepResultSummary: "短い照合済みステップ結果サマリー",
        stepEvidence: ["観測可能な証拠により、このステップのdoneWhenを示す。"],
        selectionResultSummary: "短い選択結果サマリー",
        selectionEvidence: ["選択したworkflow slotが依頼内容に合っている。"],
        contractObjective: "アクティブなworkflow templateと現在のissue状態を実行可能なplanへ変換する。",
        contractDoneWhen: [
            "planに、コマンド結果、ファイル/API状態、tracker依存関係、子issue結果などの観測可能な証拠が記載されている。",
        ],
        contractInputs: ["現在のissue状態", "アクティブなworkflow template"],
        contractOutputs: ["実行可能なworkflow plan", "検証基準"],
        planningIssueTitle: "workflow planを実装する",
        planningResultSummary: "短い計画結果サマリー",
        planningEvidence: [
            "planに、観測可能なdoneWhen証拠を持つ実行可能なステップが含まれている。",
        ],
        executionGuidance: [
            "workflow全体のhuman handoff、通知、副作用、証拠ルールをすべての実行ステップへ適用する。",
        ],
        startApprovalReason: "planが認証動作を変更するため、実行開始前にユーザー承認が必要。",
        taskStep: {
            title: "テンプレート作業を計画する",
            objective: "アクティブなworkflow templateを、範囲の明確な実行ステップ1件に変換する。",
            instructions: [
                "ステップ境界を決める前に、現在のissue状態、アクティブなtemplate本文、関連するrepository contextを読む。",
                "具体的な検証を伴う1つの責務単位にステップを絞る。",
            ],
            doneWhen: [
                "コマンド結果、ファイル/API状態、tracker依存関係、子issue結果などの観測可能な証拠が記載されている。",
                "関連する検証コマンドまたはブロックされた確認に、期待される観測可能な結果が含まれている。",
            ],
        },
        workflowRef: {
            title: (templateName) => `直接の子 workflow を計画する: ${templateName}`,
            objective: (templateName) => `直接の子 workflow ${templateName} を展開する。`,
            instructions: (templateName) => [
                `直接の子 workflow ${templateName} を計画する。`,
                "control-planeが提供したworkflow_ref metadataを正確に保持する。",
            ],
            doneWhen: (templateName) => [
                `直接の子 workflow ${templateName} の観測可能なworkflow結果が記録されている。`,
            ],
            humanHandoffWhen: (templateName) => [
                `直接の子 workflow ${templateName} を安全に展開できない。`,
            ],
        },
    },
    zh: {
        resultSummary: "简短结果摘要",
        evidence: ["可观察证据表明请求的结果已经完成。"],
        executionResultSummary: "简短执行结果摘要",
        executionEvidence: [
            "命令结果或文件/API状态证明当前步骤的doneWhen已经满足。",
        ],
        batchResultSummary: "简短步骤批量核对摘要",
        batchEvidence: ["合并后的差异和验证结果证明步骤批量结果。"],
        stepResultSummary: "简短已核对步骤结果摘要",
        stepEvidence: ["可观察证据证明此步骤的doneWhen。"],
        selectionResultSummary: "简短选择结果摘要",
        selectionEvidence: ["所选workflow slot符合请求的工作。"],
        contractObjective: "将当前workflow template和当前issue状态转换为可执行plan。",
        contractDoneWhen: [
            "plan列出可观察证据，例如命令结果、文件或API状态、tracker依赖或子issue结果。",
        ],
        contractInputs: ["当前issue状态", "当前workflow template"],
        contractOutputs: ["可执行workflow plan", "验证标准"],
        planningIssueTitle: "实施 workflow plan",
        planningResultSummary: "简短计划结果摘要",
        planningEvidence: ["plan包含带有可观察doneWhen证据的可执行步骤。"],
        executionGuidance: [
            "将workflow级别的human handoff、通知、副作用和证据规则应用到每个执行步骤。",
        ],
        startApprovalReason: "plan会更改认证行为，因此执行开始前需要用户批准。",
        taskStep: {
            title: "规划模板工作",
            objective: "将当前workflow template转换为一个范围明确的可执行步骤。",
            instructions: [
                "在确定步骤边界前，阅读当前issue状态、当前template正文和相关repository context。",
                "将步骤限制在一个职责范围内，并包含具体验证。",
            ],
            doneWhen: [
                "列出可观察证据，例如命令结果、文件/API状态、tracker依赖或子issue结果。",
                "相关验证命令或受阻检查包含其预期的可观察结果。",
            ],
        },
        workflowRef: {
            title: (templateName) => `规划直接子 workflow：${templateName}`,
            objective: (templateName) => `展开直接子 workflow ${templateName}。`,
            instructions: (templateName) => [
                `规划直接子 workflow ${templateName}。`,
                "准确保留control-plane提供的workflow_ref metadata。",
            ],
            doneWhen: (templateName) => [
                `直接子 workflow ${templateName} 已记录可观察的workflow结果。`,
            ],
            humanHandoffWhen: (templateName) => [
                `无法安全展开直接子 workflow ${templateName}。`,
            ],
        },
    },
};
function getWorkerDecisionExampleText(locale) {
    return (WORKER_DECISION_EXAMPLE_TEXT[locale] ?? WORKER_DECISION_EXAMPLE_TEXT.en);
}
