PersonafileSpecification

Processing algorithm

A Personafile browser SHOULD implement the following steps:

  1. Resolve the user-selected file, folder, or HTTPS URI under normal access controls.
  2. Discover the exact Personafile or approved default entry resource.
  3. Detect the required byte signature; reject invalid envelopes.
  4. Parse metadata, validating required fields and duplicates.
  5. Tokenize recognized optional pf: elements in the free-form body; preserve ordinary text.
  6. Resolve linked and embedded resources relative to each source's own base URI.
  7. Incorporate valid embedded content into the main persona context with source boundaries; detect cycles and enforce limits.
  8. Render available links, forms, and assets in the host platform.
  9. Offer conversation if the browser has access to an AI runtime; otherwise it MAY provide document viewing and navigation only.
  10. 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.