Repository navigation
Sync upstream v1.11.0: our patch stack onto aproorg/v1.11.0 - #16
Merged
Merged
Conversation
With SANDBOX_USE_CGROUPV2=false (required on AWS Lambda MicroVMs) the entrypoint removed cgroup_* limits but left clone_newcgroup: true, so nsjail tried to create cgroup v1 directories under /sys/fs/cgroup and exited 255, killing the smoke test and the MicroVM image build. (cherry picked from commit ff4e922)
The Lambda MicroVM guest does not carry the image's PATH, so the final exec of the sandbox API failed and the hookless image build reported 'An unknown error occurred'. (cherry picked from commit c4b562f) Also carries: fix(runner): do not abort the boot when the smoke-dir chown fails (fbb455c), folded in when replaying onto v1.11.0.
…chain minio's IamAwsProvider cannot fetch ECS/Fargate container credentials (169.254.170.2 request fails with an undefined status), so file-server could never reach S3 with a task role. When no static MINIO_ACCESS_KEY is set and IRSA is not configured, wrap the AWS SDK default credential chain as the minio credentialsProvider instead. (cherry picked from commit 84be06a) Also carries: fix(file-server): import minio Client as a value again (#5, aacee18), folded in when replaying onto v1.11.0.
ElastiCache Serverless (Valkey) is always cluster mode, so every multi-key script, MULTI/EXEC and MGET must stay in one hash slot. Follows the key shapes of upstream PR #17 so this can be dropped when that lands: - redis-connection.ts: isClusterMode (USE_REDIS_CLUSTER), bullmqPrefix ('{codeapi}' in cluster mode, BullMQ's default otherwise), hashTag. - runtime-session registry: rtsx:{sess,lock,gen,ckptseq}:{<id>} so the record+lock scripts are single-slot (not covered by PR #17). - replay state: exec_state/exec_lock/exec_result/tool_history:{<id>}; the stale-execution sweep reads with pipelined GETs instead of a cross-slot MGET. - BullMQ prefix on every Queue/Worker/QueueEvents, including hosted apps. Bridge, egress ledger and tool-call server are not covered (not used by this deployment). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wzy53QgK2dCkSKvEFTySD1 (cherry picked from commit f3d54ae)
Static pandoc 3.11 (sha256-pinned), WeasyPrint's Pango/HarfBuzz runtime libs, and weasyprint + mermaidx in /pkgs, so the apro-pdf skill can render branded PDFs inside the jail without Chrome or network. (cherry picked from commit d4fd61d) Also carries: feat(runner): render office documents and OCR text in the sandbox (#6, 380589e), folded in when replaying onto v1.11.0.
Programmatic jobs failed with CROSSSLOT on cluster-mode Redis: the claim/commit/cancel scripts touch a job's marker, :result and :execution keys, which hashed to different slots. The worker failed the job but the API waited out JOB_TIMEOUT (~5 min) before returning a bare error. Wrap the per-job part of the key in a hash tag, and reconcile active jobs with one GET per job instead of a cross-slot MGET. (cherry picked from commit ad213ba)
Stateful runtime sessions launch with clientToken sess-<rt>-<generation>. The rtsx:gen counter expires with the session record (max duration + 10 minutes), and the next allocation returned the fixed config-derived seed again. A user returning after an idle night therefore resent the token of their first launch. AWS still remembers it and rejects the reuse with "The provided clientToken was used with different request parameters", even for a byte-identical request. That validation failure is not transient, so the PENDING intent kept the token and every later request replayed it until AWS forgot the token (about 24h in eu-west-1). - Salt the session and hosted-app generation seeds with random bytes so a reset counter always starts at a new generation. Token shape, range and length are unchanged; the allocate script still never lowers a live counter. - Retire a PENDING intent when AWS rejects its token as reused. AWS launched nothing, so the next request allocates a fresh generation. - Tests: registry loss on an unchanged config must not resend the token, and a reuse rejection must not be replayed. Fixtures that used the seed as a constant compute it once; seed tests assert the salt. (cherry picked from commit cfd373d) (cherry picked from commit 8e60715)
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream v1.11.0 (
c7bf37d) with our patches replayed on top. The base branchaproorg/v1.11.0is cut at the upstream tag, so this pull request shows only what we carry: 7 commits, 20 files.This replaces the old flow of merging upstream into
apro-deployand squashing. It supersedes #15 (v1.10.15).What to check
git merge v1.11.0intosync/2026-11-16(the branch behind Sync code-interpreter v1.10.15 into apro-deploy #15), which merged without conflicts. Nothing was resolved by hand beyond that merge result.Stack
fbb455c)Clientimport fix (#5,aacee18)380589e)Three of the original ten commits conflicted with upstream changes to the same file and were folded into the commit before them; each absorbing commit says so in its message.
Our fork vs. upstream after the merge (re-checked 2026-11-30)
aproorg/v1.11.0(c4ba504) = upstream tagv1.11.0(c7bf37d) + the 7 commits above: 20 files, +341 / −91. Nothing else. Unchanged since the merge on 2026-11-20.d19c5a7) is byte-identical to this PR's head (4a4470e), so nothing changed during the merge.apro-deploy(f3750ed, last moved by Sync code-interpreter 4b41f3a into apro-deploy #14 on 2026-11-12) has no commits that are missing fromaproorg/v1.11.0. Every+fromgit cherryis either folded into the stack above or is an old upstream-merge/sync commit.v1.11.0is still the newest upstream release, so no newer sync is due.services.yamlalready pointscode-interpreteratdeploy_branch: aproorg/v1.11.0.mainis identical to upstreammain(c7bf37d).Merging and adopting
apro-deploystays untouched as the previous version.deploy_branch: aproorg/v1.11.0forcode-interpreterinservices.yaml. Done.🤖 Generated with Claude Code