- Python 100%
| .github/workflows | ||
| roam | ||
| scripts | ||
| tests | ||
| .dir-locals.el | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| CODEX.md | ||
| GEMINI.md | ||
| rage.toml | ||
| README.org | ||
RAGE Research Template
RAGE
RAGE means Recursive Analysis with Gated Execution.
The repository is a reusable research control plane. Research creates evidence. Design turns evidence into a bounded implementation proposal. Execution only advances through explicit gates. Results become new evidence and feed the next loop.
Repository shape
roam/research/ findings, source review, open questions
roam/design/ implementation-ready designs
roam/implement/ one active implementation per project
roam/indexes/ project indexes and roadmaps
scripts/ capture, promotion, status, sync, validation
.github/workflows/ CI gates
tests/ validator and workflow regression tests
The Org tree under roam/ is the source of truth.
RAGE loop
- Analyze: inspect current state, sources, constraints, contradictions, and unknowns.
- Gate: record what evidence or approval is required before execution.
- Execute: perform only the bounded action admitted by the gate.
- Evaluate: record observed output, tests, failures, and new evidence.
- Recurse: update the state and begin the next loop from what actually happened.
A green build is evidence. It is not approval by itself.
Start a project
Create a research note:
python3 scripts/save-research.py \
--project example \
--title "First investigation" \
--description "What we need to establish" \
--draft
Promote a design into the implementation slot:
python3 scripts/implement.py roam/design/example/example-design.org
Record a terminal implementation result:
python3 scripts/mark-design.py implemented \
--project example \
--summary "Implemented the bounded slice" \
--file src/example \
--test "python3 -m unittest discover -s tests -v"
Validate the repository:
python3 scripts/sync.py
python3 scripts/sync.py --check
python3 scripts/validate-docs.py
python3 -m unittest discover -s tests -p 'test_*.py' -v
Document contract
Substantive Org documents carry a stable ID, title, description, status, file tags, an approval table, and a changelog. Research notes must distinguish observed facts, inference, contradictions, and unresolved questions.
Do not load the entire corpus into an agent context for ordinary focused work. Load the active note, direct links, relevant index, source, and tests. Repository-wide audits are the exception.
Template use
When creating a new repository from this template:
- replace the project metadata in
rage.toml; - keep the RAGE workflow and gates unless the project explicitly changes them;
- delete example notes after the first real project index exists;
- keep generated output and secrets out of Git.