Skip to content

feat(lifecycle): add implementWith for immutable execution profiles - #1075

Merged
berenddeboer merged 1 commit into
mainfrom
rfa/berenddeboer-ready-for-agent/1033/wi-01KZZJHKDTREY1Q9K5JGAKMPW7
Aug 14, 2026
Merged

feat(lifecycle): add implementWith for immutable execution profiles#1075
berenddeboer merged 1 commit into
mainfrom
rfa/berenddeboer-ready-for-agent/1033/wi-01KZZJHKDTREY1Q9K5JGAKMPW7

Conversation

@berenddeboer

Copy link
Copy Markdown
Owner

Operators who want a one-attempt backend/model experiment currently have to
change Repository or Harness defaults, and ordinary Work Items re-resolve
models on every Agent Turn. This adds the product API for Implement With
(#1033): a distinct implementWith command that freezes one complete
Explicit Work Item Execution Profile on the Work Item.

What changed:

  • GraphQL implementWith takes repository, issue number, and a required
    complete profile (shipped Agent Backend, build model and optional Thinking
    Level, and either Same as build or an explicit review selection).
  • The profile is persisted on work_item and projected on Work Item queries
    (backend, build/review, Thinking Levels, Same as build intent).
  • Create revalidates Actionable Issue status, uniqueness, already-Active
    backend readiness, catalog membership, and Thinking Levels; failure
    creates nothing.
  • Agent Turns use the frozen build or review selection. Later catalog drift
    fails closed before the Agent Backend CLI is spawned. Ordinary Implement
    Now / Locally / Queue / Intake / Implement All stay settings-resolved.
    Existing Work Items migrate with no profile.

Verification: lifecycle tests with real SQLite and stub backends
(implement-with, execution-profile decode/catalog); GraphQL
schema/resolver tests for the mutation, projection, and
INVALID_EXECUTION_PROFILE; migration and DbService suites. Review found
no findings. UI, activating a not-yet-Active backend, and settings-gate
narrowing remain sibling issues.

Closes #1033

Operators who want a one-attempt backend/model experiment currently have to
change Repository or Harness defaults, and ordinary Work Items re-resolve
models on every Agent Turn. This adds the product API for Implement With
(#1033): a distinct `implementWith` command that freezes one complete
Explicit Work Item Execution Profile on the Work Item.

What changed:
- GraphQL `implementWith` takes repository, issue number, and a required
  complete profile (shipped Agent Backend, build model and optional Thinking
  Level, and either Same as build or an explicit review selection).
- The profile is persisted on `work_item` and projected on Work Item queries
  (backend, build/review, Thinking Levels, Same as build intent).
- Create revalidates Actionable Issue status, uniqueness, already-Active
  backend readiness, catalog membership, and Thinking Levels; failure
  creates nothing.
- Agent Turns use the frozen build or review selection. Later catalog drift
  fails closed before the Agent Backend CLI is spawned. Ordinary Implement
  Now / Locally / Queue / Intake / Implement All stay settings-resolved.
  Existing Work Items migrate with no profile.

Verification: lifecycle tests with real SQLite and stub backends
(`implement-with`, execution-profile decode/catalog); GraphQL
schema/resolver tests for the mutation, projection, and
`INVALID_EXECUTION_PROFILE`; migration and DbService suites. Review found
no findings. UI, activating a not-yet-Active backend, and settings-gate
narrowing remain sibling issues.

Closes #1033
@berenddeboer
berenddeboer marked this pull request as ready for review August 14, 2026 07:51
@berenddeboer
berenddeboer merged commit 2b91cb8 into main Aug 14, 2026
5 checks passed
@berenddeboer
berenddeboer deleted the rfa/berenddeboer-ready-for-agent/1033/wi-01KZZJHKDTREY1Q9K5JGAKMPW7 branch August 14, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement explicit Work Item Execution Profiles through GraphQL

1 participant