Reintent

A value that loses its reason

A result kept or passed on without who said it and what it depends on.

A value in Reintent carries who said it and what it depends on. This page is about losing the second: what is kept is only what the value is now, with nothing to say what it depends on or what change should compute it again. A decision nobody can overrule is about losing the first.

The symptom: the card looks right. On another screen, after an edit elsewhere, or when the model is asked again, what Sam meant is gone.

You will learn

  • Why a number or a result is not the problem in itself
  • Four ways a value loses its reason, and what to keep instead
  • Why a model is given its request and not a snapshot of the card

Numbers and results are fine

Sam saying "24 px" is an intent, and a choice that reads another choice's value through uses is a dependency the intent knows (uses: what a judgment reads). The trouble starts when a value is kept or passed on without its reason: who said it, and what it was computed from.

A fixed value or a relation

First settle whether what to keep is a fixed value or a relation that changes with the context. When the user asks for "a little bigger", keep the relative size, and compute the value again in each context. When the user says "38 px", keep that value and who said it. When the storage format changes, these meanings go with it.

A relative wish kept as a number

Sam says "a little bigger" for the title on a phone. What is stored is the size it came to, 38 px. On a tablet the code's default size is different, and 38 px is no longer a little bigger than the default. When "bigger" is a fixed step, 1.3 times, pressing it where the engine already chose 1.3 changes nothing.

Keep the decision as the relation Sam gave: 115% of the default size on screens of that shape. The default moves with the screen, and the 115% decision stays. A slider with snap points expresses it well.

Coordinates kept, structure lost

A slide is saved as each block's x, y, width and height. On the canvas it was made on, nothing is wrong. On every other screen the program has to guess the structure back from the numbers, and when the guess is wrong, adaptation goes wrong from there. A model asked to write layouts in pixels does the same: its idea of a heading's size or the background's colour differs from what the host draws, and the layout is already wrong on the main canvas.

Keep the structure and its relations (a stack, a row, which block leads) and the values a person gave; the host lays out the blocks' coordinates from the structure. When a person drags a block to an exact place, that place is the person's decision, and it is kept as one.

Meaning lost in another storage format

The model writes HTML, and the app converts it into its own blocks to store. The conversion keeps only what the blocks can hold: an arrangement that differs per screen, the wrapper that grouped two things, a picture fitted into its box are dropped. The next screen is drawn from what was kept, and a title that fitted is cut.

When the storage format changes, keep the meanings that were written. For what the target format cannot hold, either make room for it in the target format, or keep the original format.

The whole card in the prompt

A judge that writes the whole card into each prompt:

const model: Model = {
  judge(request) {
    const card = intent
      .realize()
      .reads.map((r) => `${r.key} = ${JSON.stringify(r.value)} (${r.source})`)
      .join('\n');
    return ask(`${card}\n\n${request.prompt}`, request.kinds);
  },
};

ask sends a prompt to a model and turns its reply into weights. Each line is a resolved value: Sam's decision, the code's default, a value from System One's last judgment, all written in one format.

  • The answer outlives its inputs. The intent keeps each answer under its input stamp, the prompt, kinds, uses and facts of the request. The snapshot is not in it. Sam turns the joke off, the tone's stamp is the same, and the answer written for a card with a joke is still used. Put the snapshot in uses instead, and every change anywhere on the card asks every judgment again.
  • The model reads its own last conclusion. Some values in the snapshot were resolved from System One's last judgment ((belief)), without the inputs that judgment was made on. Reading them again, the model's next answer may lean on its last conclusion.
  • Two accounts of what the model saw. A snapshot shown as "what the model sees" sits beside the request, which is what the handler actually gets, and the two drift apart.

Name what a judgment depends on in uses, and what a person said of the whole goes in facts (Asking System One). System Two gets the program to change (Reprogramming one part). To see what was sent, log the request (Connecting your own model). When a host puts scene information into its prompt itself, the parts of the scene a judgment depends on still go in uses, so that an old answer is not used after they change.

Recap

  • A number or a result is fine; losing who said it and what it depends on is not.
  • First settle whether to keep a fixed value or a relation; for a relation, keep the relation and compute the value again.
  • A model is given its request: the question, the possibilities, uses and facts.

Last updated on

Edit on GitHub