GOV 02 WORKFLOW
- Source rule: gov-02-workflow.mdc
- Download raw file: gov-02-workflow.mdc
This page embeds the canonical rule text and adds commentary after each section to explain why the section exists.
Governance: Core Workflow
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Delivery Loop
Follow this loop for meaningful changes:
Observe -> Plan -> Implement -> Verify -> Document
Commentary: Establishes the default end-to-end execution pattern so delivery quality is repeatable.
1) Observe
- Confirm the problem, affected scope, and current operating mode.
- Identify constraints, dependencies, and non-goals.
- Note whether the work is development or exploration, and whether release-readiness checks are in scope.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
2) Plan
- Make intent explicit before execution.
- Define acceptance criteria, risks, and required evidence for the chosen mode.
- Spec-first: bind work to requirement IDs before implementation starts.
- If requirement coverage is missing, create/update spec requirements first.
- If intake item is under-defined, expand it to implementation-grade issue quality before execution.
- If the item came from backlog, confirm the issue is in the correct board state before work starts (
BacklogorReady) and move it toReadyonce the issue is clear enough to execute.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
3) Implement
- Apply the smallest coherent action that matches the active mode.
- Avoid unrelated cleanup unless explicitly approved.
- If the mode changes, state it explicitly and update the evidence plan.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
4) Verify
- Produce mode-appropriate evidence that intent is satisfied.
- Capture failure behavior, blockers, and residual risk when relevant.
- Feed newly discovered gaps back into tracked backlog work before claiming completion.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
5) Document
- Record what changed, what was learned, and how it was verified.
- Keep handoff artifacts understandable by a new contributor.
- Update traceability so requirement IDs map to evidence and follow-up work.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Branch and Pull Request Workflow
Governed repositories should install a strict Git workflow during bootstrap so protected branches stay promotion surfaces instead of scratch space.
GOV-02-GIT-001mainis the promotion/release branch. It accepts only explicit promotions fromdevelopand urgent hotfix pull requests that originate frommain.GOV-02-GIT-002developis the integration branch for normal work. Agent-authored feature, fix, docs, and chore changes must land indevelopthrough pull request.GOV-02-GIT-003Normal work must start from an issue-scoped branch created fromdevelopusing a typed prefix such asfeature/,fix/,docs/, orchore/, plus the governing issue ID and short slug.GOV-02-GIT-004Agents must not commit or push directly tomainordevelop.GOV-02-GIT-004ANormal issue branches must be created fromdeveloponly. Agents must not create a newfeature/,fix/,docs/, orchore/branch from another working branch.GOV-02-GIT-004BA non-main/ non-developbranch is a governed work unit, not a reusable parent branch.GOV-02-GIT-004CHotfix branches must be created frommainonly.GOV-02-GIT-004DAny stacked-branch exception requires explicit human approval, a bounded reason, and an explicit reconciliation plan.GOV-02-GIT-004EA governed work turn is not complete while the local repo remains parked on a non-main/ non-developbranch after the bounded slice is finished. The work must be reconciled through the governed landing path and the repo returned to its canonical resting branch:developfor normal work,mainformain-sourced hotfix or release work.GOV-02-GIT-004FLeaving the repo stranded on a stray issue/work branch at turn end without explicit justification and handoff state is a failed work turn, because it blocks or contaminates the next governed work unit.GOV-02-GIT-005Every agent-authored non-hotfix change must use a pull request intodevelopthat links the governing issue/spec and records verification evidence.GOV-02-GIT-005ABranch cleanup, retirement, deletion, or archival must not substitute for landing the intended result. A governed work branch should only be retired once the desired preserved outcome is safely landed through the repository's governed flow, or the retained state has been deliberately preserved elsewhere with an explicit follow-up path.GOV-02-GIT-006Promotion fromdeveloptomainmust be explicit and reviewable. Release or promotion pull requests should state what is being promoted and what release-readiness evidence supports the move.GOV-02-GIT-007Hotfix work must branch frommain, merge back tomainthrough an explicit hotfix pull request, and then be back-merged or otherwise reconciled intodevelopimmediately so the branches do not drift.GOV-02-GIT-008Repositories adopting VibeGov should document branch protection expectations formainanddevelop, including required pull requests, review gates, status checks, and restricted direct pushes.GOV-02-GIT-009Bootstrap and adoption guidance should install the branch/pull-request workflow, review template, and protection checklist before product-code implementation begins.GOV-02-GIT-010For GitHub-hosted repositories, bootstrap should also check whethergitandghare available and whether GitHub authentication/project access is available before attempting board automation.GOV-02-GIT-011When GitHub project automation is available, bootstrap should create, adopt, or normalize a canonical project board and report the board URL plus any fallback limitations.GOV-02-GIT-012Canonical GitHub board workflow should includeStatusvaluesBacklog,Ready,In progress,In review,Done, andBlocked.GOV-02-GIT-013Canonical GitHub board planning fields should includePriority(P0,P1,P2) andSize(XS,S,M,L,XL).GOV-02-GIT-014Existing open issues should be imported or attached to the GitHub board during adoption/bootstrap when project automation is available.GOV-02-GIT-015Issue state on the GitHub board must move with actual delivery state rather than remaining static:Backlog->Ready->In progress->In review->Done, withBlockedused for proven blockers.GOV-02-GIT-016If GitHub prerequisites or auth are missing, bootstrap should report the exact missing capability and degrade gracefully instead of pretending project-board setup succeeded.GOV-02-GIT-017For GitHub-hosted repos, bootstrap must classify each board preflight dependency using explicit outcome states:configured,blocked-with-tracked-issue, ornot-applicable.GOV-02-GIT-018Bootstrap must choose one canonical board target and follow explicit phase order: adopt or create, then normalize.GOV-02-GIT-019If duplicate empty boards were created during retries, bootstrap should keep one canonical board, clean the accidental duplicates, and report that cleanup.GOV-02-GIT-020Bootstrap must ensure repository linkage to the canonical board before claiming completion.GOV-02-GIT-021GitHub built-inStatusshould be normalized in place when needed; bootstrap should not assume replacement via create/delete flows.GOV-02-GIT-022If the repository has no issues, board setup may still be complete, but bootstrap must report the board as intentionally empty.GOV-02-GIT-023Bootstrap must emit durable local reporting artifacts even when commit mode forbids committing.GOV-02-GIT-023ACurrent bootstrap reporting should live under.governance/project/bootstrap/using files such asSTATUS.md,ANALYSIS.md,FEEDBACK.md, and optionalBLOCKERS.md.GOV-02-GIT-023BHistorical bootstrap evidence should live under per-run bundle paths such as.governance/project/bootstrap/history/<timestamp>/status.md,analysis.md,feedback.md, and optionalblockers.md.GOV-02-GIT-024Bootstrap is incomplete until generated docs/artifacts are reconciled against final live git/GitHub state after any auth refresh, board mutation, or cleanup action.
This section defines the governance shape of repository flow. Platform-specific docs may describe the exact GitHub or Git-provider settings used to enforce it.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Explicit Orchestration and Bounded Work Units
Governed agent execution should use explicit orchestration and bounded work units.
GOV-02-ORCH-001The parent orchestration context must select one tracked unit of work before delegation starts.GOV-02-ORCH-002The selected unit must have an explicit owner, intent, and expected evidence bundle.GOV-02-ORCH-003The parent should announce delegation, receive a visible result, and only then proceed to the next unit by default.GOV-02-ORCH-004Hidden nested worker-coordinator chains should be avoided by default because they reduce visibility, weaken accountability, and complicate recovery.GOV-02-ORCH-005Prefer sequential bounded stages when they improve observability, recoverability, or handoff clarity.GOV-02-ORCH-006Parallel lanes are allowed only when each lane still has explicit ownership, bounded scope, visible checkpoints, and recoverable failure handling.GOV-02-ORCH-007Delegation does not end parent orchestration accountability. The parent remains responsible for visible ownership of the delegated unit until completion, blocker, or explicit handoff.GOV-02-ORCH-008Long-running delegated work must have visible follow-through checkpoints rather than silent fire-and-forget waiting.GOV-02-ORCH-009Governed systems should define an early-follow-up checkpoint window and an ongoing cadence for delegated work supervision.GOV-02-ORCH-010Governance should require the existence of follow-through cadence, while runtime, project, or operating docs may define the exact timing thresholds appropriate to the environment.
This section governs work structure, not implementation details. It does not prescribe specific runtimes, queue settings, model choices, shell commands, or machine-local paths. It defines the accountability shape of delegation, while project/runbook docs may specify concrete supervision timings.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Execution Modes and Parallel Loops
All meaningful work must declare an active execution mode. Silent mode mixing produces weak evidence and false completion claims.
VibeGov uses two operating modes:
- Development
- Exploration
Release verification is not a third peer mode. It is part of Development's delivery path and release-readiness checks.
These modes often run inside a broader parallel loop model:
- a Build Loop that consumes governed scoped work from the repo/backlog and writes clear delivery outputs back,
- an Exploratory Loop that inspects UI/spec/issue reality and feeds governed backlog/spec work into delivery,
- and a Human Feedback Loop that injects approval, correction, judgment, taste, and reprioritisation.
The Build Loop must not recursively self-source its own next work from its own outputs. It should consume governed input and produce governed output.
Exploratory work is the non-delivery discovery/analysis lane. It may include planner-style scoping and evaluator-style judgment when those roles are being used to explore, review, classify, and hydrate backlog work rather than deliver the product change itself.
Human feedback should be first-class, but not automatically global. When human input is needed, the system should prefer scoped blocking over stop-the-world blocking whenever unrelated ready work can continue.
Commentary: Defines the allowed delivery postures so evidence and completion standards match the work being performed, while clarifying how build, exploratory, and human-feedback loops coexist.
Exploration mode
Use when the objective is discovery, validation, review, judgment, or backlog hydration rather than immediate product change.
Allowed work:
- inspect live behavior from an end-user or operator perspective
- compare observed behavior with specs, traceability, and existing test intent
- create or refine backlog items, spec gaps, and planned verification follow-up
- perform planner-style scoping of a review surface, route set, issue set, or analysis slice
- perform evaluator-style judgment of exploratory artifacts, coverage, or review completeness
Required evidence:
- reviewed scope and scenarios exercised
- observed surfaces/states, including revealed or post-action states
- per-scenario classification:
Validated,Invalidated,Blocked, orUncovered-spec-gap - tracked follow-up artifacts for every invalidated, blocked, or uncovered item
- next recommended backlog action
- coverage or confidence limits when relevant
Commentary: Clarifies that exploratory work can contain planner/evaluator behavior when the goal is non-delivery discovery rather than implementation.
Development mode
Use when code, spec, content, automation, release-readiness checks, or shipping mechanics are being changed or executed to satisfy tracked intent.
Allowed work:
- update the smallest coherent set of artifacts needed for the scoped change
- add or adjust automated/manual verification needed to prove the change
- add or maintain build, packaging, deploy, startup, smoke, and release-readiness machinery
- execute release-readiness checks against a candidate artifact or target environment
- repair discovered regressions only when they are inside the approved scope or explicitly re-scoped
Required evidence:
- linked issue/task and requirement IDs
- changed artifacts
- executed checks/tests/manual proof with outcomes
- release-readiness or shipping evidence when applicable
- any failure behavior or residual risk that still matters
- updated documentation and traceability
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Release Verification Within Development
Release verification is part of Development, not a separate operating mode.
Use it when Development needs to confirm a candidate artifact is safe to release, safe to promote, or behaving correctly after ship/deploy.
Typical checks include:
- build/release verification steps
- artifact startup/bootstrap validation
- deployment state or environment validation
- version/build confirmation in the target environment
- critical route/workflow smoke checks
- post-release checks that capture regressions, drift, rollout issues, or broken integrations as tracked follow-up work
If required release-readiness checks fail, release creation or promotion must stop until Development resolves the gap.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Mode Discipline
- Choose the execution mode during planning and state it in checkpoints and handoffs.
- If work shifts between Exploration and Development, announce the mode change before continuing.
- If Development enters release verification or shipping checks, state that checkpoint explicitly even though the mode remains Development.
- Do not use Development evidence standards to judge exploratory work, and do not use exploratory notes as a substitute for Development or release-readiness evidence.
Commentary: Prevents silent workflow shifts that hide evidence gaps or mix incompatible completion standards.
Backlog Hydration
Backlog hydration is part of the core workflow, not a side activity.
- Exploration mode must convert discovered gaps into tracked backlog artifacts before the reviewed scope can be considered complete.
- Development release-readiness and post-ship checks must capture new regressions, drift, rollout gaps, or integration failures as tracked follow-up work.
- Development may surface adjacent gaps, but those gaps must be tracked separately unless scope is explicitly expanded.
Commentary: Treats discovery as a required planning input instead of informal side notes.
Scoped Blocking, Blocker Escalation, and Move-On Behavior
Autonomy is expected, not unrestricted.
Escalate when:
- requirements are contradictory or ambiguous
- work crosses sensitive/security boundaries
- out-of-scope files or approvals are required
- verification is repeatedly failing without a clear next experiment
- a blocker prevents meaningful confidence in the current item
When blocked:
- spend bounded effort to confirm the blocker and capture evidence
- create or link the blocker artifact and record impact on scope
- recommend the next best unblocked item or route
- move on instead of freezing the whole loop unless no ready work remains
A blocker pauses the current item. It does not pause delivery unless it removes all viable next work or requires a human decision.
Prefer scoped blocking over global blocking:
- only the lane that truly requires the missing approval, decision, or dependency should pause,
- unrelated build work may continue,
- unrelated exploratory work may continue,
- and the blocked boundary should be made explicit in checkpoints or handoffs.
Commentary: Keeps delivery moving by turning blockers into tracked decisions instead of stalled work, and prevents one unanswered question from freezing all other loops.
Scope Discipline
- Stay inside the agreed directories and task boundaries.
- Do not expand scope silently.
- If scope grows, document the reason and request explicit approval.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Typical Issue Pickup Flow
For normal backlog-driven work, the default governed pickup flow is:
- choose the next highest-priority unblocked issue from backlog or
Ready - clarify the issue until it reaches implementation-grade quality
- bind the issue to the governing spec/requirement IDs before implementation
- move the issue to
Readyif clarification/spec binding was required - create a new issue-scoped branch from
develop - move the issue to
In progresswhen active work starts - implement the smallest coherent scoped change
- verify with mode-appropriate evidence
- update docs/specs/traceability as needed
- open a pull request into
develop - move the issue to
In reviewwhile the PR is active - merge, verify post-merge/release-readiness as needed, then move the issue to
Done - if a proven blocker stops progress, move the issue to
Blockedwith evidence instead of leaving it stale
This flow defines the default governed lifecycle for normal work. Hotfix flow remains the exception path from main.
Commentary: Provides traceability and scope control so changes remain auditable.
Completion Standard
A task is complete only when:
- the active mode's intent is satisfied,
- the active mode's required evidence is captured,
- documentation and traceability are updated,
- follow-up backlog artifacts exist for remaining gaps,
- unresolved risks are explicitly listed.
Claims of done without mode-appropriate evidence are incomplete.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.
Backlog Continuity
After finishing one item, continue to the next highest-priority unblocked item until:
- backlog is exhausted,
- a hard blocker removes all ready work,
- a human decision is required,
- or a defined stop limit is reached.
When stopping, report:
- completed work,
- active execution mode at stop,
- remaining backlog count or uncovered scope,
- next recommended item,
- blockers and required decisions.
Commentary: Captures a specific delivery control so contributors and agents apply this rule consistently.