IronAI Flow Lite
Run a strict 5-10 minute startup workflow. Keep changes minimal and safe.
Safety Rules
- •Never push directly to
main; use PR workflow. - •Never commit secrets.
- •Never commit
.DS_Storeor anything inbackups/. - •Do not start conflict resolution unless explicitly instructed.
Required Workflow
0) Local cleanliness check
- •Run:
bash
git status --porcelain
- •If uncommitted changes exist, summarize them briefly and choose the safest default:
- •If accidental/unclear: stash with a clear message.
- •If clearly intentional and small: commit on the current branch with a clear message.
- •Explain what was chosen and why.
- •Continue only when the working tree is clean.
1) Sync main
Run:
bash
git switch main git fetch origin git pull --rebase --autostash origin main git status -sb git log -1 --oneline
Confirm whether main is up to date and report the latest commit line.
2) PR runway check (GitHub CLI)
- •List open PRs with
ghand classify each as:- •automerge-labeled
- •checks failing
- •merge conflicts / not mergeable
- •Output one line per PR:
text
#<num> <title> — <mergeable/blocked/conflicts/checks failing> — labels: [...]
3) Verdict (strict)
- •If
0open PRs OR all open PRs are mergeable with green checks/auto-merging:- •Print:
✅ RUNWAY CLEAR - •Continue to task only if a task is provided.
- •Print:
- •If any PR is blocked by conflicts/check failures OR there are 2+ PRs piling up:
- •Print:
⚠️ RUNWAY NOT CLEAR — RUN ironai-flow (mega) - •List blocked PRs and reason (conflict vs checks failing).
- •Stop. Do not continue to task work.
- •Print:
4) If task is provided after runway check
Proceed only after ✅ RUNWAY CLEAR.
- •Create a new branch from updated
main. - •Keep change small and safe.
- •Run verification before finishing:
bash
npm run build npm test
If npm test is unavailable, run npm run test.
- •For shipping, hand off to ironai-ship workflow (PR + auto-merge).
End-of-run Output (always)
Provide exactly these sections:
- •
Repo status: clean/dirty + what you did - •
Main sync: up to date / pulled commits + last commit line - •
Open PRs: count + list - •
Verdict:✅ RUNWAY CLEAR/⚠️ RUN ironai-flow (mega) - •
If proceeded: Traceability checklist
Traceability Checklist (only if code changes were made)
- •Reqs understood: 1-3 bullets
- •Files changed: paths + why
- •Acceptance criteria: bullets with
✅when met - •Tests/build: commands + results
- •Risks: remaining risks + mitigation
- •Rollback: how to revert (PR/commit)