promptdojo_

Feature pipeline contracts — step 6 of 7

Write apply_contract(record, contract). The contract is a list of {"name", "default"} dicts. Return a dict mapping each contract feature to the record's value, or the contract's default when the feature is missing — keeping contract order.

full-screen editor opens — close anytime to keep reading.