ProgramDiffTargetSplit

Models & Types · AiDotNet.Evolution.Programs

The result of routing a reply’s edit blocks to the program or to the changes description.

For Beginners

The model is editing a program and a short note describing its own changes. Each edit says “find this text, replace it with that”. This works out which of the two documents each edit meant.

How It Works

A run that maintains a changes description shows the model two documents and asks it to edit both, but a SEARCH/REPLACE reply says only what text to find, never where. Routing decides that: a block whose SEARCH text occurs in exactly one of the two belongs to that one. A block that occurs in both is refused rather than guessed, because applying it to the wrong document is an edit nobody asked for that still looks like success.

Constructors

Constructor Summary
ProgramDiffTargetSplit(IReadOnlyList<ProgramDiffBlock> programBlocks, IReadOnlyList<ProgramDiffBlock> descriptionBlocks, IReadOnlyList<ProgramDiffFailure> failures) Initializes a routing result.

Properties

Property Summary
IReadOnlyList<ProgramDiffBlock> DescriptionBlocks { get; } Gets the blocks that edit the changes description, in reply order.
IReadOnlyList<ProgramDiffBlock> ProgramBlocks { get; } Gets the blocks that edit the program, in reply order.
IReadOnlyList<ProgramDiffFailure> Failures { get; } Gets a failure for each block whose target could not be settled.
bool IsSuccess { get; } Gets whether every block was routed to exactly one target.