Agency health
Fold one governed agency case stream into a read-only health verdict with grounded intervention findings.
You’re reading version sha-7a6507e6b4ff. Go to the current version
Overview
agency-health reads one standing agency case and returns a sealed, read-only
health bundle. It is for operators who need to know whether a governed agency is
moving, stuck, approaching its charter caps, or producing refusal spikes.
In the manual
Runner
default
Declared by its execution profile. Read the profile
SKILL.md
Agency Health
agency-health reads one standing agency case and returns a sealed, read-only
health bundle. It is for operators who need to know whether a governed agency is
moving, stuck, approaching its charter caps, or producing refusal spikes.
What This Skill Does
- Names the domain-keyed state read:
data-store.read_projectionover the agency case stream. - Names the cross-run aggregate read: ledger evidence by receipt id-stub only.
- Folds the case projection in version order and grades only grounded signals.
- Emits
health_verdictand typedintervention_findings. - Routes findings by name to a downstream lane such as
policy-author,improve-skill, orhuman-ops.
Boundaries
- Read-only. It appends nothing, sends nothing, executes no rail, moves no money, and grants no access.
- Dispatch by naming only. An intervention finding is consumed only when a separate driver or operator issues a governed run.
- No ceilings or effect bounds are emitted because this skill owns no effect.
- Human ops is the escalation lane for critical findings and any remedy that would widen a cap or authority.
Refusals
The skill stops with needs_more_evidence when no readable case events exist.
It refuses to grade a signal that is not grounded in the folded case projection
or in a ledger id-stub aggregate. It does not invent a cap, threshold, or turn
state absent from the charter snapshot, baseline, or sealed event order.
Output
decision: ready | needs_more_evidence | needs_human
health_verdict:
status: healthy | watch | degraded | critical | unknown
findings:
- metric: seal_rate | stuck_case_count | cap_usage_pct | escalation_backlog
value: string
norm: string
assessment: good | warning | critical | info
grounding:
case_id: string
turns: [number]
ledger_id_stubs: [string]
intervention_findings:
- target_lane: policy-author | improve-skill | human-ops
reason: string
grounding_case_id: string
grounding_turns: [number]
ledger_id_stubs: [string]
effect_bound: null
ceiling: null
read_plan:
domain_state_read: data-store.read_projection
ledger_aggregate_read: ledger.read by receipt id-stubFixture Mode
For public harnesses and adoption smoke tests, data_source_ref=fixture://agency
uses deterministic case streams shipped with the package. Hosted operators bind
the same typed inputs to their registry-pinned data-store projection and ledger
read runner.
Published execution profile
The execution profile published with sha-7a6507e6b4ff, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:f76099f20f97cbd2bbbbb2554affba33efb80a0007ef70837905b009edff3728 |
skill: agency-health
version: 0.1.0
catalog:
kind: skill
audience: operator
visibility: public
role: canonical
category: ops
runners:
default:
default: true
inputs:
data_source_ref:
type: string
required: true
description: Logical data-store source for read_projection over the agency case.
store_id:
type: string
required: false
description: Optional hosted or fixture store id.
agency_ref:
type: string
required: true
description: Domain-keyed agency reference.
period:
type: string
required: false
description: Grading window such as 7d.
case_id:
type: string
required: false
description: Optional agency case id.
health_baseline:
type: json
required: false
description: Optional thresholds for threshold_days_stuck, cap_pressure_pct, and refusal_spike_rate.
steps:
- id: default
tool:
command: node
args:
- run.mjs
inputs:
data_source_ref: $input.data_source_ref
store_id: $input.store_id
agency_ref: $input.agency_ref
period: $input.period
case_id: $input.case_id
health_baseline: $input.health_baseline
outputs:
decision:
required: false
health_verdict:
required: false
intervention_findings:
required: false
read_plan:
required: false
evidence_summary:
required: false
harness:
cases:
- name: concerning-agency-sealed
runner: default
inputs:
data_source_ref: fixture://agency
store_id: agency-health-fixtures
agency_ref: agency://growth-retention
period: 7d
case_id: case-retention-2026-07
health_baseline:
threshold_days_stuck: 2
cap_pressure_pct: 80
refusal_spike_rate: 0.2
expect:
status: sealed
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- ops-desk
- run-history
request: Grade the health of this agency case over the last period.
expected_outcome: Return a typed health bundle folded from the case projection and receipt ledger aggregates.
- mode: composed
request: Continue this agency-health work from evidence already gathered upstream.
expected_outcome: Return a typed health bundle folded from the case projection and receipt ledger aggregates.
prior_evidence:
- The case projection and ledger aggregates already read for this period.
must_not_repeat:
- Do not re-read or re-fold the ledger already summarized.
- name: no-case-events-stop
runner: default
inputs:
data_source_ref: fixture://agency
store_id: agency-health-fixtures
agency_ref: agency://empty
period: 7d
case_id: case-empty-2026-07
health_baseline:
threshold_days_stuck: 2
cap_pressure_pct: 80
refusal_spike_rate: 0.2
expect:
status: sealed
receipt:
schema: runx.receipt.v1
- name: missing-agency-ref-stop
runner: default
inputs:
data_source_ref: fixture://agency
expect:
status: failure
Published package and test evidence.
This exact version passed its recorded harness run: 3 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-7a6507e6b4ff |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 3 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:d76512260670cb828be35c2d1c74c5248d7acf7f13f23eab273f9b2f259e02afsha256:f191ad9adaca578c3be97b6556e1c23df4d188a09cc0a9e064e3b9aac68b3fe2sha256:c2ec916e3515839bc06e1c016de686325782c3218c6719d256f5175f2ff583f0Package identity
| Published revision | sha-7a6507e6b4ff |
|---|---|
| Content digest | sha256:7a6507e6b4ff1a3907e83e4d15eb9535043ebde38ff9816f9d20f5be3d31d8af |
| SKILL.md digest | sha256:bf72e90318c57add15ad922370b925f122890ebe3d19ceeefcf3a4dc21b5643b |
| Execution profile digest | sha256:f76099f20f97cbd2bbbbb2554affba33efb80a0007ef70837905b009edff3728 |
| Publisher identity | Unverified publisher · zdfgu113 |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-9ebc9e4ceee5Content digest sha256:9ebc9e4ceee520224cd7e50deeabab014ec448a41fc11b52fcd956a133b954a3sha-7a6507e6b4ffViewingContent digest sha256:7a6507e6b4ff1a3907e83e4d15eb9535043ebde38ff9816f9d20f5be3d31d8afsha-0cf8de882cecContent digest sha256:0cf8de882cec7df46c0f50227e4a05d826e6f490e997e35d824cb08e89c2f98asha-25d4cc3567daContent digest sha256:25d4cc3567da65b28b0b3b834a08186b5137fecd40fa51f54ef93932cede028b