|
11 | 11 | * node scripts/codemod-split-engine.mjs --write # apply the split, then verify it |
12 | 12 | * node scripts/codemod-split-engine.mjs --verify --base <ref> |
13 | 13 | * # re-prove a split on disk against engine.ts at <ref> |
| 14 | + * node scripts/codemod-split-engine.mjs --scoped [--write] |
| 15 | + * # the second pass (#30052): plan (or apply) ObjectRepository and ScopedContext |
| 16 | + * node scripts/codemod-split-engine.mjs --scoped --verify --base <ref> |
| 17 | + * # re-prove the second pass on disk against engine.ts at <ref> |
14 | 18 | * node scripts/codemod-split-engine.mjs --self-test |
15 | 19 | * node scripts/codemod-split-engine.mjs --help # this usage, on any tree (split or not) |
16 | 20 | * |
|
117 | 121 | * two runs on one input write byte-identical trees (the plan prints the output |
118 | 122 | * tree's sha256). Only the proof's leaf-reach walk reads sibling files. |
119 | 123 | * |
| 124 | + * ## The second pass: `ObjectRepository` and `ScopedContext` (#30052) |
| 125 | + * |
| 126 | + * `engine.ts` declares two more classes after `ObjectQL`, the repository a |
| 127 | + * hook reaches as `ctx.api.object(name)` and the context it reaches as |
| 128 | + * `ctx.api`. `--scoped` facades them with this pass's cut pattern, stay rules |
| 129 | + * and byte-identity proof, one facet module per class (`SCOPED_CLASSES`) and |
| 130 | + * one host per INSTANCE (`SCOPED_HOSTS_MODULE`, #30051's shape keyed by the |
| 131 | + * instance), and it touches no other byte: its input is the `engine.ts` the |
| 132 | + * first pass left, and it is proved against that file, so it is re-run on the |
| 133 | + * latest `main` at landing like the first. Its marker is `SCOPED_MARK`, so the |
| 134 | + * two passes' stubs and files are told apart. Two stay reasons are its own: |
| 135 | + * a body that reads a private member off another instance (`foreign-private`: |
| 136 | + * the class body may, a module function may not) and one that reads a |
| 137 | + * non-public static (`private-static`: the statics route is `ObjectQL`'s). |
| 138 | + * |
120 | 139 | * ts-morph is a root devDependency, resolved from the root manifest, as the |
121 | 140 | * pilot takes it. |
122 | 141 | * |
|
0 commit comments