Handbook
Workflow — task authoring
bash python3 scripts/audit_contract_docs.py --strict pytest -q
Updated
- Find a similar task in
src/forge_lcdl/contracts/and the matching runner undersrc/forge_lcdl/tasks/. - Draft
contract.md— inputs, outputs, examples, failure modes (see ContractSpec). - Generate / edit
contract.json— runpython3 scripts/generate_contract_sidecars.pywhen appropriate. - Implement or wire the Python runner; register in the catalog for
v1if applicable. - Add tests — unit tests with fake
chatwhere possible. - Run gates:
bash
python3 scripts/audit_contract_docs.py --strict
pytest -q
- Update Task catalog or consumer notes if the task is public catalog.
Prompt snippet (for agents)
Implement or extend governed task <task_id> v1 following existing pw_chunk_classify patterns; keep schemas in contract.json; do not weaken responsible-use constraints.