Task Timeline Log

Short Description

A lightweight, append‑only task log with a clear timeline. It captures intent → action → evidence for each step, so progress, decisions, and handoffs stay auditable and easy to review.

Motivation
• Clarity: Show what was tried, why, and what happened.
• Reproducibility: Commands, links, and artifacts keep work repeatable.
• Decision trace: ADR‑light notes preserve context and trade‑offs.
• Handoff & async: Anyone can pick up from the latest event.
• Metrics: Tie effort to outcomes (latency, error rate, cost, etc.).

⸻

Template (copy below)

---

task_id: <TASK-1234>
title: <Concise task title>
owner: <Name or Agent ID>
created_at: <YYYY-MM-DDThh:mm:ss±hh:mm>
status: <planned|in_progress|done|on_hold|cancelled>
priority: <P0|P1|P2>
repo: <org/repo>
branch: <feature/branch-name>
environments: [<dev>, <staging>, <prod>]
related_issues: [<JIRA-123>, <GH-456>]
links:
spec: <url>
design: <url>
tracking_board: <url>

---

## Scope

- In
- Out (explicitly excluded)

## Success Criteria

- [ ] Measurable outcome 1
- [ ] Measurable outcome 2

## Constraints

- Tech/Time/Compliance limits

## Acceptance Tests (High‑Level)

- Test 1 — expected result
- Test 2 — expected result

## Initial Plan (coarse)

1. Step A
2. Step B

---

## Timeline (append‑only, JSON Lines)

```jsonl
{"id":"EVT-0001","ts":"<ISO8601>","actor":"agent|human","phase":"discovery|impl|review|release","intent":"<why this step>","action":{"type":"command|edit|read|decision|note|benchmark|test|meeting","detail":"<what exactly>","cwd":"<path>","cmd":"<shell or api call if any>","stdout_sha256":"<optional>","artifacts":["<url-or-id>"]},"result":{"status":"success|fail|blocked|partial","evidence":"<logs/observations/refs>","metrics":{"<k>":<v>},"tickets":["<JIRA/GH>"],"links":["<PR/build/trace>"]},"decision":{"adr_id":null,"context":null,"options":null,"choice":null,"consequences":null},"next":["<immediate next steps>"],"blockers":[],"tags":["#perf","#bug"],"duration_min":25,"parent_id":null}

Notes: Events are immutable. To correct, add a new event and reference the prior via parent_id or supersedes.

⸻

Decision Records (ADR‑light)

ADR-0001 —
	•	Context:
	•	Options considered: <A, B, C>
	•	Choice: <selected option + reason>
	•	Consequences/Risks: <follow-ups, trade-offs>
	•	Links: <PRs, docs, benchmarks>
	•	Status: <proposed|accepted|deprecated>

⸻

Risks & Mitigations
	•	R-01:  → Mitigation:  → Owner:

Blockers
	•	B-01: <what/why> — Owner:  — ETA:

Daily/Session Summaries

 — Summary
	•	Outcome:
	•	Evidence: <links/metrics>
	•	Debt/TODO:
	•	Next Focus (one thing): <what’s first next>

⸻

Artifacts Index
	•	PRs:
	•	Builds: <ids/links>
	•	Dashboards/Traces:

Postmortem (on completion)
	•	What worked: …
	•	What didn’t: …
	•	Time spent: <hh:mm total> (agent/human split)
	•	Delta to plan: <scope/time/quality>
	•	Keep/Change for next time: …

```
