{
  "schema": "dn-research-method/v1",
  "commission": "N025",
  "version": "1.0.0",
  "checkedOn": "2026-12-04",
  "edition": "2027 guide; not a statement that the sources were checked in 2027",
  "slug": "client-research-retention-deletion-record-2027",
  "title": "Client Research Retention in 2027: Delete Sensitive Inputs Without Losing the Decision Record",
  "evidenceStatus": "Primary sources reviewed; original DN operating method and entirely fictional worked examples. No client engagement, account, transaction or legal determination has been authenticated.",
  "sources": [
    {
      "title": "Principle (e): Storage limitation",
      "publisher": "UK Information Commissioner's Office",
      "url": "https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-protection-principles/a-guide-to-the-data-protection-principles/storage-limitation/",
      "checkedOn": "2026-12-04",
      "supports": "UK-context justification, review of retention, distinction between offline storage/pseudonymisation and erasure; page marked under review following the Data (Use and Access) Act."
    },
    {
      "title": "Protection of Personal Information Act 4 of 2013, section 14",
      "publisher": "South African Department of Justice and Constitutional Development",
      "url": "https://www.justice.gov.za/legislation/acts/2013-004.pdf",
      "checkedOn": "2026-12-04",
      "supports": "South African statutory retention exceptions, records used for a decision about a person, destruction and restriction provisions; applicability requires review."
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "licenseScope": "Original DN compilation, template, software and hypothetical examples only; linked third-party works retain their rights and are not included or relicensed.",
  "decision": "Which declared artifact rows need human disposition review, remain held, have incomplete evidence, have a continuing purpose, or have not reached an entered review event?",
  "notDecision": [
    "Which law applies",
    "What statutory retention period applies",
    "Whether destruction or anonymisation is permitted or complete",
    "Whether every underlying copy has been discovered"
  ],
  "method": [
    "List raw inputs, permitted extracts, decision records, invoice records and deletion-evidence records separately when their purposes or restrictions differ.",
    "Enter an explicit review checkpoint; enter one to fifty non-sensitive artifact aliases, their class, trigger date or null, review interval or null, purpose status, hold status and reference or null.",
    "Validate complete row shapes, unique aliases, supported enumerations, real calendar dates and bounded whole-day intervals before returning any result.",
    "Calculate a review date only when the trigger and interval are known. The interval is reader-entered and never inferred from the class or jurisdiction.",
    "Apply the ordered state rules below. An active hold remains held; unknowns do not become permission or a zero-day interval.",
    "Return a review queue and JSON record. Every row and the aggregate keep deletionAuthorized false. Actual action, authority, copy discovery and verification are outside the program."
  ],
  "statePrecedence": [
    {
      "state": "activeHold",
      "condition": "hold is active",
      "meaning": "Preserve the declared hold; the calculator cannot release it."
    },
    {
      "state": "unresolved",
      "condition": "Otherwise, applicable requirements, hold, purpose, trigger, review interval or evidence reference is unknown",
      "meaning": "Resolve evidence before considering disposition."
    },
    {
      "state": "purposeContinues",
      "condition": "Otherwise, purposeEnded is no",
      "meaning": "The continuing purpose needs its own owner review."
    },
    {
      "state": "triggerPending",
      "condition": "Otherwise, triggerDate is later than asOfDate",
      "meaning": "The entered trigger event has not been reached at the checkpoint."
    },
    {
      "state": "notDue",
      "condition": "Otherwise, reviewDate is later than asOfDate",
      "meaning": "The entered review date has not been reached."
    },
    {
      "state": "reviewCandidate",
      "condition": "Otherwise",
      "meaning": "Human disposition review only; no deletion authorization."
    }
  ],
  "formulas": {
    "reviewDate": "triggerDate + reviewAfterDays Gregorian calendar days; null when either operand is unknown",
    "reviewReached": "reviewDate <= asOfDate; equality is included, subject to earlier state checks",
    "recordCount": "sum of the six mutually exclusive state counts",
    "deletionAuthorized": "false for every row and every aggregate result"
  },
  "inputBounds": {
    "asOfDate": "Required YYYY-MM-DD, real calendar date, years 1900–2100",
    "requirementsStatus": [
      "reviewed",
      "unknown"
    ],
    "recordsJson": "JSON array with 1–50 exact-shape records; maximum 16,000 characters",
    "recordId": "Unique uppercase alias: 1–40 ASCII letters, digits, underscore or hyphen; first character is a letter or digit",
    "recordClass": [
      "raw",
      "extract",
      "decision",
      "invoice",
      "deletion-evidence"
    ],
    "triggerDate": "Real YYYY-MM-DD in years 1900–2100 or JSON null",
    "reviewAfterDays": "Integer 0–36,525 or JSON null; derived date must remain within 1900–2100",
    "purposeEnded": [
      "yes",
      "no",
      "unknown"
    ],
    "hold": [
      "none",
      "active",
      "unknown"
    ],
    "evidenceRef": "Non-sensitive nonblank text, at most 160 characters, or JSON null"
  },
  "workedExample": {
    "inputsFile": "example.json",
    "status": "Fictional; intervals are not legal defaults",
    "asOfDate": "2027-03-01",
    "recordCount": 5,
    "counts": {
      "reviewCandidate": 1,
      "activeHold": 1,
      "unresolved": 1,
      "purposeContinues": 1,
      "notDue": 1,
      "triggerPending": 0
    },
    "reviewDates": {
      "RAW-01": "2027-02-14",
      "EXTRACT-01": "2027-03-16",
      "DECISION-01": "2028-01-15",
      "INVOICE-01": null,
      "DELETE-LOG-01": "2027-05-16"
    },
    "changedCheckpoint": {
      "asOfDate": "2027-06-01",
      "reviewCandidate": 2,
      "activeHold": 1,
      "unresolved": 1,
      "purposeContinues": 1,
      "notDue": 0,
      "triggerPending": 0
    },
    "unknownRequirements": {
      "requirementsReviewed": null,
      "reviewCandidate": 0,
      "activeHold": 1,
      "unresolved": 4
    },
    "deletionAuthorized": false
  },
  "unknownPolicy": "Required top-level blanks reject. Row null values and explicit unknown statuses preserve uncertainty; they never imply zero or no hold. Known active holds retain precedence even if other evidence is missing. Unknown requirements suppress all non-held candidates.",
  "export": {
    "entryPoint": "calculateRetention(kind, values)",
    "kind": "N025",
    "schema": "dn-client-retention-review/v1",
    "record": "workflowRecord",
    "unknownFields": [
      "inputs.requirementsStatus",
      "records[].triggerDate",
      "records[].reviewAfterDays",
      "records[].purposeEnded",
      "records[].hold",
      "records[].evidenceRef",
      "records[].reviewDate",
      "uncertainty.requirementsReviewed"
    ],
    "authorityFlags": [
      "results.deletionAuthorized=false",
      "records[].deletionAuthorized=false",
      "uncertainty.declarationsAuthenticated=false",
      "uncertainty.dispositionAuthorityDetermined=false"
    ]
  },
  "reproducibility": {
    "command": "node --test tests.mjs",
    "runtime": "Node.js 22 or newer; no package install, credentials or network required",
    "calculatorFile": "tool.js",
    "siteCalculatorFile": "calculator.js",
    "fixtureFile": "browser-cases.json",
    "expectedAnswers": "Authored independently from the equations and calendar, not generated from calculator output",
    "testTopics": [
      "Five-class known answer",
      "Inclusive checkpoint",
      "Leap days and year boundaries",
      "Zero-day and future-trigger semantics",
      "Active hold precedence",
      "Global and per-row unknowns",
      "Continuing purpose",
      "Calendar and range rejection",
      "Malformed JSON and exact schema",
      "Duplicate aliases",
      "Deterministic JSON-safe exports"
    ]
  },
  "limits": [
    "No current-time, network, DOM, file, storage or account access in the pure calculator.",
    "Calendar-day arithmetic does not implement calendar-month, tax-year, business-day or holiday rules.",
    "The policy reference is a declaration, not authenticated evidence.",
    "The class does not establish a retention period or a basis for retaining personal information.",
    "An exported planning record does not prove erasure, anonymisation, backup expiry or release of a hold.",
    "Use only aliases and non-sensitive references; exported JSON contains entered values.",
    "Examples and reviewed sources are dated 4 December 2026; any later change needs a fresh source review."
  ],
  "deduplication": {
    "nearestCanonicalId": 43390,
    "distinctDecision": "Canonical 43390 allocates storage and retained bytes; this guide schedules per-artifact human review and holds.",
    "additionalReviewedCanonicalIds": [
      40888,
      44965
    ],
    "otherBoundaries": "The licence canvas reviews permission-term completeness. Handover replay verifies integrity and reproduction. Neither supplies this per-record retention review state machine."
  }
}
