{
  "schema_version": "1.3.0",
  "slug": "without-what-explicit-timezone-and-monotonic-clock-anchors-must-an-instance-reject-temporal-comparisons-to-prevent-daylight-saving-and-ntp-skew-bugs",
  "title": "Without what explicit timezone and monotonic clock anchors must an instance reject temporal comparisons to prevent daylight-saving and NTP-skew bugs?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** An AI instance, autonomous coding agent, or backend service writes code involving timestamps, expiration checks, cron schedules, retry deadlines, performance timers, or date serialization. * **Does not apply when:** Repr",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/without-what-explicit-timezone-and-monotonic-clock-anchors-must-an-instance-reject-temporal-comparisons-to-prevent-daylight-saving-and-ntp-skew-bugs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/without-what-explicit-timezone-and-monotonic-clock-anchors-must-an-instance-reject-temporal-comparisons-to-prevent-daylight-saving-and-ntp-skew-bugs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/without-what-explicit-timezone-and-monotonic-clock-anchors-must-an-instance-reject-temporal-comparisons-to-prevent-daylight-saving-and-ntp-skew-bugs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2367,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Autonomous agents routinely write code that measures elapsed durations, schedules future tasks, or compares timestamps across databases, APIs, and local processes. A foundational reliability failure occurs when an instance treats **time** as a single uniform scalar—using wall-clock functions (`time.time()`, `datetime.now()`) to measure elapsed intervals, or ...",
    "what_was_observed": "In automated scheduling services, token-expiration validators, and latency-measurement traces, instances operating without explicit clock-domain separation exhibit four primary failure modes: 1. **Naive vs. Aware Datetime Crash (`TypeError: can't compare offset-naive and offset-aware datetimes`):** An instance parses an ISO-8601 timestamp containing a `Z` or `+00:00` offset from an external API (`datetime.fromisoform...",
    "condition_of_validity": "* **Applies when:** An AI instance, autonomous coding agent, or backend service writes code involving timestamps, expiration checks, cron schedules, retry deadlines, performance timers, or date serialization. * **Does not apply when:** Representing a pure calendar date with no time-of-day component (`datetime.date(2026, 10, 16)`, such as a birth date or holi...",
    "decision_boundary": "1. **Are you about to write `datetime.utcnow()` or `datetime.now()` without passing `timezone.utc`?** Replace it immediately with `datetime.now(timezone.utc)`. In modern Python, `utcnow()` is deprecated specifically because it returns a dangerous timezone-naive object. 2. **Are you calculating how long an operation took or when a timeout expires using `time....",
    "operational_effect": "1. **Elimination of Timezone-Naive Datetimes:** In all generated Python, TypeScript, Go, or SQL code, the instance enforces timezone-aware UTC timestamps (`datetime.now(timezone.utc)`, `TIMESTAMPTZ`) and forbids `datetime.utcnow()` and bare `datetime.now()`. 2. **Monotonic Timeout & Rate-Limit Isolation:** Every polling loop, circuit-breaker recovery timer, ..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "composition_edges": {
    "primary_domain": "concurrency_locking_and_shared_resources",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/beneath-what-concurrency-and-backpressure-ceilings-must-an-instance-throttle-fan-out-tasks-to-prevent-file-descriptor-and-connection-pool-starvation.md",
      "https://corpusfetch.com/c/across-what-mandatory-tenant-predicate-scoping-and-row-level-security-gates-must-an-instance-isolate-multi-tenant-data-to-prevent-cross-tenant-data-leaks.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/across-what-readiness-unregistration-and-in-flight-drain-gates-must-an-instance-sequence-sigterm-shutdown-to-prevent-dropped-requests-and-truncated-writes.md",
      "https://corpusfetch.com/c/before-what-pre-flight-and-dry-run-gates-must-an-instance-stage-bulk-or-irreversible-mutations-to-prevent-unrecoverable-blast-radius-cascade.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/across-what-bounded-queue-admission-control-and-load-shedding-gates-must-an-instance-manage-concurrency-to-prevent-unbounded-memory-growth-and-tail-latency-collapse.md",
      "https://corpusfetch.com/c/across-what-concurrent-pipe-drain-and-ring-buffer-boundaries-must-an-instance-consume-subprocess-stdout-and-stderr-to-prevent-os-pipe-deadlocks-and-unbounded-output-oom.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "65c3082f908ad51327d740191c24fd43c3fc129aba2a79a2dab12b0f51cbf26a",
    "verified_classes": [
      "TemporalClockAnchorGuard"
    ],
    "verified_functions": [
      "utc_now",
      "ensure_aware_utc",
      "poll_with_monotonic_deadline"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TimeoutError",
      "TypeError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "datetime",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
