Skip to content
DOCS · REFERENCE · 3 MIN READ

Phase 0 Exit Gate Rules (G1–G12)

Dual-track mechanical pre-codebase exit criteria: Track A reversibility confirmation and Track B evidentiary depth.

Overview

Note

Generated from `internal/core/gate_rules_spec.go` (`go run ./tools/docgen`). Do not edit by hand.

The Phase 0 Gate is Vivechak's mechanical pre-codebase exit audit (`vivechak_gate` / `vck gate`). It checks that architectural decisions are grounded, reversible or signed off, and traceable before implementation begins.

Note

**Architectural Disclaimer:** The gate is necessary, not sufficient: it checks structure and the agent's own labels, not the truth of the sources. The sign-off is a typed attestation by the named reviewer; it raises the bar but is not a security boundary.

Dual-Track Architecture

TrackTarget DecisionsGoverning RulesPhilosophy
**Track A****Two-Way Doors** (Reversible)Rule G12**Velocity-Calibrated:** Fast spike or convention decision (~70% information) with reversibility path and review trigger.
**Track B****One-Way Doors** (Hard to Reverse)Rules G1–G11**Rigor-Calibrated:** Grade A/B claims with URLs, `fetched`/`human` provenance, substantive rejected alternatives, red-team challenge record, and interactive human sign-off (`vck signoff`).

Mechanical Gate Rules Ledger

RuleNameTrackVerification Criteria
**G1**Plan & DAG ValidityTrack BPlan file parses via its `yaml vivechak-plan` block with no cycles or unknown dependencies, and project pipelines declare exactly one `kind: synthesis` session.
**G2**Session Completeness & QualityTrack BEvery non-synthesis session has `status: complete` and substantive, non-stub research content without blocking validation issues.
**G3**FAD Synthesis ContractTrack BProject scope has a completed `research/FAD.md` with no blocking issues, and every accepted ADR appears in the Locked Registry.
**G4**Decision TraceabilityTrack BEvery decision ID referenced by plan or session `informs_decisions` exists as an ADR in `research/`.
**G5**Locked ADR StatusTrack BTarget ADRs are locked (`accepted`, `superseded`, or `rejected`); none remain `proposed`.
**G6**One-Way Door Grade A/B DepthTrack BAccepted One-Way Door ADRs carry ≥2 Grade A/B claims, each on a line or ledger row with its `https://` URL, in the ADR or the sessions that inform it (`[A · single · fresh · direct · fetched](url)`, `[Grade A: url \fetched]`, `(Grade A · corroborated · fresh \fetched)`, or an evidence-ledger row whose Grade cell is `A` or `B`).
**G7**Verification ProvenanceTrack BOf the claims G6 counts, ≥2 carry the verification label `fetched` or `human` (`human-provided`) in the tag's last field or the ledger row's Verification cell; `cached`, `recalled`, `verified`, `unverified`, and prose words never count. Labels are as reported by the agent; Vivechak does not fetch or verify sources.
**G8**No Placeholders & Rejected AlternativesTrack BAccepted One-Way Door ADRs contain no unexpanded template placeholders and document substantive rejected alternatives.
**G9**Measurable Review TriggerTrack BAccepted One-Way Door ADRs declare a concrete, non-placeholder `review_trigger` threshold or review date.
**G10**Adversarial Red-Team ChallengeTrack BAccepted One-Way Door ADRs have a current challenge record (`research/D-NNN-R<k>.md` matching `decision_hash` from `vivechak_review(mode="red_team", id="D-NNN")`) cited with ≥50 chars in `## Challenge Findings`.
**G11**Human Architectural Sign-OffTrack BAccepted One-Way Door ADRs carry a valid `vck signoff` attestation (`human_reviewed: true`, `reviewed_by`, `reviewed_at`, and matching `reviewed_hash`).
**G12**Two-Way Door ReversibilityTrack AAccepted Two-Way Door ADRs confirm reversibility rationale, non-placeholder content, and a `review_trigger`.
INTERACTIVE PLAYGROUND
Test Phase 0 Gate in Live Playground

Simulate full Track A and Track B exit evaluations against real ADRs with real-time rule clearance indicators.

Grounded in Vivechak v0.1.0 release specificationView source docs on GitHub