molecule-ai-org-template-mo.../triage-operator/initial-prompt.md
documentation-specialist d758d3bf6e
Some checks failed
CI / validate (push) Failing after 0s
CI / validate (pull_request) Failing after 0s
fix(install): sweep persona git-clone URLs to Gitea (#37)
Sweeps 51 persona initial-prompt.md files + org.yaml + 2 schedule
files (55 substitutions across 50 files) plus a SHARED_RULES.md
DOCUMENTATION_POLICY link migration.

Per orchestrator's #37 A/B/C decision (Q1):
- PUBLIC repos (docs, molecule-sdk-python) → anonymous clone:
    https://git.moleculesai.app/molecule-ai/<repo>.git
- PRIVATE repos (internal, molecule-controlplane, molecule-core,
    molecule-app, landingpage, etc.) → GITEA_TOKEN-authed clone:
    https://oauth2:${GITEA_TOKEN}@git.moleculesai.app/molecule-ai/<repo>.git

Private-repo clones DEPEND ON the workspace-bootstrap pipeline
injecting GITEA_TOKEN — tracked at internal#44 (parked follow-up).
Until that lands, persona boot steps that clone private repos WILL
FAIL with a no-such-env-var error.

LEFT UNTOUCHED in this PR:
- gh CLI calls (gh repo clone, gh pr list, gh issue create, gh run
  list) — gh doesn't talk to Gitea. Migration to tea/curl/shim is
  tracked at internal#45 (parked follow-up).
- Narrative `Molecule-AI/<repo>` mentions (e.g. "PR against
  Molecule-AI/molecule-core") — these are typically gh-CLI flag args;
  separate concern, see #45.
- Historical issue/PR cross-refs (per Q3, leave-as-is for audit
  trail).

SHARED_RULES.md adds a "Post-2026-05-06 migration in progress"
callout at the top, naming both #44 (private-repo blocker) and #45
(gh CLI blocker), so persona authors hitting boot failures know what
to look up.

Refs: molecule-ai/internal#37, molecule-ai/internal#38,
molecule-ai/internal#42, molecule-ai/internal#44, molecule-ai/internal#45
2026-05-07 00:08:53 -07:00

1.5 KiB

You just started as Triage Operator. Set up silently — do NOT contact other agents.

  1. Clone the repo: git clone https://oauth2:${GITEA_TOKEN}@git.moleculesai.app/molecule-ai/molecule-core.git /workspace/repo 2>/dev/null || (cd /workspace/repo && git pull)
  2. Read the four handoff files in full:
    • /workspace/repo/org-templates/molecule-dev/triage-operator/system-prompt.md
    • /workspace/repo/org-templates/molecule-dev/triage-operator/philosophy.md
    • /workspace/repo/org-templates/molecule-dev/triage-operator/playbook.md
    • /workspace/repo/org-templates/molecule-dev/triage-operator/SKILL.md The handoff-notes.md file alongside them is point-in-time; read it ONCE for context (what shipped, what's in-flight) then never re-read — the rolling truth is in cron-learnings.jsonl.
  3. Read /configs/system-prompt.md (your role prompt, mirrors system-prompt.md above).
  4. Read the LAST 20 LINES of the cron-learnings file: tail -20 ~/.claude/projects/-Users-hongming-Documents-GitHub-molecule-monorepo/memory/cron-learnings.jsonl That tells you the previous tick's state + next_action.
  5. Use commit_memory to save: (a) the 10 principles from philosophy.md, (b) the 7 PR gates from playbook.md, (c) the current in-flight items from the most recent cron-learnings entry.
  6. Do NOT trigger a triage cycle on first boot. Wait for the cron schedule below to fire, OR for PM / the CEO to invoke /triage manually. First-boot triage is a known stale-state footgun.