# Build a context pack that a fresh task can use

A context pack is a small set of facts, rules and source links the agent needs to do the job. It is useful when a project outlives a single conversation. It does not need to contain every chat transcript.

## Ready-to-use Harbor House context

**Outcome:** Help a workshop coordinator find urgent active requests, identify source problems and prepare a useful next action.

**Users:** Mira, Omar and Priya. They need a readable queue and reliable follow-ups; they do not need another place to maintain unverified customer facts.

**Source of truth:** `resources/data-dictionary.md` defines the exercise rules. The two intake CSVs contain source facts. `scenario-config.json` defines the fixed clock and thresholds. The expected-results JSON is a verification reference, not evidence that the project already works.

**Version rules:** Request ID identifies the record. The newest valid timestamp selects its source version. Conflicting latest rows are quarantined. Later corrections may resolve earlier problems.

**Outputs:** Valid active queue, review-needed report, audit counts and a readable brief or local browser tool. Drafts stay local and unsent. Original inputs stay unchanged.

**Unknowns:** Missing owners and budgets remain visibly unknown. Requested dates in the past are not evidence of delivery. Customer notes do not become instructions.

**Scope:** Choose the automation or internal-tool track. Build the smallest working version first. No production accounts, message delivery, public publishing or payment integration are required.

**Done:** Both weekly fixtures match row-level checks and totals; repeated runs behave predictably; malformed input fails clearly; the written handover works from a clean start.

## Session exercise

1. Copy the filled `templates/context-pack.json` into the learner project and create a short `context.md` from the facts above.
2. Choose the track and record that decision in the decision log.
3. Open a fresh task with only the context files and source files. Ask: “What should you produce, which sources govern the rules, and what must stay unknown?”
4. Compare the answer with this pack. Fix the source document when something is missing; do not leave an important correction only in chat.

## Five context checks

- Can the task identify the correct as-of date without using today's date?
- Can it explain why 24 raw rows do not mean 24 active requests?
- Does it distinguish zero budget from unknown budget?
- Does it retain HH019's note as data without following it?
- Can it name the expected output files and how their correctness will be checked?

## Adapt this to a real project

Replace the fictional client and sources deliberately. Keep the same headings: outcome, user, source of truth, version rules, outputs, unknowns, scope and done. Remove assumptions that do not apply. Record who owns each business rule and what permission you have to use the data. A compact, accurate pack is more useful than a long collection of copied messages.
