Context fuzzing: a bounded single-finding design¶
The credential-free study selected eight-sample exploratory comparisons and twenty fresh samples
per confirmation arm, within a 384-call modeled allowance. It tested discovery, mutation
simplification and confirmation for a planted target-rate decrease from .90 to .10. The minimum
complete-workflow success rate was 90.25%, with a simultaneous 99% lower bound of 88.86896%,
exceeding the prospective 80% gate. These results support the design for the specified synthetic
workload. The native measurements evaluate completed
Codex app-server and Copilot native-prefix append-text workflows, with their own input and
execution checks. Ordinary-session success rates remain unmeasured.
The study's rates and call counts describe synthetic work. For current implementation contracts, see architecture. The supported-inputs table defines public capabilities; ADR 0004 records the adopted procedure and alternatives.
Question and scope¶
The debugging question is whether a bounded context intervention decreases the probability of
the case's existing mechanical binary target: a match or nonmatch determined by the configured
oracle. The target stays fixed. Define
D = p_original - p_mutant, where each probability is conditional on valid execution, and test
D > delta for a frozen meaningful decrease delta. Two distinct nonmatching answers do not
constitute distinct findings under this target.
The first design allows at most one selected finding per campaign. Discovery and simplification are exploratory: they may adapt to earlier exploratory observations, but their screening decisions are never confirmation. Simplification removes parts of the added intervention, preserving the immutable original as the control. An empty intervention is that original, not another candidate to dispatch.
The study tests two mutations:
duplicate-textrepeats eligible prior user text within its existing field. It tests sensitivity to repetition. The study treats it as a no-effect control; native semantic equivalence is an assumption to investigate, not an established property.append-stale-textappends caller-supplied synthetic stale or irrelevant paragraphs to an eligible prior user field. This is intentional stress. An induced effect can be expected and useful without establishing a model defect, causal explanation or security vulnerability.
Both use the same append-text representation. The intervention binds an original context-node
selector, content-block index, original-text digest and exact appended bytes. At most one original
text field is edited per candidate. The 64 KiB UTF-8 payload limit bounds state; the study does not
qualify usefulness or native execution at that size. Nonempty mutations cannot be combined with
context removal. Whitespace, Unicode and line endings remain exact, except an empty append
normalizes to the empty intervention.
General JSON Patch, role/tool-schema changes, new native records, arbitrary record reordering, unknown/protected records, current decision-input mutation, original-context reduction, new harnesses, parallel model calls, shared original observations, LLM judges, multiple findings and sequential inference are outside this design.
Editable seam and evidence identity¶
Reconstruction checks identified eligible Codex input_text blocks in copied prior role=user,
type=message items. Instructions, tools, model/provider routing, policy, assistant text, tool
results and opaque/image blocks are excluded.
Copilot edits plain text in prior user.message records: transformedContent when captured,
otherwise content. It resumes the copied prefix without adding a user message. Both overlays
preserve native identities, record order, other fields and fixed triggering input, including
Copilot's completed-tool input.
The credential-free prototype checked no-op reconstruction, duplication and appended paragraphs
on sanitized fixture materialization. Non-text fields, trigger, source bytes and original objects
remained unchanged; rematerializing the original reproduced the original result. The fixture
evidence digest was
3ef4dfd942afde6d62e8e15c204f2a0887e6a60f2adf53ef94d905a28ca6b087.
This establishes a local overlay boundary, with no harness or provider execution.
The implemented materializers revalidate selectors, protected fields and original-value digests on
defensive copies. Pure candidate admission occurs before sampling allocation. Candidate identity
binds the complete intervention and the source, target, reconstruction, effective policy and
experiment; a generation seed/index or retained/removed partition alone cannot identify a mutation.
Codex and Copilot final-response capability profiles advertise append-text for these seams;
Copilot shell-action profiles remain removal-only. Native text discovery re-derives the saved
decision and context before the adapter enumerates editable fields. The fixed triggering input is
excluded. Native experimental support requires the qualification gate.
Confirmation method and assumptions¶
Use one-sided Clopper–Pearson bounds with gamma = alpha/2. For x_o original matches among
n_o valid observations and x_m mutant matches among n_m valid observations:
L_o = 0 if x_o = 0
BetaInv(gamma, x_o, n_o - x_o + 1) otherwise
U_m = 1 if x_m = n_m
BetaInv(1 - gamma, x_m + 1, n_m - x_m) otherwise
lower_difference = L_o - U_m
confirm exactly when lower_difference > delta
BetaInv(q, a, b) denotes the beta-distribution quantile. The implementation uses
scipy.special.betaincinv(a, b, q),
the inverse regularized incomplete beta function. The strict inequality matters: equality at the
effect boundary is inconclusive. Complete fixed sample targets are required; partial samples are
incomplete, and observations beyond those targets are rejected.
With independent stationary binomial observations in each arm, the probability that L_o
exceeds p_original is at most gamma, and the probability that U_m falls below p_mutant
is at most gamma. If neither failure occurs, L_o - U_m <= D. Therefore, under D <= delta,
a false declaration is contained in the union of those two failures and has probability at most
alpha. Discreteness makes the construction conservative. This is an analytic model-based
bound; a low simulated declaration rate is an implementation check, not its proof.
The argument requires selection using independent exploratory evidence. Freeze one mutation, target, payload, threshold, method, sample targets, eligibility and execution identity before reading confirmation outcomes. Both final arms must be fresh and disjoint from calibration, discovery and simplification. Selection ends search: no payload changes, substitution, outcome-driven sample extension or repeated confirmation until a pass. Recovery can finish the same frozen incomplete block after reconciling observations; it cannot replay unresolved dispatches.
This controls one selected comparison per campaign. It provides no guarantee over user-initiated
repeated campaigns or selectively reported favorable campaigns. Supporting up to K findings
would require a prospective allocation across all K comparisons, such as alpha/(2K) per arm
bound, plus new selection, capacity and persistence contracts.
The independent reference construction uses SciPy's
binomtest exact interval:
alternative="greater" with confidence 1-gamma for the original lower bound and
alternative="less" for the mutant upper bound. A central interval at 1-alpha/2 is a different
tail allocation. The study verified 352 count vectors against that API, symmetry, analytic
endpoints and independent standard-library binomial-tail equations. The maximum API difference
was 1.5543122344752192e-15. At n=10, the zero-match upper bound is .3084971078187607, and
the all-match lower bound is .6915028921812392.
Exact operating-characteristic enumeration covered original rates {.10,.50,.80,.90,1.00},
thresholds {0,.05,.10,.20}, and feasible decreases max(0, delta+offset) for offsets
{-.05,0,.05,.20,.80}. Sample pairs were (20,20), (40,40), (80,80), (20,40) and (40,20).
Combinations with p_mutant = p_original - decrease outside [0,1] were excluded, as specified
in the frozen programme. All count pairs were enumerated. A further 1,001-point null-boundary grid
per sample-pair/threshold had maximum false-declaration probability .0020214677846288323, below
the analytic .05 ceiling.
Neither finite grid establishes coverage outside the model assumptions.
SciPy was selected over a handwritten quantile solver. The study used Python 3.12.3, NumPy 2.5.4
and SciPy 1.18.1; its isolated numerical installation occupied approximately 183 MiB, including
bundled libraries. The implementation confines numerical imports to optional ithrl[fuzz] and
refuses a missing dependency before sampling preparation. Core extraction and reduction do not
require the numerical extra.
Prospective workload, protocol and utility gate¶
The study froze its programme, code, seeds, repetition counts, sample/budget menu, inference rule and acceptance criteria before evaluating workflow outcomes. It uses synthetic Bernoulli outcomes; it does not invoke a native model or estimate native response rates.
The workload has four prior-user history groups and a fixed final decision input with a mechanical
answer target. A stress mutation appends four synthetic stale/irrelevant paragraphs of
256, 1,024, 512 and 2,048 UTF-8 bytes, plus delimiters. One planted essential paragraph changes
the valid-match probability from .90 to .10; the others are irrelevant. The study varies all
four mutation placements and all four essential-paragraph positions. It separately tests all six
two-paragraph interactions at placement zero. Duplication and all-null controls have no planted
effect.
For adaptive workflows, success requires calibration, discovery, completed simplification, removal of at least half the planted irrelevant mutation bytes, retention of every essential component, and one complete eligible fresh confirmation. The byte criterion tests whether simplification produces useful inspection work on this fixture. It is neither a provider-token metric nor a general compression claim.
The prospective menu combines exploratory samples {3,5,8}, final samples {20,40,80} per arm,
and call ceilings {256,384,512}: 27 designs. Each post-calibration arm allows
A(n) = n + ceil(n/2) + 6 attempts. Calibration requires three valid observations and at least
two matches within seven attempts. A fresh original is collected for every comparison. Discovery
uses the first placement whose observed original-minus-mutant difference is at least .40.
Simplification removes added paragraphs in order, restarts after acceptance, caches identical
interventions and permits at most ten proposals. Empty interventions are refused without dispatch.
The utility gate requires at least 80% complete-workflow success in every single-component
placement/component cell at independent invalid rates {0,.05,.10,.20}. One-sided exact lower
bounds use tail error .01/2376, giving simultaneous 99% lower coverage across
27 designs * 4 invalid rates * (16 single-component + 6 interaction cells) = 2,376 adaptive
cells. Interaction inclusion separately requires every tested interaction's simultaneous lower
bound to exceed 80%. This utility multiplicity allocation is distinct from the final finding's
alpha=.05 allocation.
Each cell has 10,000 independent campaigns. Across the adaptive workflow and two baseline
workflows, the study contains 7,128 rows and 71,280,000 campaigns. Qualification seed is
2026102301; sensitivity seed is 2026102302. The predetermined design-selection rule chooses
the passing design with lowest all-run mean cost, breaking ties by smaller allowance and then
smaller final sample count. Selection therefore accounts for the whole prospective menu rather
than selecting a favorable unadjusted success interval.
Selected settings and synthetic cost¶
| Setting | Selected study design |
|---|---|
| Objective | Valid-only target-rate decrease strictly greater than .10 |
| Final inference | One selected finding, alpha=.05, exact union-bound method |
| Calibration | 3 valid, at least 2 matches, at most 7 attempts |
| Exploratory comparison | Fresh original 8 valid / 18 attempts; mutant 8 valid / 18 attempts |
| Discovery | Four placements, first screen-passing candidate |
| Mutation simplification | At most ten ordered paragraph-removal proposals; identical trials cached |
| Fresh confirmation | Original 20 valid / 36 attempts; selected mutant 20 valid / 36 attempts |
| Administrative allowance | 384 modeled calls, one call per attempt; 72 protected for confirmation |
The minimum single-component useful-workflow success was 90.25%, with simultaneous lower bound 88.86896%. The minimum tested two-component interaction success was 90.37%, with lower bound 88.99607%. These exceed the frozen gate within the declared workload envelope.
| Independent invalid rate | Single-component success range | Equal-weight mean modeled calls | Largest cell p95 calls |
|---|---|---|---|
| 0% | 91.14–94.25% | 149.75 | 203 |
| 5% | 90.86–94.33% | 157.52 | 221 |
| 10% | 91.26–93.88% | 166.39 | 236 |
| 20% | 90.25–93.60% | 186.16 | 269 |
All-run cost includes calibration failures, rejected mutants, simplification, inconclusive or incomplete work and independent invalid attempts. The maximum realized cost among selected single-component cells was 302 calls. The equal-weight mean over their 64 location/component/ invalid-rate cells was 164.95 calls. This weighting describes the simulation grid, not a measured distribution of user workloads. Per-cell p50, p95, maximum and terminal counts are retained with the reproducibility artifacts.
Whole comparisons are admitted using maximum arm-attempt capacity while protecting the complete final reserve. The model charges the required samples plus realized independent failures, capped by each arm's attempt ceiling; both arms incur cost even if one is incomplete. It models one provider call per attempt. Its sequential-arm IID draws have the same joint outcome law as interleaving under those assumptions; they do not model native incomplete-block early termination, latency, pacing or billing. No provider calls were actually made.
The implemented worst-case plan for four discovery and ten simplification comparisons is
7 + 14*(18+18) + 36+36 = 583 attempts. The 384-call administrative ceiling can stop exploration
earlier through whole-block admission; 583 is neither a required budget nor a new product default.
A two-call execution profile doubles call bounds. Runner timeout, cancellation grace, pacing and
command wall time require separate admission. Finite token limits must refuse if no estimator can
enforce them. Actual, additional possible and pending calls, plus unknown usage, remain distinct.
Alternatives and effect-size limits¶
The baseline workflows use the same calibration and exact final method. The sweep screens the same four placements and confirms the first hit without simplification. Direct confirmation uses one prespecified placement chosen uniformly, with no discovery or simplification.
| Workflow at selected counts/allowance | Worst confirmed rate | Worst simplified-and-confirmed rate | Equal-weight mean modeled calls |
|---|---|---|---|
| Adaptive discovery and mutation simplification | 91.74% | 90.25% | 164.95 |
| Four-placement sweep, confirm first hit | 92.66% | 0% | 88.62 |
| One uniformly chosen placement, direct confirmation | 22.72% | 0% | 46.16 |
Adaptive simplification costs about 76.33 additional modeled calls over the unshrunk sweep and produces the smaller witness. The sweep remains a lower-cost choice when a large mutation is acceptable. Direct confirmation's coverage is inadequate for this discovery task. This comparison does not establish that simplification saves calls.
Three- and five-sample screens failed the complete-workflow gate. Increasing only the final sample count did not repair their exploratory selection/simplification errors. Some small-allowance, large-holdout designs could not admit enough work without borrowing the reserve and correctly failed. A 384-call design with eight screening samples and 40 final samples also passed, but its 207.06 mean calls exceeded the selected design. At 512 calls, eight screening samples and 80 final samples passed at 291.25 mean calls. The predeclared cost rule selected the cheaper passing design.
The minimum effect of interest is .10, but usefulness is established for the much larger .80
planted decrease. Exact holdout power for .90 -> .10 with 20 samples per arm is 98.4711%.
For .90 -> .50, the same holdout has 16.0458% power; 80 samples per arm give 93.1864%. Those
moderate-effect numbers concern confirmation alone. The .40 exploratory screen would itself
need a prospective design study for smaller effects. No low-effect, arbitrary-session, native
success-rate or token-saving claim follows.
Nominal Newcombe preservation intervals remain appropriate to their existing declared purpose; they were not adopted as a strict campaign error guarantee for fuzz findings. The independent-proportion interval documentation describes the separate interval family. Repeated holdouts, shared exploratory/final observations, multiple findings without an allocation, and a custom beta-quantile solver were excluded to keep selection, error control and numerical implementation inspectable.
Validity and drift sensitivities¶
Execution reliability is a separate measurement. Errors never count as behavioral mismatches or enter Bernoulli denominators. Preserve invalid/error counts per arm, eligibility, unknown provider acceptance and conservative charges. Prespecified exclusions require verified outcome independence; the existing opt-in safe-overload policy also requires structured overload evidence, no captured output and verified safety/cleanup. It does not authorize blanket replacement of errors.
Under IID marked attempts with prespecified validity, obtaining a fixed number of valid samples
within an attempt ceiling leaves accepted outcomes binomial for the conditional target. Different
arm validity probabilities need not invalidate that explicitly conditional comparison. A sensitivity
with valid probabilities .95 original / .80 mutant, while holding conditional target rates at
.90 / .10, achieved 91.98% complete useful workflows.
With outcome-dependent validity, equal unconditional behavior can produce a conditional decrease.
A second sensitivity sets both unconditional match probabilities to .50. The original accepts
matches with probability 1 and nonmatches with .50; the mutant reverses these probabilities.
Both arms are valid with probability .75, but conditional match rates are 2/3 and 1/3.
The experiment declared 281 changes in 10,000 campaigns.
These are true conditional decreases; equal failure rates do not establish comparable unconditional behavior. No planted causative paragraph exists here, so geometry-based simplification-success metrics do not apply. An unconditional claim needs a different measurement design that accounts for outcome-driven filtering.
Across 22 all-null/duplication-control cells of 10,000 campaigns each, no final declaration
occurred. This does not prove zero error. A shuffled-arm common-drift sensitivity decreasing the
common response probability from .90 to .50 during confirmation produced 3 declarations in
10,000 campaigns. It deliberately violates stationarity, and the low observed count does not qualify
drift robustness. Interleaving and finite freshness mitigate temporal separation; they do not
demonstrate independence or stationarity.
The mutant conditional rate is 1/3 at every placement in the outcome-dependent-validity
sensitivity. Aggregate checks cover all 7,128 row counts, terminal/cost invariants and replay
equality.
Reproducibility and implementation evidence¶
The study artifact index identifies the sanitized programme, numerical method, source identities and aggregate evidence, with reproduction instructions. Its saved-result provenance records the corrected study's source hashes and sensitivity corrections. Each reproduction records its own source and dependency identities; the full qualification grid has not been rerun after public-source relocation. Simulation and pure fixture reconstruction require no credentials, native harness or provider. Study replay evaluates the prospective synthetic design; application tests check the implemented contracts and failure paths.
The architecture map locates the current implementation; statistical tests independently check tail equations, endpoints, unequal arms and strict boundaries. Composed sampling checks cover role separation, complete-block admission and failure handling.
Native applicability¶
The synthetic study selected the procedure and tested its assumptions before native execution. Its rates and modeled costs remain specific to that study.
Native campaigns apply the procedure to eligible prior-user text while preserving the selected
decision's triggering input. The Copilot semantic-import profile transformed the supplied trigger,
including a per-attempt <current_datetime> element. Its native-prefix SDK profile resumes the
captured records without adding a user message. Neither reconstruction establishes
identical complete provider input. The independent, stationary sampling assumptions apply to the
controlled harness surface.
See measurements for native workloads, results and costs, and native runs for execution instructions. Native qualification covers the measured reconstruction and request policy; changes require their own qualification. Copilot shell-action fuzzing remains outside this qualification.