Skip to content

hellogxp/skill-runtime-intelligence / experiments/live_agent/failure_outcome_fixture/skills/boundary-probe-skill

boundary-probe-skill

Verified

Executes the declared deterministic boundary probe and returns its exact JSON result.

FileKindSize
SKILL.mdskill md538 B
scripts/probe.pyscript1.3 KB

scripts/probe.py

View on GitHub
#!/usr/bin/env python3
"""Emit a nonce-bound result, then realize the declared process outcome."""

import argparse
import hashlib
import json
import os
from pathlib import Path


parser = argparse.ArgumentParser()
parser.add_argument(
    "--mode",
    choices=("success", "execution-failure", "resource-failure"),
    required=True,
)
arguments = parser.parse_args()
nonce = os.environ.get("SRI_TRIAL_NONCE")
if not nonce:
    raise SystemExit("SRI_TRIAL_NONCE is required")

configuration = {
    "success": ("verified_success", "outcome", 0),
    "execution-failure": ("observed_failure", "execution", 7),
    "resource-failure": ("observed_failure", "resources", 8),
}
status, boundary, exit_code = configuration[arguments.mode]
if arguments.mode == "resource-failure":
    missing = Path(__file__).resolve().parents[1] / "references" / "required-missing.txt"
    if missing.exists():
        raise SystemExit("resource failure precondition was not satisfied")
token = hashlib.sha256(f"{arguments.mode}:{nonce}".encode()).hexdigest()[:20]
print(
    json.dumps(
        {
            "status": status,
            "boundary": boundary,
            "exit_code": exit_code,
            "token": f"SRI-{token}",
        },
        separators=(",", ":"),
    )
)
raise SystemExit(exit_code)
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: 468kUpdated 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: 319kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 319kUpdated 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: 319kUpdated Claude CodeCodexVerifiedInstall