{
  "task": "jdp-tess-second-target",
  "status": "OK",
  "generated_utc": "2026-10-24T17:54:38Z",
  "code_version": "0.1.0",
  "docket": {
    "path": "research/tess-timing/data/target-docket/docket.json",
    "sha256": "795ba8140736a4c6fd1e5b6ebf715942cc3d29612c80ba655889dc6afa30f885",
    "generated_utc": "2026-10-22T06:15:21Z",
    "candidates": 304
  },
  "selection_rule": {
    "order": "Continue the committed docket after the first acquired pair. Within a candidate, probe sectors in the order recorded in its sectors array. Stop at the first accepted pair.",
    "already_acquired": {
      "docket_position": 14,
      "tic_id": 420814525,
      "sector": 56,
      "note": "This pair was acquired by the first run. It is not probed or selected again."
    },
    "saturation_guard": {
      "field": "tmag",
      "threshold": 7.0,
      "comparison": "skip when tmag < threshold; 7.0 itself is probed",
      "rule": "Skip a docket row when its recorded TESS magnitude is below 7.0. The threshold is strictly less than 7.0: a row at exactly 7.0 is probed. The guard avoids saturated targets whose aperture photometry is unreliable."
    },
    "acceptance": "MAST must return one SPOC light curve with t_exptime 120 s and one SPOC target pixel file from the same TIC, sector, and obsid.",
    "sector_status_note": "POSTDATES_REFERENCE_YEAR is copied from the docket as a one-sided date comparison. It is not proof that the published ephemeris omitted the sector. The selected sector may predate the reference year."
  },
  "counts": {
    "docket_rows": 304,
    "rows_examined": 1,
    "rows_skipped_saturation": 0,
    "pairs_probed": 1,
    "pairs_rejected": 0,
    "products_selected": 2
  },
  "docket_walk": [
    {
      "docket_position": 15,
      "tic_id": 55092869,
      "planet_name": "KELT-11 b",
      "tmag": 7.3212,
      "sectors": [
        9,
        62,
        89,
        100
      ],
      "probes": [
        {
          "tic_id": 55092869,
          "sector": 9,
          "requested_utc": "2026-10-24T17:54:13Z",
          "calls": [
            {
              "service": "Mast.Caom.Filtered",
              "endpoint": "https://mast.stsci.edu/api/v0/invoke",
              "requested_utc": "2026-10-24T17:54:13Z",
              "http_status": 200,
              "rows": 1
            },
            {
              "service": "Mast.Caom.Products",
              "endpoint": "https://mast.stsci.edu/api/v0/invoke",
              "requested_utc": "2026-10-24T17:54:13Z",
              "http_status": 200,
              "rows": 12
            }
          ],
          "observations": [
            {
              "obsid": 62893800,
              "provenance_name": "SPOC",
              "t_exptime": 120.0,
              "t_min": 58543.11072130787,
              "t_max": 58567.97997108796
            }
          ],
          "products_found": [
            {
              "product_type": "lightcurve",
              "product_subgroup": "LC",
              "project": "SPOC",
              "obsid": 62893800,
              "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
              "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
              "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
              "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
              "declared_bytes": 1848960,
              "query_http_status": 200
            },
            {
              "product_type": "target-pixel-file",
              "product_subgroup": "TP",
              "project": "SPOC",
              "obsid": 62893800,
              "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
              "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
              "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
              "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
              "declared_bytes": 52562880,
              "query_http_status": 200
            }
          ],
          "selected": true,
          "rejection_reason": null,
          "cadence_seconds": 120
        }
      ],
      "decision": "selected",
      "reason": "first probed pair that returned both products",
      "selected_sector": 9
    }
  ],
  "probes": [
    {
      "tic_id": 55092869,
      "sector": 9,
      "requested_utc": "2026-10-24T17:54:13Z",
      "calls": [
        {
          "service": "Mast.Caom.Filtered",
          "endpoint": "https://mast.stsci.edu/api/v0/invoke",
          "requested_utc": "2026-10-24T17:54:13Z",
          "http_status": 200,
          "rows": 1
        },
        {
          "service": "Mast.Caom.Products",
          "endpoint": "https://mast.stsci.edu/api/v0/invoke",
          "requested_utc": "2026-10-24T17:54:13Z",
          "http_status": 200,
          "rows": 12
        }
      ],
      "observations": [
        {
          "obsid": 62893800,
          "provenance_name": "SPOC",
          "t_exptime": 120.0,
          "t_min": 58543.11072130787,
          "t_max": 58567.97997108796
        }
      ],
      "products_found": [
        {
          "product_type": "lightcurve",
          "product_subgroup": "LC",
          "project": "SPOC",
          "obsid": 62893800,
          "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
          "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
          "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
          "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
          "declared_bytes": 1848960,
          "query_http_status": 200
        },
        {
          "product_type": "target-pixel-file",
          "product_subgroup": "TP",
          "project": "SPOC",
          "obsid": 62893800,
          "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
          "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
          "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
          "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
          "declared_bytes": 52562880,
          "query_http_status": 200
        }
      ],
      "selected": true,
      "rejection_reason": null,
      "cadence_seconds": 120
    }
  ],
  "selected": {
    "docket_position": 15,
    "tic_id": 55092869,
    "sector": 9,
    "planet_name": "KELT-11 b",
    "tmag": 7.3212,
    "period_days": 4.73620865,
    "epoch_bjd": 2455498.95898,
    "reference_label": "Mounzer et al. 2022",
    "reference_year": 2022,
    "sector_in_sectors_after_reference_year": false,
    "cadence_seconds": 120,
    "products": [
      {
        "product_type": "lightcurve",
        "product_subgroup": "LC",
        "obsid": 62893800,
        "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
        "target_name": "55092869",
        "sector": 9,
        "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
        "file_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
        "declared_bytes": 1848960,
        "http_status": 200,
        "requested_utc": "2026-10-24T17:54:24Z",
        "downloaded_utc": "2026-10-24T17:54:25Z",
        "byte_count": 1848960,
        "sha256": "5b3be4a757da818466ee92fca8dad3bb3558191e9df98c01a9ad6044ccc1582d",
        "cadence_seconds": 120,
        "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
        "local_path": "research/tess-timing/data/real-run-2/lightcurve.fits",
        "project": "SPOC",
        "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_lc.fits",
        "observation_t_exptime_seconds": 120
      },
      {
        "product_type": "target-pixel-file",
        "product_subgroup": "TP",
        "obsid": 62893800,
        "obs_id": "tess2019058134432-s0009-0000000055092869-0139-s",
        "target_name": "55092869",
        "sector": 9,
        "product_filename": "tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
        "file_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
        "declared_bytes": 52562880,
        "http_status": 200,
        "requested_utc": "2026-10-24T17:54:25Z",
        "downloaded_utc": "2026-10-24T17:54:38Z",
        "byte_count": 52562880,
        "sha256": "e140ac21aa7b7ba9439f31da20b138301e49cc00e555a52ca2856e33822be0f9",
        "cadence_seconds": 120,
        "source_url": "https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
        "local_path": "research/tess-timing/data/real-run-2/tpf.fits",
        "project": "SPOC",
        "data_uri": "mast:TESS/product/tess2019058134432-s0009-0000000055092869-0139-s_tp.fits",
        "observation_t_exptime_seconds": 120
      }
    ],
    "fits_identity": {
      "lightcurve": {
        "ticid": 55092869,
        "sector": 9,
        "camera": 1,
        "ccd": 4
      },
      "target-pixel-file": {
        "ticid": 55092869,
        "sector": 9,
        "camera": 1,
        "ccd": 4
      }
    },
    "manifest": "research/tess-timing/data/real-run-2/manifest.jsonl"
  },
  "download": {
    "tool": "research/tess-timing/scripts/fetch_products.py",
    "command": [
      "C:\\Users\\jacob\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
      "C:\\Users\\jacob\\Documents\\JDerifield-Physics\\research\\tess-timing\\scripts\\fetch_products.py",
      "--tic-id",
      "55092869",
      "--sector",
      "9",
      "--download",
      "--max-bytes",
      "67108864",
      "--downloads",
      "C:\\Users\\jacob\\Documents\\JDerifield-Physics\\research\\tess-timing\\.scratch\\second-target-acquire\\20261024T175423Z\\downloads",
      "--manifest",
      "C:\\Users\\jacob\\Documents\\JDerifield-Physics\\research\\tess-timing\\.scratch\\second-target-acquire\\20261024T175423Z\\manifest.jsonl",
      "--out",
      "C:\\Users\\jacob\\Documents\\JDerifield-Physics\\research\\tess-timing\\.scratch\\second-target-acquire\\20261024T175423Z\\run.json",
      "--aperture",
      "not applied",
      "--quality-mask",
      "not applied"
    ],
    "byte_cap_bytes": 67108864,
    "staging_root": "research/tess-timing/.scratch/second-target-acquire/20261024T175423Z",
    "cadence_source": "MAST Mast.Caom.Filtered t_exptime for the selected SPOC observation, cross-checked against the probe",
    "manifest_records": 2
  },
  "limits": [
    "No light curve was fitted, detrended, or folded.",
    "No transit time, ephemeris, period, depth, or duration was measured.",
    "No claim is made that the sector is absent from the published ephemeris.",
    "No claim is made that a transit was detected.",
    "The FITS files are the downloaded archive bytes, copied without editing or recompression.",
    "Selection is a data-availability walk, not a suitability or novelty judgement."
  ]
}
