Spec v0.3: document the ISO ts requirement on escalation_to_human - #2
Merged
Merged
Conversation
The mock receiver has rejected an escalation_to_human event without a valid ISO ts since 22 Sep, but the spec only showed the field in an example, leaving the reference implementation stricter than the published contract. The payload table now states the requirement, the actor-fallback wording says why it is enforced, and a dated note records it as a tightening rather than a documentation-only correction. The mock, the forwarder and the contract version are unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handover v4 made the mock reject an
escalation_to_humanevent without a valid ISOts, but the spec only showed the field in an example. That left the reference implementation stricter than the published contract — the same defect v4 fixed, pointing the other way. Spec and CHANGELOG only; the mock, the forwarder and the contract version are unchanged.Spec (
docs/send-a-copy-spec-v0.3.md)events[]row now states the requirement: anescalation_to_humanevent requires a valid ISO 8601tswith timezone; other event types need onlytype, and anytspresent must be ISO 8601.turns[].actorrow, where it lives) gains one sentence explaining that the fallback has no other anchor, so such an event without a validtsis rejected with a field-level400.CHANGELOG
### Changedsubsection between### Documentationand### Fixed, carrying the new spec bullet and the existing mocktsbullet moved out of### Fixed. The four genuine documentation corrections stay under### Fixed.54 tests pass locally.
🤖 Generated with Claude Code