interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / campaigns / whole-system-e2e / REGRESSION-sc394.md

53 lines · 2875 bytes Raw Blame History Rendered
1# REGRESSION sc#394: append goals place new lines next to the heading, not at the end
2
3Pre-registered before any test or fix. Program: aien-architecture#190 (lane L1/L6).
4
5## Failing behaviour as observed
6
7Evidence is in branch `e2e/harness-v1.2`, folder
8`docs/campaigns/whole-system-e2e/runs/RUN-1-shakedown-20261010T150104Z/artifacts/`
9(not edited here): `E4-report.md`, `E3m-report.md`, `E4-propose.json`.
10
11Row E4, objective `Append one line to report.md naming the topic you reported on first.`
12Memory was recalled (`memory.items_included 1`) and the model named the right topic.
13`merge_edit_reply` (crates/aien-runtime/src/spine.rs) inserted the new line right after the
14anchor above it, the heading. `E3m-report.md` (before) has the heading at line 1; `E4-report.md`
15(after) has the new line at line 3 and 8 lines against 7 before (`diff` says `2a3`). The harness
16row and the independent verifier both scored placement FAIL.
17
18## Tests to add (unit tests in spine.rs)
19
20| Test | On current main | After the fix |
21|---|---|---|
22| `append_goal_places_new_lines_at_end` | FAIL (new line lands after the heading) | PASS |
23| `append_goal_with_several_new_lines_keeps_reply_order` | FAIL | PASS |
24| `non_append_goal_keeps_anchor_placement` (negative control) | PASS | PASS |
25| `append_goal_still_needs_a_shared_line` | PASS | PASS |
26| `append_word_detection` | FAIL (to compile-fail or fail: the detector does not exist yet) | PASS |
27
28Tests 3 and 4 pass on main by design: they pin behaviour the fix must not change.
29Tests 1, 2 and 5 call the new placement entry points, so on main they do not compile; the
30pre-fix run is made against a stub of the entry points that keeps today's placement, so the
31failures are assertion failures and not build errors.
32
33## Rule chosen for "append goal"
34
35The goal contains the word `append` as a whole word, case-insensitive: split the goal on every
36character that is not an ASCII letter or digit and compare each piece to `append`. So
37`Append one line`, `append` and `APPEND` match; `appendix` and `appended` do NOT match
38(they are different words). No environment variable, no configuration.
39
40## What the fix changes
41
42In an append goal every non-anchor reply line goes after the last non-blank prior line, in
43reply order. The goal reaches the merge through a small `EditPlacement { NextToAnchor, AtEnd }`
44value computed once from the goal where the edit target is built.
45
46## What the fix must not change
47
48- No prior line is removed or rewritten; prior bytes are kept.
49- The reply must still share a non-blank line with the prior (Err otherwise).
50- The cell limit (`COMPOSE_EDIT_MERGE_MAX_CELLS`) and the "changes nothing" Err stay.
51- The result ends with exactly one newline.
52- Non-append goals: output byte for byte as today. Existing tests of `merge_edit_reply`,
53 `edit_proposal`, `propose_task_checked` keep their signatures and results.