Skip to content

feat: Optional security review phase at end of run/fullsolve #95

Closed

Description

@admarble

Summary

Add /security-review as an optional final phase in sequant run and /fullsolve for features that touch sensitive areas.

Current State

  • /security-review skill exists and works well
  • It's not integrated into automated workflows
  • Users must manually invoke it

Proposed Enhancement

Auto-detection

Automatically add security review when implementation touches:

  • Authentication/authorization code
  • Payment processing
  • User data handling (PII)
  • Admin/privileged endpoints
  • File upload/download
  • External API integrations
  • Database queries with user input

Detection via:

  • Labels on issue: security, auth, payments, admin
  • Files changed: auth/*, api/admin/*, payments/*
  • Code patterns: password handling, token generation, permission checks

CLI Flag

# Explicit security review
sequant run 123 --security-review

# Skip even if auto-detected
sequant run 123 --no-security-review

Settings

{
  "run": {
    "securityReview": "auto" | "always" | "never"
  }
}
  • auto (default): Run when sensitive patterns detected
  • always: Run for every issue
  • never: Skip unless explicitly requested

Workflow Integration

sequant run 123
  → spec
  → exec
  → test (if UI)
  → qa
  → security-review (if sensitive)  ← NEW

Security review runs AFTER qa passes, as a final gate.

Acceptance Criteria

  • --security-review flag added to sequant run
  • --no-security-review flag to skip
  • Auto-detection based on labels and file paths
  • Settings support for securityReview preference
  • /fullsolve includes security review for sensitive features
  • Security review failures block completion (like qa)

Notes

This is defense-in-depth. The sanity checks (#92) catch obvious issues; this catches subtle security problems in sensitive areas.

Activity

  1. added
    enhancement
    on Jan 14, 2026
  2. admarble commented on Jan 21, 2026

    @admarble
    ContributorAuthor

    Status: Archived as Roadmap Feature

    ✅ Implemented (via label-based auto-detection)

    • Auto-detection when issues have security labels (security, auth, admin, permissions, authentication)
    • /security-review skill fully functional
    • Workflow integration: spec → security-review → exec → qa when security labels detected
    • Security review failures block completion (like QA)

    📋 Remaining (Roadmap)

    • CLI flags: --security-review / --no-security-review
    • Settings preference: securityReview: "auto" | "always" | "never"

    Decision

    The label-based approach covers the primary use case. Explicit CLI flags and settings are ergonomic enhancements that can be added later if needed.

    Closing as the core feature is complete. Remaining items can be tracked separately if there's demand.

  3. added
    roadmap
    on Jan 21, 2026
  4. added
    wontfix
    on Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementroadmapwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions