Skip to content

Web console: run the real financial-services example (git submodule) - #23

Merged
imran-siddique merged 1 commit into
mainfrom
feat/web-console-financial-example
Jul 24, 2026
Merged

Web console: run the real financial-services example (git submodule)#23
imran-siddique merged 1 commit into
mainfrom
feat/web-console-financial-example

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Reworks the browser console per feedback: better visualization, and it runs the actual example as a git dependency instead of a hand-written mock.

What changed

  • Runs the real financial-services example (EU corporate credit-risk agent) from agentrust-io/examples, pulled in as a git submodule under web-console/vendor/examples. The example's agent, mock server, Cedar policy, and catalog run unmodified — nothing is copied. Bumping the submodule pointer updates the scenario.
  • Product-style UI (sidebar nav, scenario picker, six-step timeline, trust-record + policy views, and a "What this shows" page) inspired by the OPAQUE console.
  • Pick an obligor and run: Cedar allows each assessment step and blocks the write when the result breaches a control, each deny citing its regulation:
    • Performing (Rheintal, €250k) → allowed
    • Concentration breach (Nordwind, €750k) → blocked, CRR Art. 395 / EBA/GL/2020/06
    • Sanctions / impaired (Meridian, €200k) → blocked, IFRS 9 stage 3
  • Close → signed RuntimeClaim; verify offline with cmcp verify.

How it runs

run.py inits the submodule if needed, writes a loopback gateway config that points at the example's own policy/catalog (required now that tokenless dev mode is loopback-only, cmcp #408), and starts the example server (:8080), the gateway (:8443), and the web server (:8000). webserver.py runs the example's agent as a subprocess and parses its output into the timeline; the browser never talks to the gateway directly.

Verified locally end to end across all three scenarios: correct allow/deny with regulations, signed record, and cmcp verifypartially_verified (6/7) in software-only mode.

🤖 Generated with Claude Code

Replace the hand-written bank mock with the actual EU corporate credit-risk
example from agentrust-io/examples, pulled in as a git submodule under
web-console/vendor/ (no copy). The console runs the example's own agent, server,
Cedar policy, and catalog unmodified.

Pick one of three obligors and run the six-step assessment: Cedar allows each
step and blocks the write when the assessment result breaches a control
(CRR concentration, EBA delegated authority, IFRS 9, EU AML), each deny citing
its regulation. Close into a signed RuntimeClaim and verify it offline.

Product-style UI (sidebar, scenario picker, step timeline, trust-record and
policy views, and a "what this shows" page). run.py inits the submodule and
supplies a loopback gateway config pointing at the example where it lives.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit be78c91 into main Jul 24, 2026
3 checks passed
@imran-siddique
imran-siddique deleted the feat/web-console-financial-example branch July 24, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant