Skip to content

fix(upstream): file a finding issue only when the change touches something sequant uses; refresh the stale dependency map #1186

Closed

Description

@admarble

Observed (triage of the v2.1.283 assessment, 2026-09-27)

The first run on the App-token setup filed six finding issues (#1172–#1177). All six were closed as not planned after a manual check, because none touches anything sequant uses:

  • OpenTelemetry output: sequant emits none.
  • claude plugin marketplace remove, plugin uninstall and mcp add bug fixes: no sequant doc or skill uses these commands.
  • A Windows PowerShell hardening in Claude Code.
  • A self-hosted-runner hook change.

Every one shipped with placeholder text ("[To be analyzed during /spec phase]"), so each cost a manual investigation to reach "nothing to do". #1179 fixed one cause (fix notes filed as deprecations). Two remain:

  1. Findings get an issue by category, not by relevance. assessVersion (src/lib/upstream/assessment.ts, the issueWorthy filter) files an issue for every non-opportunity finding. A keyword like plugin, MCP or tool is enough, even when the change touches no command, file or config sequant uses.
  2. The "affected files" come from a stale map. getImpactFiles reads the dependency map in .sequant/upstream/baseline.json, and four of its six literal paths no longer exist: docs/mcp-integrations.md (now docs/guides/mcp-integrations.md), docs/permissions.md (now docs/reference/permissions.md), and src/hooks/pre-tool-hook.ts / src/hooks/post-tool-hook.ts (the hooks are templates/hooks/*.sh). feat: Hook change: Self-hosted runner: Changed lifecycle hooks' git to skip a repository's Git LFS ... (from Claude Code v2.1.283) #1177 named the nonexistent src/hooks/pre-tool-hook.ts as its affected file.
  • Tier: mechanical

Acceptance criteria

  • AC-1: a non-breaking finding gets its own issue only when it names something sequant uses (a Claude Code command, setting, hook event or tool that appears in the baseline or the dependency map), or when its affected files include a path that exists. Everything else is listed in the assessment issue only — Evidence: npx vitest run src/lib/upstream/__tests__/assessment.test.ts -t "relevance" passes, with the six v2.1.283 notes behind feat: New tool: Added MCP tool, WebFetch and WebSearch outputs to the tool.output OpenTelemetr... (from Claude Code v2.1.283) #1172–feat: Hook change: Self-hosted runner: Changed lifecycle hooks' git to skip a repository's Git LFS ... (from Claude Code v2.1.283) #1177 as fixtures that file no issue, mutation-verified (restore the category-only filter; the case fails)
  • AC-2: breaking changes still always get an issue, whatever their relevance — Evidence: npx vitest run src/lib/upstream/__tests__/assessment.test.ts -t "breaking always" passes
  • AC-3: every literal path in the baseline dependency map exists — Evidence: npx vitest run src/lib/upstream/__tests__/assessment.test.ts -t "dependency map paths exist" passes, mutation-verified (add a missing path; the case fails)
  • AC-4: the assessment issue still lists every finding, including the ones that no longer get their own issue — Evidence: npx vitest run src/lib/upstream/__tests__/report.test.ts passes, with a case asserting a non-issue finding appears in the report

Non-Goals

Activity

  1. added
    enhancement
    upstream
    on Sep 27, 2026
  2. added a commit that references this issue on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions