@ai-ecoverse/slicc-kernel 1.196.36 → 1.196.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1412,7 +1412,7 @@ With `users: 'enforce'` the kernel checks every file call that reaches it agains
1412
1412
  ```
1413
1413
  Defaults env_keep += "GH_TOKEN GITHUB_TOKEN"
1414
1414
  ```
1415
- - **Request limits:** `proc-sudo` accepts at most 4096 caller environment entries and 1 MiB of UTF-8 data, counting `NAME=value` and one terminating NUL per entry. These limits apply before `env_keep` or approval, including entries that would be discarded. A separately supplied `TERM` is also budgeted if it is not already present with the same value. An oversized request fails with `E2BIG`; the kernel does not truncate it.
1415
+ - **Request limits:** `proc-sudo` accepts up to 4096 arguments and 4096 caller environment entries. They share a 1 MiB UTF-8 byte budget: each argument and each `NAME=value` entry costs its encoded length plus one terminating NUL, even for an empty argument. These limits apply before `env_keep` or approval, including entries that would be discarded. A separately supplied `TERM` is also budgeted if it is not already present with the same value. An oversized request fails with `E2BIG`; the kernel does not truncate it.
1416
1416
  - **The line:** `env_keep` takes a double-quoted list of names separated by spaces or tabs, or one name without quotes. `+=` adds to the list, `-=` removes the entries written exactly so, `=` replaces the list and `!env_keep` empties it. `Defaults:<user|%group|ALL>[,…] env_keep …` does the same for those callers, and a line may set several things (`Defaults:cone env_keep += "GH_TOKEN", timestamp_timeout=10`). The order is the one of the [timestamp settings](#sudo-timestamps): the lines for everyone first, then the caller's, each in file order. The list starts empty: sudo's built-in list (`DISPLAY`, `PS1`, `LS_COLORS`, …) and its `env_check` list (`LANG`, `LC_*`, `TZ`, …) aren't there, and `env_check`, `env_delete`, `env_reset`, `secure_path`, the `SETENV:` tag and `sudo -E` or `--preserve-env` aren't supported.
1417
1417
  - **What matches:** a name matches the variable of that name. A `*` matches any run of characters, none included, and an entry may have several (`GH_*`, `*_TOKEN`); it is the only wildcard. The matching is sudo's own, which looks for the text after a `*` once, where it first occurs: `*_TOKEN` matches `GH_TOKEN` and not `MY_GH_TOKEN`, so name a prefix (`MY_*`) for such names. An entry with `=` must match the name and the value (`MODE=dry*`). As in sudo, a variable whose value starts with `() ` (an exported bash function) is dropped unless an entry matched its value as well (`BASH_FUNC_x%%=()*`), and `LOGNAME` and `USER` go together: keeping one keeps both original values, even if they differ. If only one is present, its value fills the missing name, as in sudoers’ `rebuild_env`.
1418
1418
  - **What a kept variable replaces:** the value the kernel would have set, so keeping `HOME` or `SHELL` gives the command the caller's, with what that means for a program that reads its configuration from there, as sudoers(5) warns. `PATH` stays the fixed one (sudo's `secure_path`), `TERM` keeps its own check (sudo's `env_check`), and `PWD` and the four `SUDO_*` variables are always the kernel's.
@@ -1771,7 +1771,7 @@ The OPFS side: a cached directory is checked against its path (`resolve()`) at m
1771
1771
  - an exclusive create (`O_EXCL`, `mkdir`, `symlink`, `link`) and a rename's check of its target decide against OPFS itself, never against a cached missing name ([#942](https://github.com/ai-ecoverse/slicc-kernel/issues/942));
1772
1772
  - the join handshake writes back every open file before a new kernel counts as a peer, and a change in whether the root is shared drops both short-lived windows.
1773
1773
 
1774
- So a locked read-modify-write across tabs (sqlite, a JSON counter under `flock`) is exact, and anything else between tabs is as fresh as the last notice. The same holds for what a WASI program caches in its own process: a notice, a lock grant or a peer joining or leaving drops all of it, and a late or lost notice leaves an unlocked path stat at most 100 ms behind the kernel's answer; opens, descriptor calls and anything under a lock are exact ([#1017](https://github.com/ai-ecoverse/slicc-kernel/issues/1017)). Emscripten programs add their own rule on top: see "Another tab's writes" above. `program-cache-tabs.test.mjs` holds the rows for programs; it freezes a program's clock through `page/notice/program-clock-worker.js`. `crowded-lookups.test.mjs` and `notice-caches.test.mjs` hold the rows. The `notice-caches` rows freeze one kernel's clock and drop the other's notices, through the kernel workers in `test/integration/page/notice/`.
1774
+ So a locked read-modify-write across tabs (sqlite, a JSON counter under `flock`) is exact, and anything else between tabs is as fresh as the last notice. The same holds for what a WASI program caches in its own process: a notice, a lock grant or a peer joining or leaving drops all of it, and a late or lost notice leaves an unlocked path stat at most 100 ms behind the kernel's answer; opens, descriptor calls and anything under a lock are exact ([#1017](https://github.com/ai-ecoverse/slicc-kernel/issues/1017)). Emscripten programs add their own rule on top: see "Another tab's writes" above. `program-cache-tabs.test.mjs` holds the rows for programs; it freezes a program's clock through `page/notice/program-clock-worker.js`. `crowded-lookups.test.mjs`, `notice-caches.test.mjs` and `notice-caches-renames.test.mjs` hold the rows. The `notice-caches` rows freeze one kernel's clock and drop the other's notices, through the kernel workers in `test/integration/page/notice/`.
1775
1775
 
1776
1776
  **Within one kernel** ([#1026](https://github.com/ai-ecoverse/slicc-kernel/issues/1026)): a WASI process keeps the stats it has read, and checks each one against the kernel's change ring at every look. So a process that keeps stat-ing a file, even in a loop that never sleeps, sees another process's change to that path at its next stat. Before #1026's fix, from v1.4.0 on, a stat it had looked up lasted until the process slept, polled, waited for a child or wrote the path itself. The ring names the changed paths only, so in a loop with none of those calls, a stat stays stale until the next sleep, poll, wait or own write when the change was named elsewhere:
1777
1777
  - a write through another hard link of the same file. Only tmpfs mounts support `link`; on the OPFS root and every other mount, a file's link count is always 1;
@@ -1832,7 +1832,7 @@ The Biome, TypeScript, lefthook, Renovate and CI configuration comes from [slicc
1832
1832
 
1833
1833
  `.github/workflows/ci.yml` is the whole CI and release: one caller of [slicc-shared-web's pipeline](https://github.com/ai-ecoverse/slicc-shared-web#pipeline), pinned to the release of the `@ai-ecoverse/slicc-shared-web` devDependency, so the workflow and the harness the tests use move together. `test/integration/workflows.test.mjs` holds it to that.
1834
1834
 
1835
- - **Pull requests and the merge queue:** `npm run lint` (Biome, TypeScript and the shared rules), then the integration tests (`npm test`) split by their timings across 4 shards on the pool, and on a pull request the Claude and Codex reviews, with the kernel's prompt in `review-prompt`. `ci / integration` and `ci / review` are the checks `main`'s merge queue requires. Renovate's pull requests get no review: their integration tests hold them.
1835
+ - **Pull requests and the merge queue:** `npm run lint` (Biome, TypeScript and the shared rules), then the integration tests (`npm test`) split by their timings across 8 shards on the pool, and on a pull request the Claude and Codex reviews, with the kernel's prompt in `review-prompt`. `ci / integration` and `ci / review` are the checks `main`'s merge queue requires. Renovate's pull requests get no review: their integration tests hold them.
1836
1836
  - **Releases:** every push to `main` runs semantic-release on a GitHub-hosted runner, which tags the commit, creates the GitHub release and publishes to npm through trusted publishing, with provenance from `.github/workflows/ci.yml` on `refs/heads/main`. There is no release workflow, no manual release and no certification after the merge: what reaches `main` went through the merge queue's `ci / integration` and the pull request's `ci / review`, so bios and homescoop can pin any release by its provenance. `fledgling.workflow` in `package.json` names `ci.yml`, and `npm run trust` registers it with npm.
1837
1837
  - **The packed tarball:** `packed-kernel.test.mjs` packs the package, installs the tarball on its own and runs homescoop's bash and coreutils through its Node entry, so a release that ships without a file its entries load fails CI, and `types-package.test.mjs` type-checks a consumer of its declarations.
1838
1838
 
@@ -1576,7 +1576,7 @@ function createParentRefreshCount() {
1576
1576
  }
1577
1577
 
1578
1578
  // src/version.ts
1579
- var KERNEL_VERSION = true ? "1.196.36" : "0.0.0-dev";
1579
+ var KERNEL_VERSION = true ? "1.196.37" : "0.0.0-dev";
1580
1580
  var OS_RELEASE = "6.0.0-slicc";
1581
1581
  function procVersion() {
1582
1582
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC