Skip to content

feat(bb): chonk inputs revisit, smaller default bb.js CRS#23400

Merged
ludamad merged 5 commits into
merge-train/barretenbergfrom
cb/df5bc6cac73d
May 19, 2026
Merged

feat(bb): chonk inputs revisit, smaller default bb.js CRS#23400
ludamad merged 5 commits into
merge-train/barretenbergfrom
cb/df5bc6cac73d

Conversation

@AztecBot

@AztecBot AztecBot commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Centralizes pinned Chonk input management and wires PR CI to refresh the input hash via ci-refresh-chonk or a --ci-refresh-chonk head-commit marker.

The refresh path skips the main CI body, regenerates/uploads the pinned inputs, proves one small refreshed flow in C++ and bb.js, then pushes only barretenberg/cpp/scripts/chonk-inputs.hash back to the PR.

Also makes Chonk tests/benchmarks consume the pinned inputs directly, lowers the default bb.js CRS size to 2 ** 18, and makes AGENTS.md a symlink to CLAUDE.md.

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label May 19, 2026
@ludamad ludamad marked this pull request as ready for review May 19, 2026 15:36
@ludamad ludamad requested a review from charlielye as a code owner May 19, 2026 15:36
@ludamad ludamad enabled auto-merge (squash) May 19, 2026 15:42
@ludamad ludamad changed the title feat(ci): refresh Chonk inputs feat(bb): chonk input refresh label, lower default bb.js CRS download May 19, 2026
@ludamad ludamad changed the title feat(bb): chonk input refresh label, lower default bb.js CRS download feat(bb): chonk inputs revisit, smaller default bb.js CRS May 19, 2026
AztecBot and others added 2 commits May 19, 2026 19:33
Ports the Chonk inputs refresh workflow proposal from
https://gist.github.com/ludamad/7fbd491753b17f4f9c94f0c7875de906

Source proposal commit (pre-port): 5fe441d9c2fab3e8410be30dcf94d3e29168e493
Base: AztecProtocol/aztec-packages merge-train/barretenberg @ 4da6ab0
@ludamad ludamad force-pushed the cb/df5bc6cac73d branch from c3295c3 to d6bbc2b Compare May 19, 2026 19:39
@ludamad ludamad merged commit 4fb05ae into merge-train/barretenberg May 19, 2026
15 checks passed
@ludamad ludamad deleted the cb/df5bc6cac73d branch May 19, 2026 23:09
ludamad added a commit that referenced this pull request May 19, 2026
Follow-up from reviewing #23400.

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
spalladino added a commit that referenced this pull request May 27, 2026
This causes Codex sandbox to fail and the apply_patch command to fail.
Fix is to remove the symlinks for all the .codex folders, and instead
create actual folders with symlinks in their contents. A pre-commit hook
checks that all contents are symlinked.

>   The issue is the tracked symlink:
> 
>   yarn-project/.codex -> .claude
> 
> The sandbox is trying to enforce
/home/santiago/Projects/aztec-4/yarn-project/.codex as a read-only
> path, but yarn-project is also a writable root. Since .codex is a
symlink inside that writable root,
>   bubblewrap refuses to set up the sandbox:
> 
>   Fatal error: cannot enforce sandbox read-only path .../.codex
>   because it crosses writable symlink .../.codex
> 
> So apply_patch is not uniquely broken. I reproduced the same sandbox
setup failure with simple
> sandboxed commands like pwd and ls. Commands that are already approved
or explicitly escalated can
>   still run because they bypass that sandbox path setup.

This issue had been introduced in #23400.
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jun 4, 2026
BEGIN_COMMIT_OVERRIDE
feat(ci): refresh Chonk inputs (AztecProtocol#23400)
fix(ci): harden Chonk refresh post-action (AztecProtocol#23419)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants