Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Fix: `Date` and `Time` natives could not be produced by a live `PipeLLM` (#1089)

Louis Choquelc16877089633
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4af662e46..a98a198e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,8 @@
### Fixed
+- **`Date` and `Time` could not be produced by a live `PipeLLM`**: A `PipeLLM` whose `output` was `Date`, `Date[]`, or `Time` failed every real run on `date_type` / `time_type` — the structured-output layer validates the model's response in strict mode, where a `mode="before"` validator forfeits pydantic's strict-JSON acceptance of ISO strings. Both natives now parse ISO 8601 themselves and return a real `date`/`time`, so the strict and lax paths agree and the guards (no epoch-seconds, no datetime on a calendar date) still fire in both. `Time` gained the numeric-string guard `Date` already had.
+- **One ISO 8601 contract for the `Date` and `Time` natives (Breaking)**: `pipelex.core.stuffs.iso_temporal` now owns what those natives accept — the *extended* forms only (`2026-07-07`, `15:40:00+02:00`), rejecting the basic and week/ordinal spellings that `fromisoformat` would otherwise restate in a calendar the source never used. Both the content models and `StuffContentFactory` parse through it — including the time half of an authored `2026-07-07T15:40:00`, which is split out rather than handed to `datetime.fromisoformat` — so a model-generated value and an authored one are held to the same contract instead of two. It also rejects the end-of-day `24:00` form, which names the *next* day's midnight: Python 3.14 reads it as this day's midnight where 3.11-3.13 raise, so a `Time` (or a `Date`'s time) could silently land a full day early on part of the supported interpreter range. Breaking for authored inputs that used a non-extended spelling: `"15:40:00+0200"`, `"2026-07-07T154000"`, `"24:00:00"`, and surrounding whitespace are now refused where they previously parsed.
- **Cross-domain pipe refs in normalized crates (Breaking)**: A bare pipe ref calling a pipe declared in another domain was normalized by prefixing the *caller's* domain, naming a pipe the crate does not hold — while the live library resolves the same ref by searching every domain. The crate fingerprinted the wrong content and a crate round-trip broke the method at run time with `PipeNotFoundError`, with nothing raised on the way in. Normalization now resolves a bare pipe ref against the whole crate exactly as `PipeLibrary` does, and raises `CrateNormalizationError` when the ref is ambiguous or matches no pipe instead of emitting a dangling ref.
- **Structureless concepts in the `python-structures` projection (Breaking)**: A concept declaring only a description was projected as a `StructuredContent` subclass while the runtime promotes the same declaration to a refinement of native `Text`. Since `TextContent` and `StructuredContent` are siblings, the interpreter's text-vs-object dispatch answered differently depending on which class it was handed — and the mismatch raised nothing, because the read-back validated against both. The projection now emits `TextContent` as the base, matching the runtime. A Python-class-backed concept (`structure = "<ClassName>"`) still projects onto the root base: its real shape is not visible to the crate.
- **Format-stable import blocks in generated Python**: A generated import line whose merged names crossed 88 columns was emitted flat, so the first `ruff format` in a consumer's tree rewrote it — changing the body bytes and making `pipelex codegen check` report the file as hand-edited. The import block now pre-explodes past the threshold like every other emitted construct.
diff --git a/pipelex/core/stuffs/date_content.py b/pipelex/core/stuffs/date_content.py
index fe1dbad36..74c453d20 100644
--- a/pipelex/core/stuffs/date_content.py
+++ b/pipelex/core/stuffs/date_content.py
@@ -7,22 +7,10 @@ from rich.json import JSON
from typing_extensions import override
from pipelex.core.stuffs.exceptions import DateContentError
+from pipelex.core.stuffs.iso_temporal import parse_iso_date, parse_iso_time
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.tools.misc.pretty import PrettyPrintable
-
-
-def _is_numeric_string(text: str) -> bool:
- """Whether a string is purely a number (an epoch), so it must never be read as a date/time.
-
- Every legitimate ISO date/time string carries a '-', ':', 'T', or space separator, so ``float()``
- raises on it; only a bare number parses — including the signed / decimal / exponent forms
- (``-86400``, ``86400.0``, ``8.64e4``) that a plain ``.isdigit()`` check lets slip past (DT6).
- """
- try:
- float(text.strip())
- except ValueError:
- return False
- return True
+from pipelex.tools.misc.string_utils import is_numeric_string
class DateContent(StuffContent):
@@ -45,19 +33,21 @@ class DateContent(StuffContent):
@field_validator("date", "time", mode="before")
@classmethod
- def _reject_lax_temporal(cls, value: Any, info: ValidationInfo) -> Any:
- # Close pydantic's lax-mode coercions that would silently produce wrong temporal data — all
- # raise ValueError so pydantic wraps them into a ValidationError the input/factory path catches
- # (a raw TypeError would escape model_validate uncaught):
- # - a bare int/float, or any purely-numeric string, is read as epoch seconds; a real ISO
- # date/time always carries a '-'/':'/ 'T'/space separator, so a numeric string is only ever
- # an epoch (DT6).
+ def _validate_temporal(cls, value: Any, info: ValidationInfo) -> Any:
+ # Reject what pydantic would coerce into silently wrong temporal data, then parse the ISO
+ # strings that remain into real date/time objects. All rejections raise ValueError so pydantic
+ # wraps them into a ValidationError the input/factory path catches (a raw TypeError would
+ # escape model_validate uncaught):
+ # - a bare int/float would be coerced by pydantic into epoch seconds (DT6). This arm is what
+ # stops that; the numeric-STRING arm beside it is not load-bearing, since the extended-form
+ # pin in the parsers below already refuses every all-digit spelling — it only buys the
+ # accurate "no epoch-seconds" wording in place of a generic malformed-ISO one.
# - a datetime on the `date` field is silently truncated to the date, dropping its time and
# UTC offset — exactly the fidelity loss DT3 forbids ("no silent midnight").
if isinstance(value, datetime.datetime):
- msg = "A Date's `date` field takes a calendar date, not a datetime; put the time and offset in `time` instead."
+ msg = "A Date takes a calendar date and a separate time of day, not a datetime; put the date in `date` and the time and offset in `time`."
raise ValueError(msg) # noqa: TRY004 — must be ValueError so pydantic wraps it into a ValidationError
- if isinstance(value, (int, float)) or (isinstance(value, str) and _is_numeric_string(value)): # bool is an int subclass
+ if isinstance(value, (int, float)) or (isinstance(value, str) and is_numeric_string(value)): # bool is an int subclass
msg = "A Date's date/time must be an ISO 8601 string or a date/time object, never a number (no epoch-seconds)."
raise ValueError(msg)
# A datetime-shaped STRING on the `date` field would be truncated to the calendar date (silently
@@ -69,6 +59,17 @@ class DateContent(StuffContent):
"(e.g. '2026-07-07T00:00:00') would drop it — put the time and offset in `time` instead."
)
raise ValueError(msg)
+ # Parsing the ISO string here — rather than leaving it to the field's own validation — is what
+ # keeps this model usable under the strict validation instructor applies to every LLM response:
+ # a mode="before" validator forfeits pydantic's strict-JSON acceptance of ISO strings, because
+ # whatever it returns is re-validated as PYTHON input, where strict refuses a `str` outright
+ # (date_type / time_type). Returning a real object satisfies strict JSON, strict Python and lax
+ # alike. Non-str values — real date/time objects, e.g. from `--mock-inputs` — pass through.
+ # The parsers pin the extended ISO form, so a model and an author are held to one contract.
+ if isinstance(value, str):
+ if info.field_name == "date":
+ return parse_iso_date(value)
+ return parse_iso_time(value)
return value
def _iso(self) -> str:
diff --git a/pipelex/core/stuffs/iso_temporal.py b/pipelex/core/stuffs/iso_temporal.py
new file mode 100644
index 000000000..a95692ae4
--- /dev/null
+++ b/pipelex/core/stuffs/iso_temporal.py
@@ -0,0 +1,78 @@
+import datetime
+import re
+
+# The temporal natives accept EXTENDED ISO 8601 only. `date.fromisoformat` / `time.fromisoformat`
+# (3.11+) additionally accept the basic forms ("20260707", "154000") and the week / ordinal calendars
+# ("2026-W27-2", "2026-189"): all of those restate the value in a calendar the source did not use, and
+# the ones carrying a suffix ("154000+00:00") slip past the natives' numeric-string guard. Pinning the
+# extended form here — once, for both the content models and `StuffContentFactory` — is what keeps the
+# form a `Date`/`Time` accepts from a model identical to the form it accepts from an author.
+# The fraction separator is either '.' or ',' — ISO 8601 allows both, and `fromisoformat` parses both.
+# The offset is `Z`, `±hh` or `±hh:mm`: the colon-less `±hhmm` is the basic spelling, so it is out.
+# The offset's minutes are range-checked here because nothing downstream does it: they are summed into
+# a timedelta, so `+02:60` would arrive as a silent `+03:00` (an out-of-range offset HOUR does raise,
+# and the time's own minute/second components are range-checked by `fromisoformat`).
+_EXTENDED_DATE_PATTERN = re.compile(r"\d{4}-\d{2}-\d{2}")
+_EXTENDED_TIME_PATTERN = re.compile(r"(?P<hour>\d{2}):\d{2}(:\d{2}([.,]\d+)?)?([Zz]|[+-]\d{2}(:[0-5]\d)?)?")
+
+
+def parse_iso_date(text: str) -> datetime.date:
+ """Parse an extended ISO 8601 calendar date (``YYYY-MM-DD``).
+
+ Args:
+ text (str): The candidate date string.
+
+ Returns:
+ datetime.date: The parsed calendar date.
+
+ Raises:
+ ValueError: When the string is not an extended ISO 8601 calendar date. Callers in a pydantic
+ validator rely on this staying a ValueError, which pydantic wraps into a ValidationError.
+
+ """
+ if not _EXTENDED_DATE_PATTERN.fullmatch(text):
+ msg = f"'{text}' is not an extended ISO 8601 calendar date (e.g. '2026-07-07')."
+ raise ValueError(msg)
+ try:
+ return datetime.date.fromisoformat(text)
+ except ValueError as exc:
+ msg = f"'{text}' is not a valid ISO 8601 calendar date (e.g. '2026-07-07')."
+ raise ValueError(msg) from exc
+
+
+def parse_iso_time(text: str) -> datetime.time:
+ """Parse an extended ISO 8601 time of day (``HH:MM[:SS[.ffffff]]``, optionally with a UTC offset).
+
+ Args:
+ text (str): The candidate time string.
+
+ Returns:
+ datetime.time: The parsed time of day, carrying the UTC offset when the string states one.
+
+ Raises:
+ ValueError: When the string is not an extended ISO 8601 time of day, or uses the end-of-day
+ ``24:00`` form. Callers in a pydantic validator rely on this staying a ValueError, which
+ pydantic wraps into a ValidationError.
+
+ """
+ match = _EXTENDED_TIME_PATTERN.fullmatch(text)
+ if not match:
+ msg = f"'{text}' is not an extended ISO 8601 time of day (e.g. '15:40:00' or '15:40:00+02:00')."
+ raise ValueError(msg)
+ # ISO 8601's end-of-day 24:00 names the NEXT day's midnight, which a time of day alone cannot
+ # carry. It must be rejected explicitly rather than left to the parser: Python 3.14 silently
+ # returns 00:00 for it (3.11-3.13 raise), so accepting it would move the value back a full day —
+ # and only on some of the interpreters we support.
+ if match.group("hour") == "24":
+ msg = f"'{text}' uses the ISO 8601 end-of-day form 24:00, which names the next day's midnight; state that day with '00:00:00' instead."
+ raise ValueError(msg)
+ # `fromisoformat` takes only the upper-case UTC designator, while RFC 3339 states the two spellings
+ # are equivalent and pydantic accepted both before this parser existed. Case-folding the designator
+ # is not normalization of the value — it names the same offset — so admit it rather than refuse a
+ # spelling a model may legitimately answer, and keep the pattern above honest about what it accepts.
+ parsable = f"{text[:-1]}Z" if text.endswith("z") else text
+ try:
+ return datetime.time.fromisoformat(parsable)
+ except ValueError as exc:
+ msg = f"'{text}' is not a valid ISO 8601 time of day (e.g. '15:40:00' or '15:40:00+02:00')."
+ raise ValueError(msg) from exc
diff --git a/pipelex/core/stuffs/stuff_content_factory.py b/pipelex/core/stuffs/stuff_content_factory.py
index 4e791ffcb..d817762e0 100644
--- a/pipelex/core/stuffs/stuff_content_factory.py
+++ b/pipelex/core/stuffs/stuff_content_factory.py
@@ -5,6 +5,7 @@ from typing import Any
from pipelex.core.concepts.concept import Concept
from pipelex.core.stuffs.date_content import DateContent
from pipelex.core.stuffs.exceptions import StuffContentFactoryError
+from pipelex.core.stuffs.iso_temporal import parse_iso_date, parse_iso_time
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.core.stuffs.text_content import TextContent
from pipelex.core.stuffs.time_content import TimeContent
@@ -45,41 +46,36 @@ class StuffContentFactory:
@classmethod
def _parse_iso_temporal(cls, value: str) -> tuple[datetime.date, datetime.time | None]:
- """Parse a strict *extended* ISO 8601 date or datetime, date-first so a bare date never fabricates a midnight time."""
- # Require the date component to be extended-calendar YYYY-MM-DD (optionally followed by a T/space time
- # part, which fromisoformat then validates precisely). date.fromisoformat / datetime.fromisoformat (3.11+)
- # also accept the basic "YYYYMMDD" / "YYYYMMDDTHHMMSS" forms and ISO week-dates ("2026-W27-2"), which would
- # silently normalize a non-extended input into a DateContent — and let an all-digit epoch string slip past
- # DateContent's own no-epoch-seconds guard. Pin extended-only (also subsumes the old all-digit reject).
- if not re.fullmatch(r"\d{4}-\d{2}-\d{2}([Tt ].*)?", value.strip()):
+ """Parse a strict *extended* ISO 8601 date or datetime, keeping a bare date's absent time absent."""
+ # Split on the date/time separator and hand each half to the parser the content models use, so an
+ # authored "2026-07-07T15:40:00" and a model-generated {date, time} pair are held to one contract —
+ # down to the basic spellings and the end-of-day 24:00 form. Splitting rather than calling
+ # datetime.fromisoformat is what makes the time half reachable by that parser at all.
+ match = re.fullmatch(r"(?P<date>\d{4}-\d{2}-\d{2})(?:[Tt ](?P<time>.+))?", value)
+ if not match:
msg = f"Date input '{value}' is not an extended ISO 8601 date or datetime (e.g. '2026-07-07' or '2026-07-07T15:40:00+02:00')."
raise StuffContentFactoryError(msg)
+ time_text = match.group("time")
try:
- return datetime.date.fromisoformat(value), None
- except ValueError:
- pass
- try:
- parsed = datetime.datetime.fromisoformat(value)
+ the_date = parse_iso_date(match.group("date"))
+ the_time = parse_iso_time(time_text) if time_text is not None else None
except ValueError as exc:
- msg = f"Date input '{value}' is not an ISO 8601 date or datetime (e.g. '2026-07-07' or '2026-07-07T15:40:00+02:00')."
+ msg = f"Date input '{value}' is not an extended ISO 8601 date or datetime (e.g. '2026-07-07' or '2026-07-07T15:40:00+02:00'): {exc}"
raise StuffContentFactoryError(msg) from exc
- return parsed.date(), parsed.timetz()
+ return the_date, the_time
@classmethod
def _make_time_content(cls, time_subclass: type[TimeContent], *, value: datetime.time | str) -> TimeContent:
"""Build a TimeContent (or refining subclass) from a time object or a strict ISO time string."""
if isinstance(value, datetime.time):
return time_subclass(time=value)
- # Require the extended HH:MM[:SS] form (optionally with fractional seconds and a UTC offset).
- # time.fromisoformat (3.11+) also accepts the basic "HHMMSS" form, which would let an all-digit
- # string slip past TimeContent's own no-number guard — pin extended-only, mirroring Date.
- if not re.fullmatch(r"\d{2}:\d{2}(:\d{2}(\.\d+)?)?([Zz]|[+-]\d{2}(:?\d{2})?)?", value.strip()):
- msg = f"Time input '{value}' is not an extended ISO 8601 time of day (e.g. '15:40:00' or '15:40:00+02:00')."
- raise StuffContentFactoryError(msg)
+ # Delegate to the parser the content models use, so an authored time and a model-generated one
+ # are held to the same extended-ISO contract (and both reject the end-of-day 24:00 form, which
+ # Python 3.14 would otherwise read as this day's midnight rather than the next day's).
try:
- parsed = datetime.time.fromisoformat(value.strip())
+ parsed = parse_iso_time(value)
except ValueError as exc:
- msg = f"Time input '{value}' is not an ISO 8601 time of day (e.g. '15:40:00' or '15:40:00+02:00')."
+ msg = f"Time input '{value}' is not an extended ISO 8601 time of day (e.g. '15:40:00' or '15:40:00+02:00'): {exc}"
raise StuffContentFactoryError(msg) from exc
return time_subclass(time=parsed)
diff --git a/pipelex/core/stuffs/time_content.py b/pipelex/core/stuffs/time_content.py
index df1e6be29..fde6ffcdd 100644
--- a/pipelex/core/stuffs/time_content.py
+++ b/pipelex/core/stuffs/time_content.py
@@ -6,8 +6,10 @@ from pydantic import Field, field_validator
from rich.json import JSON
from typing_extensions import override
+from pipelex.core.stuffs.iso_temporal import parse_iso_time
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.tools.misc.pretty import PrettyPrintable
+from pipelex.tools.misc.string_utils import is_numeric_string
class TimeContent(StuffContent):
@@ -22,16 +24,29 @@ class TimeContent(StuffContent):
@field_validator("time", mode="before")
@classmethod
- def _reject_lax_temporal(cls, value: Any) -> Any:
- # Close pydantic's lax-mode coercion of a bare number into seconds-since-midnight, which
- # would silently produce wrong temporal data — a real ISO time always carries a ':' separator.
- # Raise ValueError so pydantic wraps it into a ValidationError the input/factory path catches.
- if isinstance(value, (int, float)): # bool is an int subclass
+ def _validate_temporal(cls, value: Any) -> Any:
+ # Reject what pydantic would coerce into silently wrong temporal data, then parse the ISO
+ # strings that remain into a real time object. All rejections raise ValueError so pydantic
+ # wraps them into a ValidationError the input/factory path catches.
+ # - a bare number would be coerced by pydantic into seconds-since-midnight. This arm is what
+ # stops that; the numeric-STRING arm beside it is not load-bearing, since the extended-form
+ # pin in the parser below already refuses every all-digit spelling — it only buys the
+ # accurate "no seconds-since-midnight" wording in place of a generic malformed-ISO one.
+ if isinstance(value, (int, float)) or (isinstance(value, str) and is_numeric_string(value)): # bool is an int subclass
msg = "A Time must be an ISO 8601 string or a time object, never a number (no seconds-since-midnight)."
- raise ValueError(msg) # noqa: TRY004 — must be ValueError so pydantic wraps it into a ValidationError
+ raise ValueError(msg)
if isinstance(value, datetime.datetime):
msg = "A Time takes a time of day alone, not a datetime; use Date for a date with a time."
raise ValueError(msg) # noqa: TRY004 — must be ValueError so pydantic wraps it into a ValidationError
+ # Parsing the ISO string here — rather than leaving it to the field's own validation — is what
+ # keeps this model usable under the strict validation instructor applies to every LLM response:
+ # a mode="before" validator forfeits pydantic's strict-JSON acceptance of ISO strings, because
+ # whatever it returns is re-validated as PYTHON input, where strict refuses a `str` outright
+ # (time_type). Returning a real object satisfies strict JSON, strict Python and lax alike.
+ # Non-str values — real time objects, e.g. from `--mock-inputs` — pass through. The parser pins
+ # the extended ISO form, so a model and an author are held to one contract.
+ if isinstance(value, str):
+ return parse_iso_time(value)
return value
@property
diff --git a/pipelex/tools/misc/string_utils.py b/pipelex/tools/misc/string_utils.py
index 9f7399389..e60be6dbe 100644
--- a/pipelex/tools/misc/string_utils.py
+++ b/pipelex/tools/misc/string_utils.py
@@ -19,6 +19,26 @@ def has_text(text: str) -> bool:
return bool(re.search(r"\w", text))
+def is_numeric_string(text: str) -> bool:
+ """Checks if a string is purely a number, in any of the forms ``float()`` accepts.
+
+ Broader than ``str.isdigit()``: it also catches the signed, decimal and exponent forms
+ (``-86400``, ``86400.0``, ``8.64e4``).
+
+ Args:
+ text (str): The string to check.
+
+ Returns:
+ bool: True if the string holds nothing but a number, False otherwise.
+
+ """
+ try:
+ float(text.strip())
+ except ValueError:
+ return False
+ return True
+
+
def is_none_or_has_text(text: str | None) -> bool:
"""Checks if a string is None or contains alphanumeric characters.
diff --git a/subject_grants.toml b/subject_grants.toml
index efe0dd944..cdf84a516 100644
--- a/subject_grants.toml
+++ b/subject_grants.toml
@@ -2984,10 +2984,6 @@ rationale = "Verb-object: parses the raw ref string; options stay keyword."
param = "raw"
rationale = "Verb-object: splits the raw ref string; single operand."
-["pipelex/core/stuffs/date_content.py::_is_numeric_string"]
-param = "text"
-rationale = "Predicate on the text; single operand."
-
["pipelex/core/stuffs/html_rendering.py::render_value_html"]
param = "value"
rationale = "Verb-object: renders the value; single operand."
@@ -3000,6 +2996,14 @@ rationale = "Verb-object: inspects the container type; context stays keyword."
param = "content_class"
rationale = "Verb-object: scans the content class; context stays keyword."
+["pipelex/core/stuffs/iso_temporal.py::parse_iso_date"]
+param = "text"
+rationale = "parse_iso_date(text) reads as the verb-object sentence it is: one string to parse, no other operand."
+
+["pipelex/core/stuffs/iso_temporal.py::parse_iso_time"]
+param = "text"
+rationale = "parse_iso_time(text) reads as the verb-object sentence it is: one string to parse, no other operand."
+
["pipelex/core/stuffs/list_content.py::ListContent.get_items"]
param = "item_type"
rationale = "Type-directed accessor: the target item type; single operand."
@@ -6488,6 +6492,10 @@ rationale = "Predicate on the text; single operand."
param = "text"
rationale = "Predicate on the text; single operand."
+["pipelex/tools/misc/string_utils.py::is_numeric_string"]
+param = "text"
+rationale = "A one-operand string predicate: is_numeric_string(text) reads as the question it answers, like its has_text/is_snake_case neighbours."
+
["pipelex/tools/misc/string_utils.py::is_pascal_case"]
param = "word"
rationale = "Predicate on the word; single operand."
diff --git a/tests/unit/pipelex/core/stuffs/date_content/test_date_content_strict_mode.py b/tests/unit/pipelex/core/stuffs/date_content/test_date_content_strict_mode.py
new file mode 100644
index 000000000..bfc6e2004
--- /dev/null
+++ b/tests/unit/pipelex/core/stuffs/date_content/test_date_content_strict_mode.py
@@ -0,0 +1,123 @@
+import datetime
+
+import pytest
+from pydantic import BaseModel, ValidationError
+
+from pipelex.core.stuffs.date_content import DateContent
+
+
+class TestDateContentStrictMode:
+ """Structured outputs are validated in strict mode, so a live `PipeLLM` must still land a `Date`.
+
+ Instructor validates every LLM response with `strict=True`, and a `mode="before"` validator
+ forfeits pydantic's strict-JSON acceptance of ISO strings — so the validator must return a real
+ `date`/`time` object. These cases pin the exact live-run failure and both strict flavours.
+ """
+
+ def test_strict_json_date_only(self):
+ """The reported `ListOfDateContent` item shape: a bare ISO calendar date."""
+ content = DateContent.model_validate_json('{"date": "2025-03-12"}', strict=True)
+ assert content.date == datetime.date(2025, 3, 12)
+ assert content.time is None
+
+ def test_strict_json_date_and_time_preserves_offset(self):
+ """The reported single-`Date` failure: both fields at once, offset kept as stated."""
+ content = DateContent.model_validate_json('{"date": "2025-03-12", "time": "14:00:00+00:00"}', strict=True)
+ assert content.date == datetime.date(2025, 3, 12)
+ assert content.time is not None
+ assert content.time.utcoffset() == datetime.timedelta(0)
+ assert content.rendered_plain() == "2025-03-12T14:00:00+00:00"
+
+ def test_strict_python_mode(self):
+ """Instructor modes that validate an already-parsed dict go through strict Python validation."""
+ content = DateContent.model_validate({"date": "2025-03-12", "time": "14:00:00"}, strict=True)
+ assert content.date == datetime.date(2025, 3, 12)
+ assert content.time == datetime.time(14, 0)
+
+ def test_strict_json_list_wrapper(self):
+ """The reported case was the generated `ListOf...` wrapper, whose items validate the same way."""
+
+ class ListOfDateContent(BaseModel):
+ items: list[DateContent]
+
+ wrapper = ListOfDateContent.model_validate_json('{"items": [{"date": "2025-03-12"}, {"date": "2025-03-14"}]}', strict=True)
+ assert [item.date for item in wrapper.items] == [datetime.date(2025, 3, 12), datetime.date(2025, 3, 14)]
+
+ def test_strict_accepts_real_objects(self):
+ """The `--mock-inputs` path supplies real objects; they must pass through untouched."""
+ content = DateContent.model_validate({"date": datetime.date(2026, 7, 7), "time": datetime.time(15, 40)}, strict=True)
+ assert content.date == datetime.date(2026, 7, 7)
+ assert content.time == datetime.time(15, 40)
+
+ @pytest.mark.parametrize(
+ "payload",
+ [
+ {"date": 86400},
+ {"date": "86400"},
+ {"date": "8.64e4"},
+ {"date": "20250312"}, # epoch-lookalike: `fromisoformat` would accept it, the epoch guard must not
+ {"date": "2026-07-07", "time": 3600},
+ {"date": "2026-07-07", "time": "3600"},
+ ],
+ )
+ def test_epoch_rejections_hold_in_both_modes(self, payload: dict[str, object]):
+ """The guard must fire under strict validation exactly as it does under lax.
+
+ The message is asserted because it is the numeric-string arm's whole remaining purpose: the
+ extended-form pin would reject these anyway, so what the guard buys is naming the mistake
+ (an epoch count) instead of reporting a generic malformed-ISO string.
+ """
+ with pytest.raises(ValidationError, match="never a number"):
+ DateContent.model_validate(payload)
+ with pytest.raises(ValidationError, match="never a number"):
+ DateContent.model_validate(payload, strict=True)
+
+ @pytest.mark.parametrize(
+ "payload",
+ [
+ {"date": datetime.datetime(2026, 7, 7, 15, 40)},
+ {"date": "2026-07-07", "time": datetime.datetime(2026, 7, 7, 15, 40)},
+ ],
+ )
+ def test_datetime_rejection_names_both_fields(self, payload: dict[str, object]):
+ """A datetime would be truncated, dropping the time and offset (DT3). The message must fit
+ whichever field it fires on — this validator guards both.
+ """
+ with pytest.raises(ValidationError, match="not a datetime"):
+ DateContent.model_validate(payload)
+ with pytest.raises(ValidationError, match="not a datetime"):
+ DateContent.model_validate(payload, strict=True)
+
+ def test_datetime_shaped_string_on_date_is_rejected(self):
+ """A datetime-shaped string on `date` would silently become a midnight-less calendar date."""
+ with pytest.raises(ValidationError, match="would drop it"):
+ DateContent.model_validate({"date": "2026-07-07T00:00:00"}, strict=True)
+
+ @pytest.mark.parametrize(
+ "payload",
+ [
+ {"date": "2026-W27-2"}, # ISO week-date: a different calendar, silently restated as 2026-07-07
+ {"date": "2026-189"}, # ISO ordinal date, same problem
+ {"date": "2026-07-07", "time": "154000+00:00"}, # basic-format time, escapes the numeric guard via its suffix
+ ],
+ )
+ def test_non_extended_iso_is_rejected(self, payload: dict[str, object]):
+ """A `Date` accepts the extended form only, whatever path it arrives by — matching what
+ `StuffContentFactory` already enforces on authored inputs, so both paths hold one contract.
+ """
+ with pytest.raises(ValidationError, match="extended ISO 8601"):
+ DateContent.model_validate(payload, strict=True)
+
+ @pytest.mark.parametrize("end_of_day", ["24:00", "24:00:00"])
+ def test_end_of_day_24h_time_is_rejected(self, end_of_day: str):
+ """ISO 24:00 names the NEXT day's midnight, so storing it against this `date` would move the
+ value back a day — silently, and only on Python 3.14, which parses it where 3.11-3.13 raise.
+ """
+ with pytest.raises(ValidationError, match="end-of-day"):
+ DateContent.model_validate({"date": "2026-07-07", "time": end_of_day}, strict=True)
+
+ @pytest.mark.parametrize("payload", [{"date": "not-a-date"}, {"date": "2026-07-07", "time": "not-a-time"}])
+ def test_malformed_string_names_the_field(self, payload: dict[str, object]):
+ """A string that is neither epoch-shaped nor ISO must fail with a message naming the expectation."""
+ with pytest.raises(ValidationError, match="ISO 8601"):
+ DateContent.model_validate(payload, strict=True)
diff --git a/tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py b/tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py
index 38fe1b639..bfadcc194 100644
--- a/tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py
+++ b/tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py
@@ -169,6 +169,39 @@ class TestStuffContentFactory:
with pytest.raises(StuffContentFactoryError):
StuffContentFactory.make_content_from_value(stuff_content_subclass=DateContent, value=date_string)
+ @pytest.mark.parametrize(
+ "date_string",
+ [
+ "2026-07-07T154000", # basic time inside a combined datetime — the half `datetime.fromisoformat` used to swallow
+ "2026-07-07T15:40:00+0200", # basic UTC offset
+ "2026-07-07T24:00:00", # end-of-day form: accepted by Python 3.14, rejected by 3.11-3.13
+ " 2026-07-07", # padding is not part of the value
+ ],
+ )
+ def test_make_content_from_value_date_rejects_non_extended_time_half(self, date_string: str):
+ """The time half of an authored datetime is held to the same contract as a model-generated one.
+
+ It reaches `parse_iso_time` only because the string is split first — handing the whole value to
+ `datetime.fromisoformat` is what let the basic and end-of-day spellings through.
+ """
+ with pytest.raises(StuffContentFactoryError):
+ StuffContentFactory.make_content_from_value(stuff_content_subclass=DateContent, value=date_string)
+
+ @pytest.mark.parametrize(
+ ("date_string", "expected_time"),
+ [
+ ("2026-07-07T15:40:00,500", datetime.time(15, 40, 0, 500000)), # ISO's comma fraction separator
+ ("2026-07-07T15:40:00+02", datetime.time(15, 40, tzinfo=datetime.timezone(datetime.timedelta(hours=2)))), # hour-only offset
+ ("2026-07-07T15:40:00Z", datetime.time(15, 40, tzinfo=datetime.UTC)),
+ ],
+ )
+ def test_make_content_from_value_date_accepts_extended_iso_variants(self, date_string: str, expected_time: datetime.time):
+ """Every spelling ISO 8601 calls extended stays accepted — the pin narrows to basic forms, not to these."""
+ content = StuffContentFactory.make_content_from_value(stuff_content_subclass=DateContent, value=date_string)
+ assert isinstance(content, DateContent)
+ assert content.date == datetime.date(2026, 7, 7)
+ assert content.time == expected_time
+
def test_make_stuffcontent_from_concept_code_required_text_content(self):
"""Test required method with native.Text concept (should work)."""
result = StuffContentFactory.make_stuff_content_from_concept_required(
diff --git a/tests/unit/pipelex/core/stuffs/time_content/test_time_content_strict_mode.py b/tests/unit/pipelex/core/stuffs/time_content/test_time_content_strict_mode.py
new file mode 100644
index 000000000..44e3b1319
--- /dev/null
+++ b/tests/unit/pipelex/core/stuffs/time_content/test_time_content_strict_mode.py
@@ -0,0 +1,117 @@
+import datetime
+
+import pytest
+from pydantic import BaseModel, ValidationError
+
+from pipelex.core.stuffs.time_content import TimeContent
+
+
+class TestTimeContentStrictMode:
+ """Structured outputs are validated in strict mode, so a live `PipeLLM` must still land a `Time`.
+
+ Instructor validates every LLM response with `strict=True`, and a `mode="before"` validator
+ forfeits pydantic's strict-JSON acceptance of ISO strings — so the validator must return a real
+ `time` object. These cases pin the exact live-run failure and both strict flavours.
+ """
+
+ def test_strict_json_preserves_offset(self):
+ """The reported failure: `'14:00:00+00:00'` refused with `time_type` under strict JSON."""
+ content = TimeContent.model_validate_json('{"time": "14:00:00+00:00"}', strict=True)
+ assert content.time.utcoffset() == datetime.timedelta(0)
+ assert content.rendered_plain() == "14:00:00+00:00"
+
+ @pytest.mark.parametrize(
+ ("iso_time", "expected"),
+ [
+ ("14:00:00Z", datetime.time(14, 0, tzinfo=datetime.UTC)),
+ ("14:00:00z", datetime.time(14, 0, tzinfo=datetime.UTC)), # RFC 3339 calls the two spellings equivalent
+ ("15:40:00.500", datetime.time(15, 40, 0, 500000)),
+ ("15:40:00,500", datetime.time(15, 40, 0, 500000)), # ISO's other fraction separator
+ ("15:40:00+02:00", datetime.time(15, 40, tzinfo=datetime.timezone(datetime.timedelta(hours=2)))),
+ ("15:40:00+02", datetime.time(15, 40, tzinfo=datetime.timezone(datetime.timedelta(hours=2)))), # hour-only offset
+ ("15:40", datetime.time(15, 40)),
+ ],
+ )
+ def test_strict_json_iso_variants(self, iso_time: str, expected: datetime.time):
+ """`Z` suffix, fractional seconds and offsets are all shapes a model legitimately answers."""
+ content = TimeContent.model_validate_json(f'{{"time": "{iso_time}"}}', strict=True)
+ assert content.time == expected
+
+ def test_strict_python_mode(self):
+ """Instructor modes that validate an already-parsed dict go through strict Python validation."""
+ content = TimeContent.model_validate({"time": "14:00:00"}, strict=True)
+ assert content.time == datetime.time(14, 0)
+
+ def test_strict_json_list_wrapper(self):
+ """The generated `ListOf...` wrapper validates its items the same way."""
+
+ class ListOfTimeContent(BaseModel):
+ items: list[TimeContent]
+
+ wrapper = ListOfTimeContent.model_validate_json('{"items": [{"time": "09:00:00"}, {"time": "14:00:00+00:00"}]}', strict=True)
+ assert [item.time.hour for item in wrapper.items] == [9, 14]
+
+ def test_strict_accepts_real_objects(self):
+ """The `--mock-inputs` path supplies real objects; they must pass through untouched."""
+ content = TimeContent.model_validate({"time": datetime.time(15, 40)}, strict=True)
+ assert content.time == datetime.time(15, 40)
+
+ @pytest.mark.parametrize(
+ "payload",
+ [
+ {"time": 56400},
+ {"time": "56400"},
+ {"time": "5.64e4"},
+ ],
+ )
+ def test_rejections_hold_in_both_modes(self, payload: dict[str, object]):
+ """Every guard must fire under strict validation exactly as it does under lax.
+
+ The message is asserted because it is the numeric guard's whole remaining purpose: the
+ extended-form pin would reject these anyway, so what the guard buys is naming the mistake
+ (an epoch count) instead of reporting a generic malformed-ISO string.
+ """
+ with pytest.raises(ValidationError, match="never a number"):
+ TimeContent.model_validate(payload)
+ with pytest.raises(ValidationError, match="never a number"):
+ TimeContent.model_validate(payload, strict=True)
+
+ def test_datetime_is_rejected_in_both_modes(self):
+ """A datetime carries a date — that belongs to Date, and the message must say so."""
+ payload = {"time": datetime.datetime(2026, 7, 10, 15, 40)}
+ with pytest.raises(ValidationError, match="not a datetime"):
+ TimeContent.model_validate(payload)
+ with pytest.raises(ValidationError, match="not a datetime"):
+ TimeContent.model_validate(payload, strict=True)
+
+ @pytest.mark.parametrize("end_of_day", ["24:00", "24:00:00", "24:00:00+02:00"])
+ def test_end_of_day_24h_is_rejected(self, end_of_day: str):
+ """ISO 24:00 names the NEXT day's midnight — a time of day alone cannot carry that.
+
+ It must be rejected explicitly rather than left to the parser: Python 3.14 silently returns
+ 00:00 for it (3.11-3.13 raise), which would move the value back a full day on part of the
+ supported interpreter range.
+ """
+ with pytest.raises(ValidationError, match="end-of-day"):
+ TimeContent.model_validate({"time": end_of_day}, strict=True)
+
+ @pytest.mark.parametrize("out_of_range_offset", ["15:40:00+02:60", "15:40:00-02:99"])
+ def test_out_of_range_offset_minutes_are_rejected(self, out_of_range_offset: str):
+ """Offset components are summed into a timedelta, so nothing downstream range-checks the minutes:
+ `+02:60` would arrive as a silent `+03:00`, a stated offset turned into a different one.
+ """
+ with pytest.raises(ValidationError, match="extended ISO 8601"):
+ TimeContent.model_validate({"time": out_of_range_offset}, strict=True)
+
+ @pytest.mark.parametrize("basic_form", ["154000+00:00", "1540Z", "154000.5+02:00", "15:40:00+0200", " 15:40:00"])
+ def test_basic_format_is_rejected(self, basic_form: str):
+ """A `Time` accepts the extended form only, whatever path it arrives by — a compact string
+ carrying a suffix escapes the numeric guard, so the shape pin is what refuses it.
+ """
+ with pytest.raises(ValidationError, match="extended ISO 8601"):
+ TimeContent.model_validate({"time": basic_form}, strict=True)
+
+ def test_malformed_string_names_the_expectation(self):
+ """A string that is neither epoch-shaped nor ISO must fail with a message naming the expectation."""
+ with pytest.raises(ValidationError, match="ISO 8601"):
+ TimeContent.model_validate({"time": "not-a-time"}, strict=True)
diff --git a/wip/native-date-time/README.md b/wip/native-date-time/README.md
new file mode 100644
index 000000000..713c54b3b
--- /dev/null
+++ b/wip/native-date-time/README.md
@@ -0,0 +1,18 @@
+# `Date` / `Time` natives — live-run fix
+
+Tracks the work behind [PR #1089](https://github.com/Pipelex/pipelex/pull/1089) (`fix/Native-date-time`): the temporal natives could not be produced by a live `PipeLLM`, because instructor validates structured output in strict mode and a `mode="before"` validator forfeits pydantic's strict-JSON acceptance of ISO strings.
+
+**Status:** shipped in the PR, open against `dev`. All CI green, all review threads resolved.
+
+| File | What it is |
+| --- | --- |
+| `what-we-built.html` | The write-up for co-developers — root cause, the fix, what the review uncovered, and what breaks for authors. Start here. |
+| `bug-report.md` | The original report, filed from `mthds-ui` while adding native-concept fixture coverage. |
+| `plan-and-review-log.md` | The working plan (was `TODOS.md` at the repo root) plus the decision record: every accept and decline across six bot rounds and the final independent review, with the reasoning. |
+| `doc-sweep-deferred.md` | Two cross-repo doc items deliberately left out of the PR, both release-gated. |
+
+## Still open
+
+- `mthds-ui` (`feature/Native-concepts_stories`): `make fixtures-live ONLY=pipeline_32` replaces the placeholder LIVE fixture with real data — the end-to-end regression check. Gated on a released pipelex carrying the fix.
+- Optional pre-release sanity check: run a gateway `PipeLLM` with `output = "Time"` / `Date[]` against the production path.
+- The two items in `doc-sweep-deferred.md`.
diff --git a/wip/native-date-time/bug-report.md b/wip/native-date-time/bug-report.md
new file mode 100644
index 000000000..cf1ebc23e
--- /dev/null
+++ b/wip/native-date-time/bug-report.md
@@ -0,0 +1,60 @@
+# `Date` and `Time` cannot be produced by a live `PipeLLM`
+
+## The bug
+
+A `PipeLLM` whose `output` is `Date`, `Date[]`, or `Time` fails every live run with a pydantic validation error. The natives are authorable, validate, and dry-run clean — they only break when a real model answers.
+
+Reproduced on pipelex **0.42.0**, gateway backend, `claude-4.6-sonnet`, deterministic across repeats:
+
+```
+Error generating single object with direct method in pipe 'read_one_time':
+openai inference failed for model 'claude-4.6-sonnet → ...': 1 validation error for TimeContent
+time
+ Input should be a valid time [type=time_type, input_value='14:00:00+00:00', input_type=str]
+```
+
+```
+Error generating list of objects with direct method in pipe 'read_dates':
+... 2 validation errors for ListOfDateContent
+items.0.date
+ Input should be a valid date [type=date_type, input_value='2025-03-12', input_type=str]
+items.1.date
+ Input should be a valid date [type=date_type, input_value='2025-03-14', input_type=str]
+```
+
+A single `Date` fails on **both** its fields (`date` and the optional `time`) in one response.
+
+## Scope
+
+| Native output | Live run |
+| ------------- | -------- |
+| `YesNo` | works |
+| `Date` | fails |
+| `Date[]` | fails |
+| `Time` | fails |
+
+`YesNo` is the control: same bundle shape, same model, same path, succeeds. So this is specific to the temporal contents, not to the recently-added natives as a group.
+
+## Why it looks unintended
+
+The model the LLM returns is JSON. A JSON document has no date or time type, so a `datetime.date` field can only ever arrive as a **string** — `"2025-03-12"` is the correct and only possible representation. Rejecting it makes the concept unusable in the one position authors most want it: an LLM reading a date out of text.
+
+`TimeContent._reject_lax_temporal` (`pipelex/core/stuffs/time_content.py:23`) is written to allow exactly that. It rejects numbers (guarding pydantic's seconds-since-midnight coercion) and `datetime` objects, then **returns the value unchanged** — an ISO string is meant to pass and be coerced. `DateContent` carries the same shape, and both fields' `Field(description=...)` explicitly tell the model to answer "in ISO 8601 (e.g. 2026-07-07)".
+
+The `YesNo` control makes this sharper. `YesNoContent.yes_no` declares `strict=True` **explicitly, on the field**, with a comment explaining why — and it survives a live run, because `bool` is a JSON type so a strict bool is satisfiable. `DateContent.date`, `DateContent.time`, and `TimeContent.time` declare no strictness at all, yet fail with strict-mode errors. So in this codebase strictness is opt-in per field where it is meant, and these three fields did not opt in.
+
+The error code is the tell. Pydantic emits `time_parsing` / `date_parsing` when a _lax_-mode coercion fails on a malformed string, and `time_type` / `date_type` when _strict_ mode refuses a string outright. We get `time_type` / `date_type` on well-formed ISO input — so the structured-output path is validating these models in **strict mode**, which bypasses the coercion `_reject_lax_temporal` was written around. The validator's intent and the validation mode disagree.
+
+## Where to look
+
+The failing call is the `direct` structured-output method through the openai-compatible gateway completions path (`ListOfDateContent` is the generated list wrapper). Whatever constructs or validates the response model there is applying strict validation; `StuffContent` itself declares no `model_config`, so the strictness is coming from the inference/structured-output layer rather than the content models.
+
+**The inputs path is fine — checked.** A `Date` supplied through `inputs.json` as `{"date": "2025-03-12"}` validates and runs green, even though it presents the identical JSON string to the identical field. So the two paths disagree: the same value pipelex happily accepts from an author it refuses from a model. That narrows the fault to the structured-output/inference layer and rules out the content models themselves.
+
+## Impact
+
+`Date` and `Time` are pinned MTHDS natives — part of the standard's vocabulary — that currently cannot be produced by the primary operator. Any author who types `output = "Date"` gets a method that validates, dry-runs green, and then fails in production on the first real call. The dry-run/live gap is the worst part: `--mock-inputs` fabricates real `datetime` objects, so nothing upstream of a paid run reveals it.
+
+## Downstream note
+
+Filed from `mthds-ui` while adding native-concept fixture coverage (`data/pipelines/pipeline_32`, branch `feature/Native-concepts_stories`). That bundle is committed with its honest authored shape — `Date[]` and `Time` as `PipeLLM` outputs — and a **placeholder** LIVE fixture, because pipelex cannot produce a real one. When this is fixed, `make fixtures-live ONLY=pipeline_32` in `mthds-ui` replaces the placeholder with real data and is the natural regression check.
diff --git a/wip/native-date-time/doc-sweep-deferred.md b/wip/native-date-time/doc-sweep-deferred.md
new file mode 100644
index 000000000..bb57007f9
--- /dev/null
+++ b/wip/native-date-time/doc-sweep-deferred.md
@@ -0,0 +1,19 @@
+# Deferred: propagate the `Date` / `Time` ISO contract to the docs a model reads
+
+Deferred out of the `fix/Native-date-time` work (PR #1089). Both items are cross-repo and release-gated — neither is a code defect in `pipelex`, and neither blocks that PR.
+
+Background: the fix gave the `Date` and `Time` natives one ISO 8601 contract, owned by `pipelex/core/stuffs/iso_temporal.py` and shared by the content models and `StuffContentFactory`. The natives now accept the **extended** forms only, and refuse the end-of-day `24:00` spelling. See `TODOS.md` in this repo for the full plan and the round-by-round review decisions.
+
+## 1. The authoring guidance still says plain "ISO 8601"
+
+`mthds-plugins/mthds/skills/shared/native-content-types.md` (and its sibling copies in the other plugin targets) describes `Date` and `Time` without mentioning the extended-only rule or the `24:00` refusal.
+
+Why it matters: that file is part of what an LLM is prompted with when authoring or filling these natives, so it is a surface of the same contract the code now pins. A model told only "ISO 8601" can legitimately answer `15:40:00+0200` or `24:00:00` and get a validation error the guidance never warned about. The re-ask loop recovers (workers pass `make_instructor_schema_retrying`, and the error message names the expected shape), so this costs a retry rather than a failed run — which is why it is a sweep, not a fix.
+
+Do it when a released `pipelex` carries the fix, alongside the other release-gated plugin sweeps.
+
+## 2. `pipelex-app`'s date-format note documents a runtime model that is already false
+
+`pipelex-app/src/lib/run-form/date-format.ts` states in its header — explicitly as "measured, not assumed" — that pydantic accepts `"2026-07-06T00:00:00Z"` for `native.Date`'s `date` field. It does not: the datetime-shaped-string guard on `DateContent.date` rejects it, and rejected it before this PR too.
+
+No wire impact, and nothing to fix in behavior: `asCalendarDate` normalizes to a bare `YYYY-MM-DD` before sending, and the app emits no time-of-day values at all. This is a stale comment that predates the branch. Correct it the next time that file is touched.
diff --git a/wip/native-date-time/plan-and-review-log.md b/wip/native-date-time/plan-and-review-log.md
new file mode 100644
index 000000000..e3e4d09ed
--- /dev/null
+++ b/wip/native-date-time/plan-and-review-log.md
@@ -0,0 +1,110 @@
+# Fix: `Date` and `Time` natives cannot be produced by a live `PipeLLM`
+
+> **Archived 2026-08-11 — shipped.** This was the working plan at the repo root (`TODOS.md`) while PR [#1089](https://github.com/Pipelex/pipelex/pull/1089) was built. Kept as the decision record: every accept/decline across six bot rounds and the final independent review is argued here. The reader-facing write-up is `what-we-built.html` in this folder.
+
+Bug report: `bug-report.md` (this folder) — **verified 2026-08-10**, reproduced locally without any LLM call. Branch: `fix/Native-date-time`.
+
+## Root cause (established, do not re-derive)
+
+A live `PipeLLM` with `output = "Date"`, `Date[]`, or `Time` fails pydantic validation on the model's response, while `YesNo` works and the `inputs.json` path accepts the identical strings. Three facts combine:
+
+1. **Instructor validates structured outputs in strict mode by default.** Every instructor `create`/`create_with_completion` signature has `strict: bool = True` (instructor 1.15.1: `instructor/core/patch.py:151`, `instructor/core/client.py`), and pipelex's workers never pass `strict` — see `pipelex/providers/openai/openai_completions_llm_worker.py:223` (`create_with_completion` call) and the sibling workers (anthropic, mistral, google, bedrock, openai_responses). So the response JSON is validated with `strict=True` regardless of mode (`parse_tools`, `parse_anthropic_json`, … in `instructor/processing/function_calls.py` all call `model_validate_json(..., strict=strict)`).
+2. **Strict JSON mode would normally be fine** — pydantic strict *JSON* validation accepts ISO strings for `date`/`time` fields (JSON has no temporal type). Plain `datetime.date` fields in user structures survive strict. This is why only the temporal natives break.
+3. **A `mode="before"` field validator disables that JSON-input string acceptance.** The value returned by the before-validator is re-validated as Python input, where strict rejects `str` with `date_type`/`time_type` (the exact reported error codes). Proven with a minimal pair: `class Plain(BaseModel): date: datetime.date` passes `model_validate_json('{"date":"2025-03-12"}', strict=True); adding a no-op `@field_validator("date", mode="before")` makes the same call fail. The before-validators on `DateContent` and `TimeContent` (named `_reject_lax_temporal` at the time of this diagnosis, `_validate_temporal` since the fix) were the only ones on non-JSON-native fields among the natives (`JSONContent`'s is on a `dict[str, Any]`, immune). `YesNoContent` has no before-validator and `bool` is a JSON type — hence the control passing.
+
+Also verified: field-level `Field(strict=False)` does **not** override the call-level `strict=True` (tested; call-level wins), so there is no one-liner escape.
+
+Repro (no network):
+
+```python
+DateContent.model_validate_json('{"date": "2025-03-12", "time": "14:00:00+00:00"}', strict=True)
+# 2 validation errors: date_type on 'date', time_type on 'time' — identical to the live-run failure
+TimeContent.model_validate_json('{"time": "14:00:00+00:00"}', strict=True) # time_type
+DateContent.model_validate({"date": "2025-03-12"}) # lax: passes (the inputs.json path)
+```
+
+## Chosen fix — make the temporal natives validation-mode-proof (model-side, surgical)
+
+Have the before-validators **finish the job**: after the existing rejection guards, parse a `str` into the real `datetime.date`/`datetime.time` via `fromisoformat`, so the inner validation always receives an already-correct Python object and passes under strict Python, strict JSON, and lax alike. Verified experimentally: strict JSON, strict Python, lax, object passthrough, UTC-offset preservation (`14:00:00+00:00` → `tzinfo=UTC`), and `Z` suffix all work.
+
+Explicitly rejected alternative: passing `strict=False` to instructor in every worker. Blast radius spans all providers and all user structures (would re-open the silent lax coercions on LLM outputs that strict currently blocks, and weaken instructor's re-ask signal). The natives fix is the smallest correct surface; strict stays the inference-path policy.
+
+Guard-ordering constraint (matters, keep tested): the numeric-string epoch guard must run **before** parsing — `datetime.date.fromisoformat` happily accepts basic-format `"20250312"`, which the DT6 guard must keep rejecting as an epoch-looking number.
+
+## Tasks
+
+- [x] Verify the bug report (done — see root cause above)
+- [x] **`pipelex/core/stuffs/date_content.py`** — in `_reject_lax_temporal`, after the existing guards (datetime object, int/float/numeric-string epoch, datetime-shaped string on `date`), parse remaining `str` values: `datetime.date.fromisoformat` for `date`, `datetime.time.fromisoformat` for `time`. Wrap the `fromisoformat` `ValueError` in a clear message naming the field and the ISO 8601 expectation (must stay `ValueError` so pydantic wraps it into a `ValidationError`). Non-str values (real `date`/`time` objects, e.g. from `--mock-inputs`) pass through unchanged. Rename the validator (`_validate_temporal` or similar) — it no longer only rejects — and update its comment to state the second purpose: returning a real object is what keeps the model valid under the strict validation instructor applies to LLM responses (a before-validator forfeits pydantic's strict-JSON ISO-string acceptance).
+- [x] **`pipelex/core/stuffs/time_content.py`** — same change for `TimeContent.time`. Note: `fromisoformat` also closes the numeric-string hole (`"3600"`) that this class's guards never covered (DateContent guarded it, TimeContent didn't — flagged in the report as an asymmetry; decide whether to add the explicit epoch guard for the nicer message, mirroring DateContent).
+- [x] **Tests — red first** (`tests/unit/pipelex/core/stuffs/date_content/`, `.../time_content/`): a strict-mode module simulating the instructor path. Cases:
+ - `DateContent.model_validate_json(..., strict=True)` with date-only and date+time payloads — the exact reported inputs (`"2025-03-12"`, `"14:00:00+00:00"`)
+ - `TimeContent.model_validate_json(..., strict=True)` — offset preserved on `tzinfo` (fidelity), plus `Z` suffix and fractional seconds
+ - strict **Python**-mode (`model_validate(..., strict=True)`) for both — instructor modes that validate parsed dicts
+ - the generated list wrapper (the reported `ListOfDateContent` case): build it via `stuff_content_factory` list-class generation and validate a two-item payload under strict JSON — *shipped differently, see the decision below: that wrapper is built inline in `llm_generate.py`, not by the factory, so the tests mirror that shape*
+ - real `date`/`time` objects still accepted under strict (mock-inputs path)
+ - all existing rejections still fire in **both** modes: `86400`, `"86400"`, `"8.64e4"`, `"20250312"` (epoch-lookalike, must NOT be parsed), `datetime` object, `"2026-07-07T00:00:00"` on `date`
+ - malformed string (`"not-a-date"`) → `ValidationError` with the clear message
+- [x] Existing lax-path tests stay green (`test_date_content_serialization.py`, `test_time_content.py`, factory/input-shaper tests)
+- [x] `make agent-check`
+- [x] `make agent-test`
+- [x] **CHANGELOG.md** — `[Unreleased]`, bold-label style: `Date`/`Time` natives failed every live structured-output run (strict-mode validation of the LLM's ISO strings); now parse ISO 8601 in their validators so strict and lax paths agree.
+- [x] **Docs** — check `docs/` pages describing the `Date`/`Time` natives for anything stating the accepted forms; update if the parsing behavior is documented. No new page needed.
+
+## Decisions taken while implementing
+
+- **`TimeContent` got the explicit numeric-string guard** (the flagged asymmetry). Not just for the message: `datetime.time.fromisoformat` accepts the basic form, so without the guard `"154000"` would newly parse as `15:40:00` — the DT6 hole the parsing step would otherwise open. Same guard-before-parse ordering as `DateContent`.
+- **The numeric-string predicate moved to `pipelex/tools/misc/string_utils.py`** as `is_numeric_string` (it was private to `date_content.py`), since both temporal natives need it and neither should depend on the other. Its temporal (DT6) rationale stays in the two validators' comments, where it belongs.
+- **The list-wrapper test declares the wrapper inline.** The reported `ListOfDateContent` is built inline in `pipelex/cogt/content_generation/llm_generate.py`, not by `stuff_content_factory` — so the test mirrors that shape (`items: list[DateContent]`) rather than reaching for a factory that does not generate it.
+- **No `docs/` change.** The pages describing `Date`/`Time` (`native-concepts.md`, `provide-inputs.md`) document the ISO 8601 forms accepted and the rendering, both unchanged by the fix — the model-side path simply now honors what they already state.
+- **~~The model layer stays looser than the input layer on exotic ISO forms.~~ Reversed after review** (see below): both layers now share one extended-ISO parser.
+
+## Review round 1 — what the bots found and what was done
+
+Greptile: clean (5/5). Codex: one finding. cubic: four. Verdicts, each verified by probe:
+
+- **`24:00` is silently accepted on Python 3.14 (codex, P2) — REAL, fixed.** `time.fromisoformat("24:00:00")` returns `00:00:00` on 3.14 but raises on 3.11-3.13, and `requires-python` is `>=3.11,<3.15` — so `{"date":"2025-03-12","time":"24:00:00"}` would land as March 12 midnight instead of March 13's, on part of the supported range only. Now rejected explicitly, ahead of the parser, with a message naming the end-of-day meaning. Verified by running the new module under both 3.13 and 3.14: identical behavior.
+- **Basic-format and week/ordinal forms reach the models (cubic, P2/P2/P3) — REAL as a contract split, fixed together.** Not corruption (the parsed values were correct), but `StuffContentFactory` pinned authored inputs to *extended* ISO while the new model path accepted `"2026-W27-2"`, `"2026-189"`, `"154000+00:00"`. One native, two accepted vocabularies. Fixed by extracting `pipelex/core/stuffs/iso_temporal.py` — `parse_iso_date` / `parse_iso_time`, owning the extended pin and the 24:00 rejection — and having the models *and* the factory use it. The factory's duplicated regex is gone, and its `_make_time_content` inherited the 24:00 fix it had the same bug in.
+- **`is_numeric_string` also matches `nan`/`inf`/`1_000` (cubic, P3) — DECLINED.** The observation is true but cosmetic: those inputs are rejected either way, only under the "no epoch-seconds" message rather than the malformed-ISO one, and no model emits them.
+
+ *Corrected in round 3, after cubic rightly challenged the original reasoning.* The first version of this note claimed switching to `int()` would "reopen the exponent/decimal epoch hole" and fail `test_numeric_string_is_rejected`. That was wrong: with the extended-ISO shape pin now sitting in front of the parse, a string `int()` declines falls through to the parser and is rejected there anyway, and the test asserts only that a `ValidationError` is raised. Nothing would be reopened and the suite would stay green. The honest reason to decline is narrower — `is_numeric_string` now only selects *which* rejection message appears, and `int()` would make the accurate "no epoch-seconds" message stop covering the exponent and decimal epoch forms (`8.64e4`, `86400.0`), which is a small step backwards for no gain.
+
+## Review round 2 — the unification was incomplete
+
+Nine findings across greptile, codex and cubic; four of them named one real gap, and the probes settled the rest.
+
+- **The combined authored datetime bypassed the shared parser (codex P2, cubic P2×2, greptile P1) — REAL, fixed.** Round 1 routed `_make_time_content` through `parse_iso_time` but left `_parse_iso_temporal` handing the whole string to `datetime.fromisoformat`, so `"2026-07-07T154000"` was accepted on the authored path while `{"date": "2026-07-07", "time": "154000"}` was refused on the model path — the contract split the round-1 message claimed to have closed. It now splits the string and sends each half to `parse_iso_date` / `parse_iso_time`, which is what makes the time half reachable at all. That also makes the end-of-day form uniform: previously `"2026-07-07T24:00:00"` raised on 3.11-3.13 and parsed on 3.14 (correctly rolling to the 8th, so no corruption — greptile's "same day's midnight" claim was wrong), and it is now rejected everywhere.
+- **The offset pattern still allowed the basic `±hhmm` (greptile P1, cubic P3) — REAL, fixed.** `15:40:00+0200` slipped through the "extended only" pin, inherited from the factory's old regex. Tightened to `Z` / `±hh` / `±hh:mm`; `+02` stays because hour-only *is* an extended spelling.
+- **The comma fraction separator was rejected (codex P2, cubic P2) — REAL, fixed.** ISO 8601 allows `15:40:00,500` and `fromisoformat` parses it; the round-1 regex only allowed `.`, so the pin was narrower than the standard it named. One character.
+- **Whitespace was normalized on one side only (cubic P3) — REAL, fixed.** The parsers stripped their input while the factory validated the raw text, so padding was accepted from a model and refused from an author. The parsers now validate the text as given, and padding is refused on both.
+- **Sub-microsecond precision is truncated (cubic P1) — DECLINED.** True (`15:40:00.1234567` → `…123456`), but `datetime.time` cannot represent more, so the only alternative is failing a live run over precision no source states. Truncating to what the type holds is what every Python consumer does; the natives' fidelity rules are about not fabricating or shifting a value, not about sub-microsecond rounding.
+
+## Review round 3
+
+- **An out-of-range offset minute was silently normalized (codex P2, cubic P2) — REAL, fixed.** `15:40:00+02:60` arrived as `+03:00`: the offset components are summed into a `timedelta`, so nothing range-checks the minutes (the offset *hour* does raise, and the time's own minute/second are checked by `fromisoformat`). A stated offset silently becoming a different one is exactly the fidelity loss this native exists to prevent. Offset minutes are now pinned to `[0-5]\d`.
+- **The round-1 declined-reason was factually wrong (cubic P3) — accepted, note corrected in place.** The decision stands; the reasoning behind it did not survive scrutiny. See the corrected bullet above.
+
+## Review round 4
+
+- **The pattern admitted a lower-case `z` the parser refused (codex P2, cubic P3) — REAL, fixed by honoring the pattern.** `[Zz]` matched `15:40:00z`, but `time.fromisoformat` takes only the upper-case designator, so the value fell through to the generic "not a valid ISO 8601" message. The two bots proposed opposite remedies — normalize it, or drop `z` from the pattern. Chose to admit it: pydantic accepted `z` before this parser existed (verified), so dropping it would regress the live LLM path this PR exists to unblock, and RFC 3339 states the two spellings name the same offset. Case-folding a designator is not normalizing the value the way trimming padding would be, so it does not contradict the round-2 decision to validate the text as given.
+
+## Final independent review (gstack `/review`, no inherited context)
+
+Verdict: ship with nits. No correctness hole; the parser's home and shape were judged right, and the tests were confirmed real by mutation (removing the parse call and flipping the `24:00` sentinel turned both strict-mode modules red). Everything it raised is applied:
+
+- **The "guard must stay AHEAD of the parsing" comments were stale.** The extended-form pin rejects `"20250312"` / `"154000"` before `fromisoformat` is ever reached, so the ordering is correct but no longer load-bearing — and `iso_temporal.py`'s header credited the numeric guard for catches the pin actually makes, while the validators credited the pin's catches to the guard. Both now say what each mechanism does. The numeric guard's `int`/`float` arm **is** load-bearing (pydantic coerces `86400`); only its string arm is message-only.
+- **That message-only arm was untested**, so it could have been deleted with the suite still green. Its wording is now pinned, which is the only thing that justifies keeping it.
+- **`_make_time_content` swallowed the parser's specific message** where its `Date` sibling appended it, so a `Time` author got a generic shape hint instead of "24:00 names the next day's midnight". Now consistent.
+- **The CHANGELOG entry did not carry `(Breaking)`** although authored inputs genuinely got stricter (`"15:40:00+0200"`, `"2026-07-07T154000"`, `"24:00:00"`, padding). Marked, with the refused forms named.
+- **Pre-existing:** the datetime guard fires for both fields but its message named only `date`. Reworded to fit either field.
+- **Deferred to `doc-sweep-deferred.md` (this folder):** the plugin authoring guidance an LLM reads still says plain "ISO 8601" (cross-repo, release-gated, costs a re-ask not a failure), and a stale `pipelex-app` comment that has no wire impact.
+
+## Follow-ups (out of this repo, after release)
+
+- [ ] `mthds-ui` (branch `feature/Native-concepts_stories`): `make fixtures-live ONLY=pipeline_32` to replace the placeholder LIVE fixture with real data — the natural end-to-end regression check named in the bug report. Gated on a released pipelex version carrying this fix.
+- [ ] Optional live sanity check before release: run a gateway `PipeLLM` with `output = "Time"` / `Date[]` (the repro in the report) to confirm the production path.
+
+## Cold-start pointers
+
+- Failing call chain: `PipeLLM._run_operator_pipe` → `run_llm_object` (`pipelex/pipe_operators/llm/pipe_llm.py`) → worker `_gen_object` → instructor `create_with_completion(response_model=schema, ...)` → `function_calls.py` parse → `model_validate_json(..., strict=True)`.
+- Gateway model config is fetched remotely (`pipelex/kit/configs/inference/backends/pipelex_gateway.toml` only allows `sdk`/`structure_method` overrides); the failing run used the openai-compatible gateway completions path, but the fix is mode-agnostic and provider-agnostic.
+- Instructor pin: 1.15.1 (`.venv/lib/python3.13/site-packages/instructor/`).
diff --git a/wip/native-date-time/what-we-built.html b/wip/native-date-time/what-we-built.html
new file mode 100644
index 000000000..6200a8548
--- /dev/null
+++ b/wip/native-date-time/what-we-built.html
@@ -0,0 +1,498 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Date &amp; Time natives: one ISO 8601 contract</title>
+<style>
+ :root {
+ --bg: #fbfbfa;
+ --surface: #ffffff;
+ --surface-2: #f4f4f2;
+ --ink: #1a1a18;
+ --ink-soft: #55554f;
+ --ink-faint: #85857c;
+ --rule: #e2e2dc;
+ --accent: #9a3412;
+ --accent-soft: #fdf0e8;
+ --bad: #b42318;
+ --bad-soft: #fdf1f0;
+ --good: #2b6a45;
+ --good-soft: #edf6f0;
+ --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
+ --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
+ }
+ @media (prefers-color-scheme: dark) {
+ :root {
+ --bg: #16171a;
+ --surface: #1d1f23;
+ --surface-2: #24262b;
+ --ink: #e9e9e4;
+ --ink-soft: #b3b3ab;
+ --ink-faint: #85857c;
+ --rule: #33363c;
+ --accent: #f0a072;
+ --accent-soft: #2c2018;
+ --bad: #f0837a;
+ --bad-soft: #2d1c1b;
+ --good: #7cc59b;
+ --good-soft: #172a20;
+ }
+ }
+ * { box-sizing: border-box; }
+ body {
+ margin: 0;
+ background: var(--bg);
+ color: var(--ink);
+ font-family: var(--sans);
+ font-size: 16px;
+ line-height: 1.62;
+ -webkit-text-size-adjust: 100%;
+ }
+ .wrap { max-width: 60rem; margin: 0 auto; padding: 3rem 1.25rem 6rem; }
+ header.masthead { border-bottom: 2px solid var(--ink); padding-bottom: 1.25rem; margin-bottom: 2.5rem; }
+ .eyebrow {
+ font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
+ color: var(--accent); margin: 0 0 .6rem;
+ }
+ h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; margin: 0 0 .7rem; letter-spacing: -.02em; }
+ .standfirst { font-size: 1.08rem; color: var(--ink-soft); margin: 0; max-width: 46rem; }
+ .meta { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
+ h2 {
+ font-size: 1.32rem; margin: 3.2rem 0 1rem; letter-spacing: -.01em;
+ padding-top: 1.2rem; border-top: 1px solid var(--rule);
+ }
+ h3 { font-size: 1.02rem; margin: 2rem 0 .6rem; }
+ p { margin: 0 0 1rem; }
+ a { color: var(--accent); text-underline-offset: .18em; }
+ code {
+ font-family: var(--mono); font-size: .875em;
+ background: var(--surface-2); padding: .1em .34em; border-radius: 3px;
+ }
+ pre {
+ font-family: var(--mono); font-size: .8rem; line-height: 1.55;
+ background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
+ padding: 1rem; overflow-x: auto; margin: 0 0 1.2rem;
+ }
+ pre code { background: none; padding: 0; font-size: inherit; }
+ .add { color: var(--good); }
+ .del { color: var(--bad); }
+ .dim { color: var(--ink-faint); }
+ .tldr {
+ background: var(--accent-soft); border: 1px solid var(--accent);
+ border-radius: 8px; padding: 1.4rem 1.5rem; margin: 0 0 2rem;
+ }
+ .tldr h2 { margin: 0 0 .7rem; border: none; padding: 0; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
+ .tldr ul { margin: 0; padding-left: 1.15rem; }
+ .tldr li { margin-bottom: .55rem; }
+ .tldr li:last-child { margin-bottom: 0; }
+ figure { margin: 1.6rem 0 2rem; }
+ figure svg { width: 100%; height: auto; display: block; }
+ figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .7rem; padding-left: .2rem; border-left: 2px solid var(--rule); padding-left: .8rem; }
+ .scroll { overflow-x: auto; }
+ table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-bottom: 1.2rem; min-width: 34rem; }
+ th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
+ th { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
+ tbody tr:last-child td { border-bottom: none; }
+ details {
+ border: 1px solid var(--rule); border-radius: 6px; padding: .1rem 1rem;
+ margin-bottom: .8rem; background: var(--surface);
+ }
+ details[open] { padding-bottom: .8rem; }
+ summary { cursor: pointer; padding: .75rem 0; font-weight: 600; font-size: .95rem; }
+ summary::marker { color: var(--accent); }
+ .tabs { margin: 1.5rem 0 2rem; }
+ .tabs input { position: absolute; opacity: 0; pointer-events: none; }
+ .tabbar { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--rule); }
+ .tabbar label {
+ font-family: var(--mono); font-size: .78rem; padding: .5rem .85rem; cursor: pointer;
+ color: var(--ink-faint); border: 1px solid transparent; border-bottom: none;
+ border-radius: 5px 5px 0 0; margin-bottom: -1px;
+ }
+ .tabbar label:hover { color: var(--ink); }
+ .panel { display: none; padding-top: 1.2rem; }
+ #t1:checked ~ .tabbar label[for="t1"],
+ #t2:checked ~ .tabbar label[for="t2"],
+ #t3:checked ~ .tabbar label[for="t3"] {
+ color: var(--ink); background: var(--surface); border-color: var(--rule); font-weight: 600;
+ }
+ #t1:checked ~ .panels .p1,
+ #t2:checked ~ .panels .p2,
+ #t3:checked ~ .panels .p3 { display: block; }
+ .callout {
+ border-left: 3px solid var(--accent); background: var(--surface);
+ padding: .9rem 1.1rem; margin: 1.4rem 0; font-size: .95rem;
+ }
+ .callout.warn { border-left-color: var(--bad); }
+ .callout strong { color: var(--accent); }
+ .callout.warn strong { color: var(--bad); }
+ .pill {
+ display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em;
+ text-transform: uppercase; padding: .15em .5em; border-radius: 3px; vertical-align: .1em;
+ }
+ .pill.bad { background: var(--bad-soft); color: var(--bad); }
+ .pill.good { background: var(--good-soft); color: var(--good); }
+ ul.tight li { margin-bottom: .4rem; }
+ .linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; margin: 1.2rem 0; }
+ .linkcard { border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; background: var(--surface); }
+ .linkcard .k { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); display: block; margin-bottom: .3rem; }
+ .linkcard .d { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
+ footer { margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-faint); }
+</style>
+</head>
+<body>
+<div class="wrap">
+
+<header class="masthead">
+ <p class="eyebrow">Pipelex · core / stuffs</p>
+ <h1><code style="font-size:.82em;background:none;padding:0">Date</code> and <code style="font-size:.82em;background:none;padding:0">Time</code> natives: one ISO 8601 contract</h1>
+ <p class="standfirst">Two pinned MTHDS natives could not be produced by the primary operator. They validated, they dry-ran green, and then they failed on every paid call. Here is what broke, why it hid so well, and what we changed.</p>
+ <div class="meta">
+ <span>PR #1089 → <code>dev</code></span>
+ <span>branch <code>fix/Native-date-time</code></span>
+ <span>~430 lines, 8 files</span>
+ </div>
+</header>
+
+<div class="tldr">
+ <h2>TL;DR</h2>
+ <ul>
+ <li><strong>A <code>PipeLLM</code> with <code>output = "Date"</code>, <code>Date[]</code> or <code>"Time"</code> failed 100% of live runs.</strong> The model answered <code>"2025-03-12"</code> — the only thing JSON can carry — and pydantic refused it with <code>date_type</code>.</li>
+ <li><strong>Cause: a <code>mode="before"</code> validator silently forfeits pydantic's strict-JSON acceptance of ISO strings.</strong> Instructor validates every structured response with <code>strict=True</code>; whatever a before-validator returns is re-validated as <em>Python</em> input, where a <code>str</code> is refused outright. <code>YesNo</code> survived only because <code>bool</code> is a JSON type.</li>
+ <li><strong>Fix: the validators now parse the ISO string themselves</strong> and return a real <code>date</code>/<code>time</code>, so strict-JSON, strict-Python and lax all agree.</li>
+ <li><strong>Then the review found the natives had two contracts</strong> — authored inputs were pinned to extended ISO, model output was not. A new <code>iso_temporal.py</code> now owns what these natives accept, and both paths parse through it.</li>
+ <li><strong>Three silent-corruption bugs fell out of that unification</strong>, including one that only appears on Python 3.14: <code>"24:00:00"</code> parsed as <em>this</em> day's midnight instead of the next day's.</li>
+ <li><span class="pill bad">Breaking</span> Non-extended spellings authors could previously write (<code>"15:40:00+0200"</code>, <code>"2026-07-07T154000"</code>, <code>"24:00:00"</code>, padded strings) are now refused.</li>
+ </ul>
+</div>
+
+<h2>1. The symptom</h2>
+
+<p>Reported from <code>mthds-ui</code> while adding native-concept fixture coverage. Deterministic, on every repeat, on the gateway backend:</p>
+
+<pre><code>Error generating single object with direct method in pipe 'read_one_time':
+ 1 validation error for TimeContent
+ time
+ Input should be a valid time [type=time_type, input_value='14:00:00+00:00', input_type=str]
+
+Error generating list of objects with direct method in pipe 'read_dates':
+ 2 validation errors for ListOfDateContent
+ items.0.date
+ Input should be a valid date [type=date_type, input_value='2025-03-12', input_type=str]</code></pre>
+
+<p>Two things made this worth a careful look rather than a quick patch.</p>
+
+<p><strong>The input was correct.</strong> A JSON document has no date type, so <code>"2025-03-12"</code> is the only representation a model <em>can</em> produce — and the field's own description tells it to answer exactly that. <strong>And the same string worked from <code>inputs.json</code>.</strong> Identical value, identical field, opposite outcome depending on which door it came through.</p>
+
+<p>The error code was the tell. Pydantic emits <code>date_parsing</code> when a lax coercion fails on a malformed string, and <code>date_type</code> when <em>strict</em> mode refuses a string outright. We were getting <code>date_type</code> on well-formed input, so something upstream was validating in strict mode.</p>
+
+<div class="callout">
+ <strong>Why nothing caught it.</strong> <code>--mock-inputs</code> fabricates real <code>datetime</code> objects, which sail past the broken path. So the method validated, dry-ran green, and failed on the first real call — the dry-run/live gap at its worst.
+</div>
+
+<h2>2. Root cause</h2>
+
+<p>Three facts had to line up.</p>
+
+<ol>
+ <li><strong>Instructor validates structured outputs strictly.</strong> Every <code>create</code>/<code>create_with_completion</code> signature defaults to <code>strict: bool = True</code>, and our workers never pass <code>strict</code> — so every provider's response is validated with <code>model_validate_json(..., strict=True)</code>.</li>
+ <li><strong>Strict <em>JSON</em> mode would have been fine.</strong> Pydantic knowingly accepts ISO strings for <code>date</code>/<code>time</code> fields when the input is JSON, precisely because JSON has no temporal type. Plain <code>datetime.date</code> fields in user structures survive strict validation for this reason.</li>
+ <li><strong>A <code>mode="before"</code> validator destroys that acceptance.</strong> Its return value is re-validated as <em>Python</em> input — where strict refuses a <code>str</code>. The two temporal natives were the only ones carrying a before-validator on a non-JSON-native field.</li>
+</ol>
+
+<figure>
+<svg viewBox="0 0 860 340" role="img" aria-label="Two lanes showing how a before-validator turns strict-JSON validation into strict-Python validation">
+ <defs>
+ <marker id="ar" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
+ <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
+ </marker>
+ </defs>
+ <g font-family="ui-monospace, Menlo, monospace" font-size="12.5" color="currentColor">
+
+ <text x="0" y="16" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#2b6a45">WITHOUT A BEFORE-VALIDATOR — e.g. YesNo, or a plain date field</text>
+ <rect x="0" y="30" width="150" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="75" y="50" text-anchor="middle" fill="currentColor">JSON from LLM</text>
+ <text x="75" y="66" text-anchor="middle" fill="currentColor" opacity=".65">"2025-03-12"</text>
+ <line x1="152" y1="53" x2="222" y2="53" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
+ <rect x="226" y="30" width="200" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="326" y="50" text-anchor="middle" fill="currentColor">strict JSON validation</text>
+ <text x="326" y="66" text-anchor="middle" fill="currentColor" opacity=".65">input is still JSON</text>
+ <line x1="428" y1="53" x2="498" y2="53" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
+ <rect x="502" y="30" width="290" height="46" rx="5" fill="#edf6f0" stroke="#2b6a45" stroke-width="1.4"/>
+ <text x="647" y="50" text-anchor="middle" fill="#2b6a45" font-weight="700">accepted → date(2025, 3, 12)</text>
+ <text x="647" y="66" text-anchor="middle" fill="#2b6a45" opacity=".8">JSON has no date type, so ISO is allowed</text>
+
+ <line x1="0" y1="112" x2="860" y2="112" stroke="currentColor" stroke-width="1" opacity=".18"/>
+
+ <text x="0" y="146" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#b42318">WITH A BEFORE-VALIDATOR — Date and Time, before the fix</text>
+ <rect x="0" y="160" width="150" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="75" y="180" text-anchor="middle" fill="currentColor">JSON from LLM</text>
+ <text x="75" y="196" text-anchor="middle" fill="currentColor" opacity=".65">"2025-03-12"</text>
+ <line x1="152" y1="183" x2="222" y2="183" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
+ <rect x="226" y="160" width="200" height="46" rx="5" fill="none" stroke="#b42318" stroke-width="1.4"/>
+ <text x="326" y="180" text-anchor="middle" fill="#b42318">before-validator</text>
+ <text x="326" y="196" text-anchor="middle" fill="#b42318" opacity=".8">returns the str unchanged</text>
+ <line x1="428" y1="183" x2="498" y2="183" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
+ <rect x="502" y="160" width="290" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="647" y="180" text-anchor="middle" fill="currentColor">re-validated as PYTHON input</text>
+ <text x="647" y="196" text-anchor="middle" fill="currentColor" opacity=".65">the JSON-ness is gone</text>
+ <line x1="647" y1="208" x2="647" y2="242" stroke="#b42318" stroke-width="1.4" marker-end="url(#ar)" color="#b42318"/>
+ <rect x="452" y="246" width="390" height="42" rx="5" fill="#fdf1f0" stroke="#b42318" stroke-width="1.4"/>
+ <text x="647" y="272" text-anchor="middle" fill="#b42318" font-weight="700">refused → date_type: "Input should be a valid date"</text>
+
+ <text x="0" y="316" font-size="12" fill="currentColor" opacity=".7">The validator never rejected the value. It simply moved it into a lane where a string is illegal.</text>
+ </g>
+</svg>
+<figcaption>The before-validator was written to <em>allow</em> ISO strings — it rejected numbers and datetimes, then returned everything else untouched. Returning the value is what killed it.</figcaption>
+</figure>
+
+<p>We verified the mechanism in isolation, with no pipelex involved: a bare <code>class Plain(BaseModel): date: datetime.date</code> passes <code>model_validate_json('{"date":"2025-03-12"}', strict=True)</code>; adding a <strong>no-op</strong> before-validator to the same field makes the identical call fail.</p>
+
+<details>
+<summary>Why we did not just pass <code>strict=False</code> to instructor</summary>
+<p>It was the obvious one-liner and it was the wrong call. The blast radius is every provider and <em>every user structure</em>, not just these two classes — it would re-open the silent lax coercions that strict currently blocks on all LLM output, and weaken instructor's re-ask signal. Strict stays the inference-path policy; the natives were the smallest correct surface.</p>
+<p>We also checked whether field-level <code>Field(strict=False)</code> could opt out locally. It cannot — the call-level <code>strict=True</code> wins.</p>
+</details>
+
+<h2>3. The fix</h2>
+
+<p>Have the before-validators finish the job: after the existing guards, parse the string into a real object, so the inner validation always receives something already correct. That satisfies strict-JSON, strict-Python and lax alike.</p>
+
+<pre><code> @field_validator("time", mode="before")
+ @classmethod
+<span class="del">- def _reject_lax_temporal(cls, value: Any) -> Any:</span>
+<span class="add">+ def _validate_temporal(cls, value: Any) -> Any:</span>
+ ...guards: no bare number, no datetime...
+<span class="add">+ # Returning a real object is what keeps this model valid under the strict validation</span>
+<span class="add">+ # instructor applies to every LLM response. Non-str values — real time objects, e.g.</span>
+<span class="add">+ # from `--mock-inputs` — pass through.</span>
+<span class="add">+ if isinstance(value, str):</span>
+<span class="add">+ return parse_iso_time(value)</span>
+ return value</code></pre>
+
+<p>That is the whole behavioural fix: about ten lines across the two validators. Everything below is what the review turned up once we started looking.</p>
+
+<h2>4. One contract, not two</h2>
+
+<p>The first review round asked a sharp question: the model path now parses ISO strings — <em>which</em> ISO strings? Because <code>StuffContentFactory</code>, which handles authored inputs, had already pinned itself to <strong>extended</strong> ISO for a documented reason, and the new model path had inherited none of it.</p>
+
+<p>That mattered because <code>fromisoformat</code> is far more permissive than people expect. It accepts the basic spellings (<code>"20260707"</code>, <code>"154000"</code>) and the week and ordinal calendars (<code>"2026-W27-2"</code>, <code>"2026-189"</code>). None of those corrupt a value, but all of them restate it in a calendar the source never used — and the all-digit ones collide with the epoch guard the natives depend on.</p>
+
+<figure>
+<svg viewBox="0 0 860 300" role="img" aria-label="Before: two paths with two contracts. After: both paths through one shared parser.">
+ <defs>
+ <marker id="ar2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
+ <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
+ </marker>
+ </defs>
+ <g font-family="ui-monospace, Menlo, monospace" font-size="12" color="currentColor">
+
+ <text x="0" y="14" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#b42318">BEFORE — two doors, two vocabularies</text>
+
+ <rect x="0" y="28" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="84" y="53" text-anchor="middle">LLM output</text>
+ <rect x="0" y="80" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="84" y="105" text-anchor="middle">inputs.json / TOML</text>
+
+ <line x1="170" y1="48" x2="246" y2="48" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+ <line x1="170" y1="100" x2="246" y2="100" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+
+ <rect x="250" y="28" width="250" height="40" rx="5" fill="none" stroke="#b42318" stroke-width="1.3"/>
+ <text x="375" y="53" text-anchor="middle" fill="#b42318">content model validator</text>
+ <rect x="250" y="80" width="250" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="375" y="105" text-anchor="middle">StuffContentFactory regex</text>
+
+ <line x1="502" y1="48" x2="578" y2="48" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+ <line x1="502" y1="100" x2="578" y2="100" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+
+ <rect x="582" y="28" width="278" height="40" rx="5" fill="#fdf1f0" stroke="#b42318" stroke-width="1.3"/>
+ <text x="721" y="53" text-anchor="middle" fill="#b42318">any ISO fromisoformat swallows</text>
+ <rect x="582" y="80" width="278" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="721" y="105" text-anchor="middle">extended ISO only</text>
+
+ <line x1="0" y1="146" x2="860" y2="146" stroke="currentColor" stroke-width="1" opacity=".18"/>
+
+ <text x="0" y="176" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#2b6a45">AFTER — one parser owns the answer</text>
+
+ <rect x="0" y="190" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="84" y="215" text-anchor="middle">LLM output</text>
+ <rect x="0" y="240" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
+ <text x="84" y="265" text-anchor="middle">inputs.json / TOML</text>
+
+ <path d="M170,210 L250,210 L250,232" fill="none" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+ <path d="M170,260 L250,260 L250,242" fill="none" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+
+ <rect x="272" y="214" width="288" height="52" rx="5" fill="#edf6f0" stroke="#2b6a45" stroke-width="1.5"/>
+ <text x="416" y="236" text-anchor="middle" fill="#2b6a45" font-weight="700">iso_temporal.py</text>
+ <text x="416" y="254" text-anchor="middle" fill="#2b6a45" opacity=".85">parse_iso_date · parse_iso_time</text>
+
+ <line x1="562" y1="240" x2="632" y2="240" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
+ <rect x="636" y="220" width="224" height="40" rx="5" fill="none" stroke="#2b6a45" stroke-width="1.3"/>
+ <text x="748" y="245" text-anchor="middle" fill="#2b6a45">extended ISO, no 24:00</text>
+ </g>
+</svg>
+<figcaption>The new module is stdlib-only and sits beside its consumers. The dependency runs one way — models and factory both depend on the parser, never on each other.</figcaption>
+</figure>
+
+<pre><code><span class="dim"># pipelex/core/stuffs/iso_temporal.py</span>
+_EXTENDED_DATE_PATTERN = re.compile(r"\d{4}-\d{2}-\d{2}")
+_EXTENDED_TIME_PATTERN = re.compile(r"(?P&lt;hour&gt;\d{2}):\d{2}(:\d{2}([.,]\d+)?)?([Zz]|[+-]\d{2}(:[0-5]\d)?)?")</code></pre>
+
+<p>Every character of that time pattern was argued for. Fractional seconds take <code>.</code> <em>or</em> <code>,</code> because ISO 8601 permits both. The offset takes <code>Z</code>, <code>±hh</code> or <code>±hh:mm</code> — but not <code>±hhmm</code>, which is the basic spelling. And the offset minutes are range-checked in the pattern, for a reason worth its own section.</p>
+
+<h2>5. What the unification uncovered</h2>
+
+<p>Three of these were silent-corruption bugs. None was hypothetical — each was reproduced before we touched anything.</p>
+
+<div class="scroll">
+<table>
+ <thead>
+ <tr><th>Input</th><th>Became</th><th>Should be</th><th>Where</th></tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>"24:00:00"</code></td>
+ <td><code>00:00</code> <span class="dim">same day</span></td>
+ <td>next day's midnight</td>
+ <td>Python 3.14 only</td>
+ </tr>
+ <tr>
+ <td><code>"15:40:00+02:60"</code></td>
+ <td><code>+03:00</code></td>
+ <td>rejected</td>
+ <td>all versions</td>
+ </tr>
+ <tr>
+ <td><code>"2026-W27-2"</code></td>
+ <td><code>2026-07-07</code></td>
+ <td>rejected <span class="dim">(right date, wrong calendar)</span></td>
+ <td>model path only</td>
+ </tr>
+ <tr>
+ <td><code>"2026-07-07T154000"</code></td>
+ <td>accepted</td>
+ <td>rejected <span class="dim">(model path already refused it)</span></td>
+ <td>author path only</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div class="tabs">
+ <input type="radio" name="tabs" id="t1" checked><input type="radio" name="tabs" id="t2"><input type="radio" name="tabs" id="t3">
+ <div class="tabbar">
+ <label for="t1">The 3.14 day-shift</label>
+ <label for="t2">The offset that drifted</label>
+ <label for="t3">The half-finished unification</label>
+ </div>
+ <div class="panels">
+ <div class="panel p1">
+ <p>ISO 8601's <code>24:00</code> names the <em>end</em> of a day — that is, the next day's midnight. Python disagrees with itself about it:</p>
+ <pre><code><span class="dim"># Python 3.13.9</span>
+&gt;&gt;&gt; datetime.time.fromisoformat("24:00:00")
+ValueError: hour must be in 0..23
+
+<span class="dim"># Python 3.14.0</span>
+&gt;&gt;&gt; datetime.time.fromisoformat("24:00:00")
+datetime.time(0, 0) <span class="del">← silently this day's midnight</span></code></pre>
+ <p>Our <code>requires-python</code> is <code>&gt;=3.11,&lt;3.15</code>, so 3.14 is squarely in range. A <code>Date</code> carrying <code>{"date": "2025-03-12", "time": "24:00:00"}</code> would land on <strong>March 12th</strong> midnight instead of the 13th — a full day early, silently, on some of our supported interpreters and not others.</p>
+ <p>We reject it rather than rolling the date forward: a <code>Time</code> has no date to roll, and fixing only <code>Date</code> would make the two natives disagree. The error message names what the form means so an author can fix it. We verified the guard by loading the new module under both 3.13 and 3.14 — identical behaviour.</p>
+ <p class="dim">Worth noting what is <em>not</em> affected: <code>datetime.fromisoformat("2026-07-07T24:00:00")</code> rolls correctly to the 8th on 3.14. Two review bots claimed corruption there; the probe says otherwise. Only the bare time-of-day parse was at risk.</p>
+ </div>
+ <div class="panel p2">
+ <p>An offset's components are summed into a <code>timedelta</code>, so nothing range-checks the minutes:</p>
+ <pre><code>&gt;&gt;&gt; datetime.time.fromisoformat("15:40:00+02:60")
+datetime.time(15, 40, tzinfo=timezone(timedelta(seconds=10800)))
+ <span class="del">↑ +03:00</span></code></pre>
+ <p>A stated offset silently becoming a <em>different</em> offset is precisely the fidelity loss these natives exist to prevent. What makes it easy to miss is that every neighbouring check works: an out-of-range offset <em>hour</em> raises, and the time's own minute and second raise. Only the offset minutes slip through, so the pattern pins them to <code>[0-5]\d</code>.</p>
+ </div>
+ <div class="panel p3">
+ <p>Round one routed the factory's bare-time path through the shared parser and declared the contract unified. It wasn't. <code>_parse_iso_temporal</code> still handed the <em>whole</em> string to <code>datetime.fromisoformat</code>, so the time half never reached the pin:</p>
+ <pre><code><span class="del">- if not re.fullmatch(r"\d{4}-\d{2}-\d{2}([Tt ].*)?", value.strip()):</span>
+<span class="dim"> ↑ ".*" — anything goes after the T</span>
+<span class="del">- parsed = datetime.datetime.fromisoformat(value)</span>
+<span class="del">- return parsed.date(), parsed.timetz()</span>
+<span class="add">+ match = re.fullmatch(r"(?P&lt;date&gt;\d{4}-\d{2}-\d{2})(?:[Tt ](?P&lt;time&gt;.+))?", value)</span>
+<span class="add">+ the_date = parse_iso_date(match.group("date"))</span>
+<span class="add">+ the_time = parse_iso_time(time_text) if time_text is not None else None</span></code></pre>
+ <p>So <code>"2026-07-07T154000"</code> was accepted from an author while <code>{"date": …, "time": "154000"}</code> was refused from a model. Splitting the string first — rather than delegating to <code>datetime.fromisoformat</code> — is what makes the time half reachable at all.</p>
+ </div>
+ </div>
+</div>
+
+<h2>6. What we deliberately did not do</h2>
+
+<p>Three reported issues were declined. Recording them matters as much as the fixes, because each is the kind of thing that gets re-reported later.</p>
+
+<details>
+<summary>Sub-microsecond precision is truncated</summary>
+<p><code>"15:40:00.1234567"</code> becomes <code>…123456</code>. True — but <code>datetime.time</code> cannot represent more, so the only alternative is failing a live run over precision no real source states. Truncating to what the type holds is what every Python consumer of that string does. The natives' fidelity rules are about not <em>inventing</em> or <em>shifting</em> a value; sub-microsecond rounding is a different thing.</p>
+</details>
+
+<details>
+<summary>The numeric guard also matches <code>nan</code> / <code>inf</code></summary>
+<p><code>is_numeric_string</code> uses <code>float()</code>, which parses those tokens. They get the "no epoch-seconds" message rather than the malformed-ISO one. Both are rejected either way, no model emits them, and the proposed remedy — switch to <code>int()</code> — would make the accurate epoch message stop covering <code>8.64e4</code> and <code>86400.0</code>, since <code>int()</code> raises on both.</p>
+<p class="dim">Worth flagging honestly: the first version of this rationale claimed the swap would "reopen an epoch hole" and fail the suite. A reviewer challenged it and was right — with the extended pin in front of the parse, anything <code>int()</code> declines is rejected by the parser anyway. The decision held; the reasoning did not, and was corrected on the record.</p>
+</details>
+
+<details>
+<summary>The numeric-string guard itself, now that the pin exists</summary>
+<p>Nearly cut. The extended-form pattern rejects every all-digit spelling before <code>fromisoformat</code> is reached, so the string arm of that guard is no longer load-bearing — it only buys a better message ("never a number (no epoch-seconds)") in place of a generic one. We kept it and <em>pinned the wording in a test</em>, because a branch justified solely by its message and not asserting that message is a branch that can be deleted with the suite still green.</p>
+<p>The <code>int</code>/<code>float</code> arm beside it <strong>is</strong> load-bearing: pydantic will happily coerce a bare <code>86400</code> into a date.</p>
+</details>
+
+<h2>7. What changes for you</h2>
+
+<div class="callout warn">
+ <strong>Breaking for authored inputs.</strong> These parsed on <code>dev</code> and are refused now. All four are non-extended spellings; if you have any in a bundle or an <code>inputs.json</code>, they will fail loudly with a message naming the expected shape.
+</div>
+
+<div class="scroll">
+<table>
+ <thead><tr><th>No longer accepted</th><th>Write instead</th><th>Why</th></tr></thead>
+ <tbody>
+ <tr><td><code>"15:40:00+0200"</code></td><td><code>"15:40:00+02:00"</code></td><td>basic offset spelling</td></tr>
+ <tr><td><code>"2026-07-07T154000"</code></td><td><code>"2026-07-07T15:40:00"</code></td><td>basic time spelling</td></tr>
+ <tr><td><code>"24:00:00"</code></td><td>next day + <code>"00:00:00"</code></td><td>end-of-day form, ambiguous across Python versions</td></tr>
+ <tr><td><code>" 15:40:00"</code></td><td><code>"15:40:00"</code></td><td>padding is not part of the value</td></tr>
+ </tbody>
+</table>
+</div>
+
+<p>Everything ISO calls <em>extended</em> still works, including the shapes a model plausibly answers: <code>Z</code> and lowercase <code>z</code>, <code>+02</code> and <code>+02:00</code>, both fraction separators, and <code>HH:MM</code> without seconds.</p>
+
+<p><strong>Nothing changes for Python callers</strong> holding real <code>date</code>/<code>time</code> objects — they pass through the validators untouched, which is also why the <code>--mock-inputs</code> path was unaffected throughout. kajson round-trips were verified to still rebuild typed objects, so distributed execution is unaffected.</p>
+
+<h2>8. Testing</h2>
+
+<p>Both strict-mode test modules were written red-first and reproduce the reported failure verbatim before the fix. They cover the exact reported payloads under strict JSON, strict Python mode, the generated <code>ListOf…</code> wrapper, offset fidelity, real objects still accepted, and every rejection firing in <em>both</em> validation modes.</p>
+
+<p>The independent final review mutation-tested them rather than trusting them: removing the parse call and flipping the <code>24:00</code> sentinel turned 23 tests red across the two modules. It also swept the time pattern's whole language — 560 pattern-admitted strings, zero of which <code>fromisoformat</code> then refused — confirming the round-4 bug class (pattern and parser disagreeing) is closed.</p>
+
+<h2>9. Links</h2>
+
+<div class="linkgrid">
+ <div class="linkcard">
+ <span class="k">Pull request</span>
+ <a href="https://github.com/Pipelex/pipelex/pull/1089">Pipelex/pipelex #1089</a>
+ <div class="d">Open against <code>dev</code>. Six automated review rounds plus an independent final review, all threads resolved.</div>
+ </div>
+ <div class="linkcard">
+ <span class="k">Origin of the report</span>
+ <a href="https://github.com/Pipelex/mthds-ui">Pipelex/mthds-ui</a>
+ <div class="d">Filed from branch <code>feature/Native-concepts_stories</code> while adding native-concept fixtures. Its <code>pipeline_32</code> LIVE fixture is a placeholder — <code>make fixtures-live ONLY=pipeline_32</code> replaces it once a released pipelex carries this fix. That is the natural end-to-end regression check.</div>
+ </div>
+ <div class="linkcard">
+ <span class="k">Deferred, release-gated</span>
+ <a href="https://github.com/mthds-ai/mthds-plugins">mthds-ai/mthds-plugins</a>
+ <div class="d">The authoring guidance an LLM is prompted with still says plain "ISO 8601", with no mention of extended-only or the <code>24:00</code> refusal. Costs a re-ask rather than a failed run, so it is a sweep, not a blocker.</div>
+ </div>
+</div>
+
+<footer>
+ Written 2026-08-11 · <code>wip/native-date-time/</code> · The decision record for every accept and decline across the review rounds lives alongside this file.
+</footer>
+
+</div>
+</body>
+</html>