interplane.Get Omega
Read in your language

babel

aien-dev/babel

Brought by drakestapleton

GitHub aien-dev/babel#6 (code only)

closed derived 018082f1b9288f0f #6

Imported from GitHub aien-dev/babel#6 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 156360f854a699ded0d000b7fdb6dd23821c9b14 · Head 5e15ec8f432587fa6cc56a9c2a79cd6c6cbefece

Apply it

git checkout -b patch-018082f1b9288f0f 156360f854a699ded0d000b7fdb6dd23821c9b14
curl -fsSL https://interplane.io/drakestapleton/babel/patches/018082f1b9288f0f.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/babel
6
5e15ec8f432587fa6cc56a9c2a79cd6c6cbefece
{"kind":"github-import","owner":"aien-dev","repo":"babel","number":6,"url":"https://github.com/aien-dev/babel/pull/6","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:46Z","metadata":"unavailable","state_derived":true}

Changes

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.