Skip to content

Concept Graceful Degradation

Reese Hodge edited this page Nov 19, 2026 · 2 revisions

Graceful Degradation

Graceful degradation is constitution principle P8. Max Height must remain presentable when a browser, permission, or cloud capability is missing.

The constitution defines three required fallback axes:

  • No WebGL must fall back to a 2D avatar.
  • No microphone or permission denied must surface text input as the fallback. Voice remains the primary UX; text is an escape hatch, not a co-equal interface.
  • Cloud unavailable must show a friendly, in-character error state. The app must never degrade to a white screen or silent failure.

The degradation quality gate requires each fallback axis to be tested before the feature it covers ships.

For code, this means capability checks are part of the feature, not cleanup work:

  • Rendering code must have a non-WebGL path.
  • Speech-input code must handle missing permissions and missing devices.
  • Network and agent failures must become visible state the user can understand.
  • Error states should preserve the character experience where possible.
  • Tests should cover the fallback path, not only the happy path.

This principle does not permit unapproved local AI fallbacks. If the cloud is unavailable, the answer is an in-character unavailable state, not browser-side inference. That boundary is owned by Concept-Cloud-Only-Inference.

Tool-result integrity

A tool can return a successful response with missing or corrupted data. That is not the same as a cloud outage: the agent may still answer confidently from invalid results or from training data. For tool-dependent behavior, test both failed calls and success-shaped but invalid results, and make the safe response visible to the user. A failure-handling prompt can help, but it is not proof of safe behavior. Source-AWS-AgentCore-Resilience-Testing describes these scenarios; it does not establish that Max Height currently handles every one.

Graceful degradation also supports Concept-IP-And-Legal-Posture because the app is meant for a small trusted audience across ordinary devices, not for a narrow demo machine.

Testing expectations

Do not test only the default happy path. For any feature that depends on a browser or cloud capability, include a way to prove the fallback works:

  • Force or mock missing WebGL before asserting the 2D avatar path.
  • Deny or omit microphone access before asserting text input appears.
  • Simulate cloud failure before asserting the in-character error state.
  • Verify the fallback is visible and recoverable where recovery is possible.
  • Verify the fallback does not introduce a forbidden local inference path.

The fallback should be simple, but it must be real. A hidden console error, blank region, disabled button with no explanation, or endless spinner is not graceful degradation.

When a fallback needs telemetry, wire it through Concept-Observability so future failures are diagnosable.

See also: Source-Constitution, Concept-Testing-And-TDD.

Clone this wiki locally