# Reusable recipe: Harbor House intake review

This is a learner workflow specification. In Session 6, use it to create and inspect a reusable skill through the app. It is not an installed skill and does not grant access to any account.

## When to use it

Use this recipe when asked to refresh the synthetic Harbor House intake queue, audit or weekly brief from supplied CSV files. Do not apply its business rules to unrelated client data without a new agreement.

## Inputs

The project brief, data dictionary, scenario configuration, chosen input CSVs and explicit as-of date. An existing output directory may contain a previous good run; preserve it until the new run is validated.

## The process

1. Confirm the input files exist and contain the expected columns. Report a missing file or invalid schema before writing final outputs.
2. Select current source versions by request ID and timestamp. Quarantine conflicting latest rows. Validate the winning versions.
3. Separate active, inactive and quarantined records. Apply the configured priority and reason flags.
4. Write candidate queue, review-needed and audit outputs in a temporary run directory.
5. Check the candidate's IDs, totals and row-level examples against the selected fixture oracle. For a future real dataset without an oracle, use the agreed business checks instead.
6. Promote the successful candidate to the reviewed output location without erasing the input. Record the run and what changed.
7. Prepare a short coordinator brief and local unsent drafts from the validated data. Keep unknown values visible and cite IDs.
8. Return exact output paths, verification results, unresolved source issues and the state of any scheduled test.

## Failure behavior

A bad input must produce an understandable error and preserve the last good output. A validation mismatch must remain visible; do not “fix” the reference values to make the run pass. A missing source or inaccessible tool is a limitation to report, not a reason to invent facts.

## Output contract

The queue has one row per valid active ID. The audit accounts for raw rows, distinct IDs, valid current rows, quarantine and inactive IDs. The brief's counts agree with the audit. Draft messages are labelled unsent. Run metadata may differ between repeated runs, but identical inputs should not create duplicate business output.

## Example invocation

“Use the Harbor House intake-review recipe on Week 1 with an as-of date of 2026-10-05. Produce the queue, source-review list and brief, verify them, and show me the output paths. Keep all messages as local drafts.”

## Review the generated skill

Check its trigger, source paths, output contract and failure behavior. Remove assumptions about unavailable connectors. Test it in a fresh task. If it repeatedly needs the same correction, improve the recipe or skill instructions rather than adding another one-off prompt.
