Optimizing and releasing a prompt program 00:00:01 Twenty prompts audition for one job Lin lays out twenty candidate prompts on a ticket bench. By the end of the morning one has the highest score. Then a new customer sends the kind of undated form nobody on the bench has seen. The winner confidently fills in a date. A prompt program can contain multiple model calls, retrieval and typed intermediate values. Specify the task signature, build representative examples and select a metric. An optimizer can search instructions or demonstrations using the development signal. Each new candidate is a hypothesis about behavior. repeated selection against one set can overfit its wording or label distribution. Keep the extraction contract, the examples used for selection, and the untouched customer set in separate trays. A change that was tuned against one tray earns its next score on another. 00:00:54 Hold the date task still Define what counts as correct for both dated and undated documents before optimizing. Score training or development fixtures only. Record selected demonstrations and prompt revision. Inspect how often the winning prompt invents dates on unseen documents and compare it with the baseline. 00:01:13 Keep one customer unseen A declarative signature specifies inputs and outputs. A compiler may choose demonstrations or instructions that improve a supplied metric. A narrow metric can encourage filling every field even when evidence is absent. If the metric scores only correctly populated dates, a prompt that guesses dates on undated invoices may look artificially strong. Trying many variants increases the chance that one benefits from noise in the development set. Reserve untouched examples, track unsuccessful trials and report paired changes and rare slices. Twenty variants were selected using one merchant’s tickets. Hold out another merchant before claiming transfer. Pin the chosen program, demonstrations, model and runtime settings. Run shadow or canary comparisons where appropriate. The version presented to a learner or customer should be recoverable from its trace. A library upgrade reformats demonstrations. Keep that dependency on the manifest so an apparent model regression can be reproduced. Keep optimizer examples, tuning decisions and the final evaluation separate. Split related records by customer or time when similar examples would leak. Compare with a simple baseline under fixed model, retrieval and sampling settings. Version the entire program and examples so the next regression can be attributed to a change. 00:02:41 When the winning prompt invents a date Should holdout failures become immediate tuning examples while retaining the same holdout score claim? Once examples guide selection they no longer support the same independent estimate. Once the team studies a holdout failure and uses it to revise the prompt, it has learned from that case. Preserve the failure as a regression test and collect fresh independent evidence for the release.