Skip to content

RedHeartSecretMan/dag-skill / skill/dag

Coordinate an Approved DAG in a Git-backed Target Project by selecting runnable Tickets, dispatching one end-to-end Execution Agent per Ticket, and accepting verified results. Use when the user asks to execute, advance, continue, or resume an Approved DAG.

FileKindSize
SKILL.mdskill md38.9 KB
agents/openai.yamlconfig218 B
references/definition-binding.mdmarkdown9.4 KB
references/execution-artifacts.mdmarkdown8.1 KB
references/integration-transitions.mdmarkdown16.4 KB
references/outcome-closure.mdmarkdown9.9 KB
references/runnable-scheduling.mdmarkdown6.8 KB
references/ticket-execution.mdmarkdown12.6 KB
scripts/commit.pyexecutablescript7.5 KB
scripts/lib/__init__.pyscript92 B
scripts/lib/artifacts.pyscript57.9 KB
scripts/lib/common.pyscript12.1 KB
scripts/lib/git_ops.pyscript10.3 KB
scripts/lib/receipt.pyscript8.0 KB
scripts/lib/scheduling.pyscript33.2 KB
scripts/lib/tracker.pyscript48.4 KB
scripts/lib/transitions.pyscript61.8 KB
scripts/promote.pyexecutablescript2.0 KB
scripts/publish.pyexecutablescript9.3 KB
scripts/runtime.pyexecutablescript16.4 KB
scripts/verify.pyexecutablescript4.4 KB

scripts/promote.py

View on GitHub
#!/usr/bin/env python3
"""Verify frozen pending evidence and CAS-promote one local integration ref."""

from __future__ import annotations

import argparse
import sys
from pathlib import Path

from lib.common import RecordError, print_json, require_supported_python
from lib.git_ops import ValidationError
from lib.transitions import promote_local_transition


def build_parser() -> argparse.ArgumentParser:
    parser = argparse.ArgumentParser(
        description="Verify frozen pending evidence and CAS-promote one local integration ref. The Coordinator keeps writers and worktree changes quiescent; semantic acceptance remains separate."
    )
    parser.add_argument(
        "--repository", required=True, type=Path, help="existing non-bare Git worktree"
    )
    parser.add_argument("--transition", required=True, type=Path)
    parser.add_argument(
        "--expected-transition-sha256",
        required=True,
        help="SHA-256 of the exact pending transition record bytes",
    )
    parser.add_argument("--promotion-evidence", type=Path)
    parser.add_argument("--expected-promotion-sha256")
    parser.add_argument("--receipt", type=Path)
    parser.add_argument("--expected-receipt-sha256")
    return parser


def main() -> int:
    parser = build_parser()
    arguments = parser.parse_args()
    try:
        require_supported_python()
        result = promote_local_transition(
            arguments.repository,
            arguments.transition,
            arguments.expected_transition_sha256,
            arguments.promotion_evidence,
            arguments.expected_promotion_sha256,
            arguments.receipt,
            arguments.expected_receipt_sha256,
        )
    except (
        OSError,
        RecordError,
        ValidationError,
        ValueError,
        UnicodeError,
        TypeError,
        RecursionError,
    ) as error:
        print(f"error: {error}", file=sys.stderr)
        return 1
    print_json(result)  # type: ignore[arg-type]
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall