# NousResearch/hermes-agent · Docker boot chown repeating despite matching remapped UID ownership

## Open now

- Nothing open on GitHub.

These members concern \`docker/stage2-hook.sh\` running chown on boot when \`HERMES_UID\`/\`PUID\` is set to a non-10000 value, even if volume ownership may already match. One is a bug report and two are pull requests that propose skipping the redundant chown; the titles alone don't confirm their status or outcome.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #35027. Verify it addresses your case.
- **Recommended:** read PR #35027 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-35027`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #35025: \[Bug\]: \`docker/stage2-hook.sh\`: \`needs_chown\` triggers chown on every boot when \`HERMES_UID\`/\`PUID\` is set to a non-10000 value, even if volume ownership already matches

## Prior & competing PRs

- **#35027: fix(docker): skip unnecessary boot chown when volume ownership already matches remapped UID**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `docker/stage2-hook.sh`
  - fix hunks:
  - `docker/stage2-hook.sh`

    ```diff
    @@ -120,9 +120,7 @@ done
     # mkdir -p block below seeds. Keep them in sync if the seed list changes.
     actual_hermes_uid=$(id -u hermes)
     needs_chown=false
    -if [ -n "${HERMES_UID:-}" ] && [ "$HERMES_UID" != "10000" ]; then
    -    needs_chown=true
    -elif [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
    +if [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
         needs_chown=true
     fi
     if [ "$needs_chown" = true ]; then
    ```
- **#35176: fix(docker): skip redundant chown for remapped UID**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#35027`, `#35025`

## Fix status

- Merged to main in PR #35027 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-06-01`.
- Subsystem: `environments`
