implement: from ticket to pull request

implement: from ticket to pull request A workflow diagram generated by Archify. 01 / Host (GitHub / GitLab) 02 / Model job: holds the provider key, no write token EX / Refusals and failures 04 / Write job: holds the write token, no provider key Ask implement/from-ticket implement/propose + implement/report /implement comment · on an issue · Host (GitHub / GitLab) › Ask /implement comment on an issue Draft pull request · a person reads it · Host (GitHub / GitLab) › implement/propose + implement/report Draft pull request a person reads it Chat-ops gate · author is a maintainer? · Model job: holds the provider key, no write token › implement/from-ticket Chat-ops gate author is a maintainer? Ticket + last review · untrusted context · Model job: holds the provider key, no write token › implement/from-ticket Ticket + last review untrusted context ctx.do(Implement) · TDD or Oneshot, in a worktree · Model job: holds the provider key, no write token › implement/from-ticket · budget + approval gated ctx.do(Implement) TDD or Oneshot, in a worktree budget + approval gated changeset artifact · staged, never applied here · Model job: holds the provider key, no write token › implement/propose + implement/report changeset artifact staged, never applied here Refused · not a maintainer · Refusals and failures › implement/from-ticket Refused not a maintainer Blocked or failed · ceiling, not red, not green · Refusals and failures › implement/from-ticket Blocked or failed ceiling, not red, not green attempt artifact · kept as evidence · Refusals and failures › implement/propose + implement/report attempt artifact kept as evidence ai-generated issue · on a failed attempt · Refusals and failures › implement/propose + implement/report ai-generated issue on a failed attempt implement/propose · branch, commit, open draft · Write job: holds the write token, no provider key › implement/propose + implement/report implement/propose branch, commit, open draft implement/report · comment on the ticket · Write job: holds the write token, no provider key › implement/propose + implement/report implement/report comment on the ticket file for a later /fix no yes succeeded blocked / failed read back, untrusted Legend Agent logic Policy Context / trace External system

Two jobs, one process

  • • The job that runs the model never holds a write token
  • • The job that opens the change never holds a provider key

What stops a run

  • • No declared budget refuses before the first call
  • • A red suite after green, or no test collected, fails by name