You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate phase-signal and CI labels from solve to assess #438
Part of the /solve → /assess unification (parent: #325). Update the phase signal system and GitHub Actions CI labels to use "assess" instead of "solve".
Context
PR #436 unified the skill files and parser. This issue handles the remaining TypeScript core changes that are breaking for consumers.
Acceptance Criteria
SignalSource type in phase-signal.ts: add "assess" as valid value, deprecate "solve" (keep both for backward compat)
SIGNAL_PRIORITY in phase-signal.ts: add assess entry matching solve priority, keep solve as alias
Recommended Phases: spec → exec → qa Skip Spec: No (core type changes need plan review) Browser Testing: No (TypeScript core, no UI) Quality Loop: Yes (multi-file renames across modules)
Reasoning
Core TypeScript changes to phase-signal.ts, ci/types.ts, action.yml
Must maintain backward compat for "solve" signal source and sequant:solve label
Spec Plan — #438: Migrate phase-signal and CI labels from solve to assess
AC Quality Check
⚠️ AC items use plain checkbox format (no AC-N prefix) — restated below with verification criteria. All AC are clear and testable as written. No vague/unmeasurable language detected.
Scope Assessment
Non-Goals (Required)
⚠️Non-Goals section not found in issue. Inferred non-goals:
⚠️SCOPE_WARNING — High AC count (10) and moderate directory spread (4), but all changes are mechanical renames/additions with a single unifying theme. Complexity is breadth, not depth.
Quality Loop: enabled (auto-enabled due to scope concerns + solve analysis recommendation)
Acceptance Criteria
AC-1: Add "assess" to SignalSource type, deprecate "solve"
Verification Method: Unit Test
Test Scenario:
Given: phase-signal.ts with updated SignalSource type
When: A signal is created with source: "assess"
Then: TypeScript compiles without error; "solve" still compiles but has @deprecated JSDoc
When: SIGNAL_PRIORITY["assess"] is accessed
Then: Returns 3 (same as solve)
AC-2: Add assess to SIGNAL_PRIORITY, keep solve as alias
Verification Method: Unit Test
Test Scenario:
Given: Updated SIGNAL_PRIORITY record
When: Priority of "assess" is checked
Then: Equals 3 (same as solve)
When: mergePhaseSignals receives signals with source: "assess"
Then: Merging works identically to "solve" signals
AC-3: Update comments from "Solve Comment" to "Assess Comment"
Verification Method: Manual Test (grep verification)
Test Scenario:
Given: Updated source files
When: grep -r "Solve Comment" src/ is run
Then: Zero matches
When: grep -r "Assess Comment" src/ is run
Then: Matches in phase-signal.ts module docstring and mergePhaseSignals JSDoc
AC-4: Add ASSESS constant to TRIGGER_LABELS, deprecate SOLVE
Update assess-comment-parser.ts (lines 420-466): Change source: "solve" to source: "assess" in assessWorkflowToSignals(). Keep source: "solve" in the deprecated solveWorkflowToSignals().
Phase 2: CI Types and Triggers
Update ci/types.ts (line 37-46): Add ASSESS: "sequant:assess" to TRIGGER_LABELS, add @deprecated to SOLVE
Rename solve-on-label.yml → assess-on-label.yml: Update all internal references from sequant:solve to sequant:assess, update workflow name, comments, and trigger condition
Update ci/triggers.test.ts: Add "sequant:assess" trigger test, update existing "sequant:solve" test to verify backward compat
Update ci/labels.test.ts: Add "sequant:assess" to label removal tests, verify both labels handled
Update ci/action-consistency.test.ts: Ensure action.yml consistency check covers both labels
Design Review
Where does this logic belong? Spread across src/lib/phase-signal.ts (type system), src/lib/ci/ (CI integration), src/lib/workflow/ (runtime), and sequant-action/ (GitHub Action). Each file owns its own "solve" references — changes are in-place updates, not a new module.
What's the simplest correct approach? Add "assess" alongside "solve" with @deprecated annotations. No abstraction layer, no migration script, no runtime deprecation warnings. Simple additive changes + comment updates.
What existing pattern does this follow? Follows the same pattern established in assess-comment-parser.ts (PR feat(#325): unify /assess and /solve into single triage command #436): new name is primary, old name preserved as deprecated alias. Union types naturally support this.
What would a senior reviewer challenge? (1) "Why not remove solve entirely?" — Backward compat requirement per AC-10; consumers may reference "solve" in their configs/types. (2) "Should source: 'solve' in assessWorkflowToSignals change to 'assess'?" — Yes, the assess function should emit assess signals; only the deprecated solveWorkflowToSignals keeps "solve".
Feature Quality Planning
Completeness Check
All 10 AC items have corresponding implementation steps
Integration points identified: assess-comment-parser.ts emits signals with source field
No partial implementations — both new + deprecated values in every location
State management: N/A
Data flow: SignalSource type → SIGNAL_PRIORITY → mergePhaseSignals → formatMergedPhases
Error Handling
Invalid input: TypeScript union type prevents invalid signal sources at compile time
Backward compat: "solve" still accepted everywhere, no runtime breaks
Edge cases: Both labels applied simultaneously → both removed at action start (already handled)
Impact: If skipped, the unified parser emits deprecated signal source names
Should LIFECYCLE_LABELS.SOLVING also be renamed?
Recommendation: No — out of scope for this issue. The solving lifecycle label is a status indicator, not the trigger label being migrated. Can be a follow-up.
Impact: Low — cosmetic only
Recommended Workflow
Phases: spec → exec → qa Quality Loop: enabled (auto-enabled due to scope concerns + solve analysis recommendation) Reasoning: Multi-file renames across modules need quality loop to catch missed references. No UI components → no browser testing. Solve analysis confirms this recommendation.
Label Review
Current: planned Recommended: planned, refactor Reason: Implementation involves structural type changes across 4 directories (7+ files) Quality Loop: Will auto-enable due to refactor label
Updated in module docstring (line 6) and mergePhaseSignals JSDoc (line 80)
AC-4
Original
Add ASSESS constant to TRIGGER_LABELS, deprecate SOLVE
MET
ASSESS: "sequant:assess" added, @deprecated on SOLVE
AC-5
Original
action.yml accepts both labels
MET
Both sequant:assess and sequant:solve removed at action start
AC-6
Original
Rename solve-on-label.yml → assess-on-label.yml
MET
File renamed via git, all internal references updated, old file deleted
AC-7
Original
run-reflect.ts:175 → "Use /assess first"
MET
String updated, no /solve references remain
AC-8
Original
phase-mapper.ts:53 comment update
MET
Comment updated to "/assess logic", no solve references remain
AC-9
Original
All existing CI label tests updated
MET
labels.test.ts, triggers.test.ts, phase-signal.test.ts, assess-comment-parser.test.ts all updated with backward compat coverage
AC-10
Original
Backward compat: "solve" and sequant:solve still accepted
MET
Union type, SIGNAL_PRIORITY, TRIGGER_LABELS, LABEL_PHASE_MAP, action.yml all preserve solve
Derived ACs
AC-11
Derived (Completeness)
Update source: "solve" → "assess" in assessWorkflowToSignals()
MET
Both signal emissions changed; deprecated solveWorkflowToSignals() keeps "solve"
AC-12
Derived (Test Coverage)
Backward compat test for both labels applied
MET
Handled by unconditional removal in action.yml; getStartRemoveLabels tests both labels independently
Coverage: 12/12 AC items fully met Original ACs: 10/10 met Derived ACs: 2/2 met
Quality Plan Verification
Dimension
Items Planned
Items Addressed
Status
Completeness
4
4
✅ Complete
Error Handling
2
2
✅ Complete
Code Quality
3
3
✅ Complete
Test Coverage
4
4
✅ Complete
Best Practices
2
2
✅ Complete
Polish
N/A
N/A
- (not UI feature)
Derived ACs: 2/2 addressed Quality Plan Status: Complete
CI Status
Check
State
Conclusion
Impact
build (20.x)
COMPLETED
SUCCESS
✅ MET
build (22.x)
COMPLETED
SUCCESS
✅ MET
typecheck
COMPLETED
SUCCESS
✅ MET
validate-skills
COMPLETED
SUCCESS
✅ MET
validate-plugin
COMPLETED
SUCCESS
✅ MET
CI Summary: 5/5 passed, 0 pending, 0 failed
Quality Metrics
Metric
Value
Status
Type issues (any)
0
✅ OK
Deleted tests
0
✅ OK
Files changed
13
✅ OK
Lines added
+69
-
Lines deleted
-27
-
Test Coverage Analysis
Changed File
Tier
Has Tests?
Test File
src/lib/phase-signal.ts
Standard
✅ Yes
phase-signal.test.ts
src/lib/assess-comment-parser.ts
Standard
✅ Yes
assess-comment-parser.test.ts
src/lib/ci/types.ts
Standard
✅ Yes
action-consistency.test.ts
src/lib/ci/triggers.ts
Standard
✅ Yes
triggers.test.ts
src/lib/ci/labels.test.ts
Optional
✅ (is test)
—
src/lib/workflow/run-reflect.ts
Optional
N/A
String literal change only
src/lib/workflow/phase-mapper.ts
Optional
N/A
Comment-only change
sequant-action/action.yml
Standard
✅ Yes
action-consistency.test.ts
sequant-action/examples/assess-on-label.yml
Optional
N/A
Example file
CHANGELOG.md
Optional
N/A
Docs
Coverage: 4/5 changed source files have corresponding tests (1 string-only change) Critical paths without tests: None
Code Review
Strengths:
Clean, mechanical migration with consistent pattern across all files
Backward compatibility preserved everywhere — "solve" still compiles and works
@deprecated JSDoc annotations on all old values guide future cleanup
Test coverage includes explicit backward compat test cases
CHANGELOG entry present and well-formatted
action-consistency test automatically validates new TRIGGER_LABELS.ASSESS against action.yml
Issues: None found
Suggestions: None — this is a focused, well-executed rename/deprecation
Test Quality Review
Category
Status
Notes
Behavior vs Implementation
✅ OK
Tests assert on outputs (priority values, phase arrays, label strings)
Coverage Depth
✅ OK
Both new assess paths and backward compat solve paths tested
Mock Hygiene
✅ OK
No mocking — tests use real implementations
Test Reliability
✅ OK
Deterministic, no timing dependencies
Anti-Pattern Detection
Code Patterns
No anti-patterns detected in changed files. Changes are additive constant definitions and string updates.
Critical Issues: 0 Warnings: 0
Self-Evaluation
Verified working: Yes — reviewed every changed file against its AC, confirmed all literal values match, tests pass (2120/2120 relevant tests), CI green
Test efficacy: High — backward compat is explicitly tested (SIGNAL_PRIORITY.assess === SIGNAL_PRIORITY.solve, both label trigger paths, both getStartRemoveLabels paths)
Likely failure mode: If a future PR removes "solve" from the union type without updating all consumers. The @deprecated annotations mitigate this.
Verdict confidence: High — mechanical rename with full test and CI coverage
Verdict: READY_FOR_MERGE
All 12 AC items (10 original + 2 derived) fully met. Clean implementation with proper backward compatibility, comprehensive test coverage, and all CI checks passing. No issues found.
docs/features/github-actions-integration.md — migrated primary trigger label from sequant:solve to sequant:assess, updated example workflow, label table, and lifecycle diagram
docs/features/assess-unification.md — added signal source & priority documentation, CI trigger labels section, alias removal behavior
Sections Updated:
Setup (Option A example workflow)
What You Can Do (label table with deprecation notes)
What to Expect (label lifecycle)
Label lifecycle diagram (both labels removed at start)
TypeScript API (signal source, priority, trigger labels)
Activity
admarble commentedon Mar 25, 2026
Solve Analysis
Recommended Phases: spec → exec → qa
Skip Spec: No (core type changes need plan review)
Browser Testing: No (TypeScript core, no UI)
Quality Loop: Yes (multi-file renames across modules)
Reasoning
"solve"signal source andsequant:solvelabelFlags
📝 Generated by
/solveadmarble commentedon Mar 25, 2026
Spec Plan — #438: Migrate phase-signal and CI labels from solve to assess
AC Quality Check
Scope Assessment
Non-Goals (Required)
/assessskill files or parser (already done in PR feat(#325): unify /assess and /solve into single triage command #436)"solve"support entirely (backward compat required)Scope Metrics
Scope Verdict
Quality Loop: enabled (auto-enabled due to scope concerns + solve analysis recommendation)
Acceptance Criteria
AC-1: Add
"assess"toSignalSourcetype, deprecate"solve"Verification Method: Unit Test
Test Scenario:
phase-signal.tswith updatedSignalSourcetypesource: "assess""solve"still compiles but has@deprecatedJSDocSIGNAL_PRIORITY["assess"]is accessed3(same assolve)AC-2: Add
assesstoSIGNAL_PRIORITY, keepsolveas aliasVerification Method: Unit Test
Test Scenario:
SIGNAL_PRIORITYrecord"assess"is checked3(same assolve)mergePhaseSignalsreceives signals withsource: "assess""solve"signalsAC-3: Update comments from "Solve Comment" to "Assess Comment"
Verification Method: Manual Test (grep verification)
Test Scenario:
grep -r "Solve Comment" src/is rungrep -r "Assess Comment" src/is runphase-signal.tsmodule docstring andmergePhaseSignalsJSDocAC-4: Add
ASSESSconstant toTRIGGER_LABELS, deprecateSOLVEVerification Method: Unit Test
Test Scenario:
ci/types.tsTRIGGER_LABELS.ASSESSis accessed"sequant:assess"TRIGGER_LABELS.SOLVEis accessed"sequant:solve"(still works, deprecated)AC-5:
action.ymlaccepts bothsequant:solveandsequant:assesslabelsVerification Method: Integration Test (action-consistency test)
Test Scenario:
action.yml"sequant:assess"triggers the action"sequant:solve"triggers the actionAC-6: Rename example file
solve-on-label.yml→assess-on-label.ymlVerification Method: Manual Test (file existence)
Test Scenario:
ls sequant-action/examples/assess-on-label.ymlsequant:assessls sequant-action/examples/solve-on-label.ymlAC-7: Update
/solvereference inrun-reflect.tsVerification Method: Unit Test
Test Scenario:
run-reflect.tsline 175"/assess"not"/solve"AC-8: Update comment in
phase-mapper.tsVerification Method: Manual Test (grep verification)
Test Scenario:
phase-mapper.tsline 53grep "solve" src/lib/workflow/phase-mapper.tsAC-9: All existing CI label tests updated
Verification Method: Unit Test
Test Scenario:
npm testis run"sequant:assess"(primary) and"sequant:solve"(backward compat)AC-10: Backward compat —
"solve"signal source andsequant:solvelabel still acceptedVerification Method: Integration Test
Test Scenario:
source: "solve"is created"assess"sequant:solvelabel triggers CI actionsequant:assess)Implementation Plan
Phase 1: Type System Updates (phase-signal.ts)
Update
SignalSourcetype (line 28): Add"assess"as valid valueexport type SignalSource = "label" | "assess" | "solve" | "title" | "body";"solve"for backward compatUpdate
SIGNAL_PRIORITY(lines 33-38): Addassessentry at priority 3assess: 3entry@deprecatedcomment tosolveentrysolve: 3for backward compatUpdate module docstring (line 6): "Labels > Solve Comment" → "Labels > Assess Comment"
Update
mergePhaseSignalsJSDoc (line 78): "Labels > Solve > Title" → "Labels > Assess > Title"Update
assess-comment-parser.ts(lines 420-466): Changesource: "solve"tosource: "assess"inassessWorkflowToSignals(). Keepsource: "solve"in the deprecatedsolveWorkflowToSignals().Phase 2: CI Types and Triggers
Update
ci/types.ts(line 37-46): AddASSESS: "sequant:assess"toTRIGGER_LABELS, add@deprecatedtoSOLVEUpdate
ci/triggers.ts(line 28): AddTRIGGER_LABELS.ASSESSmapping to["spec", "exec", "qa"], keepSOLVEmappingPhase 3: GitHub Action Updates
Update
sequant-action/action.yml(line 115): Add removal ofsequant:assesslabel alongsidesequant:solveRename
solve-on-label.yml→assess-on-label.yml: Update all internal references fromsequant:solvetosequant:assess, update workflow name, comments, and trigger conditionPhase 4: Comment and String Updates
Update
run-reflect.ts(line 175):"/solve"→"/assess"Update
phase-mapper.ts(line 53):"/solve logic"→"/assess logic"Phase 5: Test Updates
Update
phase-signal.test.ts: Add tests for"assess"source, keep"solve"backward compat testsUpdate
ci/triggers.test.ts: Add"sequant:assess"trigger test, update existing"sequant:solve"test to verify backward compatUpdate
ci/labels.test.ts: Add"sequant:assess"to label removal tests, verify both labels handledUpdate
ci/action-consistency.test.ts: Ensure action.yml consistency check covers both labelsDesign Review
Where does this logic belong? Spread across
src/lib/phase-signal.ts(type system),src/lib/ci/(CI integration),src/lib/workflow/(runtime), andsequant-action/(GitHub Action). Each file owns its own "solve" references — changes are in-place updates, not a new module.What's the simplest correct approach? Add
"assess"alongside"solve"with@deprecatedannotations. No abstraction layer, no migration script, no runtime deprecation warnings. Simple additive changes + comment updates.What existing pattern does this follow? Follows the same pattern established in
assess-comment-parser.ts(PR feat(#325): unify /assess and /solve into single triage command #436): new name is primary, old name preserved as deprecated alias. Union types naturally support this.What would a senior reviewer challenge? (1) "Why not remove
solveentirely?" — Backward compat requirement per AC-10; consumers may reference"solve"in their configs/types. (2) "Shouldsource: 'solve'inassessWorkflowToSignalschange to'assess'?" — Yes, the assess function should emit assess signals; only the deprecatedsolveWorkflowToSignalskeeps"solve".Feature Quality Planning
Completeness Check
assess-comment-parser.tsemits signals withsourcefieldError Handling
"solve"still accepted everywhere, no runtime breaksCode Quality
any@deprecatedJSDoc tags on old valuesassesseverywhere new,solveonly in deprecated pathsTest Coverage Plan
"assess"signal source priority"sequant:assess"trigger label"solve"/"sequant:solve"Best Practices
Derived ACs
source: "solve"→source: "assess"inassessWorkflowToSignals()Conflict Risk Analysis
In-flight worktrees detected:
feature/439-update-cross-skill-references-from-solve-to-assess— No changes yet (HEAD = main)feature/440-update-documentation-and-marketplace-refs-from-sol— No changes yet (HEAD = main)Overlap risk: Low. #439 and #440 depend on #438 (chain position: first). No file overlap expected since #438 covers TypeScript core, #439 covers skills, #440 covers docs.
Recommended approach: Proceed — #438 must land first as it establishes the type changes.
Open Questions
Should
assess-comment-parser.tssignal source change?assessWorkflowToSignals()should emitsource: "assess", deprecatedsolveWorkflowToSignals()keepssource: "solve"Should
LIFECYCLE_LABELS.SOLVINGalso be renamed?solvinglifecycle label is a status indicator, not the trigger label being migrated. Can be a follow-up.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (auto-enabled due to scope concerns + solve analysis recommendation)
Reasoning: Multi-file renames across modules need quality loop to catch missed references. No UI components → no browser testing. Solve analysis confirms this recommendation.
Label Review
Current: planned
Recommended: planned, refactor
Reason: Implementation involves structural type changes across 4 directories (7+ files)
Quality Loop: Will auto-enable due to
refactorlabel→
gh issue edit 438 --add-label refactorPlan generated by
/spec— ready for review.feat(#438): migrate phase-signal and CI labels from solve to assess
admarble commentedon Mar 25, 2026
QA Review for Issue #438
AC Coverage
"assess"toSignalSourcetype, deprecate"solve"@deprecatedJSDoc onsolveSIGNAL_PRIORITY entryassesstoSIGNAL_PRIORITY, keepsolveas aliasassess: 3added,solve: 3preserved, backward compat test addedmergePhaseSignalsJSDoc (line 80)ASSESSconstant toTRIGGER_LABELS, deprecateSOLVEASSESS: "sequant:assess"added,@deprecatedonSOLVEaction.ymlaccepts both labelssequant:assessandsequant:solveremoved at action startsolve-on-label.yml→assess-on-label.ymlrun-reflect.ts:175→ "Use/assessfirst"/solvereferences remainphase-mapper.ts:53comment updatesolvereferences remainlabels.test.ts,triggers.test.ts,phase-signal.test.ts,assess-comment-parser.test.tsall updated with backward compat coverage"solve"andsequant:solvestill acceptedsolvesource: "solve"→"assess"inassessWorkflowToSignals()solveWorkflowToSignals()keeps"solve"getStartRemoveLabelstests both labels independentlyCoverage: 12/12 AC items fully met
Original ACs: 10/10 met
Derived ACs: 2/2 met
Quality Plan Verification
Derived ACs: 2/2 addressed
Quality Plan Status: Complete
CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginCI Summary: 5/5 passed, 0 pending, 0 failed
Quality Metrics
any)Test Coverage Analysis
src/lib/phase-signal.tsphase-signal.test.tssrc/lib/assess-comment-parser.tsassess-comment-parser.test.tssrc/lib/ci/types.tsaction-consistency.test.tssrc/lib/ci/triggers.tstriggers.test.tssrc/lib/ci/labels.test.tssrc/lib/workflow/run-reflect.tssrc/lib/workflow/phase-mapper.tssequant-action/action.ymlaction-consistency.test.tssequant-action/examples/assess-on-label.ymlCHANGELOG.mdCoverage: 4/5 changed source files have corresponding tests (1 string-only change)
Critical paths without tests: None
Code Review
Strengths:
"solve"still compiles and works@deprecatedJSDoc annotations on all old values guide future cleanupTRIGGER_LABELS.ASSESSagainst action.ymlIssues: None found
Suggestions: None — this is a focused, well-executed rename/deprecation
Test Quality Review
assesspaths and backward compatsolvepaths testedAnti-Pattern Detection
Code Patterns
No anti-patterns detected in changed files. Changes are additive constant definitions and string updates.
Critical Issues: 0
Warnings: 0
Self-Evaluation
SIGNAL_PRIORITY.assess === SIGNAL_PRIORITY.solve, both label trigger paths, bothgetStartRemoveLabelspaths)"solve"from the union type without updating all consumers. The@deprecatedannotations mitigate this.Verdict: READY_FOR_MERGE
All 12 AC items (10 original + 2 derived) fully met. Clean implementation with proper backward compatibility, comprehensive test coverage, and all CI checks passing. No issues found.
CHANGELOG Verification
Documentation
Next Steps
/docs 438if documentation updates are desiredQA completed by
/qafix(#440): correct in-progress label to sequant:solving
docs: update feature docs for solve → assess migration (#438)
admarble commentedon Mar 25, 2026
Documentation Generated
Files Updated:
docs/features/github-actions-integration.md— migrated primary trigger label fromsequant:solvetosequant:assess, updated example workflow, label table, and lifecycle diagramdocs/features/assess-unification.md— added signal source & priority documentation, CI trigger labels section, alias removal behaviorSections Updated:
Next Steps:
Generated by
/docsfeat(#438): migrate phase-signal and CI labels from solve to assess (#…
docs(#440): update all documentation refs from /solve to /assess (#446)