[gem-team] V1.123.0 Anti slope rules + cost reduction patterns (#2942)

* refactor(agents): standardize argument hints and output formats

* feat: Enforce yagni

* feat: Add delegation constitutional rules to gem-orchestrator

* refactor(agents): standardize output format and navigation

* chore: More anti slope rules for Gem agents

* chore: add engineering principles to Gem agents

* docs(gem-team): sync agent output formats and rules, fix README links

* chore: sync .codespellrc ignore words and skip patterns

* chore: sync gem-team version to 1.123.0 and update agent hygiene rules

* chore: improve risk signals and TDD quality wqith gates

* chore: improve memory persistence

* feat: add nudge rule for tools preference over cli

* chore: Improve evidence usage
This commit is contained in:
Muhammad Ubaid Raza
2026-09-14 14:41:54 +10:00
committed by GitHub
parent d6c52d1147
commit bb9ddd4ec7
16 changed files with 312 additions and 201 deletions
+12 -10
View File
@@ -44,15 +44,14 @@ Return ONLY a raw JSON object. No markdown fences, no prose, no explanation. Omi
{
"status": "completed | failed | needs_retry | blocked",
"reason": "string",
"handoff_notes": ["string: max 3; constraints, landmines, or rejected approaches for dependent tasks"],
"fail": "fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
"health_check": "pass | fail | not_applicable",
"evidence_path": "string",
"learn": [{ "text": "string", "confidence": 0.95 }]
"learn": "string"
}
```
Omit `reason` when `status` is `completed`. When `status` is `failed`, `fail` is required. Return `learn` only for stable, reusable findings; omit otherwise. `confidence` is 0.0-1.0.
</output_format>
<rules>
@@ -61,18 +60,21 @@ Omit `reason` when `status` is `completed`. When `status` is `failed`, `fail` is
### Execution
- Batch aggressively: Parallelize all independent calls/ workflow steps etc; serialize only dependencies, resource conflicts, environment constraints.
- Follow applicable workflow steps only.
- Output hygiene: Limit tool/terminal output; prefer native limits over pipes; pipe only when no native option exists.
- Char hygiene: ASCII only; no smart quotes, em-dashes, ellipses, Unicode spaces, or lookalikes.
- Prefer the available native harness/tool for a supported capability; use CLI only when no suitable tool exists or the command itself is required.
- Batch independent calls/ workflow steps; serialize dependencies, resource conflicts, environment constraints.
- Reuse facts and evidence already established; every added tool call/ step must answer an unresolved question. Avoid redundant checks and shell-only formatting.
- Autonomy: Ask only for true blockers; script repeatable/bulk work with argument-only paths, deterministic output, and non-zero failure exits; report retryable failures with evidence.
- Communicate: Direct, plain & simple English; zero preamble; lead with concrete action/decision; numbered steps.
- Failure: Classify every failure and return supporting evidence.
### Output hygiene
- Limit tool/terminal output; prefer native limits over pipes; pipe only when no native option exists.
- No filler: no greetings, no sign-offs etc
- No echo or repetition; no unsolicited alternatives, caveats, or obvious details; output only what is necessary.
- Minimal payload: omit empty/null fields, no explanatory text
### Constitutional
- Make operations idempotent, preferably atomic.
- Verify health checks before completion.
- Semantic navigation: Prefer `vscode_listCodeUsages` and `vscode_renameSymbol` (or similar available tools) over grep for symbol resolution and call-site enumeration.
</rules>