Code Block

A monospace surface for spec snippets — signed envelopes, typed rules, CLI transcripts. Renders on the dark terminal ground by default, with an optional filename / language header, optional line numbers, and a copy-to-clipboard button that confirms with a check (or a close icon on failure). JSON gets a lightweight, token-tinted highlight — keys and the signal in var(--accent), strings and numbers derived from it — not a full syntax highlighter. Whitespace is preserved and the body scrolls on overflow.

Signed envelope — header + line numbers

The two-layer signed envelope from the OCSS Trust Framework: the outer layer asserts who is speaking; the rule rides inside as a typed payload.

signed-envelope.jsonjson
{
  "envelope": {
    "iss": "did:web:phosra.com",
    "tier": 3,
    "rule": {
      "category": "ai_chatbot_tier_gate",
      "severity": "MUST",
      "jurisdiction": "US-CA",
      "minAge": 13,
      "blockUnsigned": true
    },
    "sig": "z3Mqp…7Kd",
    "exp": 1788268800
  }
}

A typed OCSS rule — header only

rule.jsoncjson
// a typed OCSS rule
"rule": {
  "category": "ai_no_simulated_companionship",
  "severity": "MUST-NEVER",
  "platforms": ["chatbot", "voice"]
}

Bare — no header, copy floats

With no filename or language, the copy button floats over the top-right of the body.

json
// a typed OCSS rule
"rule": {
  "category": "ai_no_simulated_companionship",
  "severity": "MUST-NEVER",
  "platforms": ["chatbot", "voice"]
}

Sunk surface — for inline doc use

surface="sunk" uses the recessed page surface instead of the terminal ground; adapts to light and dark automatically.

envelope.jsonjson
{
  "envelope": {
    "iss": "did:web:phosra.com",
    "tier": 3,
    "rule": {
      "category": "ai_chatbot_tier_gate",
      "severity": "MUST",
      "jurisdiction": "US-CA",
      "minAge": 13,
      "blockUnsigned": true
    },
    "sig": "z3Mqp…7Kd",
    "exp": 1788268800
  }
}

Plain text — CLI transcript

A non-JSON language (or none) renders verbatim with no token tinting.

verify.logtext
$ ocss verify envelope.json --trust-list eidas
✓ outer signature valid (tier 3 accredited)
✓ rule conforms to US-CA profile
→ enforce: ai_chatbot_tier_gate = MUST