Repository navigation
fix(#1186): file a finding issue only when it touches something sequant uses; refresh the dependency map - #1187
Merged
Merged
Conversation
…nt uses; refresh the dependency map Breaking changes always get an issue. Other actionable findings need a case-sensitive mention of a tool, hook event, dependency-map key or documented claude command, or an existing affected path. The dependency map drops generic keys and the four missing paths; OpenTelemetry joins outOfScope. Entire-Checkpoint: b800e885dc73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1186.
What changes
Issue filing is gated on relevance.
assessVersionnow callsselectIssueWorthy(src/lib/upstream/relevance.ts). A finding gets its own issue when:breaking(always, whatever it names), ortools.core/tools.optional), a hook event inhooks.used, a dependency-map key, or an entry in the new optionalcommandslist;*exists.Generic keywords (
hook,MCP,tool,plugin,settings…) still drive categorization and the report sections. They no longer earn an issue. Anything not filed is still listed in the assessment issue, as before.Dependency map refreshed (
.sequant/upstream/baseline.jsonandgetDefaultBaseline()):hook,MCP,permission,settings,config,skill,agent,subagent,background,parallel). Any of them pointing at an existing file would make the "affected file exists" clause fire on nearly every note.PreToolUse/PostToolUse/SessionEnd→templates/hooks/*.sh,hooks/hooks.jsonandtemplates/settings.json, plusTask.hooks.usednow lists the three events the plugin'shooks/hooks.jsonwires. It said onlyPreToolUsebefore, andhooks.filespointed at the nonexistentsrc/hooks/pre-tool-hook.ts.Taskmapping.Collateral:
/upstreamSKILL.md is updated in all three copies: the filing rule, the baseline example and the sample output (lint:skill-sync0 diverged).outOfScopeentry"OpenTelemetry - sequant emits and consumes no OpenTelemetry output"This is the one non-mechanical decision here. #1172 names
WebFetch/WebSearch, andexec,loopandupstreamall use WebFetch. Under AC-1's own "names a tool sequant uses" rule, #1172 would be relevant. The note is about OTEL span content, and the WebFetch mention is incidental. No deterministic identifier rule separates those. So the entry encodes #1186's own triage reason ("sequant emits none") through the existingoutOfScopemechanism. The other route would have been to droptools.optionalfrom relevance, but that would silence a real WebFetch deprecation. Remove the line if you'd rather those notes still file.Fixture coverage, stated plainly
Post-#1179, four of the six v2.1.283 notes (#1173–#1176) categorize as
opportunityand never reach the filter under either rule. With the OTEL entry, #1172 becomesno-action. So #1177 is the only fixture that tells the old filter from the new one. The mutation below fails on it, and a separate "lowercase words" case fails too. The AC-1 test also asserts that at least one fixture is non-opportunity actionable, so it can't pass vacuously.Verification
npx vitest run src/lib/upstream: 163 passednpx tsc --noEmit,npm run lint,npm run lint:skill-sync(44 synced, 0 diverged): cleannpm test(full suite): 8458 passed, 1 failed:src/lib/workflow/mutation-marker.property.test.ts > … round-trips. This failure predates the PR. It reproduces onorigin/mainwithFC_SEED=205751990(counterexample noise~~~: the generator strips backticks but not tilde fences). The file is untouched here.Mutation-verified: AC-1 — restored the category-only filter in
selectIssueWorthy(f.category !== "no-action" && f.category !== "opportunity");src/lib/upstream/__tests__/assessment.test.ts > issue filing relevance (#1186) > relevance: the six v2.1.283 notes behind #1172–#1177 file no issuefailed (along withrelevance: lowercase words don't match tool names); restored.Mutation-verified: AC-3 — appended the missing
src/hooks/pre-tool-hook.tstodependencyMap.PreToolUsein baseline.json;src/lib/upstream/__tests__/assessment.test.ts > issue filing relevance (#1186) > dependency map paths existfailed (received["src/hooks/pre-tool-hook.ts"]); restored.AC-2:
breaking always gets an issue, even when it names nothing sequant uses(assessment.test.ts). AC-4:generateAssessmentReport: findings without their own issue (#1186)(report.test.ts) asserts that a hook change with no issue number appears under Actionable.🤖 Generated with Claude Code