ALL-879: Yarn scripts hygiene — audit + convention + supergraph-gateway pilot
completedAgent: john-engineer
Priority: 1
Branch:
rob/all-879-yarn-scripts-hygienePR: #10455
Linear: ALL-879
Linear: https://linear.app/texture/issue/ALL-879
Follow-up to closed PR #10400 (rob/doppler-secrets-hardening).
Plan (per Linear issue, not re-confirming):
1. Audit yarn scripts across mono — classify by complexity, output a table.
2. Write convention doc (scripts/ ADR/README) — naming, shellcheck, when to extract.
3. Pilot: convert infra/supergraph-gateway secrets + secrets:check into real shellcheck-clean scripts with proper error handling.
4. Open follow-up tickets per package for worst offenders.
Notes:
- Audit + convention doc + pilot can be one PR or split. Default plan: one PR for audit+convention (small, mergeable), separate PR for pilot.
- Branch prefix: rob/all-879-*
- Was previously blocked because scope kept getting re-confirmed across multiple Slack threads without state being persisted in fleet-tasks. Now tracked here.
Event Timeline
created
status_change
blocked → in_progress
progress
Audit complete: 105 package.json files, 1187 scripts, 211 complex (177 light + 34 heavy). Worst patterns are duplicated verbatim across many packages: secrets:check x23, secrets:onboardbase x23, prisma db:reset x14. Worktree at mono-all-879-yarn-scripts-hygiene. Audit saved at .all-879-audit.txt. Pinging John with finding + proposed PR shape before writing convention doc.
failed
lease expired — re-queued for retry
in_progress → queued
progress
PR #10455 opened: https://github.com/TextureHQ/mono/pull/10455 — convention doc + secrets-check.sh + secrets-download-doppler.sh + supergraph-gateway pilot. Awaiting CI.
status_change
queued → in_progress
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → completed