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 #5762Closed 4 / 44 of 4 issues completedClosed 4 / 44 of 4 issues completed DescriptionHome 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.
- 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_*.
- 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.
- 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).
- 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)
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-issuesCollapse Sub-issuesSub-issues4 of 44 of 4 Issues completedLoading 4 sub-issues Activityadded epicMeta-issue grouping multiple items (org Project Type=Epic) kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 5, 2026developing-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 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.
dezren39 commented on Nov 5, 2026 🤖 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
dezren39 commented on Nov 10, 2026 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:
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.
dezren39 commented on Nov 12, 2026 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.
dezren39 commented on Nov 17, 2026 🤖 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.
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.
dezren39 commented on Nov 17, 2026 🤖 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
dezren39 commented on Nov 17, 2026
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. dezren39 commented on Nov 25, 2026 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
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|