> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.navalabs.ai/api/mcp` to find what you need.

<div className="diagram-demo">
  <header className="diagram-demo__intro">
    <p className="diagram-demo__eyebrow"><span aria-hidden="true" />Visual direction</p>
    <h1>Diagram system comparison</h1>
    <p>Every current docs diagram shown with its Mermaid default and a proposed Nava-native diagram system.</p>
  </header>

  <div className="diagram-comparison">
    <section className="diagram-comparison__panel diagram-comparison__panel--old" aria-label="Current Mermaid diagram">
      <header className="diagram-comparison__header">
        <div>
          <p>Current</p>
          <h2>Default Mermaid output</h2>
        </div>

        <span>Before</span>
      </header>

      <div className="diagram-comparison__old-frame">
        ```mermaid
        flowchart LR
          A[Builder creates structured action] --> B[MCP tool or TypeScript SDK]
          B --> C[Nava Guardian evaluates active policy]
          C --> D[GET approval-status]
          D -->|approved| E[Builder may submit to venue]
          D -->|pending, rejected, or unavailable| F[Builder pauses action]
        ```
      </div>

      <footer className="diagram-comparison__diagnosis" aria-label="Current diagram issues">
        <span>Default theme</span>
        <span>Ownership implicit</span>
        <span>Labels shrink to fit</span>
      </footer>
    </section>

    <section className="diagram-comparison__panel diagram-comparison__panel--new" aria-label="Branded Nava diagram">
Diagram: the Guardian integration boundary.

1. Your integration constructs the exact action. Signing and venue submission stay local; Nava never receives signing keys.
2. Your integration requests a policy verdict through MCP or the SDK.
3. Nava Guardian resolves the policy and runs deterministic checks.
4. Nava Guardian returns a versioned decision: `pending`, `approved`, or `rejected`.
5. Your integration acts on the exact verdict: submit to the venue only when approved; otherwise keep the action paused.
    </section>
  </div>

  <section className="diagram-demo__case" aria-labelledby="system-architecture-title">
    <header className="diagram-demo__case-intro">
      <p className="diagram-demo__eyebrow">Architecture map</p>
      <h2 id="system-architecture-title">System architecture</h2>
      <p>Make ownership and the internal policy loop visible before showing implementation detail.</p>
    </header>

    <div className="diagram-comparison">
      <section className="diagram-comparison__panel diagram-comparison__panel--old" aria-label="Current system architecture">
        <header className="diagram-comparison__header">
          <div><p>Current</p><h3>Default Mermaid output</h3></div>
          <span>Before</span>
        </header>

        <div className="diagram-comparison__old-frame">
          ```mermaid
          flowchart LR
              subgraph User Layer
                  U[User / dApp]
              end
              subgraph Builder Layer
                  EA[Agent / integrating builder]
              end
              subgraph Verification Layer
                  NS[Nava Service - Developer Preview]
                  G[Nava Guardian - Developer Preview]
                  P[Active per-agent policy]
                  DB[(Verdict metadata database)]
              end
              subgraph External Venue
                  V[Supported protocol]
              end
              U -->|instruction| EA
              EA -->|structured proposed action| NS
              NS --> G
              G -->|resolve| P
              G -->|store| DB
              G -->|pending / approved / rejected| NS
              NS -->|verdict| EA
              EA -->|submit only after approval| V
          ```
        </div>

        <footer className="diagram-comparison__diagnosis" aria-label="Current system architecture issues">
          <span>Four anonymous subgraphs</span><span>Policy loop is buried</span><span>Ownership is subtle</span>
        </footer>
      </section>

      <section className="diagram-comparison__panel diagram-comparison__panel--new" aria-label="Branded system architecture">
Diagram: layered system architecture.

- User layer: the user or dApp provides the instruction.
- Builder layer: the agent or integrating builder builds, signs, and submits the exact action.
- Verification layer: Nava Service routes the request and returns the verdict; Nava Guardian resolves the active policy, evaluates checks, and records verdict metadata.
- External venue: on the approved path only, the supported protocol receives the signed action from the builder.
      </section>
    </div>
  </section>

  <section className="diagram-demo__case" aria-labelledby="transaction-lifecycle-title">
    <header className="diagram-demo__case-intro">
      <p className="diagram-demo__eyebrow">Sequence</p>
      <h2 id="transaction-lifecycle-title">Transaction lifecycle</h2>
      <p>Preserve the order of operations while separating the decision from the execution handoff.</p>
    </header>

    <div className="diagram-comparison">
      <section className="diagram-comparison__panel diagram-comparison__panel--old" aria-label="Current transaction lifecycle">
        <header className="diagram-comparison__header">
          <div><p>Current</p><h3>Default Mermaid output</h3></div>
          <span>Before</span>
        </header>

        <div className="diagram-comparison__old-frame">
          ```mermaid
          sequenceDiagram
              participant User
              participant Builder as Agent / builder
              participant Service as Nava Service
              participant Guardian as Nava Guardian
              participant Store as Verdict metadata database
              participant Venue
              User->>Builder: Instruct agent
              Builder->>Builder: Build structured action
              Builder->>Service: Submit proposed action
              Service->>Guardian: Request policy verdict
              Guardian->>Guardian: Decode action and evaluate deterministic checks
              Guardian->>Store: Store verdict metadata
              Guardian-->>Service: pending / approved / rejected
              Service-->>Builder: Return verdict
              alt Approved
                  Builder->>Venue: Sign and submit approved action
              else Pending or rejected
                  Builder->>Builder: Keep action paused
              end
          ```
        </div>

        <footer className="diagram-comparison__diagnosis" aria-label="Current transaction lifecycle issues">
          <span>Six dense columns</span><span>Labels shrink to fit</span><span>Outcome branch is buried</span>
        </footer>
      </section>

      <section className="diagram-comparison__panel diagram-comparison__panel--new" aria-label="Branded transaction lifecycle">
Diagram: transaction lifecycle.

1. The user instructs the agent.
2. The builder builds the structured action.
3. The builder submits the proposed action to Nava Service.
4. Nava Service requests a policy verdict from Nava Guardian.
5. Nava Guardian evaluates checks and records evidence in the verdict store.
6. Nava Guardian returns a versioned verdict to the builder.
7. When approved, the builder signs and submits the exact action to the venue. When pending or rejected, the action stays paused.
      </section>
    </div>
  </section>

  <section className="diagram-demo__case" aria-labelledby="verdict-lifecycle-title">
    <header className="diagram-demo__case-intro">
      <p className="diagram-demo__eyebrow">State flow</p>
      <h2 id="verdict-lifecycle-title">Compact verdict lifecycle</h2>
      <p>Keep processing stages calm and reserve semantic color for the terminal decision.</p>
    </header>

    <div className="diagram-comparison">
      <section className="diagram-comparison__panel diagram-comparison__panel--old" aria-label="Current verdict lifecycle">
        <header className="diagram-comparison__header">
          <div><p>Current</p><h3>Default Mermaid output</h3></div>
          <span>Before</span>
        </header>

        <div className="diagram-comparison__old-frame">
          ```mermaid
          flowchart LR
            A[Submit proposed action] --> B[Resolve active per-agent policy]
            B --> C[Evaluate deterministic checks]
            C --> D[pending verdict]
            D --> E[approved or rejected]
          ```
        </div>

        <footer className="diagram-comparison__diagnosis" aria-label="Current verdict lifecycle issues">
          <span>Status semantics absent</span><span>Evidence is invisible</span><span>Outcomes are merged</span>
        </footer>
      </section>

      <section className="diagram-comparison__panel diagram-comparison__panel--new" aria-label="Branded verdict lifecycle">
Diagram: verdict lifecycle. A proposed action resolves the active policy, runs deterministic checks, and starts as a `pending` verdict. At the decision boundary it becomes `approved` (the exact action may continue) or `rejected` (execution stays blocked). Both carry reason codes and evidence.
      </section>
    </div>
  </section>

  <section className="diagram-demo__case" aria-labelledby="payment-lifecycle-title">
    <header className="diagram-demo__case-intro">
      <p className="diagram-demo__eyebrow">Payment sequence</p>
      <h2 id="payment-lifecycle-title">Gateway payment lifecycle</h2>
      <p>Separate quote, verification, and settlement so the fee and merchant payments cannot be mistaken for one another.</p>
    </header>

    <div className="diagram-comparison">
      <section className="diagram-comparison__panel diagram-comparison__panel--old" aria-label="Current payment lifecycle">
        <header className="diagram-comparison__header">
          <div><p>Current</p><h3>Default Mermaid output</h3></div>
          <span>Before</span>
        </header>

        <div className="diagram-comparison__old-frame">
          ```mermaid
          sequenceDiagram
            participant Payer
            participant Resource
            participant Facilitator
            participant Guardian
            participant Base
            Payer->>Resource: Request without payment
            Resource-->>Payer: 402 merchant requirement + optional fee requirement
            Payer->>Resource: X-PAYMENT with signed authorization(s)
            Resource->>Facilitator: POST /verify
            Facilitator->>Facilitator: Verify exact x402 payment and quote binding
            Facilitator->>Guardian: Submit and poll payment action
            Guardian-->>Facilitator: Terminal outcome or unavailable
            opt terminal outcome and fee quoted
              Facilitator->>Base: Settle verification fee
            end
            alt approved and required fee settled
              Resource->>Facilitator: POST /settle
              Facilitator->>Base: Settle merchant payment once
              Resource-->>Payer: 200 + X-PAYMENT-RESPONSE
            else rejected, timeout, or error
              Resource-->>Payer: 402 or fail-closed error
            end
          ```
        </div>

        <footer className="diagram-comparison__diagnosis" aria-label="Current payment lifecycle issues">
          <span>Five dense participants</span><span>Two settlements look alike</span><span>Failure path is buried</span>
        </footer>
      </section>

      <section className="diagram-comparison__panel diagram-comparison__panel--new" aria-label="Branded payment lifecycle">
Diagram: Gateway payment lifecycle.

1. Payer and resource: quote and authorize.
2. Facilitator and Guardian: verify and decide.
3. Resource and Base: settle or fail closed. Approved: consume the approval, settle the merchant payment once, and return. Rejected, timeout, or error: do not settle the merchant payment.

The verification fee settles on an independent path after a terminal outcome.
      </section>
    </div>
  </section>

  <section className="diagram-demo__principles" aria-labelledby="diagram-principles-title">
    <div>
      <p className="diagram-demo__eyebrow">System decisions</p>
      <h2 id="diagram-principles-title">Brand comes from structure, not decoration.</h2>
    </div>

    <ul>
      <li><strong>Readable first</strong><span>16px labels, shorter copy, generous node spacing.</span></li>
      <li><strong>Ownership is visible</strong><span>Builder and Guardian steps live in explicit lanes.</span></li>
      <li><strong>One accent</strong><span>Nava red identifies product-owned steps; status colors remain semantic.</span></li>
      <li><strong>Responsive by design</strong><span>The numbered flow stacks in order on narrow screens.</span></li>
    </ul>
  </section>
</div>
