Skip to content

Lighter Documentation Pipeline

When a GitHub issue has documentation labels (docs, documentation, or readme), Sequant automatically uses a lighter workflow pipeline optimized for docs-only work.

  1. Sequant installednpx sequant --version
  2. GitHub issue with a docs label — one of: docs, documentation, readme

Documentation issues get a streamlined two-phase pipeline instead of the standard three-phase pipeline:

Issue TypePipelinePhases
Standardspec → exec → qa3 phases
Bug fixexec → qa2 phases (skips spec)
Documentationexec → qa2 phases (skips spec)

Additionally, the QA phase adapts when running on docs issues:

QA BehaviorStandard IssuesDocs Issues
Type safety checkYes (sub-agent)Skipped
Security scanYes (sub-agent)Skipped
Scope/size checkYes (sub-agent)Yes (1 sub-agent)
Sub-agents spawned31

No configuration needed. The lighter pipeline activates automatically when autoDetectPhases is enabled (the default).

To verify auto-detection is on:

Terminal window
cat .sequant/settings.json | grep autoDetectPhases
# Expected: "autoDetectPhases": true

Run a documentation issue through the lighter pipeline

Section titled “Run a documentation issue through the lighter pipeline”
Terminal window
sequant run 123

If issue #123 has a docs, documentation, or readme label, Sequant will:

  1. Skip the spec phase entirely
  2. Run exec (implementation)
  3. Run QA with a single sub-agent focused on scope/size and link validation

Look for this log line during execution:

Docs issue detected: exec → qa

If you see Running spec to determine workflow... instead, the issue labels may not include a docs label.

  • Faster runs: ~30-50% faster due to skipping spec and running fewer QA sub-agents
  • Same exec behavior: The implementation phase runs identically
  • Lighter QA: Focuses on content accuracy, completeness, formatting, and link validity instead of type safety and security scanning
  • No spec output: Since spec is skipped, there’s no spec plan comment on the issue
  1. Label detection: Sequant checks issue labels against docs, documentation, readme (case-insensitive)
  2. Phase shortcut: If matched, phases are set to ["exec", "qa"] — same pattern as bug fixes
  3. Metadata propagation: SEQUANT_ISSUE_TYPE=docs environment variable is passed to skills
  4. QA adaptation: The QA skill reads the env var and uses a single sub-agent instead of three
LabelDetected As
docsDocumentation
documentationDocumentation
readmeDocumentation
DOCS (any case)Documentation

Labels are matched case-insensitively via substring. A label like docs-update would also trigger the lighter pipeline.

Issue runs full pipeline despite having a docs label

Section titled “Issue runs full pipeline despite having a docs label”

Symptoms: Log shows Running spec to determine workflow... instead of Docs issue detected

Solution: Verify autoDetectPhases is enabled in .sequant/settings.json. If set to false, explicit phases override label detection:

Terminal window
jq '.run.autoDetectPhases' .sequant/settings.json
# Should output: true

QA still runs 3 sub-agents on a docs issue

Section titled “QA still runs 3 sub-agents on a docs issue”

Symptoms: QA spawns type-safety, security, and scope agents

Solution: This happens when running QA standalone (not via sequant run). The SEQUANT_ISSUE_TYPE env var is only set when the orchestrator manages the pipeline. Standalone /qa runs use the full pipeline by default.


Generated for Issue #451 on 2026-03-26