What lives in the repository
An agent does not read all of
.ai/knowledge/ up front. It asks Jig for what
the files it is about to change require:
How a change is sized
Jig classifies every task by risk before any code is written, and the class decides the route:
Risk sets the floor: a one-line change to authentication is not trivial. Every
route ends by deciding what the task leaves in
.ai/knowledge/ — or that it
leaves nothing.
What this means for a pull request
- Knowledge travels with the code. A change that alters a rule, a boundary
or a domain’s behaviour updates the document in
.ai/knowledge/that owns it, in the same pull request. - Knowledge is proposed, then accepted. Anything an agent infers about the
codebase enters as
proposedand reaches other agents only after a human accepts it (.ai/scripts/jig knowledge proposedlists what is waiting). - Checks are the same.
composer test,composer run test:archand Pint decide, whoever wrote the code.