An Agentic Sprint increases the amount of software work that can be attempted by machines. It does not remove the need to control what those machines may see, change, execute or release. The security problem is therefore broader than model output quality. It includes authority, environment isolation, tool use, context integrity, dependency risk, evidence and the human decisions that remain outside the autonomous execution plane.

This document defines a minimum guardrail model for agentic engineering. It is intended for teams that allow agents to inspect repositories, prepare plans, change branches, run checks and propose pull requests. It assumes that high-impact work remains subject to human decision gates.

The model is deliberately conservative. A control may make a workflow slower. That is a risk decision to measure and improve, not a reason to remove the control without evidence.

Status and language

This is a draft security model. It is not a certification scheme, a complete threat model for every agent platform or a claim that the controls eliminate prompt injection, supply-chain compromise or implementation defects.

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 8174 when they appear in all capitals.

Requirements in this security model use the AS-GS-NNN namespace. They are companion requirements under D1 and MAY add controls for security-sensitive work, but they MUST NOT weaken D1 core requirements. A team MAY adopt this model without adopting the optional AS-AL profile.

Security objective

The objective is bounded autonomous execution:

  • an agent may act only within an authorised scope;
  • a compromised instruction, tool or dependency should have limited reach;
  • independent checks should challenge the Maker's output;
  • high-impact actions should require a human decision;
  • actions and evidence should be attributable and reviewable;
  • a failure should be containable, detectable and recoverable.

This is a layered control problem. No single prompt, model, scanner, signature or approval can provide the whole boundary.

Conceptual model

Agentic Engineering Guardrails and security boundaries

A human principal provides scoped authorisation. Untrusted input reaches the orchestrator as data and cannot create authority merely through prompt content. The orchestrator loads versioned context and requests sandboxed execution. Maker agents work through a sandbox and tool broker. A credential broker supplies least-privilege access, while network and tool policy are enforced at the broker. Every relevant action produces provenance and audit evidence. A guardrail check blocks an action when the scope, identity, credential, network or policy condition is not satisfied. Independent security review examines the result. Only Release Authority can authorise the release controller to act on production. The maker has no direct production path, and a failed guardrail cannot be bypassed by re-prompting or by changing the implementation agent.

Untrusted inputExternal content is treated as data and is not allowed to redefine authority.
  1. Untrusted inputPrompt content, repository content or external tool output that may be misleading or hostile.
Control planeHuman authorisation, orchestration, context and policy establish scope.
  1. Human principalDefines the intended outcome, scope and authority boundary.
  2. Scoped authorisationBinds a human decision to a bounded task, actor and permitted actions.
  3. OrchestratorCoordinates agents and state without becoming an unrestricted production principal.
  4. Versioned contextProvides approved instructions, architecture, policies and task context.
  5. Credential brokerIssues short-lived, task-scoped credentials and keeps secrets out of prompts.
Sandboxed executionMakers and tools operate with least privilege and constrained access.
  1. Maker agentImplements in a sandbox and cannot approve, merge or release its own work.
  2. Sandbox runtimeConstrains filesystem, process, network and repository permissions.
  3. Tool and network brokerApplies allowlists and mediates external calls and tool invocation.
Evidence planeProvenance, audit records and independent security review support decisions.
  1. Action provenanceRecords the actor, delegated scope, tool action and evidence needed to inspect authority.
  2. Guardrail checkStops actions that violate scope, identity, permissions, network or policy controls.
  3. RiskBlocked actionA failed guardrail produces a recorded stop and cannot be bypassed inside the loop.
  4. Independent security reviewA separate reviewer examines the implementation and residual security risk.
  5. Audit evidenceRetains decisions, tool actions, findings and exceptions for later inspection.
Production boundaryRelease authority and a separate controller protect the production plane.
  1. Release AuthorityHuman Gate 3. Controls whether the change may reach production.
  2. Release controllerPerforms only the approved release action.
  3. Production runtimeProtected system that is not directly accessible to maker agents.
Edges
  • Human principal leads to Scoped authorisationdefines permitted scopeGated
  • Scoped authorisation leads to Orchestratorbinds authorised workGated
  • Orchestrator leads to Sandbox runtimestarts constrained runGated
  • Credential broker leads to Tool and network brokerprovides scoped credentialGated
  • Tool and network broker leads to Guardrail checksubmits action for policy checkGated
  • Guardrail check leads to Blocked actionstops policy violationFailure
  • Audit evidence leads to Release Authoritysupports release decisionGated
  • Release Authority leads to Release controllerauthorises releaseGated
  • Release controller leads to Production runtimeperforms approved actionGated
Legend
  • Human principalThe human authority whose intended scope must remain visible.
  • Policy brokerCredentials, tools and network access are mediated rather than ambient.
  • Non-waivable guardrailA failed control blocks progression and has no autonomous bypass.
  • Production authorityProduction remains outside maker permissions and requires human release authority.
Authority is scoped, brokered, recorded and stopped when a non-waivable guardrail fails.

Threat model

The model considers both accidental and adversarial failure. Relevant sources include:

  • an agent that misunderstands the requirement or architecture;
  • prompt injection in source files, issues, documentation or tool output;
  • a malicious or compromised dependency, package, repository or action;
  • a tool that returns misleading data or executes more authority than described;
  • credentials exposed through environment variables, logs, prompts or artefacts;
  • a Maker attempting to alter tests or controls to obtain a passing result;
  • a Checker sharing the Maker's context or blind spots;
  • a poisoned, stale or contradictory agent skill;
  • a human reviewer relying on an agent summary instead of inspecting evidence;
  • a release process that treats implementation completion as production authority;
  • an agent-to-agent handoff that loses the original scope or approval context.

The OWASP Agentic AI Threats and Mitigations work is a useful threat catalogue, but it does not replace a system-specific assessment. A team MUST identify its own assets, trust boundaries, failure impact and compensating controls.

Authority is not the same as identity

Authentication answers a question such as:

Which principal is presenting this credential?

Authorisation answers:

What operations may that principal perform against this resource in this context?

Delegated authority adds another question:

Who authorised this action, within what scope, through which delegation chain and under which constraints?

These questions are related but not interchangeable. A service account may authenticate successfully and still be forbidden from changing a production database. An agent may have a valid identity and a tool token while lacking authority for the specific operation. A log entry may describe a human approval without proving that the approval was bound to the action that followed.

This document requires systems to preserve those distinctions. It does not prescribe a particular delegation protocol. The Human Delegation Provenance (HDP) work, published through Helixar Limited, is relevant research on cryptographically verifiable delegation. It is an open specification and research effort, not an adopted industry standard. Teams MUST NOT treat a reference to provenance as a substitute for access controls, review or release governance.

Risk tiers and required controls

Risk tier MUST be assessed before an agent receives write capability. A team MAY use a different scale if it defines equivalent controls.

Table 28
TierExample workMinimum controls
R0Documentation or isolated low-impact toolingScoped workspace, branch protection, basic checks and human diff review
R1Reversible application behaviour with bounded impactLeast privilege, sandbox, controlled network, deterministic checks, independent review and human implementation approval
R2Identity, permissions, personal data, financial state, shared platform or migrationR2 threat assessment, stronger audit, security review, independent verification, staged rollout and explicit human acceptance
R3Destructive, safety-related, irreversible or production-control actionsNo Maker production access, dedicated security or risk owner, separate release authority, staged or simulated execution and human approval immediately before action

The highest plausible impact of the change determines the tier. A small patch that changes authorisation can be higher risk than a large refactor that does not cross a trust boundary.

Non-negotiable guardrails

The following controls are REQUIRED for a governed Agentic Sprint unless a documented exception is approved by an accountable human with authority for the risk.

AS-GS-001: No production access for Maker agents

Maker agents MUST NOT receive direct production credentials, unrestricted production network access or the ability to perform production mutations. They MAY work against local, synthetic, masked or explicitly isolated environments.

Production observation, if needed, SHOULD be mediated through approved read-only views with data minimisation, redaction and audit. Production actions MUST occur through a separate controlled path with human release authority.

This boundary applies even when the agent appears trustworthy or the task appears routine. Capability should be controlled by the system, not by an assumption about model intent.

AS-GS-002: Least privilege

Each agent role MUST receive only the repositories, paths, tools, data, commands, network destinations and execution duration required for its current task. Capabilities SHOULD be short-lived and scoped to a work item or run.

A Coordinator, Maker, Reviewer and Release authority SHOULD have different permissions. For example:

Table 39
RoleMay inspectMay changeMust not do
CoordinatorWork state and approved contextCreate bounded runs and handoffsApprove its own implementation or release
MakerAuthorised repositories and test environmentFeature branch or isolated worktreeMerge, release or alter protected controls
CheckerRequirement, plan, diff and evidenceReview artefact only, unless explicitly assignedTreat Maker output as proof or self-approve
Security reviewerRelevant code, configuration and evidenceFindings and disposition proposalGrant release authority by default
Release authorityRequired evidence and release controlsApprove merge or deploymentDelegate final accountability to the Maker

Permissions MUST be enforced by the execution environment, not only stated in an instruction file.

AS-GS-003: Protected branches and human approval

Agent changes MUST land on a protected branch or equivalent review boundary. Maker agents MUST NOT approve or merge their own pull requests. The GitHub cloud agent risk guidance describes comparable controls: agent-created changes are presented for human review and higher-risk actions are restricted.

Human approval MUST identify the revision and the evidence reviewed. A generic approval on a moving branch is not sufficient for a material change.

AS-GS-004: Sandboxed execution

Agent processes MUST run in a sandbox or isolated environment appropriate to the risk tier. The boundary SHOULD cover:

  • filesystem paths and write access;
  • process creation and privileged commands;
  • network egress and ingress;
  • package installation and binary execution;
  • environment variables and credential mounts;
  • resource limits and execution time;
  • persistence between runs.

The sandbox is a containment layer, not a proof that the model will behave correctly. A sandbox that permits an unbounded network or host-level credential access is not a meaningful boundary for the relevant threat.

AS-GS-005: Network restrictions

Network access MUST be denied by default for Maker agents and opened only for declared destinations and protocols. The policy SHOULD distinguish:

  • source-control access;
  • dependency retrieval;
  • test services;
  • documentation or research access;
  • telemetry and evidence storage;
  • production or administrative endpoints.

Requests to expand network access MUST be logged and approved according to the risk tier. Network access should not be granted merely because a build failed.

AS-GS-006: Secrets and sensitive data

Secrets MUST NOT be placed in prompts, source files, logs, screenshots, model context or unprotected artefacts. Agents SHOULD use short-lived, scoped credentials delivered through a managed mechanism, where credentials are unavoidable.

Teams MUST classify data that may enter the agent context. Personal, financial, security-sensitive, customer or confidential data should be masked, minimised or excluded unless the risk assessment explicitly permits its use.

Secret scanning, log redaction and artefact inspection MUST be part of the quality gate. A secret found in an agent context is an incident or near miss, not merely a documentation issue.

AS-GS-007: Tool capabilities

Every tool exposed to an agent MUST have a declared name, purpose, input schema, output handling and permission boundary. Tool descriptions MUST NOT be treated as security enforcement.

High-impact tools such as deletion, deployment, permission changes, credential creation, migration execution or external messaging MUST require a separate approval path. A tool should make the target, scope and intended side effect visible before execution.

Tool output MUST be treated as untrusted input. An agent MUST NOT follow instructions embedded in a repository file, issue comment, webpage or command output merely because the text looks authoritative.

AS-GS-008: Audit trails

The system MUST record enough information to reconstruct material agent activity:

  • run and work-item identifiers;
  • agent role and model or service version, where available;
  • relevant instruction and context versions;
  • tools called, input scope and result status;
  • commands executed and exit results;
  • repositories, commits, branches and worktrees touched;
  • checks, findings, approvals and revisions;
  • capability or network-policy changes;
  • human decisions and timestamps.

Audit records MUST be protected from unauthorised modification and retained according to the system's risk and privacy requirements. They are evidence, not an excuse to collect unlimited personal data.

AS-GS-009: No self-approval

The agent that creates an implementation MUST NOT be the sole agent or authority deciding that it is correct, safe or releasable. Independent review MAY be performed by another agent, a deterministic control or a human, but the independence MUST be meaningful.

Independence includes access to the requirement, constraints and relevant evidence. A second agent that receives only the Maker's conclusion may repeat the same error. For higher-risk work, an independent human or security function MUST be involved.

AS-GS-010: Model and tool provenance

The evidence package SHOULD identify the model or agent service version, tool versions, instruction bundle, repository revision and dependency lock state used during execution. Where a build or artefact requires provenance, teams SHOULD use a structured format aligned with SLSA provenance or an equivalent internal schema.

Provenance records what generated or influenced an artefact. It does not prove that the artefact is correct, safe or authorised. Those decisions require separate verification and approval.

AS-GS-011: Context integrity

Agent instructions, skills, architecture notes, policy rules and examples MUST be version controlled, reviewed and attributable. Changes to security invariants, tool permissions or release rules MUST require human approval.

The execution system SHOULD record the exact context version used by a run. It SHOULD detect contradictory instructions, unexpected context sources and material changes during execution.

An agent MUST NOT silently promote a local observation into an organisation-wide rule. A reusable correction belongs in a reviewed context change with an owner, rationale, test or example and rollback path.

AS-GS-012: Dependency and supply-chain risk

Dependency installation, build actions, CI plugins, model providers, agent tools and external repositories are part of the supply chain. The team SHOULD:

  • pin or constrain versions where practical;
  • review new dependencies and licences;
  • scan for known vulnerabilities and malicious packages;
  • restrict install and post-install capabilities;
  • verify repository and action provenance;
  • separate untrusted build steps from sensitive credentials;
  • retain dependency and tool versions in the evidence package.

The guardrail model does not assume that a package is safe because it is popular or that a model output is safe because it compiles.

AS-GS-013: Human-controlled release authority

Release authority MUST remain outside the Maker execution plane. A release decision should consider:

  • approved requirement and Build Plan;
  • final diff and migration state;
  • deterministic and independent verification;
  • security, privacy and dependency findings;
  • QA or product evidence;
  • observability and rollback readiness;
  • known residual risk;
  • the release window and affected users or systems.

The release approver MAY accept, reject, defer or require additional evidence. An agent MAY assemble the package and identify missing items, but it MUST NOT turn its own completion status into a release decision.

AS-GS-014: Verification and telemetry

Guardrails are only useful when their operation can be checked. The system SHOULD emit structured events for run start, capability grant, tool call, policy decision, check result, human decision, failure and release transition.

OpenTelemetry's signal model provides a useful vocabulary for traces, metrics and logs, but teams SHOULD adapt collection to privacy and operational needs. For an agentic run, useful telemetry MAY include:

  • trace context connecting orchestration, agent calls and checks;
  • counters for policy denials, retries and scope violations;
  • duration and resource use by stage;
  • evidence links for test and review results;
  • alerts for repeated failure, unusual access or credential exposure.

Telemetry SHOULD support investigation without becoming an uncontrolled copy of the agent's entire context.

AS-GS-015: Incident and near-miss handling

The team MUST have a response path for a suspected guardrail breach. Examples include leaked credentials, unauthorised repository changes, unexpected network access, a destructive command, poisoned context or evidence that cannot be trusted.

The initial response SHOULD:

  1. stop or isolate the run;
  2. revoke or rotate affected credentials and capabilities;
  3. preserve relevant logs, commits, artefacts and context versions;
  4. identify affected repositories, environments and data;
  5. assess whether the change reached a protected or production boundary;
  6. notify the accountable security and engineering owners;
  7. remediate, verify and document the outcome;
  8. decide whether a reusable context or control update is required.

Near misses should also be recorded when the control prevented impact. A near miss may reveal a missing policy, unclear tool boundary or review weakness.

AS-GS-016: Control evidence

For each governed run, the evidence package SHOULD make the following inspectable:

Table 94
ControlEvidence example
ScopeApproved plan, repository allow-list and changed-file summary
AuthorityRole, capability grant and human gate decision
IsolationSandbox, worktree and network policy identifiers
SecretsCredential class, expiry and scan result, without secret values
Making and checkingMaker identity, independent review and findings
Build integrityCommit, dependency lock state and build provenance
VerificationTest, static analysis and security results
ReleaseHuman approver, revision and release decision
RecoveryRollback, incident or rework record where relevant

If a control cannot produce evidence, the team MUST state that limitation and decide whether the work can proceed at its risk tier.

AS-GS-017: Exceptions and change control

An exception to a non-negotiable guardrail MUST be explicit, time-bounded and approved by a human accountable for the affected risk. It MUST state:

  • the guardrail and scope of the exception;
  • why the normal control cannot be used;
  • the threat and residual risk;
  • compensating controls;
  • start and expiry time;
  • approver and review owner;
  • conditions that revoke the exception.

An agent MUST NOT create, approve or extend its own exception. Changes to guardrails, security invariants, context permissions and release policy MUST be reviewed as security-sensitive changes.

What this model does not claim

This model does not claim that sandboxing prevents all prompt injection, that independent agents are automatically independent, that signatures establish intent by themselves or that audit logs prove an action was legitimate. It does not claim that a model, tool or protocol is secure merely because it has provenance.

It also does not claim that every agentic work item requires the same controls. Risk tiering is necessary, but a lower tier MUST NOT be used to hide an unassessed high-impact consequence.

The model does not prescribe Human Delegation Provenance, a particular identity system or a specific cloud platform. Those mechanisms MAY support a control, but they do not replace least privilege, isolation, independent verification or human release authority.

Document status and limitations

Security model, version 0.1. This document is a proposed methodology component for critique, threat modelling and implementation. It reports no measured security outcome and does not constitute a certification or adopted standard.

Sources

  1. IETF RFC8174rfc-editor.org
  2. NIST SP 800-218csrc.nist.gov
  3. NIST: ai risk management frameworknist.gov
  4. genai.owasp.org/resource/agentic-ai-threats-and-mitigationsgenai.owasp.org
  5. GitHub Docs: risks and mitigationsdocs.github.com
  6. slsa.dev/spec/v1.2/provenanceslsa.dev
  7. opentelemetry.io/docs/concepts/signalsopentelemetry.io
  8. Helixar: hdphelixar.ai

Corrections and material updates are dated on this page and recorded in the document status.