# CP1 - Assessment Intake Agent Checks the Discovery package in code before Assessment starts (ADR 0008). Step `s0` of the workflow "CP1 - Agentic Landing Zone - Assessment", after the parse step and before the planner. It answers from code (`app/intake.py`, called by the `pre_process` hook): no model, no tools. ## What it checks | Check | Refused when | |---|---| | One package | The selected artifacts hold no Discovery package, or more than one | | Version | `package_version` isn't one it reads (`1.0`) | | Integrity | A part the manifest lists is missing, or its `sha256` over the part's canonical JSON doesn't match | | Completeness | The manifest isn't `complete` | | Quality | The Discovery critic's verdict isn't `pass` | | Provenance | The manifest's execution id isn't the run's `discovery_execution_id`, or its engagement isn't `engagement_id` | A refusal fails the step with every reason, so the run stops before any Assessment agent reads Discovery. The package is found at any depth in each parsed document, because KAB may wrap a step's output or hold it as a JSON string. ## What it returns `verified`, the package version, the Discovery execution and run ids, the critic's verdict, the provider, the parts checked and those absent, the source gaps, the agent versions, Discovery's `applications` and `ungrouped_assets` (F01 ADR 0021), the scorecard (F01 ADR 0020) and a one-line note. Tests: `python3 -m pytest tests/` (no runtime needed), on the live package of Discovery run `exec_14956d524a8b`.