Skip to content

feat(hostenv): honor the XDG base directory variables in deploy data paths #404

Closed

Description

@aitrawog

Problem

hostenv.ResolveVolumesPath and ResolveEncryptedStoragePath default to a hardcoded
~/.local/share/charly/..., and ExpandHostHome expands only ~ and $HOME. A host that
relocates XDG_DATA_HOME — or authors a deploy volume host as $XDG_DATA_HOME/... — gets
the wrong default path or a literal token in a container bind.

Expected

  • The defaults follow $XDG_DATA_HOME (spec default ~/.local/share), ignoring a
    non-absolute value as the XDG Base Directory Specification requires.
  • ExpandHostHome expands $XDG_DATA_HOME, $XDG_CONFIG_HOME, $XDG_CACHE_HOME,
    $XDG_STATE_HOME and $XDG_RUNTIME_DIR (both spellings).
  • charly's four DESIGN roots (D-STORE-1) and the content-addressed cache root (D-STORE-3)
    are unchanged; this covers the operator data paths outside those roots.

Scope

One hostenv change plus unit tests. The consumer (charly) bumps the module and rebuilds
its binary after the tag. It is the foundation for the operator model/state layout under
$XDG_DATA_HOME/charly/{models,volumes}.

Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. aitrawog commented on Nov 20, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM — taking this: hostenv path resolution honoring the XDG base directory variables. Branch feat/xdg-data-paths; the change and its tests are committed and the module gate is green.

    Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

  3. aitrawog commented on Nov 20, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the implementation continues in #406 (supersedes #405, which the
    validator auto-closed after five verdicts). Every code finding is fixed in that head; the
    remaining evidence defect (an abbreviated test-output paste) is corrected with the complete,
    uncached go test -count=1 ./... output in the successor body.

    Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions