Repository navigation
Description
Problem
The /upstream skill auto-created issues for "opportunities" based on keyword matching. This generated noise:
- feat: Leverage Task tool metrics for workflow monitoring #256 (Task metrics) - Closed immediately, not actionable
- chore: Audit skills for bash file operations after v2.1.31 guidance update #257 (Bash audit) - Closed immediately, no problem exists
After reviewing all three open assessments (#241, #255, #261), ~90% of flagged "opportunities" were noise. Only 3 out of 15+ were worth tracking, and all 3 were obvious to a human in seconds.
What's Already Done
The "no auto-create" behavior is already in practice — #261's assessment says "Per #259, no individual opportunity issues created." This is the highest-value change.
Remaining Work
1. Add outOfScope to baseline.json
Helps the skill skip irrelevant changes entirely rather than logging them as "no action":
{
"outOfScope": [
"PDF/document processing - users work with code and GitHub issues",
"Slack/OAuth integrations - workflow is GitHub-centric",
"Notebook editing - not a data science tool",
"IDE-specific features (VSCode, JetBrains) - sequant is CLI/terminal focused",
"Windows-specific fixes - sequant targets macOS/Linux"
]
}2. Better assessment formatting
Assessment issues should have clear sections:
- Actionable — breaking changes, deprecations, things that affect sequant
- Informational — opportunities noted for human triage, no issues auto-created
3. Codify the "no auto-create" rule
Update the upstream skill to never auto-create individual opportunity issues. The assessment issue IS the deliverable. Human review handles triage (as demonstrated in #255, #261, #241 reviews).
Acceptance Criteria
- AC-1:
outOfScopeadded to baseline.json - AC-2: Upstream skill skips out-of-scope changes in assessment
- AC-3: Assessment issues use Actionable/Informational sections
- AC-4: Skill never auto-creates individual opportunity issues
What Was Cut (and Why)
The original proposal included userGoals, painPoints, and a semantic relevance check engine. This was over-engineered — human review of the assessment takes ~5 minutes and catches strategic nuance that automation can't. Negative ROI to automate.
Simplified from original proposal after reviewing #241, #255, #261 (2026-02-06)
Activity
admarble commentedon Mar 1, 2026
Spec Plan — #259
AC Checklist
outOfScopeadded to baseline.jsonImplementation Plan
Phase 1: Type and config (AC-1)
outOfScope?: string[]toBaselineinterface intypes.tsoutOfScopearray to.sequant/upstream/baseline.jsongetDefaultBaseline()inassessment.tsPhase 2: Out-of-scope filtering (AC-2)
4. Add
isOutOfScope()function inrelevance.ts5. Modify
analyzeChange()to skip out-of-scope changesPhase 3: Report restructuring (AC-3)
6. Restructure
generateAssessmentReport()— Actionable vs Informational sections7. Update
getActionStatus()for opportunities → "Noted for review"Phase 4: Stop auto-creating opportunity issues (AC-4)
8. Filter opportunities from
createOrLinkFindingloop inassessVersion()Phase 5: Documentation
9. Update
.claude/skills/upstream/SKILL.mdFiles Changed
.sequant/upstream/baseline.jsonsrc/lib/upstream/types.tssrc/lib/upstream/relevance.tssrc/lib/upstream/report.tssrc/lib/upstream/assessment.ts.claude/skills/upstream/SKILL.mdfix(upstream): stop auto-creating opportunity issues and improve asse…
admarble commentedon Mar 2, 2026
/fullsolve Complete
Issue: #259
Status: READY_FOR_MERGE
AC Coverage
outOfScopeadded to baseline.json — METSummary
Iterations
PR: #344
Ready for human review and merge.
admarble commentedon Mar 2, 2026
QA Review for Issue #259 (PR #344)
AC Coverage
outOfScopeadded to baseline.json.sequant/upstream/baseline.jsonand skill documentationisOutOfScope()implemented inrelevance.ts:212, integrated intoanalyzeChange()at line 229report.ts:163-203— Actionable (breaking, deprecation, new-tool, hook-change) and Informational (opportunities)assessment.ts:320filters withissueWorthy = actionableFindings.filter(f => f.category !== "opportunity")Coverage: 4/4 AC items fully met
CI Status
build (18.x)build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 6 passed, 0 pending, 0 failed
Quality Metrics
any)Test Coverage Analysis
src/lib/upstream/relevance.ts__tests__/relevance.test.tssrc/lib/upstream/report.ts__tests__/report.test.tssrc/lib/upstream/assessment.ts__tests__/assessment.test.tssrc/lib/upstream/types.ts.sequant/upstream/baseline.json.claude/skills/upstream/SKILL.mdCoverage: 3/3 changed source files have corresponding tests
98 tests passing across all 4 upstream test suites
Code Review
Strengths:
isOutOfScope()is a pure function with no side effectsoutOfScopeentries self-documentingassessment.ts:320is minimal and precise — single line changeoutOfScopeis optional (string[]?) in the type definition, preserving backward compatibilityoutOfScope: []— no breaking change for existing baselinesIssues: None found.
Suggestions: None — this is a well-scoped, focused change.
Test Quality Review
Anti-Pattern Detection
Code Patterns
No anti-patterns detected. No N+1 queries, empty catch blocks, hardcoded secrets, or SQL injection patterns.
Dependency Audit
N/A — No
package.jsonchanges.Call-Site Review
New exported functions detected: 1 (
isOutOfScope)isOutOfScope()relevance.ts:229analyzeChange()isOutOfScope()is called at the top ofanalyzeChange()as an early-exit guard. If the change matches an out-of-scope pattern, it returns ano-actionfinding immediately, skipping all keyword/pattern matching. This is the correct placement — before any analysis work is done.Skill Command Verification
Skill files changed: 1 (
.claude/skills/upstream/SKILL.md)No new
ghcommands introduced in the diff. Changes are limited to:outOfScopedocumentation to baseline JSON exampleVerification Status: Passed (no new commands to verify)
CHANGELOG Verification
fix:commit — changes upstream skill behavior)Result: Missing CHANGELOG entry for user-facing changes. The upstream skill behavior change (no auto-creating opportunity issues, new outOfScope filtering) should be documented.
Self-Evaluation
isOutOfScope()has direct unit tests,analyzeChange()has integration test with outOfScope baseline, report tests verify Actionable/Informational sectionsVerdict: AC_MET_BUT_NOT_A_PLUS
All 4 AC items are fully met. Code quality is high and tests are comprehensive. However, a CHANGELOG entry under
[Unreleased]is required for this user-facing behavior change before merging.Documentation
Next Steps
[Unreleased] > Fixedfor fix(upstream): Stop auto-creating opportunity issues - pattern matching generates noise #259 (e.g., "Stop auto-creating opportunity issues in upstream assessments; add outOfScope filtering (fix(upstream): Stop auto-creating opportunity issues - pattern matching generates noise #259)")/qa 259for READY_FOR_MERGE verdictdocs: add changelog entry for upstream opportunity fix (#259)
fix(#259): stop auto-creating opportunity issues in upstream assessme…
chore: release v1.17.0
fix(upstream): stop auto-creating opportunity issues and improve asse…
docs: add changelog entry for upstream opportunity fix (#259)