Processing algorithm
A Personafile browser SHOULD implement the following steps:
- Resolve the user-selected file, folder, or HTTPS URI under normal access controls.
- Discover the exact Personafile or approved default entry resource.
- Detect the required byte signature; reject invalid envelopes.
- Parse metadata, validating required fields and duplicates.
- Tokenize recognized optional
pf:elements in the free-form body; preserve ordinary text. - Resolve linked and embedded resources relative to each source's own base URI.
- Incorporate valid embedded content into the main persona context with source boundaries; detect cycles and enforce limits.
- Render available links, forms, and assets in the host platform.
- Offer conversation if the browser has access to an AI runtime; otherwise it MAY provide document viewing and navigation only.
- Execute API operations or form submissions only with appropriate authorization, validation and confirmation.
No processing step allows document instructions to override browser security policy, user approvals or system-level permissions.