- Notifications
You must be signed in to change notification settings - Fork 930
Description
I noticed a common AI writing pattern not yet covered: diff-anchored writing, where documentation or comments describe what changed rather than what is, making them unreadable without knowing the prior state.
This is distinct from version-scoped documents like release notes or changelogs, where referencing changes is expected.
Before:
This function was added to replace the previous approach of iterating through all items. The old method caused O(n²) performance, so we now use a hash map instead.
After:
This function uses a hash map for O(1) lookups per item, avoiding the O(n²) cost of naive iteration.
Before:
We removed the
legacy_authmiddleware because legal flagged it for storing session tokens in a non-compliant way. The new implementation uses encrypted cookies.
After:
Authentication uses encrypted cookies for session storage, meeting the current compliance requirements for token handling.
Happy to submit a PR if this fits the project's direction.