Imported from zfifteen/wet-donkey (
AGENTS.md). Install upstream withnpx skills add zfifteen/wet-donkey. Copyright stays with the author.
AGENTS.md
Wet Donkey (WD) agent control spec. This file is a compact, durable coordination contract, not a historical log.
1) Mission
Wet Donkey is a clean re-implementation of Flaming Horse (FH), built from first principles. WD must apply FH lessons without inheriting FH architecture/sprawl.
2) State Snapshot (Overwrite-Only)
As of: 2026-03-01
- Current phase: Phase 5 (implementation execution)
- Next phase: N/A (Phase 5 is the terminal execution phase in the canonical game plan)
- Phase status flags:
- P1 FH analysis: complete for current audited FH run set
- P2 lessons learned: complete for current scope (L-013 through L-023 captured)
- P3 revised tech spec: approved
- P4 revised implementation plan: complete and approved
- P5 implementation: active
- Current blockers:
scene_qcquality threshold gate is not yet passing on retained live projecte2e_live_post_fallback_retire_20260301_181812
- Next concrete action:
- Execute targeted scene repair loop on failing QC scenes and rerun
scene_qcuntil phase advances toprecache_voiceovers
- Execute targeted scene repair loop on failing QC scenes and rerun
Rule: this snapshot is updated in place. Never append timeline entries here.
3) Canonical Game Plan (Do Not Reorder)
- Continue deep analysis of FH implementation.
- Produce a formal lessons-learned document in WD.
- Revise WD technical specification using those lessons.
- Revise WD implementation plan using the revised spec.
- Execute WD implementation against the revised plan.
If requested work conflicts with this order, call out the conflict explicitly.
4) State Authority and Drift Rules
Precedence for phase/state truth:
AGENTS.mdState Snapshot (Section 2)docs/implementation-plan/README.mdcurrent canonical phasedocs/lessons-learned/flaming-horse-lessons.mdlesson/status evidencedocs/tech-spec/section status and contracts
If any contradiction is found:
- Stop and identify the mismatch.
- Update
AGENTS.mdsnapshot in the same session. - Update the conflicting canonical doc if needed.
- Do not end session with unresolved state contradictions.
5) WD Non-Negotiables
- WD remains a clean re-implementation; do not copy FH architecture blindly.
- Every major WD design choice must map to:
- an FH lesson learned, or
- a WD-first rationale documented in spec.
- The LLM is not the orchestrator.
- Deterministic code owns:
- file writes/mutations
- phase advancement
- retries/escalation
- validation/policy enforcement
- state persistence
- Avoid hidden complexity and self-heal loops as a design crutch.
- No architecture pivots without spec updates first.
- Prefer explicit contracts and deterministic state handling.
- Keep docs and implementation synchronized; flag and fix drift immediately.
- WD has one harness module only:
src/harness/.
6) Phase Deliverables (Definition-Level)
Phase 1: FH Analysis
- Produce concrete findings: failure patterns, root causes, anti-patterns, tooling/process gaps.
Phase 2: Lessons Learned
- Maintain WD-local lessons with what failed, why, WD prevention, and status.
Phase 3: Revised Tech Spec
- Populate
docs/tech-spec/with boundaries, data/state contracts, validation gates, retry/error policy, observability, and tests.
Phase 4: Revised Implementation Plan
- Maintain
docs/implementation-plan/README.mdwith spec-derived milestones, acceptance criteria, and testability at each milestone.
Phase 5: Implementation
- Execute milestones with contract/tests/docs alignment and lessons traceability.
7) Session Control Loop
At session start:
- Read this file first.
- Confirm Section 2 snapshot still matches canonical docs.
- Restate mission + current phase.
- Map proposed work to canonical game plan.
During session:
- Keep work within current phase scope unless explicitly reprioritized.
- Tie major design decisions to lesson IDs or WD-first rationale.
- Fix state/document drift immediately when detected.
At session end:
- Update Section 2 snapshot (overwrite only).
- Update affected canonical docs.
- Record unresolved risks/unknowns in canonical docs (not here).
8) Documentation and Tooling Baseline
- Lessons index:
docs/lessons-learned/README.md - Lessons log:
docs/lessons-learned/flaming-horse-lessons.md - FH audit evidence:
docs/analysis/fh-pr-audit/ - Revised tech spec:
docs/tech-spec/ - Revised implementation plan:
docs/implementation-plan/README.md - Legacy plan (non-canonical):
docs/legacy/WET_DONKEY_IMPLEMENTATION_PLAN.md - Python runtime requirement: WD scripts/tests/tooling must run on
python3.13; usingpython3or earlier runtimes is non-compliant. - Quality gate policy for current version: manual local gate execution only; GitHub CI/Actions workflows are deferred.
- IntelliJ MCP is the default execution surface when available.
- Prefer IntelliJ-native operations for project analysis, code search, inspections, semantic symbol lookups, refactors, formatting, builds, and run configurations.
- Prefer IntelliJ inspection/build outputs over ad-hoc manual reasoning whenever equivalent IDE functionality exists.
- After material edits, run IntelliJ validation first (
get_file_problems, thenbuild_projectwhen relevant).
- GitHub CLI assumption:
ghis always available and authenticated in this workspace; useghfor GitHub operations. - Shell/CLI fallback is allowed only when IntelliJ MCP lacks the needed capability or is unavailable; document fallback rationale in the session response.
9) File Size and Structure Guardrail
- Target max length: 200 lines.
- This file must stay declarative and compact.
- Additions must replace/consolidate existing content, not append historical narrative.
- Historical evidence belongs in canonical docs, not
AGENTS.md.
10) Glossary (Execution and Control)
- Active phase: the only phase that may receive execution work in the current session.
- Approved: explicit sign-off state for a phase or spec section; required before phase advancement.
- Blocker: a condition that prevents phase advancement until resolved.
- Canonical docs: authoritative project-control documents (
AGENTS.md, tech spec, lessons log, implementation plan). - Drift: contradiction between control docs, spec, and/or implementation state.
- Exit criteria: required conditions that must be satisfied before a phase can be approved.
- Finalization: converting draft coverage into approved, implementable guidance.
- Gate: mandatory decision/validation checkpoint that controls progression.
- In scope: work allowed under the current active phase.
- Next phase: the immediate phase that follows the active phase once exit criteria are approved.
- Phase advancement: explicit change of active phase after gate/approval conditions are met.
- Prepared: drafted and available, but not yet active for execution.
- State snapshot: overwrite-only control block in this file defining current phase truth.
- Status flags: per-phase state markers used for quick control-plane interpretation.