2.9 KiB
Workflow
Purpose
This document defines the standard repository workflow for humans and coding agents working in HoopScout v2 phase 0. It describes how repository work should be organized, executed, and closed without drifting into product architecture decisions.
Branch Policy
mainis the stable branch.developis the integration branch.- Normal work happens on
feature/*branches created fromdevelop. release/*branches are for release stabilization.hotfix/*branches are for urgent production fixes.
Protected Branch Rules
- Do not work directly on
main. - Do not work directly on
develop. - Do not rewrite history without explicit approval.
- Do not broaden task scope unnecessarily.
Standard Task Flow
The normal workflow for a focused task is:
- Checkout
develop. - Pull or otherwise update local state.
- Create a
feature/*branch fromdevelop. - Complete one focused task.
- Commit the changes.
- Merge the branch back into
develop. - Delete the feature branch when appropriate.
If a remote fetch or pull is unavailable, continue using local branch state and state that clearly in task communication.
Codex Task Discipline
Codex work in this repository should follow this structure:
- Confirm branch strategy.
- State the branch to use.
- List the files to change.
- Explain the design briefly.
- Make the requested changes.
- Update tests and docs when relevant.
- Provide the commit message.
- Confirm the merge target.
- Stop.
Scope Discipline
Each branch should solve one clear problem. Unrelated cleanup, opportunistic refactoring, or scope expansion should not be mixed into the same task unless explicitly approved.
When To Use an Umbrella Branch
Umbrella branches should be rare. Use one only for a large coordinated effort that requires multiple related task branches to be integrated together before merging back into develop.
If an umbrella branch is used, document:
- why it exists
- the exact branch name
- which task branches merge into it
- when it is expected to merge back into
develop
Review and Closeout Expectations
Before closing a task:
- changed files should match the task scope
- docs should be updated if behavior changes
- tests should be updated if behavior changes
- the merge target should be explicit
Machine Portability Note
Durable workflow instructions must live in the repository, not only in local Codex configuration. Shared behavior should be documented in tracked files so contributors can work consistently across different machines.
Minimal Examples
Example feature branch flow:
git checkout develop
git pull
# if git pull fails, continue using local branch state and say so explicitly
git checkout -b feature/example-task
# make focused changes
git commit -m "docs: describe example task flow"
git checkout develop
git merge --no-ff feature/example-task
Related Files
AGENTS.mddocs/MACHINE_SETUP.mddocs/TASK_TEMPLATE.md