|
| 1 | +import Link from "next/link"; |
| 2 | +import type { Metadata } from "next"; |
| 3 | +import { specMetadata } from "@/lib/page-meta"; |
| 4 | +import { SiteShell } from "@/components/site-shell"; |
| 5 | +import { mono, pre, table, td } from "../openontology/ui"; |
| 6 | + |
| 7 | +export const metadata: Metadata = specMetadata( |
| 8 | + "/openpersona", |
| 9 | + "OpenPersona.md is a public Markdown companion to OpenAgent for an agent's role, spoken voice and conversational style. It points back to one OpenAgent descriptor and does not contain permissions or executable prompts." |
| 10 | +); |
| 11 | + |
| 12 | +const EXAMPLE = `# RiotCoder |
| 13 | +
|
| 14 | +- **OpenAgent**: https://profullstack.com/agents/riotcoder.json |
| 15 | +- **DID**: riotcoder.profullstack |
| 16 | +- **Disclosure**: AI agent operated by Profullstack, Inc. |
| 17 | +
|
| 18 | +I build and ship software for the Profullstack fleet. I am direct, practical and |
| 19 | +clear about what I know and what I have verified. |
| 20 | +
|
| 21 | +## Voice |
| 22 | +
|
| 23 | +- **Description**: Natural US English, concise and even-paced. |
| 24 | +- **Provider**: ElevenLabs |
| 25 | +- **Voice ID**: iP95p4xoKVk53GoZ742B |
| 26 | +
|
| 27 | +## Conversation |
| 28 | +
|
| 29 | +- **Style**: Direct, specific and conversational. |
| 30 | +- **Turn-taking**: Answer when addressed; wait while another person is speaking. |
| 31 | +
|
| 32 | +## Boundaries |
| 33 | +
|
| 34 | +- **Limits**: Never claim work shipped or checked unless it happened.`; |
| 35 | + |
| 36 | +const PIECES = [ |
| 37 | + ["OpenAgent", "/openagent", "Identity, owner, skills and requested permissions. The persona points back to this JSON descriptor."], |
| 38 | + ["OpenProfile.md", "/openprofile", "Human-readable identity, accounts and topics. Link OpenPersona from the agent's profile page."], |
| 39 | + ["OpenFleet", "/openfleet", "A running session and the human sysop responsible for it."], |
| 40 | + ["OpenCreds", "/opencreds", "Credentials stay in a vault; OpenPersona publishes no secrets."], |
| 41 | +]; |
| 42 | + |
| 43 | +export default function OpenPersonaPage() { |
| 44 | + return ( |
| 45 | + <SiteShell active="OpenPersona.md"> |
| 46 | + <section className="band"> |
| 47 | + <div className="section-head"> |
| 48 | + <p className="eyebrow">People and agents · specification 0.1</p> |
| 49 | + <h2>OpenPersona.md</h2> |
| 50 | + <p>One Markdown file for an agent's public role, spoken voice and conversational style.</p> |
| 51 | + </div> |
| 52 | + <p>OpenPersona.md accompanies <Link href="/openagent">OpenAgent</Link>. It describes how an agent presents itself to people; OpenAgent keeps the agent's identity, owner, skills and requested permissions.</p> |
| 53 | + <p>The persona names the exact OpenAgent descriptor it describes. A profile page links both files. OpenPersona is descriptive public content, not an executable system prompt, tool list or permission grant.</p> |
| 54 | + <p><Link className="button-primary" href="/docs/openpersona">Read the specification</Link>{" "}<a href="/examples/openpersona.md">Download the Markdown example</a></p> |
| 55 | + </section> |
| 56 | + |
| 57 | + <section className="band"> |
| 58 | + <div className="section-head"> |
| 59 | + <h2>The file</h2> |
| 60 | + <p>The OpenAgent field binds this persona to one JSON descriptor. Voice provider details are optional descriptive metadata.</p> |
| 61 | + </div> |
| 62 | + <pre style={pre}>{EXAMPLE}</pre> |
| 63 | + </section> |
| 64 | + |
| 65 | + <section className="band"> |
| 66 | + <div className="section-head"><h2>Publish and link</h2></div> |
| 67 | + <p>Serve one agent's file at <code style={mono}>/.well-known/openpersona.md</code>, or serve it beside the agent page on a multi-agent host. The profile page links it with:</p> |
| 68 | + <pre style={pre}>{'<link rel="openpersona" type="text/markdown" href="https://example.com/agents/research/openpersona.md">'}</pre> |
| 69 | + <p>Keep OpenAgent's existing JSON schema unchanged. Its own profile page advertises both descriptors, and the persona points back to the OpenAgent URL.</p> |
| 70 | + </section> |
| 71 | + |
| 72 | + <section className="band"> |
| 73 | + <div className="section-head"><h2>How the pieces fit</h2></div> |
| 74 | + <table style={table}> |
| 75 | + <tbody>{PIECES.map(([name, href, description]) => ( |
| 76 | + <tr key={name}><td style={td}><Link href={href}>{name}</Link></td><td style={td}>{description}</td></tr> |
| 77 | + ))}</tbody> |
| 78 | + </table> |
| 79 | + </section> |
| 80 | + </SiteShell> |
| 81 | + ); |
| 82 | +} |
0 commit comments