Registry stack documentation: machine-readable Markdown.
Index of all pages: https://docs.registrystack.org/dev/llms.txt
Full corpus: https://docs.registrystack.org/dev/llms-full.txt

# Posture diagnostic codes

> Look up a development-only configuration diagnostic by code and find the change to make for production.

import PostureDiagnosticsTable from '../../../components/PostureDiagnosticsTable.astro';

A posture diagnostic reports a configuration setting that is safe only on a workstation or in a
test. Its code has the form `<owner>.posture.<setting>`, and it names the JSON pointer of the
setting. In production, `check` and startup report it as an error and the process refuses to
start. In development, the same code is a warning: `--deny-warnings` does not fail on it, and the
process lists it in its startup log and in the `developmentSettings` member of `/ready`.

To fix a production error, find the code below and apply its production remedy. On a laptop or in
a test run, declare development instead: start the project with `rstack dev`, or set
`REGISTRY_STACK_POSTURE=development` or pass `--posture development`. Most remedies change the
runtime file. Some change something the runtime reads, such as the package, the discovery index
or the identity provider's discovery document, and the remedy says so.

This page covers the posture codes the Registry Stack products in this release declare. See
[Deployment posture](../../operate/deployment-posture/) for how a process chooses its posture.

{/* Evidence: crates/registry-platform-config/src/posture.rs, PostureReport::diagnostics, PostureReport::ready_member, DevelopmentSetting, ExplicitProductionSetting; docs/site/scripts/generate-posture-diagnostics.mjs. */}

## Development-only settings

Production refuses each of these. The Setting column names the configuration member that holds
the value; match it against the pointer in the diagnostic when a code appears twice. Where names
the component that reports the code.

<PostureDiagnosticsTable except={['registry-documents']} />

`breg.posture.review-http-authorization-endpoint` is detected only at startup, after the review
page reads the issuer's discovery document, so `check` cannot report it.



<PostureDiagnosticsTable only={['registry-documents']} />



## Explicit production settings

These codes report a setting that production accepts because you chose it explicitly. No action
is needed. Startup logs each one, and `check --format json` lists it under
`explicitProductionSettings`. See
[Explicit production settings](../../operate/deployment-posture/#explicit-production-settings).
`platform.posture.unrestricted-clients` is one of these, and is different from
`casework.posture.unrestricted-clients` above, which production refuses.

<PostureDiagnosticsTable kind="explicit" />

## Other posture refusals

These codes are refusals about the posture itself rather than a development-only setting.

| Code | Meaning | Remedy |
|---|---|---|
| `platform.posture.invalid-value` | The declared posture is empty, unknown or differently cased. It must be exactly `production` or `development`. | Declare a valid posture. See [Production is the default](../../operate/deployment-posture/#production-is-the-default). |
| `platform.posture.conflict` | `--posture` (or a tool's `--production` alias) and `REGISTRY_STACK_POSTURE` declare different postures, or `--posture` is given more than once. | Declare the posture once, or make both inputs agree. See [Production is the default](../../operate/deployment-posture/#production-is-the-default). |
| `evidence.posture.assurance-profile-conflict` | A development process was given an Evidence package built for production assurance. | Build the package with `assuranceProfile: local` for development, or run the package in production. |
| `render.posture.assurance-profile-conflict` | A development Render process is configured with `assuranceProfile: production`. | Write `assuranceProfile: local` and use a local key file, or start the deployment as production. See [Render configuration](../render-configuration/). |
| `render.posture.test-signing` | `registry-render test-seal` ran without declaring development. | Declare development for the test seal. See [Use a test seal in development](../../operate/registry-render/#use-a-test-seal-in-development). |