Visual companion Claude Code hardening fixup design
Visual Companion Final Hardening Fixup Design is a Superpowers draft spec for finishing the security hardening of the brainstorming visual companion in PR 1720. It aims for clean security behaviour, deterministic tests and a diff that holds only companion work, without redesigning the feature.
What it does
It lists what the earlier pass added, such as keyed sessions, same-origin WebSocket checks and files path containment, then the issues the final review found. Those include symlinks under content/ escaping the folder, fallback servers reusing a saved token, and the stop script able to signal an unrelated node process.
How to use it
Read it before touching the companion server's auth, port fallback or stop script.
Requirements and limits
It is a draft for review and deliberately does not expand the feature surface.
More in Reference docs and the Claude Code library.
What it covers
- Goal
- Background
- Non-Goals
- Inherited Security Invariants
- Design
- 1. Rebase Onto Current dev
- 2. Root Screen Containment
- 3. Fallback Token Isolation
- 4. Stop-Server Ownership Proof
- 5. Test Hardening
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Source and license
Author: obra, Superpowers skills. License: MIT.