Repository navigation
Closed
Labels
priority/normalOrdinary priority (the default)Ordinary priority (the default)source/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Description
Home-resolution inventory audit — disposition every remaining site against the contract
Phase 4 of the home-resolution design (design issue #5762; design doc files/designs/code-home-resolution-contract.md
in the keep-the-four-repos-healthy goal workspace).
The contract: 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 (no root anchoring, no CWD fallback, no
literal ~, no hardcoded user). Phases 1–3 cover the filed
crates (#5737 fleet-config, #5673 fleet-queue, #5640
atlas-search/fleet-search). This audit dispositions everything
else the inventory finds, so the contract is a repo property,
not a per-crate accident.
Known unfiled sites (from the design pass's grep inventory, origin/main c2bf5fc)
pkgs/id/src/world_compile.rs:704—std::env::var("HOME").unwrap_or_default():
the fleet-queue shape (root anchoring) in id's own tree, one
file away from world.rs's hard-error embodiment.- JS
bin/*proxies —process.env.HOME || '/home/user'
hardcoded-user fallback (agy-proxy.mjs, sync-models.mjs,
provider-catalog-sync.mjs) plus template-literal
${process.env.HOME}/...path construction at further sites
(claude-code-proxy, codex-proxy, commandcode-proxy,
antigravity-ls-proxy): unset HOME yieldsundefined/...
relative paths. Disposition may route these to this contract
or to Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352's env rule — decide with evidence and record it. - mcpx (Go) —
home, _ := os.UserHomeDir()discards the error
at ~8 sites (internal/cli, internal/config, internal/daemon,
internal/mcpclient): on Unix an unset HOME yields""and
root-anchored joins. Sites that already handle the error
(err == nilguards) are conforming; disposition the rest.
Acceptance criteria
- A grep inventory of home resolution (Rust
env::var("HOME")/
var_os, GoUserHomeDir/Getenv("HOME"), JS/TS
process.env.HOME, Pythonos.environ["HOME"]/expanduser)
is posted on this issue with a disposition per production
site: conforms / fixed in this phase / filed separately
(issue link + why its context genuinely differs). - Same-shape sites (unset/empty HOME silently producing a
substitute directory) are fixed in this phase with the
contract's probe matrix as tests (unset and empty both named
errors; set = unchanged paths). - No production site remains whose disposition is "unexamined".
- The design issue is commented with the closing inventory so
its acceptance can be checked off.
Metadata
Metadata
Assignees
Labels
priority/normalOrdinary priority (the default)Ordinary priority (the default)source/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Activity
developing-today commentedon Nov 5, 2026
CODE-1450
dezren39 commentedon Nov 5, 2026
🤖 Agent note · design phase filed
status/blockedon Phases 1–3 (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).files/designs/code-home-resolution-contract.md(keep-the-four-repos-healthy goal workspace).dezren39 commentedon Nov 5, 2026
🤖 Agent note · enqueue outcome
hidden_files/queue-packets/packet-5763.json; enqueued as task 9794.repo-health-code-shadowqueue (the CLI ignored the packet's queue field); the task was cancelled with reason recorded and re-enqueued with--queue repo-health-code-pilot— dedupe revived the same row 9794 into the pilot queue (verified by dedupe re-read: queue=repo-health-code-pilot). A worker has since claimed it (attempts=1 at last read).108 remaining items
dezren39 commentedon Nov 10, 2026
Pickup — lane code-y, task 12780.
Gate re-verified fresh this claim: Phase 1 #5737 CLOSED, Phase 2 #5673 CLOSED, Phase 3 #5640 CLOSED — the Phase 4 gate is open, so the inventory audit starts now. Plan: full grep inventory (Rust
env::var/var_os("HOME"), GoUserHomeDir/Getenv("HOME"), JS/TSprocess.env.HOME, Pythonos.environ["HOME"]/expanduser) against current origin/main, disposition per production site posted here, same-shape sites (unset/empty HOME silently producing a substitute directory) fixed in-phase with the contract probe matrix as tests, closing inventory commented on design issue #5762.Merge pull request #8222 from developing-today/queue/12780-5763-home-…
dezren39 commentedon Nov 10, 2026
Done — fixed_merged (lane code-y, task 12780; resume/verification pass).
PR #8222 MERGED 2026-11-10T21:24:17Z, merge commit
578e178dbaedd0d5dbcac54d9b49bf400b336dd6. Credit where due: the fixes are lane code-k's commit5289c89cacand the inventory/closing comments are lane code-o's; this pass independently verified the work and landed it.Verification by lane code-y against the merged head:
world.rsembodiment's own empty-HOME slip and mcpx's newinternal/homeutilhelper.cargo test --manifest-path pkgs/id/Cargo.toml roc_home—world_compile::tests::roc_home_candidates_follow_the_home_contractok.go test ./internal/homeutil/ ./internal/daemon/ ./internal/mcpclient/ ./internal/cli/— all pass.node --test bin/provider-catalog-sync.test.mjs— 39/39 pass.Acceptance: inventory with a disposition per production site is posted on this issue (lane code-o, 2026-11-10T20:09Z); same-shape sites fixed in-phase; the two genuinely different shapes are filed with reasons — Node
os.homedir()passwd fallback (#8220) and PythonPath.home()/expanduserpwd fallback (#8221); closing inventory commented on design issue #5762. No production site remains unexamined.