Repository navigation
Conversation
Implements content analysis for the /spec skill to supplement label-based phase detection. When /solve comment exists, uses that instead of re-analyzing. - Add content-analyzer.ts: Analyzes title keywords and body patterns - Detects UI work (extract, component, .tsx files) → /test phase - Detects security-sensitive (auth, permission) → /security-review - Detects complex work (refactor, breaking change) → quality loop - Add phase-signal.ts: Types and merging logic with priority - Priority: Labels > Solve > Title > Body - Signals can only ADD phases, never remove them - Add solve-comment-parser.ts: Detects /solve output in comments - If solve comment exists, uses its recommendations (AC-4) - Update spec SKILL.md with content analysis integration - New section for content analysis (AC-1, AC-2, AC-3, AC-4) - Updated output verification checklist - Add comprehensive unit tests (92 tests passing) Closes #175 Co-Authored-By: Claude Opus 4.5 <[email protected]>
4 tasks
Makes the new content analysis library available for programmatic use: - analyzeContentForPhases, analyzeTitleForPhases, analyzeBodyForPhases - mergePhaseSignals, signalsFromLabels, signalFromLabel - findSolveComment, parseSolveWorkflow, solveWorkflowToSignals Co-Authored-By: Claude Opus 4.5 <[email protected]>
Documents the new /spec content analysis capability: - Title/body keyword and pattern detection - Signal priority merging (Labels > Solve > Title > Body) - Solve comment detection - Library exports and 92 unit tests Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble
deleted the
feature/175-feat-spec-add-title-body-content-analysis-for-phas
branch
February 1, 2026 08:06
This was referenced Aug 24, 2026
This was referenced Sep 10, 2026
admarble
added a commit
that referenced
this pull request
Sep 10, 2026
…stranded exec work (#1032) (#1034) * fix(exec): block background tasks under the orchestrator; WIP-commit stranded exec work (#1032) Every stranded-exec transcript found (ad-motion #226/#233, sequant #933/#990, the vid-gen bench) ended with the agent starting the test suite as a Monitor or a backgrounded Bash command and then "waiting for the notification". Under sequant run the phase ends when the turn ends, no notification is ever delivered, and the #879 guard fails the phase with the work uncommitted. - pre-tool.sh: with SEQUANT_ORCHESTRATOR set, HOOK_BLOCK a Monitor tool call and a Bash call with run_in_background: true, pointing at the foreground form (`timeout 600 npm test ...`). Interactive sessions untouched. - /exec §3: foreground-only rule for the suite, after a WIP commit. - phase-executor: when the exec tree is `uncommitted`, commit the dirty paths as `wip(#N): exec ended with uncommitted work (auto-committed by sequant)` before failing the phase; the error names the commit. Git errors fall back to the pre-#1032 message and leave the work in place. - Tests: hook integration (AC-1/AC-2), skill gate (AC-3), real-git WIP commit (AC-4/AC-5). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0147heJNRw8wBBujPGMqxDpR * fix(exec): conventional type for the WIP checkpoint; update the #879 AC-3 test to the #1032 contract The pre-tool hook (and commitlint setups downstream) reject `wip` as a commit type, so the auto-commit and the /exec skill example now use `chore(#N): wip checkpoint — …`. The #879 AC-3 integration case asserted the guard mutates nothing; it now asserts the dirty file is byte-identical AND checkpointed on the branch, which is the new contract. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0147heJNRw8wBBujPGMqxDpR --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Summary
/specto supplement label-based phase detection/solverecommendations when availableChanges
New Files
src/lib/content-analyzer.ts- Analyzes title keywords and body patterns for phase signalssrc/lib/phase-signal.ts- Types and merging logic with priority (Labels > Solve > Title > Body)src/lib/solve-comment-parser.ts- Detects and parses/solveoutput from issue commentsModified Files
templates/skills/spec/SKILL.md- Added Content Analysis section (AC-1 through AC-4)Acceptance Criteria Coverage
Detection Patterns
Title Keywords:
extract,component,refactor.*ui/testauth,permission,security/security-reviewrefactor,migration,breakingBody Patterns:
.tsxfiles/testauth/directory/security-reviewTest plan
npm test- 92 new tests pass (content-analyzer, phase-signal, solve-comment-parser)npm run build- TypeScript compilation succeeds/specon an issue with UI keywords and verify content analysis outputCloses #175
🤖 Generated with Claude Code