Start a Framework Change¶
When to use this runbook¶
Use this runbook when you are about to change the framework itself — its behavior, docs, governance, or automation — rather than building a product feature. Run it before opening an issue or PR so the scope and validation gates are set early.
For how the framework relates to Brain Factory as a whole, see How Brain Factory works.
Diagram¶
The change workflow: classify the change, open the issue, run it through a single-scope branch and PR, validate, then merge and close out.
flowchart LR
A[Planned framework change] --> B{Classify type}
B --> C[Doc]
B --> D[Workflow]
B --> E[ADR-worthy]
C --> F[Open issue from template]
D --> F
E --> F
F --> G[Create single-scope branch and PR]
G --> H[Run validation expectations]
H --> I[Merge and close out follow-ups]
Decide the change type (doc / workflow / ADR-worthy)¶
Classify the work before opening artifacts:
-
Doc: guidance, examples, wording, cross-links, runbooks, or templates.
-
Workflow: CI workflows, automation behavior, configs, or scripts.
-
ADR-worthy: architecture or process decisions with durable tradeoffs.
Decision checklist:
-
[ ] Is the change explanatory and low-risk? → doc.
-
[ ] Does it alter execution gates, automation, or behavior? → workflow.
-
[ ] Does it define a durable policy or architecture direction? → ADR-worthy.
Open the right issue¶
Start from issue templates in .github/ISSUE_TEMPLATE/.
Quick routing:
-
Docs/process improvement →
docs.ymlorimprovement.yml. -
Defect/change in behavior →
bug-defect.ymlorenhancement.yml. -
Decision proposal →
adr.yml.
Issue minimums:
- [ ] Objective
- [ ] Context
- [ ] Constraints
- [ ] Acceptance criteria
- [ ] Validation expectations
Branch and PR conventions¶
Follow docs/branching-and-cleanup.md.
Operational steps:
-
Create a single-scope branch (
docs/...,fix/...,chore/..., etc.). -
Keep one work packet per branch.
-
Open one PR that links the issue (
Closes #...orRelates-to #...). -
Keep scope bounded; defer extras into follow-up issues.
Validation expectations¶
Markdown/docs changes must pass the markdown workflow at .github/workflows/markdown.yml.
Before requesting review:
- [ ] Local markdown lint passes.
- [ ] Relative links resolve and avoid dead UI-only targets.
- [ ] Governance alignment is checked against
docs/governance-checklist.md. - [ ] Security-sensitive routing and redaction expectations are checked against
docs/security-and-secure-delivery.md.
Close-out and follow-ups¶
Before merge:
- [ ] PR describes the problem, scope, and validation results.
- [ ] Any deferred work is captured as explicit follow-up issue(s).
After merge:
- [ ] Branch is deleted.
- [ ] Linked issues/project items are updated.
- [ ] Operational guidance stays cross-linked from primary entry points.
Mobile quick action¶
- Use when: you are framing a bounded framework change and opening the right starting artifact from mobile.
- Do from mobile:
- Classify change type (doc, workflow, or ADR-worthy).
- Draft the issue with objective, constraints, acceptance, and validation fields.
- Note expected validation gates before implementation starts.
- Do not do from mobile:
- Start broad implementation without a normalized issue packet.
- Bundle unrelated framework changes into one mobile edit pass.
- Escalate to desktop/cloud when:
- Scope is ambiguous or likely to cross doc/workflow/ADR boundaries.
- Implementation or validation requires local tooling.
- Primary artifact to update:
- The new framework-change issue used as execution source.
Related docs¶
- Operating model — how the framework runs day-to-day.
- Framework queued execution memory — canonical queue schema/linkage model when the change affects queue-governance behavior.
- Framework release notes and upgrade summaries — when/how to publish a lightweight change summary for maintainers and adopters.
- Governance checklist — periodic audit items.
- Framework health — current snapshot and charter-to-artifact map.
- Branching and cleanup — branch lifecycle and stale-branch handling.
- Other runbooks: Close Out a Multi-Agent Handoff, Handle a Dependabot PR, Promote an External AI Artifact, Respond to Support Intake, Run the Framework Health Audit, Triage the stale-branch report.