Skip to content

feat: add local service diagnosis - #8

Merged
Benflex1 merged 2 commits into
mainfrom
feat/m2-local-diagnosis
Aug 13, 2026
Merged

Benflex1 merged 2 commits into
mainfrom
feat/m2-local-diagnosis

Conversation

@Benflex1

Copy link
Copy Markdown
Owner

Summary

  • Adds routedoc local URL [--verbose] [--json] for Linux local-service diagnosis.
  • Reads /proc/net/tcp and /proc/net/tcp6 for current proc-visible listener inventory.
  • Classifies exact, loopback, and wildcard bindings.
  • Performs best-effort socket ownership attribution through /proc/<pid>/fd.
  • Reuses the existing client probe exactly once.
  • Degrades safely when procfs, namespace, or ownership visibility is incomplete.
  • Never escalates privileges and adds no new third-party production dependencies.
  • Unsupported platforms fail gracefully.
  • Existing routedoc URL behavior is unchanged.
  • Architecture remains 1.3; report schema remains 1.0.0.

Dogfood correction

The original implementation incorrectly created NO_MATCHING_LISTENER_VISIBLE blockers for empty exact/loopback buckets even when a compatible wildcard listener covered the target. Commit f9c1836ec28b56153efd73adc88dbdd172e2fb14 fixes compatibility evaluation while preserving the inventory observations. The real wildcard-listener case now produces no false claims or findings.

Verification

  • Tests pass.
  • Vet passes.
  • Build passes.
  • Real /tmp/routedoc-m2 local ... dogfood passes.

@Benflex1
Benflex1 merged commit 8e1873c into main Aug 13, 2026
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.

1 participant