# Chapter 11 milestone forecast

## 1. Role and task
You are a restructuring analyst. Using only the docket as it stood before the decision date, give calibrated probabilities for the case milestones below, take a trading decision, and cite the docket entries that support your view.

## 2. Case
- court: E.D. California
- court_id: caeb
- docket_number: [not published]
- debtor_name: Madera Community Hospital
- petition_date: 2023-03-10
- decision_date: 2023-07-09
- case_age_days: 121
- subchapter_v: False
- small_business: False
- prepack: False
- liabilities_bucket: mid

All evidence is frozen strictly before the decision date 2023-07-09.

The decision date is the day after this process stage was first visible on the docket: statutory plan deadline (2023-07-08).

Process stages visible before the decision date (first entry of each, from the docket rules; read the entries themselves):
- 2023-03-10: Voluntary petition
- 2023-03-13: Motion to sell assets (entry #33)
- 2023-03-14: Claims bar date set (entry #49)
- 2023-03-14: Deadline to object to discharge (entry #49)
- 2023-03-14: Motion to assume or reject (entry #62)
- 2023-03-15: Application to employ professionals (entry #70)
- 2023-03-22: Cash collateral hearing and order (entry #125)
- 2023-03-23: Schedule of executory contracts and leases (entry #136)
- 2023-03-23: Schedules of liabilities (entry #136)
- 2023-03-23: Statement of financial affairs and schedules (entry #136)
- 2023-04-06: Committee formation by the U.S. Trustee (entry #195)
- 2023-04-06: Committee appointed (entry #195)
- 2023-04-18: Contract or lease assumed or rejected (entry #262)
- 2023-04-18: Order approving employment (entry #259)
- 2023-04-24: Monthly operating reports (entry #280)
- 2023-05-09: §341 meeting of creditors (entry #u360061951)
- 2023-06-05: Committee communication with creditors (entry #537)
- 2023-06-05: Order on fee application (entry #540)
- 2023-06-16: Motion for relief from stay (entry #581)

## 3. Evidence
Use only `/app/evidence`; the container has no network.

## 4. The `docket` tool
- `docket info`: case header and evidence summary
- `docket ls [--from N] [--to N] [--limit 200]`: one line per entry (`#ref date text…`)
- `docket search PATTERN [--regex] [--limit 50]`: case-insensitive search
- `docket open REF...`: full sanitized text of entries

## 5. Outcome definitions
An event's date is the date it was entered on the docket. Windows run [decision date, decision date + horizon).

- **confirmed**: an order confirming a Chapter 11 plan.
- **converted**: an order converting the case to Chapter 7.
- **dismissed**: an order dismissing the case, including structured dismissal.
- **pending**: none of the above in the window. The first of confirmed, converted or dismissed decides the path.
- **plan** (plan filed): a Chapter 11 plan is filed (a combined plan and disclosure statement or a Subchapter V plan counts).
- **ballot** (ballots certified): the ballot tabulation, voting report or certification of votes on the plan is filed.
- **consummation** (plan effective): a notice reports the plan's effective date or substantial consummation.

## 6. Questions
| id | type | answer | window |
|---|---|---|---|
| `path_h90` | path | probabilities for confirmed, converted, dismissed, pending (sum to 1) | [2023-07-09, 2023-10-07) |
| `path_h180` | path | probabilities for confirmed, converted, dismissed, pending (sum to 1) | [2023-07-09, 2024-01-05) |
| `path_h365` | path | probabilities for confirmed, converted, dismissed, pending (sum to 1) | [2023-07-09, 2024-07-08) |
| `reach_plan_h90` | event | probability that the case reaches 'plan filed' first in the window | [2023-07-09, 2023-10-07) |
| `reach_plan_h180` | event | probability that the case reaches 'plan filed' first in the window | [2023-07-09, 2024-01-05) |
| `reach_plan_h365` | event | probability that the case reaches 'plan filed' first in the window | [2023-07-09, 2024-07-08) |
| `reach_ballot_h90` | event | probability that the case reaches 'ballots certified' first in the window | [2023-07-09, 2023-10-07) |
| `reach_ballot_h180` | event | probability that the case reaches 'ballots certified' first in the window | [2023-07-09, 2024-01-05) |
| `reach_ballot_h365` | event | probability that the case reaches 'ballots certified' first in the window | [2023-07-09, 2024-07-08) |
| `reach_consummation_h90` | event | probability that the case reaches 'plan effective' first in the window | [2023-07-09, 2023-10-07) |
| `reach_consummation_h180` | event | probability that the case reaches 'plan effective' first in the window | [2023-07-09, 2024-01-05) |
| `reach_consummation_h365` | event | probability that the case reaches 'plan effective' first in the window | [2023-07-09, 2024-07-08) |

## 7. Decision
A claim on the estate trades at 25¢. Its recovery depends on the path at `path_h365`: confirmed 30¢, converted 2¢, dismissed 10¢, pending 15¢. Answer `bid` if your expected recovery exceeds the price, otherwise `pass`.

## 8. Output
Write exactly this JSON shape to `/logs/artifacts/forecast.json` (create the directory if needed):
```json
{
  "item_id": "te8976ca38689",
  "forecasts": {
    "path_h90": {
      "confirmed": 0.1,
      "converted": 0.1,
      "dismissed": 0.1,
      "pending": 0.7
    },
    "path_h180": {
      "confirmed": 0.1,
      "converted": 0.1,
      "dismissed": 0.1,
      "pending": 0.7
    },
    "path_h365": {
      "confirmed": 0.1,
      "converted": 0.1,
      "dismissed": 0.1,
      "pending": 0.7
    },
    "reach_plan_h90": 0.2,
    "reach_plan_h180": 0.2,
    "reach_plan_h365": 0.2,
    "reach_ballot_h90": 0.2,
    "reach_ballot_h180": 0.2,
    "reach_ballot_h365": 0.2,
    "reach_consummation_h90": 0.2,
    "reach_consummation_h180": 0.2,
    "reach_consummation_h365": 0.2
  },
  "decision": {
    "action": "pass"
  },
  "rationale": "Short reasoning grounded in the visible docket.",
  "citations": [
    {
      "entry": "1",
      "quote": "verbatim text"
    }
  ]
}
```
Every question id must appear. Path answers need all four classes; binary answers are one number in [0, 1].

[The run’s budget is not published.]

## 9. Citations
[The settings of this rule are not published.]

## 10. Scoring
[The settings of this rule are not published.]

