Inspiration

Young families outgrow strollers, bassinets, travel cribs, carriers, and high chairs every few months—leaving thousands of dollars of high-quality gear gathering dust in closets while neighbors buy duplicates at full retail. However, peer-to-peer baby gear lending faces one non-negotiable barrier: product recall safety and human trust.

When Cognizant AI Lab, MIT Media Lab NANDA, and Mozilla introduced the Worldwide Agentic Web MVP Specification (Profile 0.3), we realized neighborhood gear sharing is an ideal real-world testbed for an open, user-controlled, multi-origin agentic web:

  1. A neighborhood exchange shouldn't force visitors to pay for or trust a proprietary backend LLM.
  2. Before placing a hold on a bassinet or stroller, the exchange's browser-executed agent should consult an independent cross-origin safety-recall agent—only after the parent approves an explicit, zero-PII Consent Card.
  3. Other community agent websites should be able to query live fit & inventory—and trigger a verified 48-hour hold on KindredLoop's own origin—over ordinary HTTPS and CORS.

What it does

KindredLoop (https://huyvv533.github.io/kindred-loop/) is a zero-backend, spec-conformant Open Agentic Website for borrowing and buying out steam-sanitized neighborhood baby and kids gear:

  • 100% Functional Standalone Website & Deterministic Fit Engine: Even before configuring an LLM, parents can enter their child's age (months) and weight (lbs) to run check_child_fit, filter 8 realistic hub items across strollers, sleep gear, carriers, feeding chairs, and balance bikes, manage a 7-Day Borrow or Buy-Out Reserve Basket with optimistic version concurrency, and place a simulated 48-Hour Neighborhood Hub Hold.
  • Browser-Executed Neuro-SAN Agent Network (kindred_loop): Described declaratively in HOCON (kindred_loop.hocon) and compiled to portable data-only JSON (kindred_loop.network.json), executed entirely in the visitor's browser via the unmodified nsdeploy / agentify-website runtime. Visitors bring their own inference via Mozilla Otari, OpenRouter, or BYOK—keys never leave browser storage.
  • Consent-Gated Cross-Origin Agent Composition (Recalled?): When a parent asks whether an item has any safety notices before reserving, kindred_loop_assistant prepares a peer call to the external Recalled? Safety Notice Checker (https://chen931222.github.io/recalled/recall_check). Execution pauses until the visitor approves an accessible Consent Card displaying the exact destination host (chen931222.github.io) and a 140-character preview containing only public item/model identifiers (zero personal data).
  • Human-in-the-Loop Irreversible Action Gate: Calling place_demo_hold (irreversible: true) opens a custom, accessible <dialog> summarizing every item, borrow/buyout mode, hub pickup window, and borrower details so the agent can never silently commit a hold without explicit human approval.
  • Callable Partner Action Bridge (bridge/action-bridge.html):
    • Public Cross-Origin Reads (`callerOrigins: [""]):* External agent networks can invokeget_exchange_stateandcheck_child_fitover CORS +postMessage` without accessing the visitor's private basket.
    • Origin-Verified Partner Writes (confirmsInWindow: true): Trusted peer origins can invoke place_partner_hold, opening a first-party KindredLoop confirmation window where the user reviews and confirms directly on KindredLoop's origin.

How we built it

  • Declarative Agent Network & Discovery Artifacts: Authored kindred_loop.hocon, agent-manifest.json (with closed peer_policy and explicit allowed_peers), links.json, agent-mcp.json, and .well-known/nsdeploy*.json, compiled and validated using Cognizant's official build_network.mjs --check.
  • Shared State & Optimistic Concurrency (script.js & site-actions.js): Both the human DOM controls and the website_* agent tools call the exact same App.page state machine, using monotonic basket version numbers so concurrent UI clicks and agent tool calls never overwrite each other silently.
  • Cross-Origin Isolation (bridge/): Built a sandboxed bridge/action-bridge.html + bridge/hold-window.js flow that separates public catalog queries from private visitor session state.
  • Automated Verification Suite (tests/agentified.test.mjs): Wrote 18 end-to-end Node tests verifying manifest conformance, grounding rules, basket concurrency, <dialog> human confirmation, keyboard focus restoration on Consent Cards, and cross-origin check_partner.mjs interoperability.

Challenges we ran into

  1. Strict Separation of Public Catalog vs. Private Visitor State Across Origins: Allowing external agent websites to query get_exchange_state and check_child_fit without leaking the local parent's in-progress basket required cleanly splitting bridge-actions.js from site-actions.js and enforcing confirmsInWindow: true on place_partner_hold.
  2. Accessible Focus Management Across Async Agent Interrupts: Both cross-origin peer Consent Cards and irreversible <dialog> confirmations interrupt multi-step tool execution; we engineered deterministic focus trapping and trigger restoration and verified both in automated tests.
  3. Zero-Error Conformance with Official Tooling: Passing both build_network.mjs --check (0 errors, 0 warnings) and live check_partner.mjs over CORS on static GitHub Pages hosting required exact alignment between .hocon tool definitions, agent-manifest.json, and .well-known/nsdeploy.json.

Accomplishments that we're proud of

  • Achieved 0 errors and 0 warnings on Cognizant AI Lab's official build_network.mjs --check and live check_partner.mjs partner interoperability validator.
  • Passed 18/18 automated runtime, grounding, accessibility, and security-boundary tests (node --test "tests/*.test.mjs").
  • Shipped a genuinely useful, zero-server neighborhood family gear exchange deployed live on standard HTTPS static hosting (https://huyvv533.github.io/kindred-loop/).

What we learned

Designing for the Open Agentic Web inverted how we think about AI web apps: when the agent network is pure declarative JSON configuration executed in the user's own browser under user-chosen inference (such as Mozilla Otari), hosting costs drop to zero, vendor lock-in disappears, and cross-site agent collaboration becomes as composable—and inspectable—as hyperlinks.

What's next for KindredLoop

  • Expanding multi-peer composition to connect neighborhood gear hubs with local municipal toy libraries and certified car-seat inspection calendars.
  • Publishing signed supply-chain sanitization receipts per gear item alongside WebMCP discovery metadata.

Built With

Share this project:

Updates

Submission history