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-sc382-sc383.md

77 lines · 5216 bytes Raw Blame History Rendered
1# Regression pre-registration: sc#382 (inputs unreadable) and sc#383 items 2 and 3 (destination)
2
3Written before any test or fix. Program: aien-architecture#190. Branch `e2e/w1-input-reading`.
4Evidence is under `runs/` and is not edited.
5
6## Failing behaviour on main, as observed
7
81. sc#382. `RUN-1-dry-20261010T134202Z/artifacts/E3-propose.json`: for the contract objective the model
9 invented `ws-contract.txt` and `ws-contract.md` because the prompt carries only the goal text and the
10 workspace path. The three inbox files are never shown to the model.
112. sc#383 item 2. `RUN-1-dry-20261010T133749Z/artifacts/E3m-propose.json`: the goal "Write a Markdown report
12 named report.md about the three inbox files named harbour-notes.txt, orchard-ledger.txt and
13 windmill-log.txt ..." was refused: `ambiguous destination: the goal names several files to write
14 (report.md, harbour-notes.txt, orchard-ledger.txt, windmill-log.txt); name one`.
153. sc#383 item 3. `RUN-1-dry-20261010T134202Z/artifacts/CTRL-E3b-propose.json`: goal "Write a file named ctrl.md
16 in the outbox folder containing one line: control." was refused because the proposal wrote
17 `outbox/ctrl.md` but the goal-named destination was `ctrl.md`.
18
19## Design (constants, no new knobs)
20
21- Destination: "named X in the Y folder" (also "in Y folder", "in the Y directory") resolves to `Y/X` before the
22 model runs. The proposal filename line, the destination check and the written path all use `Y/X`.
23- Inputs: paths the goal references but does not write. A bare name that exists in the workspace (or in a
24 folder the goal names with "the Y folder") and is not the destination is an input. A folder named as a
25 source ("files in the inbox folder") contributes its regular files, directly inside it, sorted by name.
26- Bounds: `COMPOSE_INPUTS_MAX_BYTES` = 16384 total, `COMPOSE_INPUTS_MAX_FILES` = 16. Files are taken in
27 sorted order; a file that does not fit whole, a non-UTF-8 file or a non-regular entry is not included and
28 is listed under `inputs_omitted` with the reason. Never truncated silently.
29- Confinement: a named input outside the workspace (absolute, `~`, `..`, or a symlink resolving outside) is
30 refused before the model runs. Folder entries that are symlinks leaving the workspace are omitted.
31- Report: `compose propose` report gains `inputs` (name, sha256, bytes) and `inputs_omitted` (name, reason),
32 both default empty so old reports still parse.
33
34## Tests to add
35
36Unit and integration tests in `crates/aien-runtime/tests/inputs_test.rs` (new), plus a stub-aware
37`compose propose` test in the same file.
38
39| Test | On main | After fix |
40|---|---|---|
41| folder_phrase_resolves_done_ctrl_and_report_destinations (OBJ6, OBJC, OBJ texts) | FAIL | PASS |
42| proposal_in_the_folder_is_accepted_for_ctrl_goal (`outbox/ctrl.md` reply accepted) | FAIL | PASS |
43| input_names_are_not_write_targets (sc#383 item 2 text, files exist) | FAIL | PASS |
44| two_distinct_write_targets_stay_ambiguous (negative control) | PASS | PASS |
45| existing_destination_is_still_an_edit (negative control) | PASS | PASS |
46| folder_source_phrase_includes_inputs_sorted_with_digests (OBJ, three inbox files) | FAIL | PASS |
47| named_files_become_inputs_but_destination_is_not (item 2 text) | FAIL | PASS |
48| inputs_are_capped_and_omissions_are_listed | FAIL | PASS |
49| non_utf8_and_non_regular_inputs_are_omitted_not_read | FAIL | PASS |
50| named_input_escaping_workspace_is_refused_before_model (`..`, absolute, symlink) | FAIL | PASS |
51| goal_without_inputs_keeps_prompt_byte_for_byte (negative control) | PASS | PASS |
52| compose_propose_report_lists_inputs_with_digests (stub-aware) | FAIL | PASS |
53
54The tests commit adds only empty-returning stubs of the new API so the tests compile; a FAIL is an assertion
55failure, not a compile error.
56
57## Must not change
58
59Desk requirement, grants, effect boundary refusals, `AlreadySpent`, requirement phrasing rules, the refusal
60for two genuinely distinct write targets, the destination-probe corpus record
61(`destination_corpus_test`), the model, token budgets, memory and ALLEN code, the harness script.
62
63## Limits (stated now)
64
65Input text is untrusted prompt content, the same as edit-mode content today. Folder reading is one level
66deep. Reading only happens when the goal names the source; the model cannot ask for files.
67
68## Notes added with the fix (rows above unchanged)
69
70- `compose_propose_report_lists_inputs_with_digests` passes on a stub build before and after the fix, because
71 the stub refuses every run ("not linked"). The registered FAIL-before holds only with the linked compose
72 library; the assertions on `inputs` are exercised by CI's linked job. The same facts are asserted without
73 the library by `folder_source_phrase_includes_inputs_sorted_with_digests`, which failed before.
74- Inputs found by a directory word: a goal word naming a top-level workspace directory counts only when a
75 plural noun follows it ("the three inbox files"), so "about docs and plan.txt" keeps its v5 prompt.
76- A folder is read as input only when the goal puts a reading word (files, notes, from, about, ...) within
77 five words before "in the Y folder" and the phrase does not directly follow a named path.