Library / Contract schema
Typed work result with six outcomes
work_result_type
Give every bounded unit of agent work exactly one typed outcome: completed with evidence, no change needed, needs input, needs scope expansion, unsupported, or budget exhausted with a checkpoint. Validate results against the schema and the rules a schema cannot state.
ATTRIBUTION.md4.3 KBLICENSE1.0 KBREADME.md3.7 KBatom_cli.py3.0 KBcomponent.json9.9 KBnumerics.py28.0 KBschema.json5.1 KBschema_lite.py8.9 KBtest_package.py12.0 KBtest_work_result_type.py5.1 KBwork_result_type.py11.1 KB
Full files in your harness.
What it takes and gives
- Runs with
- Python 3.10 or later
- Entry points
- validate_work_result, classify_work_result, make_work_result
- Known answers
- 9 cases its tests reproduce
Cases it covers
- completion needs evidence: A lenient check that only reads the outcome name would accept a completion claim with nothing behind it.
Limits and scope
- Limits
- Checks shape and internal consistency only: it does not fetch references, rerun tests or judge whether evidence supports the claim. Six outcomes are fixed by the schema; a new outcome needs a new record type. Text fields are limited to 2000 characters and field names to lower-case identifiers.
- Guarantees
- A valid result matches exactly one of the six shapes; fields belonging to another outcome are refused. A completed result cites at least one piece of evidence whose reference is not the artifact itself. needs_input field names are unique; budget_exhausted obligations are unique; a scope expansion does not add and remove the same item.
- Assumes
- References (file, commit, record, message, address) point at things the caller can fetch again. The validator checks shape and internal consistency; it does not open references or rerun evidence.
Details
- Kind
- Contract schema
- Licence
- MIT
- Declared effects
- runs commands
- Source
- github.com/alisonjieli-png/loop-engine/tools/creative_originals/evaluation_atoms/items/work_result_type
- Size
- 11 files, 92.2 KB
- Identity
library.supply.creative_originals.7cdb64948768161f7ca878a2.8b2840730438214d- Version
8b2840730438214d6a7c1fe20ee92a5e45fa7862a0baac08d1dfe1aef0246be0
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Checks for agent workDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.