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 — mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts · Issue #1702 · developing-today/code

mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts #1702

New issue
Copy link
New issue
Copy link
Closed
#2967
Closed
mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts#1702
#2967
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Problem

searchpath.Resolve expands any entry starting with ~ into the caller's own home directory. A ~name entry — which in every shell and in the usual ~user convention names that user's home — is silently rewritten to a subdirectory of the caller's home, and a directory literally named ~scratch relative to the working directory can never be named at all.

Evidence (verified this run on main 211aa58f)

  • pkgs/mcpx/internal/searchpath/searchpath.go:117-125 (absolute): strings.HasPrefix(path, "~") matches every leading ~, then filepath.Join(home, strings.TrimPrefix(path, "~")) splices the remainder under the caller's home. There is no distinction between ~, ~/… and ~name[/…].
  • Probe executed this run on the laptop (~/git/fleet/probe-2026-10-28-lanea-searchpath/, searchpath.go copied verbatim, sha256 92c048ed…; log in the goal's hidden_files/probe-2026-10-28-laneA-searchpath/probe.log), with HOME=/home/testhome:
    • ~alice/scripts → /home/testhome/alice/scripts
    • ~nosuchuser/scripts → /home/testhome/nosuchuser/scripts
    • ~scratch → /home/testhome/scratch
    • Controls correct: ~/scripts → /home/testhome/scripts, ~ → /home/testhome
  • The resolved list is what actually gets searched: internal/cli/scripts.go:58 (scriptPath, from the paths.scripts setting / MCPX_PATHS_SCRIPTS), internal/cli/scripts.go:164 (PlaceholderFiles, paths.placeholders), and internal/daemon/consumer.go:145 (recipeDirs) all pass configured entries through Resolve.
  • searchpath_test.go has no ~ test at all, so neither the correct control cases nor the ~name misresolution are pinned.
  • Describe() (searchpath.go:259) renders the already-rewritten absolute path, so the "why is it not finding my script" diagnostic confidently shows a directory the user never wrote.

Why it matters

Configured search paths are user-typed configuration. A user who writes ~alice/scripts (a shared/team account's scripts) is silently searched in a lookalike directory under their own home instead — scripts are not found, and if $HOME/alice/scripts happens to exist, the wrong scripts are found and run with no hint why. Silent misresolution in a path that decides which code executes is worse than an error.

Acceptance criteria

  • ~ and ~/… keep expanding to the caller's home (existing correct behaviour, now pinned by tests).
  • A ~name[/…] entry is not resolved under the caller's home: triage pins the rule — expand to that user's home where the platform supports it, or leave the entry unexpanded/refuse it with a clear diagnostic — and the chosen rule is documented at absolute.
  • Regression tests in internal/searchpath cover ~alice/scripts, a ~name for a nonexistent user, ~, and ~/scripts.
  • Describe() output for a ~name entry matches the locations Find/List actually search.
  • Existing internal/searchpath, internal/cli and internal/daemon tests keep passing.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  2. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-682

  3. dezren39
    added
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: new-issue-creator-code-a cron run 2026-10-28T15:05Z
    • Found via: filed this run
    • Task: Triage the ~name search-path misresolution in internal/searchpath (absolute rewrites any leading ~ under the caller's home) and pin the ~name rule.
    • Expectation: effort/s; done when ~ and ~/ still expand, ~name is no longer spliced under the caller's home, and regression tests cover all four shapes.
    • Links: probe on laptop ~/git/fleet/probe-2026-10-28-lanea-searchpath/ (log: goal hidden_files/probe-2026-10-28-laneA-searchpath/probe.log)
  5. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Cross-link: companion issue filed this run in the same package — #1704 (List reports a shadowed name as ambiguous although Find resolves it). Different defect (List/Find disagreement vs this issue's absolute() name misresolution); both verified by the same laptop probe (/git/fleet/probe-2026-10-28-lanea-searchpath/).

  6. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  8. 14 remaining items

  9. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Oct 31, 2026
  10. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane E shift
    • Session / ID: queue task 4260 (repo-queue-worker-shift-e, 2026-10-31 00:49 CDT run)
    • Found via: queue claim
    • Task: PR 2967 opened @00f89ada8 implementing the pinned rule: only ~ and ~/ expand home; ~name stays a literal relative entry, documented at absolute(). TestOnlyBareTildeAndTildeSlashExpandHome written failing-first, now passes; go test ./internal/searchpath/ ./internal/cli/ ./internal/daemon/ -count=1 all pass on the laptop; gofmt/vet clean.
    • Expectation: parked 20m on CI. Resume condition: CI green on PR 2967 AND Codex review clean -> merge PR 2967 -> close mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts #1702 -> complete task fixed_merged.
    • Links: PR fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal relative entry (#1702) #2967 · branch queue/4260-1702-searchpath-tilde · worktree (laptop) ~/git/fleet/4260-1702-searchpath
  11. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), openchamber scheduled lane
    • Session / ID: queue task 4260
    • Found via: queue claim (resume)
    • Task: Re-check on PR 2967 (fix for mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts #1702, @00f89ada8). Fresh check 2026-10-31T06:55Z: CI still pending (build, lint, plugin tests, stress all pending after ~5min poll); no Codex review posted yet. No merge per standing criteria.
    • Expectation: resume when CI green + Codex clean → merge PR 2967 → close mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts #1702 → complete fixed_merged
    • Links: PR fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal relative entry (#1702) #2967
  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  13. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane B shift
    • Session / ID: queue task 4260
    • Found via: queue claim (resume from park — checkpoint awaiting_ci)
    • Task: PR 2967 CI now ALL PASS (lint, plugin, stress PR-changed, final, docs). Verifying Codex gate, then merge + close + complete.
    • Expectation: effort xs for the resume; done = PR merged + issue closed.
    • Links: PR fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal relative entry (#1702) #2967 @00f89ada8
  14. dezren39
    added a commit that references this issue on Oct 31, 2026

    fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal r…

    6bee50a
  15. dezren39
    closed this as completedin #2967on Oct 31, 2026
  16. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane B shift
    • Session / ID: queue task 4260
    • Found via: queue claim (resume from park)
    • Task: PR fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal relative entry (#1702) #2967 MERGED — squash merge commit 6bee50a89a4aabd31ddb571c749a6b4f01e4a23b. CI run 41176621901 all PASS (lint, plugin tests, stress PR-changed tests, final budget; docs build PASS); Codex gate clean (0 review threads). searchpath now expands only ~ and ~/...; ~name stays a literal relative entry.
    • Expectation: done — issue auto-closed by the merge; task 4260 completed as fixed_merged.
    • Links: PR fix(mcpx): searchpath expands only ~ and ~/ — ~name stays a literal relative entry (#1702) #2967
  17. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
  18. dezren39
    added a commit that references this issue on Nov 2, 2026

    fix(mcpx): source abs() expands home only for bare ~ and ~/ (#2988) (#…

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/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.