internal

Set Requirements State

Changed on

Enable, switch off, or remove several requirements at once.

Removal is archival. ARCHIVED keeps the requirement and every version of it readable, which is the whole point on regulated compliance material — there is no hard delete here and adding one would break the audit trail the library exists to keep.

Every requested id gets an outcome row whether it changed or not, and one requirement's refusal never fails the batch. The three refusals are the single-requirement route's own rules, applied per item rather than restated: a removed requirement can only be put back (writing a lesser state over an archive silently downgrades a human decision), a state change that changes nothing is refused rather than recorded (it would invent history), and an id outside this company is simply not found.

Each requirement gets its own savepoint, so an unexpected failure on one leaves its siblings applied — the start_decompositions shape, for the same reason.

post/internal/evals/rollout-consistency/sweeps/{sweep_id}/requirements/state

Request

  • Base URL
    https://api.kobaltlabs.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.kobaltlabs.com/internal/evals/rollout-consistency/sweeps/{sweep_id}/requirements/state
  • Auth
    none declared

Path parameters

sweep_idstring uuid required

Request body

requirement_idsstring[] required
state'active' | 'disabled' | 'archived' | 'superseded' | 'proposed' required

Whether a requirement is in the working library, and if not, why not.

All of them are recorded as revisions, so every one is reversible and readable.

ARCHIVED and SUPERSEDED are deliberately distinct: ARCHIVED is a person deciding this obligation does not apply to them, SUPERSEDED is a newer decomposition of the same guideline taking over. A regeneration must never overwrite the first with the second — that would erase a human decision.

change_notestring nullable

Response

Successful Response

appliedinteger required
skippedinteger required

Changes

    • warning

      added the new proposed enum value to the /// response property for the response status

    • info

      added the new proposed enum value to the request property