Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .agents/skills/ship-pseudocode/ROTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions .agents/skills/ship-pseudocode/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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<version> --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<version> --repo pseudoseed/t3code_dev --draft=false --latest`.

The tag is deliberately not `v<version>`. 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
Expand All @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions .agents/skills/ship-pseudocode/scripts/ship-mac.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 5 additions & 4 deletions .agents/skills/sync-upstream/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <run-id> --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

Expand All @@ -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<version> --repo pseudoseed/t3code_dev --draft=false --latest`.

## When something fails
Expand Down
Loading