top of page

Scoping BYOA Permissions to a Single Release Train

Writer: Ashwin Kondapalli
Ashwin Kondapalli
Oct 22
7 min read

Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: October 22, 2026

The payments team wants an external coding agent to help with the November release train: draft implementation notes on stories, comment on test executions, and attach supporting evidence for the release review. The platform team already has a general-purpose coding agent registered for the whole organization, with broad surfaces and evidence attachment turned on. The release manager's question is simple: "Can we let it help on this train without letting it touch everything else, and can we turn it off when the train ships?"

You scope a Bring Your Own Agent (BYOA) to one release train in LoopIQ by giving that train its own agent definition, then narrowing it with the controls BYOA actually provides: team scope, allowed surfaces, capabilities, a mutation policy, approval settings, and active state. BYOA's documented controls do not include a release-train field, so the train boundary is something you build from those pieces and write down. When the train ships, you deactivate the agent and keep its history for review.

Why is an organization-wide agent the wrong default for a release train?

A release train is a time-boxed set of work with its own owners, candidates, and go/no-go decision. An agent registered once for the whole organization carries the widest surfaces and policies anyone ever needed. When it works on the train, reviewers cannot easily tell which of its permissions were meant for this release and which were left over from another team's use case.

Three problems show up in practice:

  1. Permissions outlive the work. The train ships, but the agent stays active with write access nobody revisits.

  2. Scope is hard to read in an audit. "The agent was allowed to attach evidence" is true, but not "for this train, on these surfaces, with this approver."

  3. One policy change affects everyone. Tightening the shared agent for the train also changes it for every other team using it.

A dedicated, narrowly scoped definition fixes all three, because the scope lives in one record that reviewers can read.

What controls does BYOA give you to narrow an agent's scope?

These are the controls documented in Configure and Run BYOA Agents. Each one narrows a different dimension.

  • Organization. Every BYOA agent belongs to one organization. Automation and invocation check that the agent belongs to the same organization as the target.

  • Team scope. An agent can be scoped to a team when it should only operate for one team. Automation validates that the agent's team scope does not conflict with the target, and a team-scoped agent does not appear in another team's assignee picker.

  • Allowed surfaces. The kinds of records the agent may work on, such as story, task, issue, test_execution, release, or evidence. An agent not enabled for a surface cannot be invoked or assigned against it.

  • Capabilities. What the agent is expected to do, such as draft, review, test, or implement. Capabilities route and filter work. They do not grant permission to change records.

  • Mutation policy. The keys that decide which governed actions are allowed: can_apply_output, can_create_comment, can_attach_evidence, can_update_status, can_transition_release, and can_create_work_item.

  • Approval settings. requires_human_approval for the agent as a whole, or requires_approval_for_sensitive_actions with a sensitive_actions list for the actions that must pause in needs_review.

  • Active state. is_active decides whether the agent can be used at all.

Notice what is not on that list: a release, a release train, or a date range. That is why the train boundary needs to be designed rather than assumed.

How do you build a release-train boundary from those controls?

Use a simple method: one train, one agent definition, one owner, one end date.

1. Create a dedicated agent definition for the train

Name it so the scope is obvious, for example "Payments Nov Train – Implementation Agent." Put the train name, the release owner, the approval owner, and the planned end date in the description so anyone reading the record knows why it exists. Keep secrets in auth_secret or a secret_reference, never in auth_config or metadata.

2. Scope it to the team that owns the train

If the train belongs to one team, set team scope to that team. That keeps the agent out of other teams' assignee pickers and stops automation from invoking it against another team's records.

3. Allow only the surfaces the train needs

For an implementation-support agent, that is usually story, task, and issue, plus test_execution if it comments on runs. Add evidence or release only if the train plan genuinely calls for it. Every surface you leave off is a class of records the agent cannot touch.

4. Start the mutation policy at comments only

Allow can_create_comment and, if useful, can_apply_output. Leave can_update_status, can_transition_release, and can_create_work_item off. If the train needs the agent to attach evidence, turn on can_attach_evidence and list attach_evidence in sensitive_actions so a named reviewer approves each attachment.

5. Name the approver and keep high-impact actions behind approval

LoopIQ's guidance is to keep direct status changes, evidence attachment, release transitions, and work item creation requests behind approval. For a release train, that means one named person, usually the release owner or QA lead, reviews needs_review invocations and records an approve or reject decision with a comment.

6. Test on a non-critical record in the train

Assign a low-risk story to the agent, confirm the task is claimed or the webhook responds, and check that a blocked action, such as a status change, shows up as a blocked action result rather than being applied.

7. Deactivate it when the train ships

Set is_active to false once the release decision is recorded so the agent can no longer be used. Deactivate rather than delete: its invocation history, task events, approval events, and output attachments are the record of what it did on the train. If the next train needs similar help, create a new definition for that train rather than widening this one.

How this works in LoopIQ

Prerequisites

  • BYOA is enabled for your organization, and your role has the BYOA agent permissions, such as automation.byoa.agents.view, automation.byoa.agents.create, and automation.byoa.agents.edit. Some environments also map BYOA access through automation-rule permissions.

  • The organization and team context are correct.

  • The external endpoint or runtime worker is ready. Direct invocation and automation rules with run_byoa_agent require a webhook agent today; other provider types run through the task queue with a runtime worker.

  • The train's owner and approval owner are named before write actions are enabled.

Sequence

  1. From the BYOA agents page in the AI and Agents area, create a new agent dedicated to the train.

  2. Set provider type, auth type, team scope, allowed surfaces, capabilities, and a timeout between 1 and 120 seconds.

  3. Set the mutation policy to comments only, and add any evidence attachment as a sensitive action.

  4. Decide whether every invocation requires human approval or only the sensitive actions.

  5. Test on a non-critical record in the train.

  6. Assign train stories, tasks, and issues to the agent, and review needs_review invocations as they arrive.

  7. After the go/no-go decision, deactivate the agent.

Outputs

  • One agent definition whose surfaces, team scope, and policies describe exactly what it could do on this train.

  • Task events and invocation history tied to the train's records.

  • Approval events showing who approved or rejected each sensitive action, and why.

  • Output attachments, including blocked action results, that reviewers can reopen in the Release Compliance Dossier review.

Agent output is an input to the readiness review. It does not authorize a release, and passing tests do not either. A LoopIQ release certification is an internal governance record for readiness and audit review, not a regulatory certification.

Pricing: LoopIQ is $4.99 per user per month, with the Analytics add-on priced separately.

If your train's work lives in Jira, it can stay connected. LoopIQ supports Atlassian synchronization as documented in the current product notes.

Worked example: an organization-wide agent vs a train-scoped agent

Label: Illustrative demo data. This is not a customer result.

Organization-wide coding agent

  • Team scope: none.

  • Allowed surfaces: story, task, issue, test_execution, release, evidence, change_request.

  • Capabilities: implement, test, review, create_patch, run_command.

  • Mutation policy: comments, evidence attachment without approval, status updates, and work item creation all allowed; release transitions off.

  • Approval owner: not documented. End of life: none.

Payments Nov Train agent

  • Team scope: Payments.

  • Allowed surfaces: story, task, issue, test_execution.

  • Capabilities: draft, review, test.

  • Mutation policy: comments allowed; evidence attachment allowed with attach_evidence in sensitive_actions; status updates, release transitions, and work item creation off.

  • Approval owner: Payments QA lead. End of life: deactivate after go/no-go.

During the train, the agent drafted implementation notes on 14 stories and proposed 5 evidence attachments. The QA lead approved 4 and rejected 1 because it referenced a test run from an older candidate build. One status-change request was blocked by policy and recorded as a blocked action result. After the go/no-go meeting, the release owner deactivated the agent, and the review packet showed every action next to the policy that allowed or blocked it.

Checklist: is this agent scoped to the train?

  • The agent definition exists only for this train, and its name and description say so.

  • The description names the release owner, the approval owner, and the planned end date.

  • Team scope is set to the team that owns the train, where the train belongs to one team.

  • Allowed surfaces are limited to the records the train needs.

  • Capabilities match the work, and nobody is treating them as permissions.

  • The mutation policy starts at comments only, and status changes, release transitions, and work item creation are off unless the plan requires them.

  • Evidence attachment, if allowed, is listed in sensitive_actions with a named reviewer.

  • The agent was tested on a non-critical record before train work was assigned.

  • Someone owns deactivating it after the release decision.

FAQ

Can I scope a BYOA agent directly to a release or release train? BYOA's documented controls are organization, team scope, allowed surfaces, capabilities, mutation policy, approval settings, and active state. A release train boundary is built from those controls, usually with a dedicated agent definition per train.

Is team scope enough on its own? Usually not. Team scope limits where the agent can work, but the mutation policy and approval settings decide what it can change. Use both.

Why not just tighten the shared organization-wide agent? Because every team using it inherits the change, and the audit record no longer shows which permissions were meant for which train.

Should I delete the agent after the train ships? Deactivate it instead. An inactive agent cannot be used, and keeping the definition keeps its scope, policies, and activity history together for anyone reviewing the release later.

Does an approved agent action approve the release? No. An approved action is one input to the readiness review. Tests do not authorize a release, agent output does not either, and release certification is not regulatory certification.

See a permission-controlled agent workflow

If you want external agents helping on a release without leaving broad write access behind when it ships, I'd be glad to walk through how LoopIQ scopes an agent to the work, routes sensitive actions to a named reviewer, and keeps the record for the release review. Book time with me here.

General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.

Recent Posts

See All
How to Freeze a Test Baseline for a Release Train

Freezing a test baseline is a recorded decision for the release train—not a green suite. Capture immutable build and input identity, get approval, and keep the freeze reviewable through go/no-go.

 
 
bottom of page