Cursor: assess environment health and freshness
cursor_assess_environment_healthAssesses environment health by comparing supplied build, source, and toolchain data against a known-good baseline, and returns a scheduler exit code that signals drift or staleness.
Instructions
Judge Build health, source drift, and toolchain drift from readback you hold. Launches nothing and returns a scheduler exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOfMs | No | Instant to age the newest successful Build against. Defaults to now. | |
| builds | No | Build rows from cursor_list_builds, newest first. | |
| baseline | No | Source anchors you recorded when the environment was last known good. | |
| observed | No | The same anchors as they read now. | |
| toolchain | No | ||
| buildsConclusive | No | True only when the last page you read reported hasMore: false. Otherwise an absent row may just be unpaged. | |
| environmentJsonPath | No | Exactly as read from environment-info: null is database-managed, a path is repository-file managed. | |
| environmentPublicId | Yes | environmentPublicId declared out of band before the call. An id a run reported about itself is not a substitute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build | No | ||
| state | No | ||
| reason | No | ||
| source | No | ||
| status | Yes | ||
| refresh | No | ||
| evidence | No | ||
| exitCode | No | ||
| nextSteps | No | ||
| toolchain | No | ||
| activeBuild | No | ||
| environmentPublicId | No |