Live and proven is done. A push isn't the end: the work is shipped when the deploy finished, production runs the commit, and its logs show no new errors from it. Ship only finished work: it runs the checks and refuses to cut corners on them.
/altitude:ship [message]
message is optional. Without it, write one from the diff: one or two sentences, in the commit style the project's guidelines name, or the style git log --oneline -20 shows.
Settings
Nearest wins, and what the user says in this conversation beats them all. Values come from fixed lists: anything else counts as the default.
altitude.jsonin the repo root (the older.claude/altitude.jsonis still read).~/.config/altitude/altitude.json.- The account: the line 'Delivery is ...' in the Altitude server's instructions, or its
settingstool, orwhoami, which answers with the same line. Skip this when the server isn't connected. - The defaults.
| Key | Values | Default |
|---|---|---|
delivery | main: straight to the default branch. pr: a branch and a pull request | main |
unfinished | flag: work that isn't done ships behind a feature flag. branch: it waits on a branch | flag |
after_deploy | check: schedule a production check after the deploy. none | check |
Say in the report which values you used and where each came from.
Even with delivery main, a pull request is right for a change from an outside contributor and for a large change someone should see before it lands: a migration on a big table, a change across many modules, a public API. Offer one then, and say why.
What a hook holds. Where Altitude's hooks run, the guard refuses git add -A, git add ., git commit -a, --no-verify and commit trailers, and its refusal says the fix. The steps below still say how to do it right; a refusal is the hook working, so follow its fix rather than work around it.
1. Branch
git branch --show-current.- Delivery
main: stay on the default branch. On any other branch, ask whether to ship this branch as a pull request instead.productionis never the default branch for this: ship to it only on the user's word in this conversation. - Delivery
pr: onmain,masterorproduction, stop and offer to create a feature branch from the current state. Ship from one of those only when the user says so in this conversation.
- Delivery
- Logging first. A change in behaviour that production should show (a new path, a changed rule, a migration of data) ships in two steps where it can: first the logging or metric that will show the new path working, deployed and seen in production's logs; then the behaviour change. Say when you skipped this and why, such as a copy change with nothing to log.
- Unfinished work with
unfinished: flag: it ships behind a flag that is off in production, never on a side branch. Name the flag in the report. Withbranch, it waits on a branch. git statusandgit diff --stat.
2. Finished and proven
If this session hasn't run the finish skill's round on these changes since the last edit, run it now, up to its report. Ship continues only when that round ends clean and its proof holds.
3. Files
- List the files this change touched. Other sessions or the user may have unrelated edits in the tree: leave those alone, and ask when a file's owner is unclear.
- Stop on sensitive files in the list:
.env,.env.*,credentials.json,*.pem,*.key, anything holding a secret.
4. Checks
Run the checks under 'Done means': the project's .ai/guidelines/working.md, else AGENTS.md in Amp or CLAUDE.md in Claude Code, else ~/.config/altitude/working.md; say which. None: run the project's test runner (php artisan test in Laravel) and suggest /altitude:setup to record the checks. When the finish round just ran them clean and nothing changed since, its result counts.
A release (a publish to a registry or a store, or a tag) gets two more checks before you ask for the user's word, and you run them unasked:
- The release bar: go through the
reviewskill'srelease-bar.mdby name against what ships. - A review by another lab: the
reviewskill with--panel, on a lab other than your own thatreview_labsallows. When it allows none, say the release goes out without one and let the user decide; never send code to a lab they didn't allow.
Then ask with the checks as a table, one row each: the finish round, the reference diff, the release bar, the other lab's review, the publish build, each run or not. Blockers get fixed and reviewed again before the ask; follow-ups go to the issue tracker, never into the fixers' brief as requirements. A release also gets its notes: a GitHub Release, or the registry's equivalent, carrying the version's changelog entry. A released version's entry is history: never trim or rewrite it.
A failing check stops the ship. Continue only on an explicit 'ship anyway' from the user, and say in the PR body or the report which check failed.
5. Commit
- Stage by path:
git add path/one path/two. Nevergit add .,git add -Aorgit commit -a. git diff --cached --statto confirm the staged set is exactly the change.- Commit with the message. Never skip hooks.
6. Push
The delivery setting is the user's standing word for this push, and so is 'ship it'. git push -u origin HEAD.
Delivery pr: gh pr create against the default branch, unless the user or the guidelines name another base, with a summary of what changed and why, and the proof from the finish report as the test plan: each case with its before and after. Reference the issue when the branch name or the conversation names one. The deploy follows the merge, which is the reviewer's; stop after the PR, and offer to watch the deploy once it merges.
7. The deploy
Delivery main, or a merged PR. Find how the project deploys: the guidelines, CI config (.github/workflows), the host's config (Laravel Cloud, Forge, Vercel, Fly). Never start or speed up a deploy yourself; only watch the one the push started.
- Watch it to the end:
gh run watchfor CI, the host's CLI or dashboard for its build. A failed deploy is the first thing in the report, with its log. - Confirm production runs the commit: a version endpoint, the host's deployment list, a build hash in the page.
8. Production check
Read-only. Read what production recorded since the deploy: the error tracker (Nightwatch, Sentry) through its tools when they're connected, then the host's logs (cloud CLI on Laravel Cloud, storage/logs/ over SSH, vercel logs), bounded to the window since the deploy. Then exercise the changed path once the way a user reaches it, where that changes nothing: the page, a read endpoint.
- A new error that the deploy brought: report it first, with the line and its count, and hand it to the
diagnoseskill. Changing production state (a rollback, a cache clear, a migration) needs the user's yes for that command, stated word for word. - Silence in the logs means the path didn't run unless you showed that it ran.
9. A later check
With after_deploy: check, schedule a second look at the logs and errors after the rollout has seen traffic, where the host lets you:
- Amp: a schedule on this thread, through the
building-schedulesskill, about 30 minutes out, that reads the logs and errors since the deploy and reports only what changed. - Claude Code: a scheduled or background task when the session has one; otherwise give the user the one command that runs the check, with the time to run it.
No way to schedule: say so in the report.
10. Report
Lead with the state: live and checked, live with errors, PR open, or stopped and why. Then the commit, the PR URL or the branch pushed, the checks with their result, the deploy and the commit production runs, what the production check read and found, the scheduled check, and the settings used with where each came from.