From a536b5f40d0524b3a19c6505f23cb78b30cd0713 Mon Sep 17 00:00:00 2001 From: pseudo <27822378+pseudoseed@users.noreply.github.com> Date: Sun, 22 Nov 2026 17:59:12 -0700 Subject: [PATCH] docs(skills): fold agent memories into ship and sync skills Arm64-only mac builds, agent-owned merges and releases, the notarytool --keychain fix, and the per-worktree iOS build number now live in the ship-pseudocode and sync-upstream skills instead of agent memories. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/ship-pseudocode/ROTATION.md | 6 +++++- .agents/skills/ship-pseudocode/SKILL.md | 12 +++++++----- .agents/skills/ship-pseudocode/scripts/ship-mac.sh | 8 ++++++-- .agents/skills/sync-upstream/SKILL.md | 9 +++++---- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.agents/skills/ship-pseudocode/ROTATION.md b/.agents/skills/ship-pseudocode/ROTATION.md index 6c228e51acde2..b71c718eecf08 100644 --- a/.agents/skills/ship-pseudocode/ROTATION.md +++ b/.agents/skills/ship-pseudocode/ROTATION.md @@ -123,9 +123,13 @@ So keep key `PPWXK32GH7`. Two things to do with it: xcrun notarytool store-credentials pseudocode \ --key ~/.appstoreconnect/private_keys/AuthKey_PPWXK32GH7.p8 \ --key-id PPWXK32GH7 \ - --issuer 126cdda4-2c8b-4e16-9931-56ee123495cb + --issuer 126cdda4-2c8b-4e16-9931-56ee123495cb \ + --keychain "$HOME/Library/Keychains/login.keychain-db" ``` + Without `--keychain`, an agent shell prints "Credentials validated" and saves nothing; success + also prints "Credentials saved to Keychain". + From here on, notarization uses the profile name `pseudocode` and nothing else. `.env.local` already carries `T3CODE_ASC_KEY_ID` and `T3CODE_ASC_ISSUER_ID` for the iOS upload, which diff --git a/.agents/skills/ship-pseudocode/SKILL.md b/.agents/skills/ship-pseudocode/SKILL.md index ca296e22876dd..4ed3aeebcfc7d 100644 --- a/.agents/skills/ship-pseudocode/SKILL.md +++ b/.agents/skills/ship-pseudocode/SKILL.md @@ -16,7 +16,7 @@ are unbuilt here. One command each. Both run from anywhere in the repo. ```sh -.agents/skills/ship-pseudocode/scripts/ship-mac.sh # arm64 DMG, add "x64" for Intel +.agents/skills/ship-pseudocode/scripts/ship-mac.sh # arm64 DMG; the fork ships no Intel build .agents/skills/ship-pseudocode/scripts/ship-ios.sh # TestFlight upload ``` @@ -32,12 +32,11 @@ a merged PR first, and the release is cut from that merged commit. It ends with `apps/server/package.json`, which is the one electron-builder stamps onto the artifact. Anything less than a notarized result is a failure, not a warning, and uploading only happens after verification passes: an unnotarized DMG on a release page is worse -than no DMG, because macOS refuses to open it. Going live is a separate step, once Chris approves -that release: `gh release edit pseudocode-v --repo pseudoseed/t3code_dev --draft=false --latest`. +than no DMG, because macOS refuses to open it. Publish it once the build verifies; there is no +approval gate: `gh release edit pseudocode-v --repo pseudoseed/t3code_dev --draft=false --latest`. The tag is deliberately not `v`. The release workflow triggers on `v*.*.*` and cannot -produce a usable artifact here, so a tag in that shape starts a run guaranteed to fail. Re-running -for the other architecture adds its DMG to the same release. +produce a usable artifact here, so a tag in that shape starts a run guaranteed to fail. The release carries `latest-mac.yml`, the zip, and both blockmaps alongside the DMG, because that is what "Check for updates" reads. electron-updater takes the version from `latest-mac.yml` and @@ -54,6 +53,9 @@ filename disagreeing. before appearing in TestFlight, so an empty build list right after upload is normal. Report the upload as done and processing rather than waiting on it. +`ship-ios.sh` bumps only the `.env.local` it runs in, so copy in the one with the highest +`T3CODE_IOS_BUILD_NUMBER` first. + ## Credentials Set them up once by following [`ROTATION.md`](ROTATION.md). The short version of the rules: diff --git a/.agents/skills/ship-pseudocode/scripts/ship-mac.sh b/.agents/skills/ship-pseudocode/scripts/ship-mac.sh index 15c7e6ffcee77..268817a8de7c7 100755 --- a/.agents/skills/ship-pseudocode/scripts/ship-mac.sh +++ b/.agents/skills/ship-pseudocode/scripts/ship-mac.sh @@ -1,13 +1,17 @@ #!/usr/bin/env bash # Signed, notarized, stapled macOS DMG for the PseudoCode fork. # -# ship-mac.sh [arm64|x64] +# ship-mac.sh # # Needs a Developer ID Application identity in the login keychain and a notarytool keychain # profile. See ../ROTATION.md to set both up. No secret is named on any command line. set -euo pipefail -ARCH="${1:-arm64}" +if [ "$#" -gt 0 ]; then + echo "ship-mac.sh takes no arguments; the fork ships arm64 only." >&2 + exit 1 +fi +ARCH=arm64 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 . "$SCRIPT_DIR/_common.sh" diff --git a/.agents/skills/sync-upstream/SKILL.md b/.agents/skills/sync-upstream/SKILL.md index 7d9e1e7626a63..09053b4c2ffb2 100644 --- a/.agents/skills/sync-upstream/SKILL.md +++ b/.agents/skills/sync-upstream/SKILL.md @@ -94,14 +94,15 @@ merge touched. Done when each surface was driven and what you saw is written dow Push the branch to `origin` and open a PR into the fork's `main`. The body names the upstream commit merged, the fork changes restored, each DROPPED line accepted and why, the test counts, and -what the live check covered. Chris merges it with a **merge commit**; a squash would orphan the -commits the release tag points at. +what the live check covered. Merge it yourself with a **merge commit** once CI is green and review +is done; a squash would orphan the commits the release tag points at. Hand the merge to Chris only +when the change is high risk. The PR's CI must pass. This Mac is arm64 and CI runs on x64 Linux, so some failures only show up there; fix them at their cause like any other. A job GitHub cancels with "not acquired by Runner" never got a macOS runner: rerun it with `gh run rerun --failed --repo pseudoseed/t3code_dev`. Done when the PR is open and every CI -job passes. Stop there until Chris merges. +job passes and the PR is merged. ### 8. Release from merged main @@ -112,7 +113,7 @@ git fetch origin main && git switch --detach origin/main ``` `ship-mac.sh` refuses any commit other than a clean `origin/main` and leaves the release as a -draft. Publish only after Chris approves that release: +draft. Publish it once both builds verify; there is no approval gate: `gh release edit pseudocode-v --repo pseudoseed/t3code_dev --draft=false --latest`. ## When something fails