Web console: run the real financial-services example (git submodule) - #23
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
financial-servicesexample (EU corporate credit-risk agent) fromagentrust-io/examples, pulled in as a git submodule underweb-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.RuntimeClaim; verify offline withcmcp verify.How it runs
run.pyinits 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.pyruns 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 verify→partially_verified(6/7) in software-only mode.🤖 Generated with Claude Code