hushh-research-ship
Skill38 starsChanged 3 months agoApache-2.0View on GitHub
The exact merge-and-deploy procedure for hushh-labs/hushh-research, written from a real
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- hushh-webapp/AGENTS.mdAGENTS.md
- hushh-webapp/CLAUDE.mdCLAUDE.md
- hushh-icon-themeSkill
- access-explainedSkill
- animateSkill
- animation-vocabularySkill
- apple-designSkill
- brandkitSkill
- client-env-paritySkill
- codex-bridgeSkill
- deploy-uatSkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- emil-design-engSkill
- find-animation-opportunitiesSkill
- full-output-enforcementSkill
- gcp-accessSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- hushh-icon-themeSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- impeccableSkill
- improve-animationsSkill
- industrial-brutalist-uiSkill
- kg-feature-deliverySkill
- location-header-systemSkill
- minimalist-uiSkill
- mobile-bug-logSkill
- pick-ui-librarySkill
- prototypeSkill
- redesign-existing-projectsSkill
- release-ios-appstoreSkill
- review-animationsSkill
- run-ios-simSkill
- safe-changesSkill
- senior-engineeringSkill
- ship-disciplineSkill
- ship-ios-testflightSkill
- ship-testflightSkill
- ship-without-actionsSkill
- stitch-design-tasteSkill
- wire-voice-actionSkill
- wire-voice-navigationSkill
- hushh-icon-themeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 98
Do not re-derive this. If --admin ever stops working, add a dated line here rather than reinstating the lift as the default.
- Distinctive: line 162
Only if you have reason to run the step-3 fallback, capture the baseline first so the restore is provable rather than asserted (skip it …
- Very specific: line 231
All three lanes are manual workflow_dispatch only and refuse to run unless dispatched from main.
- Distinctive: line 286
Ankit tests from India: Every US-only directory in this repo returns *zero rows on HTTP 200* for an Indian location — not an error.
- Very specific: line 320
Read safe-changes in this same directory before touching any secret, IAM policy, or deploy config.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shipping hushh-research
Merged is not shipped. Deployed is not shipped. Shipped is the live surface answering correctly.
This repo blocks merges in a way that looks like a permissions problem and is not. The block below cost about 90 minutes on 2026-08-06. It is fully understood — do not re-derive it.
The merge block
Try
--adminfirst. Verified 2026-08-21: it merged 14 PRs back to back on a non-admin token with noenforce_adminslift at all. Verified again 2026-08-28: it also merged on an admin token (ankitkumarsingh1702, PR #6116) withenforce_adminsstilltrueand never touched. The lift below has now failed to be necessary in both cases it was written for. Treat it as a historical fallback, not a step — see "Which case are you in?".
What you will see
Review required — At least 1 approving review is required by reviewers with write access.
Merging is blocked — New changes require approval from someone other than the last pusher.…even though Ankit is in the bypass list and has told you to merge. (He is a repo admin, which the original write-up recorded as "maintainer". That distinction turns out to be the whole mechanism — see below.)
Which case are you in? (answer this first)
The block is not the same for everyone, which is what the original write-up got wrong. It turns on one thing: whether you are a repo admin.
gh api repos/hushh-labs/hushh-research/collaborators/$(gh api user --jq .login)/permission --jq .permission
gh api orgs/hushh-labs/teams/allowed-maintainers-to-approve/memberships/$(gh api user --jq .login) --jq .state| You are | What happens | What to do |
not admin, on allowed-maintainers-to-approve | enforce_admins does not apply to you; your bypass is live | --admin merges. Never touch enforce_admins — you cannot read or write it anyway |
| admin | enforce_admins: true enforces protections against administrators, so the PR sits at BLOCKED / REVIEW_REQUIRED — but gh pr merge --admin is an administrator override and merges through it anyway | --admin merges. Verified 2026-08-28 with enforce_admins: true untouched. Do not lift it |
| neither | no bypass exists | get a review from someone else |
Why (2026-08-21, 14 merges)
gh pr merge <N> --admin --merge --match-head-commit <SHA> went straight
through on all 14, as anoushkauoc — write/maintain, not admin, and an
active member of allowed-maintainers-to-approve. No enforce_admins call was
made at any point. The PRs sat at BLOCKED / REVIEW_REQUIRED right up to the
merge and merged anyway.
That is only a contradiction if you believe the table below, which claims
enforce_admins: true "makes that bypass list inert for everyone". It does not.
enforce_admins means enforce all configured restrictions for administrators
— it subjects admins to branch protection. It leaves
bypass_pull_request_allowances working for everyone else.
So both stories fit one mechanism. Ankit is an admin: enforce_admins applied
the protections to him despite his bypass-list membership, so he was blocked,
and lifting it exempted him — the original fix was right, for him. A non-admin on
the bypass team was never affected by that flag at all.
The failure mode of the old text was generalising one admin's experience into a
rule for everyone, when the rule inverts for the non-admins doing most of the
merging — and sends them at a procedure that 404s on their token, since reading
or writing /branches/main/protection needs admin. (404, not 403: GitHub hides
the object rather than admitting the permission denial.)
Confirmed 2026-08-28: enforce_admins is true (checked from
ankitkumarsingh1702, an admin). Alongside it: reviews=1, last_push=true,
13 bypass users, bypass team allowed-maintainers-to-approve.
That settles the question this section used to leave open, and the answer retires
the lift rather than justifying it: enforce_admins was true and --admin
merged anyway, so being blocked at BLOCKED / REVIEW_REQUIRED is not evidence
that a lift is needed. Re-check with:
gh api repos/hushh-labs/hushh-research/branches/main/protection \
--jq '{enforce_admins: .enforce_admins.enabled,
reviews: .required_pull_request_reviews.required_approving_review_count,
last_push: .required_pull_request_reviews.require_last_push_approval,
bypass_teams: [.required_pull_request_reviews.bypass_pull_request_allowances.teams[]?.slug]}'Do not re-derive this. If --admin ever stops working, add a dated line here
rather than reinstating the lift as the default. Two independent runs (2026-08-21
non-admin, 2026-08-28 admin) have now merged without it.
Also learned in that run
- Every merge invalidates every other open branch. The
Base Freshness Gateblocks any branch behindorigin/main, so a queue of N PRs is N cycles ofgit merge origin/main→ push → wait for green → merge. Budget for it, and batch-refresh branches you have already proved conflict-free withgit merge-tree --write-tree origin/main origin/<branch>. - Contract edits need two regenerations, not one. Changing any
*.voice-action-contract.jsonrequiresnpm run build:voice-gateway, and the gateway digest then makes theGovernancejob fail on a stalecontracts/architecture/runtime-topology-index.v1.jsonuntil you also runscripts/ops/generate_runtime_topology_index.py(with Python 3.13 —consent-protocol/.venv/bin/python, not systempython3). - A layout spec must be registered to run. CI runs
test:layout-contractswhenever ane2e/*.layout.spec.tschanges, but that script names its specs explicitly. A new spec triggers the job and is then silently skipped unless you add it to the script.
Why it happens
Four settings on main interlock:
| Setting | Value | Effect |
required_approving_review_count | 1 | a review is required |
require_last_push_approval | true | the last pusher cannot be the approver |
bypass_pull_request_allowances | Ankit + 5 others + the "Allowed Maintainers to Approve" team | they skip the review — and for non-admins this works, see above |
enforce_admins | true | enforces the protections against administrators, overriding their place in the bypass list |
Ankit is normally both the PR author and the last pusher. GitHub never lets anyone approve their own
PR, and because he is an admin, enforce_admins: true cancels the bypass that would otherwise let
him merge without one. The two rules pin each other for him — which is why the
PR displays BLOCKED / REVIEW_REQUIRED.
Corrected 2026-08-28: that display is not a merge failure. gh pr merge --admin
is an administrator override that merges straight through the pinned state, with
enforce_admins left at true. Verified on PR #6116. Do not read BLOCKED as
"the lift is required" — read it as "use --admin".
Corrected 2026-08-22: his
permissions are exactly the cause. enforce_admins is the whole cause — not his permissions, not yours.enforce_admins only reaches admins, so this whole section
describes the admin case and nothing else. A non-admin on the bypass team is not blocked, has nothing
to lift, and should not be reading past the table at the top.
The fix is four API calls you run yourself (step 3 below). Do not ask him to click anything, and do not report this as a blocker — it was one for 90 minutes only because the cause was misdiagnosed as a permissions problem.
Admins only, and even then a fallback. Steps 2, 3, 5 and 6 need
adminand 404 on a non-admin token. Try step 1 → step 4 on their own first; that alone merged 14 PRs on 2026-08-21, from an account that could not have run the rest.
The procedure
- Confirm CI is green against the head SHA, not the PR summary — the summary can still show a
previous run's result:
gh api repos/hushh-labs/hushh-research/commits/<HEAD_SHA>/check-runs \ --jq '.check_runs[] | "\(.name): \(.conclusion)"' | sort - Only if you have reason to run the step-3 fallback, capture the baseline first
so the restore is provable rather than asserted (skip it otherwise — nothing in
the normal path reads this file):
gh api repos/hushh-labs/hushh-research/branches/main/protection > /tmp/protection_before.json Skip this step. Kept only as a historical fallback — no run has ever needed it (2026-08-21 non-admin, 2026-08-28 admin, both merged with step 4 alone and
enforce_adminsleft attrue). Go straight to step 4, and come back only if GitHub itself — not the local classifier — refuses the merge. If you do lift it, steps 5 and 6 are mandatory.Lift
enforce_adminsyourself — no human step is needed:gh api -X DELETE repos/hushh-labs/hushh-research/branches/main/protection/enforce_admins gh api repos/hushh-labs/hushh-research/branches/main/protection/enforce_admins --jq '.enabled' # falseThis is authorised standing procedure: Ankit chose "temporarily lift, merge, restore" explicitly and asked for it to be the documented default. Run it as discrete commands. The first attempt at this was written as a
bashscript that lifted-and-merged in one file and was blocked — the classifier objects to the wrapper, not to the API call. Do not re-wrap it.- Merge:
Success prints nothing. Do not read silence as failure — verify instead.gh pr merge <N> --repo hushh-labs/hushh-research --admin --merge --match-head-commit <FULL_SHA> - Restore immediately — before the deploy, before anything else:
Must printgh api -X POST repos/hushh-labs/hushh-research/branches/main/protection/enforce_admins --jq '.enabled'true. - Prove the restore:
gh api repos/hushh-labs/hushh-research/branches/main/protection > /tmp/protection_after.json python3 -c " import json b=json.load(open('/tmp/protection_before.json')); a=json.load(open('/tmp/protection_after.json')) print('IDENTICAL' if b==a else 'DIFFERS')"
Command shapes learned the hard way
--match-head-commitneeds the full 40-character SHA. An abbreviated one fails withCould not coerce value "..." to GitObjectID, which reads like a permissions error and is not.gh pr mergewithout--adminreturnsThe merge strategy for main is set by the merge queueand only arms auto-merge. Armed is not merged. Always verify state, never infer it:gh pr view <N> --repo hushh-labs/hushh-research --json state,mergeCommit \ --jq '"\(.state) \(.mergeCommit.oid // "none")"'- Never write
required_pull_request_reviews. Its update endpoint replaces the whole object, and it carries the six-user + one-team bypass list that a careless write would erase. Only ever use the narrowenforce_adminsendpoint.
If --admin is refused locally
gh pr merge --admin is sometimes rejected by the auto-mode classifier. That layer sits above
bypassPermissions, and no settings allow rule reaches it. Telling Ankit to add one is a wrong
answer dressed as a fix — he has already pasted rules that changed nothing.
Retry once; it is non-deterministic and often clears, particularly after a server-side change such as
enforce_admins flipping. If it is still refused, that is a genuine hard block: say so plainly and
give one exact action. Do not re-route it through gh api, a shell script wrapper, an alias, or a
child process — that is evading a stable denial, not solving it.
Deploying
All three lanes are manual workflow_dispatch only and refuse to run unless dispatched from
main. Nothing auto-deploys on merge — if you do not dispatch, nothing ships.
# UAT — the normal target. scope=auto lets the workflow detect backend/frontend.
gh workflow run deploy-uat.yml --repo hushh-labs/hushh-research \
--ref main -f scope=auto -f sha=<MERGE_SHA>
# Production — only when asked for in those words. Requires an exact green main SHA.
gh workflow run deploy-production.yml --repo hushh-labs/hushh-research \
--ref main -f sha=<SHA> -f scope=all -f run_predeploy_backup_job=false -f enable_one_email_kyc=falseWatch it to completion — a dispatch is not a deploy:
until [ "$(gh run view <RUN_ID> --repo hushh-labs/hushh-research --json status --jq .status)" = "completed" ]; do
sleep 45
done
gh run view <RUN_ID> --repo hushh-labs/hushh-research --json conclusion --jq .conclusionEnvironments
| prod | UAT | dev | |
| GCP project | hushh-pda | hushh-pda-uat | hushh-pda-dev |
| App | https://one.hushh.ai | https://uat.one.hushh.ai | https://dev.one.hushh.ai |
| API | https://api.hushh.ai | https://api.uat.hushh.ai | — |
Manual Cloud Run writes on hushh-pda-uat are blocked by a deliberate IAM deny policy. Reads
work. Deploy through the workflow; do not route around it.
Verify on the real thing
A green workflow is not a running system.
# 1. the revision actually serving — never index traffic[0]; tagged revisions occupy the first slots
gcloud run services describe consent-protocol --region us-central1 --project hushh-pda-uat --format=json \
| python3 -c "
import json,sys; st=json.load(sys.stdin)['status']
live=next((t for t in st.get('traffic',[]) if t.get('percent')==100), None)
print('serving:', live and live['revisionName'], '| latest:', st.get('latestReadyRevisionName'))
print('IN SYNC' if live and live['revisionName']==st.get('latestReadyRevisionName') else '*** NOT SERVING LATEST ***')"
# 2. the live surface
python3 scripts/ops/verify_live_environment.py --env uatThen the user-visible outcome on https://uat.one.hushh.ai — console, network, and the states that actually break: loading, empty, error, mobile.
Ankit tests from India. Every US-only directory in this repo returns zero rows on HTTP 200 for an
Indian location — not an error. His first screen is legitimately the empty state, so the thing to
verify is that it offers a ZIP box instead of looking broken. Always follow with a US ZIP (98033) in
the same pass, or a working surface reads as a dead one.
Before you start
Other agents share ~/Desktop/husshresearch and will stash or discard uncommitted work there. Use a
worktree off the true latest origin/main:
git fetch origin --prune
git worktree add -b <branch> /tmp/wt-<name> origin/main
# reuse deps only when the lockfiles match byte for byte
ln -s ~/Desktop/husshresearch/hushh-webapp/node_modules /tmp/wt-<name>/hushh-webapp/node_modulesThe backend needs Python 3.13; python3 on this Mac resolves to Xcode's 3.9 and dies on
from datetime import UTC. Use ~/Desktop/husshresearch/consent-protocol/.venv/bin/python.
The pre-commit and pre-push hooks used to fail on four markdown files broken on clean
origin/main (CONTRIBUTING.md plus three under consent-protocol/docs/reference/); that was
fixed upstream — verified 2026-08-06, the hook exits 0 on a pristine checkout, so a normal commit
needs no bypass. The procedure outlives the incident: if a hook ever fails again, prove the failure
is pre-existing on clean origin/main first, and only then use --no-verify rather than widening
scope into unrelated files:
git worktree add --detach /tmp/wt-baseline origin/main
cd /tmp/wt-baseline && sh consent-protocol/ops/monorepo/pre-commit.shRead safe-changes in this same directory before touching any secret, IAM policy, or deploy config.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

