Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1a70fca
Vendor deno_core 0.413.0 and deno_v8 0.5.0 carried onto V8 152.2.0
murphye Nov 27, 2026
72e0766
Restore the one-V8 build on Codex's V8 152.2.0
murphye Nov 27, 2026
8055e52
Run the Astro compiler child on deno_core
murphye Nov 27, 2026
0d29c25
Name the ArrayBuffer budget in the compiler's buffer test
murphye Nov 27, 2026
eba2f36
Run captured helpers on deno_core
murphye Nov 27, 2026
f0d65e9
Name the engine in the helper runtime a run records
murphye Nov 27, 2026
eea624d
Remove Boa from the workspace
murphye Nov 27, 2026
91095ce
Document the deno_core engine
murphye Nov 27, 2026
f6e3565
Give the release-package test's fixture a lockfile
murphye Nov 27, 2026
4ef9755
Expect cache-trim to keep the V8 mirror again
murphye Nov 27, 2026
35a97cb
Grow the helper heap with arrays in the production-binary test
murphye Nov 27, 2026
113bc45
Refuse every rusty_v8 override but the pinned local mirror
murphye Nov 27, 2026
d1c79dc
Say what the V8 archive check and the compiler host enforce
murphye Nov 27, 2026
8fef716
Check the vendored deno crates against crates.io and the carried diff
murphye Nov 27, 2026
7453463
Count one V8 version from two sources as two builds
murphye Nov 27, 2026
85617b2
Let the helper child's CPU limit signal before it kills
murphye Nov 27, 2026
3e6d40c
Test that the helper loader refuses an uncaptured module on its own
murphye Nov 27, 2026
30fbaf3
Keep shared and resizable ArrayBuffers from the compiler worker
murphye Nov 27, 2026
c0eeaba
Expect READ to be unused in the archive check's test build
murphye Nov 27, 2026
b2dafc1
Classify a helper child's end in a function and test the V8 abort text
murphye Nov 27, 2026
4f4b91d
Give host Cargo for controls and trial checks the verified V8 mirror
murphye Nov 28, 2026
2e5293e
Keep the V8 archive test's throwaway mirrors out of the CI job's envi…
murphye Nov 28, 2026
bad0aa2
Rerun the V8 archive check only on paths that exist
murphye Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/actions/rust-setup-macos/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

name: Rust setup (macOS)
description: Pinned Rust toolchain for macOS jobs
description: Pinned Rust toolchain and verified V8 archive for macOS jobs

runs:
using: composite
Expand All @@ -10,3 +10,8 @@ runs:
- name: Toolchain
shell: bash
run: rustup show active-toolchain || rustup toolchain install
- name: V8 archive
shell: bash
run: |
scripts/v8-archive.sh
scripts/v8-archive-test.sh
12 changes: 10 additions & 2 deletions .github/actions/rust-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# SPDX-License-Identifier: Apache-2.0
#
# What every Linux Rust job in CI needs before cargo runs: system packages,
# the pinned toolchain, the build caches, and for the test jobs the test Postgres and the user
# the pinned toolchain, the build caches and the
# verified V8 archive, and for the test jobs the test Postgres and the user
# namespaces Codex's sandbox needs. Actions are pinned by commit SHA.
#
# Two caches are restored. cargo's downloads (the registry and the git
# sources) are keyed on the
# sources, rusty_v8's Chromium submodules among them) are keyed on the
# toolchain and Cargo.lock. target/ is keyed on those and the manifests, one
# cache per kind of build ("test" for the test features' build, "check" for
# clippy's), and holds only the dependencies' artifacts (scripts/cache-trim.py),
Expand Down Expand Up @@ -129,3 +130,10 @@ runs:
path: target
key: target-${{ inputs.target-cache }}-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml', 'Cargo.lock', 'Cargo.toml', 'crates/*/Cargo.toml', '.cargo/config.toml') }}
restore-keys: ${{ !(inputs.warm == 'true' && github.ref == 'refs/heads/main') && format('target-{0}-{1}-', inputs.target-cache, runner.os) || '' }}

# The prebuilt V8 archive deps/v8.toml pins, checked against its SHA-256
# into target/v8-mirror, and RUSTY_V8_MIRROR and RUSTY_V8_ARCHIVE_SHA256
# into the job's environment for rusty_v8.
- name: V8 archive
shell: bash
run: scripts/v8-archive.sh
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- run: scripts/lock-check.sh
# The V8 rule in lock-check against small lockfiles.
- run: scripts/lock-check-test.sh
# The vendored deno_core and deno_v8 are the pinned crates.io releases
# with the carried change, and an edited copy is refused.
- run: scripts/deno-vendor-check-test.sh
# Fails when a control is switched off in the commit: every row's switch
# text is in the file it names exactly once, and a replacement that holds
# its own switch text is not in that file at all, on the lines the row
Expand Down Expand Up @@ -425,6 +428,9 @@ jobs:
uses: ./.github/actions/rust-setup
with:
target-cache: test
# v8-archive.sh against copies of the verified mirror rust-setup laid
# out: a tampered archive or binding, or an unpinned target, is refused.
- run: scripts/v8-archive-test.sh
- name: Build
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: cargo build --workspace --locked
Expand Down Expand Up @@ -455,9 +461,9 @@ jobs:
- name: Lockfile resolves from scratch
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: scripts/lock-resolves.sh
# Verify V8 runtime crates stay out of
# Each V8 version deps/v8.toml lists as locked but unbuilt stays out of
# the build graph.
- name: Reject V8 in the binary dependency graph
- name: Unbuilt V8 versions stay unbuilt
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: scripts/lock-check.sh v8-built
# The release SBOM must list every fork at its pinned revision.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codex-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ jobs:
- name: Complete the lockfile
run: cargo metadata --format-version 1 >/dev/null

# Select the archive from Atomic's resolved lock, after replacing Codex's seed.
- name: V8 archive
run: scripts/v8-archive.sh

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: Cargo.lock
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/controls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ jobs:
with:
target-cache: test
backends: "true"
# rusty_v8's build script lays its prebuilt archive and bindings outside
# its own output, in target/debug/gn_out/ and its crate's source, and the
# build cache keeps neither, so a row built with other features than
# the cached build, which compiles v8 again, finds no archive to link.
# Forgetting v8's units makes its build script run again, from the
# verified mirror rust-setup laid out, before any row builds.
- name: V8's build output for every feature set
run: rm -rf target/debug/build/v8-* target/debug/.fingerprint/v8-*
- name: Pin SQLite-capable bd for the ready JSON differential control
if: ${{ contains(matrix.rows, 'graph-ready-json-comment-count') }}
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ jobs:
key: cargo-release-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml', 'Cargo.lock') }}
restore-keys: cargo-release-${{ runner.os }}-

# The prebuilt V8 archive deps/v8.toml pins for this target, checked
# against its SHA-256 into target/v8-mirror, which it names to rusty_v8.
- name: V8 archive
run: scripts/v8-archive.sh ${{ matrix.target }}

# The checkout and cargo-home paths are remapped so the binary does not
# carry this runner's directory layout.
- name: Build
Expand Down Expand Up @@ -187,6 +192,12 @@ jobs:
key: cargo-release-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml', 'Cargo.lock') }}
restore-keys: cargo-release-${{ runner.os }}-

# The prebuilt V8 archive deps/v8.toml pins for this target, checked
# against its SHA-256 into target/v8-mirror, which it names to rusty_v8.
- name: V8 archive
shell: bash
run: scripts/v8-archive.sh ${{ env.WINDOWS_TARGET }}

# The checkout and cargo-home paths are remapped so the binary does not
# carry this runner's directory layout.
- name: Build
Expand Down
11 changes: 7 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ These are the rules that are easiest to break:
- **Declarative atoms interpret frontmatter and templates; only captured
helper modules execute, one fresh capability-free isolate per call.**
`.atom.astro` files use the bundled Astro parser and a bounded
TypeScript-shaped AST interpreter. Helper calls run in a capability-free Boa
isolate behind `atomic_core::helper_runtime`, with no host operations,
TypeScript-shaped AST interpreter. Helper calls run in a capability-free V8
isolate, embedded through `deno_core`, behind `atomic_core::helper_runtime`,
with no host operations,
Rust-enforced limits,
the step's recorded clock and a result as trusted as its least trusted
argument. Workflow mappings remain CEL. JSON Schema stays the runtime
Expand Down Expand Up @@ -129,8 +130,10 @@ first. These checks also run locally:
scripts/codex-pin.sh check # the [patch] block and toolchain match deps/codex.toml
scripts/forks-check.sh # each fork in deps/forks.toml resolves at its pinned rev
scripts/lock-check.sh # crates shared with Codex keep Codex's locked versions
scripts/lock-check-test.sh # exercise the V8 dependency guard on small lockfiles
scripts/dev.sh scripts/lock-check.sh v8-built # verify the binary's dependency graph is V8-free
scripts/lock-check-test.sh # exercise the one-V8 rule on small lockfiles
scripts/v8-archive-test.sh # a tampered V8 archive or binding, or an unpinned target, is refused
scripts/deno-vendor-check.sh # third_party/deno is the pinned crates.io releases plus pr-36665.diff
scripts/dev.sh scripts/lock-check.sh v8-built # each V8 version deps/v8.toml lists as unbuilt stays out of the build
scripts/dev.sh scripts/lock-resolves.sh # a fresh resolution keeps Codex's libsqlite3-sys
scripts/dev.sh cargo deny --locked check bans licenses sources # deny.toml
scripts/dev.sh scripts/sbom.sh # the SBOM lists every fork at its pin
Expand Down
Loading