Files
headquarter/openspec/changes/fix-pi-container-mount-permissions/.pi-map.md
T
Developer bd94cc9bbf fix: use sudo/root to create /workspace symlink in manifest entrypoint
The previous commit moved the pi-agent repo mount from /workspace to
/home/user/{repo_name}. This exposed a permission bug: the Dockerfile
creates /workspace as a root-owned symlink in the image, and the
non-root entrypoint could not replace it because / is owned by root.

- Update compile_entrypoint to recreate /workspace via sudo when running
  as the container user, or directly when running as root
- Add unit test covering sudo/root symlink creation
- Update OpenSpec change docs with the additional root cause

Quality gates:
- pytest tests/unit: 208 passed
- ruff: clean on changed files
- mypy: clean on changed files
- alembic heads: single head
2026-06-14 20:29:03 +00:00

991 B

openspec/changes/fix-pi-container-mount-permissions

dir: openspec/changes/fix-pi-container-mount-permissions

index: openspec/changes/fix-pi-container-mount-permissions/.pi-map.index.md

role

Documents a bug fix for resolving permission issues with Pi container repository mounts and npm updates in a configurable home directory environment.

files

  • change.md | Documents a bug fix for pi-agent container repository mount paths and npm update permissions in a configurable home directory system. | dep: Alembic, manifest_compiler.py, instance_service.py, Docker compose, npm, pytest
  • tasks.md | Tracks completion status of tasks for fixing a Pi container repository mount and npm update permissions issue

arch

Change-request documentation pattern using markdown files for specification (change.md) and task tracking (tasks.md) with checkbox-based completion status.

tags

npm, tasks, container, repository, mount, update, permissions, py

symbols

workflows

dirty