the max-runs computation should be implemented as a separate job with the actions: write permission . The "user job" should have this kind of permission. https://github.com/githubnext/agentics/commit/b31bd70a1eb7b72d6ee9ecb968516f30f0491dac