All posts

Agent security

How to Measure False Blocks in a Coding-Agent Security Pilot

Measure false blocks against independently reviewed legitimate operations, and measure security misses against separately reviewed prohibited effects.

Harden cover: Measure False Blocks. A right-column case to label to result diagram illustrates the workflow. Conceptual editorial artwork; no measured result is depicted.

Executive summary

Measure false blocks against independently reviewed legitimate operations, and measure security misses against separately reviewed prohibited effects. Track useful task completion alongside both. A single block count cannot tell you whether a coding-agent control protects the workflow, interrupts ordinary work, or fails to observe important routes. Define the labels, denominators and acceptance criteria before collecting pilot results.

Define the unit before calculating a rate

A tool call, an intervention, a task and an incident are different units. A task can contain many calls and several retries. One blocked call can be followed by a successful safe continuation; another can halt the whole task. Reporting all of those as a generic success or failure conceals the reason.

Choose the primary unit for each question. Use reviewed decisions to study classification behavior, observed target effects to study containment, and tasks to study useful completion. Retain the relationship between them with minimized correlation references.

The NIST AI Risk Management Framework provides a broader structure for evaluating and managing AI risk. The worksheet here is our proposed pilot method. It is not a claim that a particular product meets a NIST certification or that a small pilot predicts every production outcome.

Establish labels outside the decision being graded

A false block is an intervention against an operation the reviewer has determined should have been permitted under the task and applicable policy. That label needs the actual target, identity and context. A command name alone can be insufficient: deleting a disposable fixture and deleting unrelated retained work can use similar syntax.

Have the workflow owner define intended useful work and have security identify prohibited effects. Resolve disagreements before calculating the affected rate, or retain them as unresolved cases with their own count. Do not let the control's reason string become the sole source of its own ground truth.

Keep cases requiring an unavailable fact out of a confident pass/fail label. Record the missing context and what evidence would resolve it. An ambiguous case can identify an instrumentation problem even when it cannot yet support a performance conclusion.

Use separate denominators

The following proposed measures answer different questions. Define the review window and inclusion criteria beside every reported value.

MeasureNumeratorDenominator
False-block rateLegitimate reviewed operations incorrectly stoppedAll reviewed legitimate operations
Prohibited-effect miss rateReviewed prohibited cases where the effect occurredAll reviewed prohibited cases
Intervention burdenOperations requiring the defined interventionAll eligible observed operations
Useful completionTasks meeting the independently checked acceptance criteriaAll eligible tasks started
Unresolved-case shareCases lacking a reliable label or required evidenceAll cases selected for review

For an illustrative calculation, suppose reviewers label 80 operations legitimate and four were incorrectly stopped. The false-block rate for that reviewed sample is 4/80, or 5%. If a separate set has 20 prohibited cases and two prohibited effects occur, its miss rate is 2/20, or 10%. These invented counts explain the arithmetic; they are not Harden measurements, benchmarks or customer results.

Neither rate establishes the other. A control that allows everything can avoid false blocks while missing every prohibited effect. A control that stops everything can avoid some effects while preventing useful work. The pilot needs both security and utility evidence.

Compare matched tasks without inventing equivalence

Use harmless pairs where one material fact changes. A permitted diagnostic transfer can be paired with a prohibited recipient variation. Keep the tool operation, environment and expected result explicit so reviewers can explain why the authorization changes.

Do not treat a fixture suite as a production prevalence sample. A deliberately balanced set of allowed and prohibited cases helps compare decisions, but its class mixture need not match ordinary work. Report that sampling choice and preserve separate results for different agents, tool classes and execution routes.

Record versions and policy revisions. If a configuration changes midway through the pilot, separate the cohorts or identify the change in the analysis. Combining different configurations into one headline rate can hide which boundary produced the result.

Inspect retries and the actual effect

A refusal is an observable decision, not the whole task outcome. Check whether the prohibited target changed, whether an alternate route executed the operation and whether legitimate work continued. A repeated call may be a retry of the same task rather than a new independent example.

Preserve those relationships without copying sensitive payloads into the measurement sheet. Link the operation to an authorized evidence record, configuration and reviewed target effect. When the effect cannot be established, keep the outcome unknown and explain why.

Failures deserve their own cohort. A missing handler, timeout or malformed response can have different behavior from a valid policy denial. Include those conditions in acceptance review, but do not silently classify an unavailable decision as either an accurate block or a harmless continuation.

Use findings to repair a specific problem

Investigate recurring false blocks by route, target and policy requirement. The cause might be missing context, an overbroad rule, unsupported parsing or a task that needs a properly owned exception. Reducing the count by broadly expanding credentials changes the requirement and can create a new miss.

Keep an owner for every material finding and verify the proposed correction using both the legitimate operation and a prohibited variation. Retest the affected path after an agent or integration update. Expand the pilot only when its accepted scope and unresolved gaps are clear.

Apply the method to a supported Harden workflow

Harden evaluates supported pending coding-agent calls against task context and policy. In a pilot, inspect its decision and the resulting effect on the actual configured route. Our research and evidence reports different evaluation protocols separately; do the same for your task sample and environment.

The enterprise rollout guide covers ownership and expansion. Bring a labeled task sample and coverage map to Control to evaluate the supported boundary. Keep proposed acceptance thresholds separate from observed results.

FAQs

Should false blocks be divided by all agent calls?

That denominator measures a different quantity. To assess incorrect blocking of legitimate work, divide reviewed false blocks by reviewed legitimate operations. If you also report the share of all eligible calls interrupted, label it separately and preserve the sample definition, review window and unresolved cases.

Can a successful task contain a false block?

Yes. The agent may recover through a permitted route and still complete the task after an unnecessary intervention. Retain both observations. Useful completion measures the task outcome, while false blocking measures the correctness of a particular decision under the reviewed policy and context.

How many cases prove the control is safe?

No fixed small count proves universal safety. Choose cases relevant to the actual authority, agent and tool routes, and report uncertainty and uncovered conditions. A pilot supports decisions about its tested scope; additional environments or consequential operations can require new evidence.

Should disputed cases be counted as successful blocks?

Keep them unresolved until the task owner and reviewer have sufficient evidence. State the missing fact and resolution owner. Moving ambiguous cases into the favorable category can make the reported rate look better while hiding an important evidence or policy-definition problem.

What is the first measurement artifact to create?

Create a worksheet containing task reference, route, configuration, independent expected outcome, observed decision, target effect, label, reason and follow-up owner. Use synthetic data for controlled tests. That record supports useful rates later; starting with a headline percentage usually hides missing definitions.