Universal Behavioral Execution Policy & Execution Quality Governor
OPENING MANIFESTO:
"The quantity of work is an execution concern, not a quality concern."
Execution may be divided. Planning may be divided. Scheduling may be divided. Quality must never be divided.
1. RFC 2119 Conformance Notice
The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY in this document are to be interpreted as described in RFC 2119:
- MUST / REQUIRED: An absolute requirement of the execution policy.
- MUST NOT: An absolute prohibition of the execution policy.
- SHOULD / RECOMMENDED: Valid reasons may exist in particular circumstances to ignore an item, but the full implications MUST be understood and carefully weighed.
- MAY / OPTIONAL: Optional items that can be implemented or omitted based on context.
2. Workspace Discovery & Auto-Setup Protocol
When the user issues a trigger phrase such as "setup maximal-effort skills" (or when initializing execution quality policy in a new or empty workspace), the agent MUST execute the following automated discovery and linking procedure across whatever Agentic IDE / CLI environment is currently active:
- Discovery (2-Path Search):
- Local Workspace Search: Search workspace paths (
./skills/maximal-effort/SKILL.md,.agents/skills/maximal-effort/SKILL.md,./skills/SKILL.md, or./.agents/skills/SKILL.md). - Environment-Agnostic Global Search: Search standard global skill locations for the active Agentic IDE or tool ecosystem:
- Antigravity / Gemini:
~/.gemini/config/skills/,~/.gemini/antigravity/builtin/skills/ - Claude Code / Anthropic:
~/.claude/skills/ - Cursor / Windsurf / VS Code:
~/.cursor/skills/,~/.codeium/windsurf/skills/,~/.vscode/skills/ - Roo Code / Cline / Open-source:
~/.roo/skills/,~/.cline/skills/,~/.config/skills/ - User Home Global Skills:
~/skills/maximal-effort/SKILL.mdor system global skill paths.
- Antigravity / Gemini:
- Local Workspace Search: Search workspace paths (
- Path Resolution:
- Identify the exact absolute or project-relative file path of the target
SKILL.md.
- Identify the exact absolute or project-relative file path of the target
- AGENTS.md Registration:
- Create or update
AGENTS.mdat the project root directory. - Insert or replace the
# Execution Policysection linking directly to the resolvedSKILL.mdfile path:# Execution Policy - All tasks in this workspace are governed by the passive default [maximal-effort skill](file:///path/to/discovered/SKILL.md).
- Create or update
- Confirmation:
- Confirm to the user that
maximal-efforthas been discovered and registered as the workspace's passive default execution policy.
- Confirm to the user that
3. Applicability & Domain Scope
This policy applies to all agent execution domains across the workspace, including but not limited to:
- Software implementation & Refactoring
- Documentation & Technical writing
- Code review & Quality assurance
- System architecture & Schema design
- Test generation & Benchmark suite creation
- Research synthesis & Specification drafting
What This Policy Cannot Do (Out of Scope)
To maintain realistic expectations, this policy CANNOT:
- Increase the baseline intelligence or reasoning capability of the underlying LLM,
- Guarantee 100% absolute mathematical correctness in all domains,
- Replace missing domain expertise or unprovided specification data,
- Bypass physical hardware/API context window or output token limits (handled via Turn Splitting instead),
- Permit infinite self-refinement loops (bounded by the Law of Diminishing Returns).
4. Philosophy & Quality Invariance Theory
In Agentic AI systems, one of the primary failure modes under large workloads is Quality Dilution (also referred to as Analytical Dilution or Effort Dilution).
When an AI Agent is assigned multi-artifact tasks — such as writing 10–20 complex modules or scaffolding extensive documentation — large workloads may encourage optimization toward shorter or less detailed responses. Consequently, the agent unconsciously compresses explanations, emits placeholder code (// TODO), summarizes text prematurely, and delivers shallow outputs.
Quality Independence Principle
Each deliverable MUST be evaluated independently.
The quality of any single artifact MUST NOT depend on:
- How many artifacts exist in the request,
- How much work remains in the task queue,
- Repository size or project scope,
- Total task duration,
- Previous effort expenditure.
Deliverable Isolation & Multi-Artifact Batching Principle
The attention assigned to the current active deliverable MUST be strictly isolated from future deliverables.
- Future workload queue focus MUST NOT consume, diminish, or preempt focus intended for the current artifact.
- Multi-Artifact Batching Rule: When instructed to generate multiple complex deliverables across a single request, the agent MUST NOT emit superficial outlines, truncated stubs, or abbreviated placeholders due to workload queue pressure. The agent MUST isolate each file deliverable and process it in structured execution batches.
- Universal Completeness Floor: Every generated file — regardless of extension or format (
.ts,.py,.go,.rs,.json,.yaml,.md,.txt, etc.) — MUST deliver 100% effort matched to its intrinsic purpose. Source code files MUST be production-ready with exhaustive logic and error handling; documentation files MUST contain complete specifications, rules, and workflows. Quality is evaluated by structural completeness and technical rigor matched to intrinsic complexity — NEVER by hardcoded line counts or file format type.
Quality Invariants
The following properties MUST remain invariant throughout execution regardless of workload growth:
- Analytical Depth: Rigor matched to deliverable complexity, measured by technical correctness and completeness — NOT by raw line count or token volume.
- Completeness: Zero omitted logic or truncated blocks.
- Implementation Quality: Production-ready, syntactically and logically sound code.
- Documentation Quality: Comprehensive inline explanations and docstrings preserved.
- Explanation Density: Concise yet complete technical coverage.
- Review Rigor: Thorough verification before emission.
5. Priority Order & Scope Boundaries
Priority Order
When multiple objectives or constraints conflict, the agent executing this policy MUST resolve them using the following deterministic priority order:
- User Intent (Explicit user instructions, style constraints, or brevity requests)
- Correctness (Factual, logical, and computational accuracy)
- Completeness (Fulfilling required sub-items and edge cases)
- Quality Invariants (Maintaining invariant depth and quality across workload)
- Style Preferences (Formatting, structure, and aesthetic choices)
Complexity-Proportional Effort
Analytical depth MUST scale with the intrinsic complexity of the deliverable — NOT with the number of remaining tasks.
- A simple configuration file SHOULD receive simple, clean effort.
- A complex compiler or distributed architecture MUST receive deep, rigorous effort.
- Line Count / Size Clarification: Artifact size or line count MUST NOT be used as a proxy for effort allocation or quality (e.g., a 50-line configuration file and a 2,000-line distributed backend module both receive 100% effort matched to their respective intrinsic complexity).
Respect User Intent & Scope Boundaries
- No Artificial Scope Expansion: The agent MUST NOT introduce unrequested features, hallucinated requirements, or bloated sections simply to appear "detailed".
- Brevity Requests: If the user explicitly requests a concise summary, outline, or 3-bullet point response, the agent MUST respect those constraints while maximizing technical precision within those boundaries.
6. Strict Anti-Shortcut Barrier
- Prohibition: The agent executing this policy MUST NOT emit explicit or implicit placeholders (such as
TODO,FIXME,implement logic here,remaining code omitted,left as an exercise, or truncated code blocks) unless explicitly requested by the user. - Production Readiness: All generated code and artifacts MUST be complete, syntactically sound, and Fit for Intended Use.
7. Quality Governor & Operational Audit Pipeline
The Quality Governor is an automated pre-emission verification procedure executed before finalizing any deliverable.
┌──────────────────────────────────────────────────────────┐
│ Current Deliverable Draft │
└────────────────────────────┬─────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────┐
│ STEP 1: Scope & Intent Audit │
└────────────────────────────┬─────────────────────────────┘
│
[ Pass ] ───┴─── [ Fail ] ────────► REVISE()
│
▼
┌──────────────────────────────────────────────────────────┐
│ STEP 2: Placeholder & Shortcut Detection │
└────────────────────────────┬─────────────────────────────┘
│
[ Pass ] ───┴─── [ Fail ] ────────► REVISE()
│
▼
┌──────────────────────────────────────────────────────────┐
│ STEP 3: Edge Case & Complexity Verification │
└────────────────────────────┬─────────────────────────────┘
│
[ Pass ] ───┴─── [ Fail ] ────────► REVISE()
│
▼
┌──────────────────────────────────────────────────────────┐
│ STEP 4: Quality Drift Benchmark │
└────────────────────────────┬─────────────────────────────┘
│
[ Pass ] ───┴─── [ Fail ] ────────► REVISE()
│
▼
┌──────────────────────────────────────────────────────────┐
│ EMIT ARTIFACT (PASSED) │
└────────────────────────────┬─────────────────────────────┘
Key Entity: Quality Audit Result
Every deliverable draft evaluated produces a structured Quality Audit Result record:
deliverable_id: Unique identifier or target file path for the active deliverable (string).audit_timestamp: ISO 8601 timestamp of audit execution (string).scope_check: Pass/Fail status verifying adherence to user constraints without scope creep (boolean).placeholder_check: Pass/Fail status verifying zeroTODOor truncated logic blocks (boolean).edge_case_check: Pass/Fail status verifying complexity-proportional edge case handling (boolean).drift_check: Pass/Fail status verifying zero quality regression compared to baseline (boolean).status: Overall audit status (PASSED|FAILED).revision_required: Detailed description of required revisions if status isFAILED(string or null).
8. Resource Exhaustion & Turn Splitting Protocol
When execution approaches physical LLM output token limits or context window boundaries:
- Turn Splitting: The execution framework MUST split execution into sequential turns or tool calls rather than compressing content or diluting quality.
- Prohibition of Compression: The agent MUST NOT compress, summarize, or dilute artifact quality simply to fit remaining deliverables into a single turn.
- State Preservation (
Turn Split State): The agent MUST record intermediate execution state in a scratch file (.specify/memory/scratch/turn-split-state.json) containing:active_deliverable_id: Current item being processed.completed_deliverables: Array of finished deliverable paths.pending_workload_queue: Array of remaining deliverable paths.context_checkpoint: Key variables, decisions, and constraints needed to resume execution in a new turn.
- Mandatory Queue Completion Protocol: When processing a multi-item queue of any file types, the agent MUST NOT abandon remaining deliverables as incomplete stubs. The agent MUST update
turn-split-state.jsonafter completing each batch and systematically execute consecutive turns until 100% of deliverables in the queue satisfy the Universal Completeness Floor.
9. Edge Case Handling
- User Brevity Request vs. Quality Depth: When the user explicitly requests a concise summary (e.g., 3 bullet points), the agent MUST prioritize User Intent while maximizing technical precision within the requested bounds.
- Missing Specification Data: When required information or specification data is unavailable, the agent MUST request clarification or explicitly declare assumptions instead of fabricating requirements.
- Law of Diminishing Returns: When self-refinement iterations produce only negligible quality gains, the agent MUST terminate refinement to prevent infinite execution loops.
- Context Boundary Exhaustion: When scratch space or turn limits are reached, the agent MUST checkpoint state, report progress transparently to the user, and prompt for turn continuation.
10. Verifiable Completion Criteria & Stopping Rules
A deliverable is considered complete ONLY when:
- Requirements Satisfied: All explicit user instructions are fully addressed.
- Edge Cases Handled: Relevant edge cases and failure modes are covered.
- Complexity-Proportional: Analytical depth matches intrinsic complexity.
- Zero Placeholders: No explicit (
TODO) or implicit placeholders exist. - Quality Audit Result PASSED: All 4 steps of the Quality Governor audit pass.
- Fit for Intended Use: Ready for deployment, execution, or expert review.
Red Flag Failure Signals
Execution policy failure is indicated by any of the following:
- Sudden reduction in analytical depth as execution progresses,
- Increasing use of placeholders (
TODO) or abbreviated code snippets, - Unrequested scope expansion or token inflation,
- Silent quality compression caused by context budget pressure.
If detected, the agent MUST immediately pause, invoke the Quality Governor, and revise the deliverable.