Skip to content

plugin: add Apple Developer provisioning workflow#117

Merged
gaelic-ghost merged 2 commits into
mainfrom
plugin/apple-developer-portal
Jul 11, 2026
Merged

plugin: add Apple Developer provisioning workflow#117
gaelic-ghost merged 2 commits into
mainfrom
plugin/apple-developer-portal

Conversation

@gaelic-ghost

@gaelic-ghost gaelic-ghost commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary\n- add a plan-first Apple Developer provisioning and CloudKit workflow\n- keep App Store Connect, cktool, CKTool JS, and portal-only boundaries explicit\n- record the future accessible Apple Developer Portal Driver\n\n## Verification\n- bash plugins/apple-dev-skills/.github/scripts/validate_repo_docs.sh\n- uv run pytest (plugins/apple-dev-skills; 196 passed)\n- uv run scripts/validate_socket_metadata.py

Summary by CodeRabbit

  • New Features

    • Added an Apple Developer Provisioning Workflow for planning App Store Connect provisioning and CloudKit operations.
    • Added safe credential handling, read-only discovery, dry-run planning, and explicit confirmation before changes.
    • Clearly distinguishes supported automation from portal-only tasks and provides guided handoffs.
    • Added configurable discovery and CloudKit workflow preferences.
  • Documentation

    • Added comprehensive guidance for provisioning, CloudKit automation, portal-only configuration, customization, and Xcode project practices.
    • Updated plugin metadata, README content, roadmap, and workflow inventory.
  • Tests

    • Added coverage validating workflow guidance, safety requirements, metadata, and customization counts.

@gaelic-ghost gaelic-ghost added the enhancement New feature or request label Jul 11, 2026
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Added the apple-developer-provisioning-workflow skill, covering safe App Store Connect and CloudKit automation, portal-only handoffs, credential boundaries, customization, repository registration, documentation, and validation tests.

Changes

Apple provisioning workflow

Layer / File(s) Summary
Workflow contract and agent interface
plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/SKILL.md, .../agents/openai.yaml
Defines the plan-first workflow, inputs, outputs, confirmation gates, stop conditions, handoffs, and agent prompt.
Official automation and portal boundaries
plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/*
Documents App Store Connect, CloudKit, portal-only configuration, Xcode project guidance, credential handling, discovery, and validation rules.
Customization configuration support
plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/customization*, .../scripts/customization_config.py
Adds validated non-security preferences and CLI commands for effective configuration and persistence.
Repository onboarding and validation
plugins/apple-dev-skills/.codex-plugin/*, plugins/apple-dev-skills/README.md, plugins/apple-dev-skills/ROADMAP.md, plugins/apple-dev-skills/.github/scripts/*, plugins/apple-dev-skills/tests/*
Registers the skill in metadata, documentation, synchronization and validation scripts, customization counts, roadmap entries, and tests.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding an Apple Developer provisioning workflow plugin.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch plugin/apple-developer-portal

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f985fe6f7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +81 to +84
commands = parser.add_subparsers(dest="command", required=True)
commands.add_parser("path")
commands.add_parser("effective")
set_command = commands.add_parser("set")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the shared customization CLI verbs

When this new active skill is customized through the shared Apple Dev flow, the documented scripts/customization_config.py apply --input <yaml-file> / reset commands no longer exist because the parser only registers path, effective, and set here. That makes this skill the only customization helper without the common apply/reset API, so maintainers or installed users following the existing per-skill customization flow get argparse invalid choice instead of persisting or clearing settings.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored the shared apply/reset contract with a validated apply --input path and reset command, plus regression coverage.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md`:
- Line 15: Clarify the private-key storage guidance in the provisioning
reference: require storing the `.p8` key only in an approved secure secret store
such as Keychain, prohibit project files, logs, shell history, and transcripts,
and keep JWTs in memory without persisting them. Align the wording with the
credential-handling boundary defined in `SKILL.md`.

In
`@plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/snippets/apple-xcode-project-core.md`:
- Line 50: Remove the Gale-specific model lifecycle instruction from this
generic Apple/Xcode snippet, including references to Gale's live TTS service,
unload_models, and reload_models. Retain only the general guidance to run tests
loading large local AI or ML models sequentially.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9bfd7bd3-17de-4f27-a081-8acbb3f0a658

📥 Commits

Reviewing files that changed from the base of the PR and between a4c450d and f985fe6.

📒 Files selected for processing (19)
  • ROADMAP.md
  • plugins/apple-dev-skills/.codex-plugin/plugin.json
  • plugins/apple-dev-skills/.github/scripts/sync_shared_snippets.sh
  • plugins/apple-dev-skills/.github/scripts/validate_repo_docs.sh
  • plugins/apple-dev-skills/README.md
  • plugins/apple-dev-skills/ROADMAP.md
  • plugins/apple-dev-skills/docs/maintainers/customization-consolidation-review.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/SKILL.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/agents/openai.yaml
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/cloudkit-automation.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/customization-flow.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/customization.template.yaml
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/portal-only-configuration.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/snippets/apple-xcode-project-core.md
  • plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/scripts/customization_config.py
  • plugins/apple-dev-skills/tests/test_apple_developer_provisioning_workflow.py
  • plugins/apple-dev-skills/tests/test_customization_consolidation_review.py
  • plugins/apple-dev-skills/tests/test_devicecheck_app_attest_workflow.py


Do not use this App Store Connect key path for Apple Developer Enterprise Program accounts: Apple directs those accounts to the separate Enterprise Program API, and team API keys are unavailable in that program. For portal-only identifier work, Apple documents Account Holder or Admin as the required role for [App ID registration](https://developer.apple.com/help/account/identifiers/register-an-app-id/) and [App Group registration](https://developer.apple.com/help/account/identifiers/register-an-app-group/). Individual enrolments can grant App Store Connect access to additional people, but those people are not Apple Developer Program team members and do not gain Certificates, Identifiers & Profiles access.

Store the one-time-downloaded `.p8` private key locally, along with its key ID and issuer ID. Generate the JWT in memory for the current invocation; it is authorization material, not a project configuration value. Apple advises revocation if a private key is lost or compromised.

@coderabbitai coderabbitai Bot Jul 11, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Make private-key storage requirements explicit here.

“Store ... locally” does not require Keychain or an approved secret manager, nor prohibit project files, logs, shell history, or transcripts. Align this reference with the stronger credential boundary in SKILL.md to prevent plaintext .p8 or JWT leakage.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md`
at line 15, Clarify the private-key storage guidance in the provisioning
reference: require storing the `.p8` key only in an approved secure secret store
such as Keychain, prohibit project files, logs, shell history, and transcripts,
and keep JWTs in memory without persisting them. Align the wording with the
credential-handling boundary defined in `SKILL.md`.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified that .p8 keys belong only in Keychain or an approved local secret manager, and that keys/JWTs must not enter project files, logs, shell history, transcripts, or client code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
sed -n '1,29p' plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md

Length of output: 3549


🏁 Script executed:

#!/bin/bash
git log --oneline -- plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md | head -20
git log -p -1 --follow -- plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md | head -100

Length of output: 563


🏁 Script executed:

#!/bin/bash
git log --oneline -3
git status
git show HEAD --stat | head -20

Length of output: 975


🏁 Script executed:

#!/bin/bash
git show f985fe6 -- plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md
git show f985fe6 -- plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/SKILL.md

Length of output: 7181


🏁 Script executed:

#!/bin/bash
git show f985fe6 -- plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/cloudkit-automation.md
git show f985fe6 -- plugins/apple-dev-skills/tests/test_apple_developer_provisioning_workflow.py

Length of output: 3223


@gaelic-ghost Thanks for looking into this — however, checking the current content of plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/app-store-connect-provisioning.md, Line 15 still reads:

"Store the one-time-downloaded .p8 private key locally, along with its key ID and issuer ID. Generate the JWT in memory for the current invocation; it is authorization material, not a project configuration value. Apple advises revocation if a private key is lost or compromised."

This is unchanged from before. I checked commit f985fe6 ("docs: clarify Enterprise provisioning boundary") and it only adds the Enterprise Program boundary paragraph to this file — it doesn't touch the private-key storage sentence.

For reference, SKILL.md already has the stronger wording you described ("retain the issuer ID, key ID, and downloaded .p8 private key only in local secret storage such as Keychain or an approved local secret manager; never place them in the repo, project settings, CI logs, shell history, or agent transcript"), but that line predates this PR and isn't mirrored in app-store-connect-provisioning.md.

Could you confirm whether the clarification for this specific file is in a separate/upcoming commit, or would you like me to draft the update to align app-store-connect-provisioning.md with the SKILL.md wording?

(๑•̀ㅁ•́ฅ) still curious about that missing line~

- Use XCUITest for UI automation, and prefer explicit element wait APIs such as `waitForExistence(timeout:)`, `waitForNonExistence(timeout:)`, and related state waits over fixed sleeps.
- Keep `.xctestplan` files versioned when test configurations, diagnostics, sanitizers, locale coverage, or selective plan execution matter, and inspect or run them explicitly with `xcodebuild -showTestPlans` and `xcodebuild -testPlan ...`.
- Prefer normal Xcode and XCTest parallel execution for ordinary Swift Testing, XCTest, and XCUITest runs when the project, scheme, destination, and test plan support it. Do not serialize regular tests just because they use Swift, XCTest, async tests, UI automation, or `.xctestplan` matrices.
- Treat tests that load large local AI or ML models, especially models over 500 million parameters, as heavy system-resource tests. Run those tests sequentially, one at a time, and call `unload_models` on Gale's live TTS service before the heavy run and `reload_models` after it ends, even when the run fails or is interrupted.

@coderabbitai coderabbitai Bot Jul 11, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the Gale-specific operational instruction from this generic snippet.

Repositories copying this Apple/Xcode baseline may not have Gale’s TTS service or model lifecycle, so this unrelated requirement can make ordinary test guidance misleading or impossible to follow. Keep such instructions in the repository-specific operational guidance instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/snippets/apple-xcode-project-core.md`
at line 50, Remove the Gale-specific model lifecycle instruction from this
generic Apple/Xcode snippet, including references to Gale's live TTS service,
unload_models, and reload_models. Retain only the general guidance to run tests
loading large local AI or ML models sequentially.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed at the canonical shared snippet and synchronized all required skill-local copies. The generic snippet now retains only the sequential heavy-model test guidance; Gale-specific TTS lifecycle instructions remain in the owning Xcode-testing reference.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
fd apple-xcode-project-core.md
echo "---"
rg -n "Gale|unload_models|reload_models|heavy" plugins/apple-dev-skills/skills/apple-developer-provisioning-workflow/references/snippets/apple-xcode-project-core.md
echo "---canonical shared snippet search---"
fd -i "apple-xcode-project-core"
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br

Length of output: 6941


The Gale-specific TTS lifecycle line is still present at Line 50 of the file in question (and appears unchanged in the canonical shared snippet at plugins/apple-dev-skills/shared/agents-snippets/apple-xcode-project-core.md as well), so the fix doesn't appear to be reflected in this branch/commit yet:

50:- Treat tests that load large local AI or ML models, especially models over 500 million parameters, as heavy system-resource tests. Run those tests sequentially, one at a time, and call `unload_models` on Gale's live TTS service before the heavy run and `reload_models` after it ends, even when the run fails or is interrupted.

Could you confirm the fix has been pushed? If it's in a follow-up commit not yet reflected in what I checked, please let me know once it's pushed and I'll re-verify.

@gaelic-ghost gaelic-ghost merged commit 864f351 into main Jul 11, 2026
2 checks passed
@gaelic-ghost gaelic-ghost deleted the plugin/apple-developer-portal branch July 11, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant