R162 Do cross-repository work in a job directory inside the initiative’s checkout
Superseded by R314 Do cross-repository work in a job directory inside the initiative's checkout.
Do cross-repository work in the working directory of its Agent Fleet job, inside the checkout of the initiative’s repository in the scope’s initiatives directory.
Reason
Cross-repository work belongs to no one repository, so no repository’s main checkout is the right place for it. The checkout of the initiative’s repository lasts as long as the initiative; a job’s directory comes and goes with the job and, excluded by that repository’s .gitignore, is never committed by mistake (Art. III §4).
Verification
The initiatives directory is paths.initiatives of the scope’s settings. Each entry directly under it is a directory named after an initiative, or after the scope’s general initiative (channels.general_initiative, the one direct messages belong to), and is a checkout of that initiative’s repository, which is named with the initiative prefix (channels.initiative_prefix) followed by the initiative’s name. In such a checkout, each directory the repository does not track is the working directory of a cross-repository job still open in Agent Fleet, named after the job and excluded by the repository’s .gitignore; Agent Fleet deletes it when the job ends. The values of these settings are the scope’s, not this rule’s.
Violated when an entry directly under the initiatives directory is not such a checkout, or a checkout there holds a directory that the repository does not track and that is not the working directory of an open job.