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.
| Surface | What it returns |
|---|---|
stella doctor list | Checks 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/capabilities | Registered capability claims and heartbeat freshness; not measurement results |
GET /api/v1/platform/doctor/aggregate | Results 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:
state.kind: the storage technology or boundary being measured.state.size.bytes: the completed byte measurement.state.size.budget-bytesandstate.size.utilization: present for a valid positive configured budget; utilization is a ratio, so0.800means 80%.healthy,severityandmessage: the check result, including measurement failure.
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 field | Literal data / runtime unverified |
|---|---|
| Observation | 12 |
| Role | Generic owned-state SDK read |
| Method | GET |
| Original target | /doctor/{service}/checks |
| Intended output | doctor-check/v1 envelope:service,contractVersion,checks[]{checkId,category,severity,healthy,message,evidence};503 if runner/context absent |
| Consumer | operator interprets registered service-owned state measurements |
| Classification | source SDK/adopter contract; illustrative service name is not installed identity |
| Request Body | none |
| Authorization | host-supplied policy; ops.health only where that host explicitly binds it |
| Current Owner Path | ServiceDoctorRoute.ChecksPathFor(actual serviceName) |
| Source | src/__Libraries/StellaOps.Doctor.Plugin.Abstractions/ServiceDoctorHosting.cs |
| Execution Boundary | GET invokes RunAllAsync; endpoint registration or200 is not cached health or successful measurement |
| Source-contract field | Literal data / runtime unverified |
|---|---|
| Observation | 13 |
| Role | Scanner owned-state direct-read construction |
| Method | GET |
| Original target | https://stella-ops.local/doctor/scanner-web/checks |
| Intended output | doctor-check/v1 scanner-web envelope and checks[].evidence state fields |
| Consumer | operator checks selected Scanner owned-state measurement |
| Classification | illustrative gateway origin and token environment pointer; no actual request |
| Current Owner Path | ServiceDoctorRoute.ChecksPathFor(scanner-web) under configured origin |
| Request Body | none |
| Original Client Options | --fail-with-body --silent --show-error |
| Header Template | Authorization: Bearer ${STELLAOPS_OPERATOR_TOKEN} |
| Token Pointer | existing operator-approved environment value; never read/echo/commit it in this source task |
| Authorization | normal 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 Fields | state.id,state.kind,state.size.bytes,state.size.budget-bytes,state.size.utilization,healthy,severity,message |
| Budget Boundary | missing budget is unbudgeted, not configured write admission; failed/incomplete measurement is not zero |
| Source | src/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
