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
aien-sovereign-core-mv / docs / campaigns / whole-system-e2e / REGRESSION-sc402-dotslash.md
| 1 | # Regression evidence, sc#402 (a leading `./` names the same workspace file), Lane A2, 2026-10-11 |
| 2 | |
| 3 | Pre-registered before the code change. Results are filled in below the plan after the checks; the plan is not edited. |
| 4 | |
| 5 | ## The failing scenario (RUN-3-GB10-20261011T045450Z, row E4) |
| 6 | |
| 7 | After `remember` succeeded, the daemon was killed (SIGKILL) and restarted, and the second objective asked the model to |
| 8 | edit `report.md`. Attempts 2 and 3 answered `filename: ./report.md` and were refused by the daemon's proposal reader: |
| 9 | `path "./report.md" is not a plain relative path` (`RESULT-RUN-3-GB10.md`, E4 and CTRL-E4b rows). `./report.md` and |
| 10 | `report.md` name the same file in the workspace, so this is a product defect, not a safety refusal. |
| 11 | |
| 12 | ## The rule (coordinator ruling, 2026-10-11) |
| 13 | |
| 14 | One shared function, `destination::strip_leading_curdir`, removes leading `./` segments, and nothing else, where a path |
| 15 | enters the daemon from text: |
| 16 | |
| 17 | 1. the model's proposal (`spine::check_file_proposal`, the `filename:` line, which every reader of a reply uses: the |
| 18 | skill, the AEGIS contract, the authorization and the write), and |
| 19 | 2. the words of a goal (`destination` word cleaning, which feeds the named destination and named inputs that |
| 20 | `classify_named` and the input collector then check). |
| 21 | |
| 22 | The existing strict checks then run unchanged on the stripped path: `spine::check_relative_path` (no absolute path, |
| 23 | no `~`, no `..`, no empty or `.` segment, letters, digits and `._-/` only, at most 255 bytes) and, for grants, |
| 24 | `effects::confine_shape`. So absolute paths, any `..` segment (also `./../x`), empty segments, `~`, backslashes, NUL |
| 25 | and anything that escapes the workspace stay refused exactly as before. |
| 26 | |
| 27 | Decisions recorded with the rule: |
| 28 | |
| 29 | - Inner `./` segments are NOT normalised: `a/./b` stays refused by the spine. `.` and `./` (empty after stripping) stay |
| 30 | refused. `.//x` strips to `/x`, which is absolute and stays refused. |
| 31 | - The grant and effect layer (`effects::confine_shape`, `confine_target`, `open_confined`) is left strict: it is a |
| 32 | backstop that accepts only the one canonical spelling, so an authorization record never holds two spellings of one |
| 33 | file. Its existing test that refuses a grant for `./N.md` stays as it is. Grants are built from the proposal's path, |
| 34 | which is now already canonical, so the backstop is never reached with `./` from a model reply. |
| 35 | |
| 36 | ## Plan |
| 37 | |
| 38 | | check | how | expected | |
| 39 | |---|---|---| |
| 40 | | new tests red on main | the new unit tests in `spine.rs` and `destination.rs`, built against main 8c09217 with the test commit only | `./report.md` proposal refused (test fails) | |
| 41 | | new tests green | `cargo test -p aien-runtime -p aien-cli` (linked compose archive) | all pass, including: `./report.md` -> `report.md`; `././a/b.md` -> `a/b.md`; refused: `../x`, `./../x`, `/x`, `a/../b`, `a/./b`, `.`, `./`, empty, `~/x`, `.//x`; an edit reply naming `./report.md` merges into `report.md`; a goal naming `./report.md` names `report.md` | |
| 42 | | grant backstop unchanged | existing `grants_are_confined_and_the_approved_kind_is_reserved` | passes unchanged (`./N.md` grant refused) | |
| 43 | | lint | `cargo clippy -p aien-runtime -p aien-cli --all-targets -- -D warnings`, `cargo fmt --check` | clean | |
| 44 | | RUN-1 verdict unchanged | `tools/aien-verify` on a scratch copy of `runs/RUN-1-20261010T154724Z` | `verdict_id` as recorded in its `VERIFIER_RECEIPT.json` | |
| 45 | |
| 46 | ## Results (2026-10-11, branch e2e/r6-run5) |
| 47 | |
| 48 | | check | result | |
| 49 | |---|---| |
| 50 | | new tests red on main | main 8c09217 plus the test commit only: does not compile (`strip_leading_curdir` missing, 10 errors). With an identity stand-in for that function (the behaviour of main): 4 of the 5 new tests FAIL (`leading_dot_slash_names_the_bare_path`, `an_edit_reply_naming_dot_slash_merges_into_the_named_file`, `strip_leading_curdir_removes_only_leading_dot_slash`, `a_goal_naming_dot_slash_names_the_bare_path`); `every_other_form_is_refused_as_before` passes, as it must on main | |
| 51 | | new tests green | the 5 new tests pass | |
| 52 | | `cargo test -p aien-runtime -p aien-cli -- --test-threads=1` (linked compose archive sha256 3eb20f5e...) | 617 passed, 0 failed, 23 ignored | |
| 53 | | grant backstop unchanged | `grants_are_confined_and_the_approved_kind_is_reserved` passes unchanged (`./N.md` grant still refused) | |
| 54 | | lint | `cargo clippy -p aien-runtime -p aien-cli --all-targets -- -D warnings` clean; `cargo fmt --check` clean | |
| 55 | | RUN-1 verdict unchanged | `tools/aien-verify` on a scratch copy of `runs/RUN-1-20261010T154724Z`: `verdict_id a50fccb63363ef9224a19bd8bf4f249754abf5d88667ba0fd6ce93dfb8d63d80`, chain_unbroken true (as recorded) | |
| 56 | |
| 57 | Limits: unit level only; the chip path is exercised by the next declared attempt (RUN-5-GB10). The model may still answer |
| 58 | in other forms that stay refused (for example an absolute path); this repair covers only a leading `./`. Attempt 1 of |
| 59 | RUN-3 E4 was refused for another reason ("edit reply changes nothing in the file"), which this change does not touch. |
| 60 | `runs/` was not edited. |