A trail for people

Tomorrow's you should understand the change without the chat.

A chat is a draft of reasoning. A colleague may not have it, you may not have it in a month, and the person on call at night will not have it. The trail lives in three places: the commit message or change description, a test named after the rule, and code that does not need an oral legend.

Do not put a "generated by AI" comment in the code. It does not help debugging. Add a comment only where a domain rule is invisible without it, and only if you could not express the rule through a name and a test. A link to an internal ticket is more useful than a link to a chat session that will expire.

If the assistant was useful, it is fine to say so when you are asked about the team's process. In the product's history something else matters more: which behaviour is now guaranteed and what covers it. Process does not replace a guarantee.

The last question before ending the day: could you delete the chat and still fix a regression using the test and the diff? If not, the trail is not enough. Add a test name or a description. Do not copy the conversation there.

Practice

  1. Where the meaning stays

    Where will a colleague find the rule a month from now?

    • Only in the chat history
    • In the test and the change description
    • In a "generated by AI" comment
    • Nowhere, everyone remembers anyway
  2. Checking the trail

    You deleted the chat and can still fix a regression using the test. Is the trail enough? Answer yes or no.

  3. What to leave in the repository

    Select the useful trail.

    • A test whose name states the rule
    • A "generated by AI" comment on every function
    • A description of which behaviour now holds
    • The full conversation with the model inside the source file