SPB Git

Repository Public License

12-security-quality-performance.md 2.0 KB

# 12. Security, quality, and performance requirements

Security and privacy

  • Capability grants are explicit per app, project, and action. Default-deny for network, arbitrary filesystem, camera, microphone, contacts, automation, shell, and accessibility privileges.
  • File access goes through user selection, with security-scoped bookmarks when access must persist.
  • Generated logic runs in constrained workers with CPU, memory, and time quotas. Describe the isolation actually achieved; do not claim complete sandboxing.
  • Escape and sanitize untrusted content everywhere it is rendered.
  • Provide kill/cancel controls, budgets, and rate limits.
  • Publish a plain-language policy for what is sent to Anthropic.

Design quality and accessibility

  • PRISM should feel first-party: native toolbar, SF Symbols, considered whitespace, resizable panes, contextual inspector, command palette, restrained animation, good empty states, clear error recovery.
  • The welcome screen is the brand moment: a large focused composer (Return submits, Shift+Return inserts a newline, or click Build), recent projects, and suggested prompts as one-click examples, such as:
    • "Create a personal finance app with charts, CSV imports, budgets and local storage."
    • "Make a project manager with Kanban, calendar, tasks and notifications."
  • Suggested prompts shown in the UI must be ones the current catalog can actually build.
  • During generation, show a live component map and the preview, not a spinner.
  • VoiceOver labels, full keyboard navigation, reduced motion, color contrast, reliable focus. These are acceptance criteria, not polish.

Performance and reliability

  • Instrument startup, preview latency, catalog search latency, generation time, token usage, memory, build time, publish success.
  • Set numeric targets only after profiling on real hardware; report only measured numbers.
  • Stress cases to cover before the release candidate: cold/warm start, 10k-row table, 50-component app, long session restore, concurrent builds, network failure, low disk.
Files main
Menu

Theme