import type { RequestType } from '../artifacts/artifact-prerequisites.js'; export type PipelineGate = { name: string; description: string; passed: boolean; detail: string; /** * Slice 2026-06-13-peaks-workflow-skip: optional status that * distinguishes a gate that was BYPASSED via `peaks workflow skip` * from one that actually passed evaluation. When set, the gate * was NOT evaluated by `evaluateGate` — the user/CLI explicitly * marked it as skipped. The boolean `passed` is set to `true` so * existing consumers (which only check `passed`) treat a skipped * gate as "satisfied", but downstream consumers that need * audit-grade distinction (e.g. CI badges, dashboards) can read * `status` to tell pass / fail / skipped apart. * * - omitted (default): not set, gate was evaluated; treat as legacy. * - 'pass': gate evaluated and passed. * - 'fail': gate evaluated and failed. * - 'skipped': gate was bypassed; never evaluated. */ status?: 'pass' | 'fail' | 'skipped'; }; export type PipelineVerification = { rid: string; sessionId: string; requestType: RequestType; complete: boolean; rdPhase: { invoked: boolean; state: string; gates: PipelineGate[]; }; qaPhase: { invoked: boolean; state: string; gates: PipelineGate[]; }; /** * Slice 002 (v2.15.0) AC-3: Gate H "feedback-promotion". Always * present (single-element array). Evaluates whether every * `metadata.type === 'feedback'` memory in `.peaks/memory/` * carries a promotion marker (comment OR sidecar). Failures * block the `complete` verdict via the `gateH` field below; the * pipeline only completes when every gate in this array passes. */ feedbackPhase?: { gates: PipelineGate[]; }; violations: string[]; nextActions: string[]; /** Form of the security/performance findings artifacts Gate C accepted * (slice 025). `'suffixed'` for the new per-rid form, `'legacy'` for the * pre-slice-025 non-suffixed form, `'none'` when neither was found. */ acceptedForm?: 'suffixed' | 'legacy' | 'none'; /** `gateC` is the pre-computed verdict string (AC7 dogfood shape). */ gateC?: 'pass' | 'fail'; /** * Slice 002 (v2.15.0) AC-3: Gate H verdict string. `'pass'` when * all feedback memories are promoted; `'fail'` when at least one * unpromoted feedback memory was found. */ gateH?: 'pass' | 'fail'; /** * Slice 2026-06-28-solo-mode-bypass-fix (defect #3): `true` when * every evidence file resolved on the canonical path * (`.peaks/_runtime/change//...`). `false` when at least * one evidence file resolved via a legacy fallback (`.peaks//...` * or `.peaks/_runtime//...`). QA / TXT surface the value * so users know to move misplaced evidence into the canonical * location. * * Slice 2026-06-29-change-id-root-removal: the legacy * `peaks workspace migrate-change-scope` migration tool is gone; * users must now move misplaced content into the canonical * `.peaks/_runtime/change///` dir manually (or via * `peaks workspace migrate`). */ usedCanonicalPath?: boolean; }; export declare function verifyPipeline(options: { projectRoot: string; rid: string; /** Optional explicit session-id; when omitted, the RD/QA on-disk location * is resolved via showRequestArtifact (which scans all top-level dirs and * returns the actual session-id the file lives in). */ sessionId?: string; requestType?: string; }): Promise;