GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Home is not optional — one home-resolution contract for the repo's tools · Issue #5762 · developing-today/code

Home is not optional — one home-resolution contract for the repo's tools #5762

New issue
Copy link
New issue
Copy link
Closed
4 / 44 of 4 issues completed
Closed
Home is not optional — one home-resolution contract for the repo's tools#5762
4 / 44 of 4 issues completed
Copy link
Assignees
dezren39
Labels
epicMeta-issue grouping multiple items (org Project Type=Epic)epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingsource/design-architectFiled by the repo design architect jobstatus/triagedTriaged and routed (see agent note)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Home is not optional — one home-resolution contract for the repo's tools

Design doc: files/designs/code-home-resolution-contract.md in the
keep-the-four-repos-healthy goal workspace. Filed by the design
architect (pass 53, 2026-11-04). No user/review: the contract
generalises the repo's own two precedents (id world.rs hard error;
fleet-config #5473's empty-counts-as-unset ruling), and the one
judgment call the origins left open is recorded in the doc.

The defect

Three filings in two days are one defect with three addresses: a
tool that cannot find the user's home directory invents one, and
the invention differs per copy of the helper —

  • Filesystem root — fleet-queue's client home()
    (unwrap_or_default()) anchors the broker socket, broker token
    and worker-wake signal at /... when HOME is unset or empty
    (fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673); its brokers are loud on unset, silent on empty.
  • Current working directory — fleet-config's home_dir()
    falls back to ".", so config/state/socket resolve CWD-relative
    and a planted ./.config/fleet/fleet.toml is loaded, probe-
    verified (fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737) — the HOME spelling of the hazard fleet-config: empty XDG env vars resolve to CWD-relative paths (a planted ./fleet/fleet.toml is loaded), and a relative FLEET_BROKER_SOCKET bypasses under-HOME resolution #5473 closed
    for XDG in the same crate.
  • A literal ~ directory — atlas-search / atlas-core /
    fleet-search copy a helper mapping missing HOME to "~", so
    atlas-search init exits 0 creating ./~/.local/state/...
    (atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640, probe-verified).

HOME is most often absent exactly where these tools run (cron,
minimal systemd units, env -i, containers), and in every
spelling the tool succeeds silently at the wrong place.

The contract (recorded decision)

A tool that needs the home directory resolves it exactly one
way: a non-empty HOME. Empty is unset. Unset is a named error
at the first surface that needs a path — never a substitute
directory.

  1. Empty = unset, for HOME itself as fleet-config: empty XDG env vars resolve to CWD-relative paths (a planted ./fleet/fleet.toml is loaded), and a relative FLEET_BROKER_SOCKET bypasses under-HOME resolution #5473 ruled for XDG/FLEET_*.
  2. Unset = fail loudly naming HOME (the world.rs precedent),
    before any home-derived read/write/spawn/connect. No root
    anchoring, no CWD fallback, no literal ~, no hardcoded user.
  3. One helper per deploy unit, shaped like fleet-config's
    non_empty_path; one shared probe matrix (unset and empty
    both error; set = exactly today's paths).
  4. Absolute XDG/FLEET_* overrides keep working as fleet-config: empty XDG env vars resolve to CWD-relative paths (a planted ./fleet/fleet.toml is loaded), and a relative FLEET_BROKER_SOCKET bypasses under-HOME resolution #5473 left
    them; relative/empty ones are not a home substitute.

Passwd resolution is declined as the default (the origins'
"or resolves the real home another way" either/or): it is
another silent substitution, it contradicts the in-tree
precedent, and fail-loud is recoverable in one line in the unit
while a wrong-home write is not recoverable at all. A surface
that can demonstrate a legitimate passwd-authoritative context
may record an exception on its own phase issue.

Phases (each independently landable)

  • Phase 1 — fleet-config: fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 (adopted; holds the
    non_empty_path precedent the others mirror)
  • Phase 2 — fleet-queue: fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673 (adopted)
  • Phase 3 — atlas-search + fleet-search: atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 (adopted)
  • Phase 4 — closing inventory audit (filed with this design):
    disposition every remaining home-resolution site on main —
    pkgs/id/src/world_compile.rs:704 (unwrap_or_default), the
    JS bin/* hardcoded /home/user fallbacks, mcpx's discarded
    os.UserHomeDir() errors, and any further copies the inventory
    turns up. Same-shape sites fixed in-phase; genuinely different
    contexts filed separately with the reason.

Acceptance

  • All four phases closed or dispositioned with evidence.
  • No production home-resolution site in the repo maps an
    unset/empty HOME to a substitute directory.
  • Register (files/potential-projects.md) and the mcpx/fleet
    docs that describe these paths agree with the as-built rule.

Sub-issues

Collapse Sub-issuesSub-issues

4 of 44 of 4 Issues completed
Loading 4 sub-issues

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    source/design-architectFiled by the repo design architect job
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1449

  3. dezren39
    added sub-issues on Nov 5, 2026
    • fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737
    • fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673
    • atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640
    • Home-resolution inventory audit — disposition every remaining site against the contract #5763
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · design filed

    • Agent: design architect (repo-design-architect-code), pass 53
    • Found via: audit of atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 / fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673 / fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 against origin/main c2bf5fc
    • Task: this issue is the design of record for the home-resolution contract. Phases are ADOPTED origins, not parallels: Phase 1 = fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 (fleet-config), Phase 2 = fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673 (fleet-queue), Phase 3 = atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 (atlas-search + fleet-search), Phase 4 = Home-resolution inventory audit — disposition every remaining site against the contract #5763 (closing inventory audit, gated on Phases 1–3). All four verified in this issue's sub_issues list.
    • Recorded decision: empty HOME = unset; unset = named error naming HOME (fail loudly, the world.rs precedent); passwd resolution declined as the default — reasoning in the design doc.
    • Design doc: files/designs/code-home-resolution-contract.md (keep-the-four-repos-healthy goal workspace); register entry added in files/potential-projects.md.
    • Expectation: triage of the phases records the phase structure instead of re-filing or re-scoping; Phase 4 closes this design's acceptance.
  5. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 10170
    • Found via: queue claim
    • Task: Triage issue Home is not optional — one home-resolution contract for the repo's tools #5762 (Home is not optional — one home-resolution contract for the repo's tools)
    • Expectation: execution lane assigned opencode by fleet queue lane for task 10170; the laptop opencode claimant launches the bound session, which drives task 10170 to its terminal state. This lane does not work it directly.
    • Links: n/a
  7. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  8. 45 remaining items

  9. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Closing inventory for the home-resolution contract (Phase 4, issue #5763, queue task 12780, lane code-o): the audit ran on origin/main 7dc4aef after the Phase 1-3 gates closed (#5737, #5673, #5640 all landed/closed). Every production home-resolution site in the repo now has a recorded disposition on issue #5763:

    • Conforms: the Phase 1-3 embodiments (fleet-config, fleet-queue home.rs, atlas-search + fleet-search), mcpx's guarded/skip sites and its UserConfigPath named error, and the stated-assignment shell sites.
    • Fixed in-phase (PR fix(home): Phase 4 home-resolution inventory audit fixes (#5763) #8222): pkgs/id world_compile.rs probe + world.rs empty-HOME gap, bin/sync-models + bin/provider-catalog-sync hardcoded /home/user fallbacks, mcpx's discarded UserHomeDir errors at its path-inventing sites (new internal/homeutil, probe-matrix tests).
    • Filed separately with reasons: issue home-resolution contract: disposition the os.homedir() surface against #5762 #8220 (os.homedir() JS/TS surface) and issue home-resolution contract: disposition the Python expanduser / Path.home() surface against #5762 #8221 (Python expanduser / Path.home() surface) - both are the passwd-resolution shape the contract declined as a default, in other deploy units.

    Acceptance check for this design issue: the contract is now a repo property for the audited spellings - every site is conforming, fixed, or filed with a reason. The two follow-ups carry their own acceptance and closing-inventory duties back to this issue.

  11. dezren39
    added
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  12. dezren39 commented on Nov 12, 2026

    @dezren39
    dezren39
    on Nov 12, 2026
    MemberAuthor
    More actions

    Program tending — epic completion (tracking: #1352)

    • Child progress: 4 of 4 children closed (0 open).
    • Last movement: 2026-11-12T07:03:45Z.
    • All recorded children are closed. Proposing closure of this epic: if more work belongs here, reopen a child or say what remains and this stays open.
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged

    • Agent: repo queue worker (repo-worker-code), OpenChamber scheduled lane code-i
    • Session / ID: task 18362
    • Found via: fresh gh state, 2026-11-16

    Verdict: all four phases are closed; no new fix packet is needed.

    • Phase 1 fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737, Phase 2 fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673, Phase 3 atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 and Phase 4 Home-resolution inventory audit — disposition every remaining site against the contract #5763 are all CLOSED. The Phase 4 fix landed as PR fix(home): Phase 4 home-resolution inventory audit fixes (#5763) #8222 (MERGED).
    • The two surfaces that were filed with a reason are still open and carry their own acceptance: home-resolution contract: disposition the os.homedir() surface against #5762 #8220 (os.homedir() JS/TS) and home-resolution contract: disposition the Python expanduser / Path.home() surface against #5762 #8221 (Python expanduser / Path.home()). They are the passwd-resolution shape the contract declined as a default, so they are dispositioned, not missing.

    Acceptance is met for the audited spellings. This epic can close once #8220 and #8221 are dispositioned, or it can close now if Drew accepts those two as separate follow-ups. Closing the epic is not part of this triage.

  14. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — acceptance met, closing this design epic with evidence

    • Agent: repo queue worker (repo-worker-code), lane any-m
    • Session / ID: task 19888 (triage follow-on from task 18362)
    • Found via: queue claim · task 19888; fresh gh verification 2026-11-17
    • Verdict: RESOLVED — all four phases are CLOSED, so this epic closes per its own acceptance criteria ("All four phases closed or dispositioned with evidence"; "When all phases have landed or been declined, this issue closes with a summary" pattern of the fleet's design epics).
    • Evidence (fresh): Phase 1 issue fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 CLOSED 2026-11-08; Phase 2 issue fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673 CLOSED 2026-11-07; Phase 3 issue atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 CLOSED 2026-11-08; Phase 4 issue Home-resolution inventory audit — disposition every remaining site against the contract #5763 CLOSED 2026-11-10 with its fix PR fix(home): Phase 4 home-resolution inventory audit fixes (#5763) #8222 MERGED 2026-11-10T21:24:17Z. Precedent issue fleet-config: empty XDG env vars resolve to CWD-relative paths (a planted ./fleet/fleet.toml is loaded), and a relative FLEET_BROKER_SOCKET bypasses under-HOME resolution #5473 CLOSED.
    • Criterion 2: the Phase 4 closing inventory on issue Home-resolution inventory audit — disposition every remaining site against the contract #5763 (2026-11-10, origin/main 7dc4aef) dispositions every production home-resolution site: conforming, fixed in-phase (PR fix(home): Phase 4 home-resolution inventory audit fixes (#5763) #8222), or filed separately with a reason.
    • Filed separately (not phases, do not block this closure): issue home-resolution contract: disposition the os.homedir() surface against #5762 #8220 (os.homedir() JS/TS surface) and issue home-resolution contract: disposition the Python expanduser / Path.home() surface against #5762 #8221 (Python expanduser / Path.home() surface) remain OPEN with their own acceptance and closing-inventory duties back to this issue — the passwd-resolution shape the contract declined as a default, in other deploy units, exactly the "genuinely different contexts filed separately with the reason" case Phase 4 prescribes. If either lands a change, it records its evidence here by reference.
    • Prior verdicts concur: task 18362 (2026-11-16) verified all four phases closed; the program-tending pass proposed closure with 4 of 4 children closed. This note is the closing summary those passes pointed at.
    • Links: task 19888 · task 18362 · issue Home is not optional — one home-resolution contract for the repo's tools #5762 · issue fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 · issue fleet-queue(client): HOME unset/empty makes home() empty — broker socket, token, and worker signal paths all anchor at the filesystem root #5673 · issue atlas-search(fleet-search): HOME unset/empty resolves state/config/token paths relative to the CWD (literal ~ dir) #5640 · issue Home-resolution inventory audit — disposition every remaining site against the contract #5763 · issue home-resolution contract: disposition the os.homedir() surface against #5762 #8220 · issue home-resolution contract: disposition the Python expanduser / Path.home() surface against #5762 #8221 · PR fix(home): Phase 4 home-resolution inventory audit fixes (#5763) #8222
  15. dezren39
    closed this as completedon Nov 17, 2026
  16. developing-today
    added
    status:done
    on Nov 17, 2026
  17. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — closing inventory from #8221 (lane any-d, task 20100, 2026-11-17)

    The Python expanduser / Path.home() closing inventory filed from this contract's Phase 4 audit is now fully dispositioned on #8221: the opencode-claimant trio (13 sites, the one programmatically-fired surface with no HOME guarantee) is converted to the contract's non-empty-HOME-or-named-error resolution in PR #11211; the systemd-user-unit tools (cargo-target-janitor, yard-reaper, worktree-reaper, github-backup, openai-cred-watchdog, cold-store-reaper) are conform with the unit named — the user manager sets HOME and the passwd entry is demonstrably authoritative for those single-operator surfaces; operator-invoked tools and configured-path input expansions are conform with reasons; the atlas-search fixture generator is non-production. No Python site from the #5763 inventory remains unexamined.

  18. dezren39
    added a commit that references this issue on Nov 17, 2026

    Merge pull request #11211 from developing-today/queue/20100-8221-home…

    8e04b8a
  19. dezren39
    added 3 commits that reference this issue on Nov 25, 2026

    fix(pm-aggregator): resolve config HOME defaults without the passwd f…

    0ef5075

    fix(pm-aggregator): module and script HOME defaults follow the home-r…

    e22900d

    fix(pm-stack): dispatch, exporters and claimant install follow the ho…

    9394e0d
  20. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Closing inventory for the os.homedir() surface (#8220), main at 9394e0d: the pm-stack unit is converted (#14741, #14746, #14750) and the bin/ plus mcpx plugin unit was converted earlier (#11487, #11205). No executable os.homedir() call remains in pm-stack or bin/. Five calls in three files outside both inventories remain and are filed as #14757 (acpx muse wrapper, fleet hosted-worker CLI, queue-transport-alert deploy). Python's Path.home() / expanduser() passwd fallback (about 150 matches) was not part of #8220 and is not dispositioned. Full detail is on #8220.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

epicMeta-issue grouping multiple items (org Project Type=Epic)epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingsource/design-architectFiled by the repo design architect jobstatus/triagedTriaged and routed (see agent note)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.