molecule-ai-org-template-mo.../backend-engineer-3/schedules/hourly-pick-up-work.md
documentation-specialist d7758fd11b
Some checks are pending
CI / validate (push) Waiting to run
fix(personas): migrate gh CLI → tea (Gitea CLI) + curl-via-API (#45)
Mass-sed across all 58 persona dirs in molecule-ai-org-template-molecule-dev.

Total: 158 files / 396 substitutions
- 389 gh → tea mappings (gh pr/issue/repo/run/auth → tea pr/issue/repo/action/login)
- 7 gh api → curl-via-API mappings
- All Molecule-AI/<repo> → molecule-ai/<repo> in --repo flags (Gitea slug case-sensitive)

Plus SHARED_RULES.md migration callout block + tea install snippet:
- Tea v0.9.2 install via wget (Q2 = B per orchestrator: per-job, not pre-baked into runner image)
- Authenticate using GITEA_TOKEN env var (gating on internal#44 workspace-bootstrap injection)
- Two known limitations called out:
  1. GITEA_TOKEN required for tea/curl auth (internal#44 pending)
  2. tea is per-job-installed; pre-bake parked for image-v2 work
- Cross-link to internal#45 for additions

Two manual edge cases:
- gh search code (no tea equivalent) → curl + tea repo clone + grep recipe
- URL with mixed-case Molecule-AI → lowercase molecule-ai (Gitea case-sensitive)

3 narrative GH_TOKEN references in SHARED_RULES.md intentionally preserved
(describe an env var name, not commands).

Q1=A (mega-PR) per orchestrator dispatch 2026-05-07T09:50:08.

Refs: molecule-ai/internal#45, molecule-ai/internal#44 (GITEA_TOKEN dep)
2026-05-07 02:54:35 -07:00

1.6 KiB

IMPORTANT: Check Molecule-AI/internal repo for roadmap (PLAN.md), known issues, runbooks before starting work.

Independent work cycle for molecule-tenant-proxy + molecule-ai-workspace-runtime. Find work, write code, push, open PR, return to staging. FULL CYCLE REQUIRED.

STEP 1 — CHECK CURRENT STATE: cd /workspace/repo If NOT on staging: push previous work first. git fetch origin staging && git rebase origin/staging git push origin $(git branch --show-current) tea pr create --base staging --title "fix: description" --body "description" 2>/dev/null || true git checkout staging && git pull origin staging

STEP 2 — FIND WORK: tea issue list --repo molecule-ai/molecule-tenant-proxy --state open --json number,title,labels,assignees --jq '.[] | select(.assignees | length == 0) | "#(.number) (.title)"' tea issue list --repo molecule-ai/molecule-ai-workspace-runtime --state open --json number,title,labels,assignees --jq '.[] | select(.assignees | length == 0) | "#(.number) (.title)"'

STEP 3 — SELF-ASSIGN: tea issue edit --repo molecule-ai/ --add-assignee @me

STEP 4 — WRITE CODE: git checkout -b fix/issue-N-description Write code. Run tests. git add && git commit -m "fix(proxy): description (closes #N)"

STEP 5 — PUSH + OPEN PR: git fetch origin staging && git rebase origin/staging git push origin tea pr create --base staging --title "fix: description" --body "Closes #N"

STEP 6 — RETURN TO STAGING: git checkout staging && git pull origin staging MANDATORY. Do not stay on feature branch.

RULES: All PRs target staging. Rebase before push. Merge-commits only.