# Experiment findings

Copy this into each experiment's results directory as `findings.md` and
fill in. Keep answers terse — the raw data in the JSONL files is the
record of truth; this is the summary.

## Experiment N: <name>

**Run date/time (UTC):** `YYYY-MM-DDTHH:MM:SSZ`

**Setup confirmed:**
- [ ] Service at desired_count = ? (expected: 3)
- [ ] Steady state confirmed before trigger (single PRIMARY deployment)
- [ ] Worker cycling verified via `aws logs tail`
- [ ] tail_state.sh running
- [ ] tail_logs.sh running

**Trigger:**
- Command: `./scripts/<command>`
- Trigger time (UTC): `YYYY-MM-DDTHH:MM:SSZ`

**Convergence (service-state.jsonl):**
- Time from trigger until `deployments[]` length dropped to 1: `_____`
- Final `runningCount == desiredCount`: Y/N
- Time to steady state: `_____`

**Old-revision task fate (task-state.jsonl):**
- Count of old-rev tasks at trigger: `_____`
- How they stopped (stopCode + stoppedReason): `_____`
- Time from trigger to last old-rev task STOPPED: `_____`

**DEPLOYMENT_BLOCKED observations (worker-logs.jsonl):**
- Any `enable_failed` with `reason=DEPLOYMENT_BLOCKED`? Y/N
- From which revision? (old / new / both): `_____`
- When (relative to trigger): `_____`

**SIGTERM observations:**
- Any `sigterm_received` events? Y/N
- From which revision? (old / new / both): `_____`
- Time between `disable_success` and `sigterm_received` on the same task: `_____`

**Surprises / notes:**
- `_____`

**Verdict:**
- [ ] Expected outcome observed
- [ ] Partial — some expected, some not. Details: `_____`
- [ ] Unexpected outcome. Next investigation: `_____`

## Decision implications for CDAM-3806

(Only fill after all 4 experiments are done.)

**Version polling:**
- [ ] Load-bearing (experiment 1 stalled without it)
- [ ] Optional defence (experiment 1 converged cleanly)
- [ ] Verdict unclear, further investigation needed: `_____`

**DEPLOYMENT_BLOCKED handling:**
- [ ] Fires reliably on scale-in (experiment 3 confirmed)
- [ ] Doesn't fire / unreliable — fallback needed: `_____`

**Changes to apply to lambda-assets#618 / terraform-infra PRs:**
- `_____`

## Raw data

- `service-state.jsonl` — `_____` entries
- `service-events.jsonl` — `_____` entries
- `task-state.jsonl` — `_____` entries
- `worker-logs.jsonl` — `_____` entries

## Teardown confirmation

- [ ] desired_count set back to 0 (or 3 for inter-experiment transitions)
- [ ] Results archived to `~/research/ecs-task-protection/` or deleted
