R314 Do cross-repository work in a job directory inside the initiative’s checkout

Off by default

Do cross-repository work in the working directory of its Agent Fleet job, inside the checkout of the initiative’s repository in ~/initiatives.

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

~/initiatives is the directory that paths.initiatives of the scope’s settings names. 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 the general initiative and the prefix are the scope’s, not this rule’s.

Violated when an entry directly under ~/initiatives 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.

Provisions of the constitution it cites

Relations

Parent
R161 Commands
Requires
none
Conflicts with
none

Metadata

ID
314
Revision
1
Kind
rule
Status
trial
Slug
cross-repo-job-in-initiatives-dir
Default level
user
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh