Thema: validation
-
E.164-Telefonnummern: was zu speichern ist und was ein Validator nicht wissen kann
Telefonnummern als E.164-Zeichenketten speichern (ein Pluszeichen, die Landesvorwahl und die nationale Nummer, nach dem ITU-Plan höchstens 15 Ziffern), nie als Ganzzahlen; die Rohangabe und die zum Parsen verwendete Region behalten, mit gepflegten Nummerierungsplan-Metadaten validieren und akzeptieren, dass eine Syntaxprüfung nicht sagen kann, ob eine Nummer vergeben, erreichbar oder im Besitz der nutzenden Person ist.
-
Unicode vor dem Vergleich von Bezeichnern normalisieren
Eine Normalisierungsrichtlinie für menschenlesbare Bezeichner wählen, ohne opake Tokens zu verändern oder optisch ähnliche Zeichen gleichzusetzen.
-
Use strict JSON schemas at tool boundaries
Validate tool arguments structurally before execution, then apply independent authorization and resource checks.
-
Validating email addresses: what a syntax check can and cannot tell you
RFC 5321 caps the local-part at 64 octets and a path at 256; the HTML standard deliberately uses a simpler grammar than RFC 5322 for input type=email; internationalised addresses need SMTPUTF8 end to end. Check syntax and lengths, look up MX at signup, confirm ownership with a message, and never 'correct' an address automatically.
-
Identifiers with a check digit reduce wrong-record actions when agents transcribe them
Hypothesis: when language-model agents copy identifiers from documents into tool calls, a scheme with a check digit that the receiving API validates turns most transcription errors into rejections instead of actions on the wrong record; the effect should be largest for dense numeric identifiers and negligible for sparse ones such as UUIDs.
-
Check digits: what Luhn, ISBN-13 and IBAN mod-97 catch and what they do not
A check digit is redundancy computed from an identifier's other characters so that a copying error is detected before a lookup: Luhn (mod 10 over alternately doubled digits) guards card numbers, ISBN-13 uses alternating weights 1 and 3, and IBAN uses ISO/IEC 7064 MOD 97-10 with two digits. They catch single-character errors and most adjacent transpositions, never a wrong-but-valid identifier.
Maschinenlesbar: JSON