Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Pipeline quality gates: mandatory audit steps between pipeline stages

Đang mở
#133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Bắt đầu với các định nghĩa pipeline trong manifest.yaml, sau đó theo dõi cách bootstrap engine chạy các stage và cách npx promptkit assemble CLI xử lý các stage của pipeline. Xác định nơi các mục gate, mức độ nghiêm trọng, hành vi pass/fail và ghi chú về gate được khuyến nghị sẽ được biểu diễn. Được xem là hoàn tất khi schema, quá trình thực thi tương tác và hành vi của CLI nhất quán hỗ trợ các gate bắt buộc hoặc được khuyến nghị đã đề xuất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Summary

Add quality gates as a first-class pipeline concept — mandatory or recommended audit/verification steps that run between pipeline stages before the next stage can proceed.

Motivation

GitHub Spec Kit builds quality gates directly into its workflow:

  1. Spec quality checklist — After specification creation, validates completeness, testability, and ambiguity
  2. Constitution compliance — Before planning, checks that the spec doesn't violate project principles
  3. Pre-implementation checklist — Before coding, verifies all checklist items pass (stops and asks if failures exist)
  4. Consistency analysis — After task breakdown, validates spec ↔ plan ↔ tasks alignment with severity levels (CRITICAL > HIGH > MEDIUM > LOW)

These gates are mandatory, not opt-in, which is what makes them effective.

PromptKit already has the building blocks:

  • audit-traceability — validates cross-document alignment
  • audit-spec-alignment — checks spec ↔ implementation alignment
  • audit-code-compliance — checks code ↔ spec alignment
  • audit-test-compliance — checks test ↔ spec alignment

The gap: pipelines don't declare which audits should run between stages.

Proposed Design

  1. Pipeline schema extension: Add an optional gate field to pipeline stage transitions in manifest.yaml:

    pipelines:
      document-lifecycle:
        stages:
          - template: author-requirements-doc
            output_contract: requirements-document
          - gate: audit-traceability          # ← NEW: must pass before next stage
            severity: warning                 # or "blocking"
          - template: author-design-doc
            input_contract: requirements-document
            output_contract: design-document
          - gate: audit-spec-alignment
            severity: blocking
    
  2. Bootstrap engine integration: When running a pipeline interactively, the bootstrap engine would execute gate templates between stages and report pass/fail before proceeding

  3. CLI integration: npx promptkit assemble could emit a note about recommended gates when assembling a pipeline stage

Credit

This pattern is inspired by GitHub Spec Kit's built-in quality checkpoints. See their plan-template.md (constitution compliance gate) and checklist-template.md (pre-implementation quality validation) for the original implementation.

Ngôn ngữ chính
JavaScript
Star
111
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/PromptKit

Tất cả issue của microsoft/PromptKit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.