본문으로 건너뛰기
cccskills
무료GitHub에 공개

Orchestrator — Autonomous Workflow Standard (mxm-orchestrator)

Author and run unattended autonomous workflows — "workflow", "unattended", "run on a schedule", "automate this overnight", "set up an autonomous", "dry-run". Mandatory budget guards, a separate verification gate, idempotency, and dry-run on by default.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md9.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Orchestrator — Autonomous Workflow Standard (mxm-orchestrator)

The governed home of unattended automation. A workflow is a process a trigger fires without a human present (schedule, file drop, webhook, queue event) — so budgets, a separate verification gate, and dry-run are mandatory, precisely because nobody is in the chair to stop a runaway. Governed by ADR-022.

Loops vs. Workflows — the one distinction that matters. The loops skill governs interactive, operator-present iteration and is deliberately permissive about budgets ("don't invent a budget the operator didn't give"). This skill governs the unattended case and inverts that rule: every workflow carries hard budget guards. They compose — mxm-orchestrator extends loops and reuses its terminal-state vocabulary — but they are distinct contracts. If a human is watching → loops. If a trigger fires it unattended → a workflow.


What this skill protects (the moat)

A scheduled run that over-spends, double-sends, or fails silently is the most expensive failure class in autonomous agents — and the one Maxim was least bounded against before ADR-022. This skill makes "Maxim ran something while you slept" a safe sentence: every unattended run is bounded (BudgetGuard hard-kill), verified (a separate gate before anything ships), idempotent (no double-anything), dry-run by default, and fully logged (one structured record per step). That is governed autonomy — the engineering substrate of the PaaS thesis.

Frameworks embodied (cited per ADR-007): Feedback Control (bounded observe→act→verify loop) · Separation of Duties (maker ≠ checker; run() never approves its own output) · Fail-safe Defaults (dry_run ON until go-live) · Defense in Depth (budget ∧ verify ∧ dry-run ∧ idempotency, independent layers) · Exactly-Once / Idempotency (re-fire is a no-op).


The three layers (non-negotiable, ADR-022 §2)

Every workflow is exactly: Trigger → Capable Agent(s) → Verification. The verification layer is a separate gate (second-agent checker, rule validator, test suite, or human-review queue). No unattended output reaches a human or goes live without passing verification. A workflow with no verify() is rejected at registration time — the checker is written before the maker (ADR-002 Executable Contract).


The Workflow contract

Author a workflow as a module exporting an object (or a factory returning one):

{
  id,                          // stable, unique — the registry key
  trigger() => 'schedule'|'file'|'webhook'|'queue'|'manual',
  idempotency_key(context) => string|null,   // re-fire dedup key
  budget: { max_tokens, max_tool_calls, max_runtime_s, max_cost_usd },
  dry_run: true,               // DEFAULT ON until operator approves go-live
  async run(ctx) => output,    // the maker. ctx.charge('tokens'|'tool_calls'|'cost_usd', n) + ctx.tick()
  verify(output, ctx) => 'pass'|'fail'|'escalate',   // the SEPARATE gate (required)
  async commit(output, ctx) => sideEffect,           // the ONLY place a side-effect happens
}

The orchestrator runs trigger → run → verify → (commit) and enforces every guard. commit() fires only when dry_run === false and verify() returned pass. A BudgetGuard breach anywhere throws before commit, so a runaway never reaches the outside world.

Terminal states (reused from loops): success · clean-no-op (return {noop:true}) · blocked · approval-required (verify → escalate) · exhausted (budget breach) · stagnated · failed. Never report failed/exhausted/blocked as success (the loops cardinal rule).


Mandatory per-run guards (ADR-022 §3)

GuardWhat it doesWhere
BudgetGuardmax_tokens / max_tool_calls / max_runtime_s / max_cost_usd → hard-kill on breach → exhausted + dead-letterengine.mjs
StateStorerun/step state + idempotency markers; a seen key → clean-no-op.mxm-skills/workflows/{runs,idempotency}/
Unified RunLogone JSON record per step.mxm-skills/runlog.jsonl
Dead-letterfailed/exhausted runs land here with full context → review queue.mxm-skills/workflows/dead-letter/
Dry-run default ONno sends/trades/publishes/destructive writes unattended until go-liveper-workflow dry_run

BudgetGuard composes with the usage-aware-scheduler: the scheduler throttles when work runs (OAuth usage %); BudgetGuard bounds how much a single run may consume. Both apply.


The behavioral + governance overlay (on top, non-negotiable)

Every workflow inherits the Maxim overlay: confidence tag on each step + terminal state (ADR-010) · framework citation for the pattern it embodies (ADR-007) · CSO auto-loop — any regulated/PII/data workflow routes security-analyst into the verify gate; no secrets/PII into logs · no-fabrication — every rate carries its sample size.


Authoring contract — the 10-section template (ADR-022 §3)

A workflow is registrable only with all ten, verification first: (1) "wrong output" definition · (2) trigger spec + idempotency key · (3) agent design (router/maker/checker tiers) · (4) budget guards (concrete numbers) · (5) verification logic (pass/fail/escalate thresholds) · (6) state + logging schema · (7) error & recovery (retry/backoff/dead-letter) · (8) runnable code (registered, --dry-run ON) · (9) deployment (trigger, secrets — request only) · (10) safety guardrails (what it must never do unattended). /mxm-workflow new scaffolds the skeleton.


Activation & dispatch

TriggerBehavior
"automate X overnight" / "every day run Y" / "set up an autonomous Z"planner scaffolds a workflow against this contract, routes per-run work to the owning office (ADR-017), registers it dry-run ON
A regulated/PII/data workflowCSO auto-loop fires — security-analyst gates the verify step
Any workflow before go-liveruns in dry-run; operator reviews the dry-run RunLog, then explicitly approves dry_run:false

Run directly: node orchestrator/engine.mjs is the library; node orchestrator/acceptance-test.mjs proves the guards. Surface command: /mxm-workflow (new · list · run · dry-run · go-live · logs).


Acceptance test (prove the orchestrator before trusting it)

orchestrator/acceptance-test.mjs runs a no-op workflow that breaches each guard and asserts: clean hard-stop (exhausted) + dead-letter + log + nothing external on every breach; the happy path commits; dry-run skips the side-effect; an idempotent re-fire is a clean-no-op with no double-commit. Status: 29/29 PASS (2026-06-26). Re-run after any engine.mjs change — this is the gate (ADR-002 Executable Contract).


References

  • ADR-022 (Autonomous Workflow Standard) · ADR-002 (executable contracts) · ADR-007 (framework citation) · ADR-010 (confidence) · ADR-017 (office dispatch).
  • Engine + test + docs: orchestrator/engine.mjs · orchestrator/acceptance-test.mjs · orchestrator/README.md.
  • Siblings: loops (interactive iteration) · usage-aware-scheduler (throttle) · handoff-coordinator (escalation) · Proactive Watch (the standing read-only workflow exemplar).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

AI video and image prompt engineering — video generation, image generation, product video, social media video, cinematic direction, animation, Seedance, Higgsfield, GPT-Image-2. Applies 15 Maxim-authored cinematic styles and the atomic prompt schema.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

Apply a named behavioral science framework to any task — persuasion, nudge design, habit formation, conversion, influence, negotiation, cognitive bias, choice architecture, decision framing. The framework backbone every other Maxim skill loops into for psychological validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

Founder and CEO automation — morning standup, overnight cycle, burn rate, runway, pipeline review, investor and fundraising prep, executive summary, daily digest. Operates on the .mxm-executive-summary context.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

Tear down a company on request — "do a teardown of", "break down this company", "analyze this competitor's business". Fixed-template output: business model, how they make money, positioning, and where they are exposed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

Track what a competitor actually shipped — "watch this competitor", "track what they ship", "what changed at". Compares against the last snapshot and reports only real moves: launches, pricing changes, positioning shifts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

Regulatory review across 14 frameworks — compliance review, privacy impact assessment, regulatory gap analysis, data subject rights, consent mechanisms, audit trail, AI ethics review, data flow mapping. Covers GDPR, PIPEDA, HIPAA, PCI-DSS, SOC2, UAE-PDPL, EU AI Act and more.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DrNabeelKhan/maxim22026년 10월 16일 업데이트

DrNabeelKhan의 스킬 모두 보기

이 스킬의 문제 신고