diff --git a/ZERO-LEGACY.md b/ZERO-LEGACY.md new file mode 100644 index 0000000..71eb9f9 --- /dev/null +++ b/ZERO-LEGACY.md @@ -0,0 +1,50 @@ +# Zero-legacy rows and proposed exceptions + +Status: **PROPOSED, not reviewed.** These rows are bound to [#3](https://github.com/aien-dev/babel/issues/3) under the inventory authority [aien-architecture-mv #300](https://github.com/aien-dev/aien-architecture-mv/issues/300). + +The scanner is `tools/zero-legacy/closure.om` from aien-architecture-mv main `12e8c7de`, built with the pinned seed omc (sha256 `734f0a39…6b61`, its `omega.pin`). Run at babel main `156360f`, `closure .` reports 15 outstanding rows and 0 unknown rows. `bind.om` from `feat/300-m0-ledger` `cd4b3dff` puts every row under #3. + +A manifest cannot clear any of them. `data demo/` or `data README.md` turns those rows into `FORGED`, because the scanner refuses a data claim over a file it classified as source or hidden. That is by design. Each row below is therefore either a reviewed exception or a migration target. Versions are the sha256 prefix of the file at `156360f` and the last commit that touched it. + +## Translator inputs: exception by design, no Omega successor + +| Row | Category | Version | Purpose | +| --- | --- | --- | --- | +| `examples/sample/src/hash.c` | C_H | `4c827730` 3d13ecf | sample C input that babel translates | +| `examples/sample/src/mix.c` | C_H | `6307fb1e` 3d13ecf | sample C input with S1 and non-S1 functions | +| `examples/sample/tools/report.py` | PYTHON | `3251dbf1` 3d13ecf | sample Python input, reported MISSING_IMPLEMENTATION | + +- Babel translates C and Python into Omega, so its sample input has to be C and Python. The files are not part of babel. +- The only time they are compiled is in `tests/run.sh`: `cc` builds the original C as the differential oracle. +- Omega replacement plan: none. Replacing them with `.om` would remove what the tests exercise. If they move, they move to a fixture directory that the scanner skips, under a reviewed `skip` line. + +## Text that quotes C: not code, flagged by the content heuristic + +The scanner's HIDDEN rule matches a C include directive (`#` + `include`) or a Rust-style main function header (`fn main` + `(`) in the first 4096 bytes of any file. These files match only because they quote that text. This record spells both markers in split form, so it does not become a HIDDEN row itself. + +| Row | Version | What it quotes | +| --- | --- | --- | +| `demo/c.txt` `demo/cpp.txt` `demo/go.txt` `demo/python.txt` `demo/rust.txt` `demo/zig.txt` | `3bf3ed5d` `4ea4beeb` `114eeba4` `40bba857` `62b0e52a` `ba41e026`, all 3d13ecf | recorded babel transcripts; the ABSORBED reason quotes the `stdint.h` include line | +| `README.md` | `454cb194` 156360f | the verdict table quotes the `stdint.h` include line | +| `src/20-split.om` | `7f8ad437` 3d13ecf | `text` constants holding the S1 header line and reason strings | +| `src/30-pipe.om` | `adc9d5b7` 3d13ecf | the header that babel adds to every C unit | +| `src/40-gen.om` | `aa458b9b` 3d13ecf | target-language driver templates that babel emits: a Rust main function, a C driver including `stdio.h` | + +- The three `src/*.om` files are the native Omega implementation of babel; nothing replaces them. +- Omega replacement plan: none needed. Once reviewed, these rows need a recorded review decision; the scanner has no per-file reviewed state today. + +## Host sequencers: migration targets + +| Row | Category | Version | Purpose | Host tools observed | +| --- | --- | --- | --- | --- | +| `build.sh` | SHELL | `2acb1d9b` 512e3ef | extracts the pinned omc and `sha256-om2.om` from omega-mv with `git show`, checks them with `sha256sum -c`, drops `export` with `sed`, then compiles `build/babel.om` | dash, git 2.43.0, sed | +| `tests/run.sh` | FOREIGN | `e019d8fd` dd79838 | end-to-end checks: lint, usage exits, six targets, `cmp`, JSON parse, the `fold` negative control | dash, awk, cmp, `python3 -m json.tool` (Python 3.12.3), cc, target toolchains | + +Omega replacement plan: + +- `build.sh`: an `.om` builder. It needs `execprog` and `waitpid` to run git and omc. The scanner reports an `.om` file containing `execprog` as WRAPPER, outstanding until reviewed. The `sed` step disappears once the pinned omc accepts `export fn` beside a main function. It refuses that today with error 9, as the `build.sh` comment records. +- `tests/run.sh`: + - The JSON check can move to an `.om` checker instead of Python. That leaves SHELL, not FOREIGN. + - The rest needs the same process words for `cc`, `rustc`, `go` and `zig`, so it moves after `build.sh`. + +Nothing here is migrated yet. NOT_RUN: `.om` builder, `.om` test driver.