"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RECONCILIATION_REVIEW_RECEIPT_PROTOCOL_VERSION = exports.IMPLEMENTATION_SUMMARY_REVIEW_RECEIPT_PROTOCOL_VERSION = exports.TASK_RECONCILIATION_FINAL_REVIEW_MARKER = exports.TASK_RECONCILIATION_ACCEPTED_MARKER = exports.TASK_RECONCILIATION_REVIEW_MARKER = exports.MILESTONE_FINAL_REVIEW_MARKER = exports.MILESTONE_REVIEW_ACCEPTED_MARKER = exports.MILESTONE_REVIEW_READY_MARKER = exports.CONTRADICTS_COMPLETED_STATUS_PATTERN = exports.WEAK_VALIDATION_REVIEW_PATTERN = exports.UNRESOLVED_ACCEPTANCE_REVIEW_PATTERN = exports.MARKDOWN_IMPLEMENTATION_SUMMARY_LINK_PATTERN = exports.IMPLEMENTATION_SUMMARY_REFERENCE_PATTERN = exports.IMPLEMENTATION_SUMMARY_AUTHORING_GUIDANCE = exports.TEMPLATE_SCAFFOLD_PATTERN = exports.GENERATED_RECONCILIATION_SECTIONS = exports.TASK_RECONCILIATION_SECTIONS = exports.RECONCILIATION_SECTIONS = exports.IMPLEMENTATION_SUMMARY_SECTIONS = void 0;
exports.IMPLEMENTATION_SUMMARY_SECTIONS = [
    "Summary",
    "Changed Paths",
    "Acceptance Criteria Results",
    "Validation Performed",
    "Scope Classification",
    "Deviations",
    "Risks and Follow-Ups",
    "Open Questions"
];
exports.RECONCILIATION_SECTIONS = [
    "Review Status",
    "Milestone Intent",
    "Completed Task Summaries",
    "Acceptance Criteria Review",
    "Planned Work",
    "Resolved Findings",
    "Discovered Work",
    "Backlog Work",
    "Accepted Residual Work",
    "Validation Review",
    "Follow-Up Tasks",
    "Review Concerns",
    "Final Notes"
];
exports.TASK_RECONCILIATION_SECTIONS = [
    "Review Status",
    "Original Intent",
    "Completed Work",
    "Acceptance Criteria Review",
    "Planned Work",
    "Resolved Findings",
    "Discovered Work",
    "Backlog Work",
    "Accepted Residual Work",
    "Validation Review",
    "Follow-Up Tasks",
    "Review Concerns",
    "Final Notes"
];
exports.GENERATED_RECONCILIATION_SECTIONS = new Set([
    "Review Status",
    "Milestone Intent",
    "Completed Task Summaries",
    "Acceptance Criteria Review",
    "Planned Work",
    "Validation Review",
    "Review Concerns"
]);
exports.TEMPLATE_SCAFFOLD_PATTERN = /^(Record newly discovered work that emerged during implementation or review\.|Move out-of-scope but relevant follow-up into backlog work here\.|Record reviewed residual work that does not block acceptance\.|List any concrete next tasks that remain after reconciliation\.)$/im;
exports.IMPLEMENTATION_SUMMARY_AUTHORING_GUIDANCE = Object.freeze({
    "Validation Exceptions": [
        "Authoring guidance:",
        "",
        "- Use this section only when planned validation could not run.",
        "- Runtime and hybrid validation exceptions must record the planned command, blocker, substitute evidence, residual risk, and follow-up validation path.",
        "- If there are no validation exceptions, use exactly `None.`"
    ].join("\n"),
    "Runtime Evidence Boundary": [
        "Authoring guidance:",
        "",
        "- Contract summaries must not claim runtime implementation unless runtime files changed and executable evidence is recorded.",
        "- Runtime and hybrid summaries must name non-documentation changed paths and executable validation evidence, or a structured validation exception for the validation gap only.",
        "- Validation exceptions cannot substitute for missing runtime code changes."
    ].join("\n")
});
exports.IMPLEMENTATION_SUMMARY_REFERENCE_PATTERN = /`?(\.day-shift\/[^\s`:)]+\/implementation-summary\.md)`?/g;
exports.MARKDOWN_IMPLEMENTATION_SUMMARY_LINK_PATTERN = /\[[^\]\n]+\]\(([^)\s]+\/implementation-summary\.md)\)/g;
exports.UNRESOLVED_ACCEPTANCE_REVIEW_PATTERN = /(pending review|completed task evidence:\s*none available|pending task evidence:.*remains incomplete|no milestone acceptance criteria were found|requires explicit human review)/im;
exports.WEAK_VALIDATION_REVIEW_PATTERN = /(no completed task validation evidence is available yet|validation section missing|no milestone validation focus was found|pending review|requires explicit human review)/im;
exports.CONTRADICTS_COMPLETED_STATUS_PATTERN = /(blocking|unresolved|must|required before closeout|incomplete evidence remains|remains incomplete|pending evidence)/im;
exports.MILESTONE_REVIEW_READY_MARKER = "Ready for review. Every declared task has a completed, non-placeholder implementation summary and the milestone evidence is ready for explicit reconciliation review.";
exports.MILESTONE_REVIEW_ACCEPTED_MARKER = "Accepted. Every declared task has a completed, non-placeholder implementation summary and the milestone reconciliation evidence was explicitly accepted from the current review receipt.";
exports.MILESTONE_FINAL_REVIEW_MARKER = "Milestone evidence has been refreshed from task summaries; explicit human review still owns milestone acceptance.";
exports.TASK_RECONCILIATION_REVIEW_MARKER = "Default review rollup remains milestone-reconciliation unless this explicit task-level selector is used.";
exports.TASK_RECONCILIATION_ACCEPTED_MARKER = "Accepted. This explicit task-level reconciliation exception was accepted from the current review receipt; default review rollup remains milestone-reconciliation.";
exports.TASK_RECONCILIATION_FINAL_REVIEW_MARKER = "Task-level reconciliation path resolution completed from an explicit task-definition selector; this artifact is not the default milestone rollup.";
exports.IMPLEMENTATION_SUMMARY_REVIEW_RECEIPT_PROTOCOL_VERSION = 1;
exports.RECONCILIATION_REVIEW_RECEIPT_PROTOCOL_VERSION = 1;
