internal

Start Preparation

Decompose the guidelines this collateral needs and that nothing has decomposed yet.

Delegates to the customer route's own handler rather than restating it: that function owns a savepoint per guideline, stale-run reaping, the "a newer version is still processing" refusal, the per-request batch cap and the dispatch-failure rollback — none of which is worth a second implementation, and all of which a second one would drift from. backend/api/internal/runs.py reuses backend/api/runs.py the same way.

A guideline with a standing library is never touched. Keyed on the library a run would gather from, not on the newest attempt: a decomposition supersedes every requirement it replaces, so re-running one over a library a compliance reviewer has edited retires their work. A failed retry above a good library is therefore left alone — the library is what the comparison reads, and the retry's failure costs the run nothing.

file_ids narrows it further, because a company's standards are not all worth decomposing: a 70-page deposit account agreement filed as a marketing standard will yield contract clauses as marketing requirements, and the operator can see the filenames before spending a pass on each.

post/internal/evals/requirement-applicability/preparation

Request body

company_idstring uuid required
file_idstring uuid required
file_idsstring[] nullable

Response

Successful Response

company_idstring uuid required
file_idstring uuid required
collateral_filenamestring nullable required
preset_idsstring[] required
unresolved_preset_idsstring[] required
readyinteger required
in_flightinteger required
failedinteger required
never_runinteger required
skippedobject[]

Changes

No recorded changes to this endpoint across all 1 revision of this API.