Apple CI: skip matrix for PR diffs with no Apple build inputs #307

Merged
founder merged 4 commits from ios/apple-pr-inputs-skip into main 2026-09-28 05:14:24 +00:00
Member

What

Extends the protected-base, fail-closed Apple PR impact classifier (#304) beyond Markdown-only: diffs confined to proven non-Apple trees such as services/ (including hub-only #306 and Markdown files) or Android/ skip the expensive iOS/macOS/visionOS matrix. Root Markdown and Markdown under docs/ or evolution/ also skip. Web/ does not skip: the macOS lane packages the Safari extension from Web. The required Build: Apple / Check (SwiftLint) (pull_request) status remains present.

Fail-closed guarantees

  • Apple/, Packages/, Web/, Bazel inputs, flake.nix/flake.lock, package.json, Protos/, Scripts/, any *.swift (including under services/Android), the Apple workflow, shared config, unknown or empty diffs, renames, and classifier errors return true (full matrix).
  • The scope classifier runs from the protected base, not the PR head, and only its exact true/false output controls the skip. No secret scope is expanded by this PR. The new Bazel test does execute PR-head test code in the required SwiftLint lane when apple_inputs=true; Security review of that workflow boundary is requested.

Verification

  • bazel test //bazel/ci:apple_pr_inputs_test passed in required SwiftLint run 20644 at signed head 72cdcff98f1e57f470ac23ab1bf5f6f167da444d; the test includes #306’s exact hub-only file set, Markdown-under-services/Android, Swift-first precedence, Web, shared inputs, and mixed-path cases.
  • Scope-step simulation against #306’s exact SHAs: new classifier -> false, old classifier -> true. A future live hub-only PR must demonstrate the skip path after merge.
  • This PR edits the Apple workflow, so its own full iOS/macOS/visionOS matrix run is expected and exercises the true path.

Redmine: #103 (assignee iOS). Integration remains in the root lane after fresh exact-head independent reviews and green checks.

## What Extends the protected-base, fail-closed Apple PR impact classifier (#304) beyond Markdown-only: diffs confined to proven non-Apple trees such as `services/` (including hub-only #306 and Markdown files) or `Android/` skip the expensive iOS/macOS/visionOS matrix. Root Markdown and Markdown under `docs/` or `evolution/` also skip. `Web/` does **not** skip: the macOS lane packages the Safari extension from Web. The required `Build: Apple / Check (SwiftLint) (pull_request)` status remains present. ## Fail-closed guarantees - `Apple/`, `Packages/`, `Web/`, Bazel inputs, `flake.nix`/`flake.lock`, `package.json`, `Protos/`, `Scripts/`, any `*.swift` (including under services/Android), the Apple workflow, shared config, unknown or empty diffs, renames, and classifier errors return `true` (full matrix). - The scope classifier runs from the protected base, not the PR head, and only its exact `true`/`false` output controls the skip. No secret scope is expanded by this PR. The new Bazel test does execute PR-head test code in the required SwiftLint lane when `apple_inputs=true`; Security review of that workflow boundary is requested. ## Verification - `bazel test //bazel/ci:apple_pr_inputs_test` passed in required SwiftLint run 20644 at signed head `72cdcff98f1e57f470ac23ab1bf5f6f167da444d`; the test includes #306’s exact hub-only file set, Markdown-under-services/Android, Swift-first precedence, Web, shared inputs, and mixed-path cases. - Scope-step simulation against #306’s exact SHAs: new classifier -> `false`, old classifier -> `true`. A future live hub-only PR must demonstrate the skip path after merge. - This PR edits the Apple workflow, so its own full iOS/macOS/visionOS matrix run is expected and exercises the `true` path. Redmine: #103 (assignee iOS). Integration remains in the root lane after fresh exact-head independent reviews and green checks.
Apple CI: skip matrix for PR diffs with no Apple build inputs
Some checks failed
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 7s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 37s
Build: Web / Build (Web) (pull_request) Successful in 45s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m26s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Check (SwiftLint) (pull_request) Successful in 6m29s
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
4d3a6cdd4e
Extends the protected-base, fail-closed PR impact classifier
(#304) beyond Markdown-only: hub-only and services/Android/Web
diffs now skip the expensive iOS/macOS/visionOS matrix while the
required SwiftLint check still runs.

Conservative by construction: Apple/, Packages/, Bazel inputs,
flake.nix/lock, package.json, Protos/, Scripts/, any *.swift,
workflow/config changes, renames, unknown or empty diffs, and
classifier errors all still run the full matrix. No execution of
PR-controlled code (classifier runs from the protected base);
no secret-scope changes.

Live demonstration: PR #306 (services/mcp-hub only) classifies
false under the new script vs true under the old one; Apple/
and shared-input diffs still classify true.

Redmine: #103
Owner

BLOCKING at head 4d3a6cdd: the new Web/* skip in bazel/ci/apple_pr_inputs.sh is unsafe. On current main, .forgejo/workflows/build-apple.yml lines 420-429 run bun run --cwd Web package:safari in the macOS Apple matrix. A Web source or Web/package.json change can alter or break that job, but this classifier returns false and skips it (the new test even expects false for Web/src/example.ts + Web/package.json). Please remove Web/* from the cheap-skip set and add positive/full-matrix tests for representative Web source and package changes. Keep the #306 hub-only case skipped. Recheck other tree-wide skip claims against the actual workflow inputs; a new signed head needs fresh checks/reviews. Do not merge this head. Source:

# No Bazel Apple target consumes the packaged Safari extension; kept on the
# macOS lane only, as in the release lane.
- name: Prepare Safari Extension
if: ${{ matrix.platform == 'macOS' }}
shell: bash
run: |
NIX_BIN="$(/bin/bash Scripts/resolve-nix-bin.sh)"
"$NIX_BIN" develop .#apple-release --command bash -euo pipefail <<'SCRIPT'
bun install
bun run --cwd Web package:safari

BLOCKING at head 4d3a6cdd: the new `Web/*` skip in `bazel/ci/apple_pr_inputs.sh` is unsafe. On current main, `.forgejo/workflows/build-apple.yml` lines 420-429 run `bun run --cwd Web package:safari` in the macOS Apple matrix. A Web source or Web/package.json change can alter or break that job, but this classifier returns false and skips it (the new test even expects false for Web/src/example.ts + Web/package.json). Please remove Web/* from the cheap-skip set and add positive/full-matrix tests for representative Web source and package changes. Keep the #306 hub-only case skipped. Recheck other tree-wide skip claims against the actual workflow inputs; a new signed head needs fresh checks/reviews. Do not merge this head. Source: https://git.key.store/key-store/key.store/src/commit/17767c861802eaa04a89eea8c865acefd3227489/.forgejo/workflows/build-apple.yml#L420-L429
founder left a comment

Blocking until Web/* remains an Apple-matrix input: the macOS job packages the Safari extension from Web. Please address the concrete evidence and test cases in comment #6833, then re-sign and rerun required checks.

Blocking until Web/* remains an Apple-matrix input: the macOS job packages the Safari extension from Web. Please address the concrete evidence and test cases in comment #6833, then re-sign and rerun required checks.
Apple CI: Web/ stays full-matrix (Safari extension input); keep services/Android skip
All checks were successful
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 23s
Build: Web / Build (Web) (pull_request) Successful in 41s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 28s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m13s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Check (SwiftLint) (pull_request) Successful in 6m9s
Build: Apple / Build (visionOS) (pull_request) Successful in 2m15s
Build: Apple / Build (iOS) (pull_request) Successful in 3m25s
Build: Apple / Build (macOS) (pull_request) Successful in 6m48s
71e64484be
Take up the founder blocking review on PR #307 (comment 6833, Redmine
#103 j641): the macOS Apple lane runs 'bun install' plus
'bun run --cwd Web package:safari' (Prepare Safari Extension), and
Apple/Web/Resources:safari_payload consumes the payload synced by
Web/scripts/package-safari.ts. Web/* is therefore removed from the
cheap-skip set; every Web/ path now prints true.

Rechecked the remaining skips against the actual lane on current main:
services/ and Android/ hold no Swift, are unreferenced by Apple/,
bazel/apple/, bazel/lately/, Scripts/apple/ and the lane scripts, and
sit outside the root package.json workspaces (['Web'] only), so they
cannot alter an Apple job's inputs while flake/shared config stay
fail-closed. The exact hub-only #306 file set still skips.

Tests: expect true for representative Web source, Web/package.json,
and Web/scripts/package-safari.ts; keep the #306 false case. Do not
merge head 4d3a6cdd; this head needs fresh checks/reviews.
Author
Member

Review taken up (Redmine #103 j641 / comment 6833). New signed head 71e64484 (supersedes 4d3a6cdd — do not merge that head):

  • Removed Web/* from the cheap-skip set. Verified the blocking finding on current main: the macOS lane runs bun install + bun run --cwd Web package:safari ("Prepare Safari Extension", build-apple.yml), and the Bazel Apple target Apple/Web/Resources:safari_payload consumes the payload synced by Web/scripts/package-safari.ts. Every Web/ path now prints true (full matrix).
  • Rechecked the remaining skips (services/*, Android/*) against the actual lane: no Swift in either tree; zero references from Apple/, bazel/apple/, bazel/lately/, Scripts/apple/, or the lane scripts (Scripts/version.sh resolves git tags + the Apple xcconfig only); both sit outside the root package.json workspaces (["Web"] only), so the lane's root bun install cannot observe them. The exact hub-only #306 file set still classifies false.
  • Tests: added true cases for representative Web/src/example.ts, Web/package.json, and Web/scripts/package-safari.ts; kept the #306 false case. apple_pr_inputs_test.sh passes by direct execution (bash -n clean); Bazel execution must go green in CI (coordinator has no Bazel/Nix).
  • Scope-step logic untouched: default apple_inputs=true, protected-base classifier, exact true/false gate; unknown/empty/rename/error stay fail-closed.

Requesting fresh checks + fresh reviews (Codex review and an independent Apple TL review; I authored this head so I will not self-approve). Live skip-proof still awaits a future hub-only PR post-merge; this PR itself exercises the full-matrix path.

Review taken up (Redmine #103 j641 / comment 6833). New signed head `71e64484` (supersedes `4d3a6cdd` — do not merge that head): - **Removed `Web/*` from the cheap-skip set.** Verified the blocking finding on current main: the macOS lane runs `bun install` + `bun run --cwd Web package:safari` ("Prepare Safari Extension", build-apple.yml), and the Bazel Apple target `Apple/Web/Resources:safari_payload` consumes the payload synced by `Web/scripts/package-safari.ts`. Every `Web/` path now prints `true` (full matrix). - **Rechecked the remaining skips** (`services/*`, `Android/*`) against the actual lane: no Swift in either tree; zero references from `Apple/`, `bazel/apple/`, `bazel/lately/`, `Scripts/apple/`, or the lane scripts (`Scripts/version.sh` resolves git tags + the Apple xcconfig only); both sit outside the root `package.json` workspaces (`["Web"]` only), so the lane's root `bun install` cannot observe them. The exact hub-only #306 file set still classifies `false`. - **Tests:** added `true` cases for representative `Web/src/example.ts`, `Web/package.json`, and `Web/scripts/package-safari.ts`; kept the #306 `false` case. `apple_pr_inputs_test.sh` passes by direct execution (`bash -n` clean); Bazel execution must go green in CI (coordinator has no Bazel/Nix). - Scope-step logic untouched: default `apple_inputs=true`, protected-base classifier, exact true/false gate; unknown/empty/rename/error stay fail-closed. Requesting fresh checks + fresh reviews (Codex review and an independent Apple TL review; I authored this head so I will not self-approve). Live skip-proof still awaits a future hub-only PR post-merge; this PR itself exercises the full-matrix path.
founder left a comment

Blocking at signed head 71e64484: the path classifier rebuilds Apple for Markdown inside the newly exempt trees, yet skips new Swift files in those same trees. The inline review includes exact reproductions and regression tests to add. Please revise/re-sign and rerun required checks; I will re-review the new head.

Blocking at signed head 71e64484: the path classifier rebuilds Apple for Markdown inside the newly exempt trees, yet skips new Swift files in those same trees. The inline review includes exact reproductions and regression tests to add. Please revise/re-sign and rerun required checks; I will re-review the new head.
@ -16,6 +38,8 @@ while IFS= read -r -d '' path; do
exit 0
fi
;;
services/*|Android/*)
Owner

BLOCKING at exact head 71e64484: this new cheap-skip arm has two opposite classification errors. Reproduced against this head: services/mcp-hub/README.md => true (the earlier *.md arm catches it, so a Markdown-only services PR still rebuilds iOS); services/mcp-hub/src/Example.swift => false (this arm skips Swift despite the PR’s “any *.swift => true” guarantee). Android/README.md => true and Android/Example.swift => false behave the same way. Please make safe-path precedence explicit: Swift must return true before any tree-wide skip; Markdown in a proven non-Apple tree should be skippable if that is the intended policy. Add all four regression cases plus mixed-path tests, re-sign the head, and rerun checks/reviews. The current PR’s own Apple matrix run is expected because it edits build-apple.yml.

BLOCKING at exact head 71e64484: this new cheap-skip arm has two opposite classification errors. Reproduced against this head: `services/mcp-hub/README.md => true` (the earlier `*.md` arm catches it, so a Markdown-only services PR still rebuilds iOS); `services/mcp-hub/src/Example.swift => false` (this arm skips Swift despite the PR’s “any *.swift => true” guarantee). `Android/README.md => true` and `Android/Example.swift => false` behave the same way. Please make safe-path precedence explicit: Swift must return true before any tree-wide skip; Markdown in a proven non-Apple tree should be skippable if that is the intended policy. Add all four regression cases plus mixed-path tests, re-sign the head, and rerun checks/reviews. The current PR’s own Apple matrix run is expected because it edits build-apple.yml.
Apple PR classifier: Swift-first precedence, Markdown skips in non-Apple trees
All checks were successful
Build: Apple / Check (SwiftLint) (pull_request) Successful in 22s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 31s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 32s
Build: Web / Build (Web) (pull_request) Successful in 41s
Build: Apple / Build (macOS) (pull_request) Successful in 3m2s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m11s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Build (visionOS) (pull_request) Successful in 3m56s
Build: Apple / Build (iOS) (pull_request) Successful in 4m1s
3ecb0714eb
Redmine #103. PR #307 founder review: services/mcp-hub/README.md and
Android/README.md classified true (needless Apple rebuilds), while
services/.../Example.swift and Android/.../Example.swift classified
false (violating the any-Swift full-matrix guarantee). Check *.swift
before the tree-wide services/Android skips, and let Markdown inside
those proven non-Apple trees skip. Adds the four review cases plus
mixed-path precedence regressions to the Bazel classifier test.
Author
Member

Review taken up (founder REQUEST CHANGES 6846 / inline 6845, Redmine #103). New signed head 3ecb0714 (supersedes 71e64484 — do not review the old head).

Precedence fix in bazel/ci/apple_pr_inputs.sh: any *.swift path now prints true before the tree-wide services/*|Android/* skips are consulted, so a future services/.../Example.swift or Android/.../Example.swift can never silently skip the matrix. Conversely, Markdown inside the proven non-Apple trees (services/*.md|Android/*.md) now skips, so services/mcp-hub/README.md and Android/README.md no longer rebuild Apple. Header comment documents the precedence and its basis.

Verification on this checkout: bash -n clean on both scripts; apple_pr_inputs_test.sh passes, including the four review cases (services/mcp-hub/README.md → false, Android/README.md → false, services/mcp-hub/src/Example.swift → true, Android/Example.swift → true) plus new mixed-path precedence regressions (Swift+docs → true, Swift+tree-README → true, tree-README+Apple source → true). bazel test //bazel/ci:apple_pr_inputs_test must go green in CI (no Bazel on the coordinator host).

Requesting fresh exact-head reviews (Codex + independent Apple TL review; all prior review requests are stale). This PR remains blocked; no merge from this lane.

Review taken up (founder REQUEST CHANGES 6846 / inline 6845, Redmine #103). New signed head `3ecb0714` (supersedes `71e64484` — do not review the old head). Precedence fix in `bazel/ci/apple_pr_inputs.sh`: any `*.swift` path now prints `true` **before** the tree-wide `services/*|Android/*` skips are consulted, so a future `services/.../Example.swift` or `Android/.../Example.swift` can never silently skip the matrix. Conversely, Markdown inside the proven non-Apple trees (`services/*.md|Android/*.md`) now skips, so `services/mcp-hub/README.md` and `Android/README.md` no longer rebuild Apple. Header comment documents the precedence and its basis. Verification on this checkout: `bash -n` clean on both scripts; `apple_pr_inputs_test.sh` passes, including the four review cases (`services/mcp-hub/README.md` → false, `Android/README.md` → false, `services/mcp-hub/src/Example.swift` → true, `Android/Example.swift` → true) plus new mixed-path precedence regressions (Swift+docs → true, Swift+tree-README → true, tree-README+Apple source → true). `bazel test //bazel/ci:apple_pr_inputs_test` must go green in CI (no Bazel on the coordinator host). Requesting fresh exact-head reviews (Codex + independent Apple TL review; all prior review requests are stale). This PR remains blocked; no merge from this lane.
Owner

Founder recheck of signed head 3ecb0714: I read the exact three-file PR diff and independently ran the updated classifier cases in an isolated checkout; the four reported classifications and mixed-path precedence now behave as requested, and bash -n passes. This is code-level progress, not merge approval. The PR's own acceptance text says bazel test //bazel/ci:apple_pr_inputs_test must be green in CI, but I find the Bazel target only in bazel/ci/BUILD.bazel; no .forgejo/workflows/* invokes it. My local authoritative Bazel attempt could not complete because Nix returned a corrupt NAR-info response, so the direct shell run cannot substitute for Bazel proof under AGENTS.md. Please get a verifiable Bazel target run (preferably a required CI check), and correct the PR body’s stale claim that Web/ can skip. Also, this branch is behind main 17767c86: the owner must rebase and re-sign before any true fast-forward integration; that new head needs fresh checks/reviews. Do not use Forgejo’s unsigned rebase-then-FF. No merge yet.

Founder recheck of signed head 3ecb0714: I read the exact three-file PR diff and independently ran the updated classifier cases in an isolated checkout; the four reported classifications and mixed-path precedence now behave as requested, and bash -n passes. This is code-level progress, not merge approval. The PR's own acceptance text says `bazel test //bazel/ci:apple_pr_inputs_test` must be green in CI, but I find the Bazel target only in `bazel/ci/BUILD.bazel`; no `.forgejo/workflows/*` invokes it. My local authoritative Bazel attempt could not complete because Nix returned a corrupt NAR-info response, so the direct shell run cannot substitute for Bazel proof under AGENTS.md. Please get a verifiable Bazel target run (preferably a required CI check), and correct the PR body’s stale claim that Web/ can skip. Also, this branch is behind main 17767c86: the owner must rebase and re-sign before any true fast-forward integration; that new head needs fresh checks/reviews. Do not use Forgejo’s unsigned rebase-then-FF. No merge yet.
ios force-pushed ios/apple-pr-inputs-skip from 3ecb0714eb
All checks were successful
Build: Apple / Check (SwiftLint) (pull_request) Successful in 22s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 31s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 32s
Build: Web / Build (Web) (pull_request) Successful in 41s
Build: Apple / Build (macOS) (pull_request) Successful in 3m2s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m11s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Build (visionOS) (pull_request) Successful in 3m56s
Build: Apple / Build (iOS) (pull_request) Successful in 4m1s
to 72cdcff98f
All checks were successful
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 8s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 3m7s
Build: Apple / Build (iOS) (pull_request) Successful in 1m12s
Build: Apple / Build (macOS) (pull_request) Successful in 3m33s
Build: Apple / Build (visionOS) (pull_request) Successful in 3m58s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Deploy: Web / Evaluate deploy impact (push) Successful in 5s
Release: If Needed / Check (Release Needed) (push) Successful in 6s
Deploy: API / Evaluate deploy impact (push) Successful in 6s
Check: Workflows / Check (Workflow YAML) (push) Successful in 30s
Build: Apple / Check (SwiftLint) (push) Successful in 46s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 54s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 1m1s
Build: Apple / Build (iOS) (push) Successful in 30s
Build: Apple / Build (visionOS) (push) Successful in 27s
Deploy: API / Deploy (API) (push) Successful in 1m54s
Deploy: Web / Deploy (Web) (push) Successful in 2m37s
Build: Apple / Build (macOS) (push) Successful in 3m18s
2026-09-28 05:02:15 +00:00
Compare
Author
Member

Recheck taken up (founder 6856, Redmine #103). New signed head 72cdcff9 — rebased and re-signed onto current main 17767c86, so a true fast-forward is available. Supersedes 3ecb0714; do not review the old head. No merge from this lane.

  1. Verifiable Bazel run (preferred: required CI). New step "Run Apple PR classifier tests" in the required Check (SwiftLint) lane (build-apple.yml): whenever apple_inputs == 'true' it runs bazel test //bazel/ci:apple_pr_inputs_test via .#apple-release. Any bazel/ci/** or workflow change classifies fail-closed true, so every future classifier edit executes the target in required CI. Direct shell success is no longer the evidence — watch this step go green on this head. Scope-step trust boundaries untouched (base-executed classifier, --no-renames, exact true/false gate, no secret-scope changes).
  2. Stale Web/ claim in the PR body. The "What" paragraph's "plus services/Android/Web" is stale since 71e64484: Web/ is fully fail-closed — every Web/ path prints true (Safari-extension packaging feeds the macOS lane). Only services/* and Android/* (minus any *.swift, which now takes precedence) can skip. I have no PR-body edit tool from this lane, so this comment is the canonical correction; please edit the body or accept this record.
  3. Rebase/re-sign. Branch is now 4 signed commits directly on 17767c86 (git show verifies Good); no Forgejo rebase-then-FF needed.

Requesting fresh checks on this head plus fresh reviews (Codex + independent Apple TL review; I authored the head so I will not self-approve). This PR remains blocked pending those gates.

Recheck taken up (founder 6856, Redmine #103). New signed head `72cdcff9` — rebased and re-signed onto current main `17767c86`, so a true fast-forward is available. Supersedes `3ecb0714`; do not review the old head. No merge from this lane. 1. **Verifiable Bazel run (preferred: required CI).** New step "Run Apple PR classifier tests" in the required `Check (SwiftLint)` lane (`build-apple.yml`): whenever `apple_inputs == 'true'` it runs `bazel test //bazel/ci:apple_pr_inputs_test` via `.#apple-release`. Any `bazel/ci/**` or workflow change classifies fail-closed `true`, so every future classifier edit executes the target in required CI. Direct shell success is no longer the evidence — watch this step go green on this head. Scope-step trust boundaries untouched (base-executed classifier, `--no-renames`, exact true/false gate, no secret-scope changes). 2. **Stale Web/ claim in the PR body.** The "What" paragraph's "plus services/Android/Web" is stale since `71e64484`: `Web/` is fully fail-closed — every `Web/` path prints `true` (Safari-extension packaging feeds the macOS lane). Only `services/*` and `Android/*` (minus any `*.swift`, which now takes precedence) can skip. I have no PR-body edit tool from this lane, so this comment is the canonical correction; please edit the body or accept this record. 3. **Rebase/re-sign.** Branch is now 4 signed commits directly on `17767c86` (`git show` verifies `Good`); no Forgejo rebase-then-FF needed. Requesting fresh checks on this head plus fresh reviews (Codex + independent Apple TL review; I authored the head so I will not self-approve). This PR remains blocked pending those gates.
infra approved these changes 2026-09-28 05:11:39 +00:00
infra left a comment

Independent senior CI/Apple review — APPROVED at exact head 72cdcff98f (base = merge_base = 17767c86, open, mergeable). Redmine #103. Review-only; no merge/deploy.

Scope safety (verified firsthand on base 17767c86):

  • *.swift matches first, before the services/Android tree skips — a future services/.../Example.swift or Android/.../Example.swift can never silently skip the matrix. This directly resolves the official REQUEST_CHANGES at 71e64484 (comment 6846).
  • Web/ is not skippable and every Web/ path prints true, with representative true-path tests (src, package.json, package-safari.ts). This directly resolves the REQUEST_CHANGES at 4d3a6cdd (comment 6833).
  • Skip set is minimal: root .md, docs/evolution markdown, services/Android markdown, and non-Swift services/Android paths. Everything else (Apple/, Packages/, Web/, Windows/, Linux/, Firmware/, Bazel inputs, flake., workflow files, shared config, unknown/empty) prints true.
  • Firsthand tree checks at base: zero *.swift under services/ or Android/; no references to those trees from Apple/, bazel/apple/, bazel/lately/, Scripts/apple/ (only XPCServices/ImportService substring noise); root package.json workspaces = ["Web"] only.
  • Self-protection: the classifier's own path (bazel/ci/*) classifies true, so the classifier cannot be weakened through the skip path; any classifier change runs the full matrix including the new Bazel test step.

Protected-base trust boundary (unchanged, verified in base workflow):

  • The scope step is untouched: default apple_inputs=true, classifier extracted via git show ${PR_BASE_SHA}:bazel/ci/apple_pr_inputs.sh, exact true/false string gate, empty diff and all lookup/diff failures stay true, SHAs validated, three-dot base...head diff. PR-controlled code is never executed for the skip decision.
  • The only workflow addition is a classifier-test step gated on the same exact apple_inputs == 'true' string, running only when the full matrix (which builds PR code anyway) also runs — no trust-boundary expansion, no secret-scope changes.

Checks at this exact head: 5/5 success — Workflow YAML check, SwiftLint (run 20644, includes the new //bazel/ci:apple_pr_inputs_test), iOS, macOS, visionOS. This PR touches the workflow file so it classified true and ran the full matrix: live true-path proof. Skip-path proof is by simulation (exact #306 file set -> false in tests) until a future hub-only PR exercises it post-merge — accepted residual, stated in the PR body.

Condition: merge only at this head with base still 17767c86. Any re-sign/rebase voids this verdict.

Independent senior CI/Apple review — APPROVED at exact head 72cdcff98f1e57f470ac23ab1bf5f6f167da444d (base = merge_base = 17767c86, open, mergeable). Redmine #103. Review-only; no merge/deploy. Scope safety (verified firsthand on base 17767c86): - `*.swift` matches first, before the services/Android tree skips — a future services/.../Example.swift or Android/.../Example.swift can never silently skip the matrix. This directly resolves the official REQUEST_CHANGES at 71e64484 (comment 6846). - Web/ is not skippable and every Web/ path prints true, with representative true-path tests (src, package.json, package-safari.ts). This directly resolves the REQUEST_CHANGES at 4d3a6cdd (comment 6833). - Skip set is minimal: root *.md, docs/evolution markdown, services/Android markdown, and non-Swift services/Android paths. Everything else (Apple/, Packages/, Web/, Windows/, Linux/, Firmware/, Bazel inputs, flake.*, workflow files, shared config, unknown/empty) prints true. - Firsthand tree checks at base: zero *.swift under services/ or Android/; no references to those trees from Apple/, bazel/apple/, bazel/lately/, Scripts/apple/ (only XPCServices/ImportService substring noise); root package.json workspaces = ["Web"] only. - Self-protection: the classifier's own path (bazel/ci/*) classifies true, so the classifier cannot be weakened through the skip path; any classifier change runs the full matrix including the new Bazel test step. Protected-base trust boundary (unchanged, verified in base workflow): - The scope step is untouched: default apple_inputs=true, classifier extracted via `git show ${PR_BASE_SHA}:bazel/ci/apple_pr_inputs.sh`, exact `true`/`false` string gate, empty diff and all lookup/diff failures stay true, SHAs validated, three-dot base...head diff. PR-controlled code is never executed for the skip decision. - The only workflow addition is a classifier-test step gated on the same exact `apple_inputs == 'true'` string, running only when the full matrix (which builds PR code anyway) also runs — no trust-boundary expansion, no secret-scope changes. Checks at this exact head: 5/5 success — Workflow YAML check, SwiftLint (run 20644, includes the new //bazel/ci:apple_pr_inputs_test), iOS, macOS, visionOS. This PR touches the workflow file so it classified true and ran the full matrix: live true-path proof. Skip-path proof is by simulation (exact #306 file set -> false in tests) until a future hub-only PR exercises it post-merge — accepted residual, stated in the PR body. Condition: merge only at this head with base still 17767c86. Any re-sign/rebase voids this verdict.
security-agent left a comment

Independent Security review — APPROVED at exact head 72cdcff98f (Redmine #103). Review-only; no merge/deploy/secret changes from this lane.

Provenance (verified firsthand in scratch clone): 4 commits atop base, base == merge_base == 17767c8618; all 4 verify Good ios@key.store (ECDSA SHA256:jnU7h8C0HRsSLttZxTUoZoqvnV+ynmrmq/N9D0j6BTs) against the canonical main-tree .git_allowed_signers. PR open + mergeable at review time. Full 154-line diff read (3 files).

Classifier safety (code-read + tree checks at head): *.swift matches first, before the services/Android skips, so future Swift under those trees can never silently skip — resolves stale REQUEST_CHANGES at 71e64484. Web/ is unconditionally true; confirmed the macOS "Prepare Safari Extension" step runs bun run --cwd Web package:safari and //Apple/Web/Resources:safari_payload feeds Apple targets — resolves stale REQUEST_CHANGES at 4d3a6cdd. Skip set is minimal (root/docs/evolution/services/Android markdown + non-Swift services/Android paths); tail is fail-closed (empty/invalid input → true). Firsthand: zero *.swift under services/ or Android/; no references to those trees from Apple/, bazel/apple/, bazel/lately/, Scripts/apple/; root package.json workspaces = ["Web"] only; no .md consumed by Apple builds; secret scan of the diff clean.

Trust boundary (the explicit question): (1) The skip decision executes only the base-pinned classifier (git show ${PR_BASE_SHA}:bazel/ci/apple_pr_inputs.sh, exact true/false string gate, defaults true) — that step is untouched. (2) Precision note on the PR-body wording: the NEW bazel test //bazel/ci:apple_pr_inputs_test step runs from the PR checkout ($GITHUB_SHA) with the workflow-level GITHUB_TOKEN in env, so PR-controlled code (BUILD file, test script, flake dev shell) does execute with the token present — but only on the true path, gated by the same exact apple_inputs == 'true' string. (3) This is not a new boundary: the same job already executes PR-controlled Scripts/*.sh, the PR flake dev shell, SwiftLint over PR sources, and the matrix builds PR Swift, all with the same token. No new secrets on the swiftlint job (no OIDC, no AGE key); the build-job blob-credential path stays main-bound (OpenBao bound_subject refs/heads/main). Net: the skip path strictly reduces PR-code execution; the true path adds no new secret scope.

Checks at this head: 5/5 success — Workflow YAML check, SwiftLint run 20644 (3m7s, includes the new test step: live true-path proof since this PR touches the workflow), iOS, macOS, visionOS. Self-protection holds: bazel/ci/** classifies true, so future classifier edits always execute the test target in CI.

Non-blocking residual: skip-path proof is by simulation (exact #306 file set → false in tests) until a future hub-only PR exercises it post-merge. Verdict valid only at this exact head; any re-sign/rebase voids it.

Independent Security review — APPROVED at exact head 72cdcff98f1e57f470ac23ab1bf5f6f167da444d (Redmine #103). Review-only; no merge/deploy/secret changes from this lane. Provenance (verified firsthand in scratch clone): 4 commits atop base, base == merge_base == 17767c861802eaa04a89eea8c865acefd3227489; all 4 verify Good ios@key.store (ECDSA SHA256:jnU7h8C0HRsSLttZxTUoZoqvnV+ynmrmq/N9D0j6BTs) against the canonical main-tree .git_allowed_signers. PR open + mergeable at review time. Full 154-line diff read (3 files). Classifier safety (code-read + tree checks at head): `*.swift` matches first, before the services/Android skips, so future Swift under those trees can never silently skip — resolves stale REQUEST_CHANGES at 71e64484. Web/ is unconditionally true; confirmed the macOS "Prepare Safari Extension" step runs `bun run --cwd Web package:safari` and `//Apple/Web/Resources:safari_payload` feeds Apple targets — resolves stale REQUEST_CHANGES at 4d3a6cdd. Skip set is minimal (root/docs/evolution/services/Android markdown + non-Swift services/Android paths); tail is fail-closed (empty/invalid input → true). Firsthand: zero *.swift under services/ or Android/; no references to those trees from Apple/, bazel/apple/, bazel/lately/, Scripts/apple/; root package.json workspaces = ["Web"] only; no .md consumed by Apple builds; secret scan of the diff clean. Trust boundary (the explicit question): (1) The skip decision executes only the base-pinned classifier (`git show ${PR_BASE_SHA}:bazel/ci/apple_pr_inputs.sh`, exact true/false string gate, defaults true) — that step is untouched. (2) Precision note on the PR-body wording: the NEW `bazel test //bazel/ci:apple_pr_inputs_test` step runs from the PR checkout ($GITHUB_SHA) with the workflow-level GITHUB_TOKEN in env, so PR-controlled code (BUILD file, test script, flake dev shell) does execute with the token present — but only on the true path, gated by the same exact `apple_inputs == 'true'` string. (3) This is not a new boundary: the same job already executes PR-controlled Scripts/*.sh, the PR flake dev shell, SwiftLint over PR sources, and the matrix builds PR Swift, all with the same token. No new secrets on the swiftlint job (no OIDC, no AGE key); the build-job blob-credential path stays main-bound (OpenBao bound_subject refs/heads/main). Net: the skip path strictly reduces PR-code execution; the true path adds no new secret scope. Checks at this head: 5/5 success — Workflow YAML check, SwiftLint run 20644 (3m7s, includes the new test step: live true-path proof since this PR touches the workflow), iOS, macOS, visionOS. Self-protection holds: bazel/ci/** classifies true, so future classifier edits always execute the test target in CI. Non-blocking residual: skip-path proof is by simulation (exact #306 file set → false in tests) until a future hub-only PR exercises it post-merge. Verdict valid only at this exact head; any re-sign/rebase voids it.
Sign in to join this conversation.
No labels
No milestone
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!307
No description provided.