Read owned-state checks

stella doctor list lists the local plugin engine’s checks. It does not query service doctor-check/v1 catalogs and does not list OwnedStateSizeBudgetCheck. The plugin engine uses IDoctorCheck; installed services register these storage checks through the separate IServiceDoctorCheck contract.

SurfaceWhat it returns
stella doctor listChecks available to the local plugin engine
Service-scoped SDK read (contract below)Runs that service’s registered checks, including its owned states; not a passive cache read
GET /api/v1/platform/doctor/capabilitiesRegistered capability claims and heartbeat freshness; not measurement results
GET /api/v1/platform/doctor/aggregateResults pulled from registered services, with per-service errors and freshness

The selected Scanner example binds ops.health in its configured-auth mode; source also has an explicit Anonymous-mode branch whose DoctorHealth assertion permits the request without that scope. Verify the installed auth mode rather than claiming a universal protected Scanner read. Platform operational surfaces and other SDK adopters still depend on their actual host-supplied policy. Use the configured gateway or immediate owner origin, approved existing token pointer and normal certificate trust. In the local estate, for an existing token exported as STELLAOPS_OPERATOR_TOKEN:

# The earlier Scanner direct-read construction is preserved as the authenticated contract below.
# Choose the actual installation origin and existing operator token pointer; no read is issued here.

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer ${STELLAOPS_OPERATOR_TOKEN}" \
  https://stella-ops.local/api/v1/platform/doctor/aggregate

For a direct response, verify contractVersion, service and checks. Owned states appear in checks[].evidence["state.id"]. Read these fields together:

A missing budget field means the SDK result is unbudgeted, even when healthy is true. It does not prove that a write-admission budget is configured correctly. The Scanner and OfflineKit write guards separately reject invalid declared budgets. Use the sizing guide and the owner procedures.

The aggregate is limited to registered services. A missing service is not a zero-byte measurement. Inspect each services[] entry’s stale, error and results; HTTP 200 can contain failed pulls. Query the service directly when its registration is absent or stale. The capability catalog records claims, not executed checks. A Console HTML fallback is also not a Doctor result, even if its HTTP status is 200.

Verified against source 025e51b8237399c22a9a9b1974666a0e314ed741: DoctorCommandGroup.ListChecksAsync, DoctorEngine.ListChecks, DoctorCapabilityEndpoints, DoctorAggregateService and OwnedStateSizeBudgetCheck. Repeat the HTTP reads above with the authorized token and confirm the response shape and service identity. The dated acceptance receipt records 401/403/200 controls for all three HTTP surfaces. At that observation, Scanner returned four owned states directly but was absent from the nine-service aggregate catalog; six aggregate pulls failed and one service was stale. Those dated counts demonstrate the coverage limits, not current estate health.

Exact direct-service owned-state records

The owner derives the service-scoped path with ServiceDoctorRoute.ChecksPathFor(serviceName). The host supplies the authorization policy; the SDK does not universally impose ops.health. Its mapped HTTP handler invokes RunAllAsync on demand and returns that execution result, not a passive last-result cache. Resolve the actual immediate owner or configured gateway origin and verify the service/contract envelope before accepting any measured result.

Source-contract fieldLiteral data / runtime unverified
Observation12
RoleGeneric owned-state SDK read
MethodGET
Original target/doctor/{service}/checks
Intended outputdoctor-check/v1 envelope:service,contractVersion,checks[]{checkId,category,severity,healthy,message,evidence};503 if runner/context absent
Consumeroperator interprets registered service-owned state measurements
Classificationsource SDK/adopter contract; illustrative service name is not installed identity
Request Bodynone
Authorizationhost-supplied policy; ops.health only where that host explicitly binds it
Current Owner PathServiceDoctorRoute.ChecksPathFor(actual serviceName)
Sourcesrc/__Libraries/StellaOps.Doctor.Plugin.Abstractions/ServiceDoctorHosting.cs
Execution BoundaryGET invokes RunAllAsync; endpoint registration or200 is not cached health or successful measurement
Source-contract fieldLiteral data / runtime unverified
Observation13
RoleScanner owned-state direct-read construction
MethodGET
Original targethttps://stella-ops.local/doctor/scanner-web/checks
Intended outputdoctor-check/v1 scanner-web envelope and checks[].evidence state fields
Consumeroperator checks selected Scanner owned-state measurement
Classificationillustrative gateway origin and token environment pointer; no actual request
Current Owner PathServiceDoctorRoute.ChecksPathFor(scanner-web) under configured origin
Request Bodynone
Original Client Options--fail-with-body --silent --show-error
Header TemplateAuthorization: Bearer ${STELLAOPS_OPERATOR_TOKEN}
Token Pointerexisting operator-approved environment value; never read/echo/commit it in this source task
Authorizationnormal configured-auth Scanner DoctorHealth maps ops.health; explicit Anonymous-mode branch uses RequireAssertion(true), not a universal protected-token verdict; verify installed auth mode
Owned State Fieldsstate.id,state.kind,state.size.bytes,state.size.budget-bytes,state.size.utilization,healthy,severity,message
Budget Boundarymissing budget is unbudgeted, not configured write admission; failed/incomplete measurement is not zero
Sourcesrc/Scanner/StellaOps.Scanner.WebService/Program.cs and src/__Libraries/StellaOps.Doctor.Plugin.Abstractions/OwnedStateChecks.cs

Current source-contract corrections verified against d6865baa31b34ab3389c35daa01822c77fca9cac; no runtime probe is implied. Credential-free source re-verification from the repository root:

rg -n "ChecksPathFor|MapServiceDoctorEndpoints|RunAllAsync|BudgetConfigurationKey|ProbeChunkedUploadAsync|ProbeCrossRepoMountAsync|ProbeDeleteSupportAsync" src/__Libraries/StellaOps.Doctor.Plugin.Abstractions/ServiceDoctorHosting.cs src/__Libraries/StellaOps.Doctor.Plugin.Abstractions/StandardChecks.cs src/__Libraries/StellaOps.Doctor.Plugins.Integration/Checks/RegistryCapabilityProbeCheck.cs