Skip to content

fix(process): resolve absolute path aliases when matching agents#880

Open
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-764-process-symlink-match-telegrambot
Open

fix(process): resolve absolute path aliases when matching agents#880
TZZheng wants to merge 1 commit into
Lingtai-AI:mainfrom
TZZheng:fix/issue-764-process-symlink-match-telegrambot

Conversation

@TZZheng

@TZZheng TZZheng commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • canonicalize absolute run directories with realpath in the kernel matcher, doctor copy, and embedded lifecycle watcher copy
  • preserve the existing contract that relative run-directory arguments are not matched
  • extend the cross-copy test matrix with symlink aliases

Validation

  • PYTHONPATH=src python -m pytest -q tests/test_process_match.py30 passed
  • git diff --check canonical/main...HEAD — passed
  • independent read-only review — PASS, no blockers

A broader diagnostic run reported 47 passed, 2 failed in pre-existing refresh-watcher retry/fixture assertions outside the changed matcher behavior; the dedicated matcher matrix and symlink coverage passed.

Risk

realpath intentionally changes only absolute-path alias handling. Relative process arguments remain rejected because their working directory cannot be recovered safely from the process listing.

Fixes #764

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate-process guard misses symlinked and relative-path launches (normpath vs resolve mismatch in match_agent_run)

1 participant