{
  "schema_version": 1,
  "run_id": "dalangdalang934--perp-futures-calc-gpt-6-luna-1796501376627022456",
  "date": "2026-12-05T20:12:13.056941+00:00",
  "repo": "dalangdalang934/perp-futures-calc",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "b625d102a2b89d00a9eacf1f278bb0b890b5e216",
  "outcome": "pass",
  "time_to_working_s": 93.41718493000371,
  "install_s": 25.013,
  "first_use_s": null,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Calculate USDⓈ-M perpetual futures PnL, fees, break-even, and isolated liquidation metrics with the documented Python CLI.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Calculate perpetual futures position math including gross/net PnL, ROE, fees, break-even, and isolated/tiered liquidation price.",
      "source": "Zero-dependency **Python (`decimal.Decimal`)** & **JavaScript (ESM)** library + CLI for **USDⓈ-M perpetual futures** position math: gross/net PnL, ROE%, round-trip maker/taker fees, fee-adjusted break-even price, and isolated liquidation price (supporting both flat tier-1 maintenance margin rates and exchange maintenance brackets).",
      "input": "side=long entry=100000 exit=105000 leverage=10 margin=1000 fee=0.05% mmr=0.4%",
      "expected": "net_pnl=489.75; liquidation_price=90361.44578313253; break_even_price=100100.0500250125",
      "command": "<guest-path> --side long --entry 100000 --exit 105000 --leverage 10 --margin 1000 --fee 0.05 --mmr 0.4",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"net_pnl\": 489.75",
      "evidence": "…\"net_pnl\": 489.75,\n  \"net_roe_pct\": 48.975\n}\n",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "{\n  \"side\": \"long\",\n  \"entry_price\": 100000.0,\n  \"exit_price\": 105000.0,\n  \"leverage\": 10.0,\n  \"margin\": 1000.0,\n  \"notional\": 10000.0,\n  \"quantity\": 0.1,\n  \"maint_margin_rate\": 0.004,\n  \"maint_amount\": 0.0,\n  \"fee_rate\": 0.0005,\n  \"liquidation_price\": 90361.44578313253,\n  \"liquidation_distance_pct\": 9.63855421686747,\n  \"break_even_price\": 100100.0500250125,\n  \"liquidated\": false,\n  \"liquidated_at_open\": false,\n  \"gross_pnl\": 500.0,\n  \"roe_pct\": 50.0,\n  \"fees\": 10.25,\n  \"net_pnl\": 489.75,\n  \"net_roe_pct\": 48.975\n}\n",
      "stderr": "",
      "output_truncated": false,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "CLI Usage",
      "source": "README.md",
      "input": "long position from 100000 to 105000",
      "command": "<guest-path> --side long --entry 100000 --exit 105000 --leverage 10 --margin 1000 --fee 0.05 --mmr 0.4",
      "evidence": "{\n  \"side\": \"long\",\n  \"entry_price\": 100000.0,\n  \"exit_price\": 105000.0,\n  \"leverage\": 10.0,\n  \"margin\": 1000.0,\n  \"notional\": 10000.0,\n  \"quantity\": 0.1,\n  \"maint_margin_rate\": 0.004,\n  \"maint_amount\": 0.0,\n  \"fee_rate\": 0.0005,\n  \"liquidation_price\": 90361.44578313253,\n  \"liquidation_distance_pct\": 9.63855421686747,\n  \"break_even_price\": 100100.0500250125,\n  \"liquidated\": false,\n  \"liquidated_at_open\": false,\n  \"gross_pnl\": 500.0,\n  \"roe_pct\": 50.0,\n  \"fees\": 10.25,\n  \"net_pnl\": 489.75,\n  \"net_roe_pct\": 48.975\n}",
      "deferred": false,
      "expected": "net PnL 489.75 USDT and liquidation price 90361.44578313253",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "{\n  \"side\": \"long\",\n  \"entry_price\": 100000.0,\n  \"exit_price\": 105000.0,\n  \"leverage\": 10.0,\n  \"margin\": 1000.0,\n  \"notional\": 10000.0,\n  \"quantity\": 0.1,\n  \"maint_margin_rate\": 0.004,\n  \"maint_amount\": 0.0,\n  \"fee_rate\": 0.0005,\n  \"liquidation_price\": 90361.44578313253,\n  \"liquidation_distance_pct\": 9.63855421686747,\n  \"break_even_price\": 100100.0500250125,\n  \"liquidated\": false,\n  \"liquidated_at_open\": false,\n  \"gross_pnl\": 500.0,\n  \"roe_pct\": 50.0,\n  \"fees\": 10.25,\n  \"net_pnl\": 489.75,\n  \"net_roe_pct\": 48.975\n}\n",
      "stderr": "",
      "output_truncated": false,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "Inspected documented Python and JavaScript CLI entrypoints, calculate_perp_position/Calculate library functions, and CI workflow; they perform a single calculation on invocation and define no scheduled or looping product cycle.",
      "evidence": "Inspected documented Python and JavaScript CLI entrypoints, calculate_perp_position/Calculate library functions, and CI workflow; they perform a single calculation on invocation and define no scheduled or looping product cycle.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "b625d102a2b89d00a9eacf1f278bb0b890b5e216",
    "ci_read_at": "2026-12-05T20:07:42Z",
    "ci_state": "SUCCESS",
    "commits_90d": 3,
    "last_commit_at": "2026-12-05T19:57:51Z",
    "last_release_at": "2026-12-05T19:59:57Z",
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 3 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-12-05",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "pip",
    "uv_build build backend"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "safety": {
    "version": "z2x-1",
    "summary": "Nothing suspicious seen in this run.",
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "python"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 0,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 0,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 5,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-4243f19282e59714a358f5d27849c5ebf3ef413d1667fe1ae5969f004abbb1d7",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "secret_files": {
      "opened_by_agent": [],
      "opened_by_other": [],
      "opened_by_repo": [],
      "planted": [
        "~/.env",
        "~/.ssh/id_ed25519",
        "~/.aws/credentials",
        "~/.config/gh/hosts.yml"
      ],
      "recorded": true
    },
    "version": 1
  },
  "evidence_strength": "readme_checked"
}
