MeshDesk — Open Agentic Civic & Local-Services Website
- Live Open Agentic Website: https://meshdesk.gilbertcv.com
- Demo Video (1080p HD): https://youtu.be/T79QB9OkNNU
- GitHub Repository: https://github.com/gil906/meshdesk-open-agentic-web-2026
Inspiration
Residents, seniors, and small-business owners constantly lose hours bouncing across disconnected city permit offices, transit agencies, and utility portals—re-entering private information on every tab and guessing whether a fee, ADA clearance rule, or exemption actually applies. Meanwhile, closed AI assistants trap personal agents inside proprietary platforms where local service operators either remain invisible or have to pay ongoing per-query LLM bills just to offer automated help.
The Open Agentic Web offers a radically better model: every civic portal publishes a declarative, inspectable JSON agent network right alongside its web pages, and the visitor's own browser runs and connects those agents using open web standards. We built MeshDesk to prove how practical, safe, and cohesive an interconnected Open Agentic Website can feel for real civic workflows.
How It Works in 30 Seconds
| Step | What the Visitor (or External Agent) Does | What MeshDesk Executes |
|---|---|---|
| 1. Describe Task & Choose Peers | Pick one of 4 real civic scenarios (Sidewalk Café Permit, ADA Paratransit + Medical Baseline, ADU + Rooftop Solar, or Emergency Tenant Relief) or type any request, select federated peers, and optionally toggle demo private context (sly_data). |
The browser runtime fetches /agent-network.json, validates all 10 Open Agentic Web MVP Profile 0.3 rules (fail-closed), and prepares a bounded execution budget (max_steps: 12). |
| 2. Watch the 4-Agent Mesh Collaborate | Click Run 4-Agent Mesh and review the explicit Peer Consent Modal before any peer origin is contacted. | Coordinator delegates to Civic Researcher (local catalog + consented federated peers), hands grounded facts to Compliance Verifier (statutes, ADA rules, fee exemptions, sly_data audit), and routes verified output to Action Synthesizer—all directly inside the browser. |
| 3. Verify & Confirm Site Action | Hover color-coded entity pills to cross-highlight related services, statutes, and checklist steps, then click Review & Submit Intake. | The browser runtime owns confirmation for the irreversible site action, shows the exact destination and payload, and issues a tracked demo receipt only after explicit approval. |
What It Does
- Conforming Open Agentic Web Manifests (MVP Profile 0.3): Publishes
/agent-network.jsonand/.well-known/agent-network.json(plus/agent-manifest.json,/meshdesk_civic.network.json,/links.json,/.well-known/nsdeploy.json,/.well-known/nsdeploy-agent.json, and an A2A/.well-known/agent-card.json) withAccess-Control-Allow-Origin: *. - 4-Agent Multi-Agent Civic Network:
- Coordinator (
front_man) — Triages intent, enforces step/depth/cycle budgets, and orchestrates specialists. - Civic Researcher — Searches grounded municipal services and consults visitor-approved federated peer websites.
- Compliance Verifier — Evaluates municipal statutes, ADA clearance rules, conditional fee waivers (e.g., ADU < 750 sq ft impact-fee exemption), and cross-site
sly_dataprivacy isolation. - Action Synthesizer — Compiles a fee/timeline rollup, document checklist, and confirmation-gated
website_submit_service_intakesite action.
- Coordinator (
- In-Browser ES-Module Runtime (
/runtime/agent-runtime.js): Runs the entire graph directly in standard browser JavaScript with Deterministic Local Mode (zero API key needed) AND optional visitor BYO-LLM configuration for OpenAI, Google Gemini, Anthropic Claude, Ollama (local), and Otari / OpenRouter. - Built-In & Open Federated Peer Composition: Ships with two live conforming peer agentic sites (Metro Transit Portal at
/peers/transit/and Civic Utilities Portal at/peers/utilities/) and supports connecting to any external Open Agentic Web URL with explicit consent cards, SSRF protection, cycle prevention, and strictsly_datastripping. - Dual Human + External Agent Interfaces: Calm executive UI with Dark/Light themes, 3-step guided flow, cross-panel hover linking, and a slide-over Inspector Drawer (
•••) housing live JSON-RPC 2.0 message traces, a 10-rule Manifest Conformance Validator, a Privacy & Peer Audit ledger, and bothwindow.OpenAgenticWebandPOST /api/agent/invokeinterfaces.
Why Not Just Use Ctrl+F or a Standard Chatbot?
| Dimension | Traditional City Website + Ctrl+F | Closed Chatbot Widget | MeshDesk (Open Agentic Web) |
|---|---|---|---|
| Multi-Agency Coordination | Manual tab-hopping across city, transit, and utility portals | Siloed to one vendor database | Standard URL-based federation across independent agentic websites with explicit user consent |
| Inference Funding & Lock-In | None | Site host pays per prompt; locked to one model vendor | Zero-key local deterministic execution by default, or visitor brings any LLM key (OpenAI, Gemini, Anthropic, Ollama, Otari) |
| Privacy Across Sites | Users re-enter sensitive IDs on every portal | Full chat logs sent to third-party SaaS clouds | sly_data is deny-by-default across peer boundaries; visitor BYO-LLM keys never leave browser custody or appear in traces |
| Write Safety | Manual form errors | Unbounded tool execution risk | Registered site actions declare read vs. irreversible; browser runtime owns confirmation before any irreversible write |
| Auditability for Developers & Agents | Unstructured HTML | Opaque prompt pipeline | Inspectable declarative JSON manifest, live JSON-RPC 2.0 trace, and 10-rule conformance validator |
What Happens If Something Goes Wrong?
| Scenario | MeshDesk Fail-Closed Behavior |
|---|---|
| Invalid or Tampered Manifest | Fails closed before execution; validator flags missing front_man, duplicate agent names, dangling tool references, unbounded max_steps, or leaked API keys. |
| Visitor Declines Peer Consent | Peer request is immediately cancelled (USER_DECLINED), zero data is transmitted to the peer origin, and the local workflow still completes gracefully. |
| Recursive Peer Cycle or Budget Exhaustion | Cycle guard returns CYCLE_DETECTED; exceeding max_steps halts cleanly with JSON-RPC error -32001. |
| Untrusted Private/Internal Peer URL (SSRF) | Server-side peer discovery blocks localhost, private IP ranges, link-local metadata endpoints (169.254.169.254), and non-HTTP(S) schemes (SSRF_BLOCKED). |
| BYO-LLM Network Error or Missing Key | Runtime reports the exact error in a calm notice, logs llm.fallback in the JSON-RPC trace, and delivers the verified deterministic action plan without data loss. |
| Disconnect Mid-Intake Submission | Follows MVP Profile 0.3 §3.1: marks the irreversible write as unknown outcome and warns the user to check receipts instead of auto-retrying a duplicate submission. |
How We Built It
- Backend (FastAPI + Python 3.11): Serves all public Open Agentic Web manifests with CORS (
*), strict CSP (script-src 'self'), built-in federated peers (/peers/transit,/peers/utilities), external JSON-RPC 2.0 invocation (POST /api/agent/invoke), SSRF-hardened peer discovery, 10-rule manifest validation, confirmation-gated intake receipts, and an allowlisted caller-site BYOK CORS forwarder (/api/llm/proxy). - In-Browser Runtime (Vanilla ES Modules):
/runtime/agent-runtime.jsand/runtime/site-actions.jsrun with zero bundler or third-party script dependencies, exportingwindow.OpenAgenticWeband enforcing schema validation, consent callbacks, secret scrubbing, andsly_dataredaction directly in the browser. - Executive Web UI: Responsive CSS Grid workspace tested for 0px horizontal overflow across Desktop (
1440×900), unfolded Samsung Galaxy Z Fold7 (884×1104), and Mobile (390×844) with zero console errors. - Verification: 21 automated
pytesttests + automated headless Chromium Playwright E2E checks + containerizedDockerfileexposing port8000with/health.
Step-by-Step Judge Verification (Under 2 Minutes)
- Inspect Conforming Manifests (15 sec): Visit
/agent-network.jsonand/.well-known/agent-network.json— verify identical JSON, all 4 agents, schemas, capabilities, callable endpoints, andAccess-Control-Allow-Origin: *. - Run the 4-Agent Mesh + Peer Federation (30 sec): Click Sidewalk Café Permit → click Run 4-Agent Mesh → review the Approve Federated Peer Contact modal showing
applicant_tax_idandowner_mobilestripped fromsly_data→ click Allow for Session. - Test Hover Linking & Irreversible Confirmation (25 sec): Hover any entity pill in Step 3 to see cross-panel highlights across services, compliance checks, and action steps. Click Review & Submit Intake → confirm in the browser modal → verify the
MD-204-*receipt. - Open the Inspector Drawer (
•••) (35 sec):- JSON-RPC Trace: Review every hop (
agent.receive,peer.consent,sly_data.filtered,peer.invoke,action.confirm). - Manifest Validator: Confirm 100% (10/10) pass on MeshDesk, Transit Peer, and Utilities Peer.
- External API: Click Run Bridge Self-Test (
window.OpenAgenticWeb) and inspect the copyablePOST /api/agent/invokeJSON-RPC 2.0curl.
- JSON-RPC Trace: Review every hop (
- Check BYO-LLM Modal (15 sec): Click Local Engine in the header to verify OpenAI, Gemini, Anthropic, Ollama, and Otari/OpenRouter presets with browser-only key storage and 1-click reset.
Challenges We Ran Into
- Enforcing Strict Privacy & CSP Without Breaking Ergonomics: Moving the cross-origin action bridge script out of inline HTML into
/bridge/bridge.jslet us enforcescript-src 'self'with zero inline scripts while keeping the runtime self-contained. - True Zero-Overflow Responsive Layout: Automated Playwright checks caught a 6px horizontal overflow from long peer-status pills on 390px smartphone viewports and duplicated step numbering across multi-service plans—both caught and fixed through automated visual verification.
- Balancing Open Interoperability With Safety: Implementing both Cognizant's Neuro SAN
agent-manifest.json+.network.jsonconventions and explicit/agent-network.json+ JSON-RPC 2.0 endpoints required careful schema alignment so both human developers and external agents get a clean contract.
Accomplishments That We're Proud Of
- 100% Conforming Open Agentic Website: Passes all 10 automated MVP Profile 0.3 checks across both MeshDesk and its two live federated civic peers.
- Zero-Friction Judge Experience: Works instantaneously in-browser with zero API keys required, while supporting full visitor BYO-LLM switching across 5 provider families.
- Real Trust Boundaries, Not Mockups: Consent cards,
sly_dataredaction, secret-scrubbed traces, SSRF blocking, cycle guards, and user-owned irreversible confirmation are enforced in code and proven by 21pytesttests plus headless Chromium E2E tests.
What We Learned
Designing for the Open Agentic Web flips traditional web architecture: because agent definitions are public, declarative JSON and run inside the visitor's browser, trust boundaries move to origin-checked manifests, explicit user consent, sly_data isolation, and user-owned confirmation dialogs—making multi-organization collaboration dramatically simpler and safer than closed API silos.
What's Next
- Signed Manifest Integrity & Version Pinning: Add Subresource Integrity (SRI) digests and re-consent triggers when a peer site updates its published agent instructions.
- Live Municipal Open-Data & WebMCP Adapters: Connect
civic_researcherto live municipal Socrata/CKAN open-data endpoints and emerging browser WebMCP tool registries. - Public Registry Directory Listing: Publish MeshDesk into open agentic directories so neighborhood civic portals and third-party personal assistants can discover and compose it natively.
Built With
- css3
- docker
- fastapi
- html5
- javascript
- json-schema
- open-agentic-web
- python