← 글로 돌아가기

관리 문서 수정 이력 남기기: 최종본이 여러 개 생겼을 때 정리하는 순서

실제 현장 사례가 아닌 가상 교육자료입니다. PASS는 의도적으로 잘못된 행을 기대한 방식으로 찾아낸 결과도 포함합니다.

전체 실습팩 · 기본 결과 CSV · 경계 결과 CSV · 기본 코드 · 경계 코드 · 파일 해시

무엇을 확인하는 검사인가

이 실습의 현행판 기준시각은 context.csv의 2026년 10월 30일 09:00입니다. 그 뒤 시행되는 판은 이 시점의 현행으로 선택하지 않습니다. 시행일이나 기준시각이 비면 임의의 첫 판을 현행으로 고르지 않고 판단을 보류합니다. 목록에 실린 판의 승인 사실이나 실제 게시 교체를 확인한 검사는 아닙니다.

기본 예시 4개 필드와 별도 경계 3사례가 각각 독립 기대값과 일치했습니다. 기본 예시의 기존 수치와 expected/report.json은 보존했습니다.

기본 실행 UTC 2026-10-30T07:26:10.850251+00:00 · Python 3.14.8 / Darwin.

기본 입력 파일

context.csv

as_of
2026-10-30T09:00

copies.csv

siteversion
lobbyv3
elevatorv1
onlinev2

revisions.csv

versioneffectivekind
v12026-10-01T09:00initial
v22026-10-03T09:00procedure
v32026-10-06T09:00title_only

기본 입력의 실제 판단

배포처버전현행업무기준 구판
lobbyv3TrueFalse
elevatorv1FalseTrue
onlinev2FalseFalse

실제값 JSON · 실제값·기본 기대값 대조 · 기본 독립 기대값

누락·예외 입력의 판단을 따로 확인하기

각 사례는 기본 예시의 사본에 명시된 값만 바꿉니다. 결과를 본 뒤 기대값을 복사한 것이 아니라, 올바른 누락·연결·수행 판단을 사례별 expected.json에 별도로 정했습니다. 아래 PASS는 단순히 명령이 실패하거나 종료됐다는 뜻이 아니라 실제 판단이 그 기대와 맞았다는 뜻입니다.

경계사례확인 질문결과
asof_missing기준시각이 빈 값이면 현행 판단을 보류PASS
effective_missing시행일이 없으면 임의의 첫 판을 현행으로 선택하지 않음PASS
future_effective기준시각 뒤 시행판은 현행으로 선택하지 않음PASS
asof_missing — 기준시각이 빈 값이면 현행 판단을 보류

변경한 입력값 · 독립 기대 판단

기대한 판단

{
  "actual": {
    "current_version": null
  },
  "details": {
    "revision_review": [
      "as_of"
    ]
  }
}

실제로 계산한 판단

{
  "actual": {
    "current_version": null,
    "checks": [
      {
        "site": "lobby",
        "version": "v3",
        "current": null,
        "procedure_outdated": null
      },
      {
        "site": "elevator",
        "version": "v1",
        "current": null,
        "procedure_outdated": null
      },
      {
        "site": "online",
        "version": "v2",
        "current": null,
        "procedure_outdated": null
      }
    ],
    "needs_replacement": [],
    "procedure_outdated": []
  },
  "details": {
    "as_of": "  ",
    "revision_review": [
      "as_of"
    ],
    "policy": "Missing dates stop current-version selection;future-effective versions are not current at the declared as-of time. Approval authenticity is not verified."
  }
}
effective_missing — 시행일이 없으면 임의의 첫 판을 현행으로 선택하지 않음

변경한 입력값 · 독립 기대 판단

기대한 판단

{
  "actual": {
    "current_version": null,
    "needs_replacement": [],
    "procedure_outdated": []
  },
  "details": {
    "revision_review": [
      "v1",
      "v2",
      "v3"
    ]
  }
}

실제로 계산한 판단

{
  "actual": {
    "current_version": null,
    "checks": [
      {
        "site": "lobby",
        "version": "v3",
        "current": null,
        "procedure_outdated": null
      },
      {
        "site": "elevator",
        "version": "v1",
        "current": null,
        "procedure_outdated": null
      },
      {
        "site": "online",
        "version": "v2",
        "current": null,
        "procedure_outdated": null
      }
    ],
    "needs_replacement": [],
    "procedure_outdated": []
  },
  "details": {
    "as_of": "2026-10-30T09:00",
    "revision_review": [
      "v1",
      "v2",
      "v3"
    ],
    "policy": "Missing dates stop current-version selection;future-effective versions are not current at the declared as-of time. Approval authenticity is not verified."
  }
}
future_effective — 기준시각 뒤 시행판은 현행으로 선택하지 않음

변경한 입력값 · 독립 기대 판단

기대한 판단

{
  "actual": {
    "current_version": "v3",
    "needs_replacement": [
      "elevator",
      "online"
    ]
  }
}

실제로 계산한 판단

{
  "actual": {
    "current_version": "v3",
    "checks": [
      {
        "site": "lobby",
        "version": "v3",
        "current": true,
        "procedure_outdated": false
      },
      {
        "site": "elevator",
        "version": "v1",
        "current": false,
        "procedure_outdated": true
      },
      {
        "site": "online",
        "version": "v2",
        "current": false,
        "procedure_outdated": false
      }
    ],
    "needs_replacement": [
      "elevator",
      "online"
    ],
    "procedure_outdated": [
      "elevator"
    ]
  },
  "details": {
    "as_of": "2026-10-30T09:00",
    "revision_review": [],
    "policy": "Missing dates stop current-version selection;future-effective versions are not current at the declared as-of time. Approval authenticity is not verified."
  }
}

경계 실행 결과 전체 JSON · 경계 실행 결과 CSV

기존 요약 도해의 범위

아래 도해는 변경하지 않은 기본 예시의 수치를 요약합니다. 추가 경계사례의 다른 수치를 실제 현장 결과로 덧씌우지 않습니다.

변경하지 않은 기본 가상 예시의 요약 도해

재현과 한계

Python3.10 이상에서 python3 validate.py와 python3 regression.py를 실행할 수 있습니다. 기본 입력을 바꾸면 기존 기대값과 달라질 수 있으므로 결과의 actual과 누락 이유를 읽습니다. 이 HTML은 배포 시점 기록이며 재실행 때 자동 갱신되지 않습니다.

이 실습의 현행판 기준시각은 context.csv의 2026년 10월 30일 09:00입니다. 그 뒤 시행되는 판은 이 시점의 현행으로 선택하지 않습니다. 시행일이나 기준시각이 비면 임의의 첫 판을 현행으로 고르지 않고 판단을 보류합니다. 목록에 실린 판의 승인 사실이나 실제 게시 교체를 확인한 검사는 아닙니다.

자세한 실행 안내 · 모든 입력·코드·결과를 한 번에 받기