- The times in the record are stored to the millisecond; two runs finishing
in the same millisecond compared equal and the later writer won, which
could leave the older run recorded. A tie now keeps what is there. No
finer order is worth a field in the file.
- recording_enabled() is false when the platform's integration token is
present: a deployment normally never reaches this code (the host binds
the trace before crewAI would start its own), but a container that did
not would have written a file the platform never reads, against what the
docs promise. Test added.
89 passed; ruff and mypy clean.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>