Production-oriented repository template for starting new projects with Codex using a deterministic governance loop:
intake -> plan -> implement -> verify -> evidence.
This template is extracted from a hardened real-world setup and anonymized for general use.
- Governance contracts:
PROJECT_MANIFEST.md(requirements + acceptance contracts)ACTION_PLAN.md(board + execution plan)EVIDENCE_LOG.md(verification facts + artifact links)DEBUG.md(verified runbook only)
- Board state machine with invariants:
- states:
NEXT,DOING,BLOCKED,DONE - allowed transitions only:
NEXT->DOINGDOING->BLOCKEDBLOCKED->DOINGDOING->DONE
- invariants:
DOING == 1NEXT <= 3
- states:
- Context persistence protocol:
- bootstrap order
- directive capture register
- update-plan lifecycle (
sync/freshness/trace) - workflow context gate
- Lightweight tooling:
tools/agent_bootstrap.pytools/dev_harness_server.py(governance CLI gate)tools/agent_metrics.pytools/verify_fail_fast.sh
- Clone this template and enter repo.
- Edit these files first:
PROJECT_MANIFEST.mdACTION_PLAN.mddocs/DIRECTIVE_REGISTER.md
- Run bootstrap and context gates:
python3 tools/agent_bootstrap.py
python3 tools/dev_harness_server.py workflow-context-gate --label bootstrap
python3 tools/dev_harness_server.py update-plan-sync --summary "bootstrap snapshot" --status IN_PROGRESS --label bootstrap- Run baseline verification:
./tools/verify_fail_fast.shSee:
docs/AGENT_STARTUP_QUESTIONNAIRE.en.mddocs/AGENT_STARTUP_QUESTIONNAIRE.ru.mddocs/AGENT_START_PROMPT.en.mddocs/AGENT_START_PROMPT.ru.md
These files define:
- what the agent must ask the user before coding,
- what documents must be filled before starting work.
- English onboarding:
docs/AGENT_BOOTSTRAP_PROTOCOL.en.mddocs/CONTEXT_SYNC_PROTOCOL.en.mddocs/NETWORK_SEARCH_PROTOCOL.en.mddocs/ONBOARDING_30_MIN.en.md
- Russian onboarding:
docs/AGENT_BOOTSTRAP_PROTOCOL.ru.mddocs/CONTEXT_SYNC_PROTOCOL.ru.mddocs/NETWORK_SEARCH_PROTOCOL.ru.mddocs/ONBOARDING_30_MIN.ru.md
- Project setup profile:
docs/PROJECT_PROFILE.md
- Acknowledgements:
docs/ACKNOWLEDGEMENTS.md
This repository uses the MIT License.
See LICENSE.
- Contribution guide:
CONTRIBUTING.md - RU contribution guide:
CONTRIBUTING.ru.md - Code of conduct:
CODE_OF_CONDUCT.md - GitHub templates:
.github/PULL_REQUEST_TEMPLATE.md.github/ISSUE_TEMPLATE/*
- CI workflow:
.github/workflows/ci.yml
git init
git add .
git commit -m "chore: initialize codex universal starter template"
# Requires authenticated GitHub CLI (gh auth status)
gh repo create <your-private-repo-name> --private --source . --remote origin --push- This is a governance/template repository, not a business-domain implementation.
- Keep process docs short, explicit, and evidence-backed.