René's URL Explorer Experiment


Title: Fix #7693: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOO · Issue #7704 · developing-today/code · GitHub

Open Graph Title: Fix #7693: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOO · Issue #7704 · developing-today/code

X Title: Fix #7693: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOO · Issue #7704 · developing-today/code

Description: Implement GitHub issue #7693 in developing-today/code: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOP is neither skipped like a dangling link nor pinned like a permission error Problem In mcpx's directory sourc...

Open Graph Description: Implement GitHub issue #7693 in developing-today/code: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOP is neither skipped like a dangling link nor pinned like a permission...

X Description: Implement GitHub issue #7693 in developing-today/code: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOP is neither skipped like a dangling link nor pinned like a permission...

Opengraph URL: https://github.com/developing-today/code/issues/7704

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix #7693: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOO","articleBody":"Implement GitHub issue #7693 in developing-today/code: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOP is neither skipped like a dangling link nor pinned like a permission error\n\n## Problem\n\nIn mcpx's directory source walk, one symlink loop entry makes the whole `@dir:` resolve fail — while the two neighboring bad-link cases are tolerated:\n\n- a **dangling** symlink is skipped (`pkgs/mcpx/internal/source/source.go:174-180`: `os.Stat` failure is continued past only when `errors.Is(err, fs.ErrNotExist)`, comment \"A dangling link has no regular target to read\");\n- a **directory** cycle (a dir symlink pointing back to an ancestor) is skipped by the `os.SameFile` ancestor guard in the same walk (`source.go:152-157`);\n- a symlink **loop** (a link to itself, or two links pointing at each other) makes `os.Stat` fail with ELOOP (\"too many levels of symbolic links\"), which is neither of the above: `source.go:181` returns the error and the entire directory resolution aborts with zero files read — including every healthy regular file sitting next to the loop.\n\nA loop link, like a dangling link, has no regular target to read. The current split — tolerate a missing target and a directory cycle, but let a loop target deny the whole source — is an untested gap, not a pinned decision: the pinned cases in the shipped tests are dangling-skip (`source_test.go:245` `TestDirectorySkipsDanglingLinkAndFollowsLinkOutsideRoot`), directory-cycle-safety (`source_test.go:191`), and permission-error propagation (`source_unix_test.go:73` `TestDirectoryReportsInaccessibleSymlinkTarget`, which pins EACCES as a returned error and must keep behaving that way). No test covers the ELOOP case.\n\n## Evidence (verified this run, laptop, main 8a0a1c0ceac8)\n\nProbe at `~/git/fleet/probe-mcpx-eloop` on the laptop: the real `pkgs/mcpx/internal/source/source.go` copied verbatim (md5 `768194633188160a349eafd555defe53`, identical to the file on main) into a standalone module, driven through the exported `source.Resolve(\"@dir:\"+root, …)`:\n\n- control (regular.ts + dangling.ts → missing): resolves OK, files = [regular.ts] — matches the shipped pin;\n- self-loop (regular.ts + loop.ts → loop.ts): **fails** — `reading …/loop.ts: stat …/loop.ts: too many levels of symbolic links`, zero files returned;\n- pair loop (regular.ts + a.ts → b.ts, b.ts → a.ts): **fails** the same way at a.ts, zero files returned;\n- control (directory back-link to the root itself): resolves OK, files = [regular.ts] — the ancestor guard tolerates the directory cycle.\n\nSo one stray looped link (easily produced by a bad `ln -s` pair or a tool that links a directory's contents into itself at file level) takes down every launcher/prefix/hook that reads its source from that directory, with an error that names the link but gives no way to keep the healthy remainder.\n\nRelated: closed #1727 covered non-regular files in directory sources (FIFO/socket/symlink-to-directory); this is the distinct remaining Stat-error class for file entries. The Go source lives only in this repo (`pkgs/mcpx`); dezren39/darwin-nix only wraps/launches the built mcpx, so no cross-repo set applies. Found via a pr-diff-review REVIEW-FINDING on PR #3744 that was left as decide-and-test material; verified independently this run before filing.\n\n## Why it matters\n\n`@dir:` sources feed mcpx launchers, prefixes, and error hooks. A single looped symlink — which the directory-cycle guard already proves the walk intends to survive at directory level — currently denies the whole source instead of just the unreadable entry. Robustness here should be uniform: an entry with no readable regular target is skipped (dangling, loop), while genuinely informative errors (permission) still surface, per the existing pin.\n\n## Acceptance criteria\n\n- [ ] A directory containing a self-loop symlink or a mutually-looping symlink pair, plus at least one regular file, resolves successfully and returns exactly the regular files (the loop entries skipped), for both the self-loop and pair-loop shapes.\n- [ ] Regression tests for both loop shapes land in `pkgs/mcpx/internal/source` (mirroring the style of `TestDirectorySkipsDanglingLinkAndFollowsLinkOutsideRoot`), and fail on the pre-fix code.\n- [ ] The pinned permission behavior is unchanged: `TestDirectoryReportsInaccessibleSymlinkTarget` still passes — only the ELOOP class changes disposition, not EACCES or other Stat errors (or, if the fix deliberately widens/narrows which Stat errors skip, the disposition of each class is named in the PR and the affected pins updated with rationale).\n- [ ] The existing source suite (`go test ./pkgs/mcpx/internal/source/...`, or the package's normal CI route) is green with the new tests.\n\n\nRules from the repo owner: (1) Deliver the finished work as a pull request in this run; put \"Fixes #7693\" in the PR description so the issue closes on merge. (2) Cover the whole set in the one PR: if the issue names a set (files, subcommands, cases), fix every member, and batch any directly related dependency updates into the same PR — never one PR per item or per dependency. (3) Run the relevant tests and checks before opening the PR. (4) Merging is permitted but never required: merge only when checks pass and you are reasonably certain the PR is correct and low-risk — otherwise leave it open, and state your confidence and what a human should check. (5) If you hit a genuine blocker (missing credentials, a decision only the owner can make), stop and say exactly what is needed in your final summary instead of guessing. (6) Detached-session clause: never use the `question` tool — if you hit a question, record it and the default you chose in your final summary and keep working.\n\n---\nLaunched by pm-dispatch for developing-today/code. Queue task and OpenCode session ids follow in a comment below.","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-08T13:38:19Z","url":"https://github.com/developing-today/code/issues/7704"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d52eaaf7-f824-6546-bdd8-09e1a16aa4d9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA8C:305F8C:66390:8A4CB:6B0735ED
html-safe-nonceec4706e0ee99dc929c87278ac5f101ec7de56d3eae6985320bf71d2d88007975
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQThDOjMwNUY4Qzo2NjM5MDo4QTRDQjo2QjA3MzVFRCIsInZpc2l0b3JfaWQiOiI1NDI5MzMxNzEzMzAwMzEzNTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacccd730816013815fa01c420d2500365c36638f5b9072d1361a3ea306da7f871a
hovercard-subject-tagissue:6271493773
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7704/issue_layout
twitter:imagehttps://opengraph.githubassets.com/661c31156cddaf242db15e18d4e490ea9f2f7ae71e48e9dae930915da9430311/developing-today/code/issues/7704
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/661c31156cddaf242db15e18d4e490ea9f2f7ae71e48e9dae930915da9430311/developing-today/code/issues/7704
og:image:altImplement GitHub issue #7693 in developing-today/code: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOP is neither skipped like a dangling link nor pinned like a permission...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedeveloping-today[bot]
hostnamegithub.com
expected-hostnamegithub.com
None2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release345c27626db08417fdfc84278a4415ae9a48d8f3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/7704#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7704
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7704
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/7704
Reloadhttps://github.com/developing-today/code/issues/7704
Reloadhttps://github.com/developing-today/code/issues/7704
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests197 (197)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7704
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7704
Fix #7693: mcpx(source): a symlink loop entry aborts the whole @dir: resolve — ELOOhttps://github.com/developing-today/code/issues/7704#top
source/dispatchhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdispatch%22
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 8, 2026https://github.com/developing-today/code/issues/7704#issue-6271493773
#7693https://github.com/developing-today/code/issues/7693
@dirhttps://github.com/dir
8a0a1c0https://github.com/developing-today/code/commit/8a0a1c0ceac8d0465961efa525d911bb94407b10
#1727https://github.com/developing-today/code/issues/1727
#3744https://github.com/developing-today/code/pull/3744
#7693https://github.com/developing-today/code/issues/7693
developing-todayhttps://github.com/apps/developing-today
source/dispatchhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdispatch%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7704#event-35494396542
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 8, 2026https://github.com/developing-today/code/issues/7704#issuecomment-6722190124
developing.todayhttps://kaneo.security.cab
#4917https://github.com/developing-today/code/issues/4917
developing-todayhttps://github.com/apps/developing-today
not plannedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Nov 8, 2026https://github.com/developing-today/code/issues/7704#event-35494398129
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/7704
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7704
source/dispatchhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdispatch%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.