Context ablation: baselines, preparation and qualification¶
Ablation asks whether removing declared context decreases a fixed target's match probability.
The preparation workflow in #98 constructs
one existing compare experiment from an immutable case and an explicit baseline. It does not
search for important components, establish necessity, or extend a completed reduction run.
Issue #61 owns this design and its cost proposal;
#103 owns later native qualification.
This page records the accepted preparation design and prospective validation proposal. The comparison guide documents the implemented preparation and execution commands. Provider-free implementation and installed-command checks establish the offline contract described below. Complete the remaining provider-free features before one integrated maintainer qualification campaign under #103; separate ablation qualification is not a prerequisite for implementing alternatives or interactions. The historical study packages below inform that campaign's design but are not its approved execution plan. Ordinary users do not repeat the maintainer research suite. Each new investigation still needs its own frozen plan, calibration and fresh confirmation under the applicable statistical assumptions. This design changes neither reduction/fuzzing's immutable-original baseline nor their confirmation and recovery rules. Initial #98 authoring supports ungraded native comparisons. Refuse grading before any resolver can read a task/environment or launch a grader probe. Existing graded comparisons stay separate. Shared baseline, provenance and statistical contracts remain harness-neutral; native integrations own reconstruction and runtime-dependent admission. Public support remains defined by the supported-inputs table.
Two baseline questions¶
Let O be the immutable original, R one frozen retained selection, and A a declared removal.
Both arms keep the same fixed trigger, target/oracle/grader, execution profile and protected
environment. The reference is B; the candidate is B after the effective removal of A.
| Baseline | Reference | Candidate | Question |
|---|---|---|---|
| Full original | O |
O with A removed |
Does this removal degrade the target under the full captured context and declared reconstruction? |
| Retained context | R |
R with A removed |
Does this removal degrade the target conditional on the retained context and its existing edits? |
The directed estimand is p(reference match | valid) - p(candidate match | valid) under the frozen
execution and eligibility policy. Capture-time responses and earlier experiment observations
provide no new calibration or confirmation credit. A retrospective source can supply a prospective
hypothesis without establishing equivalence to the historical runtime or reasoning state.
A redundant carrier can mask an effect in O while its removal matters in R. Conversely, a
component's effect may depend on context absent from R. A confirmed degradation supports only
its declared comparison. Inconclusive confirmation or failed calibration establishes neither no
effect nor redundancy. A significant retained-context comparison beside a nonsignificant
full-original comparison does not establish that their effects differ; that needs the separately
designed estimand in #62.
Removal units and protection¶
Use original source-bound identities, not display indices or a rewritten retained transcript. Whole-record removal expands atomic groups and dependency closure: removing a prerequisite also removes its dependants. Report the requested selectors, effective removed units, baseline's common omissions and actual candidate partition separately. The effect concerns that complete change.
Protected/frozen nodes, the selected triggering input and opaque records remain protected by existing graph, source-validation and native-admission rules. Unknown native content is not made editable. If closure touches protected material, refuse instead of silently retaining part of the request. Partial text edits retain their native envelope and existing field limits. A visible removal does not establish absence of equivalent information from instructions, other carriers, opaque state or model knowledge.
The same requested selector can have different effective closure in O and R. Either the
prospective study proves the effective component group is the same, or its report names both
complete operations without interpreting them as an identical isolated-component intervention.
An absent requested unit, an already removed section or an unchanged effective candidate is a
refusal, not a negative behavioral result.
Retained inputs and evidence labels¶
Preparation accepts a full-original baseline from the case alone. A retained baseline must differ
from O and have a complete, re-derived selection. It has one of two explicit input modes:
- Recorded-preserving: a supported saved reduction records complete eligible preservation confirmation and its behavior profile is provably compatible with the prospective experiment. This is a statement about recorded historical evidence, not a fresh ablation verdict.
- Proposal: the operator explicitly supplies a validated saved selection or an explicit
ContextSelection. Its status is unconfirmed for the prospective question. Preserve any recorded loss, refusal, incomplete confirmation or profile mismatch; never call a losing selection a preserving reproducer. An explicit selection needs no previous paid reduction.
Default to recorded-preserving when a saved result is supplied. An unconfirmed result or unknown profile match requires the operator's explicit proposal mode; preparation must not downgrade it silently. An explicit selection is always proposal mode. These modes change provenance and input admission, not the new comparison's fresh calibration/confirmation requirements.
Saved-result admission¶
results/inspection.py::load_retained_result currently accepts deterministic kind="reduction"
and sampled kind="sampled" result directories. The nested sampled evidence has a different
sampled-reduction-evidence tag; it is not an independently importable retained result. Import only
complete published current-format snapshots, including published snapshots with partial evidence.
A live .runs directory or bare checkpoint is not a published result. Use the existing complete
loader and source replay, with its current-format, size and private-path checks.
Do not reconstruct missing identities from current settings or copy retained-context.jsonl alone.
| Saved evidence | Recorded-preserving mode | Explicit proposal mode |
|---|---|---|
Valid deterministic result with recorded confirmed-preserving and reproducible candidate |
Refuse a native-preservation claim: current deterministic fake-runner facts do not match a native profile | Accept with its historical deterministic label and no new sample credit |
Valid sampled result with complete eligible confirmed-preserving and compatible behavior profile |
Accept as recorded sampled preservation, with its margin/counts/assumptions | Accept; retain those recorded conditions |
| Confirmed candidate from incomplete search | Accept if all preceding confirmation and compatibility checks pass; search completeness is separate | Accept; report incomplete search |
Reconstructable selected candidate with confirmation not-run, incomplete or inconclusive, or interrupted/stopped search |
Refuse the preserving label | Accept a frozen proposal; do not resume the old run |
Valid selected candidate with recorded loses or failed confirmation |
Refuse | Accept only as an explicitly contrary historical proposal |
| Generic failed/refused result with an independently valid candidate and a historical execution/inference refusal | Refuse | Accept only when the structural and safety checks below pass; disclose the refusal |
| Missing candidate/checkpoint, malformed/inconsistent evidence, source drift, unresolved identity/protection defect, unsafe path or grading configuration | Refuse | Refuse; proposal mode is not a validation bypass |
| Calibration-only, fuzz or comparison snapshot; raw retained JSONL; obsolete/unsupported format | Refuse as a saved reduction | Refuse as a saved reduction; it may inform a separately supplied explicit selection without imported claims |
Derive a deterministic selection from the validated checkpoint partition. Derive a sampled
selection from that partition and its validated selected_mutation; retained IDs alone would
silently restore fine-removed text. Re-derive candidate identity under the saved plan's recorded
facts before translating the exact selection to the prospective plan. No-selection calibration
snapshots cannot become a retained candidate. RetainedResult.selection exposes this canonical
selection alongside validated typed snapshot/state facts, including confirmation eligibility,
search completion and unresolved dispatches. Admission uses those facts; raw summary status is
reported as unverified and cannot establish preservation. An unverifiable historical disposition
remains unknown.
Refuse a graded saved experiment before re-resolution; an operator may instead supply a separate
explicit ungraded selection without importing grading or preservation claims.
An old unresolved dispatch stays unresolved and charged in its old run. Preparation neither opens its observation store nor resumes, reconciles, cancels or modifies it. Read a bounded consistent snapshot of the required saved files, validate that snapshot, and freeze from those same bytes. Refuse a concurrent change rather than validating one version and publishing another.
Target and profile compatibility¶
Require the prospective experiment definition, not just a predicate label. The case default is
usable only when its experiment digest, target and oracle bindings match the recorded execution
input. NativePreparationReceipt contains a full resolved plan and oracle digest, but no complete
experiment definition. prepare_reduction currently uses the case default; that behavior cannot
recover an earlier custom predicate for comparison preparation. A validated existing native
ComparisonProfile is an alternative execution-facts input: it contains the full experiment and
plan. It is not a retained-result input and imports no pair observations or preservation claims.
The existing shrink --dry-run --save-preflight path requires the predicate to match the captured
response. Historically nonmatching targets therefore need a separately acquired comparison profile,
whose normal detection permits prospective predicates. If neither input is available, refuse
authoring; do not manufacture evidence or invoke detection implicitly.
Recorded-preserving admission compares behavior-relevant facts:
- Immutable case/source identity, fixed decision boundary and complete selected mutation.
- Target predicate/normalizer, oracle configuration and optional grader/task/environment bindings.
- Runner fingerprint and complete capability identity, including native protocol/runtime facts.
- Requested model, provider/destination, reasoning effort, replay/history projection and reconstruction/materialization method.
- Effective-policy declarations/binding and per-attempt resource limits.
Do not demand equality of the new and old experiment/plan digests: changing the statistical procedure changes them. Run IDs, search order, schedule seed, total administrative budget and reduction-versus-comparison procedure are not evidence of changed target behavior. Preserve their historical values separately.
Deterministic snapshots retain a full old plan. Sampled snapshots retain digest-bound
ExecutionPlanMetadata, including a full-plan content digest, and the old experiment. For sampled
compatibility, resolve that old ungraded experiment offline with the recorded input's
capability, runner fingerprint, policy and per-attempt limits. Require the reconstructed old plan's
entire inspection_metadata to equal the saved metadata, and compare old/prospective target and
oracle definitions separately. This checks a concrete matching plan without inventing missing
private fields. Failure to establish equality is incompatible or unknown, not presumed equality.
Unknown compatibility requires explicit proposal/rebind mode and a new comparison identity. Same model names do not prove immutable weights or stationarity. Recorded matching plans and receipts are unauthenticated inputs; their validation establishes structural association, not independent proof of historical execution, policy enforcement or current runtime readiness.
Offline preparation contract¶
ithrl prepare compare authors one existing comparison. The contract below is implemented without
adding a second collection engine.
| Required input | Contract |
|---|---|
| Immutable case | Revalidate source, graph, decision and source identities |
| Recorded native execution input | NativePreparationReceipt plus its matching experiment, or validated native ComparisonProfile; preserve recorded plan/capability/policy/limits |
| Prospective experiment | Ungraded definition matching the recorded input's experiment/target/oracle bindings; case default only on exact match |
| Baseline | Original, supported published reduction plus mode, or explicit source-bound ContextSelection in proposal mode |
| Additional removal | Supported record/group, paragraph or single tool-output-span selectors, subject to composition rules |
| Statistical/administrative settings | Explicit direction/effect/alpha, counts/gates, eligibility, freshness, seed, call/time ceilings and pacing |
| Verified protected workspace root | Independently operator-supplied canonical root; never trust a recorded path alone |
| New output directory | Private destination outside case, verified workspace and input/control paths; no overwrite |
Saved results, recorded paths and receipts are data. Do not follow commands, open recorded workspace contents, look up authentication, discover executables, detect capabilities, start a harness/grader, open an observation database or make network/provider calls. Missing execution inputs require a separate explicitly requested preparation operation. Independently supplied controlling directories may receive no-follow metadata/ancestor checks without reading workspace contents. The operator verifies the protected root's identity and separation; reject conflicting recorded paths or unknown overlap. Existing lexical destination comparison alone does not prove separation from an alias.
Structurally validate the immutable original before both selections: source/graph bindings,
dependencies, protection, recorded supported operations and materialization shape. Reuse
prepare_candidate, comparison binding/budget owners and private publication primitives. This is
not complete native admission. A runner may need private configuration not disclosed by a receipt;
its fingerprint cannot recover missing values. Defer those checks to explicit current preflight and
label the draft structurally-prepared; native-admission-unchecked. Structural original failures
remain terminal; candidate refusals are not behavioral nonmatches.
bind_comparison performs pure source-bound comparison checks from the recorded execution plan
without constructing a native runner. Preparation refuses grading before
resolve_execution_plan, which otherwise probes grading bundles/runtime. Native-specific examples
of remaining gates are Codex's configured tool_output_token_limit and Copilot's current native
prefix/policy controls. They are integration responsibilities, not shared ablation rules.
Recorded-input-to-comparison handoff¶
Keep the exact recorded-input experiment E, but derive the expected comparison experiment with
the existing CLI projection: preserve target, oracle and native runner choices, replace calibration
with one valid observation/one match/one attempt, remove reduction, and require no grading. The
comparison configuration owns the real two-arm counts. Resolve this projected experiment with the
recorded facts and bind both selections to that expected plan; its identity differs legitimately
from an unprojected shrink receipt. Before projection, require the input plan's case and experiment
digests to match the supplied case and exact E. For a ComparisonProfile, also apply the existing
source-binding check to both saved selections; private-file/internal-model validation alone is
insufficient. Preserve absent model/provider/reasoning overrides verbatim rather than writing
resolved defaults into E and changing its identity. Report resolved values separately.
Transfer the recorded request cap explicitly to detection with --max-provider-calls-per-attempt
and preserve timeout, cleanup and other enforceable limits. The current comparison CLI cannot
forward max_input_tokens; refuse a recorded non-null bound instead of dropping it. Provider/model,
reasoning choices and other recorded settings must agree; changed inputs require a new draft.
Detect the generated pair with those settings and save a new profile. Verify its exact projected
experiment, plan, arm/candidate digests, source/data scope, verified workspace, endpoint, policy and
limits against the draft. Drift requires review and a new package. Approve that exact profile for
dry run, calibration-only execution and same-run resume. The generated command retains
--preparation BUNDLE/ablation.json; detection, dry run and initial execution validate the profile
against the draft's expected identities and scope. Resume uses the frozen run inputs. A runnable
fresh profile alone does not establish draft-to-profile consistency.
Publish one new directory atomically, mode 0700, with mode 0600 files:
comparison.toml: the currentComparisonConfigurationformat with two exact selections and explicit settings; no invented removal digests or native write pointers.experiment.toml: exact ungraded input experimentE; preserve target/oracle bindings. Record its projected comparison digest separately rather than rebuilding a predicate from the answer.ablation.json: a bounded provenance/plan report binding case/input-file digests, baseline mode, old result kind/status/confirmation scope when present, compatibility/rebind decision, requested and effective removals, both source-bound selections/digests, receipt/experiment identities, projected experiment/expected comparison plan identities, required detection arguments, budgets and unresolved native-readiness gates.
The report contains no original source text, responses, credentials or full private plan. Paths
and hashes can still be identifying; keep the bundle private and use bounded content-safe CLI
summaries. Apply existing symlink, controlling-directory, overlap and atomic-write
rules. Refuse existing outputs and clean a failed unpublished staging directory without touching
inputs. Publication supports Linux with renameat2(RENAME_NOREPLACE) available in libc, the kernel
and destination filesystem; other platforms refuse before writing. A provenance file is not
authentication or execution authority.
The resulting native comparison must still pass separate current capability detection, profile binding, dry run and approved execution through the normal CLI. Generated files must not imply that the old receipt or an offline budget calculation proves current readiness. Provider-free tests exercise authoring, refusal paths and recovery through the direct wheel and a wheel rebuilt from its sdist. The research study itself remains separate from that production implementation.
Composition and refusal rules¶
| Baseline and requested operation | Decision |
|---|---|
| No existing mutation; supported additional whole-record removal | Apply dependency closure to the union of existing and requested record removals; preserve every common omission |
| Existing paragraph removal; additional record removal leaves the edited node retained | Keep the exact paragraph mutation and close the new record removal |
| Additional record-removal closure deletes the baseline's edited node | Refuse in the initial feature; do not silently drop the mutation |
| Existing paragraph removal; remove further surviving sections of the same original field | Re-derive the catalog and union original section IDs in canonical source order; preserve original text/policy identities |
| Existing mutation; additional text edit targets another field or incompatible operation | Refuse the multi-edit composition |
| Unmutated baseline; one tool-output span removal | Accept only with unchanged dependency-closed record partitions and an unmutated reference, as required by the existing comparison contract |
| Baseline containing an append, tool-output span or unsupported mutation | Refuse; initial authoring does not compose existing span edits or import comparison snapshots as reductions |
| Protected trigger, unsupported original, invalid selector/digest, absent unit, no-op or identical arms | Refuse before any observation or dispatch reservation |
The narrower edited-node refusal avoids adding a new equivalence obligation merely to normalize an irrelevant edit. Ordinary baseline omissions and mutations are frozen; preparation must not restore omitted records, alter earlier paragraph edits or expand the intervention to make it fit. Discovery of a text field does not establish experimental support for a target or native profile.
Collection, claims and recovery¶
Each ablation is a new two-arm comparison, with its own observation store/session and final block. Freeze its baseline, complete removal, target/profile, direction, thresholds, sample counts, eligibility and budgets before collection. Calibrate both exact arms, durably select the pair, then collect fresh fixed samples. Never append an ablation to a completed shrink/fuzz/compare run, repeat a completed holdout, or use final results to select a new component. Historical observations and provider-free controls supply no sample credit.
The current exact change method computes the positive/reference arm's one-sided Clopper–Pearson
lower bound minus the ablated arm's upper bound, allocating alpha/2 to each arm. Confirm a
decrease only when that lower difference is strictly greater than the frozen minimum effect.
SciPy documents the exact interval;
NIST describes exact binomial limits.
This requires independent, stationary valid Bernoulli observations under the frozen validity rules.
Provider/model drift, outcome-dependent exclusions and dependent continuations can invalidate
those assumptions; matching configuration names do not establish them.
For one declared comparison, the operator supplies its alpha. If several effects may be claimed,
freeze the complete claim family and its allocation before any final observations. The prospective
study below allocates family alpha=.05 equally over four contrasts: comparison alpha=.0125,
or .00625 per arm bound. The union bound gives at least 95% simultaneous coverage under the
individual method's assumptions; it needs no independence between contrasts.
NIST's Bonferroni guidance
describes finite prespecified contrasts. Independent held-out evidence protects against selection
feedback, subject to those assumptions; see
Dwork et al..
Operational errors, invalid/incomplete evidence and admission refusals remain distinct from valid nonmatches. Calibration failure ends that contrast; incomplete or inconclusive confirmation leaves the effect unestablished. None proves equivalence, irrelevance or historical necessity. Preserve actual, additional possible, pending and charged requests, unknown usage and all failed work.
Reuse existing whole-block admission, pacing, confirmation reserves, dispatch reconciliation and terminal-result publication. Unresolved dispatches are never redispatched. Completed comparison resume may recover publication but cannot collect again. Four study comparisons remain four independent existing runs with a frozen external study specification; this design introduces no product-level multi-comparison state or shared baseline ownership.
Provider-free examples and numerical checks¶
The research package exercises constructed context graphs and the current exact-confirmation/budget functions. It contains no native session or credentials and establishes no ordinary-workflow usefulness. Run its verification from the repository root in the locked contributor environment:
UV_PYTHON=3.14 uv run --locked --offline --no-sync python research/ablation/study.py --verify
The package owns exact commands, parameters and reference results. Its examples distinguish:
- A redundant information carrier in the full original from its role in a retained context.
- A complete dependency-group removal from a claim about one member.
- Protected/frozen material and unsupported edits from tested behavioral outcomes.
- Failed/incomplete evidence from a valid nonmatch or a confirmed decrease.
These constructed outcomes demonstrate interpretation, not a statistically confirmed difference between baseline effects. The numerical table enumerates the current fixed-sample test; it is not a simulation or measurement of provider outcomes.
| Assumed independent stationary rates, reference / ablated | Confirmation probability | Calibration plus confirmation probability |
|---|---|---|
.95 / .05 |
.9966304 |
.9822316 |
.90 / .10 |
.9009627 |
.8512151 |
.80 / .20 |
.2871492 |
.2305280 |
.70 / .30 |
.0240231 |
.0147659 |
Each contrast uses three calibration observations per arm (reference at least two matches,
candidate at most one), twenty fresh confirmation observations per arm, alpha=.0125 and
minimum effect .10. At 20/20 versus 0/20, the lower difference bound is .5517580125.
The plan is attainable but targets strong contrasts; it is poorly powered for many smaller true
effects above .10. Probabilities model only the automatic count gates with all attempts valid;
they exclude practical-review, delivery and safety gates. With no spare attempts, a modeled
independent 1% invalidity would multiply full 46-attempt completion by .99^46; real validity
can depend on arm/context, so this illustration is not a native completion forecast.
Confirmation power and conservative cost¶
The provider-free frontier compares twenty, forty, sixty and eighty fresh valid observations per
arm using the same exact directed method, four-contrast alpha allocation, minimum effect .10
and three-per-arm calibration gates. These are alternative fixed designs to choose before
collection. They do not authorize sequential looks, post-result extension or additional claims.
The original twenty-per-arm proposal and its numerical record remain frozen.
The calculation reuses current per-count arm bounds to enumerate all 12,404 count pairs. It
checks the accepted/refused boundary in every row through the current inference function, checks
the extreme closed form, and independently inverts finite binomial tail sums to verify every
bound and count-pair decision. Accepted regions contain 30, 238, 682 and 1,375 pairs.
Exact joint binomial mass over each region gives the following conditional confirmation
probabilities; values are rounded here.
| Assumed reference / ablated rates | 20 per arm | 40 per arm | 60 per arm | 80 per arm |
|---|---|---|---|---|
.90 / .10 |
.900963 |
.999912 |
1.000000 |
1.000000 |
.80 / .20 |
.287149 |
.840524 |
.989505 |
.999495 |
.70 / .30 |
.024023 |
.139573 |
.387369 |
.606204 |
Independent calibration gates multiply these probabilities by .944784, .802816 and .614656,
respectively. At .80/.20, the resulting count-gate-plus-confirmation probabilities are .230528,
.674786, .794391 and .802411. Confirmation growth cannot remove that calibration bottleneck.
All attempts are assumed independent, stationary and valid under frozen eligibility rules; the
calibration and confirmation blocks are separately fresh and independent. Practical agreement,
delivery, safety and operational failures are excluded. These are sensitivity calculations at
specified rates, not empirical rates or native completion forecasts.
The existing budget owners reserve six calibration attempts plus 2n confirmation attempts per
contrast, using the proposed 123 runner seconds and Codex/Copilot request caps of 3/1 per
attempt. No ceiling is raised in the calculation.
| Confirmation per arm | Attempts per contrast | Codex / Copilot request ceiling per contrast | Runner seconds per contrast | Four-contrast request ceiling |
|---|---|---|---|---|
| 20 | 46 | 138 / 46 | 5,658 | 368 |
| 40 | 86 | 258 / 86 | 10,578 | 688 |
| 60 | 126 | 378 / 126 | 15,498 | 1,008 |
| 80 | 166 | 498 / 166 | 20,418 | 1,328 |
Every larger design is refused first by the unchanged 138/46 per-contrast request ceilings.
All three also exceed the 7,200-second comparison clock and 10,800-second operator window,
even retaining the original fixed setup/control/review allowances. Their modeled comparison
clocks are 11,778, 16,698 and 21,618 seconds; their complete allowance sums are 14,193,
19,113 and 24,033 seconds per contrast. Sixty and eighty also exceed the strict
14,400-second confirmation freshness window: their confirmation reserves alone are 14,760
and 19,680 seconds. Larger review workloads have not been timed; keeping the original
1,800-second final-review allowance is a comparison assumption, not proof it remains adequate.
The historical bounded proposal keeps twenty per arm, the only listed design that fits its ceilings.
For a separately reviewed future budget aimed at .80/.20, forty provides .841 conditional
confirmation and sixty .990; eighty adds about one percentage point beyond sixty. Sixty is a
useful future budget comparison for that sensitivity, subject to revised call/time/freshness limits
and review feasibility. Even eighty remains weak at .70/.30, so the table does not support general
sensitivity or a preferred native method. No larger design is approved for dispatch. The
research package's frontier
owns the full six-rate grid, separate calibration probabilities, costs and reproducibility details.
Four preparation admission examples¶
| Input | Expected decision |
|---|---|
| Compatible current-format reduction with complete recorded preservation, even if its search was incomplete | Accept recorded-preserving input; collect new ablation samples |
| Published partial/interrupted reduction snapshot with a reconstructable best candidate | Refuse preserving mode; explicit proposal mode freezes it without touching the old run; a live run directory refuses |
| Old-profile reduction whose compatibility cannot be proved | Refuse preserving mode; explicit rebind/proposal mode may proceed if all new source and edit checks pass |
Explicit non-full ContextSelection, no saved reduction |
Accept only as an unconfirmed structural proposal; no historical preservation claim |
These admission decisions are implemented in preparation and covered by provider-free tests. Malformed, unsafe and identity-inconsistent variants refuse in every mode. The executable research package validates graph/statistical primitives separately; it is not the production authoring workflow or native qualification evidence.
Offline composition and publication checks¶
Bounded generated tests exercise dependency graphs and paragraph selections against independent expectations. Three properties each run sixty generated examples: exact transitive removal closure with existing omissions and edits; unions of paragraph removals across Unicode and LF/CRLF/CR boundaries; and refusal when a closure reaches protected or frozen material. The checks compare materialized requests and verify that inputs remain unchanged after success or refusal. They test composition invariants without starting a native harness or reusing observations.
Four Linux subprocess tests interrupt a disposable preparation command with SIGINT or SIGKILL immediately before or after the actual atomic publication rename. Before publication, the destination remains absent and retry succeeds. SIGINT cleans staging; SIGKILL can leave a complete private staging directory because cleanup cannot run. After publication, the bundle is complete and private, and retry refuses to overwrite it. Protected input bytes and modes remain unchanged in every case. These are process-interruption checks, not power-loss durability or native qualification evidence.
Measured offline preparation cost¶
The
preparation benchmark
measures the implemented offline path separately from the proposed native investigations below.
Measurements on 2026-11-28 used CPython 3.14.6 on x86-64 Linux/WSL2, at 13aeafe plus local
issue #98 changes. Each measurement had seven rounds of one operation after one warmup, with normal
garbage collection. Filesystem pages and imports may be warm; each operation loads fresh Python
case and graph owners. No production performance optimization was made.
The original-baseline operation loads the case and authors the pair. The retained-baseline operation loads and validates the saved result, then authors the pair. Both include production hashing and identity checks. Fixture construction, synthetic history collection, publication and fsync, profile serialization, and the benchmark's bookkeeping hashes/assertions are outside timing.
| Source shape | Input scale | Original mean ± SD, ms | Retained mean ± SD, ms |
|---|---|---|---|
| Small | 34 graph nodes, 32 messages | 5.81 ± 0.42 |
11.55 ± 0.34 |
| Large graph | 10,002 graph nodes | 661.58 ± 34.27 |
1,730.16 ± 45.44 |
| Large payload | 34 graph nodes, 32 messages, each below 1 MiB | 168.95 ± 4.61 |
259.47 ± 16.72 |
| Sampled history | 34 graph nodes, 29 blocks and 232 synthetic observations | 6.18 ± 0.40 |
74.18 ± 3.27 |
The large graph has 3,198,980 case-file bytes and 3,996,898 saved-result bytes. Its retained
comparison profile is 977,889 bytes, below the 1,048,576-byte preparation input bound; every
generated profile and bundle file fits that bound. The payload source trace is 14,747,532 bytes,
with 14,756,896 case-file bytes and 10,835,214 saved-result bytes. The history snapshot is
1,762,609 bytes. These admitted shapes exercise large inputs and a near-cap profile; they are
not maximum hardware-capacity forecasts.
A separate tracemalloc pass keeps the fresh evidence, saved result and prepared output alive
through the reading. The figures below are current/peak traced Python allocations in MiB, not RSS,
and exclude fixture construction:
| Source shape | Original current / peak, MiB | Retained current / peak, MiB |
|---|---|---|
| Small | 0.113 / 0.209 |
0.175 / 0.256 |
| Large graph | 16.884 / 28.521 |
23.617 / 49.119 |
| Large payload | 14.167 / 42.297 |
24.543 / 65.857 |
| Sampled history | 0.106 / 0.206 |
3.456 / 6.355 |
A three-call cProfile diagnostic attributed about 76% of retained large-graph time, 77% of
retained payload time and 91% of retained history time to saved-result loading/validation. The
graph's authoring remainder was about 24%. Profiling includes profiler overhead; these shares
locate validation work, not a demonstrated optimization or speedup. Complete publication and human
review remain outside the measured operation.
The history fixture uses native-shaped capability and accounting records solely to exercise the sampled format. It records complete eligible historical preservation, but its prospective fake profile is deliberately incompatible, so preparation labels the baseline a proposal with zero sample credit. All fixtures make zero actual provider requests and start no native harness. Reproduction commands and private benchmark-output handling are in the research package.
Complete installed command¶
A separate run on the same platform and date measured the built wheel's actual console executable in a fresh process for every operation. Timing includes interpreter startup/imports, argument and profile parsing, strict source/result checks, authoring, serialization, path validation, atomic publication and fsync, plus subprocess launch and output capture. Wheel build/install, fixture generation, profile construction and verification hashes remain outside timing. Temporary operator directories and an environment without provider or GitHub authentication isolate the installed command. No native harness or provider request is involved.
Each case has seven measured rounds, one warmup and one operation per round. The retained graph
profile is 977,971 bytes: 93.27% of the 1,048,576-byte input bound. The fixture checks that this
profile stays between 90% and 100% of the bound, and every profile remains admitted. The graph and
payload scales match the authoring benchmark above; the sampled history has 29 blocks and 232
synthetic observations.
| Workload / baseline | Median, seconds | Mean ± SD, seconds | Minimum–maximum, seconds |
|---|---|---|---|
| Small / original | 1.3227 |
1.3207 ± 0.1719 |
1.1146–1.5623 |
| Small / retained | 1.1480 |
1.1485 ± 0.0253 |
1.1207–1.1901 |
| Large graph / original | 2.1761 |
2.1762 ± 0.0194 |
2.1517–2.2016 |
| Large graph / retained | 3.9811 |
3.9801 ± 0.0689 |
3.9060–4.1155 |
| Large payload / original | 1.4280 |
1.5072 ± 0.1952 |
1.3558–1.8568 |
| Large payload / retained | 1.7275 |
1.7088 ± 0.0438 |
1.6245–1.7429 |
| Sampled history / original | 1.1809 |
1.1745 ± 0.0572 |
1.0774–1.2546 |
| Sampled history / retained | 1.2671 |
1.2709 ± 0.0431 |
1.2216–1.3437 |
All 64 fresh bundles, including warmups, passed source-bound selection and private-permission checks. The final command summary in each case reported zero provider calls and executed actions. Case, result, profile and runtime file hashes remained unchanged. Small-original and payload-original times show the largest variability. These are local observations with possibly warm OS caches, not latency guarantees or a before/after optimization comparison. Allocation figures above cover the pure operation; complete-process RSS was not measured. No production optimization was made.
The measured wheel's SHA-256 is
b212cace5acdd3921e4a7886dc50eaaf3a73fda9132f080b8621ae97f2c7b027; the private benchmark
result's SHA-256 is 86b79ad8ce9260596a3922e7ffe07c5b46b912bcd7cd51e64ecdf2a4a6360a6f.
The research package documents the separate reproduction command; raw machine metadata and paths
remain in ignored benchmark files.
Ordinary-case preparation rehearsal¶
On 2026-11-28, the installed wheel extracted cases from the original private Codex permissions
investigation and Copilot CI session, then prepared original and retained pairs through the normal
prepare compare console entrypoint. Historical comparison profiles and confirmed reduction
results were unavailable in the persisted artifacts. Fresh structural profiles and explicit
retained selections therefore supplied the preparation inputs; no historical preservation claim
or observation credit was imported.
Profile acquisition used metadata-only capability detection with Codex 0.172.0, Copilot
1.0.104 and the locked SDK, disposable operator directories and inert credentials. Local harness
probes ran with network denied; runner dispatch and observation-store construction were forbidden.
The initial empty Codex configuration refused unchanged-original reconstruction. Its largest
retained serialized tool output required an explicit adequate tool_output_token_limit; a declared
limit of 65,536 satisfied that prerequisite. This source-specific setting is not a product
default. Metadata detection establishes neither provider authentication/model availability nor
native delivery or behavioral qualification of the authored pairs.
The four subsequent preparation commands forbade native detection, runner dispatch and observation
store access. Each succeeded with structurally-prepared; native-admission-unchecked, zero actual
provider calls and executed actions, zero sample credit and no execution authorization.
| Case and baseline | Context nodes | Common whole-record omissions | Effective additional record removals | Paragraph edit in reference / candidate |
|---|---|---|---|---|
| Codex, original | 194 | 0 | 1 | None / none |
| Codex, retained proposal | 194 | 1 | 1 | One / the same edit |
| Copilot, original | 258 | 0 | 15 | None / none |
| Copilot, retained proposal | 258 | 1 | 15 | None / none |
Both baselines within a harness used the same additional removal root. Dependency closure expanded the Copilot removal to fifteen records. The retained Codex pair preserved the exact paragraph mutation from its supplied selection while adding a disjoint whole-record removal. Copilot's shell-action policy does not admit prior-user paragraph edits, so its rehearsal used whole-record omissions only.
Each pair specified targets of three calibration and twenty fresh confirmation observations per arm,
alpha .0125, minimum effect .10, seed 1729 and 14,400-second freshness. Prospective budgets
reserved 46 attempts and 5,658 runner/wall seconds, including 4,920 seconds for confirmation.
The detected Codex profile used a two-request attempt cap, giving 92 planned requests; Copilot's
one-request cap gave 46. Those exact request ceilings and a 7,200-second wall allowance were
supplied to preparation. The future proposal below retains its separate three-request Codex cap; the
rehearsal changes neither that budget nor the zero actual usage recorded here. An earlier small
rehearsal correctly refused an insufficient wall allowance; that refusal remains in the private
evidence.
Independent checks matched the exact source-bound selections and generated-file digests, verified
unchanged case/profile/selection bytes, modes and modification times, and checked native source
hashes against their case copies. All output directories/files used 0700/0600. During the four
preparation commands and their integrity audit, workspace contents and .git metadata were not
read or hashed; root metadata and output separation were checked. These results establish offline
preparation on the available cases, not unchanged whole workspace contents or delivery through a
native runner.
The recovered Copilot session has no completed final response. Its earlier shell-action decision provided preparation evidence; it does not substitute for the final-response diagnosis contrast proposed below. Neither that contrast nor a compatible saved native preservation result was demonstrated. The original investigation questions and native qualification gate remain unchanged.
Native detection and saved-profile handoff¶
The 2026-11-29 provider-free handoff check used the direct wheel and a wheel rebuilt from its sdist, both with the same runtime-module bytes and wheel hash recorded above. Each installation exercised the four ordinary original/retained designs through the normal installed console entrypoint. Guarded invocations forbade runner execution, comparison collection and observation-store access. The driver supplied inert authentication inputs for configuration resolution. Only source-profile acquisition and explicit capability detection could start the fixed native version/schema and SDK-ping probes, which ran with network access denied. Copilot's SDK probe received a credential-free environment; Codex substituted probe placeholders for required environment values.
All eight attempts with the original four bundles refused with capability-profile-mismatch.
Private diagnosis reproduced the recorded and current configuration digests: the earlier source
profiles omitted transport-environment settings present in the current checks. Both proxy and
certificate environment names changed configuration identity. Copilot's runtime identity also
changed with SDK installation paths. Native harness versions and protocols were unchanged.
The refusals preserved the original pins; their saved-profile dry runs were not attempted.
Four fresh source profiles were then acquired, one per harness and artifact origin. Their experiments matched the originals except for the current required-capability pin. Complete source plans matched after excluding capability, runner fingerprint and experiment digest; safety policy, resource limits, target, model and replay facts stayed fixed. Normal offline preparation produced eight new private bundles with the exact original selections, paragraph edits, comparison configuration and prospective budgets. No old profile, experiment or bundle was edited.
Each refreshed bundle's printed detection command was executed with a separate private profile destination. Its returned saved-profile dry-run command was checked in full before execution.
| Installed artifact | Codex original | Codex retained proposal | Copilot original | Copilot retained proposal |
|---|---|---|---|---|
| Direct wheel | detected → ready |
detected → ready |
detected → ready |
detected → ready |
| Wheel rebuilt from sdist | detected → ready |
detected → ready |
detected → ready |
detected → ready |
Both phases matched the preparation's full expected execution metadata and case, configuration, binding and candidate identities. Detection and dry-run reports matched each other's full context reports, limits and sample plans. Saved-profile dry runs started no detector and left their profile bytes and metadata unchanged. All preparation and dry-run commands made zero detector calls; all runner, collection and store guards remained untriggered. No model requests, observations or run state were created, and sample credit remained zero. These eight cells check artifact origins; no statistical experiment or error allocation was changed.
No-follow snapshots checked protected source files, case trees, original bundles and the complete
original workspace including .git. Initial attempts checked 2,401 entries before and after each
invocation. The refreshed path checked 2,406 entries, adding the exact final retained selection and
statistical/acquisition settings. Original preparation input-file digests also matched. Bytes,
modes, modification times and inode identities stayed unchanged within these scopes. Fresh source
profiles, bundles and detected profiles were checked as additional immutable inputs to later
phases. Outputs remained private.
The work made 38 installed-CLI invocations: eight initial refusals, two diagnostic repeats, four source-profile acquisitions, eight preparations, eight pair detections and eight saved-profile dry runs. They made 22 capability-detector calls; exact native process counts and total operator effort were not measured. Individual command timings, exact private arguments, hashes, refusals and guard audits remain in ignored private evidence. These counts are separate from the unchanged prospective inference budget.
The result validates current detection and saved-profile handoff for the declared cases and installations. It does not establish native context delivery, model behavior, a returned-action denial challenge or usefulness of the proposed investigations. Retained baselines remain proposals, the Copilot final-response source remains unavailable, and #103's qualification gate remains open.
Historical ordinary-investigation proposal¶
The design proposed one source per harness and two predeclared baselines per source. The published comparison studies supply concrete candidate questions. The preparation rehearsal above records current artifact availability and structural results; exact retained preservation, native delivery and behavioral eligibility remain unestablished. A public narrative does not reconstruct a private case or make an old result loadable.
| Source class | Fixed practical question | Removal and next developer decision |
|---|---|---|
| Ordinary Codex configured-grant investigation from the bundle study | Does the response correctly distinguish the captured configured direct grant from the replacement role's absence, without asserting live access? | Prospectively select one complete detailed policy-read group; test its removal with the other detailed reads present and with a declared reduced evidence selection. Decide which captured evidence to retain in a compact diagnostic package. |
| Ordinary Copilot CI-retry investigation from the tool-output study | Does the final response distinguish the first polling failure from the later collision/import failure without inventing an underlying platform cause? | Select the first-error tool-result group, including its dependencies; test full-original and a source-bound selection omitting declared duplicate carriers. Decide whether to retain the first-failure group in that diagnostic package. |
Each source must yield four exact inputs: O, O after its removal, R, and R after its
removal. The same source, target and current profile apply within each harness; no cross-harness
effect or population-rate claim follows. Native dependency groups may expand the proposed carrier;
if they alter the fixed trigger or fail the declared scope, record a refusal rather than silently
selecting a different unit. The prior studies tested different interventions and provide no new
sample credit.
The four prospective contrasts are Codex/full, Codex/retained, Copilot/full and Copilot/retained.
Freeze the exact selections, supported structural predicate, independent practical rubric, package
identities and family before study observations. A literal marker alone is not diagnosis
correctness: review both arms blindly against the frozen substantive rubric before unblinding
automated labels. Use an existing literal final-response predicate for these diagnosis questions,
not an unimplemented semantic grader. Before confirmation, require agreement on all six calibration
classifications with no unassessable response, in addition to the count gate. Final practical
acceptance requires agreement on all forty fresh classifications with no unassessable response,
alongside the directed bound. Run calibration with --calibration-only, freeze blind ratings, then
use the same run's --resume only if both gates pass. Plain compare would otherwise start
confirmation immediately. Keep reviewers blinded to arm/automatic labels until ratings are frozen,
including when the operator can already inspect CLI output. These are study gates, not defaults or a
general classifier guarantee. If a suitable predicate cannot satisfy the frozen practical criteria,
report a limiting workload rather than adding an evaluator or changing the question inside #98.
Preserve disagreements; a failed proxy-agreement gate cannot be repaired by changing predicates or
ratings after observing outputs. A new hypothesis needs a separate reviewed proposal.
Usefulness requires a concrete evidence-retention decision beyond what manual inspection alone already establishes, supported by complete eligible fresh evidence and independent practical review. Record what manual inspection already concludes before the experiment, then apply the following decision rules:
| Reviewed outcome | Developer decision and limit |
|---|---|
Accepted degradation for baseline B |
Evidence supports retaining the complete tested group in that diagnostic package under the tested profile; it does not establish individual necessity. |
Accepted degradation only for retained R |
Retain the group in the compact package; establish neither irrelevance in O nor a difference between the two effects. |
| Failed calibration, incomplete/inconclusive confirmation or failed practical agreement | No evidence-based removal decision follows; keep the question unresolved without claiming a useful simplification. |
| Retention was already obvious from manual inspection | Report corroboration rather than claiming additional usefulness beyond that inspection. |
Failure of one contrast does not authorize source replacement, another removal or reallocation of its alpha/unused calls. A safety, identity or action-denial failure stops every affected package pending review. Other frozen contrasts may continue only within their own approval.
Before any native operation, independently verify private case availability/current-format loading, retained selection and duplicate/opaque carriers. An explicit validated proposal avoids requiring a new paid reduction; its baseline must not be called a confirmed reproducer. Capture and authorize the exact data scope, provider destination, experiment/plan, runtime/artifact, model, limits and denial policy. Then require current original/baseline/ablated/undo delivery, protected-state and action controls. None of this native preparation or execution is authorized by this design task.
Historical bounded validation proposal¶
The following preserves the design's proposed package ceilings. These are conservative admission reserves, not expected elapsed work, measured human effort, execution approval or product defaults. The integrated #103 campaign must freeze its own exact packages and complete budget after provider-free implementation. Reject or revise before execution if current controls cannot enforce the selected limits. Use the default strict eligibility policy, no spare attempts, no automatic retries and zero pacing.
| Allocation | Per contrast | Two Codex contrasts | Two Copilot contrasts | Four-contrast family |
|---|---|---|---|---|
| Fresh calibration attempts | 3 + 3 = 6 |
12 |
12 |
24 |
| Fresh confirmation attempts | 20 + 20 = 40 |
80 |
80 |
160 |
| Maximum model attempts | 46 |
92 |
92 |
184 |
| Maximum physical inference requests | 46 × cap |
276 at cap 3 |
92 at cap 1 |
368 |
| Reserved model-runner seconds | 46 × 123 = 5,658 |
11,316 |
11,316 |
22,632 |
| Separate provider-free native controls | 5 |
10 |
10 |
20 |
| Separate control-runner seconds | 5 × 123 = 615 |
1,230 |
1,230 |
2,460 |
| Setup operations / allotted seconds | 4 / 600 |
8 / 1,200 |
8 / 1,200 |
16 / 2,400 |
| Calibration blind-review allowance | 600 seconds |
1,200 |
1,200 |
2,400 |
| Final blind-review allowance | 1,800 seconds |
3,600 |
3,600 |
7,200 |
| Model/control/setup/review allocation | 9,273 seconds |
18,546 |
18,546 |
37,092 |
| Operator window | 10,800 seconds |
21,600 |
21,600 |
43,200 |
The five future zero-forwarding controls are unchanged original, exact baseline, ablated context,
undo and a denied-action challenge. Absence of an action is not proof of denial; preserve the
effective permission category and actual challenge outcome. These are bounded native probes
requiring separate approval, not operations performed by the provider-free study script.
Undo restores the exact reference baseline B, including every pre-existing omission and text
mutation; it restores the full original O only when B is itself the full-original baseline.
Propose 120 seconds per attempt plus 3 seconds cleanup. Confirmation reserves 4,920
runner seconds and 120 Codex or 40 Copilot requests per contrast. Keep the existing two-hour
comparison allowance and four-hour freshness setting for each block; strict freshness admission
refuses a window equal to the required remaining duration. Calibration blind review and resume
must fit the original run clock while preserving the complete confirmation reserve. Conservatively,
model work plus the 600-second calibration review and all 600 setup seconds requires 6,858 of the
7,200 comparison seconds. Stop if elapsed time makes the remaining block inadmissible.
The chronological schedule below uses the same allocations. Start the outer operator window with the first allocated setup operation. Each setup operation has at most 150 seconds, including verified cleanup, and forwards zero inference requests. A saved-profile dry run does not detect again or start a harness. Never reset the persisted comparison clock at the review/resume boundary.
| Order | Work | Existing allocation |
|---|---|---|
| 1 | Acquire recorded input if needed; author the pair offline; detect it; compare the detected profile with the draft; inspect its saved-profile dry run | Two setup windows: at most 300 seconds; offline authoring and comparison use the local overhead allowance |
| 2 | Original, reference baseline, ablated, exact-reference undo and denied-action controls | 615 seconds |
| 3 | Redetect and run calibration only | 150 setup + 738 attempt seconds |
| 4 | Freeze blind calibration ratings and apply both gates | 600 seconds within the comparison clock |
| 5 | Redetect and resume the same run for fresh confirmation | 150 setup + 4,920 attempt seconds |
| 6 | Freeze final blind ratings and report the disposition | 1,800 seconds after terminal collection |
The schedule totals 9,273 seconds within the 10,800-second outer window. Do not hide an extra
probe or retry outside those windows; unavailable evidence or unfinished setup stops the package.
The 184 model attempts plus twenty named controls total 204 attempt/control invocations, not all native processes. Exact process counts inside detection, SDK startup and receipt acquisition remain unknown until profile freeze and must be recorded separately. The research JSON states that limitation instead of asserting a complete native-process ceiling.
The schedule leaves 1,527 seconds for local overhead, including offline authoring and the
draft-to-detected-profile comparison. If review cannot finish, retain
the evidence with practical acceptance pending; do not extend or repeat inference. These are
scheduled allowances, not measured human effort or enforced filesystem deadlines.
Serial model-runner ceilings total 6 h 17 min 12 s; including controls gives 6 h 58 min 12 s.
Adding setup and both review allowances gives 10 h 18 min 12 s within four three-hour operator
windows (twelve scheduled hours). The four comparison clocks separately total eight hours; they
exclude controls and final review. Current admission still accounts for elapsed time, future pacing
and confirmation capacity. Case discovery/authoring, metadata traffic and billing remain separate
or unmeasured. Record failed setup, review intervals and all available costs without confusing them
with provider usage or a hard end-to-end deadline. These hour totals sum maximum reserves and
unmeasured review allowances; they do not estimate the time a maintainer will spend.
The proposal caps model attempts and conservative inference exposure, not aggregate tokens or money. Known usage remains distinct from unknown usage, additional possible calls and pending reservations. No old observations, separate pilot, extra shrink, new grader-generation run or paid fixture generation is included. Any need for them requires a separately reviewed budget.
Implemented contract and qualification handoff¶
The accepted design defines the baseline/removal contract, input admission, profile compatibility, private publication and fresh-evidence requirements. The implementation supplies canonical saved selection extraction, pure offline binding, draft-to-profile checks and private atomic publication. Provider-free composition, interruption, refusal and installed-artifact checks validate those boundaries. The dated measurements and rehearsals above retain their original artifact scope; they are not qualification of a later build.
Preparation reuses the existing collector and current-format validation. It does not add migrations, another sampler, automatic ablation search, multiple-reproducer selection, interaction inference or minimality. Those separately scoped provider-free features precede the integrated #103 campaign.
Statistical checks, source inspection and constructed examples do not satisfy #103's native qualification gate. Its exact private artifacts, current runtime, approved routing, action denial, complete budget and useful ordinary investigations require separate verification and execution approval. Provider execution, issue closure and capability publication remain separate decisions.