Memory & intelligence / Research preprint
Receipt-to-Reflex: Bounded Learning, Counterfactual Evaluation, and Recursive Gain
Atom McCree and ChatGPT (GPT-6 Astra Pro, OpenAI)
November 1, 2026 · Edition 1.0 · Printed pages 44–51
Cite this paper
Atom McCree and ChatGPT (GPT-6 Astra Pro, OpenAI). “Receipt-to-Reflex: Bounded Learning, Counterfactual Evaluation, and Recursive Gain.” Æ Research Compendium, edition 1.0, November 1, 2026, paper 06, pp. 44–51. https://atomeons.com/compendium/paper-06
Receipt-to-Reflex proposes converting repeated, verified work into a reusable deterministic procedure after counterexample testing and rollback design. The recovered October book supplies the fuller Reflex Foundry lifecycle and related interference, transfer, currency, and capability-aging mechanisms. This paper reconstructs these ideas as a bounded learning system whose objective is future net value rather than accumulation of memories or adapters. We separate evidence that a procedure succeeded once from evidence that it transfers, distinguish simulated counterfactuals from observed outcomes, and derive an exact zero-failure confidence bound under an independent-trial model. The edition proposes a controlled four-condition experiment for recursive gain and a cost model that includes construction, retrieval, maintenance, and interference. It also preserves unresolved branches such as four-tier consolidation without inventing missing definitions. No end-to-end self-improvement result is claimed; the contribution is a precise, falsifiable account of what such a result would require.
Paper 06. Receipt-to-Reflex: Bounded Learning, Counterfactual Evaluation, and Recursive Gain
Atom McCree and ChatGPT (GPT-6 Astra Pro, OpenAI)
Research preprint, preservation and formalization edition, November 1, 2026.
Abstract
Receipt-to-Reflex proposes converting repeated, verified work into a reusable deterministic procedure after counterexample testing and rollback design. The recovered October book supplies the fuller Reflex Foundry lifecycle and related interference, transfer, currency, and capability-aging mechanisms. This paper reconstructs these ideas as a bounded learning system whose objective is future net value rather than accumulation of memories or adapters. We separate evidence that a procedure succeeded once from evidence that it transfers, distinguish simulated counterfactuals from observed outcomes, and derive an exact zero-failure confidence bound under an independent-trial model. The edition proposes a controlled four-condition experiment for recursive gain and a cost model that includes construction, retrieval, maintenance, and interference. It also preserves unresolved branches such as four-tier consolidation without inventing missing definitions. No end-to-end self-improvement result is claimed; the contribution is a precise, falsifiable account of what such a result would require.
1. Provenance and the central claim
The current public architecture describes Receipt-to-Reflex as promoting recurring proven work into deterministic code, with recurrence evidence, counterexample testing, and rollback design. This is a bounded improvement mechanism. [W03] Earlier records describe shadow-only relevance learning, governed promotion and rollback, staged diagnosis, calibrated prediction, contradiction-as-debt, and exact-path Fixer regression closure. An August recovery ledger classifies several learning mechanisms as doctrine or partial work rather than fully operational evidence. [M29]
The ZEUS lineage adds a recursive objective: mission, temporary expertise, experiment, verified answer, reusable asset extraction, promotion, and cheaper or better future missions. Retained assets may include tools, procedures, datasets, benchmarks, adapters, experts, topologies, Cognitive Images, and user conventions. Retention is conditional on future value exceeding storage, retrieval, maintenance, and interference costs. [M29]
The recovered proposal is therefore more demanding than “remember successful answers.” It requires a transformation from situated evidence into a reusable object, with a defensible domain of application. This edition supplies a lifecycle model, statistical limits, and an experimental design. It does not treat previous assistant reports of progress as fresh verification.
2. Related work and the relevant distinction
Reflexion uses verbal feedback to support learning across attempts. Voyager builds and reuses an executable skill library in a specific environment. DreamCoder learns reusable program abstractions through a structured learning process. [M14][M15][M16] These provide substantial prior art for reflection, skill retention, and library growth.
Receipt-to-Reflex’s research distinction is the admission boundary between a successful trace and a promoted deterministic behavior. The boundary requires recurrence evidence, tests against plausible failures, an applicability contract, and a withdrawal path. The useful question is whether this governance improves net reliability and cost relative to simpler reuse, not whether reuse itself is new.
The earlier summary named Reflex Foundry without enough detail. The subsequently recovered October book resolves that gap: successful outcome, recurrence evidence, candidate mechanism, shadow execution, comparison with the original route, protected-capability checks, promotion, and rollback pointer. It explicitly distinguishes a verified transformation from a cache of answers. Receipt-to-Reflex and Reflex Foundry therefore belong to the same documented improvement family, while the sources do not establish that they are identical software modules. The strongest stated aim, Outcome Compression, is to replace routine reasoning with a cheaper durable procedure. [R28]
3. From receipt to candidate capability
Define a receipt as a record
𝑟= (𝑥, 𝑎, 𝑣, 𝑒, 𝑦, 𝑐, 𝜔),
where 𝑥describes the starting state, 𝑎the action or procedure, 𝑣the relevant component versions, 𝑒the observed evidence, 𝑦the outcome, 𝑐resource cost, and 𝜔the conditions under which the record was obtained. A receipt is evidence that a particular sequence occurred under recorded conditions. It is not by itself a general law about the procedure.
A candidate reflex is a package
𝑓= (𝑃, 𝐷, 𝑇, 𝐹, 𝑅),
where 𝑃is the executable procedure, 𝐷its applicability domain, 𝑇its tests, 𝐹its fallback policy, and 𝑅its rollback or revocation mechanism. These fields are a proposed schema for this edition. The historical sources do not provide a canonical serialized format.
The candidate is narrower than the original task whenever necessary. An agent may solve a complicated document task through substantial reasoning, while the reusable discovery is only a reliable page-number normalization step. Compiling that step does not require claiming that the entire document task has become deterministic. Conversely, reducing a broad procedure to code without retaining its assumptions can make it fast and wrong.
The lifecycle is candidate extraction, offline verification, shadow evaluation, bounded activation, continuing monitoring, and promotion or withdrawal. Stages can be im-
plemented differently, but each addresses a distinct inference. Extraction asks what might generalize. Offline verification asks whether the artifact satisfies known cases. Shadow evaluation asks how it would behave on current inputs. Activation observes real downstream effects. Monitoring detects changes that invalidate the earlier evidence.
4. Net value and the meaning of recursive gain
Let Δ𝑢𝑡be the expected improvement in utility on future use 𝑡, measured relative to a frozen baseline at comparable task conditions. Let 𝛿∈(0, 1] discount distant uses. A candidate’s estimated net value is
𝑉(𝑓) =
𝑁 ∑
𝑡=1 𝛿𝑡𝔼[Δ𝑢𝑡] −𝐶build −𝐶store −𝐶retrieve −𝐶maintain −𝐶interfere.
All terms must use the same utility unit or remain separate objectives. Interference includes errors induced by stale retrieval, conflicting procedures, routing confusion, and resource competition. A large library can have negative marginal value even when each item once succeeded.
Recursive gain requires that retained assets improve subsequent capability creation or execution after their own costs are counted. Merely storing more records is not gain. A system that becomes faster on exact repeats but worse on unfamiliar tasks has learned a narrow cache, which may be useful but does not establish broader improvement.
A useful longitudinal quantity is cumulative net gain
𝐺𝑁=
𝑁 ∑
𝑡=1 (𝑈adaptive 𝑡 −𝑈frozen 𝑡 ) −𝐶extra,𝑁,
where 𝐶extra,𝑁includes all additional learning and maintenance cost. The baseline must remain evaluable throughout the study. Otherwise changes in task difficulty, infrastructure, or model version can be misattributed to learning.
There is no guarantee that 𝐺𝑁increases forever. Distribution shift can invalidate assets; candidate discovery can saturate; maintenance can grow faster than reuse. The scientific claim should therefore specify a horizon, environment, resource budget, and held-out task family. Unbounded self-improvement is a different and unsupported proposition.
5. Shadow learning and Counterfactual Twin
Shadow learning observes or scores candidates without granting them authority to affect the production decision. The recovered August doctrine specifically includes shadow-only relevance learning. [M29] A candidate retrieval scorer can therefore be compared with the active scorer on the same queries while its choices remain nonbinding. This reduces the immediate cost of an unsuccessful candidate, but does not by itself establish the outcome of acting on its choices.
Counterfactual Twin is recovered as alternate-path replay before promotion. [H09] The October book specifies a selective shadow world at high-leverage decisions, rather
than an expensive full duplicate of every mission; predicted and observed residuals inform later routing. [R28] The key question is what can be replayed faithfully. If a task is a deterministic file transformation with a frozen input and isolated environment, both procedures can run and their outputs can be compared. If a task involves a changing external service, a human response, or an action that alters later observations, recorded replay may not reproduce the alternative trajectory.
Let 𝑌(𝑎) denote the outcome that would occur under action 𝑎. A log records the out-
come of the chosen action, not all 𝑌(𝑎). A simulator produces ̂𝑌(𝑎); its predictive error must be established separately. Calling it a twin does not remove this identification problem.
Selection also affects shadow evidence. If the active policy attempts only easy cases, a candidate evaluated on those cases has not demonstrated performance on rejected hard cases. If the simulator uses the candidate’s own assumptions, apparent improvement may reflect a shared error. A defensible evaluation therefore freezes the replay environment, states what external effects it omits, and uses independent outcome checks where available.
Rollback has similarly bounded meaning. Reverting a code version or routing policy can stop future use. It cannot always undo an external action that already occurred. The candidate’s activation domain and fallback need to be chosen with that distinction in view. This is part of the mechanism’s semantics, not an optional label attached after deployment.
6. How much evidence does promotion require?
Suppose a candidate has constant failure probability 𝑝on independent representative trials. Observing zero failures in 𝑛trials has probability (1 −𝑝)𝑛. Setting this equal to a one-sided significance level 𝛼gives the exact zero-failure upper bound
𝑝upper = 1 −𝛼1/𝑛.
At 𝛼= 0.05, zero failures in 10 trials leaves an upper bound of approximately 25.9 percent; 100 trials gives 2.95 percent; 299 gives just under 1 percent. The accompanying script calculates these values directly. They are mathematical consequences of the model, not observed product failure rates. [M33]
The calculation exposes a common promotion error: a handful of successful demonstrations cannot establish a small failure probability. Repeated near-duplicate cases also do not satisfy the independence and representativeness assumptions. If every test uses the same hidden template, increasing the number of random surface variations can create a misleading impression of evidence.
Candidate selection introduces multiplicity. If many variants are tested and only the best is reported, its observed performance is optimistically selected. A simple conservative control allocates a total error budget across candidates, but repeated adaptive testing requires a declared sequential procedure or fresh held-out evaluation. The point is not to impose one universal sample count. It is to make the relationship between evidence and the claimed reliability explicit.
Failure severity changes the decision as well. A reflex for reversible formatting can be useful with a modest fallback rate. A procedure whose errors invalidate an entire
artifact may require stricter gates. Reliability targets belong to the task contract; they cannot be inferred from the word reflex.
7. Preserving the deeper learning branches
The recovered June doctrine includes prediction, surprise, Insight, four-tier consolidation, and disposition-to-reward propagation. [M30] Their exact algorithms are not available. This edition preserves their intended relationships while distinguishing new operational interpretations.
The June record also names an N-branch sampler with a value scorer and explicitly acknowledges hand-coded priors. [M28] This preserves a search-and-selection direction: produce candidate continuations, score them, and choose or investigate a branch. The source does not recover the scoring function, branch-generation distribution, or training objective. More branches can increase search coverage while also increasing cost and selection error; an evaluation must compare equal total sampling budgets and measure scorer reliability on held-out branches. The presence of designed priors is part of the method’s resource accounting, not evidence that intelligence emerged without prior structure.
A proposed interpretation of prediction-to-Insight is that a system records an expected outcome, compares it with the observed one, and investigates a material residual before creating a reusable explanation or procedure. Surprise alone is not insight: noise, corrupted data, and an incorrect measurement convention can all produce large residuals. A candidate insight must explain or improve something on evidence beyond the event that suggested it.
Disposition-to-reward propagation suggests relating operating tendencies to observed outcomes across a task. A valid implementation would need explicit credit-assignment rules and controls for confounding. A tendency that appears in successful runs may not cause success. No biological reward mechanism or neuroscience claim follows from the terminology.
Four-tier consolidation remains a named design without enough evidence to assign meanings to its four tiers. The October book does resolve Semantic Interrupts: model cognition is awakened by novelty, contradiction, risk, or missing capability. This is a sparse activation policy, with the exact detection thresholds and implementation still requiring validation. [R28]
Staged diagnosis and exact-path Fixer regression closure concern a narrower operational principle: a proposed repair should identify the affected path and produce evidence that the relevant regression is closed. This edition’s interpretation requires the failure case to remain in the test set. Merely changing a nearby file or obtaining a successful unrelated test does not establish repair. The historical activation rule also requires an enforcement mechanism and a falsifier; a doctrine becomes operational only when a concrete system can reject its violation. [M29]
7.1. Interference, aging, and model currency
The Adaptation Interference Gate compares a candidate against protected behaviors before promotion. A router that improves mean latency while damaging a protected task, or a memory index that suppresses contradictory evidence, has not earned admission merely through its average score. This is the source’s explicit treatment of learning as controlled deployment. [R28]
Skill Metabolism preserves the lifecycle discovered, quarantined, proven, active, aging, challenged, and superseded. Superseded does not mean deleted: an older capability can remain a useful fallback, and its failure history explains later design choices. Model Currency applies this lifecycle to model and tooling changes while preserving stable roles. The source requires compatibility probes, protected-task comparisons, quality and resource measurements, lease-level replacement, rollback, and a streak of successful terminal activations. It supplies no universal streak length, and this edition does not invent one. [R28]
This distinction between role and body connects learning to memory continuity. A model swap may preserve Scope Genome, current accepted state, receipts, and custody while requiring new model-specific continuation state. Reusing the old external ledger does not prove that the replacement has inherited the old hidden computation. Compatibility testing must therefore distinguish external contract preservation from internal-state migration.
Current Awareness watches authoritative releases and research to produce suitability packets containing provenance, affected capability, expected value, compatibility constraints, falsifier, migration cost, and a proposed experiment. Insight Harvester similarly preserves unexpected findings as structured candidates. The Cross-Project Transfer Gate requires measured structural similarity, evidence authority, and domain compatibility before promoting a lesson from one project into another. These functions turn novelty into a testable candidate without granting novelty execution authority. [R28]
The source’s shadow-adaptive-baseline rule adds a temporal constraint: learning from new operation must not rewrite already accepted proof. A revised predictor, scorer, or baseline receives a new version, while the earlier forecast, comparison procedure, evidence, and acceptance decision remain reconstructable. Recomputing a historical score under the new baseline can be useful, but it is a new analysis attached to the old record, not a replacement that makes the original decision appear better calibrated than it was. [R28]
7.2. Saved work, public proof, and the outcome objective
Saved-Work Certificates record the context, calls, bytes, time, and reasoning avoided by a promoted procedure. Their purpose is to expose costs displaced into warm-up, hydration, or degraded quality. A certificate should therefore identify the baseline, environment, workload, artifact version, measurement boundaries, and quality comparison. The source supplies the accounting aim; these explicit fields are this edition’s proposed reproducibility contract. [R28]
The Public Proof Compiler extends internal receipts into an externally inspectable package: claim, method, environment, source, artifact, test, limitations, reproduction command, hashes, and raw evidence. It does not mean automatic publication or independent certification. An honestly complete package can contain a negative result. The Outcome Economy then measures verified useful outcomes relative to scarce resources such as operator time, model time, memory, and energy-related cost. [R28]
The units require care. Watts measure power, while joules or watt-hours measure energy. A phrase such as outcomes per watt is meaningful only with a stated throughput and time convention; for a completed workload, outcomes per joule is a clearer energy-efficiency measure. Operator minutes, model-seconds, and peak gigabytes also describe different constraints and should be reported as a resource vector or Pareto
comparison. A scalar score requires explicit weights, not an unexamined sum of unlike units. This dimensional clarification is a new correction in the present edition.
The recovered Orange Self-Design Loop closes the family: observe the system, identify a high-value limitation, generate competing mechanisms, simulate bounded effects, implement the smallest candidate, shadow it, measure, promote or reject, and preserve the lesson. The contribution is the bounded experimental transition, not a guarantee that self-modification will improve the system. [R28]
8. A controlled recursive-gain study
The historical plan names Mission A/B/C/D tests, but their exact mapping was not recovered. [M30] The following matrix is an explicit new experimental design and does not replace the missing original specification.
Condition Expertise organization Retained capability
A Fixed Disabled B Fixed Enabled C Gap-directed assembly Disabled D Gap-directed assembly Enabled
All conditions share the same underlying models, tool permissions, task stream, and total resource envelope. Condition C isolates the immediate value of assembly; B isolates reuse in a fixed organization; D tests their interaction. A separate ordinary retrieval-cache baseline is needed to determine whether elaborate promotion exceeds simple memory of prior solutions.
Use chronological training and evaluation phases, with held-out task families and controlled exact-repeat subsets. Record every candidate, rejection, test cost, promoted artifact, revocation, and later use. Randomize assignment or use paired deterministic environments when possible. Freeze the baseline and retain enough artifacts to replay its evaluation.
Primary outcomes are cumulative net gain, task quality, severe failures, cost per completed mission, reuse frequency, transfer to new instances, and regressions caused by retained assets. Report learning curves against total resources spent, not only task count. A faster curve obtained by spending much more compute is a different tradeoff from a more efficient learner.
Ablate counterexample testing, shadow evaluation, domain contracts, rollback, and interference accounting. Analyze cases in which promotion was correctly refused: pruning an attractive but harmful reflex is a useful result. A failure criterion is positive performance on training missions combined with nonpositive net gain on held-out missions after full costs. Another is loss of reliability that cannot be explained or reversed through the retained provenance.
9. Limitations and contribution record
This paper provides no empirical demonstration that the complete Orange or ZEUS loop improves itself. The original materials establish the research direction and several bounded rules; they do not supply all artifacts needed for replication. The new
numerical work is limited to confidence-bound calculation, and the evaluation matrix is prospective.
The recovered contribution is the governed conversion of receipts into reusable behavior, coupled to a recursive-value objective. This edition contributes the capability lifecycle, net-value accounting, counterfactual identification analysis, exact confidence bound, and controlled experimental design. The decisive open question is whether enough reusable structure exists in real missions for the gains to exceed construction, validation, and maintenance costs without accumulating hidden failure modes.
References
[H09] [W03] [M14] [M15] [M16] [M28] [M29] [M30] [M33] [R28]
Read the extracted pages as a PDF
Continue reading / Paper 07