The trader’s journeyIntermediate24 min read

The manual and the robot need to describe the same version

Check a robot delivery across rules, source code, settings and examples. A small worked signal reveals version mismatches before a large research run.

Two subtly different watch mechanisms beside a folded instruction sheet on a dark blue jeweller's desk
Conceptual photograph: instructions are useful when they belong to the mechanism in front of you.

The sentence that changes the decision

The manual says to compare the latest completed price with the average of the three preceding completed observations. The source code calculates an average of three observations too. At first glance they agree. Then a reader checks which three rows enter the calculation and discovers that the code includes the observation being evaluated. One sentence and one slice describe different research rules.

In the small invented example we will use, the previous prices are 100, 102 and 104, and the candidate price is 103. The average of the preceding three is 102, so a strict above-average condition is true. An average including the candidate and the two immediately preceding prices is 103, so the same strict comparison is false. The discrepancy is about identity and timing, not arithmetic skill.

This is not a TradeAndRoll strategy or a recommendation to trade a moving-average rule. It is an intentionally tiny specification exercise. It shows why receiving rules, source code, settings and examples is useful only when their relationship can be established. Four individually plausible files can still describe four different versions of the same supposed system.

The task is to inspect a delivery before relying on its documentation for a larger investigation. We will follow the package identity, configuration, input contract, worked example and change history. The goal is not to demand an encyclopedic manual. It is to make the decisions that affect interpretation explicit enough that another reader can reproduce and question them.

Identify the delivered object before interpreting its contents

Start by recording what arrived: the archive or folder identifier, its stated version, the included files and the date of receipt in your own records. Keep an untouched copy while conducting research in a separate working copy. A file named latest is convenient for distribution but insufficient for identifying which bytes supported a particular result several weeks later.

A package inventory can be small. List the rules document, source files, default configuration, example input, expected output and any environment instructions. Mark optional material and missing references. If the manual points to a file that is absent, record the gap rather than silently substituting a similar file from another delivery. The substitution would create a new assembled package.

A product name is not a reproducible version identifier. Two folders bearing the same commercial name may contain different defaults or corrections. Conversely, two differently named archives may contain identical research files. A content digest can help identify exact bytes, while a human-readable version and change note explain what those bytes are intended to mean. Neither replaces the other.

A delivery map links one package identity to its rules, source code, configuration and reproducible example, while a separate working copy contains adaptations
Illustrative delivery map. Preserve the received object and identify adaptations separately so that later results can be traced to the files actually used.

The W3C PROV overview describes provenance in terms of the objects, activities and people involved in producing something. For this practical review, the useful idea is modest: retain which inputs and steps produced a result. You do not need to implement the entire PROV family to distinguish a received package from your modified working copy.

Decide what is authoritative when two files disagree

A delivery should explain the relationship between its natural-language rules and its implementation. Is the code a reference implementation of a written specification? Are the written rules a summary of behavior defined by the code? Is an example output normative for a fixed input, or merely illustrative? These distinctions determine how to classify a disagreement without guessing which file deserves priority.

Suppose the documentation calls a parameter a lookback of three bars, while the configuration sets it to four. That could be an outdated sentence, an intentional example override or a genuine package inconsistency. The correct next step is to identify the stated default and the example’s explicit settings. Selecting the interpretation with the better historical result would turn documentation review into another optimization.

Keep an issue record with the conflicting passages, exact file identities and the smallest input that exposes the difference. A useful question to the author is concrete: with this input and these settings, should the candidate observation be included in the averaging window? That is easier to answer than a broad complaint that the backtest looks different.

Resolve the contract before interpreting the performance. Until the disagreement is explained, you can document both behaviors and their consequences, but you should not call either one a faithful reproduction of the intended version. This preserves the distinction between investigating an ambiguity and quietly deciding the product specification yourself.

Treat configuration as part of the system

Source code rarely determines behavior alone. Defaults, command arguments, configuration files and environment-specific settings can all affect a run. A manual that documents a default but never states how overrides work can leave two readers following apparently identical instructions and producing different outputs. The effective configuration is the one the process actually used, not the one a nearby file appears to suggest.

For a hypothetical example, the source declares a lookback default of three, a configuration file specifies five, and the example command requests four. If the documented precedence is command, then file, then source default, the effective value is four. Without a stated precedence rule, the reader cannot infer the value merely by finding the first occurrence of the parameter name.

Preserve an effective-configuration snapshot with each research result. It should identify resolved values and their origin where useful. Sensitive connection details should be excluded or safely represented without exposing secrets. The aim is to reproduce the research choices, not to copy credentials into reports or share operational access as part of an example.

Also distinguish defaults from recommended research settings and from settings used in a published illustration. A default can be a convenience rather than an empirically preferred value. An example can use a short window to make arithmetic visible. Clear labels prevent a teaching configuration from being mistaken for a validated deployment choice.

Define the input contract beyond a filename extension

A CSV extension says very little about what a robot expects. The input contract should identify columns, units, timezone, timestamp meaning, price convention, row order and missing-value handling. A field named close can represent a different observation across sources. A timestamp can mark a bar’s opening instant or its closing instant. Those differences affect what information was available at a decision point.

Specify whether the example input contains complete bars, whether duplicate timestamps are allowed and how the first usable observation is determined. A parser that silently sorts records may conceal an upstream ordering problem. A parser that drops missing rows may change the elapsed time represented by a fixed number of observations. Neither behavior is necessarily wrong, but it belongs in the documented contract.

For the four-price exercise, the values are dimensionless teaching observations in a fixed order. They are not a market dataset. The first three are complete before the fourth is evaluated. Declaring these assumptions makes the exercise reproducible without implying that four real quotes would establish a useful trading strategy or a complete execution environment.

Validate meaning before comparing output. If one implementation reads prices as whole units and another reads them in a scaled integer representation, matching column names will not prevent disagreement. A short input dictionary often contributes more to reproducibility than several pages describing the general motivation of the strategy.

Use one worked decision to expose the indexing convention

Return to prices 100, 102, 104 and 103. Label the candidate observation separately from its predecessors. The documented prior-only window contains 100, 102 and 104, giving a sum of 306 and a mean of 102. The candidate 103 is strictly greater than 102, so the educational condition is true. Every intermediate value can be checked without a software environment.

The alternative inclusive window contains 102, 104 and 103. Its sum is 309 and its mean is 103. The candidate equals that mean, so a strict greater-than condition is false. If the implementation uses greater-than-or-equal instead, it becomes true again. Agreement on the final Boolean in one case would therefore not prove agreement on the window and comparison operator.

Four invented prices 100, 102, 104 and 103 show a prior-only mean of 102 with a true strict comparison and an inclusive mean of 103 with a false strict comparison
Hypothetical specification example. Window membership and the equality rule are separate decisions; a single matching output can conceal disagreement in either one.

Ask the documentation to show the selected input rows, intermediate statistic, comparison result and decision timestamp. This is a more useful example than a large screenshot containing only an annual return. The small trace reveals where meaning enters the calculation and gives a reader a precise place to compare the implementation with the written rule.

A worked example should explain why a decision occurs. If it only states that the program produced a signal, it can be reproduced by copying the output without understanding the rule. The intermediate trace makes the example educational and gives later adaptations a concrete reference against which to describe their differences.

Add boundary cases that distinguish plausible interpretations

The first example separates two averaging windows, but it does not settle every detail. Add a case where the candidate exactly equals the documented prior mean to distinguish strict from inclusive comparison. Add a case with only two prior observations to establish warm-up behavior. Add a missing prior value to determine whether the calculation waits, rejects the input or applies a documented alternative.

Each case should answer one question. A test containing missing values, duplicate timestamps, a timezone change and a partial bar all at once can fail without revealing which convention caused the result. Small, discriminating examples are easier to inspect and maintain. They complement a larger end-to-end example rather than trying to replace every possible research scenario.

Expected output needs an explanation independent of the implementation. If the expected file was simply generated by the same potentially ambiguous code, matching it checks repeatability but not agreement with the written specification. Hand-worked cases or independently reviewed reasoning can establish what the example is meant to demonstrate.

Record what the cases do not cover. Four or five boundary examples cannot validate an entire robot, prove the absence of leakage or establish financial performance. Their value is narrower and practical: they clarify a handful of decisions that could otherwise remain hidden until two implementations diverge in a much larger investigation.

Separate a signal example from an execution example

A rule can identify a condition at the close of a completed bar without specifying an executable price at that same instant. Documentation should distinguish the information available for a signal from the assumed timing and price of any subsequent simulated action. Otherwise a reader may interpret a signal trace as a complete account model when it is only a decision calculation.

The four-price example deliberately ends at a Boolean condition. It contains no order, fill, spread, fee, position size or account balance. Extending it into a backtest would require additional assumptions. Those assumptions should be documented in the execution layer rather than smuggled into the meaning of the word signal.

If the delivery includes an execution illustration, ask it to identify when the condition is known, when an action is eligible, which price side is used and how unavailable execution is represented. A missing fill should not silently become a trade at a convenient price. A delayed action can change later state, so the documentation must explain how the example handles that dependency.

A complete signal explanation can still be an incomplete execution specification. This is not a defect if the delivery states its scope clearly. It becomes a problem when a reader is led to believe that an inspectable research rule already includes every broker-specific behavior required for another environment.

Check units wherever a setting crosses a boundary

Parameters called size, distance and duration are easy to misread. Size could mean base-currency units, lots, account-currency notional or a fraction of a reference amount. Distance could mean raw price units, ticks or a normalized measure. Duration could count bars, minutes or elapsed sessions. A numeric default without its unit is not a complete setting.

For an invented example, a distance of ten ticks on an instrument with a tick size of 0.0001 is 0.0010 price units. The same number ten interpreted as a raw price distance describes something entirely different. The documentation should place the unit beside the parameter and state where conversion occurs, rather than expecting the reader to infer it from a familiar-looking value.

Also state the rounding convention. An intended price can fall between valid increments. Rounding toward, away from or to the nearest increment can change a condition or an assumed fill. A manual that explains the main formula but omits this boundary can describe behavior that no implementation can reproduce consistently across instruments.

Units are part of version compatibility. Changing a setting from units to lots without changing its name can break existing configurations even if the source still accepts the same numeric type. A release note should identify the semantic change and show how an old configuration maps—or fails to map—to the new contract.

Distinguish a software version from a research identity

A software version communicates changes under the publisher’s stated convention. A research identity identifies the particular rules, parameters, inputs and assumptions used in an investigation. The two often overlap but are not identical. A documentation typo can change the software package without changing a calculation. A corrected calculation can materially change historical outputs while retaining the same public function names.

Semantic Versioning defines major, minor and patch changes in relation to a declared public API. It does not promise that a patch leaves every numerical research result unchanged. If a bug fix corrects an off-by-one error, the interface may remain compatible while the generated signals change. A reader needs the substantive change note, not only the version number.

Keep a clear identity for the research configuration alongside the package version. If you change a lookback, data convention or execution assumption, label the resulting investigation accordingly. Reusing the original commercial name for every local adaptation makes later comparisons ambiguous, especially when an AI assistant helps produce several variants in quick succession.

Version numbers describe a convention; change notes explain the consequence. Read both before combining old examples with new files. A larger number is not evidence of better performance, and a smaller-looking update can still require rechecking outputs if the corrected behavior affects the question you are investigating.

Read a change log for what must be rechecked

A useful change log separates documentation clarification, configuration change, input-contract change, calculation correction and output-schema change. Each category suggests a different review. A corrected spelling may need no numerical rerun. A changed timestamp interpretation can require revisiting every decision boundary. A renamed output column can break a report without changing the underlying signals.

For a hypothetical release, imagine that the source changes from an inclusive averaging window to the prior-only window specified in the manual. The note should identify the affected rule and provide the four-price example showing the changed result. Calling the release general improvements would hide exactly the information a researcher needs to decide which previous outputs are affected.

A change-impact matrix distinguishes a documentation typo, a changed default, a corrected calculation and a changed output field, each with a different required review
Illustrative review matrix. The amount of text changed is not a measure of the research impact; a one-line timing correction can alter many decisions.

Preserve the previous version and its associated examples. Replacing the old archive in place makes it difficult to explain why an earlier report differs from a later one. If a previous result is withdrawn or superseded, state the reason and the relevant scope. A correction can improve the research process without retroactively making the original result correct.

Ask what changed, who is affected and what needs repeating. These three questions turn a release note into a practical guide. They also prevent the opposite mistake of rerunning every unrelated investigation after a harmless wording change simply because the package identifier increased.

Environment instructions should explain their purpose

A research example can depend on language and library versions, operating-system behavior or numeric conventions. Document the relevant environment and distinguish exact requirements from a known working example. A list of dependency names without versions may be insufficient to reproduce behavior later; an enormous machine snapshot may be unnecessary if only a few components affect the calculation.

Do not treat successful installation as successful reproduction. A script can start, read its files and finish without errors while interpreting timestamps or missing values differently from the documented example. Compare intermediate values and expected output under the stated tolerance. Installation checks answer whether the environment can run the code; behavioral checks answer what it did.

Where nondeterminism is intentional, the documentation should explain it. A random seed can help reproduce one stochastic path, but it does not identify every dependency or guarantee identical behavior across all environments. For the deterministic four-price example, no randomness is needed at all. Keeping such a case simple makes it a useful first diagnostic.

Document the environment at the level needed to explain differences. If a change affects only plot rendering, it should not be confused with a change in signal logic. If it affects numeric calculation, the report should say which outputs were compared and what tolerance was justified by the representation rather than chosen for convenience.

Keep translations aligned on technical meaning

Bilingual documentation introduces another version relationship. The English and Spanish files may be updated at different times, or a translated term may erase a distinction such as completed bar versus current bar. A natural translation is valuable, but the technical contract needs the same units, operators, timing and exception behavior in both languages.

Use the worked examples as shared anchors. The four-price sequence, selected window, mean and Boolean result should agree across editions. Parameter identifiers can remain unchanged while their explanations are localized. If a translated sentence changes greater than into greater than or equal to, matching the rest of the prose will not prevent a different decision.

Record which source version each translation describes. If one edition is awaiting an update, say so plainly rather than presenting both as equally current. A reader should not have to infer freshness from file modification times, which may change during copying or packaging without any editorial revision.

Translate the explanation, preserve the contract. This includes decimal conventions in examples: localized punctuation should improve readability without changing the numeric value. A small cross-language comparison of inputs and expected outputs can reveal more than a general statement that the documents have been translated carefully.

Examples need a declared relationship to the delivered files

A screenshot or sample output can come from an older package, a different configuration or a separate educational implementation. Each is potentially useful when labelled. The problem is an implied relationship that the reader cannot verify. Ask which files and settings produced the example and whether the supplied input is sufficient to recreate the relevant result.

For a minimal example, preserve a small input and its expected trace rather than only a chart image. The trace can show the rows selected, intermediate values and final decision. If the example requires external data that are not included, identify that dependency and its acquisition or access requirements. Do not silently substitute another dataset and call the result an exact reproduction.

In a robot package, market data and strategy files can have different distribution arrangements. Receiving source code does not imply receiving every historical dataset used during development. For TradeAndRoll, market CSVs belong to the demo materials; do not assume that later robot additions automatically include new CSV deliveries. The documentation should make the scope of each package understandable.

An example is evidence of a stated exercise, not a certificate for every use. Reproducing a small trace establishes a specific correspondence between files and behavior. It does not establish historical profitability, future returns or suitability for a particular account. Those are different investigations with additional inputs and assumptions.

Adaptations should preserve their lineage

After reviewing the original package, you may adapt its interface, input reader or reporting code for your research environment. Keep those changes in a separate working version and record what they alter. An adapter that only renames columns still needs a mapping; an adapter that changes price conventions or timing affects the experiment itself.

Use a concise adaptation note: original package identity, changed files, reason, intended invariant and cases rechecked. For example, a reader translation from one column name to another might intend to preserve the same ordered prices and timestamps. The four-price trace can verify the relevant calculation, while additional input checks address the mapping.

An adaptation is not automatically equivalent because it produces similar profits. Two implementations can disagree on individual decisions and still end near the same cumulative result. Compare the behavior that the adaptation claims to preserve. If the goal is only a new exploratory variant, label it as such instead of presenting it as the original robot in a different wrapper.

This separation also helps when seeking support. A question based on untouched delivered files can be distinguished from a question about local changes. Providing the smallest reproducible case and the adaptation note allows the discussion to focus on the actual difference rather than reconstructing an undocumented chain of edits.

Ask AI to trace correspondence before asking for a rewrite

An AI assistant can map a written rule to the relevant source sections, identify configuration precedence or draft a table of unresolved ambiguities. Provide the actual files and require it to cite the passages it used. Ask it to separate observed behavior from inferred intent. A persuasive explanation of what the author probably meant should not replace evidence of what the package says.

A useful first request is to trace the four-price example through the documented rule and the implementation without editing either. The assistant should list selected rows, intermediate mean, operator and output. If it finds a mismatch, ask for a minimal explanation of the difference and the information needed to resolve it. This keeps investigation separate from modification.

Avoid a broad instruction to fix everything before the original behavior has been recorded. The assistant may resolve ambiguity by making a reasonable choice that nevertheless creates a new system. That choice can be useful for exploration, but it should be visible in the adaptation record and followed by checks appropriate to the changed contract.

Generated explanations need the same version discipline as generated code. If the source changes after an explanation was written, the prose can become stale while remaining fluent. Store the file identity or revision context with the explanation so that a later reader knows which implementation it was describing.

Know which history the documentation actually describes

A package can document the delivered rule precisely without documenting every experiment that led to its selection. These are different histories. The first explains what the supplied system does under stated inputs. The second concerns how candidates were generated, compared, discarded and chosen. Reading the source code may reveal the final decision logic, but it does not reconstruct all the research choices that preceded that logic.

This distinction matters when interpreting an example report. If the documentation supplies a deterministic rule and a historical illustration, the reader can investigate whether the stated calculation reproduces that illustration. The same material does not automatically reveal how many alternatives were tried or which observations influenced selection. Those questions require additional evidence about the research process, not a more confident reading of the final code.

Do not turn documentation completeness into evidence of an unobserved selection history. A clear manual is valuable because it reduces ambiguity about the object you can inspect. It cannot certify facts absent from the delivery. Record the boundary plainly: behavior understood, example reproducible, development-selection details outside the available material. These findings can coexist without making the review useless.

The distinction also helps formulate a constructive next investigation. You can create a prospective research record for your own adaptations, freeze the inputs and settings you intend to examine, and preserve the subsequent observations. That does not rewrite the original development history. It establishes a new, explicit history for the work you control. The supplied rules and code become an inspectable starting point, while your evaluation remains responsible for its own claims.

When an AI assistant summarizes a package, require the same boundary. It should not infer a sophisticated validation process from tidy code or invent an origin story from parameter names. A description of the delivered system should stay attached to the files and evidence actually present. Additional claims belong in a separate list of questions for the provider or in a separately designed investigation.

A compact acceptance record makes the review reusable

Finish the delivery review with a short record of what was received, which conventions were understood, which small examples were reproduced and which ambiguities remain open. This is not a financial verdict or a blanket approval of the robot. It is a reusable description of the correspondence established between the package and its documentation.

Use explicit outcomes. Confirmed means the stated example matched under the recorded inputs and settings. Different means a reproducible discrepancy was found. Unresolved means the available information cannot decide the question. These categories are more useful than one pass indicator that combines installation, documentation, execution and research performance into a single reassuring label.

A compact review record distinguishes package identity, confirmed example, reproducible discrepancy and unresolved assumptions rather than using one overall approval badge
The review records specific findings. Understanding a delivery and reproducing an example do not establish a trading outcome.

Keep the record with the research outputs that rely on it. When a new package arrives, compare the affected sections and repeat the cases implicated by its changes. This makes documentation review cumulative: previous work becomes a reference, while genuine differences receive attention instead of being lost inside a fresh download.

The TradeAndRoll demo gives you ten Forex systems with rules, source code and market CSVs to investigate. Use one system to practise tracing a documented decision into its files before asking an AI assistant to adapt it. The guide to moving from a robot demo to a research decision develops the next stage. A useful delivery gives you material to inspect; a careful version review makes clear which material your conclusions actually describe.

Back to the Blog