iOS sandbox: build the simulator jail's files and require them in a release
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Part of #1648.
Scope
A maintainer's Mac build makes the simulator jail's three files in dist/jail/ (the library, simlock-jail, the profile), and a release refuses to ship without them. Nothing in the driver uses them yet: no worker behaves differently.
This takes over the prototype of draft PR #1649: start task/<this issue> from main, bring that PR's files in (src/drivers/ios/jail/, the scripts/build-capture.mjs and turbo.json changes, src/build-capture.test.ts, the toolchain.md section), open the task's own PR, and close #1649 pointing at it. The branch research/isolate-ios-simulators cannot carry the task: a task's PR must come from task/<n> (delivery rule 11).
If it goes wrong, a release ships without the jail files and a sandboxed worker refuses iOS with missing-files, or a Mac build without Xcode fails instead of warning.
Technical spec
Commit b037ae2a0.
Rows
- Behaviours: B1, B2
- Interfaces: I1
- Existing code: X19
Facts
| # | Fact | Source |
|---|---|---|
| F1 | Fallow fails PR #1649 on the new build function, and a test cannot fix it: Fallow has no coverage run and counts a spawned script as 0% covered, so CRAP is cyclomatic squared plus cyclomatic | PR #1649's Fallow job, 2026-11-17: Function 'buildUniversalSwift' has a CRAP score of 30 (threshold: 30); .fallowrc.json:135 ("there is no coverage pipeline, so Fallow counts 0% coverage") |
| F2 | PR #1649's head merges onto main without conflicts |
git merge-tree --write-tree origin/main origin/research/isolate-ios-simulators, 2026-12-02: a tree id, no conflict list |
| F3 | The release builds on a Mac with Xcode and checks the capture programs in one step | .github/workflows/release.yml:152 runs-on: xcode-27; :176-181 the dist/bin/$program check |
Modules touched
src/drivers/ios/jail/ (new: Jail.swift, main.swift, private.h, profile.sb), scripts/build-capture.mjs, src/build-capture.test.ts, turbo.json, .github/workflows/release.yml, docs/internal/agent-rules/toolchain.md. Searches: rg "build-capture|dist/bin" .github scripts turbo.json.
Rules in play
- ADR 0103 (Accepted — not yet implemented): the sections named on each line below; the feature's rows hold the shapes.
- ADR 0103 §4: a sandboxed worker refuses iOS when the files are missing, so the release must hold them.
docs/internal/VENDORED-CODE.md: the jail is our own code, no upstream, no NOTICE.- The profile and
simlock-jailkeep PR #1649's behaviour; T2 changes the profile.
Tests
Seam: src/build-capture.test.ts:28 scratchRepo with a fake xcrun (as #1649's test does); the release step run as a shell script over a scratch dist/.
- B1: A maintainer builds on a Mac and gets
dist/jail/libsimlock-jail.dylib(iOS Simulator, arm64 and x86_64),dist/jail/simlock-jail(macOS, both) anddist/jail/profile.sb; a build that loses either binary or a slice leaves it out with a warning, and the profile ships only beside both; not on a Mac, nothing is built; the build's functions stay at cyclomatic 4 or less, because Fallow counts a spawned script as 0% covered (.fallowrc.json:135), so CRAP is cyclomatic squared plus cyclomatic and the limit of 30 allows 4: all build; library fails; one macOS slice fails; noxcrun; not macOS (Linux CI: nothing built, no warning about Xcode) - B2: The release job fails when the built
dist/jail/lacks one of its three files, and the packed tarball must hold all three: all three present; library missing; profile missing; tarball withoutdist/jail/simlock-jail
Done when
- Fallow passes on the PR with no new
thresholdOverridesentry:buildUniversalSwiftis split so no function ofscripts/build-capture.mjspasses cyclomatic 4. src/build-capture.test.tspasses in CI's unit job (Linux: the not-macOS case) and on a Mac (pnpm exec vitest run --project unit src/build-capture.test.ts), the no-xcruncase warning and building nothing.- The release workflow's check step fails on a
dist/missing any ofdist/jail/libsimlock-jail.dylib,dist/jail/simlock-jail,dist/jail/profile.sb, and the tarball check names all three. - Draft PR #1649 is closed with a link to this task's PR.
Out of scope
Any driver wiring (T2), the profile's new rules (T2), the issue verb (T4).
Depends on
- none
Written by an agent.
- 主要言語
- TypeScript
- スター
- 730
- フォーク
- 44
- 平均マージ
- 15時間 28分
- マージ済み PR(30日)
- 387
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstackincubator/simlock のほかの issue
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
callstackincubator/simlock#2088 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
callstackincubator/simlock#2080 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
task:ready
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
callstackincubator/simlock#2079 ·
メンテナーはふだん 1 日以内に返信
-
platform:ios task:ready
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
callstackincubator/simlock#2078 ·
メンテナーはふだん 1 日以内に返信
-
iOS copy: keep the app database at the copy's own UDID対応中かも @V3RON が今日担当しました。 オープンplatform:ios task:ready
callstackincubator/simlock#2077 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
callstackincubator/simlock の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
earendil-works/gondolin#222 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
endora-commerce/endora-commerce#2203 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority:medium ready-for-human
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
wondermoney/wondermoney#1079 ·
メンテナーはふだん 1 日以内に返信