# Curation handoff — repeated HD61 generation hazard

Status: CONTEMPORARY ENTITY B OBSERVATION
Destination: future Chapter 12 curation / Papa Sol review
Scope: representation and toolchain discipline, not functional requirements

## Observation

The Chapter 12 Angelical implementation was a remarkably strong result: the application architecture, recursion behavior, VT model, navigation, retained state, pagination, and host-level semantic checks were independently derived from the Angelical contract. The only thing that prevented the first source candidate from crossing the authoritative assembler boundary cleanly was a tiny HD61 code-generation syntax error.

The failing statement was:

`LD $17,(IY+$SX)`

HD61 ASSEMBLER Rev. 0.45 rejected it with:

`ERROR CODE:009 Illegal Operand`

The form was attractive because it looked locally symmetrical with accepted IX indexed-memory forms. The same class of mistake had occurred previously in the benchmark lineage. Entity B also had contextual knowledge warning that visually parallel IX/IY forms are not automatically legal, yet still generated the invalid form. Once the assembler identified the exact failure, Entity B immediately understood the issue and rewrote the code using a legal IX-based equivalent without changing the surrounding algorithm or architecture.

## What this means

The problem is not that the solver lacks the relevant fact. It is that a remembered fact can remain declarative while local code generation still follows a strong syntactic analogy.

The important distinction is:

- known is not the same as plausible;
- plausible is not the same as trusted;
- an assembler rejection is evidence about an exact syntax family, not necessarily about the whole register or instruction class.

A broad invariant such as "never use IY indexed forms" would be harmful. It would turn a small observed corpus into an accidental language specification and could suppress legal constructs merely because they have not yet been observed.

The better remedy is a narrow, evidence-backed hazard recognizer.

## Recommended safeguard

Keep normal generation permissive.

Add a targeted WATCH rule for exact or tightly bounded forms that have repeatedly failed authoritative assembly. When a generated statement matches such a known-risk pattern:

1. do not silently promote the form to trusted source;
2. re-evaluate the operand form before freezing the candidate;
3. if a semantically equivalent construct exists using assembler-confirmed syntax, rewrite to that form;
4. otherwise leave the construct explicitly untrusted and require authoritative assembler confirmation.

For this family, the rule should be conceptually:

> WATCH: IY indexed-memory operand form inferred only by symmetry with a known IX form.
>
> Evidence: repeated HD61 Rev. 0.45 `Illegal Operand` failures.
>
> Action: collapse to an assembler-confirmed equivalent where semantics permit; otherwise require toolchain validation.

This is a lint tripwire, not a language restriction.

It should have essentially no side effect on unrelated generation. Other IY forms remain available for exploration unless there is direct evidence against the exact form being emitted.

## Why this matters for curation

This repeated error is valuable experimental evidence.

It shows three different layers that should not be conflated:

1. **Representation knowledge** — the solver can know that HD61 operand families are asymmetric.
2. **Generation behavior** — a locally attractive analogy can still be emitted.
3. **Toolchain authority** — Rev. 0.45 resolves uncertainty and can promote or reject an exact form.

The lesson is not "add more prose memory." The lesson is to attach tiny evidence-backed hazard recognizers to generation so that a repeatedly disproven local pattern triggers scrutiny before handoff.

The desired principle for Papa Sol is:

> Do not make the solver more timid. Preserve inference and exploration. Add narrow safeguards only where repeated authoritative evidence identifies a specific attractive mistake.

In this run, that tiny syntax hazard was the only thing that prevented an otherwise exceptional first-pass result from reaching the authoritative assembler cleanly.
