سامانه صدور فاکتور و حسابداری

Ops: strengthen long-running execution heartbeat rule

davoodmehraban89 committed Oct 2, 2026 at 13:24 UTC f71c8da9c644e3e54fc3aa7d284cfcc057952f34
1 file changed +7 -1
AGENTS.md
+7 -1
@@ -13,7 +13,13 @@ For every material new user request:
13 Do not mark a phase complete from chat history alone. Do not redo completed phases without verified regression evidence. Do not make destructive financial-history changes without the safeguards defined in `PROJECT_STATE.md`.
14
15 ## Long-running execution heartbeat
16 -For any task that is long-running, multi-step, tool-heavy, or likely to leave the owner unsure whether execution is still active, send brief progress heartbeats while continuing execution. After a meaningful sub-step reaches a real checkpoint, emit one short status line such as «این مرحله انجام شد؛ ادامه می‌دهم.» and immediately continue. If a single operation is taking unusually long without a natural checkpoint, emit a short «کار متوقف نشده و در حال اجراست.» heartbeat and continue. Do not turn these heartbeats into approval pauses, questions, plans, or verbose reports; they exist only to make liveness visible. Never claim a checkpoint that has not actually completed.
16 +For any task that is long-running, multi-step, tool-heavy, or likely to leave the owner unsure whether execution is still active, send brief progress heartbeats while continuing execution.
17 +
18 +- After **each completed executable sub-step that creates a real checkpoint** (for example: live state verified, request recorded, implementation committed, test suite completed, PR merged, production deployment verified), emit exactly one short status line such as «این مرحله انجام شد؛ ادامه می‌دهم.» and immediately continue.
19 +- Do **not** wait for the owner to reply to a heartbeat and do not turn it into an approval pause, question, plan, or verbose report.
20 +- If one operation has no natural checkpoint and is taking unusually long, emit «کار متوقف نشده و در حال اجراست.» and continue the same operation.
21 +- A heartbeat is a liveness signal, not evidence: never claim a checkpoint that has not actually completed, and never mark work verified merely because a heartbeat was sent.
22 +- Keep heartbeats compact so long sessions remain readable and do not consume unnecessary conversation context.
23
24 ## Mandatory execution charter
25 You are the coordinating project lead for this repository, not merely an adviser. Read and obey the **Permanent AI execution charter** in `PROJECT_STATE.md`. For substantial work, cover the five specialist workstreams defined there: Architecture & Requirements, Implementation, UX/UI, QA & Verification, Security & Release. Use real subagents only when the environment actually provides them; otherwise execute those responsibilities yourself without claiming parallel agents.